/* Vyaas · enterprise shell (docs/enterprise-shell.html §3–§4): sidebar, topbar, popovers,
   command palette, the home hero, composer v2 and quick actions. Tokens from glacier.css only. */

/* ---------- layout ---------- */
body.shell-body { height: 100dvh; overflow: hidden; }
.shell { --side-w: 280px; --top-h: 72px; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); height: 100dvh; background: var(--s0); color: var(--t1); transition: grid-template-columns .22s ease; }
.shell.collapsed { --side-w: 76px; }
.frame { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.content { flex: 1; min-height: 0; overflow: auto; position: relative; }
.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i.sm { width: 14px; height: 14px; }
.spacer { flex: 1; }
.icon-sm { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--t3); cursor: pointer; }
.icon-sm:hover { background: var(--s2); color: var(--t1); }
.icon-sm .i { width: 16px; height: 16px; }

/* ---------- sidebar ---------- */
.side { display: flex; flex-direction: column; gap: 6px; padding: 18px 16px 16px; background: var(--side); border-right: 1px solid var(--l1); min-height: 0; overflow: hidden; }
.side-head { display: flex; align-items: center; gap: 8px; min-height: 48px; margin-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; flex: 1; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand .name { font: 700 20px/1.1 var(--sans); letter-spacing: -.02em; color: var(--t1); white-space: nowrap; }
.brand .name i { font-style: normal; }
.brand .sub { font: 400 13px/1.3 var(--sans); color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-collapse { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--t2); cursor: pointer; flex: none; }
.side-collapse:hover { background: var(--s2); color: var(--t1); }
.side-top { display: flex; gap: 8px; margin-bottom: 12px; }
.side-new { flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border-radius: 10px; background: var(--accent); color: #fff; font: 600 14px var(--sans); text-decoration: none; box-shadow: 0 6px 16px -10px color-mix(in srgb, var(--accent) 65%, transparent); }
.side-new:hover { text-decoration: none; filter: brightness(1.05); }
.side-new .i { width: 18px; height: 18px; color: #fff; }
.side-home { flex: none; width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--l1); background: var(--s1); color: var(--t2); text-decoration: none; position: relative; }
.side-home:hover { background: var(--s2); color: var(--t1); text-decoration: none; }
.side-home.on { border-color: color-mix(in srgb, var(--accent) 45%, var(--l1)); background: var(--s3); color: var(--accent); }
.side-home .i { width: 19px; height: 19px; }
:root[data-theme="dark"] .side-new { background: var(--grad); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .side-new { background: var(--grad); } }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-it { position: relative; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 13px; border-radius: 9px; color: var(--t2); font: 500 13.5px var(--sans); text-decoration: none; white-space: nowrap; }
.nav-it .i { color: var(--t3); width: 18px; height: 18px; }
.nav-it:hover { background: var(--s2); text-decoration: none; }
.nav-it.on { background: var(--s3); color: var(--t1); font-weight: 600; }
.nav-it.on .i { color: var(--accent); }
.nav-it.soon { color: var(--t3); cursor: default; }
.nav-it.soon small { margin-left: auto; font: 600 10px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--t3); border: 1px solid var(--l1); border-radius: 999px; padding: 2px 7px; }
.nav-sep { height: 1px; background: var(--l1); margin: 8px 6px; }
.nav-tog { margin-left: auto; width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: var(--t2); cursor: pointer; display: inline-grid; place-items: center; }
.nav-tog .i { width: 18px; height: 18px; transition: transform .18s; }
.nav-tog[aria-expanded="true"] .i { transform: rotate(180deg); }
.nav-tog:hover { background: color-mix(in srgb, var(--t1) 8%, transparent); }
.nav-sub { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 4px 26px; padding-left: 10px; border-left: 1px solid var(--l2); }
.nav-sub[hidden] { display: none; }
.nav-sub-it { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 10px; border-radius: 8px; color: var(--t1); font: 400 15px var(--sans); text-decoration: none; white-space: nowrap; }
.nav-sub-it .i { width: 18px; height: 18px; color: var(--t2); }
.nav-sub-it:hover { background: var(--s2); text-decoration: none; }
.nav-sub-it.muted { color: var(--t3); }
.recent { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--l1); display: flex; flex-direction: column; gap: 2px; min-height: 0; }
.recent-h { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 6px; font: 600 14px var(--sans); color: var(--t2); }
.recent-list { display: flex; flex-direction: column; gap: 2px; }
.recent-it { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 10px; border-radius: 8px; color: var(--t1); font: 400 14px var(--sans); text-decoration: none; }
.recent-it .i { width: 18px; height: 18px; color: var(--t2); }
.recent-it span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-it:hover { background: var(--s2); text-decoration: none; }
.recent-empty { font-size: 13px; color: var(--t3); padding: 6px 10px; }
.view-all { display: inline-flex; align-items: center; gap: 8px; padding: 10px 10px 0; color: var(--link); font: 500 14px var(--sans); text-decoration: none; }
.view-all .i { width: 16px; height: 16px; }
.org-card { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 12px 12px; border: 1px solid var(--l1); border-radius: 12px; background: var(--s1); color: var(--t1); text-decoration: none; box-shadow: var(--shadow); }
.org-card:hover { text-decoration: none; border-color: var(--l2); }
.org-ic { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); flex: none; }
.org-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; flex: 1; }
.org-text b { font: 600 14.5px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-text small { font-size: 13px; color: var(--t2); }
.org-card .chev { color: var(--t3); width: 18px; height: 18px; }

/* collapsed rail */
.shell.collapsed .side { padding: 18px 12px 16px; align-items: stretch; }
.shell.collapsed .brand-text, .shell.collapsed .side-new span, .shell.collapsed .nav-it span, .shell.collapsed .nav-it small, .shell.collapsed .nav-tog, .shell.collapsed .nav-sub, .shell.collapsed .recent, .shell.collapsed .org-text, .shell.collapsed .org-card .chev { display: none; }
.shell.collapsed .side-head { flex-direction: column; gap: 10px; }
.shell.collapsed .brand { justify-content: center; }
.shell.collapsed .side-collapse .i { transform: rotate(180deg); }
.shell.collapsed .side-top { flex-direction: column; gap: 8px; }
.shell.collapsed .side-new, .shell.collapsed .side-home { justify-content: center; padding: 0; width: 44px; margin: 0 auto; }
.shell.collapsed .nav-it { justify-content: center; padding: 0; width: 50px; margin: 0 auto; }
.shell.collapsed .org-card { justify-content: center; padding: 8px; }
.shell.collapsed .nav-it[data-tip]:hover::after, .shell.collapsed .side-new[data-tip]:hover::after, .shell.collapsed .side-home[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); background: var(--t1); color: var(--s1); font: 500 12px var(--sans); padding: 5px 9px; border-radius: 6px; white-space: nowrap; z-index: 5; }
.shell.collapsed .side-new { position: relative; }

