/* b2-chat: the round 15 chat design (kept as approved), with the conversation laid out like the live Ghost app.
   The builder's version is kept in _gen/r16-builder-versions. Ghost tokens only. */

/* the conversation reaches out toward the edges of the page, like the live app */
.ask.live{max-width:min(1180px,calc(100% - 48px));width:100%}
.ask.live .composer{width:100%}
.ask.live .thread{gap:28px}
.ask.live .msg.me{max-width:min(72%,760px);font-size:15.5px;padding:12px 18px;border-radius:20px}

/* a reply: the mascot on its own line, then the answer full width */
.ask.live .g-reply{display:flex;flex-direction:column;align-items:stretch;gap:12px}
.ask.live .g-reply .g-av{margin:0}
.ask.live .g-text{white-space:normal;font-size:16px;line-height:1.7;color:var(--text)}

/* the action row under a reply, and follow-ups */
.ask.live .g-acts{margin:0;gap:4px}
.ask.live .g-acts .sb-ico{width:32px;height:32px;border-radius:8px;color:var(--muted)}
.ask.live .g-acts .sb-ico:hover{background:var(--fill);color:var(--text)}
.ask.live .g-acts .sb-ico.on{color:var(--red)}
.g-fu{display:flex;flex-direction:column;border-top:1px solid var(--line-soft);margin-top:4px}
.g-fu-b{display:flex;align-items:center;gap:12px;padding:14px 4px;border-bottom:1px solid var(--line-soft);text-align:left;font-size:15.5px;color:var(--text)}
.g-fu-b .i{color:var(--muted)}
.g-fu-b:hover{background:var(--fill)}
.g-err{color:var(--muted);margin:0}
/* the thinking dots while the answer starts */
.g-dots{display:inline-flex;gap:5px;padding:6px 0}
.g-dots i{width:6px;height:6px;border-radius:999px;background:var(--muted);animation:gdot 1s infinite ease-in-out}
.g-dots i:nth-child(2){animation-delay:.15s} .g-dots i:nth-child(3){animation-delay:.3s}
@keyframes gdot{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@media (prefers-reduced-motion:reduce){.g-dots i{animation:none}}
/* thumbs: up turns green, down turns red */
.ask.live .g-acts .sb-ico[data-ga="up"].on{color:var(--ok);background:var(--ok-dim)}
.ask.live .g-acts .sb-ico[data-ga="down"].on{color:var(--red);background:var(--red-dim)}

/* the pinned composer is solid: nothing in the thread shows through it or through the gap beneath it */
.ask.live .composer{background:var(--bg)}
.ask.live .composer::after{content:"";position:absolute;left:-1px;right:-1px;top:100%;height:17px;background:var(--bg)}

/* an attached workflow sits at the top of the composer */
.wf-chip{margin:0 0 8px}
.wf-chip-in{display:inline-flex;align-items:center;gap:8px;height:30px;padding:0 4px 0 10px;border-radius:999px;background:var(--fill-strong);font-size:13px}
.wf-chip-in .i{width:14px;height:14px}
.wf-chip-in b{font-weight:500}
.wf-x{width:22px;height:22px;border-radius:999px;display:grid;place-items:center;color:var(--muted)}
.wf-x:hover{background:var(--red);color:var(--on-red)}
.wf-x .i{width:12px;height:12px}
.wf-menu{min-width:300px}
.wf-menu .mp-row{display:grid;grid-template-columns:18px 1fr;column-gap:10px;align-items:center;text-align:left}
.wf-menu .mp-row small{grid-column:2;color:var(--muted);font-size:12px}
.wf-menu .wf-all{border-top:1px solid var(--line-soft)}
.g-run{align-self:flex-start;display:inline-flex;align-items:center;gap:8px}
.g-run .i{width:14px;height:14px}

/* projects: one project's chats */
.proj-head{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.proj-head h1{flex:1}
.proj-chats{display:flex;flex-direction:column;gap:10px;max-width:860px}
.proj-chat{display:flex;flex-direction:column;gap:4px;padding:16px 18px}
.proj-chat:hover{border-color:var(--line)}

/* TSD-134: project chats carry the same options/delete control as the recent list, in the sidebar and the project view */
.sb-pchat-row{position:relative;display:flex;align-items:center;border-radius:8px}
.sb-pchat-row .sb-pchat{flex:1;min-width:0;padding-right:30px}
.sb-pchat-row:hover,.sb-pchat-row.on{background:var(--fill)}
.sb-pchat-row:hover .sb-pchat,.sb-pchat-row.on .sb-pchat{background:none;color:var(--text)}
.sb-pchat-row .sb-more{right:4px;top:50%;transform:translateY(-50%)}
.sb-pchat-row:hover .sb-more,.sb-pchat-row.on .sb-more,.sb-pchat-row .sb-more:focus-visible{opacity:1}
.proj-chat-row{position:relative;display:flex;align-items:stretch}
.proj-chat-row .proj-chat{flex:1;min-width:0;padding-right:44px}
.proj-chat-row .sb-more{right:10px;top:50%;transform:translateY(-50%)}
.proj-chat-row:hover .sb-more,.proj-chat-row .sb-more:focus-visible{opacity:1}

/* the chip sits at the left edge of the composer, and the thread bar spaces its labels */
.wf-chip{display:flex;justify-content:flex-start;text-align:left}
#tbar{display:flex;align-items:center;gap:10px;min-width:0}
#tbar>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tbar-proj{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;height:26px;padding:0 10px;border-radius:999px;background:var(--fill);color:var(--muted);font-size:13px;font-weight:400}
.tbar-proj .i{width:13px;height:13px}

/* ── round 18: the chat reads like Perplexity (PP Neue Montreal, Ghost tokens) ───────────────────── */
.ask.live{max-width:min(820px,calc(100% - 48px))}
.ask.live .thread{gap:30px}
.ask.live .g-reply{gap:16px}
.ask.live .g-text{font-size:17px;line-height:1.72;letter-spacing:-.003em}
/* the action row: icons left, sources, a menu on the right, then a hairline */
.ask.live .g-acts{display:flex;align-items:center;gap:2px;padding-bottom:16px;border-bottom:1px solid var(--line-soft)}
.g-src{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 12px;margin-left:8px;border-radius:999px;background:var(--fill);color:var(--muted);font-size:13.5px}
.g-src:hover{color:var(--text);background:var(--fill-strong)}
.g-src .i{width:14px;height:14px}
.g-more-wrap{position:relative}
.g-more{position:absolute;right:0;top:calc(100% + 6px);min-width:220px;z-index:20}
.g-srcs{display:flex;flex-direction:column;gap:2px;margin-top:-6px}
.g-srcs a{display:grid;grid-template-columns:24px 1fr auto;gap:10px;align-items:center;padding:8px 10px;border-radius:12px;color:var(--text);font-size:14px}
.g-srcs a:hover{background:var(--fill)}
.g-srcs .num{width:22px;height:22px;border-radius:8px;display:grid;place-items:center;background:var(--fill-strong);font-size:12px;color:var(--muted)}
.g-srcs-t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.g-srcs small{color:var(--faint)}
/* follow-ups: one per line, each with an arrow */
.g-fu{border-top:0;margin-top:-4px}
.g-fu-b{gap:14px;padding:14px 4px;font-size:16px}
.g-fu-ar{color:var(--muted);font-size:18px;line-height:1}
/* the composer: plus, Chat | Agents, the model and a round send */
.plus-b{width:34px;height:34px;border-radius:999px;display:grid;place-items:center;color:var(--muted);border:1px solid var(--line)}
.plus-b:hover{color:var(--text);background:var(--fill)}
.plus-b .i{width:16px;height:16px}
.plus-wrap{position:relative}
.plus-wrap .proj-menu{left:0;bottom:calc(100% + 8px);top:auto}
/* TSD-134 (Robert, 2026-11-24): the attach paperclip is the first control in the composer row, bottom-left,
   and its menu opens up aligned to the composer's left edge. The wrapper is static so the menu anchors to .composer. */
.att-wrap{position:static;display:inline-flex;align-items:center;flex:none}
.c-proj{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 10px;border-radius:999px;background:var(--fill-strong);font-size:13px;color:var(--muted)}
.c-proj .i{width:13px;height:13px}
.composer .send{border-radius:999px}
.c-left{margin:10px 2px 0;font-size:13px;color:var(--faint);text-align:center}
/* out of free messages: an Upgrade card inside the thread */
.g-limit{display:flex;align-items:center;gap:18px;justify-content:space-between;padding:18px 20px;border:1px solid var(--line);border-radius:16px;background:var(--fill)}
.g-limit>div{display:flex;flex-direction:column;gap:4px}
.g-limit b{font-weight:500;font-size:16px}
@media (max-width:560px){.g-limit{flex-direction:column;align-items:flex-start}}
/* sidebar: Projects and Recents, with a menu on each chat */
.sb-tog{width:100%;background:none;border:0;cursor:pointer;text-align:left}
.sb-tog[aria-expanded="false"] .i{transform:rotate(-90deg)}
.sb-sec{display:flex;flex-direction:column;gap:2px}
.sb-sec[hidden]{display:none}
.sb-proj{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:12px;color:var(--text);font-size:14px}
.sb-proj .i{width:15px;height:15px;color:var(--muted);flex:none}
.sb-proj .sb-t{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sb-proj small{color:var(--faint);font-size:12px}
.sb-proj:hover{background:var(--fill)}
.sb-proj-all{color:var(--muted)}
.sb-chat-row{position:relative;display:flex;align-items:center;border-radius:12px}
.sb-chat-row .sb-chat{flex:1;min-width:0;padding-right:36px}
.sb-chat-row.on,.sb-chat-row:hover{background:var(--fill)}
.sb-chat-row.on .sb-chat{background:none}
.sb-more{position:absolute;right:6px;width:26px;height:26px;border-radius:8px;display:grid;place-items:center;color:var(--muted);opacity:0}
.sb-chat-row:hover .sb-more,.sb-chat-row.on .sb-more,.sb-more:focus-visible{opacity:1}
.sb-more:hover{background:var(--fill-strong);color:var(--text)}
.sb-more .i{width:15px;height:15px}
.sb-menu{position:fixed;z-index:70;min-width:230px}
.sb-menu .mp-row{display:flex;align-items:center;gap:10px}
.sb-menu .mp-row .i{width:15px;height:15px;color:var(--muted)}
.sb-menu .sb-del b,.sb-menu .sb-del .i{color:var(--red)}
.move-list{display:flex;flex-direction:column;gap:2px}
.md-pop{max-height:60vh;overflow:auto;font-size:15.5px;line-height:1.65}
/* the Agents popover art */
.ag-img img{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}
.ag-img img[hidden]{display:none}

/* the model console: a model page's stage when no Ghost computer service is reachable */
.mcon{height:100%;min-height:520px;display:flex;flex-direction:column;padding:14px;gap:10px}
.mcon-head{display:flex;align-items:center;gap:8px;font-size:14px}
.mcon-head b{font-weight:500}
.agrun-dot.on{background:var(--ok);animation:none}
.mcon-thread{flex:1;overflow:auto;display:flex;flex-direction:column;gap:16px;padding:8px 4px}
.mcon-thread .msg.me{align-self:flex-end;max-width:80%}
.mcon-a{font-size:16px;line-height:1.7}
.mcon-hi{margin:auto;text-align:center}
.mcon-comp{margin:0}

/* ── round 19 (Robert, 2026-11-11): closer to the original Ghost chat ── */
/* the title sits top left, in a full-width bar under the navbar, with its own background (#904) */
.thread-bar{position:sticky;top:52px;z-index:6;display:flex;align-items:center;margin:0 calc(-1 * var(--pad, 24px));padding:0 var(--pad, 24px);height:48px;border-bottom:1px solid var(--line-soft);background:var(--bg);text-align:left}
.chat-main .thread-bar{margin:0 -24px;padding:0 24px}
/* round 28: on a phone .chat-main pads by var(--pad) (16px at 390), so the bar bleeds by that much, not 24px: the extra
   8px each side made the whole page scroll sideways (Grok Bot QA, 390x844) */
@media (max-width:760px){.chat-main .thread-bar{margin:0 calc(-1 * var(--pad));padding:0 var(--pad)}}
#tbar{display:flex;align-items:center;gap:10px;min-width:0;max-width:100%;border:0;background:none;color:var(--text);font:inherit;font-size:14.5px;font-weight:500;cursor:text;padding:6px 8px;margin-left:-8px;border-radius:8px}
#tbar:hover{background:var(--fill)}
#tbar>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ask.live{min-height:calc(100dvh - 52px - 48px)}
/* the answer column and calmer type, matched to the live Markdown renderer */
.ask.live{max-width:min(760px,calc(100% - 48px))}
.ask.live .g-text{font-size:16px;line-height:1.65;letter-spacing:0}
.ask.live .g-text p{margin:0 0 12px}
.ask.live .g-text h1,.ask.live .g-text h2{font-size:19px;margin:22px 0 8px}
.ask.live .g-text h3{font-size:16.5px;margin:20px 0 6px}
.ask.live .g-text h4,.ask.live .g-text h5{font-size:15px;margin:16px 0 6px}
.ask.live .g-text ul,.ask.live .g-text ol{margin:8px 0 12px}
.ask.live .g-text li{margin:4px 0}
.ask.live .g-text table{font-size:14px}
.ask.live .g-text th,.ask.live .g-text td{padding:9px 12px}
.ask.live .msg.me{font-size:15px;padding:10px 16px;border-radius:20px;max-width:min(78%,640px)}
/* fewer circles (#905 vs #906): small faint action icons, a bare "+", a send that is quiet until you type */
.ask.live .g-acts .sb-ico{width:28px;height:28px;border-radius:8px;color:var(--faint)}
.ask.live .g-acts .sb-ico .i{width:15px;height:15px}
.ask.live .g-acts .sb-ico:hover{background:var(--fill);color:var(--text)}
.plus-b{width:32px;height:32px;border:0;border-radius:12px;background:none}
.plus-b .i{width:18px;height:18px}
.composer .send{width:36px;height:36px;background:var(--invert-bg);color:var(--invert-text);opacity:.3;transition:opacity .15s}
.composer.has-text .send,.composer.busy .send{opacity:1}
.composer.busy .send{background:var(--red);color:var(--on-red)}
/* Chat | Agents with the ghosts, like the original app */
.seg-modes .seg-b{gap:6px;padding:0 12px 0 8px}
.seg-modes .seg-ic{display:block;width:18px;height:18px;object-fit:contain}
.seg-modes .seg-ic.ag{width:22px;height:22px;margin:0 -2px}
/* the composer edge: a thin red line on Ghost X2, a soft red halo in Agents mode */
/* the empty chat sits in the middle of the page (#907) */
.ask:not(.live){min-height:calc(100dvh - 52px - 72px);display:flex;flex-direction:column;justify-content:center;padding-top:0;padding-bottom:6vh}
.ask:not(.live) .ask-ghost{width:96px;height:96px}

/* sidebar: one "+" per project on hover, the inline New project field, and a clean collapsed rail (#908, #910) */
.sb-proj-row{display:flex;align-items:center;border-radius:12px;position:relative}
.sb-proj-row .sb-proj{flex:1;min-width:0}
.sb-proj-row.on,.sb-proj-row:hover{background:var(--fill)}
.sb-padd{display:grid;place-items:center;width:26px;height:26px;margin-right:6px;border-radius:8px;color:var(--muted);opacity:0;flex:none}
.sb-proj-row:hover .sb-padd,.sb-padd:focus-visible{opacity:1}
.sb-padd:hover{background:var(--fill-strong);color:var(--text)}
.sb-padd .i{width:14px;height:14px}
.sb-proj-row:hover small{display:none}
button.sb-proj{width:100%;border:0;background:none;font:inherit;text-align:left;cursor:pointer;color:var(--muted)}
button.sb-proj:hover{background:var(--fill);color:var(--text)}
.sb-pform{display:flex;align-items:center;gap:10px;padding:4px 8px 4px 12px;border-radius:12px;background:var(--fill)}
.sb-pform .sb-pf-i .i{width:15px;height:15px;color:var(--muted)}
.sb-pform input{flex:1;min-width:0;height:30px;border:0;background:none;color:var(--text);font:inherit;font-size:14px;outline:0}
.sb-rail{display:none!important}
body.side-collapsed .side{overflow:hidden}
body.side-collapsed .side .sb-rail{display:flex!important}
body.side-collapsed .side .sb-sec,body.side-collapsed .side .sb-tog{display:none!important}
.proj-chats{text-align:left}
/* one project's page: its name on top, the composer, then its chats */
.ask.proj-ask{justify-content:flex-start;padding-top:clamp(40px,8vh,90px);text-align:left}
.proj-top{margin-bottom:10px}.proj-top .alink{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:14px}.proj-top .alink:hover{color:var(--text)}
.proj-title{display:flex;align-items:center;gap:8px}.proj-title h1{font-size:30px;font-weight:500;letter-spacing:-.03em;margin:0}
.proj-count{margin:6px 0 0}
.proj-ask .composer{margin-top:22px}
.proj-ask .proj-chats{display:flex;flex-direction:column;margin-top:26px;border-top:1px solid var(--line-soft)}
.proj-ask .proj-chat{display:flex;flex-direction:column;gap:4px;padding:14px 4px;border-bottom:1px solid var(--line-soft);border-radius:0;background:none}
.proj-ask .proj-chat:hover{background:var(--fill)}
.proj-ask .proj-chat b{font-weight:500}
/* TSD-134: in the project view the border and hover move to the row so the options control shares the highlight */
.proj-ask .proj-chat-row{border-bottom:1px solid var(--line-soft)}
.proj-ask .proj-chat-row:hover{background:var(--fill)}
.proj-ask .proj-chat-row .proj-chat{border-bottom:0;padding-right:44px}
.proj-ask .proj-chat-row .proj-chat:hover{background:none}
.proj-ask .proj-empty{display:flex;flex-direction:column;gap:6px;align-items:center;text-align:center;padding:40px 0}
.proj-ask .proj-empty b{font-weight:500}
.composer .send .i{width:18px;height:18px}
.proj-ask .proj-empty{min-height:0;flex:none}
/* the live app's mode pill: the picked side is a soft tint, so the white ghosts stay visible */
.seg-modes{background:transparent;border:1px solid var(--line)}
.seg-modes .seg-b.on{background:var(--fill-strong);color:var(--text)}
:root[data-theme="light"] .seg-modes .seg-b.on{background:var(--fill)}
/* the line under the box: project left, Try Connect right (Robert's #925, without Skills and Connectors) */
.c-under{display:flex;align-items:center;gap:6px;margin-top:10px;padding:0 4px}
.c-u-b{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 10px;border-radius:12px;border:0;background:none;color:var(--muted);font:inherit;font-size:14px;cursor:pointer}
.c-u-b:hover{background:var(--fill);color:var(--text)}
.c-u-b .i{width:16px;height:16px}
.ask.live .c-under{display:none}
.proj-menu.under{top:calc(100% + 58px);bottom:auto;left:-6px}

/* round 20: the free counter at the top, the limit bar on the composer, the search step line */
/* round 28 (Robert): the free-messages pill sits centered right above the composer, where the cursor already is, not in the top corner */
.free-top{position:absolute;bottom:calc(100% + 10px);left:50%;transform:translateX(-50%);z-index:6;display:flex;justify-content:center;gap:10px;align-items:center;margin:0;padding:6px 14px;border-radius:999px;font-size:13px;white-space:nowrap;max-width:calc(100% - 16px);color:var(--muted);background:var(--fill);border:1px solid var(--line-soft)}
.free-top[hidden]{display:none}
.ask:not(.live) .composer:has(>.free-top:not([hidden])){margin-top:56px}
.free-top a{color:var(--text);text-decoration:underline;text-underline-offset:3px}
.limit-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-4px -4px 10px;padding:10px 12px;border-radius:16px;background:var(--fill-strong);font-size:14px}
.limit-bar[hidden]{display:none}
.composer.at-limit textarea{opacity:.5}
.g-step{display:inline-flex;align-items:center;gap:8px;font-size:14px}.g-step .i{width:15px;height:15px}
/* round 20 phone: the composer row fits a 390px screen */
@media (max-width:520px){
  .composer-row{gap:4px}
  .seg-modes .seg-b{padding:0 9px 0 6px;font-size:12.5px}
  .seg-modes .seg-ic{width:16px;height:16px}.seg-modes .seg-ic.ag{width:19px;height:19px}
  .composer .mp-btn{padding:0 10px;font-size:12.5px}
  .plus-b{width:28px}
  .c-under{padding:0}
}
@media (max-width:420px){
  .seg-modes .seg-b{font-size:0;gap:0;padding:0 8px}
  .seg-modes .seg-b .ag-dd{font-size:12px}
  .composer .mp-btn{white-space:nowrap}
}

/* ── round 27: shared chat parts (Chat page and model pages) ─────────────────────────────────────────── */
/* Download in the thread header */
.thread-bar .tbar-dl{margin-left:auto;flex:none;width:32px;height:32px;border-radius:8px;display:grid;place-items:center;color:var(--muted)}
.thread-bar .tbar-dl:hover{background:var(--fill);color:var(--text)}
.thread-bar .tbar-dl .i{width:16px;height:16px}
.thread-bar #tbar{flex:0 1 auto}
/* attachments: the (+) menu, chips in the composer and under a sent message */
.att-wrap .att-menu{left:0;bottom:calc(100% + 8px);top:auto;width:230px}
.att-menu .mp-row{display:flex;align-items:center;gap:10px;cursor:pointer}
.att-menu .mp-row:hover{background:var(--fill)}
.att-menu .mp-row .i{width:16px;height:16px;color:var(--muted)}
.att-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}
.att-chips[hidden]{display:none}
.att-chip{display:inline-flex;align-items:center;gap:7px;max-width:260px;height:32px;padding:0 6px 0 8px;border-radius:12px;background:var(--fill-strong);color:var(--text);font-size:13px}
.att-chip img{width:22px;height:22px;border-radius:8px;object-fit:cover;flex:none}
.att-chip .i{width:15px;height:15px;color:var(--muted);flex:none}
.att-chip .att-n{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.att-chip small{color:var(--faint);font-size:11.5px;flex:none}
.att-x{width:22px;height:22px;border-radius:8px;display:grid;place-items:center;color:var(--muted);flex:none}
.att-x:hover{background:var(--fill);color:var(--text)}
.att-x .i{width:12px;height:12px}
.msg-files{align-self:flex-end;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;max-width:min(78%,640px);margin-bottom:-18px}
/* the live work view: Working 8s / Finished 13s, the steps, the summary line */
.g-work{display:flex;flex-direction:column;gap:6px}
.g-work-h{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 8px;margin-left:-8px;border-radius:8px;color:var(--muted);font:inherit;font-size:14px}
.g-work-h:hover{background:var(--fill);color:var(--text)}
.g-work-h .i{width:12px;height:12px;transition:transform .15s}
.g-work-h[aria-expanded="true"] .i{transform:rotate(180deg)}
.g-work-t{font-variant-numeric:normal}
.g-work-list{display:flex;flex-direction:column;gap:2px;margin-left:2px;padding-left:12px;border-left:1px solid var(--line-soft)}
.g-work-list[hidden],.g-work-sum[hidden]{display:none}
.g-work-step{display:flex;align-items:flex-start;gap:9px;padding:4px 0;font-size:14px;color:var(--muted);line-height:1.45}
.g-work-step>.i{width:15px;height:15px;flex:none;margin-top:2px}
.g-ws-t{display:flex;flex-direction:column;min-width:0}
.g-ws-t small{color:var(--faint);font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.g-work-step.err{color:var(--danger,var(--red))}
.g-work-step.run .g-ws-l{color:var(--text);animation:gshim 1.2s steps(1) infinite}
@keyframes gshim{50%{opacity:.55}}
@media (prefers-reduced-motion:reduce){.g-work-step.run .g-ws-l{animation:none;background:none;color:var(--text)}}
.g-work-sum{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted)}
.g-work-sum .i{width:14px;height:14px;flex:none}
/* sources in a popup */
.g-srcs-pop{margin:0;max-height:min(60dvh,520px);overflow-y:auto}
/* the loading bubble: three dots over the composer while a reply streams and the reader has scrolled up */
.g-jump{position:absolute;left:50%;bottom:calc(100% + 14px);transform:translateX(-50%);z-index:6;width:44px;height:44px;border-radius:999px;display:grid;place-items:center;background:var(--elevated);border:1px solid var(--line);box-shadow:0 8px 24px var(--scrim);color:var(--text);cursor:pointer}
.g-jump[hidden]{display:none}
.g-jump:hover{background:var(--fill-strong)}
.g-jump .g-dots{padding:0}
.g-jump .g-dots i{background:var(--text)}
/* Connect to Claude Code or Codex, on the line under a model page's composer */
.c-u-cx{display:inline-flex;align-items:center;gap:2px;color:var(--muted);font-size:14px;flex-wrap:wrap;justify-content:flex-end}
.c-u-lab,.c-u-or{padding:0 4px}
.c-u-cx .c-u-b{padding:0 8px;color:var(--text)}
.cx-lg.cx-lg-sm{width:22px;height:22px;border-radius:8px}
.cx-lg.cx-lg-sm img{width:13px;height:13px}
/* the chat model picker can list many models */
.composer .mp-wrap .mp-menu{max-height:min(560px,calc(100dvh - 160px));overflow-y:auto}
/* Your model in Connect, with every connectable model */
.cx-row2.cx-many .cx-model{min-height:64px}
/* a model page that takes files shows (+) for them (the Chat page keeps it hidden, ghost.css) */
.ask-model .plus-wrap.has-att #projbtn{display:grid}
.c-u-cx .cx-lg img.on-light{display:none}
:root[data-theme="light"] .c-u-cx .cx-lg img.on-dark{display:none}
:root[data-theme="light"] .c-u-cx .cx-lg img.on-light{display:block}
/* round 27 (3.4): an agent's files as chips under its reply, and the side panel they open (Preview, Code, Download) */
.g-files{display:flex;flex-wrap:wrap;gap:8px}
.g-files[hidden]{display:none}
.g-file{display:inline-flex;align-items:center;gap:8px;max-width:300px;height:36px;padding:0 12px 0 10px;border-radius:12px;background:var(--fill);border:1px solid var(--line-soft);color:var(--text);font:inherit;font-size:13.5px;cursor:pointer}
.g-file:hover{background:var(--fill-strong)}
.g-file.on{border-color:var(--line);background:var(--fill-strong)}
.g-file .i{width:15px;height:15px;color:var(--muted);flex:none}
.g-file-n{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.g-file small{color:var(--faint);font-size:11.5px;flex:none}
.g-file-live .i{color:var(--ok)}
.g-asks{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;font-size:13.5px;color:var(--muted)}
.g-asks .i{width:14px;height:14px;flex:none}
.g-panel{position:fixed;z-index:70;top:12px;right:12px;bottom:12px;width:min(680px,calc(50vw - 12px));display:flex;flex-direction:column;background:var(--elevated);border:1px solid var(--line-soft);border-radius:20px;box-shadow:0 24px 60px var(--scrim);overflow:hidden}
.g-panel[hidden]{display:none}
.g-panel-h{display:flex;align-items:center;gap:8px;min-height:56px;padding:8px 10px 8px 16px;border-bottom:1px solid var(--line-soft)}
.g-panel-ic{display:grid;place-items:center;flex:none;color:var(--muted)}
.g-panel-ic .i{width:16px;height:16px}
.g-panel-tt{display:flex;flex-direction:column;min-width:0}
.g-panel-n{font-weight:500;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.g-panel-s{color:var(--faint);font-size:12px}
.g-panel-seg[hidden],.g-panel-h [hidden]{display:none}
.g-panel-seg .seg-b{height:28px}
.g-panel-seg .seg-b.on{background:var(--elevated);color:var(--text)}
.g-panel-h .sb-ico:hover{background:var(--fill);color:var(--text)}
.g-panel-h .sb-ico .i{width:16px;height:16px}
.g-panel-b{flex:1;min-height:0;display:flex;flex-direction:column;overflow:auto}
.g-panel-frame{flex:1;width:100%;min-height:0;border:0;color-scheme:light;background:Canvas}  /* a page with no background of its own shows on the browser's white, as it would in a tab */
.g-panel-msg{margin:auto;max-width:360px;padding:24px;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;font-size:14px}
.g-panel-msg .btn-white{margin-top:6px;display:inline-flex;align-items:center;gap:6px}
.g-panel-img{flex:1;display:grid;place-items:center;padding:20px;background:repeating-conic-gradient(var(--fill) 0 25%,transparent 0 50%) 0 0/20px 20px}
.g-panel-img img{max-width:100%;max-height:100%;object-fit:contain;border-radius:8px}
.g-panel-code{flex:1;min-height:0}
.g-panel-code pre{margin:0;padding:16px 18px;min-height:100%;box-sizing:border-box;font-size:12.5px;line-height:1.55;overflow:auto;background:transparent}
.g-panel-code code{background:none;padding:0;white-space:pre}
.g-panel-md{padding:20px 24px}
@media (max-width:900px){.g-panel{top:0;right:0;bottom:0;width:100%;border-radius:0;border:0}}
/* Workspaces: Agent files, grouped by the chat they were made in */
.ws-agent-list{display:flex;flex-direction:column;gap:18px;margin-top:14px}
.ws-agent-row{display:flex;flex-direction:column;gap:10px;padding-bottom:18px;border-bottom:1px solid var(--line-soft)}
.ws-agent-h{display:flex;align-items:center;gap:8px;font-size:14px;min-width:0}
.ws-agent-h .i{width:15px;height:15px;color:var(--muted);flex:none}
.ws-agent-h a{color:var(--text);font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ws-agent-h small{margin-left:auto;flex:none}
a.g-file{text-decoration:none}

/* ── round 28 (Robert, 2026-11-12) ───────────────────────────────────────────────────────────────── */
/* Send: an arrow in a filled circle, quiet until you type; a square Stop while a reply streams */
.composer .send{position:relative;width:36px;height:36px;border-radius:999px;display:grid;place-items:center;background:var(--fill-strong);color:var(--muted);opacity:1;transition:background .15s,color .15s}
.composer.has-text .send,.composer.busy .send{background:var(--invert-bg);color:var(--invert-text);opacity:1}
.composer .send>span{display:grid;place-items:center}
.composer .send .send-stop,.composer.busy .send .send-go{display:none}
.composer.busy .send .send-stop{display:grid}
.composer .send .i{width:18px;height:18px}
.composer .send .send-stop .i{width:14px;height:14px}
/* a reply streaming in the background: a pulsing dot on its chat in the sidebar */
.sb-chat.running{position:relative}
.sb-run{position:absolute;right:16px;top:50%;width:8px;height:8px;margin-top:-4px;border-radius:999px;background:var(--red);animation:sbrun 1.2s ease-in-out infinite;pointer-events:none}
.sb-chat-row:hover .sb-run,.sb-chat-row.on .sb-run{right:40px}
.sb-pchat{position:relative}
.sb-pchat:has(.sb-run){padding-right:26px}
.sb-pchat .sb-run{right:10px}
@keyframes sbrun{50%{opacity:.35;transform:scale(.75)}}
@media (prefers-reduced-motion:reduce){.sb-run{animation:none}}
/* no rule under each answer: the action icons, then the next message */
.ask.live .g-acts{border-bottom:0;padding-bottom:8px}
/* Connect to: the two app tiles, a little larger, each named by a tooltip */
.c-u-cx{gap:4px}
.c-u-cx .c-u-b.c-u-tile{position:relative;width:36px;height:36px;padding:0;justify-content:center}
.c-u-tile .cx-lg.cx-lg-sm{width:28px;height:28px;border-radius:8px}
.c-u-tile .cx-lg.cx-lg-sm img{width:16px;height:16px}
.c-u-tile[data-tip]:hover::after,.c-u-tile[data-tip]:focus-visible::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);white-space:nowrap;font:500 12px var(--sans);color:var(--text);background:var(--elevated);border:1px solid var(--line);border-radius:8px;padding:4px 9px;box-shadow:0 8px 24px var(--scrim);pointer-events:none;z-index:8}
/* the mask under a pinned composer starts below its border, so the box keeps its bottom edge and round corners */
.ask.live .composer::after{top:calc(100% + 1px)}
/* Workspaces (round 28): agent work first, then Older computers as compact rows */
.ws-empty.proj-empty{min-height:0;padding:44px 16px;border:1px dashed var(--line);border-radius:16px}
.ws-empty .btn-white{margin-top:6px}
.block.ws-old{margin-top:44px}
.ws-old .b1-h2{font-size:17px}
.ws-old-list{display:flex;flex-direction:column;border-top:1px solid var(--line-soft)}
.ws-old-row{display:flex;align-items:center;gap:12px;padding:10px 2px;border-bottom:1px solid var(--line-soft);font-size:14px}
.ws-old-row .mini{width:28px;height:28px;border-radius:8px;background:var(--fill-strong);display:grid;place-items:center;flex:none;color:var(--muted)}
.ws-old-row .mini .i{width:14px;height:14px}
.ws-old-t{display:flex;flex-direction:column;min-width:0;flex:1}
.ws-old-t b{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ws-old-t small{color:var(--muted);font-size:12.5px}
/* the free gate (round 28): a model this plan cannot use reads Paid with a lock in the Chat picker; a model page shows the upgrade card */
.mp-paid{display:inline-flex;align-items:center;gap:5px;margin-left:8px;vertical-align:middle;font-style:normal;color:var(--muted)}
.mp-paid[hidden]{display:none}
.mp-paid .i{width:12px;height:12px}
.mp-row[data-m].locked b{color:var(--muted)}
.ask-lock .hero-actions{flex-wrap:wrap;justify-content:center}
/* round 28 (Robert: fits 320 to 430): the send button never shrinks; on a narrow phone the model pill gives up room
   first (its name ellipsizes) and the Chat / Agents pill tightens */
.composer-row .send{flex:none}
.composer-row .mp-wrap{min-width:0;flex:0 1 auto}
.composer-row .mp-wrap>.mp-btn{min-width:0;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
@media (max-width:360px){.composer-row{gap:6px}.composer-row .seg-modes .seg-ic{display:none}.composer-row .seg-modes .seg-b{padding-left:9px;padding-right:9px}.composer .mp-wrap .mp-btn{padding:0 10px 0 12px}}

/* Copy answer, on a surface without the chat's action row (Compare) */
.ans-acts{display:flex;gap:2px;margin-top:-6px}
.ans-acts .sb-ico{width:28px;height:28px;border-radius:8px;color:var(--faint)}
.ans-acts .sb-ico .i{width:15px;height:15px}
.ans-acts .sb-ico:hover,.ans-acts .sb-ico.copied{background:var(--fill);color:var(--text)}

/* round 29: a long unbroken string in an answer (a DNA sequence, a hash, a URL) wraps inside the column instead of running off it */
.g-reply :is(p,li,blockquote,h1,h2,h3,h4){overflow-wrap:anywhere}
.g-reply td{overflow-wrap:break-word}


/* ══ Launch layer (2026-11-15): the approved Chat, Option B, and the approved content layer ═════════════════════════
   Mocks: TSD - Design/pages/ghost-chat.html and foundations/content.html. Site variables only (css/tsd.css). Every
   rule is prefixed :root:root:root so it reads over the foundation's global composer and card rules, which load after. */

/* ── the sidebar: transparent, one hairline, 44px rows ── */
:root:root:root body[data-page="chat"] .side,:root:root:root body[data-page="projects"] .side,:root:root:root body[data-page="skills"] .side{width:272px;background:transparent;border-right:1px solid var(--line);padding:12px;gap:4px}
/* the phone drawer (body.sb-drawer) floats over the page, so it needs the page ground, not transparent (audit 2026-11-16) */
:root:root:root body.sb-drawer #side{background:var(--bg)}
:root:root:root .side .sb-head{display:flex;align-items:center;gap:4px;margin-bottom:8px}
:root:root:root .side .sb-head .sb-search{flex:1;height:40px;border-radius:12px}
:root:root:root .side #sb-collapse{width:36px;height:36px;border-radius:999px;color:var(--text);flex:none}
:root:root:root .side #sb-collapse:hover{background:var(--fill)}
:root:root:root .side .sb-row{min-height:44px;height:auto;padding:0 12px;gap:12px;border-radius:12px;font-size:14px;font-weight:400;color:var(--text)}
:root:root:root .side .sb-row .i,:root:root:root .side .sb-proj .i{width:16px;height:16px;color:var(--text)}
:root:root:root .side .sb-label,:root:root:root .side .sb-tog{display:flex;align-items:center;justify-content:space-between;width:100%;padding:16px 12px 4px;font-size:13px;font-weight:400;color:var(--faint);background:none;border:0}
:root:root:root .side .sb-tog .i{width:16px;height:16px;color:var(--faint)}
:root:root:root .side :is(.sb-proj,.sb-chat-row .sb-chat){min-height:44px;padding:0 12px;gap:12px;font-size:14px;color:var(--text)}
:root:root:root .side .sb-chat-row{display:flex;align-items:center;border-radius:12px;min-height:44px}
:root:root:root .side .sb-chat-row .sb-chat{flex:1;min-width:0;display:flex;align-items:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
:root:root:root .side .sb-chat-row .sb-more{flex:none;margin-right:6px}
:root:root:root .side .sb-newp,:root:root:root .side .sb-newp .i{color:var(--muted)}
:root:root:root .side .sb-day{padding:12px 12px 4px;font-size:13px;color:var(--faint)}
:root:root:root .side .sb-empty{display:block;padding:8px 12px;font-size:13px;color:var(--faint);text-align:left}
:root:root:root .side .sb-pchat{font-size:14px;color:var(--muted);border-radius:12px}
:root:root:root .side .sb-pchat:hover,:root:root:root .side .sb-pchat.on{background:var(--fill);color:var(--text)}
:root:root:root .side .sb-pchat-row{min-height:40px;border-radius:12px}
:root:root:root .side .sb-pchat-row .sb-more{opacity:1}

/* ── the empty home: the brain, the greeting, the floating composer, the Connect line, Try other models ── */
:root:root:root .ask:not(.live):not(.ask-model){max-width:760px;width:100%;min-height:0;margin:0 auto;padding:96px 0 64px;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:24px}
:root:root:root .ask:not(.live) .ask-brain{width:72px;height:72px;margin:0;object-fit:contain;border-radius:0}
:root:root:root .ask:not(.live) h1.ask-greet{font-size:44px;font-weight:500;letter-spacing:-.035em;line-height:1.1;text-align:center;text-wrap:balance;margin:0}
:root:root:root .ask:not(.live):not(.ask-model)>.composer{width:100%;margin:0}
:root:root:root .composer{padding:16px 16px 12px}
:root:root:root .composer textarea{min-height:48px;font-size:16px;padding:0 4px}
:root:root:root .composer textarea::placeholder{color:var(--faint)}
:root:root:root .composer .composer-row{display:flex;align-items:center;gap:8px}
:root:root:root .composer .seg-modes .seg-b{height:32px;gap:8px;padding:0 12px;font-size:14px}
:root:root:root .composer .seg-modes .seg-b .i{width:16px;height:16px}
:root:root:root .composer .send{width:36px;height:36px;border-radius:999px}
:root:root:root .composer .proj-wrap{position:static}
:root:root:root .composer .att-b{width:32px;height:32px;border:0;border-radius:999px;background:transparent;color:var(--muted);display:inline-grid;place-items:center;cursor:pointer;flex:none}
:root:root:root .composer .att-b:hover,:root:root:root .composer .att-b[aria-expanded="true"]{background:var(--fill);color:var(--text)}
:root:root:root .composer .att-b .i{width:20px;height:20px}
:root:root:root .composer .att-menu{left:14px;right:auto;top:auto;bottom:calc(100% + 8px);width:230px}
:root:root:root .composer .proj-menu.under{left:0;right:auto;top:calc(100% + 52px);bottom:auto}
:root:root:root .composer .proj-menu:not(.under){left:auto;right:16px;top:auto;bottom:calc(100% + 8px)}
/* the line under the composer: No project on the left, Connect with and the two marks on the right, in line with send */
:root:root:root .c-under{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;margin:-12px 0 0;padding:0 8px 0 4px;font-size:14px;color:var(--muted)}
:root:root:root .ask.live .c-under{display:none}   /* TSD-172 (Robert 11-25): not inside an open conversation */
:root:root:root .c-under>.grow{display:none}
:root:root:root .c-under .c-u-b{height:32px;padding:0 8px;gap:8px;border-radius:999px;color:var(--muted);font-size:14px}
:root:root:root .c-under .c-u-b:hover{background:var(--fill);color:var(--text)}
:root:root:root .c-under .c-u-b .i{width:16px;height:16px}
:root:root:root .c-u-cw{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
:root:root:root .c-u-lab2{margin-right:4px}
:root:root:root .c-u-mk{width:32px;height:32px;border-radius:999px;display:inline-grid;place-items:center;flex:none}
:root:root:root .c-u-mk:hover{background:var(--fill)}
:root:root:root .c-u-mk img{width:20px;height:20px;display:block}
:root:root:root .c-u-mk .mk-d,:root:root:root[data-theme="dark"] .c-u-mk .mk-l{display:none}
:root:root:root[data-theme="dark"] .c-u-mk .mk-d{display:block}
/* Try other models: three media cards, the picture is the card and the caption sits below */
:root:root:root .g-try{width:100%;margin-top:16px;text-align:left}
:root:root:root .g-try-h{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
:root:root:root .g-try-h h2{font-size:18px;font-weight:500;letter-spacing:-.01em;margin:0}
:root:root:root .g-try-all{display:inline-flex;align-items:center;height:32px;padding:0 14px;border-radius:999px;background:var(--fill);color:var(--text);font-size:14px;text-decoration:none}
:root:root:root .g-try-all:hover{background:var(--fill-strong)}
:root:root:root .g-try-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 16px}
:root:root:root .g-try-card{display:block;min-width:0;color:inherit;text-decoration:none}
:root:root:root .g-try-pic{position:relative;display:block;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:var(--fill)}
:root:root:root .g-try-pic img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s ease-out}
:root:root:root .g-try-card:hover .g-try-pic img{transform:scale(1.02)}
:root:root:root .g-try-on{position:absolute;top:12px;left:12px;display:inline-flex;align-items:center;gap:8px;height:24px;padding:0 10px;border-radius:999px;background:rgba(0,0,0,.45);color:#FFFFFF;font-size:12px;font-weight:500;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
:root:root:root .g-try-on .live-dot{width:6px;height:6px;box-shadow:none}
:root:root:root .g-try-cap{display:flex;align-items:flex-start;gap:12px;padding-top:12px}
:root:root:root .g-try-mark{width:36px;height:36px;object-fit:contain;flex:none}
:root:root:root .g-try-t{min-width:0;flex:1}
:root:root:root .g-try-t b{display:block;font-size:15px;font-weight:500;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:root:root:root .g-try-t span{display:block;font-size:13px;color:var(--muted);margin-top:2px}
@media (max-width:900px){:root:root:root .g-try-grid{grid-template-columns:1fr}:root:root:root .ask:not(.live) h1.ask-greet{font-size:32px}:root:root:root .ask:not(.live):not(.ask-model){padding-top:48px}}
@media (max-width:560px){:root:root:root .c-u-lab2{display:none}}

/* ── the active thread: the user bubble, the answer with no bubble, the brain-only meta row, icon actions ── */
:root:root:root .ask.live{max-width:min(808px,calc(100% - 48px))}
:root:root:root .ask.live .thread{gap:28px}
:root:root:root .msg.me{align-self:flex-end;max-width:78%;background:var(--fill);box-shadow:none;border-radius:20px;padding:12px 16px;font-size:16px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text)}
:root:root:root .msg-files{align-self:flex-end;display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-bottom:-20px}
:root:root:root .g-reply{display:flex;flex-direction:column;align-items:stretch;gap:12px;text-align:left}
:root:root:root .g-reply .g-meta{display:flex;align-items:center;gap:8px;height:20px}
:root:root:root .g-reply .g-meta img{width:20px;height:20px;margin:0;border-radius:0;object-fit:contain}
:root:root:root .g-reply .g-text{font-size:16px;line-height:1.65;letter-spacing:0;color:var(--text);white-space:normal}
:root:root:root .g-acts.msg-actions{display:flex;align-items:center;gap:2px;margin:0;padding:0;border:0}
:root:root:root .g-acts .msg-ib,:root:root:root .ans-acts .msg-ib{width:32px;height:32px;padding:0;border:0;border-radius:999px;background:transparent;color:var(--faint);display:inline-grid;place-items:center}
:root:root:root .g-acts .msg-ib:hover,:root:root:root .g-acts .msg-ib.on,:root:root:root .ans-acts .msg-ib:hover,:root:root:root .ans-acts .msg-ib.copied{background:var(--fill);color:var(--text)}
:root:root:root .g-acts .msg-ib .i,:root:root:root .ans-acts .msg-ib .i{width:16px;height:16px}
:root:root:root .g-acts .quiet{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 10px;border:0;border-radius:999px;background:transparent;color:var(--faint);font-size:13px}
:root:root:root .g-acts .quiet:hover{background:var(--fill);color:var(--text)}
:root:root:root .g-acts .quiet .i{width:16px;height:16px}
:root:root:root .g-err{color:var(--text);font-size:14px}
/* out-of-usage moments (approved: TSD - Design/pages/ghost-pricing.html, Out-of-usage moments): quiet copy, the black
   pill Upgrade, no red. The logic and calls stay in chat.js (showLeft, the 402 and 429 paths). */
:root:root:root .composer .free-top{position:absolute;left:0;right:0;bottom:calc(100% + 8px);transform:none;display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0;padding:0 8px;border-radius:0;background:transparent!important;box-shadow:none;font-size:13px;color:var(--muted);white-space:nowrap}
:root:root:root .composer .free-top[hidden]{display:none}
:root:root:root .composer .free-top a{font-size:13px;color:var(--text);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--fill-strong)}
:root:root:root .ask:not(.live) .composer:has(>.free-top:not([hidden])){margin-top:24px}
:root:root:root .composer .limit-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px;padding:8px 8px 8px 16px;border-radius:16px;background:transparent;box-shadow:inset 0 0 0 1px var(--line);font-size:14px;color:var(--text)}
:root:root:root .composer .limit-bar[hidden]{display:none}
:root:root:root .composer .limit-bar a{display:inline-flex;align-items:center;height:32px;padding:0 14px;border-radius:999px;font-size:14px;font-weight:500}
:root:root:root .g-served{color:var(--faint);font-size:13px;margin:0}
:root:root:root .g-fu{display:flex;flex-direction:column;gap:0;border:0;margin:0}
:root:root:root .g-fu-b{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 12px;border-radius:12px;color:var(--muted);font-size:14px;text-align:left;background:none;border:0}
:root:root:root .g-fu-b:hover{background:var(--fill);color:var(--text)}
:root:root:root .g-asks{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted)}
:root:root:root .g-asks .i{width:16px;height:16px}
/* the thread bar: the title, its project chip, Share and Download */
:root:root:root .thread-bar{gap:8px;background:var(--bg);border-bottom:0;height:56px}
:root:root:root #tbar{font-size:15px;font-weight:500;gap:12px;border-radius:12px}
:root:root:root .tbar-proj{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border-radius:999px;background:var(--fill);box-shadow:none;color:var(--muted);font-size:13px;font-weight:400}
:root:root:root .tbar-proj .i{width:16px;height:16px}
:root:root:root .thread-bar .grow{flex:1}
:root:root:root .thread-bar :is(.tbar-dl,.tbar-share){margin:0;flex:none;width:36px;height:36px;border-radius:999px;display:grid;place-items:center;color:var(--text);background:transparent}
:root:root:root .thread-bar :is(.tbar-dl,.tbar-share):hover{background:var(--fill)}
:root:root:root .thread-bar :is(.tbar-dl,.tbar-share) .i{width:20px;height:20px}

/* ── steps and thinking: the work view is an outlined panel, one line per step with its dot ── */
:root:root:root .g-reply .g-work{background:transparent;box-shadow:inset 0 0 0 1px var(--line);border:0;border-radius:20px;padding:4px 16px}
:root:root:root .g-work-h{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:0;border:0;background:none;color:var(--muted);font-size:14px;cursor:pointer}
:root:root:root .g-work-h:hover{background:none;color:var(--text)}
:root:root:root .g-work-h .i{width:16px;height:16px;margin-left:auto}
:root:root:root .g-work-t{color:var(--faint);font-variant-numeric:tabular-nums}
:root:root:root .g-work-list{border:0;margin:0 0 8px;padding:0}
:root:root:root .g-work-step{display:flex;align-items:flex-start;gap:12px;padding:6px 0;font-size:14px;color:var(--muted)}
:root:root:root .g-work-step>.i{width:16px;height:16px;flex:none;margin-top:2px;color:var(--faint)}
:root:root:root .g-work-step.run>.i{color:var(--text)}
:root:root:root .g-work-step.err{color:var(--danger)}
:root:root:root .g-ws-t small{display:block;font-size:13px;color:var(--faint)}
:root:root:root .g-work-sum{display:flex;align-items:center;gap:8px;padding:0 0 12px;font-size:14px;color:var(--muted)}
:root:root:root .g-work-sum .i{width:16px;height:16px;color:var(--text)}
:root:root:root .g-step{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:var(--muted)}
:root:root:root .g-step .i{width:16px;height:16px}
:root:root:root .g-think{font-size:14px;color:var(--muted)}
:root:root:root .g-think summary{display:inline-flex;align-items:center;gap:8px;min-height:32px;cursor:pointer;list-style:none;border-radius:999px;padding:0 10px 0 0}
:root:root:root .g-think summary::-webkit-details-marker{display:none}
:root:root:root .g-think summary:hover{color:var(--text)}
:root:root:root .g-think summary .i{width:16px;height:16px}
:root:root:root .g-think summary .i:last-child{transition:transform .15s}
:root:root:root .g-think[open] summary .i:last-child{transform:rotate(180deg)}
:root:root:root .g-think.live summary span{animation:tsd-blink 1.2s steps(1) infinite}
:root:root:root .g-think-b{white-space:pre-wrap;padding:8px 0 4px 24px;box-shadow:inset 1px 0 0 var(--line);margin-left:8px;color:var(--faint);font-size:14px;line-height:1.6;max-height:360px;overflow-y:auto}
@media (prefers-reduced-motion:reduce){:root:root:root .g-think.live summary span{animation:none}}

/* ── the agent run card and the file chips ── */
:root:root:root .agrun{background:transparent;box-shadow:inset 0 0 0 1px var(--line);border:0;border-radius:20px;padding:12px 16px}
:root:root:root .agrun .agrun-box.agrun-box{background:transparent;border:0;box-shadow:none}
:root:root:root .agrun-tabs button{border-radius:999px;font-size:14px}
:root:root:root .agrun-tabs button.on{background:var(--fill);color:var(--text)}
:root:root:root .g-files{display:flex;flex-wrap:wrap;gap:8px}
:root:root:root .g-file{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 12px;border:0;border-radius:999px;background:var(--fill);color:var(--text);font-size:13px;max-width:280px}
:root:root:root .g-file:hover,:root:root:root .g-file.on{background:var(--fill-strong)}
:root:root:root .g-file .i{width:16px;height:16px;flex:none}
:root:root:root .g-file small{color:var(--faint)}
:root:root:root .att-chip{border-radius:999px;background:var(--fill);box-shadow:none}

/* ── the content layer for every answer (pages/answer.js): text ── */
:root:root:root .g-md{font-size:16px;line-height:1.65;color:var(--text)}
:root:root:root .g-md>*{margin:0}
:root:root:root .g-md>*+*{margin-top:14px}
:root:root:root .g-md :is(h1,h2,h3,h4,h5,h6){font-weight:500;line-height:1.3;color:var(--text)}
:root:root:root .g-md h1{font-size:24px;letter-spacing:-.02em;margin-top:24px}
:root:root:root .g-md h2{font-size:20px;letter-spacing:-.01em;margin-top:24px}
:root:root:root .g-md h3{font-size:18px;letter-spacing:-.01em;margin-top:22px}
:root:root:root .g-md :is(h4,h5,h6){font-size:16px;margin-top:18px}
:root:root:root .g-md>:is(h1,h2,h3,h4):first-child{margin-top:0}
:root:root:root .g-md :is(ul,ol){padding-left:22px;margin-bottom:0}
:root:root:root .g-md li{margin:0}
:root:root:root .g-md li+li{margin-top:6px}
:root:root:root .g-md li>:is(ul,ol){margin-top:6px}
:root:root:root .g-md li>p{margin:0}
:root:root:root .g-md li::marker{color:var(--muted)}
:root:root:root .g-md strong{font-weight:500}
:root:root:root .g-md em{font-style:italic}
:root:root:root .g-md a{color:var(--text);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--fill-strong)}
:root:root:root .g-md a:hover{text-decoration-color:var(--text)}
:root:root:root .g-md blockquote{padding:0 0 0 14px;border:0;box-shadow:inset 2px 0 0 var(--fill-strong);color:var(--muted)}
:root:root:root .g-md blockquote>*+*{margin-top:8px}
:root:root:root .g-md hr{border:0;height:1px;background:var(--line)}
:root:root:root .g-md :not(pre)>code{font-family:var(--mono);font-size:.88em;background:var(--fill);border-radius:8px;padding:2px 6px;overflow-wrap:anywhere;color:var(--text)}
:root:root:root .g-md a.g-cite{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;margin:0 2px;border-radius:999px;background:var(--fill);color:var(--muted);font-size:12px;text-decoration:none;vertical-align:2px;line-height:1}
:root:root:root .g-md a.g-cite:hover{background:var(--fill-strong);color:var(--text)}
:root:root:root .g-md .caret{display:inline-block;width:8px;height:1.1em;margin-left:2px;background:var(--text);vertical-align:-.15em;border-radius:999px;animation:tsd-blink 1s steps(1) infinite}
@media (prefers-reduced-motion:reduce){:root:root:root .g-md .caret{animation:none}}
:root:root:root .g-md img.g-img{display:block;max-width:min(100%,560px);max-height:520px;height:auto;border-radius:16px;background:var(--fill)}
:root:root:root .g-md p>img.g-img+img.g-img{margin-top:8px}
/* math: the system mono; block math centered on its own line at 18px */
:root:root:root .g-md .math-mono{font-family:var(--mono);font-style:normal;font-size:.94em;white-space:nowrap}
:root:root:root .g-md .math-b{display:block;text-align:center;font-size:18px;padding:12px 0;overflow-x:auto;white-space:nowrap}
:root:root:root .g-md .frac{display:inline-flex;flex-direction:column;vertical-align:middle;text-align:center;margin:0 4px}
:root:root:root .g-md .frac>span:first-child{box-shadow:inset 0 -1px 0 currentColor;padding:0 6px 2px}
:root:root:root .g-md .frac>span:last-child{padding:2px 6px 0}
:root:root:root .g-md :is(sub,sup){font-size:.72em}

/* ── code: the 6% block, language on the left and Copy on the right, VS Code Light+ / Dark+ (tsd.css --syn-*) ── */
:root:root:root .tsd-c .code.code-box{background:var(--fill);border:0;box-shadow:none;border-radius:16px;overflow:hidden;font-family:var(--mono)}
:root:root:root .tsd-c .code-box .code-head{display:flex;align-items:center;justify-content:space-between;padding:8px 8px 0 16px;border:0;background:none;font-family:var(--sans);font-size:12px;color:var(--faint)}
:root:root:root .tsd-c .code-box .code-lang{font-size:12px;color:var(--muted)}
:root:root:root .tsd-c .code-copy{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-family:var(--sans);font-size:12px;cursor:pointer}
:root:root:root .tsd-c .code-copy:hover:not(:disabled),:root:root:root .tsd-c .code-copy.copied{background:var(--fill);color:var(--text)}
:root:root:root .tsd-c .code-copy:disabled{opacity:.4;cursor:default}
:root:root:root .tsd-c .code-copy .i{width:16px;height:16px}
:root:root:root .tsd-c .code-box pre{margin:0;border:0;border-radius:0;background:none;padding:12px 16px 16px;overflow-x:auto;color:var(--syn-fg)}
:root:root:root .tsd-c .code-box pre code{display:block;white-space:pre;overflow-wrap:normal;word-break:normal;background:none;padding:0;border-radius:0;font-family:var(--mono);font-size:13px;line-height:1.65;color:var(--syn-fg)}
:root:root:root .tsd-c .code-box .caret{display:inline-block;width:8px;height:1.1em;background:var(--text);vertical-align:-.15em;border-radius:999px;animation:tsd-blink 1s steps(1) infinite}
:root:root:root .tsd-c .code-shut pre{max-height:calc(12 * 13px * 1.65 + 12px);overflow-y:hidden;padding-bottom:0}
:root:root:root .tsd-c .code-more-w{display:flex;justify-content:center;padding:12px 16px 14px}
:root:root:root .tsd-c .code-more{display:inline-flex;align-items:center;height:32px;padding:0 14px;border:0;border-radius:999px;background:var(--fill);color:var(--text);font-family:var(--sans);font-size:13px;cursor:pointer;width:auto}
:root:root:root .tsd-c .code-more:hover{background:var(--fill-strong)}
:root:root:root .tsd-c .hljs-keyword,:root:root:root .tsd-c .hljs-literal,:root:root:root .tsd-c .hljs-meta,:root:root:root .tsd-c .hljs-selector-tag,:root:root:root .tsd-c .hljs-tag .hljs-name,:root:root:root .tsd-c .hljs-name,:root:root:root .tsd-c .hljs-doctag{color:var(--syn-k)}
:root:root:root .tsd-c .hljs-keyword:is(:not(.hljs-function)){color:var(--syn-k)}
:root:root:root .tsd-c .hljs-string,:root:root:root .tsd-c .hljs-regexp,:root:root:root .tsd-c .hljs-template-tag,:root:root:root .tsd-c .hljs-meta .hljs-string,:root:root:root .tsd-c .hljs-char.escape_{color:var(--syn-s)}
:root:root:root .tsd-c .hljs-number,:root:root:root .tsd-c .hljs-symbol,:root:root:root .tsd-c .hljs-bullet{color:var(--syn-nu)}
:root:root:root .tsd-c .hljs-title.function_,:root:root:root .tsd-c .hljs-title,:root:root:root .tsd-c .hljs-section,:root:root:root .tsd-c .hljs-selector-class,:root:root:root .tsd-c .hljs-selector-id{color:var(--syn-f)}
:root:root:root .tsd-c .hljs-title.class_,:root:root:root .tsd-c .hljs-type,:root:root:root .tsd-c .hljs-built_in,:root:root:root .tsd-c .hljs-class .hljs-title{color:var(--syn-ty)}
:root:root:root .tsd-c .hljs-variable,:root:root:root .tsd-c .hljs-params,:root:root:root .tsd-c .hljs-attr,:root:root:root .tsd-c .hljs-attribute,:root:root:root .tsd-c .hljs-property,:root:root:root .tsd-c .hljs-template-variable,:root:root:root .tsd-c .hljs-variable.language_{color:var(--syn-v)}
:root:root:root .tsd-c .hljs-comment,:root:root:root .tsd-c .hljs-quote{color:var(--syn-c);font-style:normal}
:root:root:root .tsd-c .hljs-punctuation,:root:root:root .tsd-c .hljs-operator,:root:root:root .tsd-c .hljs-subst{color:var(--syn-p)}
:root:root:root .tsd-c .hljs-addition{color:var(--syn-add-fg);background:var(--syn-add);display:inline-block;width:100%}
:root:root:root .tsd-c .hljs-deletion{color:var(--syn-del-fg);background:var(--syn-del);display:inline-block;width:100%}
:root:root:root .tsd-c .hljs-emphasis{font-style:italic}
:root:root:root .tsd-c .hljs-strong{font-weight:500}
/* a diagram, drawn in the code frame */
:root:root:root .tsd-c .mmd-body{padding:16px;overflow-x:auto;text-align:center;line-height:0}
:root:root:root .tsd-c .mmd-body svg{display:inline-block;max-width:none;height:auto}

/* ── dynamic tables: no box; a hairline under each row, each column aligned by its type, scrolling inside itself ── */
:root:root:root .tsd-c .tbl-frame{position:relative}
:root:root:root .tsd-c .tbl.tbl-wrap{overflow-x:auto;max-width:100%;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;-webkit-overflow-scrolling:touch}
:root:root:root .tsd-c .tbl-wrap table{display:table;min-width:100%;width:max-content;max-width:none;border-collapse:collapse;border:0;border-radius:0;margin:0;overflow:visible;font-size:14px;line-height:1.5}
:root:root:root .tsd-c .tbl-wrap th{text-align:left;font-weight:500;color:var(--muted);padding:8px 12px;border:0;border-bottom:1px solid var(--line);background:none;white-space:nowrap;vertical-align:baseline}
:root:root:root .tsd-c .tbl-wrap td{padding:10px 12px;border:0;border-bottom:1px solid var(--line);background:none;white-space:nowrap;vertical-align:baseline;font-weight:400;max-width:none;color:var(--text)}
:root:root:root .tsd-c .tbl-wrap th[scope="row"]{font-weight:500;color:var(--text);padding:10px 12px 10px 0;border-bottom:1px solid var(--line);white-space:nowrap}
:root:root:root .tsd-c .tbl-wrap :is(th,td):first-child{padding-left:0}
:root:root:root .tsd-c .tbl-wrap :is(th,td).c-num{text-align:right}
:root:root:root .tsd-c .tbl-wrap td.c-prose{white-space:normal;min-width:220px;max-width:300px;color:var(--muted)}
:root:root:root .tsd-c .tbl-wrap td.c-text{white-space:normal;min-width:120px;max-width:340px}
:root:root:root .tsd-c .tbl-wrap code.cp,:root:root:root .tsd-c .tbl-wrap .cp{font-family:var(--mono);font-size:.88em;background:var(--fill);border-radius:8px;padding:2px 6px;white-space:nowrap;color:var(--text)}
:root:root:root .tsd-c .tbl-wrap .math-mono{font-size:.92em}
:root:root:root .tsd-c .tbl-wrap .nil{display:inline-block;width:10px;height:1px;background:var(--faint);vertical-align:middle}
:root:root:root .tsd-c .g-chip{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:999px;background:var(--fill);color:var(--text);font-size:12px;font-weight:500;white-space:nowrap;vertical-align:1px}
:root:root:root .tsd-c .g-chip.line{background:transparent;box-shadow:inset 0 0 0 1px var(--line);color:var(--muted)}
:root:root:root .tsd-c .g-chip .live-dot{width:6px;height:6px}
:root:root:root .tsd-c .tbl-bar{position:absolute;top:2px;right:0;z-index:2;display:flex;justify-content:flex-end;gap:2px;margin:0;padding:2px;border:0;border-radius:999px;background:var(--bg);box-shadow:none;opacity:0;pointer-events:none;transition:opacity .15s}
:root:root:root .tsd-c .tbl-frame:hover .tbl-bar,:root:root:root .tsd-c .tbl-frame:focus-within .tbl-bar{opacity:1;pointer-events:auto}
@media (hover:none){:root:root:root .tsd-c .tbl-bar{position:static;opacity:1;pointer-events:auto;margin-top:4px;background:none}}

/* ── sources: gray chips with the number, under the answer ── */
:root:root:root .g-srcrow{display:block}
:root:root:root .g-srcrow .sources{display:flex;flex-wrap:wrap;gap:8px}
:root:root:root .g-srcrow .src{display:inline-flex;align-items:center;gap:8px;max-width:260px;height:32px;padding:0 12px 0 6px;border:0;border-radius:999px;background:var(--fill);box-shadow:none;color:var(--text);font-size:13px;text-decoration:none;cursor:pointer;flex-direction:row}
:root:root:root .g-srcrow .src:hover{background:var(--fill-strong)}
:root:root:root .g-srcrow .src i{width:20px;height:20px;flex:none;border-radius:999px;background:var(--fill-strong);font-style:normal;font-size:12px;display:grid;place-items:center;color:var(--muted)}
:root:root:root .g-srcrow .src i .i{width:12px;height:12px}
:root:root:root .g-srcrow .src .g-srccard-d{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:var(--text)}
:root:root:root .g-srcs a{border-radius:12px}
:root:root:root .g-srcs .num{border-radius:999px}
:root:root:root .g-reply .g-work.g-work{padding:4px 16px}
:root:root:root .g-reply .g-work .g-work-h.g-work-h{padding:0}

/* TSD-323: limit notice facts (refill, allowance used, prepaid credit) and the account menu credit row */
.st-notice .st-facts{margin-top:12px;border-top:1px solid var(--line)}
.st-notice .st-facts div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px}
.st-notice .st-facts span{color:var(--muted)}
.st-notice .st-facts b{display:inline;margin:0;font-weight:500;font-variant-numeric:tabular-nums}
.credits .pp-row{margin-top:12px}
