/* liquid.css v2 — flat Apple-style Liquid Glass. Loaded last.
   Rules: flat (no 3D bevels), uniform thin rim (NO bright corners), almost no blur.
   The "glass" look comes from BEND (edge refraction, done by liquid.js in Chromium) + a faint tint,
   not from frosting. Safari/Firefox get the same flat tint + a hair of blur.
   Pills everywhere: top bar, tabs, buttons, inputs, sliders, switches. Press = scale + spring + glint. */

:root{
  --lq-ez: cubic-bezier(.3,1.5,.5,1);          /* springy overshoot */
  --lq-ez2: cubic-bezier(.25,.9,.3,1);
  --lq-tint: rgba(255,255,255,.055);
  --lq-rim: inset 0 0 0 1px rgba(255,255,255,.15);
  --lq-sh: 0 6px 18px rgba(0,0,0,.22);
  --lq-blur: blur(1.2px) saturate(1.25) brightness(1.06);
}

/* ---------- glass surface (flat, uniform rim) ---------- */
html body.vui #mainChat .vtop.vtop,
html body.vui #mainChat .vtop .vseg-pill.vseg-pill,
html body #code>header.topbar #cdBack,
html body #code>header.topbar #cdTog,
html body #code>header.topbar .seg.seg.seg,
html body #code>header.topbar .seg .lg-thumb.lg-thumb,
html body.vui #mainChat .composer.composer.composer,
html body #code .cd-in.cd-in.cd-in,
html body #sideChat .xnav button.on.on,
html body #sideChat .chat-i.on.on,
html body .cd-tabs button.on.on.on,
html body #tbPreview.on.on,
html body .stabs button.on.on.on,
html body .sv-tab.on.on.on,
html body .sv-chip.on.on.on,
html body .bnav.glass,
html body .bnav-wrap .circle.glass,
html body .searchbar.glass,
html body .btn.glass,
html body .toast.glass,
html body .install.glass,
html body #sideChat .sbar .sin,
html body input.field,
html body select.field,
html body textarea.field,
html body.vui #mainChat .composer .icon-btn#attBtn.open.open,
html body.vui .vgl button.open.open {
  background: var(--lq-tint) !important;
  -webkit-backdrop-filter: var(--lq-blur) !important;
          backdrop-filter: var(--lq-blur) !important;
  border: 0 !important;
  color: #fff;
  box-shadow: var(--lq-rim), var(--lq-sh) !important;
}
html body input.field,html body select.field,html body textarea.field{box-shadow:var(--lq-rim)!important;background:rgba(255,255,255,.06)!important}

/* big readable surfaces keep a darker tint so text stays clear */
html body.vui #mainChat .composer.composer.composer,
html body #code .cd-in.cd-in.cd-in{
  background: rgba(30,30,34,.38) !important;
  -webkit-backdrop-filter: blur(2.5px) saturate(1.3) brightness(1.04) !important;
          backdrop-filter: blur(2.5px) saturate(1.3) brightness(1.04) !important;
}
html body .sheet.glass{
  background: rgba(24,24,27,.94) !important;
  -webkit-backdrop-filter: blur(5px) saturate(1.3) !important; backdrop-filter: blur(5px) saturate(1.3) !important;
  box-shadow: var(--lq-rim), 0 20px 50px rgba(0,0,0,.45) !important; border:0 !important;
}
html body.vui #mainChat .composer.composer.composer:focus-within,
html body.vui #mainChat .composer.composer.composer.focus{
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 0 0 4px rgba(255,255,255,.06), 0 10px 26px rgba(0,0,0,.3) !important;
}

/* rim needs positioning, but never touch already-positioned things */
html body.vui #mainChat .vtop.vtop,
html body #code>header.topbar #cdBack,
html body #code>header.topbar #cdTog,
html body #code>header.topbar .seg.seg.seg,
html body.vui #mainChat .composer.composer.composer,
html body #code .cd-in.cd-in.cd-in,
html body #sideChat .xnav button.on.on,
html body #sideChat .chat-i.on.on,
html body .cd-tabs button.on.on.on,
html body #tbPreview.on.on,
html body .stabs button.on.on.on,
html body .sv-tab.on.on.on,
html body .sv-chip.on.on.on { position: relative; }

