/* BARO AI — NEXA-style workspace (dark/light, responsive) */
:root{
  --font-sans:"Manrope","Segoe UI Variable Text","Segoe UI",system-ui,-apple-system,sans-serif;
  --font-serif:"Instrument Serif","Iowan Old Style","Palatino Linotype",Georgia,serif;
  --sidebar-width:284px;--content-width:860px;
  --ease-out:cubic-bezier(.16,1,.3,1);--ease-smooth:cubic-bezier(.22,.75,.25,1);
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --bg:#0b0b0d;--bg-translucent:rgba(11,11,13,.8);--sidebar-bg:#0e0e10;
  --surface:#131316;--surface-raised:#18181c;--surface-soft:#101013;
  --text:#f2f0ea;--text-soft:#c9c6bf;--muted:#8e8b84;--muted-2:#7d7a72;
  --line:rgba(244,242,235,.075);--line-strong:rgba(244,242,235,.135);
  --card-highlight:rgba(255,255,255,.045);
  --accent:#d8ff6b;--accent-bright:#e7ffa2;--accent-ink:#111406;--accent-text:#d8ff6b;
  --accent-soft:rgba(216,255,107,.085);--accent-line:rgba(216,255,107,.31);
  --user-bubble:#1b1b1f;--composer-bg:rgba(19,19,22,.94);
  --toast-bg:#f2efe6;--toast-text:#111113;--toast-border:rgba(0,0,0,.08);
  --code-bg:#09090b;--code-border:rgba(255,255,255,.08);--code-text:#dce5cf;
  --grid-line:rgba(255,255,255,.032);--glow-lime:rgba(199,255,69,.075);--glow-violet:rgba(166,135,255,.055);
  --scroll-thumb:rgba(255,255,255,.13);--scroll-thumb-hover:rgba(255,255,255,.22);
  --success:#a9e76d;
  --tone-lime-bg:rgba(216,255,107,.09);--tone-lime-fg:#d8ff6b;
  --tone-peach-bg:rgba(255,178,132,.09);--tone-peach-fg:#ffb58c;
  --tone-sky-bg:rgba(147,204,255,.09);--tone-sky-fg:#9ed3ff;
  --tone-lilac-bg:rgba(198,177,255,.09);--tone-lilac-fg:#cab8ff;
  --avatar-from:#d9c0a8;--avatar-to:#9c7d63;--avatar-ink:#24180e;
  --menu-shadow:0 28px 80px -28px rgba(0,0,0,.8),0 2px 8px rgba(0,0,0,.22);
  --composer-shadow:0 26px 80px -38px rgba(0,0,0,.9),inset 0 1px 0 rgba(255,255,255,.035);
  --card-shadow:0 14px 34px -28px rgba(0,0,0,.9);--card-shadow-hover:0 20px 44px -26px rgba(0,0,0,.9);
  --overlay:rgba(2,2,3,.62);
}
:root[data-theme="light"]{
  color-scheme:light;
  --bg:#f7f6f2;--bg-translucent:rgba(247,246,242,.82);--sidebar-bg:#efeee9;
  --surface:#fbfaf7;--surface-raised:#fff;--surface-soft:#f1f0eb;
  --text:#171714;--text-soft:#3e3e38;--muted:#66635c;--muted-2:#706d66;
  --line:rgba(23,23,20,.08);--line-strong:rgba(23,23,20,.145);--card-highlight:rgba(255,255,255,.7);
  --accent:#cff75e;--accent-bright:#bcec3d;--accent-ink:#151a04;--accent-text:#4d6500;
  --accent-soft:rgba(103,133,0,.085);--accent-line:rgba(99,129,0,.3);
  --user-bubble:#fff;--composer-bg:rgba(255,255,252,.95);
  --toast-bg:#1a1a18;--toast-text:#f8f6ef;--toast-border:rgba(255,255,255,.1);
  --code-bg:#1b1b18;--code-border:rgba(255,255,255,.08);--code-text:#e6eadf;
  --grid-line:rgba(23,23,20,.036);--glow-lime:rgba(160,198,37,.12);--glow-violet:rgba(123,91,210,.055);
  --scroll-thumb:rgba(23,23,20,.16);--scroll-thumb-hover:rgba(23,23,20,.26);
  --success:#4e8716;
  --tone-lime-bg:rgba(111,143,0,.1);--tone-lime-fg:#5c7600;
  --tone-peach-bg:rgba(193,91,41,.1);--tone-peach-fg:#a85124;
  --tone-sky-bg:rgba(44,118,170,.1);--tone-sky-fg:#23648e;
  --tone-lilac-bg:rgba(107,77,185,.1);--tone-lilac-fg:#6e4ac0;
  --avatar-from:#ceb193;--avatar-to:#8d6d53;--avatar-ink:#24180e;
  --menu-shadow:0 28px 80px -28px rgba(23,23,20,.35),0 2px 8px rgba(23,23,20,.08);
  --composer-shadow:0 24px 76px -38px rgba(23,23,20,.3),inset 0 1px 0 rgba(255,255,255,.8);
  --card-shadow:0 14px 34px -30px rgba(23,23,20,.32);--card-shadow-hover:0 20px 44px -28px rgba(23,23,20,.34);
  --overlay:rgba(23,23,20,.35);
}
*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}
html{-webkit-text-size-adjust:100%}
body{margin:0;overflow:hidden;background:var(--bg);color:var(--text);font-family:var(--font-sans);
  font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
button,input,textarea{font:inherit;color:inherit}
button{padding:0;border:0;background:none;cursor:pointer}
a{color:inherit;text-decoration:none}
svg{display:block}
[hidden]{display:none!important}
::selection{background:var(--accent);color:var(--accent-ink)}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;
  overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.icon-sprite{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.icon{width:18px;height:18px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.75;
  stroke-linecap:round;stroke-linejoin:round}

/* shell */
.app-shell{display:flex;width:100%;height:100vh;height:100dvh;overflow:hidden;background:var(--bg)}
.sidebar{position:relative;z-index:30;display:flex;flex:0 0 var(--sidebar-width);flex-direction:column;
  width:var(--sidebar-width);height:100%;overflow:hidden;border-right:1px solid var(--line);background:var(--sidebar-bg)}
.sidebar::before{position:absolute;top:-116px;left:-96px;width:300px;height:270px;border-radius:50%;
  background:radial-gradient(circle,var(--glow-lime),transparent 68%);content:"";pointer-events:none}
.sidebar__head{position:relative;z-index:1;display:flex;flex:0 0 70px;align-items:center;justify-content:space-between;padding:0 16px 0 18px}
.brand{display:inline-flex;align-items:center;gap:10px;border-radius:10px}
.brand__mark{display:grid;width:31px;height:31px;place-items:center;border-radius:9px;background:var(--accent);
  color:var(--accent-ink);box-shadow:0 8px 22px -12px var(--accent-line);transition:transform 280ms var(--ease-out)}
.brand__mark .icon{width:16px;height:16px}
.brand__word{color:var(--text);font-size:20px;font-weight:800;letter-spacing:-.06em;line-height:1}
.brand__word span{color:var(--accent-text)}
.brand:hover .brand__mark{transform:rotate(-8deg) scale(1.04)}
.sidebar__body{position:relative;z-index:1;display:flex;flex:1;flex-direction:column;min-height:0;padding:4px 14px 0}
.new-chat{display:flex;align-items:center;width:100%;height:44px;padding:0 10px;border-radius:12px;
  background:linear-gradient(135deg,var(--accent-bright),var(--accent));color:var(--accent-ink);
  font-size:12.5px;font-weight:750;text-align:left;box-shadow:0 12px 28px -18px var(--accent-line),inset 0 1px 0 rgba(255,255,255,.34);
  transition:transform 180ms var(--ease-smooth),filter 180ms ease}
.new-chat:hover{filter:brightness(1.035);transform:translateY(-1px)}
.new-chat__icon{display:grid;width:24px;height:24px;margin-right:9px;place-items:center;border-radius:7px;background:rgba(16,20,4,.1)}
.new-chat__icon .icon{width:15px;height:15px;stroke-width:2.1}
.new-chat__kbd{display:inline-flex;align-items:center;gap:2px;margin-left:auto;padding:3px 5px;border:1px solid rgba(16,20,4,.14);
  border-radius:5px;background:rgba(16,20,4,.07);color:rgba(16,20,4,.56);font-size:9.5px;font-weight:700}
.search-field{display:flex;align-items:center;height:38px;margin-top:10px;padding:0 9px;border:1px solid var(--line);
  border-radius:10px;background:var(--surface-soft);color:var(--muted);cursor:text}
.search-field:focus-within{border-color:var(--line-strong);background:var(--surface)}
.search-field__icon{width:15px;height:15px;margin-right:8px;color:var(--muted-2)}
.search-field input{width:100%;min-width:0;padding:0;border:0;outline:0;background:transparent;color:var(--text);font-size:12px;font-weight:500}
.search-field input::placeholder{color:var(--muted-2);opacity:1}
.search-field input::-webkit-search-cancel-button{display:none}
.history-scroll{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;margin:18px -5px 0 0;padding:0 5px 22px 0;
  scrollbar-width:thin;scrollbar-color:var(--scroll-thumb) transparent}
.history-scroll::-webkit-scrollbar{width:5px}
.history-scroll::-webkit-scrollbar-thumb{border-radius:99px;background:var(--scroll-thumb)}
.history-group+.history-group{margin-top:18px}
.history-label{margin:0 8px 6px;color:var(--muted-2);font-size:9.5px;font-weight:750;letter-spacing:.13em;text-transform:uppercase}
.history-list{display:flex;flex-direction:column;gap:1px}
.chat-item{display:flex;align-items:center;width:100%;height:36px;padding:0 9px;border-radius:9px;color:var(--muted);
  font-size:12px;font-weight:550;text-align:left;transition:background-color 150ms ease,color 150ms ease}
.chat-item:hover{background:var(--surface-soft);color:var(--text-soft)}
.chat-item.is-active{background:var(--surface);color:var(--text);box-shadow:inset 0 0 0 1px var(--line)}
.chat-item__icon{width:14px;height:14px;margin-right:8px;color:var(--muted-2)}
.chat-item.is-active .chat-item__icon{color:var(--accent-text)}
.chat-item__title{min-width:0;overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}
.history-empty{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:8px;padding:36px 16px;color:var(--muted-2);text-align:center}
.history-empty p{margin:0;font-size:11px}
.sidebar__foot{position:relative;z-index:1;padding:10px 14px 15px;border-top:1px solid var(--line)}
.usage-card{padding:11px 12px 10px;border:1px solid var(--line);border-radius:12px;
  background:radial-gradient(140% 110% at 108% -10%,var(--accent-soft),transparent 56%),var(--surface-soft)}
.usage-card__head{display:flex;align-items:center;justify-content:space-between;color:var(--text-soft);font-size:10px;font-weight:650}
.usage-card__count{color:var(--text);font-size:10.5px;font-weight:750;font-variant-numeric:tabular-nums}
.usage-card__count span{color:var(--muted-2);font-weight:500}
.usage-bar{height:3px;margin-top:9px;overflow:hidden;border-radius:99px;background:var(--line)}
.usage-bar span{display:block;width:70%;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--accent),var(--accent-bright))}
.usage-card p{margin:8px 0 0;color:var(--muted-2);font-size:9px;line-height:1.45}
.account-row{display:flex;align-items:center;min-width:0;margin-top:13px;padding:0 3px}
.account-avatar{display:grid;width:29px;height:29px;margin-right:9px;place-items:center;border:1px solid rgba(255,255,255,.12);
  border-radius:50%;background:linear-gradient(145deg,var(--avatar-from),var(--avatar-to));color:var(--avatar-ink);
  font-size:9.5px;font-weight:800}