/* ---------- topbar ---------- */
.top { display: flex; align-items: center; gap: 12px; height: var(--top-h); padding: 0 24px 0 20px; flex: none; }
.top-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.top-menu { display: inline-grid; margin-left: -6px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--t2); cursor: pointer; position: relative; }
.icon-btn:hover { background: var(--s2); color: var(--t1); }
.icon-btn .i { width: 22px; height: 22px; }
.icon-btn .dot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 2px var(--s0); }
.search-pill { display: flex; align-items: center; gap: 12px; width: 380px; max-width: 42vw; height: 44px; padding: 0 14px 0 16px; border: 1px solid var(--l1); border-radius: 12px; background: color-mix(in srgb, var(--s2) 55%, var(--s1)); color: var(--t2); font: 400 14px var(--sans); cursor: text; text-align: left; box-shadow: 0 1px 2px rgba(11, 18, 48, .03); }
.search-pill kbd { background: var(--s1); }
.search-pill:hover { border-color: var(--l2); }
.search-pill .ph { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-pill kbd, .palette kbd { font: 500 12px var(--sans); color: var(--t2); border: 1px solid var(--l1); border-radius: 6px; padding: 2px 7px; background: var(--s0); white-space: nowrap; }
.plan-badge { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font: 600 15px var(--sans); text-decoration: none; white-space: nowrap; }
.plan-badge:hover { text-decoration: none; filter: brightness(.97); }
.plan-badge.up { background: var(--grad); color: #fff; }
:root[data-theme="dark"] .plan-badge:not(.up) { border: 1px solid var(--l2); background: var(--s1); color: var(--t1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plan-badge:not(.up) { border: 1px solid var(--l2); background: var(--s1); color: var(--t1); } }
.avatar-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; cursor: pointer; }
.avatar.grad { width: 38px; height: 38px; border: 0; background: var(--grad); color: #fff; font: 700 13px var(--sans); }
.avatar.grad.lg { width: 42px; height: 42px; font-size: 14px; }
.avatar-btn .chev { width: 18px; height: 18px; color: var(--t2); }
.top-cta { height: 40px; padding: 0 16px; border-radius: 10px; font-weight: 600; }

/* ---------- popovers (shell) ---------- */
.pop { width: 320px; border-radius: 14px; padding: 8px; box-shadow: 0 24px 60px -20px rgba(11, 18, 48, .25), 0 0 0 1px var(--l1); border: 0; font-size: 14px; }
.pop .it { gap: 12px; padding: 10px 10px; border-radius: 9px; font: 500 14px var(--sans); color: var(--t1); }
.pop .it .i { width: 18px; height: 18px; color: var(--t2); }
.pop .it small { font-size: 12px; }
.pop .sec { font: 600 11px var(--sans); letter-spacing: .1em; padding: 8px 10px 6px; }
.pop .who-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px 10px; font-size: 13px; white-space: normal; }
.pop .who-row b { font-weight: 600; font-size: 14px; }
.pop-h { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 10px; font: 600 15px var(--sans); color: var(--t1); border-bottom: 1px solid var(--l1); margin-bottom: 6px; }
.pop-h .lnk { border: 0; background: none; color: var(--link); font: 500 13px var(--sans); cursor: pointer; padding: 0; }
.pop-foot { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; margin-top: 6px; border-top: 1px solid var(--l1); font: 500 13px var(--sans); color: var(--link); text-decoration: none; }
.pop-foot.muted { color: var(--t3); font-weight: 500; font-size: 12px; }
.pop-foot img { border-radius: 50%; }
.pop-empty { padding: 18px 10px; color: var(--t3); font-size: 13px; text-align: center; }
.menu-bell { width: 380px; }
.bell-list { max-height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.bell-it { display: flex; gap: 12px; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--t1); }
.bell-it:hover { background: var(--s2); text-decoration: none; }
.bell-it.unread { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.bell-it .ic { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); flex: none; }
.bell-it .tx { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.bell-it .tx b { font: 600 13.5px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bell-it .tx span { font-size: 12.5px; color: var(--t2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bell-it .tx time { font-size: 11.5px; color: var(--t3); }
.theme-seg { display: flex; gap: 4px; margin: 2px 10px 8px; padding: 4px; border-radius: 10px; background: var(--s2); border: 0; }
.pop .theme-seg button { flex: 1; height: 34px; width: auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 7px; background: transparent; color: var(--t2); font: 500 13px var(--sans); cursor: pointer; }
.pop .theme-seg button .i { width: 16px; height: 16px; }
.pop .theme-seg button[aria-pressed="true"] { background: var(--s1); color: var(--t1); box-shadow: 0 1px 3px rgba(11, 18, 48, .12); }
.pop .meter { margin: 0 10px 10px; }
.pop .meter span { font-size: 12px; }

/* ---------- command palette ---------- */
.palette-dim { position: fixed; inset: 0; z-index: 60; background: rgba(5, 10, 35, .35); backdrop-filter: blur(2px); }
.palette { position: fixed; z-index: 61; left: 50%; top: 12vh; transform: translateX(-50%); width: min(680px, calc(100vw - 24px)); background: var(--s1); border-radius: 16px; box-shadow: 0 40px 90px -30px rgba(5, 10, 35, .5), 0 0 0 1px var(--l1); overflow: hidden; }
.palette[hidden], .palette-dim[hidden] { display: none; }
.palette-in { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--l1); }
.palette-in .i { color: var(--t3); width: 22px; height: 22px; }
.palette-in input { flex: 1; border: 0; background: transparent; color: var(--t1); font: 400 17px var(--sans); outline: none; }
.palette-in input::placeholder { color: var(--t3); }
.palette-res { max-height: 56vh; overflow-y: auto; padding: 8px; }
.palette-res .grp { font: 600 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--t3); padding: 10px 10px 4px; }
.palette-res .r { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 10px; color: var(--t1); text-decoration: none; cursor: pointer; }
.palette-res .r .i { width: 18px; height: 18px; color: var(--t2); }
.palette-res .r .tx { display: flex; flex-direction: column; min-width: 0; }
.palette-res .r .tx b { font: 500 14px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-res .r .tx span { font-size: 12.5px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-res .r kbd { margin-left: auto; }
.palette-res .r.on, .palette-res .r:hover { background: var(--s2); text-decoration: none; }
.palette-res .empty { padding: 26px 10px; color: var(--t3); text-align: center; font-size: 14px; }
.palette-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--l1); font-size: 12px; color: var(--t3); }
.palette-foot kbd { margin-right: 4px; }
.shortcuts { padding: 8px 8px 12px; }
.shortcuts .keys { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; padding: 10px 12px; font-size: 14px; }
.shortcuts .keys dt { display: flex; gap: 4px; }
.shortcuts .keys dd { margin: 0; color: var(--t2); }

/* ---------- home (hero + composer v2 + quick actions) ---------- */
/* Home background: the customer's wave artwork (center / cover, as in their CSS), on its own layer
   so it can be colour-boosted to read like the wireframe without touching the content. */
.content.home-bg { background: var(--s0); }
.content.home-bg::before { content: ""; position: absolute; inset: 0; background: var(--wave) center / cover no-repeat; filter: var(--wave-filter, none); pointer-events: none; z-index: 0; }
.content.home-bg > * { position: relative; z-index: 1; }
.home { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 52px 32px 40px; gap: 0; background: transparent; }
.hero-logo { display: flex; align-items: center; gap: 18px; }
.hero-logo img { width: 72px; height: 72px; }
.hero-logo .wm { font: 600 54px/1 var(--sans); letter-spacing: -.04em; color: var(--brand-ink); }
.hero-logo .wm i { font-style: normal; background: var(--grad-ai); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hero-tag { display: flex; align-items: center; gap: 16px; margin: 12px 0 0; font: 500 12px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--brand-tag); }
.hero-tag::before, .hero-tag::after { content: ""; width: 44px; height: 1px; border-radius: 2px; background: var(--brand-tag); opacity: .5; }
.hero-h1 { margin: 30px 0 0; font: 600 36px/1.2 var(--sans); letter-spacing: -.025em; color: var(--t1); text-align: center; text-wrap: balance; }
.hero-sub { margin: 12px 0 0; font: 400 17px/1.5 var(--sans); color: var(--t2); text-align: center; max-width: 56ch; }
.composer.v2 { width: 100%; max-width: 1090px; margin: 36px auto 0; padding: 20px 22px 16px; border: 1px solid var(--l1); border-radius: 18px; background: var(--s1); box-shadow: var(--shadow); gap: 14px; }
.composer.v2:focus-within { box-shadow: var(--shadow), var(--glow); border-color: color-mix(in srgb, var(--accent) 45%, var(--l1)); }
:root[data-theme="dark"] .composer.v2 { border-color: color-mix(in srgb, var(--accent) 45%, var(--l2)); box-shadow: var(--shadow), var(--glow); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .composer.v2 { border-color: color-mix(in srgb, var(--accent) 45%, var(--l2)); box-shadow: var(--shadow), var(--glow); } }
.composer.v2 textarea { font: 400 16px/1.55 var(--sans); min-height: 32px; padding: 2px 4px; letter-spacing: .005em; }
.composer.v2 textarea::placeholder { color: var(--t3); }
.composer.v2 .row { gap: 10px; }
.cbtn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--l1); border-radius: 999px; background: var(--s1); color: var(--t1); font: 500 14px var(--sans); cursor: pointer; white-space: nowrap; position: relative; }
.cbtn:hover { background: var(--s2); border-color: var(--l2); }
.cbtn .i { width: 17px; height: 17px; color: var(--t2); }
.cbtn .caret { width: 13px; height: 13px; color: var(--t3); margin-left: -3px; }
#btn-modelsel #model-label { font-weight: 500; }
.cbtn.round { width: 40px; padding: 0; justify-content: center; }
.cbtn.round .i { width: 19px; height: 19px; }
.cbtn .cnt { position: absolute; top: -5px; right: -4px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font: 600 10px/17px var(--sans); text-align: center; }
.cbtn[aria-pressed="true"], .cbtn.on { border-color: color-mix(in srgb, var(--accent) 50%, var(--l1)); background: var(--accent-soft); color: var(--accent); }
.cbtn.on .i { color: var(--accent); }
.cbtn.listening { border-color: #ef4444; color: #ef4444; animation: vy-pulse 1.2s ease-in-out infinite; }
.cbtn.listening .i { color: #ef4444; }
@keyframes vy-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .35); } 50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); } }
.composer.v2 .send { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 11px; background: var(--grad); color: #fff; cursor: pointer; box-shadow: 0 4px 12px -8px color-mix(in srgb, var(--accent) 65%, transparent); font-size: 0; line-height: 0; transition: filter .15s, transform .15s; }
.composer.v2 .send .i { width: 18px; height: 18px; color: #fff; display: block; }
.composer.v2 .send:hover { filter: brightness(1.06); transform: translateY(-1px); }
.composer.v2 .send:disabled { opacity: .5; cursor: default; box-shadow: none; }
.composer.v2 .send:disabled:hover { filter: none; transform: none; }
.composer.v2 .btn.stop { height: 46px; border-radius: 999px; padding: 0 18px; font-size: 14px; }
.composer.v2 .chips { margin-bottom: -4px; }
.composer.v2 .hint { align-self: center; }
.quick { width: 100%; max-width: 1210px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.quick button { position: relative; display: flex; align-items: center; gap: 13px; padding: 14px 15px; border: 1px solid var(--l1); border-radius: 14px; text-align: left; cursor: pointer; color: var(--t1); font: inherit; min-height: 0; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.quick button:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.quick button .tile { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--s1); }
.quick button .tile .i { width: 18px; height: 18px; }
.quick .q-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.quick button b { font: 500 14.5px/1.25 var(--sans); letter-spacing: -.005em; color: var(--t1); }
.quick button .q-desc { font: 400 12.5px/1.35 var(--sans); color: var(--t2); overflow: hidden; text-overflow: ellipsis; }
.quick button .go { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; color: var(--t3); transition: transform .16s ease; }
.quick button .go .i { width: 16px; height: 16px; }
.quick button:hover .go { transform: translateX(3px); }
.quick .q-blue { background: var(--tint-blue); } .quick .q-blue .tile .i, .quick .q-blue .go { color: var(--ink-blue); } .quick .q-blue .tile { background: color-mix(in srgb, var(--ink-blue) 16%, var(--s1)); }
.quick .q-purple { background: var(--tint-purple); } .quick .q-purple .tile .i, .quick .q-purple .go { color: var(--ink-purple); } .quick .q-purple .tile { background: color-mix(in srgb, var(--ink-purple) 16%, var(--s1)); }
.quick .q-green { background: var(--tint-green); } .quick .q-green .tile .i, .quick .q-green .go { color: var(--ink-green); } .quick .q-green .tile { background: color-mix(in srgb, var(--ink-green) 16%, var(--s1)); }
.quick .q-orange { background: var(--tint-orange); } .quick .q-orange .tile .i, .quick .q-orange .go { color: var(--ink-orange); } .quick .q-orange .tile { background: color-mix(in srgb, var(--ink-orange) 18%, var(--s1)); }
:root[data-theme="dark"] .quick button { border-color: color-mix(in srgb, var(--l2) 70%, transparent); }
:root[data-theme="dark"] .quick button .tile { background: rgba(255, 255, 255, .08); }
:root[data-theme="dark"] .quick .q-blue { border-color: #2a4b9c; } :root[data-theme="dark"] .quick .q-purple { border-color: #5b3fa0; } :root[data-theme="dark"] .quick .q-green { border-color: #1f6b67; } :root[data-theme="dark"] .quick .q-orange { border-color: #7a5a2b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .quick button .tile { background: rgba(255, 255, 255, .08); } }
.foot .crafted { margin-top: 14px; font-size: 11px; }
.chat-page:not(.is-empty) .foot .crafted { margin-top: 2px; order: 9; }
.trust { display: flex; align-items: center; gap: 0; margin-top: 44px; font: 500 15px var(--sans); color: var(--t2); flex-wrap: wrap; justify-content: center; }
.trust .i { width: 20px; height: 20px; margin-right: 10px; color: var(--t1); }
.trust span + span::before { content: "|"; margin: 0 16px; color: var(--l2); }
.trust a { color: inherit; text-decoration: none; }

/* ---------- conversation inside the shell ---------- */
.content.chat-content { overflow: hidden; display: flex; flex-direction: column; }
.chat-page { height: 100%; min-height: 0; }
.chat-page.is-empty .chat-body { background: none; justify-content: flex-start; padding-bottom: 0; }
.chat-page.is-empty .home { padding-bottom: 24px; }
.chat-page:not(.is-empty) .home { display: contents; }
.chat-page:not(.is-empty) .hero-wrap, .chat-page:not(.is-empty) .quick, .chat-page:not(.is-empty) .trust { display: none; }
.chat-page:not(.is-empty) .composer.v2 { margin: 0 auto; max-width: 820px; padding: 14px 16px 12px; border-radius: 16px; }
.chat-page:not(.is-empty) .composer.v2 textarea { font-size: 15px; }
.chat-page:not(.is-empty) .cbtn { height: 36px; padding: 0 13px; font-size: 13px; }
.chat-page:not(.is-empty) .cbtn.round { width: 38px; }
.chat-page:not(.is-empty) .composer.v2 .send { width: 36px; height: 36px; border-radius: 10px; }
.chat-page:not(.is-empty) .foot { padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); }
.conv { max-width: 820px; }
.top-left .title { max-width: 38vw; color: var(--t1); font: 600 15px var(--sans); background: none; border: 0; padding: 6px 10px; border-radius: 8px; cursor: text; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-left .title:hover { background: var(--s2); }
.top-left .title.muted { color: var(--t2); font-weight: 500; cursor: default; }
.top-left input.title { border: 1px solid var(--l2); background: var(--s1); min-width: 260px; }

/* ---------- generic page wrapper inside the shell ---------- */
.content .wrap { max-width: 1180px; padding: 8px 32px 72px; }
.content .page-h h1 { font-size: 30px; font-weight: 700; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) { .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  .shell, .shell.collapsed { --side-w: 0px; grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 50; width: 300px; transform: translateX(-100%); transition: transform .22s ease; box-shadow: 24px 0 48px -32px rgba(5, 10, 35, .5); }
  .shell.side-open .side { transform: none; }
  .side-dim { position: fixed; inset: 0; z-index: 49; background: rgba(5, 10, 35, .35); }
  .side-dim[hidden] { display: none; }
  .top { padding: 0 12px; gap: 8px; }
  .search-pill { width: 44px; max-width: 44px; padding: 0; justify-content: center; }
  .search-pill .ph, .search-pill kbd { display: none; }
  .plan-badge span { display: none; }
  .plan-badge { padding: 0 12px; }
  .hero-logo img { width: 56px; height: 56px; } .hero-logo .wm { font-size: 40px; }
  .hero-h1 { font-size: 30px; margin-top: 22px; } .hero-sub { font-size: 16px; }
  .home { padding: 28px 14px 32px; }
  .composer.v2 { padding: 14px 14px 12px; margin-top: 22px; }
  .composer.v2 textarea { font-size: 15px; }
  .cbtn { height: 40px; padding: 0 14px; font-size: 14px; } .cbtn.round { width: 40px; }
  .composer.v2 .send { width: 44px; height: 44px; }
  .quick { grid-template-columns: 1fr; gap: 14px; margin-top: 26px; }
  .quick button { min-height: 0; }
  .trust { margin-top: 28px; font-size: 13px; }
  .trust span + span::before { margin: 0 10px; }
  .content .wrap { padding: 8px 14px 60px; }
}
@media (prefers-reduced-motion: reduce) { .shell, .side, .quick button, .nav-tog .i { transition: none; } .cbtn.listening { animation: none; } }