/* ---------- top bar = ONE pill ---------- */
html body.vui #mainChat .vtop.vtop{
  max-width: min(100%, 560px); margin: 0 auto; padding: 4px 5px; border-radius: 999px;
  isolation: isolate;
}
html body.vui #mainChat .vtop .vc.vc.vc,
html body.vui #mainChat .vtop .vgl.vgl.vgl{
  background: none !important; box-shadow: none !important; border: 0 !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
html body.vui #mainChat .vtop .vgl.vgl.vgl{ padding: 0 2px; }
html body.vui #mainChat .vtop .vseg-pill.vseg-pill{ background: rgba(255,255,255,.12) !important; box-shadow: var(--lq-rim) !important; }

/* ---------- glint on press (moving highlight, no corner bevel) ---------- */
html body.vui #mainChat .vtop.vtop::before,
html body.vui #mainChat .vtop .vseg-pill.vseg-pill::before,
html body #code>header.topbar #cdBack::before,
html body #code>header.topbar #cdTog::before,
html body #code>header.topbar .seg.seg.seg::before,
html body #code>header.topbar .seg .lg-thumb.lg-thumb::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; opacity: 0;
  background: linear-gradient(105deg, rgba(255,255,255,0) 34%, rgba(255,255,255,.32) 48%, rgba(255,255,255,.08) 56%, rgba(255,255,255,0) 70%);
  background-size: 260% 100%; background-position: 135% 0;
}
html body .lq-g::before{ animation: lqGlint .9s cubic-bezier(.3,.7,.2,1) both !important; }
@keyframes lqGlint{ 0%{opacity:0;background-position:135% 0} 20%{opacity:1} 100%{opacity:0;background-position:-35% 0} }

html body .vtop :is(.vc,.vgl,.vgl button,.vseg button),
html body #code>header.topbar :is(#cdBack,#cdTog,.seg button){ touch-action: none; }
html body .lq-drag{ will-change: scale, translate; }

/* ---------- no header bar / black lines ---------- */
html body.vui #mainChat .topbar.topbar.topbar{
  background: none !important; background-image: none !important; border: 0 !important; box-shadow: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
html body.vui #mainChat .topbar.topbar.topbar::before, html body.vui #mainChat .topbar.topbar.topbar::after{ display:none !important; content:none !important; }
html body #code>header.topbar{ background: none !important; background-image: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html body.vui #mainChat .dock.dock{ background: none !important; border: 0 !important; box-shadow: none !important; }
html body.vui #mainChat .chatview .convo.convo{ padding-bottom: calc(var(--lq-dock, 100px) + 14px) !important; }

/* ---------- pill buttons + interactive press ---------- */
html body .btn{ border-radius: 999px; }
html body :is(.btn,.icon-btn,.circle,.send,.mode,.bnav button,.chip,.chat-i,.xnav button,.sv-tab,.sv-chip,.stabs button,.cd-tabs button,.vchips button){
  transition: transform .5s var(--lq-ez), background-color .2s, color .2s, opacity .2s, box-shadow .25s;
}
@media (hover:hover){
  html body :is(.btn,.icon-btn,.circle,.bnav button):hover{ transform: scale(1.04); }
}
html body :is(.btn,.icon-btn,.circle,.send,.mode,.bnav button,.chip,.vchips button):active{
  transform: scale(.93); transition-duration: .12s;
}
html body :is(.btn.glass,.circle.glass,.bnav.glass,.mode):active{
  background-color: rgba(255,255,255,.16) !important;
}

/* ---------- inputs ---------- */
html body input.field, html body select.field{ border-radius: 999px; padding-left: 18px; padding-right: 18px; }
html body textarea.field{ border-radius: 22px; }
html body .field:focus{
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 0 0 4px rgba(255,255,255,.07) !important; outline: 0;
}
html body .xl-in{
  border-radius: 999px !important; background: rgba(255,255,255,.06) !important;
  box-shadow: var(--lq-rim) !important; border: 0 !important; transition: box-shadow .25s, transform .5s var(--lq-ez);
}
html body .xl-in:focus{ box-shadow: inset 0 0 0 1px rgba(255,255,255,.32), 0 0 0 4px rgba(255,255,255,.07) !important; transform: scale(1.015); outline:0 }
html body .xl-b{ border-radius: 999px !important; transition: transform .5s var(--lq-ez) }
html body .xl-b:active{ transform: scale(.94) }

