#st-ai-fab{position:fixed;right:18px;bottom:88px;z-index:130000;border:1px solid rgba(59,130,246,.35);border-radius:999px;padding:12px 16px;font:700 14px system-ui;cursor:pointer;background:linear-gradient(180deg,#ffffff,#eaf2ff);color:#0f172a;box-shadow:0 10px 28px rgba(0,0,0,.26)}
#st-ai-panel{position:fixed;inset:auto 14px 14px auto;width:min(460px,calc(100vw - 28px));max-height:min(780px,calc(100vh - 28px));z-index:130100;background:#0b1220;color:#f5f7fa;border:1px solid rgba(148,163,184,.22);border-radius:22px;box-shadow:0 22px 70px rgba(0,0,0,.55);display:none;overflow:hidden;font-family:system-ui}
#st-ai-panel.open{display:flex;flex-direction:column}
.st-ai-head{display:flex;gap:10px;align-items:center;padding:16px 18px;border-bottom:1px solid rgba(255,255,255,.10);background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.00))}
.st-ai-title{font-weight:800;flex:1;font-size:17px;letter-spacing:.01em}
.st-ai-close{border:0;background:transparent;color:inherit;font-size:26px;cursor:pointer;opacity:.88}
.st-ai-body{padding:14px 14px 8px;overflow:auto;min-height:250px;display:flex;flex-direction:column;gap:8px}
.st-ai-msg{padding:12px 14px;margin:0;border-radius:16px;line-height:1.45;white-space:pre-wrap}
.st-ai-user{background:rgba(255,255,255,.08);margin-left:44px;border:1px solid rgba(255,255,255,.06)}
.st-ai-bot{background:#1d2b3b;margin-right:24px;border:1px solid rgba(255,255,255,.04)}
.st-ai-meta{font-size:12px;opacity:.72;margin-bottom:4px;font-weight:600}
.st-ai-content{font-size:15px}
.st-ai-content strong{font-weight:800;color:#fff}.st-ai-content code{font:0.92em ui-monospace,SFMono-Regular,Menlo,monospace;background:#ffffff12;padding:1px 4px;border-radius:4px}.st-ai-bullet{display:block;padding-left:2px}
.st-ai-media{display:block;margin-top:10px;border:1px solid #ffffff18;border-radius:12px;overflow:hidden;color:inherit;text-decoration:none;background:#0003}.st-ai-media img{display:block;width:100%;max-height:280px;object-fit:cover;background:#000}.st-ai-media-cap{padding:8px 10px;font-size:12px;opacity:.82}
.st-ai-statusbar{display:flex;align-items:center;gap:10px;padding:10px 14px;border-top:1px solid rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.06);background:rgba(15,23,42,.74)}
.st-ai-statusdot{width:10px;height:10px;border-radius:50%;background:#64748b;box-shadow:0 0 0 3px rgba(100,116,139,.18)}
.st-ai-statustext{font-size:13px;font-weight:700;letter-spacing:.01em}
.st-ai-statushint{font-size:12px;opacity:.78;margin-left:auto;text-align:right}
#st-ai-panel[data-state="ready"] .st-ai-statusdot{background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.18)}
#st-ai-panel[data-state="listening"] .st-ai-statusdot{background:#3b82f6;box-shadow:0 0 0 5px rgba(59,130,246,.22);animation:st-ai-glow 1.1s infinite}
#st-ai-panel[data-state="thinking"] .st-ai-statusdot{background:#f59e0b;box-shadow:0 0 0 3px rgba(245,158,11,.22)}
#st-ai-panel[data-state="transcribing"] .st-ai-statusdot{background:#8b5cf6;box-shadow:0 0 0 3px rgba(139,92,246,.22)}
#st-ai-panel[data-state="speaking"] .st-ai-statusdot{background:#06b6d4;box-shadow:0 0 0 3px rgba(6,182,212,.22)}
#st-ai-panel[data-state="error"] .st-ai-statusdot{background:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.22)}
@keyframes st-ai-glow{50%{transform:scale(1.12);box-shadow:0 0 0 8px rgba(59,130,246,.12)}}
.st-ai-suggestions-wrap{padding:10px 14px 6px}
.st-ai-suggestions-title{font-size:12px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;color:#93c5fd;margin-bottom:8px}
.st-ai-suggestions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.st-ai-chip{display:block;width:100%;border:1px solid rgba(148,163,184,.26);background:rgba(30,41,59,.92);color:#f8fafc;border-radius:14px;padding:10px 12px;font-size:13px;line-height:1.35;cursor:pointer;text-align:left;min-height:60px}
.st-ai-chip:hover{background:rgba(37,99,235,.22);border-color:rgba(96,165,250,.42)}
.st-ai-chip:active{transform:translateY(1px)}
.st-ai-tools{padding:10px 14px 10px;display:flex;align-items:center;gap:10px;font-size:12px;opacity:.92;flex-wrap:wrap}
.st-ai-tools label{display:flex;align-items:center;gap:6px;font-weight:600}
.st-ai-lang{max-width:140px;border:1px solid rgba(255,255,255,.18);border-radius:10px;background:rgba(255,255,255,.06);color:inherit;padding:8px;font:12px system-ui}.st-ai-lang option{color:#111}
.st-ai-replay{border:1px solid rgba(255,255,255,.18);border-radius:10px;background:rgba(255,255,255,.06);color:inherit;padding:8px 12px;cursor:pointer;font-weight:700}
.st-ai-form{border-top:1px solid rgba(255,255,255,.10);padding:12px 14px 14px;display:block;background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,0))}
.st-ai-inputhint{font-size:12px;opacity:.82;margin-bottom:9px}
.st-ai-entry{display:grid;grid-template-columns:56px 1fr 74px;gap:10px;align-items:center}
.st-ai-mic,.st-ai-send{border:1px solid rgba(255,255,255,.16);border-radius:16px;cursor:pointer;min-height:56px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;transition:.16s ease;background:rgba(255,255,255,.04);color:#e5edf5}
.st-ai-mic-label,.st-ai-send-label{font-size:11px;font-weight:800;letter-spacing:.02em;text-transform:uppercase}
.st-ai-mic svg{width:21px;height:21px;display:block}
.st-ai-mic .st-ai-mic-ico{display:flex;align-items:center;justify-content:center;color:#cbd5e1}
.st-ai-mic .st-ai-mic-ico svg{stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.st-ai-mic:hover,.st-ai-send:hover{background:rgba(255,255,255,.08)}
.st-ai-mic.listening{background:#2563eb;border-color:#60a5fa;color:#fff;box-shadow:0 0 0 4px rgba(37,99,235,.18)}
.st-ai-mic.listening .st-ai-mic-ico{color:#fff}
.st-ai-mic.listening .st-ai-mic-label{color:#dbeafe}
.st-ai-inputwrap{display:flex;flex-direction:column;gap:6px}
.st-ai-input{min-width:0;border:1px solid rgba(255,255,255,.18);border-radius:16px;background:rgba(255,255,255,.06);color:inherit;padding:13px 14px;font:16px system-ui;outline:none}
.st-ai-input:focus{border-color:#60a5fa;box-shadow:0 0 0 3px rgba(59,130,246,.16)}
.st-ai-inputsub{font-size:11.5px;opacity:.72}
.st-ai-send{background:linear-gradient(180deg,#f8fbff,#dbeafe);border-color:#93c5fd;color:#0f172a;font-weight:800}
.st-ai-send .st-ai-send-ico{font-size:18px;line-height:1}
.st-ai-send .st-ai-send-label{color:#0f172a}
#st-ai-fab,#st-ai-panel{isolation:isolate}
.st-ai-mic,.st-ai-send,.st-ai-replay,.st-ai-close,#st-ai-fab{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
@media(max-width:600px){#st-ai-panel{top:max(8px,env(safe-area-inset-top));right:8px;bottom:max(8px,env(safe-area-inset-bottom));left:8px;width:auto;max-height:calc(100dvh - max(16px,env(safe-area-inset-top)) - max(16px,env(safe-area-inset-bottom)));border-radius:18px}#st-ai-fab{right:12px;bottom:calc(78px + env(safe-area-inset-bottom));min-height:46px;touch-action:manipulation}.st-ai-suggestions{grid-template-columns:1fr}.st-ai-chip{min-height:54px;font-size:13px}.st-ai-tools{gap:8px}.st-ai-statushint{width:100%;margin-left:0;text-align:left}.st-ai-entry{grid-template-columns:56px 1fr 68px}.st-ai-form{padding-bottom:calc(14px + env(safe-area-inset-bottom))}}
@supports not (height:100dvh){@media(max-width:600px){#st-ai-panel{max-height:calc(100vh - 20px)}}}

/* v0.5.3 polish --------------------------------------------------------- */

/* Mobile chat behaves like a native full-screen conversation. */
@media(max-width:600px){
  #st-ai-panel{
    top:0;
    right:0;
    bottom:0;
    left:0;
    width:100%;
    max-height:none;
    height:100dvh;
    border-radius:0;
    border-left:0;
    border-right:0;
    border-bottom:0;
  }
  .st-ai-head{padding-top:calc(14px + env(safe-area-inset-top));padding-left:16px;padding-right:16px}
  .st-ai-body{flex:1;min-height:0;padding:14px 12px 10px}
  .st-ai-form{padding-bottom:calc(12px + env(safe-area-inset-bottom))}
  .st-ai-msg{padding:13px 14px;border-radius:18px}
  .st-ai-user{margin-left:28px}
  .st-ai-bot{margin-right:12px}
  .st-ai-content{font-size:16px;line-height:1.55}
  .st-ai-content.st-ai-indic{font-size:18px;line-height:1.62;letter-spacing:.005em}
  .st-ai-meta{font-size:12px}
  .st-ai-statusbar{position:sticky;bottom:0;z-index:2}
  .st-ai-suggestions-wrap{padding-left:12px;padding-right:12px}
}

/* Listening waveform lives inside the mic button. */
.st-ai-wave{display:none;height:18px;align-items:center;justify-content:center;gap:2px}
.st-ai-wave i{display:block;width:2px;height:6px;border-radius:999px;background:currentColor;animation:st-ai-wave .8s ease-in-out infinite}
.st-ai-wave i:nth-child(2){animation-delay:.08s}
.st-ai-wave i:nth-child(3){animation-delay:.16s}
.st-ai-wave i:nth-child(4){animation-delay:.24s}
.st-ai-wave i:nth-child(5){animation-delay:.32s}
.st-ai-mic.listening .st-ai-mic-ico{display:none}
.st-ai-mic.listening .st-ai-wave{display:flex}
@keyframes st-ai-wave{
  0%,100%{height:5px;opacity:.65}
  50%{height:17px;opacity:1}
}

/* Better result/photo cards. */
.st-ai-media{
  position:relative;
  margin-top:12px;
  border:1px solid rgba(148,163,184,.24);
  border-radius:16px;
  overflow:hidden;
  background:#0f172a;
  box-shadow:0 10px 28px rgba(0,0,0,.22);
}
.st-ai-media-imgwrap{position:relative;background:#020617}
.st-ai-media img{width:100%;max-height:320px;object-fit:cover}
.st-ai-media-overlay{
  position:absolute;left:0;right:0;bottom:0;
  padding:30px 12px 10px;
  background:linear-gradient(transparent,rgba(2,6,23,.86));
  color:#fff;
}
.st-ai-media-title{font-size:14px;font-weight:800;line-height:1.3}
.st-ai-media-meta{display:flex;gap:6px;flex-wrap:wrap;padding:10px 11px 11px}
.st-ai-media-chip{
  display:inline-flex;align-items:center;gap:4px;
  padding:4px 8px;border-radius:999px;
  background:rgba(30,41,59,.94);
  border:1px solid rgba(148,163,184,.22);
  color:#dbeafe;font-size:11px;font-weight:650;
}
.st-ai-media-note{padding:0 11px 11px;font-size:12px;line-height:1.45;color:#cbd5e1}

/* Suggestions are easier to scan and explicitly numbered. */
.st-ai-chip{position:relative;padding-left:38px}
.st-ai-chip::before{
  content:attr(data-num);
  position:absolute;left:11px;top:10px;
  width:19px;height:19px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(59,130,246,.18);color:#93c5fd;
  font-size:10px;font-weight:800;
}

/* Desktop polish while preserving compact panel. */
@media(min-width:601px){
  .st-ai-body{max-height:480px}
}

/* v0.5.6 compact suggestions ------------------------------------------------ */
.st-ai-tools{row-gap:8px}
.st-ai-toggle-suggestions{
  border:1px solid rgba(255,255,255,.18);
  border-radius:10px;
  background:rgba(255,255,255,.06);
  color:inherit;
  padding:8px 12px;
  cursor:pointer;
  font-weight:700;
}
.st-ai-suggestions-wrap{
  display:none;
  padding:8px 14px 4px;
}
#st-ai-panel[data-suggestions-open="1"] .st-ai-suggestions-wrap{
  display:block;
}
.st-ai-suggestions-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.st-ai-suggestions-title{
  margin-bottom:0;
}
.st-ai-suggestions-mini{
  border:0;
  background:transparent;
  color:#93c5fd;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  padding:2px 4px;
}
.st-ai-suggestions{
  display:flex;
  overflow-x:auto;
  gap:8px;
  padding-bottom:2px;
  scrollbar-width:thin;
}
.st-ai-chip{
  flex:0 0 220px;
  min-height:52px;
  max-width:220px;
  padding:10px 12px 10px 38px;
  border-radius:13px;
}
.st-ai-chip::before{
  top:9px;
}
@media(max-width:600px){
  .st-ai-suggestions-wrap{padding-left:12px;padding-right:12px}
  .st-ai-chip{
    flex-basis:190px;
    max-width:190px;
    min-height:48px;
    font-size:12.5px;
  }
}

/* v0.5.7 compact controls -------------------------------------------------- */
.st-ai-tools{
  padding:8px 14px;
  gap:8px;
}
.st-ai-tools label{
  gap:6px;
  font-size:12px;
}
.st-ai-replay,
.st-ai-toggle-suggestions{
  width:42px;
  min-width:42px;
  height:40px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  line-height:1;
}
.st-ai-suggestions-head{
  justify-content:flex-end;
  margin-bottom:6px;
}
.st-ai-suggestions-title{
  display:none;
}
.st-ai-suggestions-mini{
  width:28px;
  height:28px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
}
.st-ai-form{
  padding-top:10px;
}
.st-ai-inputhint,
.st-ai-inputsub{
  display:none !important;
}
.st-ai-inputwrap{
  gap:0;
}
.st-ai-entry{
  grid-template-columns:56px 1fr 72px;
  gap:8px;
}
.st-ai-input{
  min-height:54px;
}
.st-ai-send{
  min-height:54px;
}
@media(max-width:600px){
  .st-ai-tools{
    padding:8px 12px;
  }
  .st-ai-replay,
  .st-ai-toggle-suggestions{
    width:40px;
    min-width:40px;
    height:38px;
    font-size:17px;
  }
  .st-ai-entry{
    grid-template-columns:54px 1fr 70px;
    gap:8px;
  }
}

.st-ai-link{color:#93c5fd;text-decoration:underline;text-underline-offset:2px}

/* v0.5.9 male voice only */
#st-ai-panel[data-state="ready"] .st-ai-statustext{white-space:nowrap}

/* v0.6.1 streaming voice status */
#st-ai-panel[data-state="speaking"] .st-ai-statushint{opacity:.9}

/* v0.7.1 microphone-limit login CTA */
.st-ai-login-cta{margin:10px 4px 14px;padding:12px;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(255,255,255,.06);display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.st-ai-login-copy{font-size:13px;line-height:1.35;flex:1;min-width:180px}
.st-ai-login-button{border:0;border-radius:999px;padding:9px 14px;font-weight:700;cursor:pointer;background:#fff;color:#111;white-space:nowrap}

/* v0.7.8 chat experience bar, language selector, Android input containment */
.st-ai-experience-bar{box-sizing:border-box;width:100%;padding:7px 10px;display:flex;gap:8px;align-items:center;flex-wrap:wrap;border-bottom:1px solid rgba(255,255,255,.09)}
.st-ai-language-button{max-width:100%;min-width:0;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.07);color:inherit;border-radius:999px;padding:7px 10px;display:flex;align-items:center;gap:6px;cursor:pointer;font-size:12px}
.st-ai-language-current{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st-ai-public-login-prompt{box-sizing:border-box;flex:1;min-width:220px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;line-height:1.3}
.st-ai-public-login-prompt[hidden]{display:none!important}
.st-ai-top-login-button{flex:0 0 auto;border:0;border-radius:999px;padding:7px 11px;font-weight:700;cursor:pointer;background:#fff;color:#111}
.st-ai-language-sheet{display:none;position:absolute;inset:0;z-index:9;background:rgba(0,0,0,.48);align-items:flex-end;justify-content:center;padding:10px;box-sizing:border-box}
.st-ai-language-sheet.open{display:flex}
.st-ai-language-sheet-inner{box-sizing:border-box;width:min(100%,440px);max-height:80%;overflow:auto;border-radius:18px;padding:14px;background:var(--st-ai-panel-bg,#151719);box-shadow:0 12px 50px rgba(0,0,0,.35)}
.st-ai-language-title{font-weight:800;margin-bottom:10px}
.st-ai-language-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.st-ai-language-option,.st-ai-language-close{box-sizing:border-box;min-width:0;border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.06);color:inherit;border-radius:11px;padding:9px;cursor:pointer;text-align:left}
.st-ai-language-option.selected{font-weight:800;border-color:rgba(255,255,255,.38)}
.st-ai-language-close{width:100%;margin-top:10px;text-align:center}

/* Force the composer and every child to stay within the mobile chat border. */
.st-ai-input-row,.st-ai-composer,.st-ai-input-wrap{box-sizing:border-box!important;max-width:100%!important;min-width:0!important}
.st-ai-input-row{width:100%!important;display:flex!important;align-items:flex-end!important;gap:6px!important;overflow:hidden!important}
.st-ai-input-row textarea,.st-ai-input-row input,.st-ai-composer textarea,.st-ai-composer input{box-sizing:border-box!important;flex:1 1 auto!important;width:auto!important;min-width:0!important;max-width:100%!important}
.st-ai-input-row button,.st-ai-composer button{box-sizing:border-box!important;flex:0 0 auto!important}

@media(max-width:600px){
  .st-ai-experience-bar{padding:6px 8px;display:block}
  .st-ai-language-button{width:100%;justify-content:flex-start}
  .st-ai-public-login-prompt{min-width:0;width:100%;margin-top:6px}
  .st-ai-language-options{grid-template-columns:1fr}
  .st-ai-input-row,.st-ai-composer{padding-left:7px!important;padding-right:7px!important;gap:5px!important}
  .st-ai-send,.st-ai-mic{flex:0 0 42px!important;width:42px!important;max-width:42px!important;padding-left:0!important;padding-right:0!important}
}
@media(max-width:380px){
  .st-ai-send,.st-ai-mic{flex-basis:38px!important;width:38px!important;max-width:38px!important}
}


/* v0.8.0 welcome card for sign-in and voice language */
.st-ai-welcome-card{position:relative;overflow:hidden;background:linear-gradient(180deg,rgba(37,99,235,.16),rgba(29,43,59,.96));border:1px solid rgba(147,197,253,.22)}
.st-ai-welcome-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.st-ai-welcome-language,.st-ai-welcome-login{border:1px solid rgba(255,255,255,.16);border-radius:999px;padding:9px 12px;background:rgba(255,255,255,.08);color:inherit;cursor:pointer;font-weight:700;font-size:13px}
.st-ai-welcome-language{display:inline-flex;align-items:center;gap:6px}
.st-ai-welcome-login{background:linear-gradient(180deg,#f8fbff,#dbeafe);border-color:#93c5fd;color:#0f172a}
.st-ai-welcome-login[hidden]{display:none!important}
.st-ai-welcome-sub{margin-top:10px;font-size:12px;line-height:1.4;color:#cbd5e1}
@media(max-width:600px){
  .st-ai-welcome-actions{flex-direction:column;align-items:stretch}
  .st-ai-welcome-language,.st-ai-welcome-login{width:100%;justify-content:center}
}


/* v0.8.9 desktop-web full-screen Sunny -------------------------------------
   Desktop/browser only. Mobile <=600px keeps the existing mobile layout. */
@media (min-width:601px){
  #st-ai-panel{
    inset:0;
    top:0;
    right:0;
    bottom:0;
    left:0;
    width:100vw;
    max-width:none;
    height:100dvh;
    max-height:none;
    border-radius:0;
    border:0;
    box-shadow:none;
  }

  #st-ai-panel.open{
    display:flex;
    flex-direction:column;
  }

  .st-ai-head{
    flex:0 0 auto;
    padding:14px 24px;
  }

  .st-ai-body{
    flex:1 1 auto;
    min-height:0;
    max-height:none;
    width:min(1100px,calc(100% - 48px));
    box-sizing:border-box;
    margin:0 auto;
    padding:20px 0 12px;
  }

  .st-ai-msg{
    max-width:min(820px,78%);
  }

  .st-ai-user{
    align-self:flex-end;
    margin-left:auto;
  }

  .st-ai-bot{
    align-self:flex-start;
    margin-right:auto;
  }

  .st-ai-statusbar,
  .st-ai-tools,
  .st-ai-suggestions-wrap,
  .st-ai-form{
    flex:0 0 auto;
    box-sizing:border-box;
  }

  .st-ai-statusbar{
    padding-left:max(24px,calc((100vw - 1100px)/2));
    padding-right:max(24px,calc((100vw - 1100px)/2));
  }

  .st-ai-tools{
    width:min(1100px,calc(100% - 48px));
    margin:0 auto;
    padding:8px 0;
  }

  /* Suggestions remain permanently visible on desktop web. */
  .st-ai-toggle-suggestions,
  .st-ai-suggestions-mini{
    display:none !important;
  }

  .st-ai-suggestions-wrap,
  #st-ai-panel[data-suggestions-open="0"] .st-ai-suggestions-wrap,
  #st-ai-panel[data-suggestions-open="1"] .st-ai-suggestions-wrap{
    display:block !important;
    width:min(1100px,calc(100% - 48px));
    margin:0 auto;
    padding:8px 0 10px;
  }

  .st-ai-suggestions-head{
    display:none;
  }

  .st-ai-suggestions{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    overflow:visible;
    padding:0;
  }

  .st-ai-chip{
    width:100%;
    max-width:none;
    min-width:0;
    min-height:52px;
    flex:none;
  }

  .st-ai-form{
    width:100%;
    padding:12px max(24px,calc((100vw - 1100px)/2)) 18px;
  }

  .st-ai-entry{
    grid-template-columns:64px minmax(0,1fr) 84px;
  }

  .st-ai-input{
    width:100%;
    box-sizing:border-box;
  }
}

@supports not (height:100dvh){
  @media (min-width:601px){
    #st-ai-panel{height:100vh}
  }
}

/* v0.9.2 anti-bot honeypot */
.st-ai-honeypot{
  position:absolute !important;
  left:-10000px !important;
  top:auto !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
}


/* v0.9.5 desktop fresh-chat question catalogue -------------------------- */
.st-ai-inline-question-title,
.st-ai-inline-questions{display:none}

@media (min-width:601px){
  /* The complete question catalogue lives in the welcome card on fresh chat. */
  .st-ai-welcome-card{
    max-width:min(920px,92%)!important;
    width:min(920px,92%);
    box-sizing:border-box;
  }

  .st-ai-inline-question-title{
    display:block;
    margin-top:16px;
    padding-top:14px;
    border-top:1px solid rgba(255,255,255,.10);
    font-size:13px;
    font-weight:800;
    letter-spacing:.02em;
    color:var(--t,#eef8fc);
  }

  .st-ai-inline-questions{
    display:flex;
    flex-direction:column;
    gap:6px;
    margin-top:8px;
  }

  .st-ai-inline-questions[hidden],
  .st-ai-inline-question-title[hidden]{
    display:none!important;
  }

  .st-ai-inline-question{
    width:100%;
    min-height:46px;
    display:grid;
    grid-template-columns:34px minmax(0,1fr);
    align-items:center;
    gap:10px;
    text-align:left;
    border:1px solid rgba(103,216,255,.16);
    border-radius:12px;
    background:rgba(8,27,40,.72);
    color:inherit;
    padding:9px 12px;
    cursor:pointer;
    font:inherit;
  }

  .st-ai-inline-question:hover,
  .st-ai-inline-question:focus-visible{
    border-color:rgba(103,216,255,.52);
    background:rgba(12,40,57,.96);
    outline:none;
  }

  .st-ai-inline-question-num{
    width:28px;
    height:28px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:rgba(90,203,255,.12);
    color:#9fe5ff;
    font-size:11px;
    font-weight:800;
  }

  /* Bottom fixed suggestions are intentionally removed on desktop. */
  .st-ai-suggestions-wrap,
  #st-ai-panel[data-suggestions-open="0"] .st-ai-suggestions-wrap,
  #st-ai-panel[data-suggestions-open="1"] .st-ai-suggestions-wrap{
    display:none!important;
  }

  /* Allow the full fresh-chat catalogue to scroll naturally in the main body. */
  .st-ai-body{
    overflow-y:auto!important;
  }
}


/* v0.9.6 professional desktop opening layout ----------------------------- */
.st-ai-landing[hidden]{display:none!important}

@media (min-width:601px){
  .st-ai-body{
    width:min(1180px,calc(100% - 48px));
    gap:16px;
    padding:18px 0 14px;
  }

  .st-ai-landing{
    width:100%;
    max-width:1040px;
    align-self:center;
    display:flex;
    flex-direction:column;
    gap:14px;
  }

  .st-ai-welcome-card{
    max-width:none!important;
    width:100%!important;
    margin:0;
    padding:22px 26px 18px;
    border-radius:24px;
    background:
      radial-gradient(1200px 320px at 0% 0%, rgba(34,211,238,.10), transparent 60%),
      radial-gradient(700px 220px at 100% 0%, rgba(59,130,246,.16), transparent 60%),
      linear-gradient(180deg, rgba(10,27,45,.96), rgba(11,28,44,.90));
    border:1px solid rgba(148,163,184,.18);
    box-shadow:
      0 14px 34px rgba(0,0,0,.24),
      inset 0 1px 0 rgba(255,255,255,.05);
    box-sizing:border-box;
  }

  .st-ai-meta{
    color:#b8c9da;
    font-size:13px;
    font-weight:700;
    letter-spacing:.02em;
    margin-bottom:8px;
  }

  .st-ai-hero-title{
    font-size:30px;
    line-height:1.12;
    font-weight:900;
    color:#f8fbff;
    margin:0 0 8px;
  }

  .st-ai-hero-copy{
    max-width:860px;
    font-size:16px;
    line-height:1.5;
    color:#d9e7f1;
    margin:0;
  }

  .st-ai-welcome-actions{
    margin-top:16px;
    gap:10px;
  }

  .st-ai-welcome-language,
  .st-ai-welcome-login{
    min-height:42px;
    padding:10px 16px;
    border-radius:999px;
    font-size:14px;
    font-weight:800;
    box-shadow:0 6px 16px rgba(0,0,0,.10);
  }

  .st-ai-welcome-language{
    background:rgba(255,255,255,.06);
    border-color:rgba(255,255,255,.14);
  }

  .st-ai-welcome-login{
    background:linear-gradient(180deg,#ffffff,#e5f0ff);
    border-color:#b4d0ff;
    color:#0b1220;
  }

  .st-ai-welcome-sub{
    margin-top:10px;
    font-size:13px;
    line-height:1.45;
    color:#b8c9da;
  }

  .st-ai-inline-panel{
    width:100%;
    box-sizing:border-box;
    padding:16px 18px 18px;
    border-radius:22px;
    background:linear-gradient(180deg, rgba(11,27,41,.92), rgba(9,21,33,.96));
    border:1px solid rgba(148,163,184,.16);
    box-shadow:0 12px 28px rgba(0,0,0,.20);
  }

  .st-ai-inline-panel[hidden]{
    display:none!important;
  }

  .st-ai-inline-question-title{
    display:block;
    margin:0 0 12px;
    padding:0 0 10px;
    border-top:0;
    border-bottom:1px solid rgba(255,255,255,.08);
    font-size:14px;
    font-weight:900;
    letter-spacing:.02em;
    color:#eef7ff;
  }

  .st-ai-inline-questions{
    display:flex;
    flex-direction:column;
    gap:8px;
    margin-top:0;
  }

  .st-ai-inline-question{
    width:100%;
    min-height:52px;
    display:grid;
    grid-template-columns:38px minmax(0,1fr);
    align-items:center;
    gap:12px;
    text-align:left;
    border:1px solid rgba(88,166,255,.16);
    border-radius:14px;
    background:rgba(255,255,255,.03);
    color:#f4fbff;
    padding:10px 14px;
    cursor:pointer;
    font:inherit;
    transition:transform .08s ease,border-color .15s ease,background .15s ease,box-shadow .15s ease;
  }

  .st-ai-inline-question:hover,
  .st-ai-inline-question:focus-visible{
    border-color:rgba(103,216,255,.50);
    background:rgba(19,53,76,.92);
    box-shadow:0 8px 20px rgba(0,0,0,.16);
    transform:translateY(-1px);
    outline:none;
  }

  .st-ai-inline-question-num{
    width:30px;
    height:30px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:linear-gradient(180deg, rgba(56,189,248,.18), rgba(37,99,235,.18));
    border:1px solid rgba(103,216,255,.18);
    color:#a8ebff;
    font-size:12px;
    font-weight:900;
  }

  .st-ai-inline-question-text{
    line-height:1.35;
    color:#f5fbff;
  }

  .st-ai-suggestions-wrap,
  #st-ai-panel[data-suggestions-open="0"] .st-ai-suggestions-wrap,
  #st-ai-panel[data-suggestions-open="1"] .st-ai-suggestions-wrap{
    display:none!important;
  }

  .st-ai-user,
  .st-ai-bot{
    max-width:min(860px,78%);
  }
}

@media (min-width:601px) and (max-height:820px){
  .st-ai-welcome-card{
    padding:18px 22px 16px;
  }
  .st-ai-hero-title{
    font-size:26px;
  }
  .st-ai-hero-copy{
    font-size:15px;
  }
}


/* v0.9.7 approved Sunny desktop design ----------------------------------- */
@media (min-width:601px){
  #st-ai-panel{
    overflow:hidden!important;
  }

  .st-ai-head{
    height:64px;
    min-height:64px;
    padding:0 30px!important;
    display:flex;
    align-items:center;
    background:rgba(5,16,29,.96);
    border-bottom:1px solid rgba(148,163,184,.12);
  }

  .st-ai-title{
    font-size:18px;
    font-weight:850;
  }

  .st-ai-body{
    flex:1 1 auto;
    min-height:0;
    width:min(1180px,calc(100% - 64px));
    margin:0 auto;
    padding:24px 0 12px;
    overflow-y:auto!important;
    scrollbar-width:thin;
  }

  .st-ai-landing{
    width:100%;
    max-width:none;
    gap:16px;
  }

  .st-ai-welcome-card{
    width:100%!important;
    max-width:none!important;
    padding:22px 28px 20px!important;
    border-radius:20px!important;
    min-height:150px;
    background:
      radial-gradient(700px 260px at 86% 42%,rgba(0,174,255,.13),transparent 64%),
      linear-gradient(180deg,rgba(7,26,44,.96),rgba(8,22,37,.96))!important;
    border:1px solid rgba(74,154,218,.22)!important;
    box-shadow:none!important;
  }

  .st-ai-hero-title{
    margin:0 0 14px!important;
    font-size:31px!important;
    font-weight:900!important;
    line-height:1.12!important;
  }

  .st-ai-hero-title span{
    color:#20b9ff;
  }

  .st-ai-hero-copy{
    font-size:15px!important;
    line-height:1.7!important;
    color:#d0dbe6!important;
    max-width:720px!important;
  }

  .st-ai-welcome-login-link{
    appearance:none;
    border:0;
    background:none;
    padding:0;
    margin:0 0 0 5px;
    color:#4cc9ff;
    font:inherit;
    cursor:pointer;
    text-decoration:none;
  }

  .st-ai-welcome-login-link:hover,
  .st-ai-welcome-login-link:focus-visible{
    color:#7cddff;
    text-decoration:underline;
    outline:none;
  }

  .st-ai-welcome-login-link[hidden]{display:none!important}

  .st-ai-inline-panel{
    padding:14px 0 0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  .st-ai-inline-question-title{
    margin:0 0 12px!important;
    padding:0!important;
    border:0!important;
    font-size:16px!important;
    font-weight:850!important;
  }

  .st-ai-inline-questions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px 14px!important;
  }

  .st-ai-inline-question{
    min-height:64px!important;
    grid-template-columns:32px minmax(0,1fr) 22px!important;
    gap:12px!important;
    border:1px solid rgba(77,135,190,.28)!important;
    border-radius:14px!important;
    background:linear-gradient(180deg,rgba(16,39,62,.78),rgba(9,28,47,.78))!important;
    padding:10px 14px!important;
  }

  .st-ai-inline-question:hover,
  .st-ai-inline-question:focus-visible{
    transform:none!important;
    border-color:rgba(68,188,255,.55)!important;
    background:linear-gradient(180deg,rgba(19,52,80,.92),rgba(10,34,55,.92))!important;
  }

  .st-ai-inline-question-num{
    width:28px!important;
    height:28px!important;
    font-size:12px!important;
  }

  .st-ai-inline-question-text{
    font-size:14px;
    font-weight:650;
  }

  .st-ai-inline-question-arrow{
    color:#d7e5f2;
    font-size:27px;
    line-height:1;
    justify-self:end;
  }

  /* Single small status strip above composer. */
  .st-ai-statusbar{
    flex:0 0 auto;
    width:min(1180px,calc(100% - 64px));
    margin:0 auto;
    padding:7px 2px 5px!important;
    border:0!important;
    background:transparent!important;
    font-size:12px;
  }

  .st-ai-statushint{
    display:none!important;
  }

  .st-ai-suggestions-wrap{
    display:none!important;
  }

  /* ChatGPT-like composer. */
  .st-ai-form{
    flex:0 0 auto;
    width:100%;
    padding:0 max(32px,calc((100vw - 1180px)/2)) 18px!important;
    border:0!important;
    background:linear-gradient(180deg,rgba(5,16,29,0),rgba(5,16,29,.96) 28%)!important;
  }

  .st-ai-composer{
    min-height:68px;
    display:grid;
    grid-template-columns:auto 1px minmax(0,1fr) 48px 50px;
    align-items:center;
    gap:10px;
    padding:8px 10px 8px 14px;
    border:1px solid rgba(75,150,214,.38);
    border-radius:34px;
    background:linear-gradient(180deg,rgba(24,45,68,.98),rgba(16,35,56,.98));
    box-shadow:0 8px 28px rgba(0,0,0,.28);
  }

  .st-ai-composer:focus-within{
    border-color:#2ebcff;
    box-shadow:0 0 0 1px rgba(46,188,255,.24),0 8px 28px rgba(0,0,0,.28);
  }

  .st-ai-lang{
    appearance:none;
    -webkit-appearance:none;
    min-width:160px;
    max-width:190px;
    height:44px;
    border:0!important;
    border-radius:22px!important;
    padding:0 34px 0 14px!important;
    background:
      linear-gradient(45deg,transparent 50%,#b7c9d9 50%) calc(100% - 17px) 20px/5px 5px no-repeat,
      linear-gradient(135deg,#b7c9d9 50%,transparent 50%) calc(100% - 12px) 20px/5px 5px no-repeat,
      rgba(255,255,255,.04)!important;
    color:#eaf4fb!important;
    font-size:13px!important;
    font-weight:700;
    cursor:pointer;
  }

  .st-ai-composer-divider{
    width:1px;
    height:28px;
    background:rgba(255,255,255,.10);
  }

  .st-ai-inputwrap{
    min-width:0;
  }

  .st-ai-input{
    width:100%;
    height:46px;
    padding:0 8px!important;
    border:0!important;
    outline:0!important;
    background:transparent!important;
    color:#f3f8fc!important;
    font-size:15px!important;
    box-shadow:none!important;
  }

  .st-ai-input::placeholder{
    color:#8da0b3;
  }

  .st-ai-mic,
  .st-ai-send{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    min-height:44px!important;
    max-width:44px!important;
    border-radius:50%!important;
    padding:0!important;
    display:grid!important;
    place-items:center!important;
  }

  .st-ai-mic{
    border:1px solid rgba(121,174,218,.26)!important;
    background:rgba(4,20,37,.60)!important;
  }

  .st-ai-send{
    border:1px solid rgba(73,190,255,.55)!important;
    background:linear-gradient(180deg,#238cff,#1563f4)!important;
    box-shadow:0 0 20px rgba(25,139,255,.28);
  }

  .st-ai-mic-label,
  .st-ai-send-label{
    display:none!important;
  }

  .st-ai-mic-ico svg{
    width:22px!important;
    height:22px!important;
  }

  .st-ai-send-ico{
    font-size:20px!important;
    line-height:1!important;
  }

  /* No duplicate/legacy controls. */
  .st-ai-tools,
  .st-ai-autoplay,
  .st-ai-replay,
  .st-ai-toggle-suggestions{
    display:none!important;
  }
}

@media (min-width:601px) and (max-width:900px){
  .st-ai-inline-questions{
    grid-template-columns:1fr!important;
  }
  .st-ai-composer{
    grid-template-columns:auto 1px minmax(0,1fr) 44px 46px;
  }
  .st-ai-lang{
    min-width:130px;
    max-width:150px;
  }
}


/* v0.9.8 compact rolling suggestions inside desktop status bar ----------- */
@media (min-width:601px){
  .st-ai-statusbar{
    display:flex!important;
    align-items:center!important;
    gap:14px!important;
    min-height:36px;
    overflow:hidden;
  }

  .st-ai-status-state{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    gap:8px;
    white-space:nowrap;
    padding-right:13px;
    border-right:1px solid rgba(255,255,255,.10);
  }

  .st-ai-status-suggestions{
    min-width:0;
    flex:1 1 auto;
    display:flex;
    align-items:center;
    gap:7px;
    overflow:hidden;
    white-space:nowrap;
  }

  .st-ai-status-suggestions-label{
    flex:0 0 auto;
    color:#71869a;
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.045em;
  }

  .st-ai-status-suggestion-list{
    min-width:0;
    flex:1 1 auto;
    display:flex;
    align-items:center;
    gap:6px;
    overflow:hidden;
    white-space:nowrap;
  }

  .st-ai-status-suggestion{
    flex:0 1 auto;
    min-width:0;
    max-width:260px;
    height:27px;
    padding:0 11px;
    border:1px solid rgba(74,155,214,.22);
    border-radius:999px;
    background:rgba(20,45,67,.62);
    color:#bcd2e3;
    font:inherit;
    font-size:11px;
    font-weight:650;
    cursor:pointer;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    transition:border-color .14s ease,background .14s ease,color .14s ease;
  }

  .st-ai-status-suggestion:hover,
  .st-ai-status-suggestion:focus-visible{
    border-color:rgba(66,190,255,.58);
    background:rgba(20,65,91,.86);
    color:#effaff;
    outline:none;
  }

  #st-ai-panel[data-state="thinking"] .st-ai-status-suggestion,
  #st-ai-panel[data-state="listening"] .st-ai-status-suggestion,
  #st-ai-panel[data-state="speaking"] .st-ai-status-suggestion{
    opacity:.48;
    cursor:default;
    pointer-events:none;
  }
}

@media (min-width:601px) and (max-width:980px){
  .st-ai-status-suggestion-list .st-ai-status-suggestion:nth-child(n+3){
    display:none;
  }
}

@media (min-width:601px) and (max-width:760px){
  .st-ai-status-suggestion-list .st-ai-status-suggestion:nth-child(n+2){
    display:none;
  }
  .st-ai-status-suggestions-label{
    display:none;
  }
}


/* v0.9.9 language selector immediately before Mic ------------------------ */
@media (min-width:601px){
  .st-ai-composer{
    grid-template-columns:minmax(0,1fr) auto 1px 48px 50px!important;
  }

  .st-ai-lang{
    min-width:118px!important;
    max-width:150px!important;
    width:auto!important;
    margin-left:6px;
  }

  .st-ai-composer-divider{
    margin-left:0;
  }
}

@media (min-width:601px) and (max-width:900px){
  .st-ai-composer{
    grid-template-columns:minmax(0,1fr) auto 1px 44px 46px!important;
  }

  .st-ai-lang{
    min-width:104px!important;
    max-width:128px!important;
  }
}


/* v1.0.0 apply the same Sunny design language to mobile ------------------ */
@media (max-width:600px){
  #st-ai-panel{
    top:max(8px,env(safe-area-inset-top));
    right:8px;
    bottom:max(8px,env(safe-area-inset-bottom));
    left:8px;
    width:auto;
    max-height:calc(100dvh - max(16px,env(safe-area-inset-top)) - max(16px,env(safe-area-inset-bottom)));
    border-radius:18px;
    overflow:hidden!important;
  }

  .st-ai-head{
    height:58px;
    min-height:58px;
    padding:0 14px!important;
    display:flex;
    align-items:center;
    background:rgba(5,16,29,.96)!important;
    border-bottom:1px solid rgba(148,163,184,.12)!important;
  }

  .st-ai-title{
    font-size:16px;
    font-weight:850;
  }

  .st-ai-body{
    width:calc(100% - 24px);
    margin:0 auto;
    padding:14px 0 10px!important;
    gap:12px;
    overflow-y:auto!important;
  }

  .st-ai-landing{
    width:100%;
    display:flex;
    flex-direction:column;
    gap:12px;
  }

  .st-ai-welcome-card{
    width:100%!important;
    max-width:none!important;
    padding:16px 16px 14px!important;
    border-radius:18px!important;
    background:
      radial-gradient(520px 180px at 100% 40%, rgba(0,174,255,.12), transparent 64%),
      linear-gradient(180deg,rgba(7,26,44,.96),rgba(8,22,37,.96))!important;
    border:1px solid rgba(74,154,218,.22)!important;
    box-shadow:none!important;
  }

  .st-ai-hero-title{
    margin:0 0 10px!important;
    font-size:24px!important;
    font-weight:900!important;
    line-height:1.15!important;
  }

  .st-ai-hero-title span{
    color:#20b9ff;
  }

  .st-ai-hero-copy{
    font-size:13px!important;
    line-height:1.55!important;
    color:#d0dbe6!important;
    max-width:none!important;
  }

  .st-ai-welcome-login-link{
    appearance:none;
    border:0;
    background:none;
    padding:0;
    margin:0 0 0 4px;
    color:#4cc9ff;
    font:inherit;
    cursor:pointer;
  }

  .st-ai-inline-panel{
    padding:8px 0 0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  .st-ai-inline-question-title{
    margin:0 0 10px!important;
    padding:0!important;
    border:0!important;
    font-size:14px!important;
    font-weight:850!important;
    color:#eef7ff!important;
  }

  .st-ai-inline-questions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
  }

  .st-ai-inline-question{
    min-height:58px!important;
    grid-template-columns:28px minmax(0,1fr) 18px!important;
    gap:8px!important;
    border:1px solid rgba(77,135,190,.28)!important;
    border-radius:14px!important;
    background:linear-gradient(180deg,rgba(16,39,62,.78),rgba(9,28,47,.78))!important;
    padding:10px 10px!important;
  }

  .st-ai-inline-question-num{
    width:24px!important;
    height:24px!important;
    font-size:11px!important;
  }

  .st-ai-inline-question-text{
    font-size:12.5px;
    line-height:1.3;
    font-weight:650;
  }

  .st-ai-inline-question-arrow{
    color:#d7e5f2;
    font-size:22px;
    line-height:1;
    justify-self:end;
  }

  .st-ai-statusbar{
    position:static!important;
    width:calc(100% - 24px);
    margin:0 auto;
    padding:6px 0 4px!important;
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    min-height:32px;
    background:transparent!important;
    border:0!important;
    overflow:hidden;
  }

  .st-ai-status-state{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    gap:6px;
    white-space:nowrap;
    padding-right:8px;
    border-right:1px solid rgba(255,255,255,.10);
  }

  .st-ai-statushint{
    display:none!important;
  }

  .st-ai-status-suggestions{
    min-width:0;
    flex:1 1 auto;
    display:flex;
    align-items:center;
    gap:6px;
    overflow:hidden;
    white-space:nowrap;
  }

  .st-ai-status-suggestions-label{
    display:none!important;
  }

  .st-ai-status-suggestion-list{
    min-width:0;
    flex:1 1 auto;
    display:flex;
    align-items:center;
    gap:6px;
    overflow:hidden;
    white-space:nowrap;
  }

  .st-ai-status-suggestion{
    flex:0 1 auto;
    min-width:0;
    max-width:46%;
    height:26px;
    padding:0 10px;
    border:1px solid rgba(74,155,214,.22);
    border-radius:999px;
    background:rgba(20,45,67,.62);
    color:#bcd2e3;
    font:inherit;
    font-size:11px;
    font-weight:650;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .st-ai-suggestions-wrap,
  .st-ai-tools,
  .st-ai-autoplay,
  .st-ai-replay,
  .st-ai-toggle-suggestions{
    display:none!important;
  }

  .st-ai-form{
    width:100%;
    padding:0 12px calc(12px + env(safe-area-inset-bottom))!important;
    border:0!important;
    background:linear-gradient(180deg,rgba(5,16,29,0),rgba(5,16,29,.96) 28%)!important;
  }

  .st-ai-composer{
    min-height:60px;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto 1px 42px 44px!important;
    align-items:center;
    gap:6px!important;
    padding:6px 8px 6px 12px!important;
    border:1px solid rgba(75,150,214,.38)!important;
    border-radius:28px!important;
    background:linear-gradient(180deg,rgba(24,45,68,.98),rgba(16,35,56,.98))!important;
    box-shadow:0 8px 24px rgba(0,0,0,.24);
  }

  .st-ai-inputwrap{
    min-width:0;
  }

  .st-ai-input{
    width:100%;
    height:42px;
    padding:0 6px!important;
    border:0!important;
    outline:0!important;
    background:transparent!important;
    color:#f3f8fc!important;
    font-size:14px!important;
    box-shadow:none!important;
  }

  .st-ai-input::placeholder{
    color:#8da0b3;
  }

  .st-ai-lang{
    appearance:none;
    -webkit-appearance:none;
    min-width:80px!important;
    max-width:92px!important;
    height:38px;
    border:0!important;
    border-radius:18px!important;
    padding:0 24px 0 10px!important;
    background:
      linear-gradient(45deg,transparent 50%,#b7c9d9 50%) calc(100% - 14px) 17px/4px 4px no-repeat,
      linear-gradient(135deg,#b7c9d9 50%,transparent 50%) calc(100% - 10px) 17px/4px 4px no-repeat,
      rgba(255,255,255,.04)!important;
    color:#eaf4fb!important;
    font-size:12px!important;
    font-weight:700;
    cursor:pointer;
    margin-left:2px;
  }

  .st-ai-composer-divider{
    width:1px;
    height:24px;
    background:rgba(255,255,255,.10);
  }

  .st-ai-mic,
  .st-ai-send{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    min-height:38px!important;
    max-width:38px!important;
    border-radius:50%!important;
    padding:0!important;
    display:grid!important;
    place-items:center!important;
  }

  .st-ai-mic{
    border:1px solid rgba(121,174,218,.26)!important;
    background:rgba(4,20,37,.60)!important;
  }

  .st-ai-send{
    border:1px solid rgba(73,190,255,.55)!important;
    background:linear-gradient(180deg,#238cff,#1563f4)!important;
    box-shadow:0 0 18px rgba(25,139,255,.24);
  }

  .st-ai-mic-label,
  .st-ai-send-label{
    display:none!important;
  }

  .st-ai-mic-ico svg{
    width:19px!important;
    height:19px!important;
  }

  .st-ai-send-ico{
    font-size:18px!important;
    line-height:1!important;
  }

  .st-ai-user,
  .st-ai-bot{
    max-width:92%;
  }
}

@media (max-width:420px){
  .st-ai-inline-questions{
    grid-template-columns:1fr!important;
  }
  .st-ai-status-suggestion{
    max-width:48%;
  }
  .st-ai-lang{
    min-width:72px!important;
    max-width:84px!important;
  }
}


/* v1.0.1 mobile question color + mobile status-bar language -------------- */
.st-ai-lang-mobile{
  display:none;
}

@media (max-width:600px){
  /* Explicit dark-theme foreground to defeat inherited mobile button styles. */
  .st-ai-inline-question,
  .st-ai-inline-question:hover,
  .st-ai-inline-question:active,
  .st-ai-inline-question:focus,
  .st-ai-inline-question:focus-visible{
    color:#eef7ff!important;
    -webkit-text-fill-color:#eef7ff!important;
  }

  .st-ai-inline-question-text{
    color:#eef7ff!important;
    -webkit-text-fill-color:#eef7ff!important;
    opacity:1!important;
  }

  .st-ai-inline-question-num{
    color:#dff4ff!important;
    -webkit-text-fill-color:#dff4ff!important;
    background:rgba(24,132,206,.28)!important;
    border-color:rgba(85,194,255,.34)!important;
  }

  .st-ai-inline-question-arrow{
    color:#cfeeff!important;
    -webkit-text-fill-color:#cfeeff!important;
  }

  /* Mobile only: language selector moves to status bar. */
  .st-ai-lang{
    display:none!important;
  }

  .st-ai-composer-divider{
    display:none!important;
  }

  .st-ai-lang-mobile{
    display:block!important;
    appearance:none;
    -webkit-appearance:none;
    flex:0 0 auto;
    width:86px;
    max-width:86px;
    height:28px;
    border:1px solid rgba(74,155,214,.24)!important;
    border-radius:999px!important;
    padding:0 23px 0 9px!important;
    background:
      linear-gradient(45deg,transparent 50%,#b7c9d9 50%) calc(100% - 13px) 12px/4px 4px no-repeat,
      linear-gradient(135deg,#b7c9d9 50%,transparent 50%) calc(100% - 9px) 12px/4px 4px no-repeat,
      rgba(20,45,67,.62)!important;
    color:#dcecf8!important;
    -webkit-text-fill-color:#dcecf8!important;
    font-size:11px!important;
    font-weight:700;
    cursor:pointer;
    line-height:28px;
  }

  .st-ai-lang-mobile option{
    color:#111!important;
    -webkit-text-fill-color:#111!important;
  }

  /* More room for typing: input + mic + send only on mobile. */
  .st-ai-composer{
    grid-template-columns:minmax(0,1fr) 42px 44px!important;
    gap:7px!important;
  }

  .st-ai-statusbar{
    gap:7px!important;
  }

  .st-ai-status-state{
    padding-right:7px;
  }

  /* Keep one compact rolling suggestion visible on narrow mobile status bar. */
  .st-ai-status-suggestion-list .st-ai-status-suggestion:nth-child(n+2){
    display:none!important;
  }

  .st-ai-status-suggestion{
    max-width:100%!important;
  }
}

@media (max-width:420px){
  .st-ai-lang-mobile{
    width:78px;
    max-width:78px;
    padding-left:8px!important;
    font-size:10.5px!important;
  }
}