.account-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:1px}
.account-copy strong{overflow:hidden;color:var(--text-soft);font-size:11px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
.account-copy small{color:var(--muted-2);font-size:9px}
.online-dot{width:6px;height:6px;margin-left:8px;border-radius:50%;background:var(--success);box-shadow:0 0 0 3px rgba(169,231,109,.15)}
.icon-btn.sidebar__close{display:none}
.sidebar-scrim{display:none}
.sidebar__auth{display:flex;gap:6px;margin-top:9px}
.sidebar__auth .btn-ghost{flex:1;height:30px;border:1px solid var(--line);border-radius:8px;background:transparent;
  color:var(--muted);font-size:10.5px;font-weight:650}
.sidebar__auth .btn-ghost:hover{background:var(--surface-soft);color:var(--text)}

/* workspace */
.workspace{position:relative;display:flex;flex:1;flex-direction:column;min-width:0;height:100%;overflow:hidden;background:var(--bg)}
.workspace::before{position:absolute;z-index:0;inset:0;background-image:linear-gradient(var(--grid-line) 1px,transparent 1px),
  linear-gradient(90deg,var(--grid-line) 1px,transparent 1px);background-size:46px 46px;
  -webkit-mask-image:radial-gradient(ellipse 76% 72% at 50% 0%,#000 5%,transparent 72%);
  mask-image:radial-gradient(ellipse 76% 72% at 50% 0%,#000 5%,transparent 72%);content:"";pointer-events:none}
.workspace::after{position:absolute;z-index:0;inset:0;background:radial-gradient(54% 50% at 76% -12%,var(--glow-lime),transparent 70%),
  radial-gradient(38% 40% at 104% 52%,var(--glow-violet),transparent 72%);content:"";pointer-events:none}
.workspace>*{position:relative;z-index:1}

/* topbar */
.topbar{z-index:20;display:flex;flex:0 0 70px;align-items:center;gap:8px;height:70px;padding:0 26px;
  border-bottom:1px solid var(--line);background:var(--bg-translucent);
  -webkit-backdrop-filter:blur(18px) saturate(135%);backdrop-filter:blur(18px) saturate(135%)}
.icon-btn{display:grid;width:36px;height:36px;flex:0 0 auto;place-items:center;border:1px solid transparent;border-radius:10px;
  color:var(--muted);transition:background-color 150ms ease,border-color 150ms ease,color 150ms ease}
.icon-btn .icon{width:17px;height:17px}
.icon-btn:hover{border-color:var(--line);background:var(--surface-soft);color:var(--text)}
.icon-btn:active{transform:scale(.97)}
.topbar__menu{display:none}
.model-switch{position:relative}
.model-btn{display:flex;align-items:center;height:38px;padding:0 8px;border:1px solid transparent;border-radius:10px;color:var(--text)}
.model-btn:hover,.model-btn[aria-expanded="true"]{border-color:var(--line);background:var(--surface-soft)}
.model-btn__mark{display:grid;width:22px;height:22px;margin-right:8px;place-items:center;border-radius:6px;
  background:var(--accent-soft);color:var(--accent-text)}
.model-btn__mark .icon{width:13px;height:13px}
.model-btn__name{font-size:12.5px;font-weight:700;letter-spacing:-.02em;white-space:nowrap}
.model-btn__tag{margin-left:7px;padding:2px 4px;border:1px solid var(--line);border-radius:4px;color:var(--muted);
  font-size:8px;font-weight:700;letter-spacing:.07em;line-height:1.3;text-transform:uppercase}
.model-btn__chevron{width:13px;height:13px;margin-left:5px;color:var(--muted-2);transition:transform 180ms var(--ease-smooth)}
.model-btn[aria-expanded="true"] .model-btn__chevron{transform:rotate(180deg)}
.model-menu{position:absolute;z-index:70;top:calc(100% + 8px);left:0;width:min(318px,calc(100vw - 32px));padding:6px;
  border:1px solid var(--line-strong);border-radius:14px;background:var(--surface);box-shadow:var(--menu-shadow);
  transform-origin:top left;animation:menuIn 180ms var(--ease-out) both}
.model-menu__head{display:flex;align-items:center;justify-content:space-between;padding:7px 9px 8px;color:var(--muted);
  font-size:9px;font-weight:750;letter-spacing:.1em;text-transform:uppercase}
.model-menu__head small{color:var(--muted-2);font-size:8.5px;font-weight:600;letter-spacing:.04em;text-transform:none}
.model-option{display:grid;grid-template-columns:28px minmax(0,1fr) 16px;gap:10px;align-items:center;width:100%;
  padding:9px;border-radius:9px;text-align:left;transition:background-color 150ms ease}
.model-option:hover{background:var(--surface-soft)}
.model-option.is-selected{background:var(--accent-soft)}
.model-option__mark{display:grid;width:28px;height:28px;place-items:center;border-radius:7px}
.model-option__mark .icon{width:13px;height:13px}
.model-option__mark--lime{background:var(--tone-lime-bg);color:var(--tone-lime-fg)}
.model-option__mark--lilac{background:var(--tone-lilac-bg);color:var(--tone-lilac-fg)}
.model-option__mark--sky{background:var(--tone-sky-bg);color:var(--tone-sky-fg)}
.model-option__copy{display:flex;min-width:0;flex-direction:column;gap:1px}
.model-option__name{color:var(--text-soft);font-size:11.5px;font-weight:700;letter-spacing:-.015em}
.model-option__name em{margin-left:5px;padding:1px 4px;border:1px solid var(--line);border-radius:3px;color:var(--muted-2);
  font-size:7px;font-style:normal;font-weight:700;letter-spacing:.05em;text-transform:uppercase;vertical-align:1px}
.model-option__copy small{overflow:hidden;color:var(--muted-2);font-size:9.5px;line-height:1.45;text-overflow:ellipsis;white-space:nowrap}
.model-option__check{width:14px;height:14px;color:var(--accent-text);opacity:0;stroke-width:2.1}
.model-option.is-selected .model-option__check{opacity:1}
.model-menu__foot{margin:6px 4px 0;padding:8px 6px 3px;border-top:1px solid var(--line);color:var(--muted-2);font-size:8.5px;line-height:1.45}
.topbar__right{display:flex;align-items:center;gap:4px;margin-left:auto}
.sync-status{display:flex;align-items:center;justify-content:flex-end;min-width:76px;gap:6px;margin-right:9px;
  color:var(--muted-2);font-size:9.5px;white-space:nowrap}
.sync-status__dot{width:5px;height:5px;border-radius:50%;background:var(--success)}
.ghost-btn{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 9px;border:1px solid transparent;border-radius:9px;
  color:var(--muted);font-size:10.5px;font-weight:600}
.ghost-btn .icon{width:14px;height:14px}
.ghost-btn:hover{border-color:var(--line);background:var(--surface-soft);color:var(--text)}
.topbar__new{display:none}
.theme-toggle__sun{display:none}
:root[data-theme="light"] .theme-toggle__sun{display:block}
:root[data-theme="light"] .theme-toggle__moon{display:none}
.badge-token{display:inline-flex;align-items:center;gap:5px;height:30px;padding:0 10px;border:1px solid var(--accent-line);
  border-radius:99px;background:var(--accent-soft);color:var(--accent-text);font-size:10px;font-weight:700;white-space:nowrap}
.badge-token b{font-family:ui-monospace,Consolas,monospace;font-size:11px}

/* chat area */
.chat-main{min-height:0;flex:1;overflow-x:hidden;overflow-y:auto;padding:0 32px;overscroll-behavior:contain;
  scrollbar-width:thin;scrollbar-color:var(--scroll-thumb) transparent}
.chat-main::-webkit-scrollbar{width:8px}
.chat-main::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:99px;background:var(--scroll-thumb);background-clip:padding-box}
.welcome{display:flex;align-items:center;justify-content:center;min-height:100%;padding:clamp(38px,7vh,78px) 0 34px}
.welcome__inner{width:100%;max-width:var(--content-width);margin:0 auto;animation:welcomeIn 620ms var(--ease-out) both}
.eyebrow{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border:1px solid var(--line);border-radius:99px;
  background:var(--surface-soft);color:var(--text-soft);font-size:8.5px;font-weight:750;letter-spacing:.12em;text-transform:uppercase;
  box-shadow:inset 0 1px 0 var(--card-highlight)}
.eyebrow__pulse{width:5px;height:5px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.eyebrow__divider{width:1px;height:8px;background:var(--line-strong)}
.eyebrow__muted{color:var(--muted-2);font-weight:650}
.welcome h1{max-width:820px;margin:20px 0 15px;color:var(--text);font-size:clamp(42px,4.45vw,64px);font-weight:500;
  letter-spacing:-.062em;line-height:1.035;text-wrap:balance}
.welcome h1 em{padding-right:.045em;color:var(--accent-text);font-family:var(--font-serif);font-size:1.06em;font-style:italic;font-weight:400}
.welcome__lede{max-width:580px;margin:0;color:var(--muted);font-size:13.5px;line-height:1.72}
.prompt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:clamp(26px,4.2vh,40px)}
.prompt-card{display:flex;align-items:center;min-width:0;min-height:82px;padding:14px;border:1px solid var(--line);border-radius:16px;
  background:linear-gradient(150deg,var(--surface-raised),var(--surface));color:var(--text);text-align:left;
  box-shadow:var(--card-shadow),inset 0 1px 0 var(--card-highlight);
  transition:transform 240ms var(--ease-out),border-color 200ms ease,box-shadow 240ms ease}
.prompt-card:hover{border-color:var(--line-strong);box-shadow:var(--card-shadow-hover),inset 0 1px 0 var(--card-highlight);transform:translateY(-2px)}
.prompt-card__icon{display:grid;width:37px;height:37px;flex:0 0 auto;margin-right:12px;place-items:center;border-radius:10px}
.prompt-card__icon .icon{width:16px;height:16px}
.prompt-card__icon--lime{background:var(--tone-lime-bg);color:var(--tone-lime-fg)}
.prompt-card__icon--peach{background:var(--tone-peach-bg);color:var(--tone-peach-fg)}
.prompt-card__icon--sky{background:var(--tone-sky-bg);color:var(--tone-sky-fg)}
.prompt-card__icon--lilac{background:var(--tone-lilac-bg);color:var(--tone-lilac-fg)}
.prompt-card__copy{display:flex;min-width:0;flex-direction:column;gap:3px}
.prompt-card__kicker{color:var(--muted-2);font-size:8.5px;font-weight:750;letter-spacing:.12em;text-transform:uppercase}
.prompt-card__title{overflow:hidden;color:var(--text-soft);font-size:13px;font-weight:650;letter-spacing:-.018em;line-height:1.35;
  text-overflow:ellipsis;white-space:nowrap}
.prompt-card__arrow{width:14px;height:14px;margin-left:auto;color:var(--muted-2);transition:color 180ms ease,transform 220ms var(--ease-out)}
.prompt-card:hover .prompt-card__arrow{color:var(--accent-text);transform:translate(2px,-2px)}

/* messages */
.messages{display:flex;flex-direction:column;width:100%;max-width:var(--content-width);margin:0 auto;padding:34px 0 22px}
.message{animation:messageIn 360ms var(--ease-out) both}
.message+.message{margin-top:28px}
.message--user{display:flex;align-items:flex-end;max-width:78%;margin-left:auto;flex-direction:column}
.user-bubble{max-width:100%;padding:11px 15px;border:1px solid var(--line);border-radius:18px 18px 5px 18px;
  background:var(--user-bubble);color:var(--text);font-size:13.5px;line-height:1.65;box-shadow:inset 0 1px 0 var(--card-highlight)}
.user-bubble p{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
.user-bubble__files{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.message--assistant{display:flex;align-items:flex-start;gap:12px}
.assistant-avatar{display:grid;width:29px;height:29px;flex:0 0 29px;margin-top:1px;place-items:center;border-radius:8px;
  background:var(--accent);color:var(--accent-ink);box-shadow:0 8px 20px -13px var(--accent-line)}
.assistant-avatar .icon{width:14px;height:14px}
.message__main{min-width:0;flex:1}
.message__meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-height:18px;margin:0 0 8px;color:var(--text-soft);
  font-size:10.5px;font-weight:700;line-height:1.2}
.message__meta .model-tag{padding:2px 5px;border:1px solid var(--line);border-radius:4px;color:var(--muted-2);
  font-size:7.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.message__meta .mode-tag{display:inline-flex;align-items:center;gap:3px;padding:2px 5px;border:1px solid var(--accent-line);
  border-radius:4px;background:var(--accent-soft);color:var(--accent-text);font-size:7.5px;font-weight:750;
  letter-spacing:.06em;text-transform:uppercase}
.prose{max-width:760px;color:var(--text-soft);font-size:13.5px;line-height:1.75;overflow-wrap:anywhere}
.prose>:first-child{margin-top:0!important}
.prose>:last-child{margin-bottom:0!important}
.prose p{margin:0 0 13px}
.prose h2,.prose h3,.prose h4{margin:22px 0 8px;color:var(--text);font-weight:700;letter-spacing:-.025em;line-height:1.35}
.prose h2{font-size:15px}.prose h3{font-size:13.5px}
.prose strong{color:var(--text);font-weight:700}
.prose a{color:var(--accent-text);text-decoration:underline;text-decoration-color:var(--accent-line);text-underline-offset:2px}
.prose ul,.prose ol{display:flex;flex-direction:column;gap:6px;margin:9px 0 14px;padding:0;list-style:none}
.prose li{position:relative;padding-left:17px}
.prose ul>li::before{position:absolute;top:.72em;left:2px;width:4px;height:4px;border-radius:1px;background:var(--accent);content:"";transform:rotate(45deg)}
.prose ol{counter-reset:prose-item}
.prose ol>li{padding-left:22px;counter-increment:prose-item}
.prose ol>li::before{position:absolute;top:.08em;left:1px;color:var(--accent-text);content:counter(prose-item) ".";
  font-size:10px;font-weight:750}
.prose blockquote{margin:13px 0;padding:10px 13px;border-left:2px solid var(--accent);border-radius:0 8px 8px 0;
  background:var(--accent-soft);color:var(--text-soft)}
.prose code{padding:1.5px 4.5px;border:1px solid var(--line);border-radius:4px;background:var(--surface-soft);
  color:var(--accent-text);font-family:"SFMono-Regular","Cascadia Code","Roboto Mono",Consolas,monospace;font-size:.88em}
.prose pre{margin:13px 0;padding:13px 14px 40px;overflow-x:auto;border:1px solid var(--code-border);border-radius:11px;
  background:var(--code-bg);color:var(--code-text);font-family:"SFMono-Regular","Cascadia Code","Roboto Mono",Consolas,monospace;
  font-size:11px;line-height:1.7;position:relative;scrollbar-width:thin}
.prose pre code{padding:0;border:0;background:transparent;color:inherit;font-size:inherit}
.kode-salin{position:absolute;right:8px;bottom:8px;display:inline-flex;align-items:center;gap:5px;height:25px;padding:0 8px;
  border:1px solid var(--line-strong);border-radius:7px;background:var(--surface);color:var(--text-soft);
  font-size:9.5px;font-weight:700;cursor:pointer;transition:background-color 140ms ease,color 140ms ease}
.kode-salin .icon{width:12px;height:12px}
.kode-salin:hover{background:var(--accent-soft);color:var(--accent-text)}
.kode-salin.tersalin{background:var(--accent);color:var(--accent-ink)}
.streaming-caret{display:inline-block;width:2px;height:1.05em;margin-left:2px;border-radius:2px;background:var(--accent-text);
  vertical-align:-.16em;animation:caretBlink 900ms steps(1) infinite}
.typing-indicator{display:inline-flex;align-items:center;gap:5px;height:22px;padding-top:2px}
.typing-indicator span{width:5.5px;height:5.5px;border-radius:50%;background:var(--text-soft);animation:typingDot 1.25s ease-in-out infinite}
.typing-indicator span:nth-child(2){animation-delay:140ms}
.typing-indicator span:nth-child(3){animation-delay:280ms}
.message__actions{display:flex;align-items:center;gap:1px;min-height:27px;margin-top:9px;opacity:.58;transition:opacity 160ms ease}
.message--user .message__actions{justify-content:flex-end;margin-top:2px;min-height:20px}
.message:hover .message__actions,.message:focus-within .message__actions{opacity:1}
.action-btn{display:inline-flex;align-items:center;gap:4px;height:26px;padding:0 6px;border-radius:6px;color:var(--muted-2);
  font-size:9px;font-weight:600;line-height:1;transition:background-color 140ms ease,color 140ms ease}
.action-btn .icon{width:13px;height:13px}
.action-btn:hover{background:var(--surface-soft);color:var(--text-soft)}
.action-btn.is-active{background:var(--accent-soft);color:var(--accent-text)}
.system-note{margin:0 auto;max-width:520px;padding:8px 13px;border:1px solid var(--accent-line);border-radius:10px;
  background:var(--accent-soft);color:var(--accent-text);font-size:10.5px;font-weight:600;text-align:center}

/* composer */
.composer-region{z-index:6;flex:0 0 auto;padding:8px 32px max(17px,env(safe-area-inset-bottom));
  background:linear-gradient(to top,var(--bg) 56%,transparent)}
.composer-shell{width:100%;max-width:var(--content-width);margin:0 auto}
.composer{padding:12px 12px 9px;border:1px solid var(--line-strong);border-radius:21px;background:var(--composer-bg);
  box-shadow:var(--composer-shadow);-webkit-backdrop-filter:blur(22px) saturate(130%);backdrop-filter:blur(22px) saturate(130%);
  transition:border-color 180ms ease,box-shadow 180ms ease}
.composer:focus-within{border-color:var(--accent-line);box-shadow:0 0 0 4px var(--accent-soft),var(--composer-shadow)}
.composer__input{display:block;width:100%;min-height:27px;max-height:142px;padding:3px 5px 8px;overflow-y:hidden;border:0;
  outline:0;background:transparent;color:var(--text);font-size:13.5px;line-height:1.58;resize:none}
.composer__input::placeholder{color:var(--muted-2);opacity:1}
.composer__bar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:1px}
.composer__tools,.composer__actions{display:flex;align-items:center;gap:5px}
.round-btn{display:grid;width:31px;height:31px;place-items:center;border:1px solid var(--line);border-radius:50%;
  background:transparent;color:var(--muted);transition:background-color 150ms ease,color 150ms ease,transform 150ms var(--ease-smooth)}
.round-btn .icon{width:15px;height:15px}
.round-btn:hover{border-color:var(--line-strong);background:var(--surface-soft);color:var(--text)}
.round-btn[aria-pressed="true"]{border-color:var(--accent-line);background:var(--accent-soft);color:var(--accent-text)}
.tool-pill{display:inline-flex;align-items:center;gap:5px;height:31px;padding:0 10px;border:1px solid var(--line);border-radius:99px;
  color:var(--muted);font-size:10px;font-weight:600}
.tool-pill .icon{width:13px;height:13px}
.tool-pill:hover{border-color:var(--line-strong);background:var(--surface-soft);color:var(--text)}
.tool-pill[aria-pressed="true"]{border-color:var(--accent-line);background:var(--accent-soft);color:var(--accent-text)}
.send-btn{display:grid;width:35px;height:35px;margin-left:2px;place-items:center;border-radius:11px;background:var(--accent);
  color:var(--accent-ink);box-shadow:0 8px 20px -12px var(--accent-line);
  transition:background-color 160ms ease,transform 160ms var(--ease-smooth),opacity 160ms ease}
.send-btn .icon{width:17px;height:17px;stroke-width:2.1}
.send-btn:hover:not(:disabled){background:var(--accent-bright);transform:translateY(-1px)}
.send-btn:disabled{cursor:default;background:var(--surface-soft);color:var(--muted-2);box-shadow:none;opacity:.75}
.send-btn__stop{display:none}
.composer.is-generating .send-btn{background:var(--text);color:var(--bg);opacity:1}
.composer.is-generating .send-btn__send{display:none}
.composer.is-generating .send-btn__stop{display:block}
.composer__foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px;padding:0 5px;
  color:var(--muted-2);font-size:9px}
.composer__foot p{margin:0}
.composer__hint{display:flex;align-items:center;gap:4px;white-space:nowrap}
.composer__hint kbd{padding:1px 4px;border:1px solid var(--line);border-radius:3px;background:var(--surface-soft);color:var(--muted);
  font-size:8px;font-weight:600}
.attachment-tray{display:flex;flex-wrap:wrap;gap:5px;padding:1px 4px 9px}
.attachment-chip{display:inline-flex;align-items:center;gap:6px;max-width:210px;height:27px;padding:0 5px 0 8px;
  border:1px solid var(--line);border-radius:7px;background:var(--surface-soft);color:var(--text-soft);font-size:9.5px}
.attachment-chip .icon{width:11px;height:11px;color:var(--muted-2)}

/* toast */
.toast-region{position:fixed;z-index:120;top:80px;right:24px;display:flex;align-items:flex-end;flex-direction:column;
  gap:7px;pointer-events:none}
.toast{display:flex;align-items:center;gap:8px;max-width:min(360px,calc(100vw - 28px));padding:6px 13px 6px 6px;
  border:1px solid var(--toast-border);border-radius:99px;background:var(--toast-bg);color:var(--toast-text);
  font-size:10.5px;font-weight:600;box-shadow:0 16px 40px -20px rgba(0,0,0,.7);animation:toastIn 260ms var(--ease-out) both}
.toast.is-leaving{animation:toastOut 200ms ease both}
.toast__icon{display:grid;width:23px;height:23px;flex:0 0 23px;place-items:center;border-radius:50%;background:var(--accent);color:var(--accent-ink)}
.toast__icon .icon{width:12px;height:12px;stroke-width:2.2}

/* modals */
.overlay{position:fixed;inset:0;z-index:200;display:none;align-items:center;justify-content:center;padding:18px;
  background:var(--overlay);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.overlay.is-open{display:flex}
.modal{width:100%;max-width:420px;max-height:calc(100dvh - 40px);overflow:auto;padding:22px;border:1px solid var(--line-strong);
  border-radius:20px;background:var(--surface);box-shadow:var(--menu-shadow);animation:menuIn 200ms var(--ease-out) both}
.modal h2{margin:0 0 5px;font-size:20px;font-weight:750;letter-spacing:-.03em}
.modal p.lede{margin:0 0 16px;color:var(--muted);font-size:11.5px;line-height:1.6}
.tabs{display:flex;gap:5px;margin-bottom:14px;padding:4px;border:1px solid var(--line);border-radius:11px;background:var(--surface-soft)}
.tabs button{flex:1;height:32px;border-radius:8px;color:var(--muted);font-size:11.5px;font-weight:750}
.tabs button.is-active{background:var(--accent-soft);color:var(--accent-text)}
.field{display:flex;flex-direction:column;gap:5px;margin-top:10px}
.field label{font-size:10.5px;font-weight:700;color:var(--text-soft)}
.field input{width:100%;height:38px;padding:0 11px;border:1px solid var(--line);border-radius:9px;background:var(--surface-soft);
  color:var(--text);font-size:12.5px;outline:none}
.field input:focus{border-color:var(--accent-line);background:var(--surface)}
.modal .btn-primary{width:100%;height:40px;margin-top:14px;border-radius:10px;background:linear-gradient(135deg,var(--accent-bright),var(--accent));
  color:var(--accent-ink);font-size:12.5px;font-weight:800}
.modal .btn-ghost{width:100%;height:36px;margin-top:8px;border:1px solid var(--line);border-radius:10px;background:transparent;
  color:var(--muted);font-size:11.5px;font-weight:650}
.modal .err{margin-top:10px;padding:8px 10px;border:1px solid rgba(255,107,107,.35);border-radius:8px;
  background:rgba(255,107,107,.1);color:#ffb3b3;font-size:10.5px;line-height:1.5}
.mode-option{display:flex;align-items:flex-start;gap:9px;margin-top:8px;padding:10px 11px;border:1.5px solid var(--line);
  border-radius:11px;cursor:pointer}
.mode-option.is-active{border-color:var(--accent-line);background:var(--accent-soft)}
.mode-option input{margin-top:3px}
.mode-option b{display:block;font-size:11.5px;color:var(--text-soft)}
.mode-option small{display:block;margin-top:2px;color:var(--muted-2);font-size:10px;line-height:1.5}
.saldo-line{margin:2px 0 12px;color:var(--muted);font-size:11.5px}
.saldo-line b{color:var(--accent-text);font-size:22px;font-weight:800;margin-right:4px}

@keyframes welcomeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes messageIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@keyframes menuIn{from{opacity:0;transform:translateY(-4px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes typingDot{0%,60%,100%{opacity:.28;transform:translateY(0)}30%{opacity:.9;transform:translateY(-2px)}}
@keyframes caretBlink{0%,48%{opacity:1}49%,100%{opacity:0}}
@keyframes toastIn{from{opacity:0;transform:translateY(-6px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes toastOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-4px)}}

/* responsive */
@media (max-width:1180px){
  :root{--sidebar-width:264px;--content-width:820px}
  .topbar{padding:0 22px}
  .chat-main{padding:0 27px}
  .composer-region{padding-right:27px;padding-left:27px}
  .welcome h1{font-size:clamp(40px,4.35vw,58px)}
}
@media (max-width:900px){
  .icon-btn.sidebar__close{display:grid}
  .sidebar{position:fixed;z-index:60;top:0;bottom:0;left:0;width:min(86vw,326px);height:100%;
    padding-top:env(safe-area-inset-top);border-right:1px solid var(--line-strong);
    box-shadow:24px 0 80px -40px rgba(0,0,0,.75);transform:translateX(-102%);
    transition:transform 360ms var(--ease-out);will-change:transform}
  .sidebar.is-open{transform:translateX(0)}
  .sidebar__close{display:grid!important}
  .sidebar-scrim{position:fixed;z-index:55;inset:0;display:block;border:0;background:var(--overlay);opacity:0;pointer-events:none;
    -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);transition:opacity 280ms ease}
  .sidebar-scrim.is-open{opacity:1;pointer-events:auto}
  .topbar{flex-basis:calc(60px + env(safe-area-inset-top));height:calc(60px + env(safe-area-inset-top));
    padding:env(safe-area-inset-top) 15px 0;gap:6px}
  .topbar__menu{display:grid}
  .topbar__new{display:grid}
  .sync-status{display:none}
  .chat-main{padding:0 20px}
  .welcome{padding-top:clamp(30px,5vh,56px);padding-bottom:26px}
  .welcome h1{margin-top:18px;font-size:clamp(36px,5.6vw,50px)}
  .composer-region{padding:7px 20px max(13px,env(safe-area-inset-bottom))}
  .messages{padding-top:26px}
  .share-btn span{display:none}
  .toast-region{top:calc(72px + env(safe-area-inset-top));right:14px}
}
@media (max-width:700px){
  .topbar{padding:env(safe-area-inset-top) 13px 0;gap:5px}
  .model-btn{padding:0 7px}
  .model-btn__tag{display:none}
  .icon-btn{width:36px;height:36px}
  .chat-main{padding:0 16px}
  .welcome h1{max-width:530px;margin:17px 0 12px;font-size:clamp(32px,8.4vw,42px);line-height:1.07;letter-spacing:-.055em}
  .welcome__lede{max-width:470px;font-size:12.5px;line-height:1.65}
  .prompt-grid{gap:9px;margin-top:24px}
  .prompt-card{position:relative;display:flex;align-items:flex-start;min-height:106px;flex-direction:column;gap:13px;
    padding:12px;border-radius:14px}
  .prompt-card__icon{width:32px;height:32px;margin-right:0;border-radius:9px}
  .prompt-card__copy{padding-right:8px}
  .prompt-card__title{overflow:visible;font-size:12.5px;line-height:1.3;text-overflow:clip;white-space:normal}
  .prompt-card__arrow{position:absolute;top:15px;right:13px;width:13px;height:13px;margin:0}
  .composer-region{padding:6px 13px max(11px,env(safe-area-inset-bottom))}
  .composer{padding:11px 10px 8px;border-radius:19px}
  .composer__input{min-height:28px;padding:3px 4px 9px;font-size:16px;line-height:1.45}
  .composer__foot{margin-top:7px;padding:0 4px;font-size:8.5px}
  .composer__hint{display:none}
  .messages{padding-top:22px;padding-bottom:16px}
  .message+.message{margin-top:24px}
  .message--user{max-width:88%}
  .user-bubble{padding:10px 13px;border-radius:16px 16px 5px 16px;font-size:13px}
  .prose{font-size:13px;line-height:1.72}
  .message__actions{opacity:.72}
  .toast-region{top:calc(68px + env(safe-area-inset-top));right:12px;left:12px;align-items:stretch}
  .toast{max-width:none;align-self:flex-end;border-radius:12px}
  .badge-token{display:none}
}
@media (max-width:560px){.share-btn{display:none}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}


/* =========================================================
   Tema BARO — menyesuaikan baro.camp
   ========================================================= */
@font-face{font-family:"Sora";src:url("/assets/fonts/sora-var-latin.woff2") format("woff2");
  font-weight:300 700;font-style:normal;font-display:swap}
@font-face{font-family:"Manrope";src:url("/assets/fonts/manrope-var-latin.woff2") format("woff2");
  font-weight:300 700;font-style:normal;font-display:swap}

:root[data-theme="dark"]{
  --bg:#07111f;--bg-translucent:rgba(7,17,31,.82);--sidebar-bg:#040a12;
  --surface:#0b1930;--surface-raised:#10233d;--surface-soft:#081527;
  --text:#f4f8ff;--text-soft:#dbe7f4;--muted:#9aacc3;--muted-2:#7488a0;
  --line:rgba(173,209,242,.13);--line-strong:rgba(183,222,250,.24);
  --card-highlight:rgba(255,255,255,.05);
  --accent:#58dfff;--accent-bright:#9df3ff;--accent-ink:#041018;--accent-text:#9df3ff;
  --accent-soft:rgba(88,223,255,.10);--accent-line:rgba(88,223,255,.34);
  --user-bubble:#0e2740;--composer-bg:rgba(10,23,40,.88);
  --toast-bg:#f4f8ff;--toast-text:#041018;--toast-border:rgba(0,0,0,.08);
  --code-bg:#040a12;--code-border:rgba(173,209,242,.16);--code-text:#dbe7f4;
  --grid-line:rgba(173,209,242,.045);
  --glow-lime:rgba(39,123,255,.12);--glow-violet:rgba(146,123,255,.09);
  --scroll-thumb:rgba(173,209,242,.18);--scroll-thumb-hover:rgba(173,209,242,.28);
  --success:#7ef0d2;
  --tone-lime-bg:rgba(88,223,255,.10);--tone-lime-fg:#9df3ff;
  --tone-peach-bg:rgba(217,140,255,.10);--tone-peach-fg:#d98cff;
  --tone-sky-bg:rgba(39,123,255,.12);--tone-sky-fg:#8fc2ff;
  --tone-lilac-bg:rgba(146,123,255,.12);--tone-lilac-fg:#b7a8ff;
  --avatar-from:#58dfff;--avatar-to:#277bff;--avatar-ink:#041018;
  --menu-shadow:0 28px 80px -28px rgba(2,8,18,.85),0 2px 8px rgba(0,0,0,.25);
  --composer-shadow:0 26px 80px -38px rgba(2,8,18,.9),inset 0 1px 0 rgba(255,255,255,.04);
  --card-shadow:0 14px 34px -28px rgba(2,8,18,.9);--card-shadow-hover:0 20px 44px -26px rgba(2,8,18,.9);
  --overlay:rgba(3,8,16,.66);
}
:root[data-theme="light"]{
  --bg:#f3f7fd;--bg-translucent:rgba(243,247,253,.85);--sidebar-bg:#e9f0fa;
  --surface:#ffffff;--surface-raised:#ffffff;--surface-soft:#eef4fc;
  --text:#081426;--text-soft:#25374d;--muted:#5a6f89;--muted-2:#6b7f97;
  --line:rgba(8,20,38,.10);--line-strong:rgba(8,20,38,.18);
  --accent:#277bff;--accent-bright:#58dfff;--accent-ink:#ffffff;--accent-text:#1b5fd6;
  --accent-soft:rgba(39,123,255,.10);--accent-line:rgba(39,123,255,.32);
  --user-bubble:#ffffff;--composer-bg:rgba(255,255,255,.95);
  --toast-bg:#081426;--toast-text:#f4f8ff;--code-bg:#081426;--code-text:#dbe7f4;
  --grid-line:rgba(8,20,38,.05);--glow-lime:rgba(39,123,255,.10);--glow-violet:rgba(146,123,255,.08);
}
body{font-family:"Manrope","Segoe UI Variable Text","Segoe UI",system-ui,sans-serif}
.brand__word{font-family:"Sora","Segoe UI Variable Display",sans-serif;font-size:15px;font-weight:500;
  letter-spacing:.34em;color:var(--text)}
.brand__mark{display:none!important}
.brand__orb{position:relative;display:block;width:22px;height:22px;border:1px solid rgba(189,234,255,.3);
  border-radius:50%;flex:none}
.brand__orb::before{content:"";position:absolute;inset:2px;border-radius:50%;
  background:radial-gradient(circle at 34% 26%,#f3ffff 0%,#9df3ff 22%,#3b9eff 55%,#6b48dc 78%,#08121f 100%);
  box-shadow:inset 0 0 6px rgba(219,250,255,.55),0 0 16px rgba(88,223,255,.28)}
.brand__orb span{position:absolute;width:28px;height:9px;top:5px;left:-4px;
  border:1px solid rgba(195,240,255,.35);border-radius:50%;transform:rotate(-28deg)}
.brand__suffix{display:inline-grid;place-items:center;min-width:22px;height:17px;margin-left:2px;
  border:1px solid rgba(160,209,240,.22);border-radius:4px;color:var(--muted);
  font-family:"Cascadia Mono","SFMono-Regular",Consolas,monospace;font-size:7px;font-weight:500;letter-spacing:.06em}
.new-chat, .btn-primary, .modal .btn-primary{background:linear-gradient(135deg,#277bff,#58dfff);color:#041018;
  box-shadow:0 12px 28px -18px rgba(39,123,255,.5),inset 0 1px 0 rgba(255,255,255,.35)}
.new-chat:hover{filter:brightness(1.06)}
.new-chat__icon{background:rgba(4,16,24,.14)}
.new-chat__kbd{background:rgba(4,16,24,.10);border-color:rgba(4,16,24,.16);color:rgba(4,16,24,.6)}
.send-btn{background:linear-gradient(135deg,#277bff,#58dfff);color:#041018}
.send-btn:hover:not(:disabled){background:linear-gradient(135deg,#3b8dff,#9df3ff)}
.send-btn:disabled{background:var(--surface-soft);color:var(--muted-2)}
.assistant-avatar{background:radial-gradient(circle at 34% 26%,#f3ffff 0%,#9df3ff 22%,#3b9eff 55%,#6b48dc 88%,#08121f 100%);
  color:#041018;box-shadow:0 8px 22px -12px rgba(88,223,255,.5)}
.toast__icon{background:linear-gradient(135deg,#277bff,#58dfff);color:#041018}
.welcome h1{font-family:"Sora","Segoe UI Variable Display",sans-serif;font-weight:500;letter-spacing:-.045em}
.welcome h1 em{font-family:"Sora",sans-serif;font-style:normal;font-weight:600;color:var(--accent-text)}
.model-btn__mark{background:radial-gradient(circle at 34% 26%,#f3ffff 0%,#9df3ff 22%,#3b9eff 55%,#6b48dc 88%,#08121f 100%);
  color:#041018}
.mode-tag,.badge-token{border-color:var(--accent-line);background:var(--accent-soft);color:var(--accent-text)}
.usage-bar span{background:linear-gradient(90deg,#277bff,#58dfff)}
.chat-item.is-active{box-shadow:inset 0 0 0 1px var(--line)}
.ghost-btn:hover,.icon-btn:hover{background:var(--surface-soft)}

/* obrolan: tombol ubah judul */
.chat-item{position:relative}
.chat-item__title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-item__rename{display:grid;place-items:center;width:20px;height:20px;margin-left:auto;border-radius:5px;
  opacity:0;color:var(--muted);transition:opacity .15s ease,background .15s ease}
.chat-item:hover .chat-item__rename,.chat-item.is-active .chat-item__rename{opacity:1}
.chat-item__rename:hover{background:var(--surface-soft);color:var(--text)}
.chat-item__rename .icon{width:12px;height:12px}

/* hint pindah ke Full access */
.mode-hint{display:block;width:100%;margin:0 auto 8px;max-width:var(--composer-max,860px);padding:8px 14px;
  border-radius:10px;border:1px solid var(--accent-line);background:var(--accent-soft);color:var(--accent-text);
  font:inherit;font-size:11px;line-height:1.5;text-align:center;cursor:pointer}
.mode-hint:hover{background:rgba(88,223,255,.18)}
.mode-hint b{font-weight:700}