/* ---------- sliders: glass pill thumb ---------- */
input[type=range]{
  -webkit-appearance: none; appearance: none; background: transparent; width: 100%; height: 30px;
  margin: 0; --p: 50%; cursor: pointer; touch-action: pan-y;
}
input[type=range]:focus{ outline: 0 }
input[type=range]::-webkit-slider-runnable-track{
  height: 6px; border-radius: 99px;
  background: linear-gradient(90deg, rgba(255,255,255,.85) var(--p), rgba(255,255,255,.18) var(--p));
}
input[type=range]::-moz-range-track{ height: 6px; border-radius: 99px; background: rgba(255,255,255,.18) }
input[type=range]::-moz-range-progress{ height: 6px; border-radius: 99px; background: rgba(255,255,255,.85) }
input[type=range]::-webkit-slider-thumb{
  -webkit-appearance: none; appearance: none; width: 38px; height: 24px; margin-top: -9px; border-radius: 99px;
  background: rgba(255,255,255,.95); border: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.35), inset 0 0 0 .5px rgba(0,0,0,.06);
  transition: transform .45s var(--lq-ez), background .2s, box-shadow .2s;
}
input[type=range]::-moz-range-thumb{
  width: 38px; height: 24px; border-radius: 99px; background: rgba(255,255,255,.95); border: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.35); transition: transform .45s var(--lq-ez), background .2s;
}
/* while dragging the knob turns into glass and grows */
input[type=range]:active::-webkit-slider-thumb{
  transform: scale(1.22); background: rgba(255,255,255,.5);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 4px 14px rgba(0,0,0,.3);
}
input[type=range]:active::-moz-range-thumb{
  transform: scale(1.22); background: rgba(255,255,255,.5); box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 4px 14px rgba(0,0,0,.3);
}

/* ---------- switches: knob is a pill that stretches + turns to glass while pressed ---------- */
html body .sw{ width: 56px; height: 32px; border-radius: 99px; background: rgba(255,255,255,.16); transition: background .25s; }
html body .sw:after{
  top: 3px; left: 3px; width: 34px; height: 26px; border-radius: 99px; background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  transition: transform .5s var(--lq-ez), width .35s var(--lq-ez), background .2s;
}
html body .sw.on{ background: #34c759; }
html body .sw.on:after{ transform: translateX(16px); }
html body .sw:active:after{ width: 42px; background: rgba(255,255,255,.62); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 3px 10px rgba(0,0,0,.28); }
html body .sw.on:active:after{ transform: translateX(8px); }

/* ---------- home: no icon, big friendly line ---------- */
html body.vui .vlogo, html body .vlogo{ display: none !important; }
html body .lq-hi{
  display: block; text-align: center; font-weight: 650; letter-spacing: -.025em; line-height: 1.12;
  font-size: clamp(30px, 7vw, 48px); color: #fff; padding: 0 18px;
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Display",Inter,system-ui,sans-serif;
  animation: lqHi .7s var(--lq-ez2) both;
}
html body.vui:not(.v-empty) .lq-hi{ display: none; }
@keyframes lqHi{ from{ opacity: 0; transform: translateY(10px) scale(.96) } to{ opacity: 1; transform: none } }

/* ---------- accessibility fallbacks ---------- */
@media (prefers-reduced-motion: reduce){
  html body .lq-g::before{ animation: none !important; }
  html body .lq-hi{ animation: none }
}
@media (prefers-reduced-transparency: reduce){
  html body.vui #mainChat .vtop.vtop,
  html body.vui #mainChat .composer.composer.composer,
  html body #code .cd-in.cd-in.cd-in,
  html body .bnav.glass, html body .btn.glass, html body .sheet.glass, html body .searchbar.glass { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: #2c2c2f !important; }
}

/* ======== v2.2 chat input: matches the real 2-row layout (text on top, buttons below) ======== */
html body.vui #mainChat .composer.composer.composer{
  display: flex !important; flex-direction: column !important; align-items: stretch !important;
  padding: 16px 14px 12px 18px !important; gap: 12px !important; min-height: 0 !important; height: auto !important;
  border-radius: 18px !important;
}
html body.vui #mainChat .composer.composer.composer .vrow-b{ display: flex !important; align-items: center !important; gap: 10px !important; }
html body.vui #mainChat .composer.composer.composer textarea{ padding: 0 !important; }
/* every button in the bottom row: same 42px height, flat glass */
html body.vui #mainChat .composer.composer #attBtn,
html body.vui #mainChat .composer.composer #modeBtn,
html body.vui #mainChat .composer.composer .vmic,
html body.vui #mainChat .composer.composer #sendBtn,
html body.vui #mainChat .composer.composer #speakBtn{
  height: 42px !important; min-height: 42px !important; border-radius: 999px !important; position: relative !important; flex: none;
  border: 0 !important; margin: 0 !important; touch-action: none;
}
html body.vui #mainChat .composer.composer #attBtn,
html body.vui #mainChat .composer.composer .vmic,
html body.vui #mainChat .composer.composer #sendBtn{ width: 42px !important; min-width: 42px !important; }
html body.vui #mainChat .composer.composer #attBtn,
html body.vui #mainChat .composer.composer #modeBtn,
html body.vui #mainChat .composer.composer .vmic{
  background: rgba(255,255,255,.10) !important; color: #fff !important; box-shadow: var(--lq-rim) !important;
  -webkit-backdrop-filter: blur(1px) saturate(1.25) !important; backdrop-filter: blur(1px) saturate(1.25) !important;
}
html body.vui #mainChat .composer.composer #modeBtn{ padding: 0 16px 0 12px !important; }
html body.vui #mainChat .composer.composer #sendBtn{ background: rgba(255,255,255,.88) !important; color: #161617 !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 4px 14px rgba(0,0,0,.28) !important; }
html body.vui #mainChat .composer.composer #speakBtn{ padding: 0 20px 0 16px !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 4px 14px rgba(0,0,0,.28) !important; }
/* JS drives the press; no CSS scale fighting it */
html body.vui #mainChat .composer.composer button:active,
html body.vui #mainChat .composer.composer button:hover{ transform: none; }
/* glint on press */
html body.vui #mainChat .composer.composer button::before{
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; z-index:1; opacity:0;
  background: linear-gradient(105deg, rgba(255,255,255,0) 34%, rgba(255,255,255,.4) 48%, rgba(255,255,255,.1) 56%, rgba(255,255,255,0) 70%);
  background-size: 260% 100%; background-position: 135% 0;
}
html body.vui #mainChat .composer.composer button.lq-g::before{ animation: lqGlint .9s cubic-bezier(.3,.7,.2,1) both !important; }

/* chat input = rounded square, not a pill */
html body.vui #mainChat .composer.composer.composer,
html body.vui #mainChat .composer.composer.composer.expanded,
html body #code .cd-in.cd-in.cd-in{ border-radius: 18px !important; }

/* icons centered + sized to fit their buttons */
html body.vui #mainChat .composer.composer #modeBtn{
  display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important;
  padding: 0 16px !important; line-height: 1 !important; white-space: nowrap;
}
html body.vui #mainChat .composer.composer #modeBtn svg{ width: 17px !important; height: 17px !important; flex: none; margin: 0 !important; display: block; }
html body.vui #mainChat .composer.composer #modeBtn span{ display: block; line-height: 1; padding: 0; margin: 0; }
html body.vui #mainChat .composer.composer :is(#attBtn,.vmic,#sendBtn){ display: grid !important; place-items: center !important; padding: 0 !important; }
html body.vui #mainChat .composer.composer #sendBtn:not([data-has]),html body.vui #mainChat .composer.composer #sendBtn[data-has=""]{ display: none !important; }
html body.vui #mainChat .composer.composer #attBtn svg{ width: 22px !important; height: 22px !important; display: block; margin: 0 !important; }
html body.vui #mainChat .composer.composer .vmic svg{ width: 20px !important; height: 20px !important; display: block; margin: 0 !important; }
html body.vui #mainChat .composer.composer #sendBtn svg{ width: 20px !important; height: 20px !important; display: block; margin: 0 !important; }
html body.vui #mainChat .composer.composer #speakBtn{ display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important; line-height: 1 !important; }
html body.vui #mainChat .composer.composer #speakBtn svg{ width: 20px !important; height: 20px !important; flex: none; margin: 0 !important; display: block; }
html body.vui #mainChat .composer.composer #speakBtn span{ display: block; line-height: 1; }

/* icon-only bottom row: + , model , (space) , speak/send — no mic, no titles */
html body.vui #mainChat .composer.composer .vmic{ display: none !important; }
html body.vui #mainChat .composer.composer #modeBtn span,
html body.vui #mainChat .composer.composer #speakBtn span{ display: none !important; }
html body.vui #mainChat .composer.composer #modeBtn,
html body.vui #mainChat .composer.composer #speakBtn{
  width: 42px !important; min-width: 42px !important; padding: 0 !important; gap: 0 !important;
}
html body.vui #mainChat .composer.composer #speakBtn.on{ background: rgba(255,255,255,.55) !important; }

/* ======== v3: smaller rounder chat input, voice -> send swap, mobile highlight fix ======== */
html body.vui #mainChat .composer.composer.composer,
html body.vui #mainChat .composer.composer.composer.expanded{
  border-radius: 26px !important; padding: 12px 10px 10px 16px !important; gap: 8px !important;
  max-width: 640px; margin-left: auto !important; margin-right: auto !important; width: 100%; box-sizing: border-box;
}
html body.vui #mainChat .composer.composer.composer textarea{ font-size: 15.5px !important; }
html body.vui #mainChat .composer.composer.composer .vrow-b{ gap: 8px !important; }
html body.vui #mainChat .composer.composer #attBtn,
html body.vui #mainChat .composer.composer #modeBtn,
html body.vui #mainChat .composer.composer #sendBtn,
html body.vui #mainChat .composer.composer #speakBtn{ height: 38px !important; min-height: 38px !important; width: 38px !important; min-width: 38px !important; }
html body.vui #mainChat .composer.composer :is(#attBtn,#modeBtn,#sendBtn,#speakBtn) svg{ width: 19px !important; height: 19px !important; }
/* something typed: voice button goes away, send takes its place */
html body.vui #mainChat .composer.composer #sendBtn[data-has]:not([data-has=""]) ~ #speakBtn{ display: none !important; }

/* mobile / Safari white-flash fix: no tap highlight, no sticky hover, no glint on touch */
html body, html body *{ -webkit-tap-highlight-color: transparent; }
html body .vtop button, html body .composer button{ -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; outline: 0; }
@media (hover: none){
  html body.vui .vgl button:hover, html body.vui .vc:hover, html body.vui .vseg button:hover{ background: none !important; }
  html body.vui #mainChat .vtop .vgl.vgl.vgl button:hover{ background: none !important; }
  html body .lq-g::before{ animation: none !important; opacity: 0 !important; }
  html body.vui #mainChat .vtop .vseg-pill.vseg-pill{ -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(255,255,255,.16) !important; }
}

/* ======== v3.1: glow text, no icon backgrounds, settings rows ======== */
html body #mainChat .convo, html body #mainChat .lq-hi{ text-shadow: 0 0 10px rgba(255,255,255,.30), 0 0 24px rgba(255,255,255,.12); }
html body #mainChat .composer textarea, html body #mainChat .composer textarea::placeholder{ text-shadow: none !important; }
html body #mainChat .convo :is(pre,code,pre *,.code,.cb){ text-shadow: none; }
#login.xl .xl-x, html body .vlogo{ display: none !important; }

.lq-list{ display: none; }
.lq-row{
  display: flex; align-items: center; justify-content: space-between; width: 100%; box-sizing: border-box;
  padding: 16px 16px; margin: 0 0 8px; border: 0; border-radius: 16px; background: rgba(255,255,255,.07);
  color: #fff; font: 600 16px/1.2 -apple-system,BlinkMacSystemFont,Inter,system-ui,sans-serif; text-align: left; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10); transition: transform .45s var(--lq-ez), background .2s;
}
.lq-row svg{ width: 18px; height: 18px; opacity: .6; flex: none; }
.lq-row:active{ transform: scale(.97); background: rgba(255,255,255,.12); }
@media (max-width: 820px){
  #settings .lq-list{ display: block; margin: 6px 0 12px; }
  #settings .sheet .stabs{ display: none !important; }
  #settings .sheet:not(.lq-in) .spanes{ display: none !important; }
  #settings .sheet.lq-in .lq-list{ display: none !important; }
}

/* ======== v3.2: no border on the text box, purple glow ======== */
html body.vui #mainChat .composer #msg, html body.vui #mainChat .composer #msg:focus, html body.vui #mainChat .composer #msg:focus-visible, html body.vui #mainChat .composer #msg:hover,
html body.vui #mainChat .composer .vrow-t, html body.vui #mainChat .composer .vrow-t:focus-within{
  border: 0 !important; outline: 0 !important; box-shadow: none !important; background: none !important;
  -webkit-appearance: none; appearance: none;
}

html body #mainChat .convo :is(pre,code,pre *,.code,.cb){ text-shadow: none; }


/* =====================================================================
   v4 — split, floating glass. Nothing shares a box any more.
   ===================================================================== */
:root{ --lq-tint: rgba(255,255,255,calc(.055 * var(--lq-g,1))); --lq-fs: 16px; }

/* ---- shared small glass piece ---- */
html body.vui #mainChat .vtop .vc.vc.vc,
html body.vui #mainChat .vtop .vgl.vgl.vgl button,
html body.vui #mainChat .vtop .vseg.vseg,
html body.vui #mainChat .composer.composer #attBtn,
html body.vui #mainChat .composer.composer #modeBtn,
html body.vui #mainChat .composer.composer #sendBtn,
html body.vui #mainChat .composer.composer #speakBtn,
html body.vui #mainChat .vchips button,
html body #studio .sv-bar button, html body #studio .sv-tabs{
  background: var(--lq-tint) !important; color: #fff !important; border: 0 !important;
  box-shadow: var(--lq-rim), 0 6px 16px rgba(0,0,0,.22) !important;
  -webkit-backdrop-filter: blur(1px) saturate(1.25) brightness(1.06) !important; backdrop-filter: blur(1px) saturate(1.25) brightness(1.06) !important;
}

/* ---- top bar: three separate floating pieces ---- */
html body.vui #mainChat .vtop.vtop{
  background: none !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  padding: 0 !important; border-radius: 0 !important; max-width: min(100%, 640px); gap: 10px;
}
html body.vui #mainChat .vtop.vtop::before{ display: none !important; }
html body.vui #mainChat .vtop .vc.vc.vc, html body.vui #mainChat .vtop .vgl.vgl.vgl button{ width: 38px !important; height: 38px !important; border-radius: 999px !important; position: relative; }
html body.vui #mainChat .vtop .vgl.vgl.vgl{ display: flex; gap: 8px; padding: 0 !important; background: none !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-radius: 0 !important; height: auto; }
html body.vui #mainChat .vtop .vseg.vseg{ padding: 3px !important; border-radius: 999px !important; position: relative; }
html body.vui #mainChat .vtop .vseg button{ padding: 8px 13px !important; font-size: 14px !important; }
html body.vui #mainChat .vtop .vseg-pill.vseg-pill{ height: 32px !important; margin-top: -16px !important; background: rgba(255,255,255,.14) !important; }
html body.vui #mainChat .vtop svg{ width: 19px; height: 19px; }

/* ---- chat input: text box floats on its own, buttons float under it ---- */
html body.vui #mainChat .composer.composer.composer,
html body.vui #mainChat .composer.composer.composer.expanded,
html body.vui #mainChat .composer.composer.composer.focus,
html body.vui #mainChat .composer.composer.composer:focus-within{
  background: none !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; padding: 0 !important; gap: 10px !important;
  max-width: 640px; overflow: visible;
}
html body.vui #mainChat .composer.composer.composer .vrow-t{
  background: rgba(30,30,34,.42) !important; border-radius: 22px !important; padding: 13px 18px !important;
  box-shadow: var(--lq-rim), 0 8px 24px rgba(0,0,0,.25) !important;
  -webkit-backdrop-filter: blur(2px) saturate(1.3) !important; backdrop-filter: blur(2px) saturate(1.3) !important;
  position: relative;
}
html body.vui #mainChat .composer.composer.composer .vrow-t:focus-within{ box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 8px 24px rgba(0,0,0,.28) !important; }
html body.vui #mainChat .composer.composer.composer .vrow-b{ gap: 10px !important; padding: 0 !important; }
html body.vui #mainChat .composer.composer #attBtn,
html body.vui #mainChat .composer.composer #modeBtn,
html body.vui #mainChat .composer.composer #sendBtn,
html body.vui #mainChat .composer.composer #speakBtn{ width: 38px !important; min-width: 38px !important; height: 38px !important; min-height: 38px !important; border-radius: 999px !important; }
html body.vui #mainChat .composer.composer #sendBtn, html body.vui #mainChat .composer.composer #speakBtn{ background: rgba(255,255,255,.88) !important; color: #111 !important; }
html body.vui #mainChat .composer.composer :is(#attBtn,#modeBtn,#sendBtn,#speakBtn) svg{ width: 18px !important; height: 18px !important; }

/* ---- chips: icons only ---- */
html body.vui #mainChat .vchips button{ width: 42px !important; height: 42px !important; min-width: 0 !important; padding: 0 !important; border-radius: 999px !important; display: grid !important; place-items: center; gap: 0 !important; }
html body.vui #mainChat .vchips button span{ display: none !important; }
html body.vui #mainChat .vchips button i{ margin: 0 !important; display: grid; place-items: center; }
html body.vui #mainChat .vchips-in{ gap: 10px !important; }

/* ---- sidebar settings row + bottom nav: icons only ---- */
html body #sideChat .user{ font-size: 0 !important; width: auto; padding: 5px !important; }
html body #sideChat .user .uname, html body #sideChat .user::after{ display: none !important; }
html body .bnav button span, html body .bnav button small, html body .bnav button label{ display: none !important; }

/* ---- settings = small popup ---- */
html body #settings.modal:not([hidden]){ display: grid !important; place-items: center !important; padding: 16px; }
html body #settings .sheet.sheet{
  width: min(520px, 100%) !important; max-width: none !important; max-height: min(500px, 78vh) !important; height: auto !important;
  border-radius: 26px !important; margin: 0 !important; overflow: hidden auto; position: relative !important; bottom: auto !important; transform: none;
}
html body #settings .sheet-h h3{ font-size: 17px; }
.lq-pf{ margin: 14px 0 0; }
.lq-pf>label{ display: block; font-size: 13px; opacity: .65; margin-bottom: 8px; }
.lq-seg{ display: flex; gap: 6px; }
.lq-seg button{ flex: 1; height: 36px; border: 0; border-radius: 999px; background: rgba(255,255,255,.07); color: #ddd; font: 600 13px/1 -apple-system,system-ui,sans-serif; cursor: pointer; transition: transform .4s var(--lq-ez), background .2s; }
.lq-seg button.on{ background: #fff; color: #111; }
.lq-seg button:active{ transform: scale(.94); }
.lq-row2{ display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lq-row2 span{ font-size: 14px; }

/* ---- new response animations ---- */
@keyframes lqMsg{
  0%{ opacity: 0; transform: translateY(18px) scale(.95); filter: blur(10px); }
  55%{ opacity: 1; filter: blur(0); }
  75%{ transform: translateY(-3px) scale(1.01); }
  100%{ opacity: 1; transform: none; filter: none; }
}
html body #msgs > :last-child{ animation: lqMsg .6s cubic-bezier(.2,1,.3,1) both !important; }
html body #msgs > :not(:last-child){ animation: none !important; }
html body #msgs .body, html body #msgs .mu-t{ font-size: var(--lq-fs); }
html.lq-rm *, html.lq-rm *::before, html.lq-rm *::after{ animation-duration: .01ms !important; transition-duration: .01ms !important; }

/* ---- imagine ---- */
html body #studio .sv-bar{ background: none !important; box-shadow: none !important; border: 0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; gap: 10px !important; align-items: center; }
html body #studio .sv-bar textarea{ background: rgba(30,30,34,.42) !important; border-radius: 22px !important; padding: 13px 18px !important; box-shadow: var(--lq-rim) !important; border: 0 !important; outline: 0 !important; }
html body #studio .sv-bar button{ width: 40px !important; min-width: 40px !important; height: 40px !important; padding: 0 !important; border-radius: 999px !important; display: grid; place-items: center; }
html body #studio .sv-bar .sv-style span{ display: none !important; }
html body #studio .sv-tabs{ border-radius: 999px !important; padding: 3px !important; width: fit-content; }
html body #studio .sv-card{ border-radius: 22px !important; overflow: hidden; animation: lqCard .65s cubic-bezier(.2,1,.3,1) both; transition: transform .45s var(--lq-ez); }
html body #studio .sv-card:active{ transform: scale(.95); }
html body #studio .sv-card:nth-child(2){ animation-delay: .05s } html body #studio .sv-card:nth-child(3){ animation-delay: .1s } html body #studio .sv-card:nth-child(4){ animation-delay: .15s }
html body #studio .sv-card:nth-child(5){ animation-delay: .2s } html body #studio .sv-card:nth-child(6){ animation-delay: .25s } html body #studio .sv-card:nth-child(n+7){ animation-delay: .3s }
@keyframes lqCard{ from{ opacity: 0; transform: translateY(22px) scale(.92); filter: blur(8px); } to{ opacity: 1; transform: none; filter: none; } }
html body #studio .sv-card.sk{ background: linear-gradient(110deg,#141414 30%,#242426 50%,#141414 70%); background-size: 220% 100%; }

/* ---- old login overlay is replaced by /login ---- */
#login{ display: none !important; }
html body #sideChat .user{ width: 44px !important; height: 44px !important; padding: 0 !important; border-radius: 999px !important; display: grid !important; place-items: center; flex: none; }
html body #sideChat .user .av{ margin: 0 !important; }

/* no shortcut / suggestion buttons above the chat input */
html body .vchips, html body #chips, html body .dock .chips{ display: none !important; }

/* close X that replaces the button while its panel is open */
.lq-x{
  position: fixed; z-index: 100000; display: grid; place-items: center; padding: 0; margin: 0; border: 0; border-radius: 999px; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 6px 18px rgba(0,0,0,.3);
  -webkit-backdrop-filter: blur(1px) saturate(1.3); backdrop-filter: blur(1px) saturate(1.3);
  transition: opacity .25s, transform .3s cubic-bezier(.3,1.5,.5,1);
}
.lq-x svg{ width: 55%; height: 55%; }
.lq-x:active{ transform: scale(.9); }

/* imagine input: no clipped text, solid enough to read over the cards */
html body #studio .sv-bar{ height: auto !important; min-height: 0 !important; padding-bottom: calc(10px + env(safe-area-inset-bottom,0px)); }
html body #studio .sv-bar textarea{
  height: 48px !important; min-height: 48px !important; max-height: 140px; line-height: 20px !important; padding: 14px 18px !important;
  background: rgba(18,18,20,.9) !important; resize: none; box-sizing: border-box; overflow-y: auto; flex: 1; min-width: 0;
}

/* rainbow around the chat box when you tap into it */
@keyframes lqRb{ to{ background-position: 300% 0 } }
html body.vui #mainChat .composer .vrow-t{ border-radius: 28px !important; }
html body.vui.v-build #mainChat .composer .vrow-t::before, html body.vui.v-build #mainChat .composer .vrow-t::after{
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: linear-gradient(90deg,#ff3b30,#ff9500,#ffd60a,#34c759,#00c7be,#0a84ff,#bf5af2,#ff2d55,#ff3b30); background-size: 300% 100%;
  animation: lqRb 4s linear infinite;
}
html body.vui.v-build #mainChat .composer .vrow-t::before{
  padding: 2px; z-index: 2;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
html body.vui.v-build #mainChat .composer .vrow-t::after{ z-index: -1; filter: blur(16px); }
html body.vui.v-build #mainChat .composer .vrow-t:focus-within::before{ opacity: 1; }
html body.vui.v-build #mainChat .composer .vrow-t:focus-within::after{ opacity: .45; }
