/* TSD foundation for the Ghost app (launch, 2026-11-15). Loaded LAST on every page; owned by the foundation builder.
   Values come from the approved design site (~/Desktop/TSD - Design/tsd.css and content.css).
   One look only: there is no skin. Light and dark are set on <html data-theme> by the head script.

   Page builders: style with these variables only.
     surfaces  --bg --elevated --card-fill --card-fill-hover --fill --fill-strong --scrim
     ink       --text --muted --faint --invert-bg --invert-text
     lines     --line --line-soft
     status    --live --live-soft (online, Live) and --danger --danger-soft (destructive and errors only)
     depth     --float (floating panels)
     radii     --r-sm 8 --r-input 12 --r-card 16 --r-panel 20 --r-shelf 32 --r-pill 999
     type      --sans (PP Neue Montreal 350 Book, 400 Regular, 500 Medium, 600 SemiBold, 700 Bold)
   Design-site aliases (so content.css markup works unchanged): --fg --fg2 --fg3 --a6 --a8 --a10 --a12 --inv --inv-fg --elev */

@font-face{font-family:"PP Neue Montreal";font-weight:350;font-display:swap;src:url("/ghost/_ref/fonts/PPNeueMontreal-Book.woff2") format("woff2")}
@font-face{font-family:"PP Neue Montreal";font-weight:400;font-display:swap;src:url("/ghost/_ref/fonts/PPNeueMontreal-Regular.woff2") format("woff2")}
@font-face{font-family:"PP Neue Montreal";font-weight:450;font-display:swap;src:url("/ghost/_ref/fonts/PPNeueMontreal-Regular.woff2") format("woff2")}
@font-face{font-family:"PP Neue Montreal";font-weight:500;font-display:swap;src:url("/ghost/_ref/fonts/PPNeueMontreal-Medium.woff2") format("woff2")}
@font-face{font-family:"PP Neue Montreal";font-weight:600;font-display:swap;src:url("/ghost/_ref/fonts/PPNeueMontreal-SemiBold.woff2") format("woff2")}
@font-face{font-family:"PP Neue Montreal";font-weight:700;font-display:swap;src:url("/ghost/_ref/fonts/PPNeueMontreal-Bold.woff2") format("woff2")}

/* ══ FOLDED LAYERS (2026-11-15): the approved Clinical skin (was css/themes.css) and the Mobbin skin
   (~/Desktop/TSD - Design/skins/mobbin.css), with the skin attribute removed. Their token blocks are overridden by the
   tokens that follow. Edit the TSD rules at the end of this file, not these. ═════════════════════════════════════ */
/* Appearance (round 24, Part 7): two skins, Ghost and Clinical, each in light and dark.
   Loaded after every other stylesheet. The skin and mode sit on <html> as data-skin and data-theme; the inline
   script in each page head sets them before first paint, and G.appearance (app.js) keeps them current.

   Ghost is today's look: its sets below mirror ghost.css lines 7-8 exactly, so choosing Ghost changes nothing.
   Clinical takes the foundations of the Sapient app (thesapientdirective.com/sapient/app). Every value is read
   from the Sapient source, not invented:
     palette   sapient/design/system/palette.css   (light :root lines 26-63, dark lines 71-109)
     scale     sapient/design/system/tokens.ts     (radii 102-104, eyebrow 116-119, card title 120-123)
     tabs      sapient/design/system/tabs.tsx      (active pill 55-57, 39-41, 72)
     card      sapient/design/system/components.tsx 18 and appShell.tsx 61-62
     fills     sapient/app/lib/sapientTokens.ts    (surfaceBgSoft 36, barTrack 46, eyebrow good 61)
     usage     sapient/app/ApiKeysSection.tsx      (labels 793 and 873, meter 851-853, chart bars 1446-1449)
     scrim     sapient/app/MaryWorkspace.tsx 1068; active fill sapient/app/mary/MarySessionList.tsx 370
     mark      sapient/public/brand/directive/ghost-short-*.png (the Directive short wordmark, red bar #D5062B)
   Type is the same family in both skins (PP Neue Montreal, sapient/app/index.css 19-32), so nothing new loads.
   Only colors, borders, radii and shadows change: no sizes, spacing or layout. */

/* ── Ghost: the same set as ghost.css :root and :root[data-theme="light"] ─────────────────────────────── */



/* ── Clinical light: the studio white ─────────────────────────────────────────────────────────────────────
   --red is Ghost's accent slot. In Clinical the accent is Sapient's near-black chip (tabs.tsx 57: the active
   pill and primary buttons), so every Ghost red control turns into that chip. Real red is kept for the mark
   (--brand) and for errors (--danger, palette --sp-red-ink). */
:root:root[data-theme="light"]{
  --bg:#F6F7F8;--elevated:#FFFFFF;--text:#0B0F11;--muted:#6E787E;--faint:#6E787E;
  --line:rgba(11,15,17,.09);--line-soft:rgba(11,15,17,.05);--fill:rgba(17,17,17,.04);--fill-strong:#EDEFF1;
  --scrim:rgba(0,0,0,.45);--invert-bg:#0B0F11;--invert-text:#FFFFFF;
  --red:#0B0F11;--red-dim:rgba(17,17,17,.06);--on-red:#FFFFFF;--ok:#007A55;--ok-dim:rgba(29,185,84,.10);
  --brand:#D5062B;--danger:#D5062B;--card:#FFFFFF;--card-border:rgba(11,15,17,.09);
  --shadow-card:0 8px 26px rgba(11,15,17,.07);--shadow-lift:0 16px 44px rgba(11,15,17,.12);
  --bar-bg:#FFFFFF;--data-weak:#FF2D46;--data-good:#00C88A;--chart:rgba(0,0,0,.15);--chart-hover:rgba(0,0,0,.6);
  --r-card:20px;--r-inset:12px;color-scheme:light}
/* ── Clinical dark: the silhouette. Cards lose their fill and become outline; floating panels keep one. ── */
:root:root[data-theme="dark"]{
  --bg:#000000;--elevated:#131719;--text:#F2F5F7;--muted:#8A959B;--faint:#8A959B;
  --line:rgba(242,245,247,.16);--line-soft:rgba(242,245,247,.08);--fill:rgba(255,255,255,.03);--fill-strong:rgba(255,255,255,.08);
  --scrim:rgba(0,0,0,.45);--invert-bg:#F2F5F7;--invert-text:#000000;
  --red:#F2F5F7;--red-dim:rgba(255,255,255,.06);--on-red:#000000;--ok:#2FE0A8;--ok-dim:rgba(29,185,84,.10);
  --brand:#D5062B;--danger:#FF5C72;--card:transparent;--card-border:rgba(242,245,247,.20);
  --shadow-card:none;--shadow-lift:0 0 0 1px rgba(242,245,247,.28);
  --bar-bg:#000000;--data-weak:#FF5C72;--data-good:#2FE0A8;--chart:rgba(255,255,255,.2);--chart-hover:rgba(255,255,255,.6);
  --r-card:20px;--r-inset:12px;color-scheme:dark}

/* Surfaces that are dark in every theme (the terminal, captions over pictures, the old computer frame) keep
   dark-mode Clinical tokens inside them, so their accents stay readable on a light page. */
:root:root :is(.term,.gc-bar,.gc-foot,.gc-right,.gc-idle,.promo,.flow-cap,.info-fig,.skills-hero,.wfhero,.auth-cap,.auth-art,.mas-cap,.state,.feat-media.tint){
  --text:#F2F5F7;--muted:#8A959B;--faint:#8A959B;--red:#F2F5F7;--red-dim:rgba(255,255,255,.06);--on-red:#000000;--line:rgba(242,245,247,.16);--line-soft:rgba(242,245,247,.08);--fill:rgba(255,255,255,.03);--fill-strong:rgba(255,255,255,.08)}

/* ── Clinical components ──────────────────────────────────────────────────────────────────────────────── */
:root:root body{background:var(--bg);color:var(--text)}
:root:root :focus-visible{outline-color:var(--focus-ring)}

/* the header: white bar, hairline under it, the red-bar "ghost" wordmark in place of the mascot */
:root:root .bar{background:var(--bar-bg);border-bottom-color:var(--card-border)}
:root:root .mark img,:root:root .sheet-top .mark img{display:none}
:root:root .mark{gap:0}

/* the active tab: Sapient's near-black pill */
:root:root .tab{border-radius:999px}
:root:root .tab[aria-current="page"]{background:var(--invert-bg);color:var(--invert-text)}
:root:root .sheet a.big[aria-current="page"]{color:var(--text);text-decoration:underline;text-decoration-color:var(--text);text-decoration-thickness:2px;text-underline-offset:6px}

/* cards (round 28 design pass, Robert: "make the application more seamless by removing all of these weird outlines
   of boxes"): no outline and no shadow. A card is a very quiet fill on the page, white on the studio grey in light
   and a 3% white on black in dark (--card-fill below). The big containers (the model page's sidebar and chat panel,
   the Explore band, the composer's old chat box) are not cards at all: they sit straight on the page. */
:root:root :is(.card,.card2,.card2.flat,.acct .card,.acct .card.wide,.tile,.tile.card2,.plan-head,.price-banner,.recipe,.copybox,.agents,.pop-card,.trio-i,.wf-m,.b4-pre,.b4-kinds,.g-limit,.plans.compact .plan,.starters button,.code-box){
  background:var(--card-fill);border-color:transparent;box-shadow:none}
:root:root :is(.tile,.starters button,.wf-m,.trio-i):hover{background:var(--card-fill);box-shadow:var(--shadow-card)}
:root:root[data-theme="dark"] :is(.tile,.starters button,.wf-m,.trio-i):hover{background:var(--card-fill-hover);box-shadow:none}

/* floating panels: menus, search, popups, modals, the tour card. Opaque in both modes (palette.css 74-79). */
:root:root :is(.panel,.search,.mp-menu,.modal,.pop-panel,.auth-pop,.tour-card,.gx-win){background:var(--elevated);border-color:var(--card-border);box-shadow:var(--shadow-lift)}
:root:root[data-theme="dark"] :is(.panel,.search,.mp-menu,.modal,.pop-panel,.auth-pop,.tour-card,.gx-win){box-shadow:0 0 0 1px rgba(242,245,247,.28),0 24px 60px rgba(0,0,0,.6)}
:root:root #toast{background:var(--invert-bg);color:var(--invert-text)}
:root:root #toast.err{background:var(--danger);color:#FFFFFF}

/* buttons: Sapient buttons are pills (index.css 87-93); the primary is the chip, the secondary a hairline */
:root:root :is(.btn-red,.btn-white,.btn-quiet,.pill-red,.quiet,.launch,.pick-cta){border-radius:999px}
:root:root .btn-quiet{background:transparent;box-shadow:inset 0 0 0 1px var(--card-border)}
:root:root .btn-quiet:hover{background:var(--fill)}

/* labels: the uppercase, letter-spaced micro-label (tokens.ts 116-119: 11px, .14em, 500, muted) */
:root:root :is(.acct-nav>.small,.credits-top>span:first-child,.card-top>.soft:first-child,.b1-axis){text-transform:none;letter-spacing:0;font-weight:500;color:var(--muted)}
:root:root :is(.credits-top>span:first-child,.card-top>.soft:first-child){font-size:12px}
:root:root .search .label{text-transform:none;letter-spacing:0;font-size:12px;font-weight:500;color:var(--muted)}
:root:root .cweb-word{color:var(--line)}

/* tags: Ghost red and lime become Sapient chips */
:root:root .tag{background:var(--fill-strong);color:var(--text);letter-spacing:0;text-transform:none;border-radius:999px}
:root:root .tag.top,:root:root .tag.trending{background:var(--invert-bg);color:var(--invert-text)}
:root:root .tag.new{background:transparent;color:var(--text);box-shadow:inset 0 0 0 1px var(--card-border)}

/* data: ink bars and meters like the Sapient usage card, red for weak and green for good */
:root:root .bars i{background:var(--chart);opacity:1}
:root:root .bars i:hover,:root:root .bars i:focus{background:var(--chart-hover)}
:root:root :is(.meter-bar,.cbar){background:var(--red-dim)}
:root:root :is(.meter-bar i,.cbar i){background:var(--text)}
:root:root :is(.b4-dot.error,.b4-tv-steps li.error){color:var(--data-weak)}
:root:root .toggle.on{background:var(--invert-bg)}
:root:root[data-theme="dark"] .toggle i{background:#000000}

/* errors keep real red: the Sapient red ink */
:root:root :is(.b1-danger,.ck-err,.ck-pbad,.auth-err,.b4-err,.sb-menu .sb-del b,.sb-menu .sb-del .i){color:var(--danger)}

/* Ghost-red blocks: the pricing highlight, the checkout glow, the big red footer */
:root:root .plan.hot .plan-head{background:var(--invert-bg);color:var(--invert-text);box-shadow:var(--shadow-lift)}
:root:root .plan.hot .plan-head :is(.soft,.small,p){color:inherit;opacity:.72}
:root:root .plan.hot .tag.top{background:var(--bg);color:var(--text)}
:root:root .plan.hot :is(.btn-red,.btn-white){background:var(--bg);color:var(--text)}
/* the compact plans (Usage and Billing): the popular plan is an ink-outlined card, not a filled one */
:root:root .plans.compact .plan.hot{background:var(--card);border-color:var(--text)}
:root:root .plans.compact .plan.hot .plan-head{background:none;color:inherit;box-shadow:none}
:root:root .plans.compact .plan.hot .plan-head :is(.soft,.small,p){color:var(--muted);opacity:1}
:root:root .plans.compact .plan.hot .tag.top{background:var(--invert-bg);color:var(--invert-text)}
:root:root .plans.compact .plan.hot :is(.btn-red,.btn-white){background:var(--invert-bg);color:var(--invert-text)}
:root:root .price-banner{background:var(--card)}
:root:root .ck-sum{background:none!important}
:root:root .cx-model.x2.on{border-color:var(--text);background:var(--fill)}
:root:root .bigfoot-grid{background:var(--card);color:var(--text);border-top:1px solid var(--card-border)}
:root:root :is(.bf-brand h2,.bf-col h3,.bf-col a:hover){color:var(--text)}
:root:root :is(.bf-brand .soft,.bf-col a){color:var(--muted)}

/* ── round 27 (2.1): one black. Sapient palette.css dark block: every surface in the page is #000 and a card is
   an outline; only floating menus and popups keep #131719 (--elevated). The chat sidebar, the composer's pills,
   the model pill, sidebar rows and project chips become transparent with a hairline and take --fill on hover. ── */
:root:root[data-theme="dark"] .side{background:var(--bg);border-right:1px solid var(--card-border)}
:root:root[data-theme="dark"] .sb-search{background:transparent;border-color:var(--card-border)}
:root:root[data-theme="dark"] :is(.sb-chat-row,.sb-proj-row){border:1px solid transparent}
:root:root[data-theme="dark"] :is(.sb-chat-row.on,.sb-proj-row.on){background:transparent;border-color:var(--card-border)}
:root:root[data-theme="dark"] :is(.sb-chat-row:hover,.sb-proj-row:hover,.sb-row:hover,button.sb-proj:hover){background:var(--fill)}
/* the send button: a muted outline while the box is empty, Sapient's chip (white in dark, ink in light) with text */
/* the composer card itself: transparent outline in dark (it was the --card value already), no glow from X2 or Agents */
:root:root .thread-bar{background:var(--bg);border-bottom-color:var(--card-border)}
/* a model page's chat sits in the stage card: its sticky header and the composer's shadow take the card's color */
/* the live work view and the loading bubble */
:root:root .g-jump{background:var(--elevated);border-color:var(--card-border);box-shadow:var(--shadow-lift)}

/* ── round 27 (2.2): maker logos. Ghost shows the full-color logo on its own rounded tile; Clinical shows an outline
   tile (transparent, hairline, the same radius) with the logo's monochrome glyph painted in --text. The glyph is a
   mask made from the same logo (brand/makers/mono/*.png); a maker without one shows its logo in grayscale. ── */
.mk-mono{display:none}
:root:root img:has(+ .mk-mono){display:none}
:root:root .mk-mono{display:block;position:relative;width:100%;height:100%;border-radius:12px;box-shadow:inset 0 0 0 1px var(--card-border)}
:root:root .mk-mono::before{content:"";position:absolute;inset:13%;background:var(--text);-webkit-mask:var(--mk) center/contain no-repeat;mask:var(--mk) center/contain no-repeat}
:root:root :is(.mm-ic,.tile-i.has-mk,.m-logo):has(.mk-mono){background:transparent;border:0}
:root:root .mm-ic .mk-mono{border-radius:8px}
:root:root .m-logo .mk-mono{border-radius:20px}
:root:root .m-logo:has(.mk-mono){border:0;overflow:visible}
:root:root .mk-mono.mk-m{display:inline-block;width:.74em;height:.74em;margin-right:.38em;vertical-align:baseline;box-shadow:inset 0 0 0 1px var(--line)}
:root:root .lib-grid .flow-cap h3 .mk-mono.mk-m{flex:none}
:root:root img[src*="/brand/makers/"]:not(:has(+ .mk-mono)){filter:grayscale(1)}

/* ── the Appearance section in Manage Account (both skins) ──────────────────────────────────────────── */
.ap-skins{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ap-skin{position:relative;display:flex;flex-direction:column;gap:12px;padding:12px;border-radius:20px;border:1px solid var(--line);text-align:left;background:transparent}
.ap-skin:hover{background:var(--fill)}
.ap-skin.on{border-color:var(--text);box-shadow:inset 0 0 0 1px var(--text)}
.ap-name{display:flex;flex-direction:column;gap:2px;padding:0 4px 4px}
.ap-name b{font-size:15px;font-weight:500}
.ap-tick{position:absolute;top:20px;right:20px;width:22px;height:22px;border-radius:999px;display:none;place-items:center;background:var(--invert-bg);color:var(--invert-text)}
.ap-tick .i{width:12px;height:12px}
.ap-skin.on .ap-tick{display:grid}
/* the previews draw each skin in the current mode, from that skin's own values */
.ap-prev{--p-bg:#050607;--p-el:#0a0b0c;--p-tx:#f4f6f6;--p-mu:rgba(244,246,246,.40);--p-ln:rgba(255,255,255,.10);--p-card:rgba(255,255,255,.05);--p-acc:#ff3b3b;--p-r:10px;--p-sh:none;
  display:flex;flex-direction:column;height:150px;border-radius:12px;overflow:hidden;background:var(--p-bg);border:1px solid var(--line-soft)}
:root[data-theme="light"] .ap-prev[data-p="ghost"]{--p-bg:#fbfbf9;--p-el:#ffffff;--p-tx:#15181c;--p-mu:rgba(21,24,28,.44);--p-ln:rgba(21,24,28,.12);--p-card:rgba(21,24,28,.045)}
.ap-prev[data-p="clinical"]{--p-bg:#000000;--p-el:#000000;--p-tx:#F2F5F7;--p-mu:#8A959B;--p-ln:rgba(242,245,247,.20);--p-card:transparent;--p-acc:#F2F5F7;--p-r:14px}
:root[data-theme="light"] .ap-prev[data-p="clinical"]{--p-bg:#F6F7F8;--p-el:#FFFFFF;--p-tx:#0B0F11;--p-mu:#6E787E;--p-ln:rgba(11,15,17,.09);--p-card:#FFFFFF;--p-acc:#0B0F11;--p-sh:0 8px 26px rgba(11,15,17,.07)}
.ap-prev i,.ap-prev u{display:block;font-style:normal;text-decoration:none}
.ap-bar{display:flex;align-items:center;gap:6px;height:28px;padding:0 10px;background:var(--p-el);border-bottom:1px solid var(--p-ln)}
.ap-mark{width:14px;height:14px;border-radius:999px;background:var(--p-tx);opacity:.9;margin-right:6px}
.ap-tab,.ap-tab2{width:26px;height:10px;border-radius:8px;background:var(--p-ln)}
.ap-prev[data-p="ghost"] .ap-tab{background:transparent;box-shadow:inset 0 -2px 0 var(--p-acc)}
.ap-prev[data-p="clinical"] .ap-tab{border-radius:999px;background:var(--p-acc);height:12px}
.ap-body{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px}
.ap-card{display:flex;flex-direction:column;justify-content:space-between;padding:10px;border-radius:var(--p-r);background:var(--p-card);border:1px solid var(--p-ln);box-shadow:var(--p-sh)}
.ap-lbl{width:44%;height:5px;border-radius:8px;background:var(--p-mu)}
.ap-num{width:60%;height:12px;border-radius:8px;background:var(--p-tx)}
.ap-meter{height:4px;border-radius:999px;background:var(--p-ln);overflow:hidden}
.ap-meter u{width:62%;height:100%;border-radius:inherit;background:var(--p-acc)}
@media (max-width:700px){.ap-skins{grid-template-columns:1fr} .ap-prev{height:132px}}
/* round 27 (3.4): agent file chips and the side panel take the outline look */
:root:root .g-panel{border-color:var(--card-border);box-shadow:var(--shadow-lift)}
:root:root .g-panel-h{border-bottom-color:var(--card-border)}
:root:root .g-panel-seg{background:transparent;box-shadow:inset 0 0 0 1px var(--card-border)}
:root:root .g-panel-seg .seg-b.on{background:var(--fill-strong)}
:root:root .ws-agent-row{border-bottom-color:var(--card-border)}

/* ── Round 27, Robert's review (2026-11-12): Clinical nav sized like the Sapient app, one black in dark ─────────
   Nav pills: the Sapient app bar pill is 36px tall with 18px of space each side of the word (measured from
   thesapientdirective.com/sapient/app); Ghost's was 28px with 8px. Inactive items keep the same padding so the
   spacing between words matches too. Right-side controls get the same height and Sapient's hairline secondary look. */
:root:root .bar .tabs{gap:6px}
:root:root .bar .tab{height:36px;padding:0 18px}
:root:root .bar .quiet{height:36px;min-width:36px;padding:0 14px;border-radius:999px;font-size:13px;background:transparent;box-shadow:inset 0 0 0 1px var(--card-border)}
:root:root .bar .quiet:hover{background:var(--fill)}
:root:root .bar .avatar{width:36px;height:36px;background:transparent;border-color:var(--card-border)}

/* Dark: the nav words are white, not grey (Robert: "this gray on the menu nav bar letters should be white"). */
:root:root[data-theme="dark"] .bar .tab:not([aria-current="page"]){color:var(--text)}

/* Dark: ONE black. Robert asked for the page black everywhere, so floating panels (account menu, Models menu,
   search, popups) drop Sapient's #131719 menu fill and become black with a hairline ring, like the cards. Inner
   wells (credits box, search field, cards inside the search) take the quiet card fill (round 28 design pass). */
:root:root[data-theme="dark"]{--elevated:#000000}
:root:root[data-theme="dark"] :is(.panel,.search,.mp-menu,.modal,.pop-panel,.auth-pop,.tour-card,.gx-win){background:#000000;border-color:var(--card-border);box-shadow:0 0 0 1px rgba(242,245,247,.22),0 24px 60px rgba(0,0,0,.7)}
:root:root[data-theme="dark"] :is(.credits,.search-in,.pop-card){background:var(--card-fill);border:1px solid transparent}
:root:root[data-theme="dark"] .chip[aria-selected="true"]{background:var(--invert-bg);color:var(--invert-text);border-color:transparent}
:root:root[data-theme="dark"] .chips{background:#000000}

/* ── Round 28 design pass (Robert's review, 2026-11-12) ─────────────────────────────────────────────────────
   Clinical "seamless": in-page surfaces are the page color (Sapient palette.css); cards are a quiet fill, never an
   outline; only floating panels (menus, search, popups) keep one hairline so they read as floating. */
:root:root[data-theme="light"]{--card-fill:#FFFFFF;--card-fill-hover:#FFFFFF}
:root:root[data-theme="dark"]{--card-fill:rgba(255,255,255,.03);--card-fill-hover:rgba(255,255,255,.06)}
/* containers sit straight on the page: the model page's sidebar and chat panel, the Explore band, the old chat box */
/* one hairline between the model page's sidebar and its chat, nothing around either */
:root:root .b3-split>#minfo{border-radius:0;border-right-color:var(--line-soft)}
:root:root .split.b3-split.collapsed>#minfo{border:0}
/* media cards (Explore rail and grids, Models grid, presets): the picture is the card, no ring around it */
:root:root :is(.flow,.feat-media,.promo,.preset-media){border-color:transparent}
/* everything else that drew a box: compare columns, the empty workspace, the Appearance choices */
:root:root :is(.proj-empty.ws-empty,.ap-skin){background:var(--card-fill);border-color:transparent;box-shadow:none}
/* round 29: Compare's columns are flat in Clinical too (css/b3-computer.css), no filled card inside the page card */
:root:root .cmp-col{background:transparent;box-shadow:none}
:root:root .ap-skin:hover,:root:root .cmp-add:hover{background:var(--card-fill-hover)}
:root:root .ap-skin.on{border-color:var(--text);box-shadow:inset 0 0 0 1px var(--text)}
/* the Clinical preview card draws the same seamless card: a fill, no ring (white on grey, 3% white on black) */
.ap-prev[data-p="clinical"] .ap-card{border-color:transparent;box-shadow:none;background:rgba(255,255,255,.03)}
:root[data-theme="light"] .ap-prev[data-p="clinical"] .ap-card{background:#FFFFFF}
/* the composer is a field: white with the soft studio shadow in light, a quiet fill and one hairline in dark */
/* a card inside a floating panel (white on white in light) takes the inset fill instead */
:root:root[data-theme="light"] :is(.panel,.pop-panel,.modal,.search) :is(.card,.card2,.pop-card,.tile){background:var(--fill);box-shadow:none}
/* the three picture cards in the search panel: a quiet fill, no ring */
:root:root .search .pop3-card{background:var(--fill);border-color:transparent}
:root:root .search .pop3-card:hover{background:var(--fill-strong)}
/* the plan you are on and the popular plan keep their ink ring: a selection, not a box */
:root:root .plans.compact .plan.hot{border-color:var(--text)}

/* Clinical text: ink and ONE muted grey (#6E787E light, #8A959B dark). Nothing is dimmed with opacity. */
:root:root :is(.bf-col a,.bf-col a.bf-soon,.bf-brand .soft){color:var(--muted);opacity:1}
:root:root .bf-col a:hover{color:var(--text)}
:root:root :is(.feat.soon h3,.feat.soon p,.flow.soon .flow-cap,.tile.soon,.tile.soon:hover,.tile.soon .d,.tile.soon .tile-top,.feed-soon h2,.feed-soon p){opacity:1}
:root:root :is(.feat.soon h3,.tile.soon b,.feed-soon h2){color:var(--muted)}
:root:root .tile.soon .tile-top{color:var(--muted)}
/* captions over a picture use the dark-mode muted (they sit on a dark scrim in both modes) */
:root:root .info-fig figcaption span{color:#8A959B}
/* on an ink block (the popular plan in light) secondary text is the dark-mode muted; on a white chip (dark) the light one */
:root:root[data-theme="light"] .plan.hot .plan-head :is(.soft,.small,p),:root:root[data-theme="light"] .plan.hot .plan-price span{color:#8A959B;opacity:1}
:root:root[data-theme="dark"] .plan.hot .plan-head :is(.soft,.small,p),:root:root[data-theme="dark"] .plan.hot .plan-price span{color:#6E787E;opacity:1}
:root:root .plans.compact .plan.hot .plan-head :is(.soft,.small,p),:root:root .plans.compact .plan.hot .plan-price span{color:var(--muted);opacity:1}

/* Clinical floating panels open below the bar with a small gap, so the panel's ring never draws over the bar's
   hairline (Robert circled the account menu and the Models menu sitting on the line). */
:root:root .panel{top:60px}

/* Ghost light: the box outlines read too bold (a 12% border plus a 45% dark inner ring on .card2). One soft hairline. */


/* Coming soon on a card (both skins): the tag sits inside the picture, on the card's own padding. The rail's
   pictures were not positioned, so a tag there hung off the top of the rail and was clipped. */
.feat-media{position:relative}
:is(.flow,.feat) .corner-tag{top:14px;right:16px;line-height:0}
@media (max-width:900px){.lib-grid .flow .corner-tag{top:9px;right:9px}}

/* Compare picker: the search panel, one column of chat models */
.cmp-picker .search-in input::placeholder{color:var(--faint)}
.cmp-pick-r{color:var(--text)}
.cmp-pick-r:disabled{cursor:default}
.cmp-pick-r:disabled:hover{background:none}
.cmp-pick-r.off .tile-i{opacity:.5}
.cmp-pick-r.off .rn{color:var(--muted)}
.cmp-added{flex-shrink:0;font-style:normal;font-size:12px;color:var(--muted);padding-right:6px}

/* round 29: code colors (css/b2-chat.css .hljs-*), the same in both skins. Dark is ChatGPT's set; light is the same
   hues, deep enough to read on white. */
:root{--code-kw:#2e95d3;--code-str:#00a67d;--code-num:#df3079;--code-title:#e9950c;--code-com:rgba(255,255,255,.5)}
:root[data-theme="light"]{--code-kw:#0a6ebd;--code-str:#00805f;--code-num:#c41a63;--code-title:#a35a00;--code-com:rgba(21,24,28,.52)}
/* round 29: the Sources cards take Clinical's outline language, like .g-src above */
/* round 29: the account menu's This session label reads like This week in Clinical */
:root:root .credits-ses>span:first-child{text-transform:none;letter-spacing:0;font-weight:500;color:var(--muted);font-size:12px}

/* ── Mobbin layer ── */
/* TSD x Mobbin. Layered over Clinical (themes.css). Style only: colors, type tracking, radii, borders, shadows.
   Foundations from mobbin.com live CSS (2026-11-15): a zero-saturation ramp (#FFFFFF to #141414), surfaces made of
   ink at 4 / 6 / 8 / 10 / 12 %, pill buttons, no box borders, and the only color comes from content (model logos,
   media, the brain). v2 (2026-11-15) applies Robert's picks from the samples page across every page:
   1 pill buttons, 2 three tag roles, 3 filled inputs, 4 floating composer, 5 divided model rows, 6 full-page login,
   7 leftovers (red, double outlines, tracked uppercase labels, green dots). The one layout change is pick 6. */

/* ── 0. tokens ─────────────────────────────────────────────────────────────────────────────────────────── */
:root:root:root[data-theme="light"]{
  --bg:#FFFFFF;--elevated:#FFFFFF;--text:#141414;--muted:#707070;--faint:#878787;
  --line:rgba(20,20,20,.08);--line-soft:rgba(20,20,20,.05);--fill:rgba(20,20,20,.06);--fill-strong:rgba(20,20,20,.08);
  --invert-bg:#141414;--invert-text:#FFFFFF;--red:#141414;--red-dim:rgba(20,20,20,.06);--on-red:#FFFFFF;
  --brand:#141414;--card:#FFFFFF;--card-border:rgba(20,20,20,.08);--card-fill:rgba(20,20,20,.04);--card-fill-hover:rgba(20,20,20,.06);
  --shadow-card:none;--shadow-lift:0 0 0 .5px rgba(20,20,20,.10),0 8px 24px rgba(0,0,0,.10);--bar-bg:#FFFFFF;
  --chart:rgba(20,20,20,.14);--chart-hover:rgba(20,20,20,.6);--ok:#141414;--ok-dim:rgba(20,20,20,.06);--r-card:20px;--r-inset:12px;
  --data-weak:#141414;--data-good:#141414;
  --tag-fill:rgba(20,20,20,.08);--tag-line:rgba(20,20,20,.12);--in-fill:rgba(20,20,20,.06);--in-ring:#141414;--focus-ring:rgba(20,20,20,.2);
  --soft-float:0 0 0 .5px rgba(20,20,20,.10),0 8px 24px rgba(0,0,0,.06);--auth-card:#FFFFFF;
  --code-kw:#141414;--code-str:#707070;--code-num:#141414;--code-title:#141414;--code-com:#878787}
:root:root:root[data-theme="dark"]{
  --bg:#000000;--elevated:#141414;--text:#FFFFFF;--muted:#ADADAD;--faint:#878787;
  --line:rgba(255,255,255,.10);--line-soft:rgba(255,255,255,.06);--fill:rgba(255,255,255,.06);--fill-strong:rgba(255,255,255,.10);
  --invert-bg:#FFFFFF;--invert-text:#141414;--red:#FFFFFF;--red-dim:rgba(255,255,255,.08);--on-red:#141414;
  --brand:#FFFFFF;--card:transparent;--card-border:rgba(255,255,255,.10);--card-fill:rgba(255,255,255,.06);--card-fill-hover:rgba(255,255,255,.09);
  --shadow-card:none;--shadow-lift:0 0 0 .5px rgba(255,255,255,.16),0 8px 24px rgba(0,0,0,.6);--bar-bg:#000000;
  --chart:rgba(255,255,255,.2);--chart-hover:rgba(255,255,255,.7);--ok:#FFFFFF;--ok-dim:rgba(255,255,255,.08);--r-card:20px;--r-inset:12px;
  --data-weak:#FFFFFF;--data-good:#FFFFFF;
  --tag-fill:rgba(255,255,255,.10);--tag-line:rgba(255,255,255,.16);--in-fill:rgba(255,255,255,.08);--in-ring:#FFFFFF;--focus-ring:rgba(255,255,255,.24);
  --soft-float:none;--auth-card:rgba(255,255,255,.04);
  --code-kw:#FFFFFF;--code-str:#ADADAD;--code-num:#FFFFFF;--code-title:#FFFFFF;--code-com:#878787}
/* surfaces that stay dark in both modes (captions on pictures, the terminal) keep white-on-black values */
:root:root:root :is(.term,.gc-bar,.gc-foot,.gc-right,.gc-idle,.promo,.flow-cap,.info-fig,.skills-hero,.wfhero,.auth-cap,.auth-art,.mas-cap,.state,.feat-media.tint){
  --text:#FFFFFF;--muted:#ADADAD;--faint:#878787;--red:#FFFFFF;--line:rgba(255,255,255,.16);--fill:rgba(255,255,255,.08);--fill-strong:rgba(255,255,255,.12)}

/* type: Mobbin's tight display tracking, plain body */
:root[data-tsd="mobbin"] :is(h1,h2,.hero h1,h1.big,h2.big,.feed h2){letter-spacing:-.035em}
:root[data-tsd="mobbin"] .hero h1{letter-spacing:-.045em}

/* the mark: the transparent brain plus a plain wordmark (replaces the red-bar wordmark and the mascot) */
:root:root:root[data-theme="dark"] .mark::before{background-image:url("/ghost/tsd/brain-transparent-128.png")}
:root:root:root .side .mark::after{content:none}
:root:root:root .bf-mark,:root:root:root[data-theme="dark"] .bf-mark{content:url("/ghost/tsd/brain-transparent-128.png");width:44px;height:44px}
/* the old mascot anywhere it still appears (login popup, empty chat, menus) becomes the brain */
:root:root:root img[src*="mascot"]{content:url("/ghost/tsd/brain-transparent-128.png");object-fit:contain}

/* nav: plain words, the current page gets a quiet 6% pill, not a black chip */
:root:root:root .bar{border-bottom-color:transparent}
:root:root:root .bar .tab{font-size:15px;color:var(--muted)}
:root:root:root .bar .tab:hover{color:var(--text)}
:root:root:root .tab[aria-current="page"]{background:var(--fill);color:var(--text)}
:root:root:root[data-theme="dark"] .bar .tab:not([aria-current="page"]){color:var(--muted)}
:root:root:root .bar .avatar{border-color:transparent;background:var(--fill)}
:root:root:root .avatar{border-color:transparent}

/* ── 1. buttons: the pill pair. Primary = ink pill (white in dark); secondary = 6% pill, never a ring ───── */
:root:root:root :is(.btn-red,.btn-white,.pill-red,.launch,.pick-cta,.auth-go,.ck-cta){background:var(--invert-bg)!important;color:var(--invert-text)!important;border:0;box-shadow:none;filter:none}
:root:root:root :is(.btn-red,.btn-white,.btn-try,.pill-red,.launch,.pick-cta,.auth-go,.ck-cta):hover{opacity:.88}
:root:root:root .launch.soon{background:var(--fill)!important;color:var(--muted)!important}
/* the danger button keeps its red word, on the same gray pill (law: destructive = secondary pill, danger text) */
/* a picked option (finder chips, Compare's model, segmented choices) is the ink pill, never an ink ring */
:root:root:root :is(.finder .chip.sel,.cd-row .chip.sel,.chip[aria-selected="true"],.b4-opt.on,.b4-chip.on,.mp-cat.on,.lg-docs a.on,.pchip.on){background:var(--invert-bg);color:var(--invert-text);border-color:transparent;box-shadow:none}
:root:root:root :is(.cx-card.on,.cx-model.x2.on,.ap-skin.on,.b1-tile.on){background:var(--fill-strong);border-color:transparent;box-shadow:none}
:root:root:root .chip{border-color:transparent;background:var(--fill)}
:root:root:root :is(.b1-danger,.ck-err,.ck-pbad,.auth-err,.b4-err,.sb-menu .sb-del b,.sb-menu .sb-del .i),:root:root:root :is(.btn-quiet,.quiet).b1-danger{color:var(--danger)}
/* on the popular plan (an ink block) the primary flips to the page color */
:root:root:root .plan.hot .plan-head :is(.btn-red,.btn-white,.pill-red){background:var(--bg)!important;color:var(--text)!important}
/* "Your plan" / "Included": a quiet status pill, not a dashed box */
:root:root:root .b1-here{border-color:transparent;border-radius:999px;background:var(--fill);color:var(--muted)}
:root:root:root .plan.hot .plan-head .b1-here{border-color:transparent;background:rgba(255,255,255,.12);color:inherit}
:root:root:root[data-theme="dark"] .plan.hot .plan-head .b1-here{background:rgba(20,20,20,.08)}
/* underline tabs (Projects, Skills) become pills: the current tab is the 6% pill, no underline */
:root:root:root .tabs-line{border-bottom-color:transparent;gap:4px}
:root:root:root .tabs-line button{padding:0 14px;border-radius:999px;border-bottom-color:transparent;margin-bottom:0;height:36px}
:root:root:root .tabs-line button.on{background:var(--fill);color:var(--text);border-bottom-color:transparent}
:root:root:root .tabs-line button:not(.on):hover{color:var(--text)}
/* the avatar edit button: an ink pill with no ring */
:root:root:root .b1-av-btn{border-color:transparent}
:root:root:root .b1-av-btn:hover{background:var(--invert-bg);color:var(--invert-text);opacity:.88}

/* ── 2. tags and badges: three styles, each with one job ───────────────────────────────────────────────
   GRAY FILL  (8% fill, 12px/500, sentence case): meta chips. Modality, parameter size, category, plan, Pro, Paid.
              .tag  .tag.pro  .tag.paid  .kind  .pc-chip  .b4-plan  .flow-chips span (off a picture)
   OUTLINE    (transparent, inset 1px ink 12%): status words. Coming soon, Soon, a run's stage.
              .tag.soon  .soon-band (top nav, under Workflows)  .soon-pill (Trending toggle, tiles)  .b4-pill  .b4-stage
   TEXT ONLY  (no chip, 13px muted): counts. Likes, N online.
              .live-n  .likes-n   ...except on a picture (.corner-live, .flow / .feat corners), where they keep a
              readable white glass chip, like every other tag that sits on media.
   INVERSE    (ink fill): Trending or New, at most ONE per view. .tag.trending .tag.top .tag.new; any later
              sibling that carries one more drops to the gray fill. */
:root:root:root :is(.tag,.tag.pro,.tag.paid,.tag.cx-on,.kind,.pc-chip,.b4-plan){display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:500;line-height:20px;padding:0 8px;border:0;border-radius:999px;text-transform:none;letter-spacing:0;background:var(--tag-fill);color:var(--text);box-shadow:none}
:root:root:root :is(.tag.soon,.preset-text .tag.soon,.feed-soon h2 .tag.soon,.bf-col .tag.soon,.b4-pill,.b4-stage){background:transparent;color:var(--muted);border:0;box-shadow:inset 0 0 0 1px var(--tag-line);text-transform:none;letter-spacing:0;font-size:12px;font-weight:500}
:root:root:root :is(.tag.trending,.tag.top,.tag.new){background:var(--invert-bg);color:var(--invert-text);box-shadow:none;text-transform:none;letter-spacing:0}
:root:root:root :has(:is(.tag.trending,.tag.top,.tag.new)) ~ * :is(.tag.trending,.tag.top,.tag.new),
:root:root:root :is(.tag.trending,.tag.top,.tag.new) ~ :is(.tag.trending,.tag.top,.tag.new){background:var(--tag-fill);color:var(--text)}
/* the popular plan card is an ink block, so its tag flips to the page color */
:root:root:root .plan.hot .plan-head .tag.top{background:var(--bg);color:var(--text)}
:root:root:root .plans.compact .plan.hot .plan-head .tag.top{background:var(--invert-bg);color:var(--invert-text)}
/* the tiny ink "COMING SOON" badges become the outline status chip */
:root:root:root .tab.tab-soon{color:var(--muted)}
:root:root:root .tab-soon .soon-band{top:calc(100% - 9px);font-size:12px;font-weight:500;line-height:18px;letter-spacing:0;text-transform:none;padding:0 8px;border-radius:999px;background:var(--bg);color:var(--muted);box-shadow:inset 0 0 0 1px var(--tag-line)}
:root:root:root .soon-pill{font-size:12px;font-weight:500;line-height:18px;letter-spacing:0;text-transform:none;padding:0 8px;border-radius:999px;background:transparent;color:var(--muted);box-shadow:inset 0 0 0 1px var(--tag-line)}
:root:root:root .tg-w{color:inherit}
:root:root:root .tg-w .soon-pill{top:calc(100% + 2px);font-size:12px;line-height:18px;padding:0 8px;background:var(--bg)}
/* counts are text: no chip, no green dot */
:root:root:root :is(.live-n,.likes-n){font-size:13px;color:var(--muted);background:none;box-shadow:none}
:root:root:root :is(.live-n b,.likes-n b){color:var(--text)}
:root:root:root .live-n i,:root:root:root .mp-menu .mp-row.mp-mrow .live-n i{background:var(--text);box-shadow:none}
/* tags and counts that sit on a picture: one light glass chip so they read on any image */
:root:root:root :is(.flow .corner-tag .tag,.feat .corner-tag .tag,.flow .corner-tag .tag.soon,.feat .corner-tag .tag.soon,.flow .tag,.feat-media .tag,.card-media .tag,.pcard-media .tag,.corner-live .live-n,.flow .likes-n,.feat .likes-n){background:rgba(255,255,255,.92);color:#141414;box-shadow:none;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:999px}
:root:root:root :is(.corner-live .live-n,.flow .likes-n,.feat .likes-n) b{color:#141414}
:root:root:root .corner-live .live-n i{background:#141414}
:root:root:root .flow-cap .u-dots i{box-shadow:inset 0 0 0 1px rgba(255,255,255,.42)}
:root:root:root .flow-cap .u-dots i.on{background:rgba(255,255,255,.9)}

/* labels: sentence case, 13px, muted. No uppercase, no tracking, anywhere */
:root:root:root :is(.acct-nav>.small,.credits-top>span:first-child,.card-top>.soft:first-child,.b1-axis,.search .label,.credits-ses>span:first-child,.or,.sb-day,.mp-label,.agents .mp-label,.b4-eyebrow,#auth-form .auth-lab,.ck-pform input){text-transform:none;letter-spacing:0;font-size:13px;font-weight:400;color:var(--muted)}
:root:root:root .ck-pform input{color:var(--text)}

/* ── 3. inputs: filled only, never outlined. 6% ink (white 8% in dark), radius 12, 15px, focus = 1.5px ink ring */
:root:root:root :where(.modal input,.pop-body input,.pop-body textarea,.pop-body select,.b4-form input,.b4-form textarea,.b4-fb-new input,.b4-namepop input,.b1-wl-field input,.ck-pform input,.gx-field input,.gx-addr input,.m-field input,.m-field textarea,main input,main textarea,main select):focus{box-shadow:inset 0 0 0 2px var(--focus-ring)!important;border-color:transparent!important}
:root:root:root #auth-form input{background:var(--in-fill);border:1px solid transparent;border-radius:12px;font-size:15px;color:var(--text);box-shadow:none;outline:0}
:root:root:root #auth-form input:focus{border-color:transparent;box-shadow:inset 0 0 0 2px var(--focus-ring)}
:root:root:root :is(.ck-pform input[aria-invalid=true],.m-field.bad input,.m-field.bad textarea){box-shadow:inset 0 0 0 1.5px var(--in-ring)!important}
/* search wells and other field wrappers: the wrapper is the filled field, the input inside stays bare */
:root:root:root :is(.search-in,.sb-search,.preset-search,.mp-q,.cx-q,.b1-at,.ck-custom,.b4-url,.b4-linkrow){background:var(--in-fill)!important;border:1px solid transparent!important;border-radius:12px;box-shadow:none}
:root:root:root :is(.search-in,.sb-search,.preset-search,.mp-q,.cx-q,.b1-at,.ck-custom,.b4-url,.b4-linkrow):focus-within{box-shadow:inset 0 0 0 2px var(--focus-ring)}
:root:root:root :is(.search-in,.preset-search,.mp-q,.cx-q,.b1-at,.ck-custom,.b4-url) input{font-size:15px}
:root:root:root :is(.search-in,.sb-search,.preset-search,.mp-q,.cx-q,.b1-at,.ck-custom,.b4-url,.b4-linkrow) input{background:transparent!important;box-shadow:none!important;border:0!important}
:root:root:root :is(.search-in,.sb-search,.preset-search,.mp-q,.cx-q,.b1-at,.ck-custom,.b4-url,.b4-linkrow) input:focus{box-shadow:none!important}
:root:root:root :is(input,textarea)::placeholder{color:var(--faint)}
:root:root:root input[type="range"],:root:root:root input[type="checkbox"]{accent-color:var(--text)}

/* ── 4. composer: a floating card. Light = white + soft float; dark = white 6% with no ring. No plus button ── */
/* dark: the 6% white is painted as an inset layer on black, so a floating composer stays opaque over the thread */
/* the model pill and the Chat / Agents pills inside: 6% gray pills, no rings */

/* ── 5. model and chat rows: the divided list. No box; 1px ink 8% hairline between rows in a list;
   logo tile radius 12 with the full-color maker logo; name 14-15/500, meta 13 muted; hover 6% fill, selected 8% ── */
:root:root:root :is(.row,.mm-row,.mp-row,.mp-menu .mp-row.mp-mrow,.mp-pop .row,.sb-chat-row,.sb-proj-row,.menu-row,.cmp-pick-r,.cx-mrow){border-radius:12px;box-shadow:none;border-color:transparent;background:none}
:root:root:root :is(.row,.mm-row,.mp-row[data-m],.mp-menu .mp-row.mp-mrow,.mp-pop .row,.sb-chat-row,.sb-proj-row,.menu-row,.cmp-pick-r,.cx-mrow:not(:disabled),.sb-row,button.sb-proj):hover,
:root:root:root :is(.mp-menu .mp-row.mp-mrow.hot,.mp-pop .mp-mrow.hot){background:var(--fill);box-shadow:none}
:root:root:root :is(.mp-row[data-m].on,.mp-menu .mp-row.mp-mrow.on,.mp-pop .mp-mrow.on,.sb-chat-row.on,.sb-proj-row.on,.sb-proj-row.open>.sb-proj,.mm-row.on,.row.on),
:root:root:root[data-theme="dark"] :is(.sb-chat-row.on,.sb-proj-row.on){background:var(--fill-strong);border-color:transparent;box-shadow:none}
:root:root:root .mp-row[data-m].on i,:root:root:root .gx-mw-menu .mp-row.on i{background:var(--text)}
/* the hairline: drawn between neighbours, inset from the hover fill, and hidden next to a hovered row */
:root:root:root :is(.row,.mm-row,.mp-menu .mp-row.mp-mrow,.cmp-pick-r,.cx-mrow) + :is(.row,.mm-row,.mp-menu .mp-row.mp-mrow,.cmp-pick-r,.cx-mrow){position:relative}
:root:root:root :is(.row,.mm-row,.mp-menu .mp-row.mp-mrow,.cmp-pick-r,.cx-mrow) + :is(.row,.mm-row,.mp-menu .mp-row.mp-mrow,.cmp-pick-r,.cx-mrow)::before{content:"";position:absolute;left:8px;right:8px;top:-1px;height:1px;background:var(--line);pointer-events:none}
:root:root:root .two>:is(.row):nth-child(2)::before{content:none!important}
:root:root:root :is(.row,.mm-row,.mp-mrow,.cmp-pick-r,.cx-mrow):is(:hover,.on,.hot)::before,
:root:root:root :is(.row,.mm-row,.mp-mrow,.cmp-pick-r,.cx-mrow):is(:hover,.on,.hot) + *::before{opacity:0}
/* logo tiles: radius 12, no ring, full-color maker logo */
:root:root:root :is(.tile-i,.mm-ic,.mp-mrow .tile-i,.mp-pop .row .tile-i,.cx-lg,.m-logo,.hero-badge,.sb-ico.big){border-color:transparent;box-shadow:none;border-radius:12px}
:root:root:root :is(.tile-i,.mm-ic) :is(.mk-lg,img){border-radius:12px}
:root:root:root .m-logo{border-radius:16px}
:root:root:root .cx-ml{border-radius:8px}
/* type in rows */
:root:root:root :is(.row-name,.mm-name,.mp-row b,.mp-mrow .rn){font-size:14px;font-weight:500}
:root:root:root :is(.row-line,.mm-d,.mp-row>span:not(.row-text),.menu-row .end){font-size:13px;color:var(--muted)}
:root:root:root .mp-menu .mp-row.mp-mrow>span{font-size:inherit;color:var(--text)}

/* the model logos and media ARE the color: show the full-color maker logo, not Clinical's mono glyph */
:root:root:root img:has(+ .mk-mono){display:block}
:root:root:root .mk-mono{display:none!important}
:root:root:root img[src*="/brand/makers/"]{filter:none!important}
:root:root:root :is(.flow,.feat-media,.promo,.preset-media,.card-media,.pcard-media){border-radius:16px}

/* ── boxes: one quiet fill, never a ring; nothing nests three deep. Floating panels are the only things that lift */
:root:root:root :is(.tile,.starters button,.wf-m,.trio-i):hover{background:var(--card-fill-hover);box-shadow:none}
:root:root:root :is(.panel,.search,.mp-menu,.modal,.pop-panel,.auth-pop,.tour-card,.gx-win){border-color:transparent;box-shadow:var(--shadow-lift);border-radius:20px}
:root:root:root[data-theme="dark"] :is(.panel,.search,.mp-menu,.modal,.pop-panel,.auth-pop,.tour-card,.gx-win){background:#141414;box-shadow:var(--shadow-lift)}
:root:root:root[data-theme="dark"] :is(.credits,.search-in,.pop-card){border-color:transparent}
:root:root:root[data-theme="dark"] .chips{background:transparent}
/* every in-page box that still drew a hairline becomes a fill (or nothing, when it already sits in a fill) */
:root:root:root .stat-card{background:none}
/* the model page's settings well and Compare button: no ring */
:root:root:root .m-set{border-color:transparent}
:root:root:root .m-set:not(:last-child){border-bottom-color:var(--line)}
/* boxes inside boxes: a card inside a card or panel loses its own fill, so nothing reads three levels deep */
:root:root:root :is(.card,.card2,.tile,.pop-card,.trio-i) :is(.card,.card2,.pop-card,.stat-card){background:none}
:root:root:root[data-theme="dark"] :is(.side){border-right-color:var(--line-soft)}
:root:root:root[data-theme="dark"] .sb-search{background:var(--in-fill)}
:root:root:root .ap-skin.on{box-shadow:inset 0 0 0 1.5px var(--text)}
:root:root:root .plans.compact .plan{border-color:transparent}
:root:root:root .plans.compact .plan.hot{border-color:transparent;box-shadow:inset 0 0 0 1.5px var(--text)}

/* footer: white (or black) like the rest, no red */
:root:root:root .bigfoot-grid{border-top-color:transparent;background:var(--card-fill)}

/* ── 6. login and signup: Claude's full-page split (the one layout change, Robert 2026-11-15) ──────────────
   Left: the form column, centered, 420px, with the brain on top, a big heading, then a white card (radius 32,
   padding 32, the soft float) holding Google, Apple, "or", the email field and Continue. Right: the art as a
   rounded media panel. The card is a pseudo-element painted behind grid rows 3 to 6 of #auth-stage, and the two
   sign-in buttons are reordered above the email (Google first), so no markup changes. */
/* the parts of the auth form on every page (popup and full page) */
:root:root:root .auth-btn{border:0}
:root:root:root .or{font-size:13px;color:var(--muted)}
:root:root:root .or::before,:root:root:root .or::after{background:var(--line)}
:root:root:root :is(.auth-legal,.auth-switch,.auth-help,.auth-links){font-size:13px;color:var(--muted)}
:root:root:root #auth-form .auth-lab{padding-left:2px}
:root:root:root .auth-err{color:var(--danger)}
:root:root:root .auth-go:disabled{opacity:.32}
@media (max-width:760px){
}


/* ── tokens. These win over every older set (ghost.css, the folded Clinical and Mobbin layers below). ─────────── */
:root,:root:root:root[data-theme="light"]{
  color-scheme:light;
  --bg:#FFFFFF; --elevated:#FFFFFF; --text:#141414; --muted:#707070; --faint:#878787;
  --line:rgba(20,20,20,.08); --line-soft:rgba(20,20,20,.05);
  --fill:rgba(20,20,20,.06); --fill-strong:rgba(20,20,20,.10);
  --card-fill:transparent; --card-fill-hover:rgba(20,20,20,.04);
  --scrim:rgba(20,20,20,.35); --invert-bg:#141414; --invert-text:#FFFFFF;
  --live:#16A34A; --live-soft:rgba(22,163,74,.12);
  --like:#FF3B30;
  --danger:#D5062B; --danger-soft:rgba(213,6,43,.08);
  --float:0 0 0 .5px rgba(20,20,20,.10),0 8px 24px rgba(0,0,0,.10);
  --soft-float:0 0 0 .5px rgba(20,20,20,.10),0 8px 24px rgba(0,0,0,.06);
  /* retired accent: every old "Ghost red" use now reads as ink */
  --red:#141414; --red-dim:rgba(20,20,20,.06); --on-red:#FFFFFF; --brand:#141414;
  --ok:var(--live); --ok-dim:var(--live-soft);
  /* older names the app's CSS still reads */
  --card:transparent; --card-border:rgba(20,20,20,.08); --shadow-card:none; --shadow-lift:var(--float); --bar-bg:#FFFFFF;
  --chart:rgba(20,20,20,.14); --chart-hover:rgba(20,20,20,.6); --data-weak:#141414; --data-good:#141414;
  --tag-fill:rgba(20,20,20,.08); --tag-line:rgba(20,20,20,.12); --in-fill:rgba(20,20,20,.06); --in-ring:#141414;
  --auth-card:#FFFFFF; --stage-bg:#FFFFFF; --r-inset:12px;
  --code-kw:#141414; --code-str:#707070; --code-num:#141414; --code-title:#141414; --code-com:#878787;
  /* design-site aliases */
  --fg:#141414; --fg2:#707070; --fg3:#878787;
  --a6:rgba(20,20,20,.06); --a8:rgba(20,20,20,.08); --a10:rgba(20,20,20,.10); --a12:rgba(20,20,20,.12);
  --inv:#141414; --inv-fg:#FFFFFF; --elev:#FFFFFF;
  --r-sm:8px; --r-input:12px; --r-card:16px; --r-panel:20px; --r-shelf:32px; --r-pill:999px;
}
:root:root:root[data-theme="dark"]{
  color-scheme:dark;
  --bg:#000000; --elevated:#141414; --text:#FFFFFF; --muted:#ADADAD; --faint:#878787;
  --line:rgba(255,255,255,.10); --line-soft:rgba(255,255,255,.06);
  --fill:rgba(255,255,255,.06); --fill-strong:rgba(255,255,255,.10);
  --card-fill:rgba(255,255,255,.04); --card-fill-hover:rgba(255,255,255,.06);
  --scrim:rgba(0,0,0,.6); --invert-bg:#FFFFFF; --invert-text:#141414;
  --live:#22C55E; --live-soft:rgba(34,197,94,.14);
  --like:#FF453A;
  --danger:#FF5C72; --danger-soft:rgba(255,92,114,.12);
  --float:0 0 0 .5px rgba(255,255,255,.16),0 8px 24px rgba(0,0,0,.6);
  --soft-float:none;
  --red:#FFFFFF; --red-dim:rgba(255,255,255,.08); --on-red:#141414; --brand:#FFFFFF;
  --card:transparent; --card-border:rgba(255,255,255,.10); --shadow-card:none; --shadow-lift:var(--float); --bar-bg:#000000;
  --chart:rgba(255,255,255,.2); --chart-hover:rgba(255,255,255,.7); --data-weak:#FFFFFF; --data-good:#FFFFFF;
  --tag-fill:rgba(255,255,255,.10); --tag-line:rgba(255,255,255,.16); --in-fill:rgba(255,255,255,.08); --in-ring:#FFFFFF;
  --auth-card:rgba(255,255,255,.04); --stage-bg:#000000;
  --code-kw:#FFFFFF; --code-str:#ADADAD; --code-num:#FFFFFF; --code-title:#FFFFFF; --code-com:#878787;
  --fg:#FFFFFF; --fg2:#ADADAD; --fg3:#878787;
  --a6:rgba(255,255,255,.06); --a8:rgba(255,255,255,.08); --a10:rgba(255,255,255,.10); --a12:rgba(255,255,255,.12);
  --inv:#FFFFFF; --inv-fg:#141414; --elev:#141414;
}
:root{
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:20px; --sp-6:24px; --sp-8:32px; --sp-12:48px; --sp-16:64px; --sp-24:96px;
  --sans:"PP Neue Montreal",ui-sans-serif,system-ui,-apple-system,"Helvetica Neue",sans-serif;
  --font:var(--sans); --mono:ui-monospace,SFMono-Regular,Menlo,monospace;
}
html,body{background:var(--bg);color:var(--text);font-family:var(--sans)}
/* Robert phone QA (2026-11-19): a backstop so the page can never scroll sideways. overflow-x:clip (not hidden) does not
   create a scroll container, so position:sticky (the pinned composer on desktop) keeps working. The real fits are the
   element fixes (the composer pill shrink/ellipsize, long strings wrapping); this only catches anything that slips past. */
html,body{max-width:100%;overflow-x:clip}
/* the code-screen email is a long unbroken string in flowing text: wrap it so it never pushes the sheet past the viewport */
.auth-to{overflow-wrap:anywhere;word-break:break-word}

/* ── shared helpers ──────────────────────────────────────────────────────────────────────────────────────── */
/* type roles */
.t-display{font-size:clamp(44px,6vw,80px);font-weight:500;letter-spacing:-.045em;line-height:1.02}
.t-h1{font-size:44px;font-weight:500;letter-spacing:-.035em;line-height:1.08}
.t-h2{font-size:32px;font-weight:500;letter-spacing:-.03em;line-height:1.12}
.t-h3{font-size:24px;font-weight:500;letter-spacing:-.02em;line-height:1.2}
.t-h4{font-size:18px;font-weight:500;letter-spacing:-.01em;line-height:1.3}
.t-lead{font-size:20px;font-weight:400;line-height:1.45;color:var(--muted)}
.t-body{font-size:16px;font-weight:400;line-height:1.6}
.t-small{font-size:14px;font-weight:400;line-height:1.5}
.t-caption{font-size:13px;font-weight:400;line-height:1.4;color:var(--faint)}
.t-num{font-variant-numeric:tabular-nums}
.t-mono{font-family:var(--mono)}
.t-wordmark{font-weight:700;letter-spacing:-.02em}
@media (max-width:720px){.t-h1{font-size:34px}.t-h2{font-size:26px}}
/* icons: <svg class="i"><use href="#i-copy"/></svg>. One stroke, 1.5. Bare, never outlined. */
.i{width:20px;height:20px;flex:none;fill:none;stroke:none;color:currentColor;overflow:visible}
.i.sm{width:16px;height:16px}.i.lg{width:24px;height:24px}
/* live status: the ONE status hue */
.live-dot{width:7px;height:7px;border-radius:999px;background:var(--live);display:inline-block;flex:none;box-shadow:0 0 0 3px var(--live-soft)}
/* surfaces v2: containers are transparent, outlined or elevated; gray fill is for CONTROLS only */
.surf-outline{background:transparent;box-shadow:inset 0 0 0 1px var(--line);border-radius:var(--r-panel)}
.surf-elev{background:var(--elevated);box-shadow:0 0 0 .5px var(--a12),0 8px 24px rgba(0,0,0,.06);border-radius:var(--r-panel)}
html[data-theme="dark"] .surf-elev{background:var(--a6);box-shadow:inset 0 0 0 1px var(--line)}
.surf-float{background:var(--elevated);box-shadow:var(--float);border-radius:var(--r-panel)}
/* hero logo stack (round 6b): 3 white maker tiles peeking left behind the brain, inline in a headline.
   <span class="hero-stack"><span class="hs-t"><img src="/ghost/brand/makers/qwen.webp" alt=""></span><span class="hs-t">…</span><span class="hs-t">…</span><span class="hs-b"><img src="/ghost/tsd/brain-transparent-128.png" alt=""></span></span> */
.hero-stack{display:inline-flex;align-items:center;vertical-align:middle;margin:0 .16em;height:.84em;position:relative;top:-.06em}
.hero-stack .hs-t,.hero-stack .hs-b{width:.8em;height:.8em;border-radius:20px;background:#FFFFFF;box-shadow:0 0 0 1px rgba(20,20,20,.08),0 4px 12px rgba(0,0,0,.08);display:grid;place-items:center;overflow:hidden;position:relative;flex:none}
.hero-stack .hs-t{margin-right:-.36em}
.hero-stack .hs-t:nth-child(1){z-index:1;transform:scale(.8)}
.hero-stack .hs-t:nth-child(2){z-index:2;transform:scale(.88)}
.hero-stack .hs-t:nth-child(3){z-index:3;transform:scale(.95)}
.hero-stack .hs-b{z-index:4;width:.84em;height:.84em}
.hero-stack .hs-t img{width:70%;height:70%;object-fit:contain}
.hero-stack .hs-b img{width:84%;height:84%;object-fit:contain}
/* turning stack (G.heroSpin): every tile is .hs-t, the 4th is the front; the brain keeps its larger art */
.hero-stack .hs-t:nth-child(4){z-index:4;transform:none;width:.84em;height:.84em;margin-right:0}
.hero-stack .hs-t.is-brain img{width:84%;height:84%}
html[data-theme="dark"] .hero-stack .hs-t,html[data-theme="dark"] .hero-stack .hs-b{box-shadow:0 0 0 1px rgba(255,255,255,.12),0 4px 12px rgba(0,0,0,.5)}
/* buttons (pills): L 48 / M 40 / S 32. Primary is ink, secondary is the quiet fill. */
.tsd-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 18px;border:0;border-radius:var(--r-pill);font:inherit;font-size:15px;font-weight:500;white-space:nowrap;background:var(--invert-bg);color:var(--invert-text);cursor:pointer;transition:transform .12s ease-out,background-color .12s ease-out,opacity .12s ease-out;text-decoration:none}
.tsd-btn:hover{opacity:.88}
.tsd-btn:active{transform:scale(.97)}
.tsd-btn.sec{background:var(--fill);color:var(--text)}
.tsd-btn.sec:hover{background:var(--fill-strong);opacity:1}
.tsd-btn.ghost{background:transparent;color:var(--text)}
.tsd-btn.ghost:hover{background:var(--fill);opacity:1}
.tsd-btn.danger{background:var(--danger);color:#FFFFFF}
.tsd-btn.lg{height:48px;padding:0 24px;font-size:16px}
.tsd-btn.sm{height:32px;padding:0 14px;font-size:14px}
.tsd-btn .i{width:18px;height:18px}
/* chips: three roles. default = filter (quiet fill), .on = selected (ink), .line = status/label (outline) */
.tsd-chip{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 12px;border-radius:var(--r-pill);border:0;background:var(--fill);color:var(--muted);font:inherit;font-size:13px;font-weight:500;white-space:nowrap}
.tsd-chip.on{background:var(--invert-bg);color:var(--invert-text)}
.tsd-chip.line{background:transparent;box-shadow:inset 0 0 0 1px var(--a12);color:var(--muted)}
.tsd-chip.xs{height:20px;padding:0 8px;font-size:12px}
/* the outline "Soon" chip next to a nav or tab label: 8px from the label, 12px text */
.soon-chip{display:inline-flex;align-items:center;height:20px;padding:0 7px;margin-left:8px;border-radius:var(--r-pill);box-shadow:inset 0 0 0 1px var(--a12);color:var(--muted);font-size:12px;font-weight:500;letter-spacing:0;line-height:1;white-space:nowrap}
/* inputs: filled */
.tsd-input{width:100%;height:48px;border:0;border-radius:var(--r-input);padding:0 16px;font:inherit;font-size:15px;background:var(--fill);color:var(--text);outline:0}
.tsd-input::placeholder{color:var(--faint)}
.tsd-input:focus{box-shadow:0 0 0 2px var(--focus-ring)}
/* skeleton loaders */
.skel{position:relative;overflow:hidden;background:var(--fill);border-radius:var(--r-sm);color:transparent!important}
.skel::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,var(--a6),transparent);animation:skel 1.3s ease-in-out infinite}
@keyframes skel{to{transform:translateX(100%)}}
@media (prefers-reduced-motion:reduce){.skel::after{animation:none}}
.skel-row{display:flex;align-items:center;gap:12px;padding:8px 6px}
.skel-row .skel.tile{width:44px;height:44px;border-radius:var(--r-input);flex:none}
.skel-row .skel.l1{height:12px;width:46%}
.skel-row .skel.l2{height:10px;width:70%;margin-top:8px}
.skel-card{aspect-ratio:16/10;border-radius:var(--r-card)}
/* logo tile for a maker (white app tile in both modes) */
.logo-tile{width:36px;height:36px;border-radius:12px;background:#FFFFFF;box-shadow:0 0 0 1px rgba(20,20,20,.12);display:grid;place-items:center;overflow:hidden;flex:none}
.logo-tile img{width:88%;height:88%;object-fit:contain;border-radius:8px}

/* ── content layer: answers, code, numbers, charts, model identity. Scoped under .tsd-c so it never collides
   with the app's own .code .bars .stat .chip .row classes. Put class="tsd-c" on the container that holds them. */
/* tsd-lint: documents-values (VS Code Light+/Dark+ syntax theme) */
:root,html:root[data-theme="light"]{--syn-fg:#000000;--syn-k:#0000FF;--syn-kc:#AF00DB;--syn-s:#A31515;--syn-nu:#098658;--syn-f:#795E26;--syn-ty:#267F99;--syn-v:#001080;--syn-c:#008000;--syn-p:#000000;--syn-add:#9CCC2C40;--syn-del:#FF000033;--syn-add-fg:#098658;--syn-del-fg:#A31515}
html:root[data-theme="dark"]{--syn-fg:#D4D4D4;--syn-k:#569CD6;--syn-kc:#C586C0;--syn-s:#CE9178;--syn-nu:#B5CEA8;--syn-f:#DCDCAA;--syn-ty:#4EC9B0;--syn-v:#9CDCFE;--syn-c:#6A9955;--syn-p:#D4D4D4;--syn-add:#9BB95533;--syn-del:#FF000033;--syn-add-fg:#B5CEA8;--syn-del-fg:#CE9178}
.tsd-c .code.inv{--syn-fg:#D4D4D4;--syn-k:#569CD6;--syn-kc:#C586C0;--syn-s:#CE9178;--syn-nu:#B5CEA8;--syn-f:#DCDCAA;--syn-ty:#4EC9B0;--syn-v:#9CDCFE;--syn-c:#6A9955;--syn-p:#D4D4D4;--syn-add:#9BB95533;--syn-del:#FF000033;--syn-add-fg:#B5CEA8;--syn-del-fg:#CE9178}
/* Ghost code standard: the VS Code Default Light+ and Dark+ token colors. Light+ on light grounds, Dark+ on dark
   grounds, and the inverse block is always Dark+. These are the only hues in the system outside content and live. */

/* TSD content layer: how answers, code, numbers and model identity look. Same everywhere, for every model.
   Uses the tokens in /tsd.css (--bg --fg --fg2 --fg3 --a6 --a8 --a10 --a12 --line --inv --inv-fg --elev --float). */

/* ── chat messages ───────────────────────────────────────────────────────── */
.tsd-c .thread{display:flex;flex-direction:column;gap:28px;max-width:760px;margin:0 auto}
.tsd-c .msg-user{align-self:flex-end;max-width:78%;background:var(--a6);border-radius:20px;padding:12px 16px;font-size:16px;line-height:1.5}
.tsd-c .msg-ai{font-size:16px;line-height:1.65;color:var(--fg)}
.tsd-c .msg-ai > * + *{margin-top:14px}
.tsd-c .msg-ai h3{font-size:18px;font-weight:500;letter-spacing:-.01em;margin-top:22px}
.tsd-c .msg-ai ul,.tsd-c .msg-ai ol{padding-left:22px}
.tsd-c .msg-ai li + li{margin-top:6px}
.tsd-c .msg-ai strong{font-weight:500}
.tsd-c .msg-ai a{color:var(--fg);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--a12)}
.tsd-c .msg-ai blockquote{padding-left:14px;box-shadow:inset 2px 0 0 var(--a12);color:var(--fg2)}
.tsd-c .msg-ai code:not(pre code){font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.88em;background:var(--a6);border-radius:8px;padding:2px 6px}
.tsd-c .msg-ai table{width:100%;border-collapse:collapse;font-size:14px}
.tsd-c .msg-ai th{text-align:left;font-weight:500;color:var(--fg2);padding:8px 10px;border-bottom:1px solid var(--line)}
.tsd-c .msg-ai td{padding:9px 10px;border-bottom:1px solid var(--line)}
.tsd-c .msg-meta{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--fg3)}
.tsd-c .msg-meta img{width:20px;height:20px;border-radius:0;object-fit:contain}
.tsd-c .msg-actions{display:flex;gap:4px;margin-top:8px}
.tsd-c .msg-actions button{border:0;background:transparent;color:var(--fg3);border-radius:999px;padding:6px 10px;font:inherit;font-size:13px;cursor:pointer}
.tsd-c .msg-actions button:hover{background:var(--a6);color:var(--fg)}
.tsd-c .caret{display:inline-block;width:8px;height:1.1em;background:var(--fg);vertical-align:-.15em;border-radius:999px;animation:tsd-blink 1s steps(1) infinite}
@keyframes tsd-blink{50%{opacity:0}}
@media (prefers-reduced-motion:reduce){.tsd-c .caret{animation:none}}

/* thinking / tool steps */
.tsd-c .steps{display:flex;flex-direction:column;gap:2px;font-size:14px;color:var(--fg2)}
.tsd-c .steps .st{display:flex;align-items:center;gap:10px;padding:6px 0}
.tsd-c .steps .dot{width:6px;height:6px;border-radius:50%;background:var(--fg3);flex:none}
.tsd-c .steps .st.done .dot{background:var(--fg)}
.tsd-c .steps .st.run .dot{background:var(--fg);animation:tsd-blink 1s steps(1) infinite}

/* sources */
.tsd-c .sources{display:flex;gap:8px;flex-wrap:wrap}
.tsd-c .src{display:inline-flex;align-items:center;gap:8px;background:var(--a6);border-radius:999px;padding:6px 12px 6px 6px;font-size:13px;text-decoration:none;color:var(--fg)}
.tsd-c .src i{width:20px;height:20px;border-radius:50%;background:var(--a10);font-style:normal;font-size:12px;display:grid;place-items:center;color:var(--fg2)}

/* ── code ────────────────────────────────────────────────────────────────── */
.tsd-c .code{background:var(--a6);border-radius:16px;overflow:hidden;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.tsd-c .code-h{display:flex;align-items:center;justify-content:space-between;padding:8px 8px 0 16px;font-family:var(--font);font-size:12px;color:var(--fg3)}
.tsd-c .code-h button{border:0;background:transparent;color:var(--fg2);font:inherit;font-size:12px;border-radius:999px;padding:5px 10px;cursor:pointer}
.tsd-c .code-h button:hover{background:var(--a8);color:var(--fg)}
.tsd-c .code pre{margin:0;padding:12px 16px 16px;font-size:13px;line-height:1.65;overflow-x:auto;color:var(--fg)}
/* syntax (round 5): VS Code Light+/Dark+, tokens defined at the top of this file. Regular weight, no italics. */
.tsd-c .code pre{color:var(--syn-fg)}
.tsd-c .code .k{color:var(--syn-k)}
.tsd-c .code .kc{color:var(--syn-kc)}
.tsd-c .code .s{color:var(--syn-s)}
.tsd-c .code .n{color:var(--syn-fg)}
.tsd-c .code .v{color:var(--syn-v)}
.tsd-c .code .ty{color:var(--syn-ty)}
.tsd-c .code .nu{color:var(--syn-nu)}
.tsd-c .code .f{color:var(--syn-f)}
.tsd-c .code .c{color:var(--syn-c);font-style:normal}
.tsd-c .code .p{color:var(--syn-p)}
/* diff lines */
.tsd-c .code .add{background:var(--syn-add);display:inline-block;width:100%}
.tsd-c .code .del{background:var(--syn-del);display:inline-block;width:100%}
.tsd-c .code .add .sg{color:var(--syn-add-fg)}.tsd-c .code .del .sg{color:var(--syn-del-fg)}

/* ── numbers and charts ──────────────────────────────────────────────────── */
.tsd-c .stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.tsd-c .stat{background:transparent;box-shadow:inset 0 0 0 1px var(--line);border-radius:16px;padding:14px 16px}
.tsd-c .stat .l{font-size:13px;color:var(--fg3)}
.tsd-c .stat .v{font-size:24px;font-weight:500;letter-spacing:-.02em;margin-top:2px;display:flex;align-items:center;gap:8px;line-height:1.2}
.tsd-c .stat .d{font-size:12px;color:var(--fg2)}
.tsd-c .spark{width:100%;height:40px;display:block}
.tsd-c .spark path{fill:none;stroke:var(--fg);stroke-width:1.5}
.tsd-c .spark .area{fill:var(--a6);stroke:none}
.tsd-c .bars{display:flex;align-items:flex-end;gap:3px;height:80px}
.tsd-c .bars i{flex:1;background:var(--a12);border-radius:999px;min-height:4px}
.tsd-c .bars i.hi,.tsd-c .bars i:hover{background:var(--fg)}
.tsd-c .meter{height:6px;background:var(--a8);border-radius:999px;overflow:hidden}
.tsd-c .meter i{display:block;height:100%;background:var(--fg);border-radius:999px}
.tsd-c .dots5{display:inline-flex;gap:3px}.tsd-c .dots5 i{width:6px;height:6px;border-radius:50%;background:var(--a12)}.tsd-c .dots5 i.on{background:var(--fg)}
.tsd-c .facts{display:grid;grid-template-columns:1fr auto;font-size:14px}
.tsd-c .facts dt{color:var(--fg2);padding:9px 0;border-top:1px solid var(--line)}
.tsd-c .facts dd{margin:0;padding:9px 0;border-top:1px solid var(--line);text-align:right}

/* ── model identity (top left of a model page, picker preview, cards) ──── */
.tsd-c .model-head{display:flex;align-items:center;gap:14px}
.tsd-c .model-head .lg{width:44px;height:44px;aspect-ratio:auto;position:static;border-radius:12px;background:#FFFFFF;box-shadow:inset 0 0 0 1px rgba(20,20,20,.06);display:grid;place-items:center;overflow:hidden;flex:none}
.tsd-c .model-head .lg img{width:100%;height:100%;object-fit:cover}
.tsd-c .model-head h1,.tsd-c .model-head h2{font-size:24px;font-weight:500;letter-spacing:-.02em;line-height:1.2}
.tsd-c .model-head .by{font-size:14px;color:var(--fg2);margin-top:2px}
.tsd-c .logo-tile{width:36px;height:36px;border-radius:12px;background:#FFFFFF;box-shadow:inset 0 0 0 1px rgba(20,20,20,.06);display:grid;place-items:center;overflow:hidden;flex:none}
.tsd-c .logo-tile img{width:100%;height:100%;object-fit:cover}

/* ── additions (builder C, round 3): new classes only, nothing above renamed ── */
.tsd-c .caret.done{display:none}
.tsd-c .steps .st b{font-weight:500;color:var(--fg)}
.tsd-c .steps .st .num{margin-left:auto}
.tsd-c .code-h .lang{color:var(--fg2)}
.tsd-c .code .ln{color:var(--fg3);display:inline-block;width:2ch;margin-right:12px;text-align:right;user-select:none}
.tsd-c .code-more{display:flex;justify-content:center;padding:0 16px 14px;font-family:var(--font)}
.tsd-c .code-more button{border:0;background:var(--a8);color:var(--fg);font:inherit;font-size:13px;border-radius:999px;padding:6px 12px;cursor:pointer}
.tsd-c .math-i{font-style:italic;white-space:nowrap}
.tsd-c .math-b{display:block;text-align:center;font-size:18px;padding:12px 0;overflow-x:auto;white-space:nowrap}
.tsd-c .math-mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-style:normal}
.tsd-c .stat .dots5{margin-right:6px;vertical-align:1px}
.tsd-c .spark .end{fill:var(--fg);stroke:none}
.tsd-c .meter-row{display:flex;justify-content:space-between;align-items:baseline;font-size:13px;color:var(--fg2);margin-bottom:8px}
.tsd-c .meter-row b{font-weight:500;color:var(--fg)}
.tsd-c .bars-cap{display:flex;justify-content:space-between;font-size:12px;color:var(--fg3);margin-top:8px}
.tsd-c .model-head .chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.tsd-c .model-head .mark{width:48px;height:48px;flex:none;object-fit:contain}

/* ── round 4: icon actions, tables, inverse code, live, smooth charts, identity ── */
/* answer actions as icon buttons: 32px, quiet gray, label in aria-label and title */
.tsd-c .msg-actions .msg-ib{width:32px;height:32px;padding:0;display:inline-grid;place-items:center;border-radius:999px;color:var(--fg3)}
.tsd-c .msg-actions .msg-ib:hover,.tsd-c .msg-actions .msg-ib[aria-pressed="true"]{background:var(--a6);color:var(--fg)}
.tsd-c .msg-actions .msg-ib .i{width:16px;height:16px}
/* tables: a wrapper that scrolls sideways, numeric columns right aligned (proportional figures: the sans tabular digits read spaced out) */
.tsd-c .tbl{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
.tsd-c .tbl table{min-width:100%;width:max-content;border-collapse:collapse;font-size:14px}
.tsd-c .tbl.fit table{width:100%}
.tsd-c .tbl th{text-align:left;font-weight:500;color:var(--fg2);padding:8px 12px;border-bottom:1px solid var(--line);white-space:nowrap}
.tsd-c .tbl td{padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap;font-variant-numeric:normal}
.tsd-c .tbl th:first-child,.tsd-c .tbl td:first-child{padding-left:0}
.tsd-c .tbl .r,.tsd-c .msg-ai .r{text-align:right}
/* code: the second surface, an inverse block that is usable in light mode */
.tsd-c .code.inv{background:#141414;color:#FFFFFF;--fg:#FFFFFF;--fg2:#ADADAD;--fg3:#878787;--a8:rgba(255,255,255,.08);--a12:rgba(255,255,255,.12)}
html[data-theme="dark"] .tsd-c .code.inv{box-shadow:inset 0 0 0 1px rgba(255,255,255,.10)}
html[data-theme="light"] .tsd-c .code.inv{box-shadow:none}
.tsd-c .code-h .i{width:16px;height:16px}
.tsd-c .code-h button{display:inline-flex;align-items:center;gap:6px}
/* stat values: the unit sits small after the number */
.tsd-c .stat .v .u{font-size:14px;font-weight:400;color:var(--fg2);letter-spacing:0}
.tsd-c .stat .v .i{width:16px;height:16px;color:var(--fg2)}
/* smooth charts */
.tsd-c .curve{width:100%;display:block;overflow:visible}
.tsd-c .curve .ln{fill:none;stroke:var(--fg);stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round}
.tsd-c .curve .ar{fill:var(--a6);stroke:none}
.tsd-c .curve .hit{fill:transparent;cursor:default}
.tsd-c .curve .hit:focus{outline:none}
.tsd-c .curve .pt{fill:var(--fg);stroke:var(--bg);stroke-width:2}
.tsd-c .curve .gl{stroke:var(--fg);stroke-width:1;opacity:.25}
/* usage legend */
.tsd-c .u-legend{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:13px;color:var(--fg2)}
.tsd-c .u-legend span{display:inline-flex;align-items:center;gap:8px}
.tsd-c .u-head{display:flex;justify-content:flex-end;font-size:13px;color:var(--fg3);padding:0 0 6px}
/* identity: one-line hero name that ellipsizes */
.tsd-c .model-head .nm1{font-size:clamp(24px,3vw,32px);font-weight:500;letter-spacing:-.03em;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tsd-c .model-head .lg img[src$=".svg"]{width:60%;height:60%;object-fit:contain}
/* app-style logo tile: the hairline must read on a white ground, and the logo sits inset so a round logo
   reads as "inside the square" */
.tsd-c .model-head .lg,.tsd-c .logo-tile{background:#FFFFFF;box-shadow:0 0 0 1px rgba(20,20,20,.12)}
.tsd-c .model-head .lg img,.tsd-c .logo-tile img{width:88%;height:88%;object-fit:contain;border-radius:8px}
/* round 6: maker logos fill about 88% of the tile. Logos that ship with built-in padding are scaled so the mark reads
   the same size as Qwen's (zai ships its Z at a third of the canvas). */
.tsd-c .model-head .lg img[src*="/makers/zai."],.tsd-c .logo-tile img[src*="/makers/zai."]{transform:scale(2)}
.tsd-c .model-head .lg img[src*="/makers/google."],.tsd-c .logo-tile img[src*="/makers/google."],.tsd-c .model-head .lg img[src*="/makers/openai."],.tsd-c .logo-tile img[src*="/makers/openai."],.tsd-c .model-head .lg img[src*="/makers/xiaomi."],.tsd-c .logo-tile img[src*="/makers/xiaomi."]{transform:scale(1.12)}
.tsd-c .model-head .lg img[src*="/makers/meta."],.tsd-c .logo-tile img[src*="/makers/meta."]{transform:scale(1.18)}

/* ── round 5: dynamic tables. A renderer classifies each column, then each cell keeps its inline formatting. ── */
.tsd-c .tbl td.c-num,.tsd-c .tbl th.c-num{text-align:right;white-space:nowrap}
.tsd-c .tbl td.c-code,.tsd-c .tbl td.c-math,.tsd-c .tbl td.c-status,.tsd-c .tbl td.c-text{white-space:nowrap}
.tsd-c .tbl td.c-prose{white-space:normal;min-width:220px;max-width:300px;line-height:1.5;color:var(--fg2)}
.tsd-c .tbl th[scope="row"]{text-align:left;font-weight:500;color:var(--fg);padding:10px 12px 10px 0;border-bottom:1px solid var(--line);white-space:nowrap}
.tsd-c .tbl td,.tsd-c .tbl th[scope="row"]{vertical-align:baseline}
.tsd-c .tbl .cp{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.88em;background:var(--a6);border-radius:8px;padding:2px 6px;white-space:nowrap}
.tsd-c .tbl .mm{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.92em}
.tsd-c .tbl .chip{font-size:12px;vertical-align:1px}
.tsd-c .tbl a{color:var(--fg);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--a12)}
.tsd-c .tbl .nil{display:inline-block;width:10px;height:1px;background:var(--fg3);vertical-align:middle}
.tsd-c .tbl.c-tight td,.tsd-c .tbl.c-tight th{padding-top:8px;padding-bottom:8px}
/* ── round 5: identity. The tile is exactly the height of the name and maker block. ── */
.tsd-c .model-head .lg{width:48px;height:48px}
.tsd-c .model-head .mark{width:48px;height:48px}
.tsd-c .model-head h1,.tsd-c .model-head h2{line-height:28px}
.tsd-c .model-head .by{line-height:20px;margin-top:0}
.tsd-c .model-head.hero{align-items:flex-start;gap:16px}
.tsd-c .model-head.hero .lg,.tsd-c .model-head.hero .mark{width:56px;height:56px}
.tsd-c .model-head.hero .nm1{height:36px;line-height:36px;font-size:32px}
.tsd-c .model-head.hero .by{line-height:20px}

/* ══ TSD GLOBAL + SHELL (surfaces v2, round 4 to 6 approvals). Prefixed with :root:root:root so these win over the
   folded layers above and every older page stylesheet. ═══════════════════════════════════════════════════════ */
/* @@GLOBAL-START@@ */
/* base */
:root:root:root body{font-family:var(--sans);background:var(--bg);color:var(--text)}
:root:root:root :focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}
:root:root:root :focus:not(:focus-visible){outline:none}
:root:root:root h1,:root:root:root h2,:root:root:root h3{letter-spacing:-.03em}

/* ── surfaces v2: no gray container boxes in light. Containers are transparent with a hairline, or float. ── */
:root:root:root .need-in{background:var(--card-fill);box-shadow:none}
:root:root:root :is(.panel,.search,.mp-menu,.modal,.pop-panel,.auth-pop2,.tour-card){background:var(--elevated);border:0;box-shadow:var(--float);border-radius:var(--r-panel)}

/* ── buttons: pills. L 48 / M 40 / S 32. Primary = ink, secondary = quiet fill, never a ring. ── */
:root:root:root :is(.btn-red,.btn-white,.pill-red,.launch,.pick-cta,.ck-cta,.auth-go){border-radius:var(--r-pill);background:var(--invert-bg);color:var(--invert-text);border:0;box-shadow:none}
:root:root:root :is(.btn-quiet,.quiet,.auth-btn,.pop-btn:not(.pill-red),.wr-btn.btn-quiet){border-radius:var(--r-pill);background:var(--fill);color:var(--text);border:0;box-shadow:none}
:root:root:root :is(.btn-quiet,.quiet,.auth-btn):hover{background:var(--fill-strong)}
:root:root:root :is(.btn-red,.btn-white,.launch,.ck-cta){height:40px;padding:0 18px;font-size:15px;font-weight:500}
:root:root:root :is(.btn-quiet){height:40px;padding:0 18px;font-size:15px;font-weight:500}
:root:root:root :is(.pill-red,.btn-quiet.sm,.btn-quiet.sm2,.btn-white.sm2){height:32px;padding:0 14px;font-size:14px;font-weight:500}
:root:root:root .pop-btn{height:40px;padding:0 18px;font-size:15px;font-weight:500}
:root:root:root :is(.btn-red,.btn-white,.pill-red,.launch,.pick-cta,.ck-cta,.auth-go):hover{opacity:.88}
:root:root:root :is(.btn-red,.btn-white,.pill-red,.launch,.pick-cta,.ck-cta,.auth-go,.btn-quiet,.quiet,.tsd-btn):active{transform:scale(.97)}
:root:root:root :is(.btn-red,.btn-white,.pill-red,.launch,.btn-quiet,.quiet,.auth-go,.auth-btn,.pop-btn,.tsd-btn){transition:transform .12s ease-out,opacity .12s ease-out,background-color .12s ease-out}
:root:root:root .tsd-btn{display:inline-flex}
/* destructive and errors are the only red */
:root:root:root .auth-err{color:var(--danger)}
:root:root:root #toast.err{background:var(--danger);color:#FFFFFF}

/* ── chips: three roles. Gray fill = meta, outline = status (Soon, Coming soon), ink = Trending / New ── */
:root:root:root :is(.tag,.tag.pro,.tag.paid,.kind){display:inline-flex;align-items:center;gap:6px;height:20px;font-size:12px;font-weight:500;line-height:20px;padding:0 8px;border:0;border-radius:var(--r-pill);text-transform:none;letter-spacing:0;background:var(--tag-fill);color:var(--text);box-shadow:none}
:root:root:root .tag.soon{background:transparent;color:var(--muted);box-shadow:inset 0 0 0 1px var(--tag-line)}
:root:root:root :is(.tag.trending,.tag.top,.tag.new){background:var(--invert-bg);color:var(--invert-text)}
:root:root:root .chip[aria-selected="true"],:root:root:root .chip.sel{background:var(--invert-bg);color:var(--invert-text)}
/* counts: text, with the live green dot */
:root:root:root .live-n{font-size:13px;color:var(--muted);gap:6px}
:root:root:root .live-n b{color:var(--text);font-weight:500}
:root:root:root .live-n i,:root:root:root .mp-menu .mp-row.mp-mrow .live-n i{width:7px;height:7px;background:var(--live);box-shadow:0 0 0 3px var(--live-soft)}
:root:root:root .corner-live .live-n i{background:var(--live);box-shadow:none}
:root:root:root .u-dots i{box-shadow:inset 0 0 0 1px var(--a12);background:transparent}
:root:root:root .u-dots i.on{background:var(--text);box-shadow:none}
/* toggles: ink when on */
:root:root:root .toggle{background:var(--a12)}
:root:root:root .toggle i{background:var(--bg)}
:root:root:root .toggle.on{background:var(--text)}
/* meters and bars are ink */
:root:root:root :is(.cbar i,.meter-bar i,.dots span.on){background:var(--text)}
:root:root:root .cbar{height:6px;background:var(--a8);margin:8px 0 0}
/* a usage pool at 90% or over takes the house danger token (TSD-CEO usage menu, 2026-11-20) */
:root:root:root .cbar.warn i{background:var(--danger)}
:root:root:root .credits-top b.warn{color:var(--danger)}

/* ── inputs: filled ── */
:root:root:root :is(.pop-body input:not([type="checkbox"],[type="radio"],[type="range"]),.pop-body textarea,#auth-form input){background:var(--in-fill);border:0;border-radius:var(--r-input);color:var(--text);box-shadow:none;outline:0}
:root:root:root :is(.pop-body input,.pop-body textarea,#auth-form input):focus{box-shadow:0 0 0 2px var(--focus-ring)}
:root:root:root .search-in{background:var(--in-fill);border:0;border-radius:var(--r-input);box-shadow:none}
:root:root:root .search-in:focus-within{box-shadow:inset 0 0 0 2px var(--focus-ring)}
:root:root:root .search-in input:focus-visible{outline:none}

/* ── icons: one stroke, bare. Icon buttons are never outlined. ── */
:root:root:root .i use{stroke-width:1.5}

/* ── TOP BAR (Components: Top bar, signed in / signed out) ─────────────────────────────────────────────── */
:root:root:root .bar{height:60px;gap:24px;padding:0 24px;background:var(--bg);border-bottom:1px solid var(--line)}
:root:root:root .mark{display:inline-flex;align-items:center;gap:0;flex:none}
:root:root:root .mark::before,:root:root:root .mark::after{content:none;display:none}
:root:root:root .mark .brand img,:root:root:root .sheet-top .mark .brand img{display:block}
:root:root:root .brand{display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:18px;letter-spacing:-.02em;line-height:1;white-space:nowrap;color:var(--text)}
:root:root:root .brand img{width:24px;height:24px;object-fit:contain;flex:none}
:root:root:root .brand-w{font-weight:700}
:root:root:root .brand.brand-lg{font-size:20px}
:root:root:root .brand.brand-lg img{width:30px;height:30px}
:root:root:root .bar .tabs{gap:4px;margin-left:0}
:root:root:root .bar .tab{height:auto;padding:7px 12px;border-radius:var(--r-pill);font-size:14px;font-weight:400;color:var(--muted);gap:8px;background:transparent}
:root:root:root .bar .tab:hover,:root:root:root .bar .tab.open{background:var(--fill);color:var(--text)}
:root:root:root .bar .tab[aria-current="page"]{background:var(--fill);color:var(--text)}
:root:root:root .bar .tab.tab-soon{color:var(--muted)}
:root:root:root .bar .tab .soon-chip,:root:root:root .sheet .soon-chip{margin-left:0}
:root:root:root .bar .tab-soon .soon-band{display:none}
:root:root:root .bar-ib{width:36px;height:36px;border:0;border-radius:var(--r-pill);background:transparent;color:var(--text);display:inline-grid;place-items:center;flex:none;padding:0;cursor:pointer}
:root:root:root .bar-ib:hover{background:var(--fill)}
:root:root:root .bar-ib .i{width:20px;height:20px}
:root:root:root .bar .bar-ib.narrow-only{display:none}
:root:root:root .bar-plain{font-size:14px;color:var(--muted);margin:0 4px 0 0;flex:none}
:root:root:root .bar-plain:hover{color:var(--text)}
:root:root:root .bar{column-gap:12px}
:root:root:root .bar .tabs{margin-right:12px}
:root:root:root .bar .grow{flex:1}
:root:root:root .bar-auth{display:inline-flex;gap:8px;align-items:center;margin-left:4px}
:root:root:root .bar-auth[hidden]{display:none}
:root:root:root .bar .avatar,:root:root:root .avatar{width:32px;height:32px;border:0;border-radius:var(--r-pill);background:var(--invert-bg);color:var(--invert-text);font-size:13px;font-weight:500;overflow:hidden;display:grid;place-items:center;flex:none}
:root:root:root .bar .avatar{margin-left:4px}
:root:root:root .avatar img{width:100%;height:100%;object-fit:cover;border-radius:var(--r-pill)}
:root:root:root .avatar .i{width:16px;height:16px}
:root:root:root .avatar.av-wait{background:var(--fill)}
@media (max-width:900px){
  :root:root:root .bar{padding:0 16px;gap:8px}
  :root:root:root .bar .tabs,:root:root:root .bar .wide-only{display:none}
  :root:root:root .bar .bar-ib.narrow-only{display:inline-grid}
}

/* ── MOBILE SHEET ── */
:root:root:root .sheet{background:var(--bg);padding:0 20px 24px;gap:0}
:root:root:root .sheet-top{height:60px}
:root:root:root .sheet-big{display:flex;flex-direction:column;gap:6px;padding:12px 0 20px}
:root:root:root .sheet a.big{display:flex;align-items:center;gap:8px;padding:8px 0;border:0;font-size:24px;font-weight:500;letter-spacing:-.02em;color:var(--text);text-decoration:none}
:root:root:root .sheet a.big[aria-current="page"]{color:var(--text);text-decoration:none}
:root:root:root .sheet-small{display:flex;flex-direction:column;gap:8px;padding-top:16px;border-top:1px solid var(--line)}
:root:root:root .sheet a.small{padding:4px 0;font-size:16px;color:var(--muted)}
:root:root:root .sheet-out{align-self:flex-start;width:auto;margin-top:24px}
:root:root:root .sheet-acts{display:flex;gap:8px;margin-top:24px}
:root:root:root .sheet-acts .sheet-out{margin-top:0}
/* signed out, "Log in" is a secondary pill beside "Get started"; the old .sheet .sheet-out text link reset flattened it (audit 2026-11-16) */
:root:root:root .sheet-acts .sheet-out.tsd-btn{display:inline-flex;height:40px;padding:0 18px;border-radius:var(--r-pill);background:var(--fill);color:var(--text);font-size:15px;font-weight:500;text-align:center}
:root:root:root .sheet-acts .sheet-out.tsd-btn:hover{background:var(--fill-strong)}

/* ── PANELS: hover menus, account menu ── */
:root:root:root .panel{top:64px;padding:6px}
:root:root:root .rule{height:1px;background:var(--line);margin:6px 8px}
:root:root:root .menu-row{min-height:40px;gap:10px;padding:9px 12px;border-radius:var(--r-input);font-size:14px;color:var(--text)}
:root:root:root .menu-row + .menu-row{margin-top:4px}
:root:root:root .menu-row:hover{background:var(--fill)}
:root:root:root .menu-row .i{width:18px;height:18px;color:var(--muted)}
:root:root:root .menu-row .end{margin-left:auto;color:var(--muted);font-size:13px}
:root:root:root .menu-row .row-text{display:flex;flex-direction:column;min-width:0;text-align:left}
:root:root:root .menu-row .row-name{font-weight:500}
:root:root:root .menu-row .row-line{font-size:13px;color:var(--muted);margin:0}
:root:root:root .account{right:16px;width:min(300px,calc(100vw - 16px));padding:6px}
:root:root:root .acct-head{gap:12px;padding:12px;border-radius:var(--r-input)}
:root:root:root .acct-head:hover{background:var(--fill)}
:root:root:root .acct-head .avatar{width:32px;height:32px;font-size:13px}
:root:root:root .acct-head .row-name{font-weight:500;font-size:14px}
:root:root:root .acct-head .row-line{font-size:13px;color:var(--muted)}
:root:root:root .credits{background:transparent;border:0;border-radius:0;padding:4px 12px 12px;margin:0}
:root:root:root .credits-top,:root:root:root .credits-ses{display:flex;align-items:baseline;justify-content:space-between;font-size:13px;color:var(--muted);margin-bottom:8px}
:root:root:root .credits-ses{margin:12px 0 8px}
:root:root:root .credits-top b,:root:root:root .credits-ses b{font-weight:500;color:var(--text);font-size:13px}
:root:root:root .credits-sub{font-size:13px;color:var(--muted);margin-top:8px}
:root:root:root .credits-extra{margin-top:8px;font-size:13px;color:var(--muted)}
:root:root:root .credits-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;padding-top:0;border:0;font-size:13px;color:var(--muted)}
:root:root:root .wr-menu{margin-top:10px}

/* ── MODELS MENU (Components: Models menu) ── */
:root:root:root .mega.mega-m.mm2{display:grid;grid-template-columns:180px 220px minmax(0,1fr);gap:16px;padding:16px;width:min(860px,calc(100vw - 32px));left:16px}
:root:root:root .mm-cats{display:flex;flex-direction:column;gap:4px;min-width:0}
:root:root:root .mm-cat{display:flex;align-items:center;gap:10px;min-height:40px;padding:9px 12px;border-radius:var(--r-input);font-size:14px;color:var(--text)}
:root:root:root .mm-cat:hover,:root:root:root .mm-cat.on{background:var(--fill)}
:root:root:root .mm-cat .i{width:18px;height:18px;color:var(--muted)}
:root:root:root .mm-rule{height:1px;background:var(--line);margin:2px 8px}
:root:root:root .mm-feat{display:block;min-width:0;color:var(--text)}
:root:root:root .mm-feat-media{display:block;aspect-ratio:16/10;border-radius:var(--r-card);overflow:hidden;background:var(--fill)}
:root:root:root .mm-feat-media video,:root:root:root .mm-feat-media img{width:100%;height:100%;object-fit:cover;display:block}
:root:root:root .mm-feat-cap{display:block;font-size:13px;color:var(--faint);margin-top:10px}
:root:root:root .mm-feat b{display:block;font-weight:500;font-size:15px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:root:root:root .mm-feat .mm-d{display:block}
:root:root:root .mm-rows{min-width:0;display:flex;flex-direction:column}
:root:root:root .mm-list{display:flex;flex-direction:column;gap:4px}
:root:root:root .mm2 .mm-row{min-height:52px;padding:8px 10px;gap:12px;border-radius:var(--r-input);background:none}
:root:root:root .mm2 .mm-row:hover{background:var(--fill)}
:root:root:root .mm2 .mm-row::before{content:none!important}
:root:root:root .mm2 .mm-ic{width:36px;height:36px;border-radius:var(--r-input);background:#FFFFFF;box-shadow:0 0 0 1px rgba(20,20,20,.12);overflow:hidden}
:root:root:root .mm2 .mm-ic img{width:88%;height:88%;object-fit:contain;border-radius:8px}
:root:root:root .mm2 .mm-ic .mk-mono{display:none}
:root:root:root .mm2 .mm-name{font-size:14px;font-weight:500}
:root:root:root .mm2 .mm-d{font-size:13px;color:var(--muted)}
:root:root:root .mm2 .mm-all{display:inline-flex;align-items:center;gap:6px;padding:12px 10px 4px;font-size:14px;color:var(--muted)}
:root:root:root .mm2 .mm-all:hover{color:var(--text)}
:root:root:root .mm2 .mm-all .i{width:16px;height:16px}
@media (max-width:900px){:root:root:root .mega.mega-m.mm2{grid-template-columns:1fr 1fr}:root:root:root .mm-rows{grid-column:1/-1}}

/* ── maker logo tiles everywhere in the shell: white app tile, full-color logo ── */
:root:root:root :is(.tile-i.has-mk,.mp-mrow .tile-i,.mp-pv-id .tile-i){background:#FFFFFF;box-shadow:0 0 0 1px rgba(20,20,20,.12);border:0;border-radius:var(--r-input);overflow:hidden}
:root:root:root :is(.tile-i.has-mk,.mp-pv-id .tile-i) img{width:88%;height:88%;object-fit:contain;border-radius:8px}
:root:root:root :is(.tile-i.has-mk,.mp-pv-id .tile-i) .mk-mono{display:none}
:root:root:root :is(.tile-i.has-mk,.mp-pv-id .tile-i) img.mk-brain{width:84%;height:84%;border-radius:0}
:root:root:root :is(.tile-i,.mm-ic) img[src*="/makers/zai."]{transform:scale(2)}
:root:root:root :is(.tile-i,.mm-ic) img[src*="/makers/google."],:root:root:root :is(.tile-i,.mm-ic) img[src*="/makers/openai."],:root:root:root :is(.tile-i,.mm-ic) img[src*="/makers/xiaomi."]{transform:scale(1.12)}
:root:root:root :is(.tile-i,.mm-ic) img[src*="/makers/meta."]{transform:scale(1.18)}
:root:root:root .tile-i:not(.has-mk){background:var(--fill);box-shadow:none;border:0;border-radius:var(--r-input)}

/* ── SEARCH PANEL (Components: Search panel, open) ── */
:root:root:root .scrim{background:var(--scrim);-webkit-backdrop-filter:none;backdrop-filter:none}
:root:root:root .search{padding:16px;border-radius:var(--r-panel)}
:root:root:root .search.search-wide{width:min(760px,100%)}
:root:root:root .search-top{display:block}
:root:root:root .search-in{height:48px;gap:10px;padding:0 6px 0 14px;color:var(--muted);border-radius:var(--r-input)}
:root:root:root .search-in .i{width:18px;height:18px}
:root:root:root .search-in input,:root:root:root .search-in input:focus{font-size:16px;color:var(--text);background:transparent!important;border:0!important;box-shadow:none!important;outline:0;height:auto;padding:0}
:root:root:root .search-in input::placeholder{color:var(--faint)}
:root:root:root .round.kbd{width:auto;height:24px;padding:0 8px;border-radius:8px;background:var(--a8);color:var(--faint);font-size:12px;font-weight:400;flex:none}
:root:root:root .round.kbd:hover{color:var(--text)}
:root:root:root .search .chips{gap:6px;padding:12px 0 4px;background:transparent;flex-wrap:wrap}
:root:root:root .search .chip{height:auto;padding:7px 14px;border:0;border-radius:var(--r-pill);background:var(--fill);color:var(--text);font-size:14px}
:root:root:root .search .chip:hover{background:var(--fill-strong)}
:root:root:root .search .chip[aria-selected="true"]{background:var(--invert-bg);color:var(--invert-text)}
:root:root:root .search-body{padding:0}
:root:root:root .search .label{font-size:13px;color:var(--faint);font-weight:400;letter-spacing:0;text-transform:none;padding:0;margin:16px 0 8px}
:root:root:root .search .two{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px}
:root:root:root .search .row{min-height:52px;padding:8px;gap:12px;border-radius:var(--r-input)}
:root:root:root .search .row:hover,:root:root:root .search .row.hot{background:var(--fill)}
:root:root:root .search .row::before{content:none!important}
:root:root:root .search .tile-i{width:36px;height:36px}
:root:root:root .search .row-name{font-size:14px;font-weight:500;gap:8px}
:root:root:root .search .row-line{font-size:13px;color:var(--muted)}
:root:root:root .pop3{gap:16px;margin:8px 0 4px}
:root:root:root .pop3-card{padding:0;border:0;border-radius:0;background:transparent;gap:0}
:root:root:root .pop3-card:hover{background:transparent}
:root:root:root .pop3-card:hover .pop3-media{opacity:.92}
:root:root:root .pop3-media{aspect-ratio:16/9;border-radius:var(--r-input);background:var(--fill);margin:0}
:root:root:root .pop3-card b{font-size:15px;font-weight:500;padding:0;margin-top:8px}
:root:root:root .pop3-card .row-line{padding:0;margin-top:2px;font-size:13px;color:var(--muted)}
@media (max-width:900px){:root:root:root .search{border-radius:var(--r-panel) var(--r-panel) 0 0}:root:root:root .search .two{grid-template-columns:1fr}}

/* ── MODEL PICKER WITH MEDIA PREVIEW (Components: Model picker) ── */
:root:root:root .mp-scrim{background:transparent;padding:0}
:root:root:root .mp-pop.mp-pv-pop{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:16px;padding:16px;width:min(760px,calc(100vw - 32px));max-height:min(640px,calc(100dvh - 32px));overflow:hidden;border-radius:var(--r-panel)}
:root:root:root .mp-pop.mp-pv-pop.mp-placed{position:fixed;margin:0}
:root:root:root .mp-pv-l{display:flex;flex-direction:column;min-height:0;min-width:0}
:root:root:root .mp-pv-l .search-in{flex:none}
:root:root:root .mp-pop-body{overflow-y:auto;padding:0;min-height:0}
:root:root:root .mp-h{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:var(--faint);padding:12px 10px 6px}
:root:root:root .mp-mlist{display:flex;flex-direction:column;gap:4px}
:root:root:root .mp-pop .mp-mrow{min-height:52px;padding:8px 10px;gap:12px;border-radius:var(--r-input);width:100%;text-align:left;background:none}
:root:root:root .mp-pop .mp-mrow:hover,:root:root:root .mp-pop .mp-mrow.hot{background:var(--fill);box-shadow:none}
:root:root:root .mp-pop .mp-mrow.on{background:var(--fill)}
:root:root:root .mp-pop .mp-mrow::before{content:none!important}
:root:root:root .mp-pop .mp-mrow .tile-i{width:36px;height:36px}
:root:root:root .mp-pop .mp-end{align-self:center;padding:0}
:root:root:root .mp-pop .row-name{font-size:14px;font-weight:500}
:root:root:root .mp-pop .row-line{font-size:13px;color:var(--muted)}
:root:root:root .mp-note{font-size:13px;color:var(--muted);padding:8px 10px 0;margin:0}
:root:root:root .mp-skills{display:flex;flex-direction:column;gap:4px}
:root:root:root .mp-skill{min-height:52px;padding:8px 10px;border-radius:var(--r-input);gap:12px;cursor:pointer}
:root:root:root .mp-skill:hover{background:var(--fill)}
:root:root:root .mp-skill::before{content:none!important}
:root:root:root .mp-skill .row-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:root:root:root .mp-pv{padding:6px 6px 8px;min-width:0;overflow-y:auto}
:root:root:root .mp-pv-media{position:relative;display:block;aspect-ratio:16/10;border-radius:var(--r-card);overflow:hidden;background:var(--fill)}
:root:root:root .mp-pv-media video,:root:root:root .mp-pv-media img{width:100%;height:100%;object-fit:cover;display:block}
:root:root:root .mp-glass{position:absolute;left:12px;top:12px;font-size:12px;font-weight:500;color:#141414;background:rgba(255,255,255,.92);border-radius:var(--r-pill);padding:2px 8px}
:root:root:root .mp-pv-id{display:flex;align-items:center;gap:12px;padding:12px 0 0}
:root:root:root .mp-pv-id .tile-i{width:28px;height:28px;border-radius:8px;flex:none;display:grid;place-items:center}
:root:root:root .mp-pv-id .row-name{font-weight:500;font-size:15px}
:root:root:root .mp-pv-id .row-text{display:flex;flex-direction:column;min-width:0}
:root:root:root .mp-pv-id .row-line{font-size:13px;color:var(--muted)}
:root:root:root .mp-pv-d{font-size:14px;color:var(--muted);margin:8px 0 4px}
:root:root:root .mp-facts{display:grid;grid-template-columns:1fr auto;font-size:14px;margin:2px 0 4px}
:root:root:root .mp-facts dt{color:var(--muted);padding:9px 0;border-top:1px solid var(--line)}
:root:root:root .mp-facts dd{margin:0;padding:9px 0;border-top:1px solid var(--line);text-align:right;display:flex;justify-content:flex-end;align-items:center}
:root:root:root .mp-pv-acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
:root:root:root .u-word{font-size:13px;color:var(--text);margin-left:2px}
/* staging review: the picker is the composer's width (app.js size()); the preview column shrinks to 240px and is
   hidden when the picker is under 640px wide. Placed pickers keep the full radius at every width. */
:root:root:root .mp-pv .mp-pv-acts .tsd-btn{flex:1 1 auto;justify-content:center}
:root:root:root .mp-pop.mp-pv-pop.mp-narrow{grid-template-columns:minmax(0,1fr)}
:root:root:root .mp-pop.mp-pv-pop.mp-narrow .mp-pv{display:none}
:root:root:root .mp-pop.mp-pv-pop.mp-placed{border-radius:var(--r-panel)}
@media (max-width:640px){
  :root:root:root .mp-scrim{background:var(--scrim)}
  :root:root:root .mp-pop.mp-pv-pop{grid-template-columns:minmax(0,1fr);width:100%;border-radius:var(--r-panel) var(--r-panel) 0 0;max-height:88dvh}
  :root:root:root .mp-pv{display:none}
  /* Robert phone QA (2026-11-19): every model's logo tile keeps a fixed square and its logo an explicit pixel size on
     the phone picker sheet, so no row paints a 0-size (blank) logo if a browser fails to resolve the % height. */
  :root:root:root .mp-pop.mp-pv-pop .mp-mrow .tile-i{width:36px;height:36px;flex:none}
  :root:root:root .mp-pop.mp-pv-pop .mp-mrow .tile-i .mk-lg{width:30px;height:30px;object-fit:contain}
  :root:root:root .mp-pop.mp-pv-pop .mp-mrow .tile-i img.mk-brain{width:30px;height:30px;object-fit:contain}
}
/* the one-model dropdown on a model page, placed under the composer at its width (app.js fit()) */
:root:root:root .composer .mp-wrap .mp-menu.mp-placed{overflow-y:auto}
/* the small one-model dropdown keeps its layout, in the new surfaces */
:root:root:root .mp-menu{border-radius:var(--r-panel)}

/* ── FOOTER (Components: Footer) ── */
:root:root:root .bigfoot{border-top:1px solid var(--line);padding:0;background:var(--bg)}
:root:root:root .bigfoot-grid{display:grid;grid-template-columns:1.6fr repeat(5,minmax(0,1fr));gap:24px;max-width:none;margin:0;padding:64px 32px 32px;background:transparent;border:0;border-radius:0;color:var(--text)}
:root:root:root .bf-brand h2{font-size:24px;font-weight:500;letter-spacing:-.02em;line-height:1.2;margin:16px 0 8px;color:var(--text)}
:root:root:root .bf-brand .soft{color:var(--muted);font-size:14px}
:root:root:root .bf-mark{width:36px;height:36px;object-fit:contain;filter:none}
:root:root:root .bf-brand img{filter:none}
:root:root:root .bf-col h3{font-size:14px;font-weight:500;line-height:20px;margin:0 0 12px;color:var(--text)}
:root:root:root .bf-col h3+ul+h3{margin-top:24px}
:root:root:root .bf-col ul{gap:0}
:root:root:root .bf-col li{margin:0}
:root:root:root .bf-col a{display:block;font-size:14px;font-weight:400;color:var(--muted);margin:8px 0}
:root:root:root .bf-col a:hover{color:var(--text)}
:root:root:root .bf-col a.bf-soon{color:var(--faint);opacity:1}
:root:root:root .bf-soon-head{margin:4px 0;line-height:1}
:root:root:root .bf-soon-head .soon-chip{margin-left:0}
:root:root:root .bf-legal{display:flex;gap:20px;align-items:center;flex-wrap:wrap;max-width:none;margin:0;padding:16px 32px 24px;border-top:1px solid var(--line);background:transparent;font-size:13px;color:var(--muted)}
:root:root:root .bf-legal a{font-weight:400;color:var(--muted)}
:root:root:root .bf-legal a:hover{color:var(--text)}
:root:root:root .bf-word{font-size:28vw;font-weight:500;letter-spacing:-.02em;line-height:.78;padding:24px 32px 40px;margin:0;text-align:center;color:var(--a10);overflow:hidden;white-space:nowrap;user-select:none}
:root:root:root .bf-word span{display:inline-block;white-space:nowrap}
@media (max-width:900px){:root:root:root .bigfoot-grid{grid-template-columns:1fr 1fr;padding:48px 16px 24px}:root:root:root .bf-brand{grid-column:1/-1}:root:root:root .bf-legal{padding:16px}:root:root:root .bf-word{padding:16px 16px 24px}}

/* ── TOASTS ── */
:root:root:root #toast{bottom:24px;background:var(--invert-bg);color:var(--invert-text);font-size:14px;font-weight:500;padding:10px 18px;border-radius:var(--r-pill);box-shadow:var(--float)}

/* ── MODAL (popup) and the out-of-usage moments (pages/ghost-pricing.html "Out-of-usage moments") ── */
:root:root:root .pop-scrim{background:var(--scrim);-webkit-backdrop-filter:none;backdrop-filter:none}
:root:root:root .pop-panel{width:min(400px,100%);padding:20px;border:0;border-radius:var(--r-panel);background:var(--elevated);box-shadow:var(--float);display:flex;flex-direction:column;gap:12px}
:root:root:root .pop-panel.wide{width:min(720px,100%)}
:root:root:root .pop-head{padding:0;gap:12px}
:root:root:root .pop-head b{font-size:18px;font-weight:500;letter-spacing:-.01em;line-height:1.3}
:root:root:root .pop-x{width:28px;height:28px;min-width:28px;padding:0;border-radius:var(--r-pill);background:transparent;color:var(--text)}
:root:root:root .pop-x:hover{background:var(--fill)}
:root:root:root .pop-x .i{width:16px;height:16px}
:root:root:root .pop-body{font-size:14px;line-height:1.5;gap:12px}
:root:root:root .pop-body p,:root:root:root .pop-body .soft{color:var(--text)}
:root:root:root .pop-actions{gap:8px;margin-top:4px}
:root:root:root .pop-btn,:root:root:root .pop-btn.pill-red{height:32px;padding:0 14px;font-size:14px;font-weight:500;border-radius:var(--r-pill)}
:root:root:root .pop-btn.quiet{background:var(--fill);color:var(--text)}
:root:root:root .pop-btn.quiet:hover{background:var(--fill-strong)}
:root:root:root[data-theme="dark"] .pop-panel{background:var(--elevated)}
/* the weekly reset rows (G.wrHtml): the caption on the left, the ink pill on the right */
:root:root:root :is(.wr-chat,.wr-row){display:flex;align-items:center;justify-content:space-between;gap:10px}
:root:root:root :is(.wr-chat,.wr-row) .soft{font-size:13px;color:var(--faint)}
:root:root:root .wr-btn{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 14px;font-size:14px;font-weight:500;border-radius:var(--r-pill)}
:root:root:root .wr-btn .i{width:16px;height:16px}
:root:root:root .wr-up{font-size:14px;color:var(--muted)}
:root:root:root .wr-up a{color:var(--text);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--a12)}
:root:root:root .wr-mb{display:flex;align-items:center;justify-content:space-between;gap:8px}
:root:root:root .wr-mb small{font-size:13px;color:var(--muted)}

/* ── TOUR CARD ── */
:root:root:root .tour-card{border-radius:var(--r-panel)}
:root:root:root .tour-ring{border-color:var(--text);box-shadow:0 0 0 6px var(--a12),0 0 0 300vmax rgba(0,0,0,.62)}

/* ── skeleton list helper ── */
:root:root:root .skel-list{display:flex;flex-direction:column;gap:4px}
:root:root:root .skel-t{display:flex;flex-direction:column;flex:1;min-width:0}

/* ── AUTH (pages/auth.html): the full page on /login/ and /signup/, the popup elsewhere ── */
:root:root:root.auth-full #bar,:root:root:root.auth-full #main,:root:root:root.auth-full #foot{display:none!important}
:root:root:root.auth-full body{background:var(--bg)}
:root:root:root .auth-page{display:grid;grid-template-columns:1fr 1fr;gap:24px;min-height:100dvh;padding:24px;background:var(--bg);color:var(--text)}
:root:root:root .auth-l{display:flex;flex-direction:column;padding:8px 16px;min-width:0}
:root:root:root .auth-l>.mark{align-self:flex-start}
:root:root:root .auth-c{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px 0;width:100%}
:root:root:root .auth-c h1{color:var(--text);opacity:1;font-size:clamp(40px,4.4vw,56px);font-weight:500;letter-spacing:-.045em;line-height:1.02;margin:0;text-wrap:balance}
:root:root:root .auth-sub{font-size:20px;color:var(--muted);margin:14px 0 36px;text-wrap:pretty;max-width:480px}
:root:root:root .auth-sub b{font-weight:500;color:var(--text)}
:root:root:root .auth-card{width:100%;max-width:440px;background:var(--elevated);border-radius:var(--r-shelf);padding:32px;box-shadow:0 0 0 .5px var(--a12),0 8px 24px rgba(0,0,0,.06);display:flex;flex-direction:column;gap:12px;text-align:left}
:root:root:root .auth-c .auth-btn{display:flex;align-items:center;justify-content:center;gap:10px;height:48px;width:100%;border:0;border-radius:var(--r-pill);background:var(--fill);color:var(--text);font-size:16px;font-weight:500}
:root:root:root .auth-c .auth-btn:hover{background:var(--fill-strong)}
:root:root:root .auth-c .auth-btn img{width:18px;height:18px}
:root:root:root .auth-c .or{display:block;text-align:center;font-size:13px;color:var(--faint);text-transform:none;letter-spacing:0;margin:2px 0}
:root:root:root .auth-c .or::before,:root:root:root .auth-c .or::after{content:none;display:none}
:root:root:root .auth-c .auth-steps-form{display:flex;flex-direction:column;gap:12px;margin:0}
:root:root:root .auth-c #auth-form input{height:48px;width:100%;padding:0 16px;font-size:15px;text-align:left}
:root:root:root .auth-c #auth-form input.auth-pin{text-align:center;font-size:24px;font-weight:500;letter-spacing:.32em;height:60px;font-variant-numeric:tabular-nums}
:root:root:root .auth-c .auth-go{height:48px;width:100%;border-radius:var(--r-pill);font-size:16px;font-weight:500}
:root:root:root .auth-c .auth-go:disabled{opacity:.35;cursor:default;transform:none}
:root:root:root .auth-c .auth-err{text-align:left;font-size:13px;margin:0}
:root:root:root .auth-c .auth-legal{font-size:13px;color:var(--muted);line-height:1.5;margin:0}
:root:root:root .auth-c .auth-legal a,:root:root:root .auth-c .auth-switch a{color:var(--text);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--a12)}
:root:root:root .auth-c .auth-switch{font-size:13px;color:var(--muted);margin-top:20px}
:root:root:root .auth-c .auth-l{display:inline;border:0;background:none;padding:0;font:inherit;color:var(--text);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--a12);cursor:pointer}
:root:root:root .auth-c .auth-back{display:inline-flex;align-items:center;gap:6px;font-size:14px;color:var(--muted);text-decoration:none}
:root:root:root .auth-c .auth-back .i{width:16px;height:16px}
:root:root:root .auth-c .auth-back:hover{color:var(--text)}
:root:root:root .auth-art2{position:relative;border-radius:var(--r-shelf);overflow:hidden;background:#000000;min-height:0}
:root:root:root .auth-art2 img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
:root:root:root .auth-art2::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.6),transparent 40%);pointer-events:none}
:root:root:root .auth-cap2{position:absolute;left:24px;right:24px;bottom:24px;z-index:1;color:#FFFFFF;display:flex;flex-direction:column;gap:6px}
:root:root:root .auth-cap2 b{font-size:32px;font-weight:500;letter-spacing:-.03em;line-height:1.12;display:block;max-width:440px;text-wrap:balance}
:root:root:root .auth-cap2 span{font-size:16px;color:rgba(255,255,255,.8)}
:root:root:root .auth-btn .on-light{display:none}
:root:root:root[data-theme="light"] .auth-btn .on-dark{display:none}
:root:root:root[data-theme="light"] .auth-btn .on-light{display:block}
:root:root:root[data-theme="dark"] .auth-card{background:rgba(255,255,255,.04);box-shadow:none}
:root:root:root[data-theme="dark"] .auth-art2{box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
/* the popup: the same card, a smaller headline, the art on the right */
:root:root:root .auth-scrim{align-items:center;justify-content:center;padding:24px}
:root:root:root .auth-pop2{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;width:min(1040px,100%);max-height:calc(100dvh - 48px);padding:16px;overflow:hidden}
:root:root:root .auth-pop2 .auth-l{overflow-y:auto;padding:8px}
:root:root:root .auth-pop2 .auth-c{padding:24px 0}
:root:root:root .auth-pop2 .auth-c h1{font-size:44px}
:root:root:root .auth-pop2 .auth-sub{font-size:18px;margin:12px 0 24px}
:root:root:root .auth-pop2 .auth-card{padding:24px;border-radius:var(--r-panel)}
:root:root:root .auth-pop2 .auth-art2{border-radius:var(--r-panel);min-height:560px}
:root:root:root .auth-pop2 .auth-cap2 b{font-size:24px}
:root:root:root .auth-pop2 .auth-x{position:absolute;right:24px;top:24px;z-index:2;background:rgba(0,0,0,.45);color:#FFFFFF}
:root:root:root .auth-pop2 .auth-x:hover{background:rgba(0,0,0,.6)}
@media (max-width:900px){
  :root:root:root .auth-page{grid-template-columns:1fr;padding:16px}
  :root:root:root .auth-page .auth-art2{display:none}
  :root:root:root .auth-c h1{font-size:44px}
  :root:root:root .auth-card{padding:24px}
  :root:root:root .auth-scrim{padding:0;align-items:flex-end}
  :root:root:root .auth-pop2{grid-template-columns:1fr;border-radius:var(--r-panel) var(--r-panel) 0 0;max-height:94dvh;width:100%}
  :root:root:root .auth-pop2 .auth-art2{display:none}
  :root:root:root .auth-pop2 .auth-x{background:var(--fill);color:var(--text);right:16px;top:16px}
}

/* ── the curtain and other shell leftovers ── */
:root:root:root .curtain img{object-fit:contain}

/* ── the model pill's logo (generic component) ── */
:root:root:root .mp-btn{display:inline-flex;align-items:center;gap:6px}
:root:root:root .mp-btn-lg{width:20px;height:20px;border-radius:8px;flex:none;display:grid;place-items:center;overflow:hidden;background:#FFFFFF;box-shadow:0 0 0 1px rgba(20,20,20,.12)}
:root:root:root .mp-btn-lg img{width:88%;height:88%;object-fit:contain}
:root:root:root .mp-btn-lg .mk-mono{display:none}
:root:root:root .mp-btn-lg:has(img.mk-brain){background:transparent;box-shadow:none}
:root:root:root .mp-btn-lg img.mk-brain{width:100%;height:100%}
:root:root:root .mp-btn .i{width:16px;height:16px}

/* ── focus rings (Robert, staging review: no heavy black rings anywhere) ──
   Mouse focus draws nothing; keyboard focus (:focus-visible) is a subtle 2px ring in ink 20% (--focus-ring, white 24% in
   dark). Fields and search wells use the same ring inset. The composer's textarea has no ring at all; the composer card
   takes a hairline instead. Error states keep --in-ring. */
:root:root:root :focus:not(:focus-visible){outline:none}
:root:root:root :focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}
:root:root:root :is(input:not([type="checkbox"],[type="radio"],[type="range"],[type="button"],[type="submit"],[type="file"]),textarea,select,[contenteditable]):focus-visible{outline:none}
:root:root:root .composer textarea,:root:root:root .composer textarea:focus,:root:root:root .composer textarea:focus-visible{outline:none!important;box-shadow:none!important;border-color:transparent!important}
:root:root:root .composer:focus-within{border-color:var(--focus-ring)}
/* a search field that opens focused inside its own popup (site search, the model picker) needs no ring: the caret shows it */
:root:root:root .search .search-in:focus-within,:root:root:root .mp-pop .search-in:focus-within{box-shadow:none}
:root:root:root :is(.ck .ck-pform input,.fx-fl input,.fx-fl textarea,.b1-wl-field input):focus,:root:root:root :is(.ck .ck-custom,.fx-pillbar,.dx-srch,.dx-oc .preset-search,.b4-agents .b4-task-new,.cn-mm-q):focus-within{box-shadow:inset 0 0 0 2px var(--focus-ring)!important;outline:none}
:root:root:root :is(.c-u-mk,.c-u-b,.dm-cx,.mp-btn,.send,.att-b):focus:not(:focus-visible){outline:none;box-shadow:none}

/* ── likes (Robert, 2026-11-16): a liked heart fills red the moment it's clicked and stays red on every page.
   The sprite draws the heart inside <g fill="none">, so the fill comes through a variable the liked state sets. ── */
#i-heart > g{fill:var(--heart-fill,none)}
:root:root:root :is(.likes-n,.like-tile).on .i,:root:root:root .dx-end .likes-n.on .i,:root:root:root #hf-likes .like-tile.on .i{color:var(--like);--heart-fill:var(--like)}
:root:root:root :is(.likes-n,.like-tile).like-pop .i{animation:like-pop .32s cubic-bezier(.32,.72,0,1)}
@keyframes like-pop{0%{transform:scale(.8)}50%{transform:scale(1.22)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){:root:root:root :is(.likes-n,.like-tile).like-pop .i{animation:none}}

/* ── sidebar projects (Robert, 2026-11-16): one highlight per project. The open, current or hovered project row is a
   single full-width pill; its name link never paints a second pill inside it. Its chats are indented and only hover. ── */
:root:root:root .side .sb-proj-row > .sb-proj,:root:root:root .side .sb-proj-row > .sb-proj:hover,:root:root:root .side .sb-proj-row.open > .sb-proj{background:transparent}
:root:root:root .side :is(.sb-proj-row.open,.sb-proj-row.on,.sb-proj-row:hover){background:var(--fill);border-color:transparent;box-shadow:none}
:root:root:root .side .sb-proj-row.on{background:var(--fill-strong)}
:root:root:root .side .sb-pchat.on{background:transparent;color:var(--text);font-weight:500}
:root:root:root .side .sb-pchat:hover{background:var(--fill);color:var(--text)}

/* @@GLOBAL-END@@ */


/* ── PHONE PASS (Robert, 2026-11-16: "optimized for mobile as well, like every page and component").
   One layer for every page on a phone: 44px touch targets, 16px inputs (iOS never zooms on focus), 16px gutters,
   safe areas on anything pinned to an edge, bottom sheets with a grab bar, and a two-line composer row that never
   pushes the model pill or Send off the card. Desktop is untouched: everything here sits inside a phone or touch query. ── */
@media (max-width:760px){
  /* the top bar: the mark and both icon buttons are full 44px targets; the icons stay 20px */
  :root:root:root:root .bar .mark{min-height:44px;display:inline-flex;align-items:center}
  :root:root:root:root .bar-ib{width:44px;height:44px}
  :root:root:root:root .bar .bar-ib.narrow-only{margin-right:-8px}
  :root:root:root:root .bar{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}

  /* the phone menu: Sign out is a secondary pill like Log in, never a gray square */
  :root:root:root:root .sheet{padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
  :root:root:root:root .sheet a.small{display:flex;align-items:center;min-height:44px;padding:0}
  :root:root:root:root .sheet-small{gap:0}
  :root:root:root:root .sheet .sheet-out{display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 20px;border-radius:var(--r-pill);background:var(--fill);color:var(--text);font-size:15px;font-weight:500}
  :root:root:root:root .sheet .sheet-acts .sheet-out.tsd-btn,:root:root:root:root .sheet .sheet-acts .tsd-btn{height:44px}

  /* buttons: every pill a thumb can hit is at least 44px tall on a phone */
  :root:root:root:root :is(.tsd-btn,.btn-white,.btn-quiet,.btn-red){min-height:44px}
  :root:root:root:root :is(.tsd-btn.sm,.btn-white.sm2,.btn-quiet.sm2){min-height:40px}
  :root:root:root:root .dx-ib{width:44px;height:44px}
  :root:root:root:root .likes-n{min-height:44px;margin:-14px 0}
  :root:root:root:root :is(.ck-back,.crumb-back){min-height:44px;display:inline-flex;align-items:center}

  /* type: no body copy under 13px, chips stay at 12 */
  /* plain specificity on purpose: lifts the old 12.5px .small base, and any rule that sizes a .small on purpose still wins */
  .small,small{font-size:13px}
  :root:root:root:root .dm-uline{font-size:13px}

  /* inputs: 16px or more, so iOS Safari never zooms the page when a field takes focus */
  :root:root:root:root :is(input:not([type="checkbox"],[type="radio"],[type="range"],[type="button"],[type="submit"],[type="file"]),textarea,select){font-size:16px}

  /* the footer: the link lists are 44px rows; the GHOST word fits the screen */
  :root:root:root:root .bf-col a{display:flex;align-items:center;min-height:44px;margin:0}
  :root:root:root:root .bf-col h3{margin-bottom:4px}
  :root:root:root:root .bf-legal a{display:inline-flex;align-items:center;min-height:44px}
  :root:root:root:root .bf-legal{padding-bottom:8px}
  :root:root:root:root .bf-word{font-size:26vw;padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}

  /* the composer on Chat and on every model page: two lines on a phone. Attach, Chat and Agents (and the project)
     on the first, then the model pill and Send on the second, so the model name and Send always show. */
  :root:root:root:root .composer .composer-row{flex-wrap:wrap;row-gap:8px;gap:8px 6px;min-width:0}
  :root:root:root:root .composer .composer-row::before{content:"";order:2;flex-basis:100%;height:0}
  :root:root:root:root .composer .composer-row>.att-wrap{order:0;flex:none}
  :root:root:root:root .composer .composer-row>.seg-modes{order:0;flex:none}
  :root:root:root:root .composer .composer-row>.c-proj{order:1;flex:0 1 auto;min-width:0;max-width:calc(100% - 242px);overflow:hidden;white-space:nowrap}
  :root:root:root:root .composer .composer-row>.c-proj>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  :root:root:root:root .composer .composer-row>.plus-wrap{order:3}
  :root:root:root:root .composer .composer-row>.mp-wrap{order:4;flex:0 1 auto;min-width:0;max-width:calc(100% - 96px)}
  :root:root:root:root .composer .composer-row>.grow{order:5;flex:1 1 0}
  :root:root:root:root .composer .composer-row>.send{order:6;margin-left:auto;width:40px;height:40px}
  :root:root:root:root .composer .mp-wrap .mp-btn{display:inline-flex;max-width:100%;height:40px;line-height:normal;padding:0 12px 0 10px;font-size:14px}
  :root:root:root:root .composer .mp-wrap .mp-btn .i{display:block}
  :root:root:root:root .composer .seg-modes .seg-b{font-size:14px;gap:6px;padding:0 12px 0 8px;height:36px}
  :root:root:root:root .composer .att-b{width:40px;height:40px}
  :root:root:root:root .composer textarea{font-size:16px}
  /* the thread bar keeps the chat title readable; its project shows in the composer below */
  :root:root:root:root .thread-bar .tbar-proj{display:none}
  :root:root:root:root .thread-bar #tbar{min-width:0;flex:1 1 auto}
  :root:root:root:root .thread-bar :is(.sb-ico,.tbar-share,.tbar-dl){width:44px;height:44px}
  :root:root:root:root .chats-b{height:40px;padding:0 12px;font-size:14px}
  :root:root:root:root :is(.c-u-b,.c-u-mk){min-height:40px;min-width:40px}
  /* Try other models: one swipe row of cards instead of a tall stack */
  :root:root:root:root .g-try-grid{display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:78%;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-left:16px;scrollbar-width:none;margin:0 -16px;padding:0 16px;overscroll-behavior-x:contain}
  :root:root:root:root .g-try-grid::-webkit-scrollbar{display:none}
  :root:root:root:root .g-try-grid>*{scroll-snap-align:start}
  :root:root:root:root .g-try-all{height:40px;padding:0 16px}

  /* menus that float from a control (the model page's one-model dropdown, the project and attach menus) open as a
     bottom sheet: full width, a grab bar, the safe area under it, and the page dimmed behind */
  :root:root:root:root .composer .mp-wrap .mp-menu:not([hidden]),:root:root:root:root .composer .plus-wrap .mp-menu:not([hidden]),:root:root:root:root .composer .wf-wrap .mp-menu:not([hidden]),:root:root:root:root .composer .att-wrap .mp-menu:not([hidden]){position:fixed!important;left:0!important;right:0!important;top:auto!important;bottom:0!important;width:auto!important;min-width:0!important;max-height:80dvh!important;overflow-y:auto;margin:0;padding:24px 8px calc(12px + env(safe-area-inset-bottom,0px));border-radius:var(--r-panel) var(--r-panel) 0 0;box-shadow:0 0 0 100vmax var(--scrim),var(--float);z-index:120;transform:none!important}
  :root:root:root:root .composer .mp-wrap .mp-menu:not([hidden])::before,:root:root:root:root .composer .plus-wrap .mp-menu:not([hidden])::before,:root:root:root:root .composer .wf-wrap .mp-menu:not([hidden])::before,:root:root:root:root .composer .att-wrap .mp-menu:not([hidden])::before{content:"";position:absolute;top:8px;left:50%;width:36px;height:5px;margin-left:-18px;border-radius:var(--r-pill);background:var(--fill-strong)}
  :root:root:root:root .mp-menu .mp-row{min-height:44px}

  /* site search and the Chat model picker are already bottom sheets: add the grab bar and the safe area */
  :root:root:root:root .scrim>.search{position:relative;padding-top:24px;padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}
  :root:root:root:root .scrim>.search::before{content:"";position:absolute;top:8px;left:50%;width:36px;height:5px;margin-left:-18px;border-radius:var(--r-pill);background:var(--fill-strong)}
  :root:root:root:root .search .chips .chip{min-height:40px}
  :root:root:root:root .search a.row,:root:root:root:root .mp-pop .mp-mrow{min-height:56px}

  /* popups and the tour sit inside the safe area */
  :root:root:root:root .pop-scrim{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
  :root:root:root:root .pop-x,:root:root:root:root .pop-scrim .cn-pop .pop-x{width:44px;height:44px}
  :root:root:root:root #toast{bottom:calc(24px + env(safe-area-inset-bottom,0px));max-width:calc(100vw - 32px);white-space:normal;text-align:center}
  :root:root:root:root body:has(.ask.live) #toast{bottom:calc(150px + env(safe-area-inset-bottom,0px))}
  :root:root:root:root .tour-acts .tour-b{min-height:40px;padding:0 16px}

  /* tab rows that scroll sideways (Account, legal, Models categories) snap to each tab and never cut one at the edge */
  :root:root:root:root :is(.ac-nav,.acct-nav,.lg-tabs,.lg-nav){scroll-snap-type:x proximity;scroll-padding:0 16px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  :root:root:root:root :is(.ac-nav,.acct-nav,.lg-tabs,.lg-nav)>*{scroll-snap-align:start;flex:none}
  :root:root:root:root :is(.ac-nav,.acct-nav)::after{content:"";flex:0 0 4px}
  :root:root:root:root :is(.ac-navbtn,.b1-navbtn){min-height:44px}

  /* Skills: the hero list reads as one sentence per row, icon on the left */
  :root:root:root:root .skills-hero-copy{padding:28px 20px}
  :root:root:root:root .skills-hero-copy h1{font-size:32px}
  :root:root:root:root .skills-hero-copy li{display:block;position:relative;padding-left:28px;line-height:1.45}
  :root:root:root:root .skills-hero-copy li>.i{position:absolute;left:0;top:2px}

  /* Workflows (coming soon): the buttons line up with the left aligned copy above them */
  :root:root:root:root .wf-soon-page .hero-actions{justify-content:flex-start}

  /* sign in and sign up: the card fills the width between 16px gutters */
  :root:root:root:root .auth-page .auth-l{padding-left:0;padding-right:0}
  :root:root:root:root .auth-page .auth-card{width:100%;max-width:none;padding:24px 20px}

  /* long values never push past the gutter */
  :root:root:root:root .rf-linkrow{min-width:0}
  :root:root:root:root .rf-linkrow .tsd-btn{flex:none}
}
@media (max-width:760px){
  /* the sign in fields win over the generic input rule above (an id selector), so they get 16px here */
  :root:root:root:root #auth-form input,:root:root:root:root .auth-c #auth-form input{font-size:16px}
  :root:root:root:root .auth-l .mark{min-height:44px;display:inline-flex;align-items:center}
  /* segmented controls and tab pills: 40px segments on a phone (Explore, Models, Connect, Profile, Agents, legal, checkout steps, pricing steps) */
  :root:root:root:root :is(.dx-seg,.dx-fchips,.cn-seg,.tabs-pills,.b4-kinds,.lg-tabs,.lg-seg,.ck-steps,.pr-steps,.preset-cats)>:is(a,button){min-height:40px}
  :root:root:root:root .pr-steps>button{min-width:44px}
  :root:root:root:root :is(.fx-chip,.b4-chip,.c-chip,.preset-cat){min-height:40px}
  :root:root:root:root .seg-modes .seg-b{min-height:36px}
  /* text links that act as controls get a full row of height */
  :root:root:root:root :is(.ac-link,.cn-tlink,.b1-flink,.cn-cp-tog){display:inline-flex;align-items:center;min-height:44px}
  :root:root:root:root .ck-incl>summary{min-height:44px}
  :root:root:root:root .like-tile{min-height:44px}
  :root:root:root:root .b1-av-btn{width:44px;height:44px}
  :root:root:root:root :is(.m-field,.m-last,.att-chip,.g-file,.info-scroll) small{font-size:13px}
  :root:root:root:root .pill-red{min-height:40px}
  :root:root:root:root .b4-send{width:44px;height:44px}
  /* the first visit guide card spans the screen between the gutters, under the tile it points at */
  :root:root:root:root .tour-card{left:16px!important;right:16px;width:auto!important}
}
@media (max-width:420px){
  :root:root:root:root .rf-linkrow .rf-copy{padding:0 12px}
}
/* the free message count above the composer is a quiet row, never an outlined box (Robert, 2026-11-16) */
:root:root:root:root .composer .free-top{border:0;background:var(--bg)!important;padding:0 0 0 8px;min-height:32px}
:root:root:root:root .composer .free-top a{display:inline-flex;align-items:center;height:32px;padding:0 14px;border-radius:var(--r-pill);background:var(--fill);color:var(--text);font-size:13px;font-weight:500;text-decoration:none}
:root:root:root:root .composer .free-top a:hover{background:var(--fill-strong)}
/* out of free messages: a soft fill strip inside the composer, no hairline */
:root:root:root:root .composer .limit-bar{box-shadow:none;background:var(--fill);border-radius:var(--r-input)}
@media (max-width:760px){:root:root:root:root .composer .free-top a{height:36px}}
/* dvh, never vh: a phone's toolbar and keyboard change the visible height */
:root:root:root:root .auth-pop{min-height:min(660px,calc(100dvh - 48px))}
:root:root:root:root .lg-toc{max-height:calc(100dvh - 100px)}
/* site search: the row Up and Down land on reads as the hovered row; a shortcut card gets a ring on its picture */
:root:root:root:root .search .pop3-card.hot .pop3-media{outline:2px solid var(--focus-ring);outline-offset:2px}
/* on a touch screen the close key reads Cancel (app.js) and is a full target */
@media (hover:none) and (pointer:coarse){:root:root:root:root .round.kbd{height:44px;padding:0 12px;margin-right:-8px;background:transparent;color:var(--text);font-size:15px;font-weight:500}}
/* Connect for a signed-in account without a paid plan: the paywall pattern, room above the two buttons */
:root:root:root:root .cn-pop .cn-lock-acts{margin-top:24px}
/* Connect paywall (signed in, no plan): breathing room inside the popup, buttons sized to their labels and centered */
:root:root:root:root .cn-pop:has(.cn-lock){padding:32px 32px 28px}
:root:root:root:root .cn-pop .cn-lock-acts{justify-content:center;flex-wrap:wrap}
:root:root:root:root .cn-pop .cn-lock-acts .tsd-btn{flex:0 0 auto;padding:0 24px}
:root:root:root:root .cn-pop .cn-lock ~ .cn-cf-sub{max-width:36ch;margin-left:auto;margin-right:auto;color:var(--muted)}

/* grokbot batch B */
/* account on a phone: the grid fills the screen height, and on a short tab (Billing) the spare height went into the tab
   row, leaving a gap of about 160px above the title. The rows now sit at the top, as on Profile and Usage. */
@media (max-width:900px){:root:root:root:root .acct.ac{align-content:start}}
/* the account email is one line with an ellipsis; the full address is in its title */
:root:root:root:root .ac-id-t p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
/* usage history that did not load: one quiet line with Retry, never a skeleton that stays */
:root:root:root:root .ac-hist-empty{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:16px 0 4px}
:root:root:root:root .ac-hist-empty .tsd-btn .i{width:14px;height:14px}
/* pricing: the plan you are on is a quiet, disabled Current plan; while the plan loads the button keeps its place */
:root:root:root:root .pr-plans .pr-cta.pr-current,:root:root:root:root .pr-plans .pr-cta.pr-current:hover{background:transparent;box-shadow:inset 0 0 0 1px var(--line);color:var(--muted);cursor:default;opacity:1}
:root:root:root:root .pr-plans .pr-cta.pr-wait{background:var(--fill);color:transparent;pointer-events:none}
/* the phone menu: the account menu's usage block and the Theme row */
:root:root:root:root .sheet .sheet-usage{padding-top:20px}
:root:root:root:root .sheet .sheet-usage .credits{margin:0}
:root:root:root:root .sheet .sheet-theme{margin-top:16px;padding:9px 0;font-size:16px;color:var(--muted);background:none}
:root:root:root:root .sheet .sheet-theme:hover{background:none;color:var(--text)}

/* grokbot batch A (2026-11-16): fixes from Grok Bot's QA pass. Kept together here, after everything else. */
/* the code step's Back control: one row, the house chevron then the word (it used to stack, leaving a lone chevron) */
:root:root:root:root .auth-c .auth-back{display:inline-flex;flex-direction:row;align-items:center;gap:6px;min-height:44px;padding:0 8px;border:0;background:none;font:inherit;font-size:14px;color:var(--muted);cursor:pointer;text-decoration:none}
:root:root:root:root .auth-c .auth-back:hover{color:var(--text)}
:root:root:root:root .auth-c .auth-back .i{width:16px;height:16px;flex:none}
/* the footer: the Coming soon tag sits on the first coming-soon row, beside its name */
:root:root:root:root .bf-col li.bf-soon-row{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;min-width:0}
:root:root:root:root .bf-col li.bf-soon-row .soon-chip{margin-left:0;flex:none}
/* the footer word fits before the script sizes it too (the script then fills the width with 4% to spare) */
:root:root:root:root .bf-word{font-size:min(26vw,360px)}
/* thumbs up and down: the picked one is solid, so it never reads like the other one under the pointer */
:root:root:root:root .g-acts .msg-ib:is([data-ga="up"],[data-ga="down"]).on{background:var(--invert-bg);color:var(--invert-text)}
/* the model that answered, over each reply: its logo and a small muted name */
:root:root:root:root .g-reply .g-meta .g-mlogo{display:inline-flex;width:20px;height:20px;border-radius:8px;overflow:hidden;flex:none;box-shadow:inset 0 0 0 1px var(--line)}
:root:root:root:root .g-reply .g-meta .g-mlogo img{width:100%;height:100%;object-fit:contain}
:root:root:root:root .g-reply .g-meta .g-mname{font-size:12px;line-height:20px;color:var(--muted);white-space:nowrap}
/* the Chat page's paperclip shows only for a model that reads images */
:root:root:root:root .composer .att-b[hidden],:root:root:root:root .att-menu .mp-row[hidden]{display:none}
/* a locked model's tag says See plans */
:root:root:root:root .mp-mrow .mp-see{white-space:nowrap}

/* ── status screens (Robert approved 2026-11-17): suspended, appeal, account deleted, chat notices, referrals ── */
html.sus-lock,html.sus-lock body{overflow:hidden}
.sus-ov{position:fixed;inset:0;z-index:1000;background:var(--bg);color:var(--text);overflow:auto;display:flex;flex-direction:column}
.sus-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 24px;padding-top:max(14px,env(safe-area-inset-top));border-bottom:1px solid var(--line)}
.sus-bar .mark{text-decoration:none;color:inherit}
.sus-body{width:100%;max-width:560px;margin:0 auto;padding:64px 24px 80px;display:flex;flex-direction:column;gap:20px}
.sus-body h1{margin:0;font-size:44px;line-height:1.1;font-weight:500;letter-spacing:-.03em;text-wrap:balance}
.sus-body h2{margin:8px 0 0;font-size:20px;font-weight:500;letter-spacing:-.01em}
.sus-body p{margin:0}
.sus-chip{align-self:flex-start;font-size:13px;padding:4px 12px;border-radius:var(--r-pill);background:var(--fill);color:var(--muted)}
.sus-facts{border-radius:20px;box-shadow:inset 0 0 0 1px var(--line);padding:4px 20px}
.sus-facts div{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-top:1px solid var(--line);font-size:15px}
.sus-facts div:first-child{border-top:0}
.sus-facts span:first-child{color:var(--muted)}
.sus-facts span:last-child{text-align:right;overflow-wrap:anywhere}
.sus-steps{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px}
.sus-steps li{display:flex;gap:12px;align-items:flex-start}
.sus-steps .n,.rf2-steps .n{flex:none;width:24px;height:24px;border-radius:var(--r-pill);background:var(--fill);display:grid;place-items:center;font-size:13px;font-weight:500}
.sus-addr{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:14px;background:var(--fill);border-radius:8px;padding:2px 8px;overflow-wrap:anywhere}
.sus-acts{display:flex;gap:12px;flex-wrap:wrap}
.sus-acts .tsd-btn{height:48px;padding:0 24px;font-size:16px}
.sus-acts .i,.st-acts .i,.rf2-share .i,.rf2-linkrow .i{width:16px;height:16px}
.sus-legal{display:flex;gap:16px;font-size:14px}
.sus-legal a{color:var(--muted)}
.sus-lab{display:block;font-size:13px;color:var(--muted);margin-bottom:-12px}
.sus-field{min-height:48px;border-radius:var(--r-pill);background:var(--fill);display:flex;align-items:center;padding:0 20px;font-size:15px;color:var(--muted);overflow-wrap:anywhere}
.sus-area{width:100%;min-height:150px;border:0;border-radius:20px;background:var(--fill);color:var(--text);padding:14px 18px;font:inherit;font-size:16px;resize:vertical;outline:none}
.sus-area:focus-visible{box-shadow:0 0 0 2px var(--focus-ring)}
.sus-err{color:var(--danger);font-size:14px}
.sus-done{width:56px;height:56px;border-radius:var(--r-pill);background:var(--fill);display:grid;place-items:center}
@media (max-width:640px){.sus-bar{padding:12px 16px}.sus-body{padding:40px 16px 48px}.sus-body h1{font-size:32px}.sus-acts{flex-direction:column}.sus-acts .tsd-btn{width:100%}}
.st-notice{display:flex;gap:12px;align-items:flex-start;border-radius:20px;box-shadow:inset 0 0 0 1px var(--line);padding:16px 18px}
.st-notice>.i{flex:none;margin-top:2px}
.st-notice b{display:block;font-weight:500;margin-bottom:4px}
.st-notice p{margin:0;color:var(--muted);font-size:14px}
.st-notice .st-acts{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:12px}
.st-notice .st-acts .wr-chat{margin:0}
.st-notice .st-note{margin-top:10px}
/* TSD-67: the past-due payment strip under the top bar (the st-notice pattern, full width) */
.due-bar{display:flex;gap:10px;align-items:center;padding:10px 16px;background:var(--fill);border-bottom:1px solid var(--line);font-size:14px}
.due-bar>.i{flex:none}
.due-bar p{margin:0}
.due-bar a{font-weight:500;color:inherit;text-decoration:underline;text-underline-offset:3px}
.due-bar .due-x{margin-left:auto}
.rf2{max-width:880px;display:flex;flex-direction:column;gap:28px}
.rf2 h1{margin:0;font-size:32px;line-height:1.15;font-weight:500;letter-spacing:-.03em}
.rf2 h2{margin:0 0 12px;font-size:20px;font-weight:500;letter-spacing:-.01em;display:flex;align-items:center;gap:10px}
.rf2-crumb{display:none;align-items:center;gap:8px;font-size:14px;color:var(--muted);text-decoration:none}
.rf2-crumb .i{width:16px;height:16px}
.rf2-lead{margin:6px 0 0;color:var(--muted)}
.rf2-card{border-radius:20px;box-shadow:inset 0 0 0 1px var(--line);padding:20px}
.rf2-lab{font-size:13px;color:var(--muted);display:block;margin-bottom:8px}
.rf2-linkrow{display:flex;gap:8px;align-items:center}
.rf2-linkrow .tsd-btn{height:48px;padding:0 22px}
.rf2-link{flex:1;min-width:0;height:48px;border-radius:var(--r-pill);background:var(--fill);display:flex;align-items:center;padding:0 20px;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rf2-share{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.rf2-share .tsd-btn{height:40px;padding:0 16px;font-size:14px;font-weight:400}
.rf2-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.rf2-stats div{border-radius:20px;box-shadow:inset 0 0 0 1px var(--line);padding:18px 20px;display:flex;flex-direction:column;gap:6px}
.rf2-stats span{font-size:13px;color:var(--muted)}
.rf2-stats b{font-size:32px;font-weight:500;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.rf2-note{margin:8px 0 0;font-size:13px;color:var(--faint)}
.rf2-steps{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px}
.rf2-steps li{display:flex;gap:12px;align-items:flex-start;font-size:15px}
.rf2-chip{font-size:12px;font-weight:400;padding:2px 10px;border-radius:var(--r-pill);box-shadow:inset 0 0 0 1px var(--line);color:var(--muted)}
.rf2-muted{margin:0;font-size:14px;color:var(--muted)}
@media (max-width:640px){.rf2-crumb{display:inline-flex}.rf2-linkrow{flex-direction:column;align-items:stretch}.rf2-linkrow .tsd-btn{width:100%}.rf2-share{display:grid;grid-template-columns:1fr 1fr}.rf2-stats{gap:8px}.rf2-stats div{padding:14px 12px}.rf2-stats b{font-size:24px}}
#rfbody{display:flex;flex-direction:column;gap:28px}
.sus-done .i{width:24px;height:24px}

.rf2-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.rf2-terms{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--muted)}
.rf2-faq{display:flex;flex-direction:column;border-radius:20px;box-shadow:inset 0 0 0 1px var(--line)}
.rf2-faq details{padding:14px 20px;border-top:1px solid var(--line)}
.rf2-faq details:first-child{border-top:0}
.rf2-faq summary{cursor:pointer;font-weight:500;font-size:15px;list-style:none}
.rf2-faq summary::-webkit-details-marker{display:none}
.rf2-faq p{margin:8px 0 0;font-size:14px;color:var(--muted)}
@media (max-width:640px){.rf2-stats{grid-template-columns:1fr 1fr}}
.rf2-muted a{color:var(--text);text-decoration:underline;text-underline-offset:3px}

.rf2-invite{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.rf2-invrow{display:flex;gap:8px}
.rf2-invrow input{flex:1;min-width:0;height:44px;border:0;border-radius:var(--r-pill);background:var(--fill);color:var(--text);padding:0 18px;font:inherit;font-size:15px;outline:none}
.rf2-invrow input:focus-visible{box-shadow:0 0 0 2px var(--focus-ring)}
.rf2-invrow .tsd-btn{height:44px;padding:0 18px;font-size:14px;font-weight:400}
.rf2-invrow .i{width:16px;height:16px}
.rf2-invmsg{margin:8px 0 0;font-size:13px;color:var(--muted)}
.rf2-invmsg.bad{color:var(--danger)}
@media (max-width:640px){.rf2-invrow{flex-direction:column}.rf2-invrow .tsd-btn{width:100%}}
/* the real wall (2026-11-19, Robert approved; TSD Design, Proposed, Checkout 1): a card above the composer when free messages run out */
:root:root:root:root .composer .wall-card{text-align:left;display:flex;flex-direction:column;gap:12px;margin:0 0 12px;padding:16px;border-radius:var(--r-input);background:var(--bg);box-shadow:inset 0 0 0 1px var(--line)}
:root:root:root:root .composer .wall-card[hidden]{display:none}
.wall-card .wc-top b{display:block;font-size:16px;font-weight:500;color:var(--text)}
.wall-card .wc-top p{margin:4px 0 0;font-size:14px;color:var(--muted)}
.wall-card .wc-pts{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.wall-card .wc-pts li{display:flex;gap:8px;align-items:flex-start;font-size:14px;color:var(--text);line-height:1.4}
.wall-card .wc-pts .i{width:16px;height:16px;flex:none;margin-top:1px}
.wall-card .wc-price{display:flex;gap:8px;align-items:baseline}
.wall-card .wc-price b{font-size:24px;font-weight:500;letter-spacing:-.02em;color:var(--text)}
.wall-card .wc-price span{font-size:14px;color:var(--muted)}
.wall-card .wc-acts{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.wall-card .wc-go{height:44px;padding:0 20px;font-size:15px}
.wall-card .wc-all{font-size:14px;color:var(--text);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--a12)}
.wall-card .wc-note{margin:0;font-size:13px;color:var(--muted)}
@media (max-width:599px){.wall-card .wc-acts{flex-direction:column;align-items:stretch;gap:12px}.wall-card .wc-go{justify-content:center}.wall-card .wc-all{text-align:center}}
/* phone checkout (2026-11-19, Robert approved; TSD Design, Proposed, Checkout 2) */
.ck .ck-cta-for{display:none}
@media (max-width:599px){
  :root:root:root:root .ck .ck-cols{display:flex;flex-direction:column;gap:16px}
  :root:root:root:root .ck .ck-right.ck-card,:root:root:root:root .ck .ck-sum,:root:root:root:root .ck .ck-left{display:contents}
  .ck .ck-sum>*{order:1}
  .ck .ck-left>*{order:4}
  .ck #ck-express{order:2} .ck #ck-or{order:3}
  .ck .ck-sum>details.ck-incl{order:5;margin-top:0}
  .ck .ck-promo,.ck .ck-save{order:6}
  .ck .ck-legal{order:7;margin-top:0}
  .ck{padding-bottom:calc(120px + env(safe-area-inset-bottom, 0px))}
  :root:root:root:root .ck .ck-cta-wrap{position:fixed;left:0;right:0;bottom:var(--ck-kb, 0px);z-index:30;margin:0;padding:12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));background:var(--bg);box-shadow:0 -1px 0 var(--line)}
  :root:root:root:root .ck .ck-cta-wrap .ck-fine{margin-top:8px;display:flex;justify-content:center;align-items:center;gap:6px;font-size:12px;text-align:center}
  .ck .ck-cta-for{display:inline;margin-left:.28em}
}

/* interest tiles, shared by Account > Interests (pages/account.js) */
.ob-tiles{display:flex;flex-wrap:wrap;gap:8px}
.ob-tile{display:inline-flex;align-items:center;gap:6px;font:inherit;font-size:14px;padding:8px 14px;border-radius:999px;border:0;background:transparent;color:var(--fg);box-shadow:inset 0 0 0 1px var(--line);cursor:pointer}
.ob-tile .ic,.ob-tile svg{width:16px;height:16px;color:var(--fg2)}.ob-tile:hover{background:var(--a6)}
.ob-tile.on{background:var(--fg);color:var(--bg);box-shadow:none}.ob-tile.on .ic,.ob-tile.on svg{color:inherit}
.pz-typed{height:44px;border-radius:999px;border:0;background:var(--a6);color:var(--fg);padding:0 16px;font:inherit;font-size:15px;outline:none;max-width:420px;width:100%}
.pz-typed:focus{box-shadow:0 0 0 1.5px var(--fg)}
.ob-acts{display:flex;gap:8px;flex-wrap:wrap}
.pz{display:flex;flex-direction:column;gap:16px;padding:20px}.pz .ac-h2{margin:0}.pz-l{display:flex;flex-direction:column;gap:8px;font-size:14px;color:var(--fg2)}

.ob-tile:disabled{opacity:.4;cursor:default}.ob-tile:disabled:hover{background:transparent}

/* Robert t198u, phones: a quieter composer. The model picker is a small pill (logo and name, no card), the
   Chat/Agents toggle is smaller and lower contrast, and both sit on one row with Send. */
@media (max-width:600px){
  :root:root:root:root:root .composer .composer-row{flex-wrap:nowrap;gap:6px;align-items:center}
  :root:root:root:root:root .composer .seg-modes{padding:2px;background:transparent;box-shadow:inset 0 0 0 1px var(--line)}
  :root:root:root:root:root .composer .seg-modes .seg-b{height:32px;min-height:32px;padding:0 10px;font-size:12px;font-weight:400;gap:4px;color:var(--fg2)}
  :root:root:root:root:root .composer .seg-modes .seg-b.on{background:var(--a6);color:var(--fg)}
  :root:root:root:root:root .composer .seg-modes .seg-ic,:root:root:root:root:root .composer .seg-modes .seg-b>svg{display:none}
  :root:root:root:root:root .composer .mp-wrap .mp-btn{height:32px;padding:0 8px 0 6px;font-size:13px;gap:4px;background:transparent;box-shadow:none;color:var(--fg2)}
  :root:root:root:root:root .composer .mp-wrap .mp-btn:hover{background:var(--a6)}
  /* Robert phone QA (2026-11-19): the model pill may shrink and its name ellipsizes, so a long model name can never
     push the Send button off the right edge. Send stays flex:none (b2-chat), seg-modes is flex:none; only the pill gives. */
  :root:root:root:root:root .composer .composer-row>.mp-wrap{flex:0 1 auto;min-width:0;max-width:100%}
  :root:root:root:root:root .composer .mp-wrap .mp-btn{min-width:0;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  :root:root:root:root:root .composer .mp-btn-lg{width:16px;height:16px;border-radius:8px}
  :root:root:root:root:root .composer .mp-wrap .mp-btn svg{width:12px;height:12px}
}

/* a disabled action button in the interests panel (Account > Interests) looks off until something is picked */
.ob-acts .tsd-btn:disabled{opacity:.4;cursor:default}
/* #7 (Robert, 2026-11-19): on a phone the composer model pill shows just the logo + caret, never a truncated name like "GL…". */
@media (max-width:600px){:root:root:root:root:root:root .composer .composer-row .mp-wrap{min-width:0;width:auto;flex:0 0 auto;max-width:48%}:root:root:root:root:root:root .composer .composer-row .mp-wrap .mp-btn{gap:6px;min-width:0;max-width:100%}:root:root:root:root:root:root .composer .composer-row .mp-wrap .mp-btn .mp-btn-nm{flex:none;display:inline-block;min-width:0;max-width:clamp(0px, calc(100vw - 300px), 7.5em);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:root:root:root:root:root:root .composer .composer-row:has(> .att-wrap > .att-b:not([hidden])) .mp-wrap .mp-btn .mp-btn-nm{max-width:clamp(0px, calc(100vw - 346px), 7.5em)}}   /* TSD-172: the name stays readable on a phone; its width is capped by the screen (and the attach button) so the row never spills out of the composer */

/* ── System status page (pages/status.js, Phase 2 item E) ──────────────────────────────────────────────────
   Per-model health, first-token latency and chat failover. Green = --live/--ok, red = --danger; amber has no
   house token so it is scoped here, light and dark. */
.st-page{max-width:760px;margin:0 auto;padding:48px 16px 96px;--st-amber:#B46A00;--st-amber-soft:rgba(180,106,0,.14)}
:root:root:root[data-theme="dark"] .st-page{--st-amber:#F5A623;--st-amber-soft:rgba(245,166,35,.16)}
.st-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:6px}
.st-head h1{font-size:30px;line-height:1.1;letter-spacing:-.02em;margin:0}
.st-sub{margin:6px 0 0;font-size:15px}
.st-act{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.st-upd{white-space:nowrap}
.st-dot{width:9px;height:9px;border-radius:999px;flex:none;display:inline-block;background:var(--muted)}
.st-dot.ok{background:var(--live);box-shadow:0 0 0 3px var(--live-soft)}
.st-dot.warn{background:var(--st-amber);box-shadow:0 0 0 3px var(--st-amber-soft)}
.st-dot.down{background:var(--danger);box-shadow:0 0 0 3px var(--danger-soft)}
.st-overall{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:22px 0 24px;font-size:18px;font-weight:500}
.st-overall .st-dot{width:11px;height:11px}
.st-overall.ok{color:var(--live)}
.st-overall.warn{color:var(--st-amber)}
.st-overall-sub{font-weight:400;font-size:15px}
.st-list{display:flex;flex-direction:column;border:1px solid var(--card-border);border-radius:var(--r-card);overflow:hidden;background:var(--card-fill)}
.st-row{display:flex;align-items:center;gap:12px;padding:16px 18px;flex-wrap:wrap}
.st-row + .st-row{border-top:1px solid var(--line)}
.st-row .st-name{display:flex;align-items:center;min-width:0}
.st-row .st-name b{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st-grow{flex:1 1 20px}
.st-meta{display:flex;align-items:center;gap:16px;font-size:13.5px;color:var(--muted);white-space:nowrap;margin-left:auto}
.st-word{font-size:12px;letter-spacing:.01em}
.st-word.ok{color:var(--live)}
.st-word.warn{color:var(--st-amber)}
.st-word.down{color:var(--danger)}
.st-ttft{color:var(--text);font-variant-numeric:tabular-nums}
.st-fo-wrap{margin-top:26px}
.st-fo{border:1px solid var(--card-border);border-radius:var(--r-inset);padding:14px 16px;background:var(--card-fill)}
.st-fo.warn{border-color:var(--st-amber-soft)}
.st-fo-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:15px}
.st-fo-line b{font-weight:500}
.st-fo.warn .st-fo-state{color:var(--st-amber)}
.st-note{margin:10px 2px 0}
.st-skel{opacity:.5}
.st-skel .st-name b{display:inline-block;width:140px;border-radius:6px;background:var(--fill)}
@media (max-width:560px){.st-head h1{font-size:25px}.st-meta{width:100%;margin-left:19px;justify-content:flex-start}.st-grow{display:none}}

/* conversion A/B walls (Robert, 2026-11-19): arms b and c lead with a bolder, bigger headline; the $10 lives in the one price line */
.wall-card .wc-top.wc-big b{font-size:18px;font-weight:600;letter-spacing:-.01em}
.wall-card .wc-pts li.wc-more{color:var(--muted);padding-left:24px}

/* ── TSD-97: the Inkling 2 Mini Uncensored page (pages/inkling.js; approved design TSD Design pages/ghost-inkling.html) ── */
.ik{max-width:1240px;margin:0 auto;padding:0 32px 96px}
.ik-hero{padding-bottom:64px}
.ik-hero h1{max-width:1200px}
/* the Explore stack with two tiles: Thinking Machines behind, Inkling in front, swapping (G.heroSpin keep) */
.hero-stack.ik-duo .hs-t:nth-child(2){z-index:2;transform:none;width:.84em;height:.84em;margin-right:0}
.hero-stack.ik-duo .hs-t img{width:84%;height:84%;object-fit:contain}
.hero-stack.ik-duo .hs-t.ik-tm img{width:100%;height:100%;object-fit:cover}
.ik-chat{display:flex;justify-content:center;padding:16px 0 0}
.ik .ik-stage{width:min(760px,100%);max-height:760px;min-height:0;overflow:auto;display:flex;flex-direction:column;border:0;background:transparent;border-radius:0}
.ik-sect{padding-top:96px}
.ik-h{font-size:32px;font-weight:500;letter-spacing:-.03em;line-height:1.12;color:var(--text);margin:0 0 24px}
.ik-sub{font-size:16px;color:var(--muted);margin:-16px 0 24px}
.ik-feat{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:56px 40px}
.ik-f{display:flex;flex-direction:column;gap:12px}
.ik-f .i{width:24px;height:24px;color:var(--text)}
.ik-f b{font-size:16px;font-weight:500;color:var(--text);margin-top:4px}
.ik-f span{font-size:14px;line-height:1.5;color:var(--muted)}
.ik-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.92em;background:var(--fill);border-radius:8px;padding:1px 6px}
.ik-run{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,440px);gap:48px;align-items:start}
.ik-run > *{min-width:0}
.ik-steps{list-style:none;margin:0;padding:0}
.ik-steps li{display:flex;gap:16px;align-items:flex-start;padding:20px 0;border-top:1px solid var(--line)}
.ik-steps li:first-child{border-top:0;padding-top:4px}
.ik-steps .ik-n{display:grid;margin:0;width:32px;height:32px;border-radius:var(--r-pill);background:var(--fill);display:grid;place-items:center;font-size:14px;font-weight:500;flex:none}
.ik-steps b{display:block;font-size:18px;font-weight:500;color:var(--text);letter-spacing:-.01em}
.ik-steps span{display:block;font-size:14px;line-height:1.5;color:var(--muted);margin-top:4px}
/* Run it on your Mac (TSD-107): a little more air above it than the other sections, the Claude Code / Codex / Terminal
   picker on the house .seg, and the "Don't have it yet?" installer line inside step 1 */
.ik .ik-runsect{padding-top:136px}
/* the two columns share one top and one bottom: the heading sits in the left column, the panel starts level
   with it, and the steps spread to end level with the panel's last line */
.ik .ik-run{align-items:stretch}
.ik .ik-runl{display:flex;flex-direction:column}
.ik .ik-runl .ik-steps{flex:1;display:flex;flex-direction:column;justify-content:space-between}
/* Run it on your Mac, the Connect popup's shape (Robert, 11-23): one padded card, Ghost and Inkling joined, Tool and
   Model rows, one button, a three-step picture once copied */
.ik .ik-run > .ik-panel{align-self:stretch;display:flex;flex-direction:column;padding:32px 28px 24px;border-radius:28px;background:var(--elevated);box-shadow:inset 0 0 0 1px var(--line)}
.ik .ik-cv{margin:4px 0 4px}
.ik .ik-mk{background:#FFFFFF}
.ik .ik-mk img{width:72%;height:72%;object-fit:contain}
.ik .ik-run > .ik-panel > .ik-ph{text-align:center;font-size:24px;font-weight:500;letter-spacing:-.02em;line-height:1.2;margin:16px 0 0}
.ik .ik-psub{text-align:center;color:var(--muted);font-size:14px;margin:8px 0 20px}
.ik .ik-rows{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;align-items:center}
/* the Tool control gets the card's full width (labels above), so each pill holds its icon and name with room to spare */
.ik .ik-rows{grid-template-columns:1fr;gap:8px}
.ik .ik-rows .cn-sel-l{margin-top:6px}
.ik .ik-rows .cn-seg{min-width:0;padding:4px;gap:4px}
.ik .ik-rows .cn-seg>button{min-height:42px;flex:1 1 auto;min-width:0;padding:6px 14px;font-size:14px;gap:8px;white-space:nowrap}
.ik .ik-rows > span:empty{display:none}
.ik .ik-tool-hint{margin:0;font-size:13px;color:var(--muted)}
.ik .ik-rows .cn-seg>button .cn-lt,.ik .ik-rows .cn-seg>button .i{flex:none}
.ik .ik-model{display:flex;align-items:center;gap:10px;min-width:0;height:48px;border-radius:12px;background:var(--fill);padding:0 12px}
.ik .ik-model b{font-weight:500;font-size:15px;white-space:nowrap}
.ik .ik-model span:last-child{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ik .ik-run > .ik-panel .ik-wide{margin-top:20px;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.ik .ik-spin{width:16px;height:16px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:ik-spin .8s linear infinite}
@keyframes ik-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.ik .ik-spin{animation:none}}
.ik .ik-how{list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ik .ik-how li{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:12px 8px;border-radius:14px;background:var(--fill)}
.ik .ik-how li > .i,.ik .ik-how li > .cn-lt{width:22px;height:22px}
.ik .ik-how b{font-size:14px;font-weight:500}
.ik .ik-how span:last-child{font-size:12px;color:var(--muted);line-height:1.35}
.ik .ik-kbd{font:600 13px ui-monospace,SFMono-Regular,Menlo,monospace;padding:2px 6px;border-radius:6px;background:var(--fill-strong)}
.ik .ik-help{text-align:center;font-size:13px;color:var(--faint);margin:14px 0 0}
.ik .ik-help a{color:var(--muted);text-decoration:underline}
@media (max-width:560px){.ik .ik-rows{grid-template-columns:1fr}.ik .ik-how{grid-template-columns:1fr}}
.ik .ik-pick{display:flex;flex-direction:column;gap:8px;margin:16px 0 8px}
.ik .ik-pick .cn-seg>button{min-height:40px;font-size:14px}
.ik .ik-pick .cn-lt{flex:none}
.ik .ik-pick .i{width:18px;height:18px}
.ik-need{margin-top:10px}
.ik-need summary{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:500;color:var(--text);cursor:pointer;list-style:none}
.ik-need summary::-webkit-details-marker{display:none}
.ik-need summary .i{width:16px;height:16px;color:var(--muted);transition:transform .2s ease-out}
.ik-need[open] summary .i{transform:rotate(180deg)}
.ik-need > span{display:block;font-size:14px;line-height:1.5;color:var(--muted);margin-top:8px}
.ik-steps .ik-need .ik-line{margin-top:8px}
.ik .ik-panel{padding:24px;border-radius:20px;background:transparent;box-shadow:inset 0 0 0 1px var(--line)}
.ik .ik-stage .ask:not(.live){min-height:0;padding:32px 0 0}
/* the composer at the Chat page's width (760), not shrink-wrapped by the stage; the model pill is fixed to Inkling */
.ik .ik-stage .ask{width:100%;max-width:760px;margin:0 auto}
.ik .ik-stage .mp-btn.ik-fixed{pointer-events:none;cursor:default}
.ik-ph{display:block;font-size:16px;font-weight:500;color:var(--text)}
.ik-dl{display:grid;grid-template-columns:auto 1fr;font-size:14px;margin:12px 0 0}
.ik-dl dt{color:var(--muted);padding:9px 16px 9px 0;border-top:1px solid var(--line)}
.ik-dl dd{margin:0;padding:9px 0;border-top:1px solid var(--line);text-align:right;color:var(--text)}
.ik-dl dt:first-of-type,.ik-dl dd:first-of-type{border-top:0}
.ik-cmdh{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500;color:var(--text);margin-top:20px}
.ik-cmdh .i{width:16px;height:16px}
.ik-line{display:flex;align-items:center;gap:8px;background:var(--fill);border-radius:var(--r-input);padding:4px 4px 4px 12px;margin-top:8px}
.ik-line code{flex:1;min-width:0;font:13px ui-monospace,SFMono-Regular,Menlo,monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text)}
.ik-line.locked code{font-family:inherit;color:var(--faint)}
.ik-copy{width:32px;height:32px;border:0;border-radius:var(--r-pill);background:transparent;color:var(--text);display:grid;place-items:center;cursor:pointer;flex:none}
.ik-copy:hover{background:var(--fill-strong)}.ik-copy:disabled{color:var(--faint);cursor:default;background:transparent}
.ik-copy .i{width:16px;height:16px}
.ik-wide{width:100%;margin-top:16px}
.ik-note{font-size:13px;color:var(--faint);text-align:center;margin:12px 0 0}
.ik-err{display:flex;gap:8px;align-items:center;font-size:13px;color:var(--text);margin:12px 0 0}
.ik-err .i{width:16px;height:16px;flex:none}
.ik-sk{height:14px;border-radius:8px;background:var(--fill);margin-top:16px}.ik-sk.w60{width:60%}
.ik-faq{border-top:1px solid var(--line)}
.ik-faq details{border-bottom:1px solid var(--line)}
.ik-faq summary{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:56px;padding:12px 4px;font-size:16px;font-weight:500;color:var(--text);cursor:pointer;list-style:none}
.ik-faq summary::-webkit-details-marker{display:none}
.ik-faq summary .i{transition:transform .2s ease-out;color:var(--muted);flex:none}
.ik-faq details[open] summary .i{transform:rotate(180deg)}
.ik-faq p{font-size:15px;line-height:1.6;color:var(--muted);padding:0 4px 20px;max-width:720px;margin:0}
.ik-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-radius:20px;box-shadow:inset 0 0 0 1px var(--line);overflow:hidden}
.ik-facts > div{padding:16px 20px;box-shadow:inset 1px 0 0 var(--line)}
.ik-facts > div:first-child{box-shadow:none}
.ik-facts span{display:block;font-size:13px;color:var(--faint)}
.ik-facts b{display:block;font-size:20px;font-weight:500;letter-spacing:-.02em;color:var(--text);margin-top:2px}
/* Get Pro: the checkout page in the house popup; the checkout drops its own bar and footer (?embed=1) */
.pop-panel .ik-ck{display:block;width:min(900px,86vw);height:min(760px,78vh);border:0;border-radius:16px;background:var(--bg)}
body.ck-embed #bar,body.ck-embed #foot{display:none}
@media (max-width:900px){
  .ik{padding:0 16px 64px}
  .ik-feat{grid-template-columns:1fr 1fr;gap:40px 24px}
  .ik-run{grid-template-columns:1fr;gap:32px}
  .ik-facts{grid-template-columns:1fr 1fr}
  .ik-facts > div:nth-child(3),.ik-facts > div:nth-child(4){box-shadow:inset 0 1px 0 var(--line)}
  .ik-facts > div:nth-child(4){box-shadow:inset 1px 0 0 var(--line),inset 0 1px 0 var(--line)}
  .ik-sect{padding-top:64px}
  .ik .ik-runsect{padding-top:96px}
  .pop-panel .ik-ck{width:92vw;height:80vh}
}
/* the landing page's "No project | Connect with" row: the same gap under the composer as the model page (.dx-model .c-under) */
:root:root .ik .c-under{padding:12px 16px 0;margin:0}

/* TSD-97 (Robert, live test): the landing chat is a fixed-height panel, about one screen tall, with the composer
   pinned at its bottom and the thread scrolling inside it, so sending or streaming never moves the page. The title
   row, the thread and the composer share one 760px column and left edge, like Chat. */
:root:root .ik .ik-stage{height:min(860px,calc(100dvh - 140px));min-height:520px;max-height:none;overflow-y:auto;overscroll-behavior:contain;width:min(760px,100%)}
:root:root .ik .ik-stage .ask:not(.live){min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 0}
:root:root .ik .ik-stage > .thread-bar,:root:root:root .ik .ik-stage .ask.live{width:100%;max-width:760px;margin-left:auto;margin-right:auto;padding-left:0;padding-right:0;box-sizing:border-box}
:root:root:root .ik .ik-stage .ask.live #thread,:root:root:root .ik .ik-stage .ask.live .composer{width:100%;max-width:none;margin-left:0;margin-right:0;box-sizing:border-box}
@media (max-width:900px){:root:root .ik .ik-stage{height:calc(100dvh - 120px);min-height:440px}}
:root:root .ik .ik-stage .ask:not(.live) > #composer,:root:root .ik .ik-stage .ask:not(.live) > .c-under,:root:root .ik .ik-stage .ask:not(.live) > .cwrap{width:100%;align-self:stretch}
/* phones: Chat pins its composer to the screen (position: fixed); in the landing panel it stays at the panel's bottom */
@media (max-width:760px){:root:root:root .ik .ik-stage .ask.live .composer{position:sticky;left:auto;right:auto;bottom:0;width:100%;max-width:none;margin:0}}
/* the composer sits at the panel's bottom even while the thread is short */
:root:root:root .ik .ik-stage .ask.live{display:flex;flex-direction:column;min-height:calc(100% - 48px)}
:root:root:root .ik .ik-stage .ask.live #thread{flex:1 0 auto}

/* Install with Claude Code or Codex: the ready prompt, scrollable, under the raw command */
.ik .ik-agenth{margin-top:24px}
.ik .ik-agentp{font-size:13px;color:var(--muted);margin:2px 0 4px}
.ik .ik-line.ik-agent{align-items:flex-start}
.ik .ik-line.ik-agent pre{flex:1;min-width:0;margin:0;padding:8px 0;max-height:168px;overflow:auto;font:12px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap;word-break:break-word;color:var(--text)}
.ik .ik-line.ik-agent.locked pre{font-family:inherit;font-size:13px;color:var(--faint)}

/* the steps after the command, the same as the installer's closing block */
.ik .ik-next{margin-top:20px;padding-top:16px;border-top:1px solid var(--line);font-size:14px;color:var(--text)}
.ik .ik-next b{display:block;font-weight:500;margin-bottom:8px}
.ik .ik-next ol{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:8px;color:var(--muted);line-height:1.5}
@media (max-width:900px){:root:root .ik .c-under{padding:12px 4px 0}}   /* phones: the model page's own value */

/* Inkling page, 11-24 (Robert): the chat scrolls with the page (no scroll trap); the install sits centered under it
   with room to breathe: instructions on the left, the card on the right. */
:root:root .ik .ik-stage{overscroll-behavior:auto}
:root:root .ik .ik-stage:not(:has(.ask.live)){height:auto;min-height:0;overflow:visible}
.ik .ik-runsect{padding-top:160px}
.ik .ik-run{max-width:1000px;margin-left:auto;margin-right:auto;align-items:center}
@media (max-width:900px){.ik .ik-runsect{padding-top:96px}}
/* TSD-159: the 18+ confirmation on the sign-in and sign-up card (required before any account is created) */
:root:root:root .auth-c .auth-age{width:100%;text-align:left;display:flex;align-items:flex-start;gap:10px;font-size:14px;color:var(--text)!important;line-height:1.45;cursor:pointer;margin:2px 0 4px}
:root:root:root .auth-c .auth-age input[type=checkbox]{padding:0!important;box-sizing:border-box!important;min-height:0!important;box-shadow:none!important;border:0!important;appearance:none;-webkit-appearance:none;flex:0 0 18px!important;width:18px!important;min-width:18px!important;max-width:18px!important;height:18px!important;margin:1px 0 0;border-radius:8px;background:var(--fill-strong)!important;display:grid;place-items:center;cursor:pointer}
:root:root:root .auth-c .auth-age input[type=checkbox]:checked{background:var(--invert-bg)!important}
:root:root:root .auth-c .auth-age input[type=checkbox]:checked::after{content:"";width:5px;height:9px;border:solid var(--invert-text);border-width:0 2px 2px 0;transform:translateY(-1px) rotate(45deg)}
:root:root:root .auth-c .auth-age input:focus-visible{outline:1.5px solid var(--text);outline-offset:2px}
:root:root:root .auth-c .auth-btn:disabled{opacity:.5;cursor:not-allowed}
/* TSD-173 (Robert): Sign out in the account sidebar reads red */
:root:root:root:root:root:root .acct .ac-nav [data-act="sign-out"],:root:root:root:root:root:root .acct .ac-nav [data-act="sign-out"]:hover,:root:root:root:root:root:root .acct .ac-nav [data-act="sign-out"] .i{color:var(--danger)}
/* TSD-189 (Robert 11-25): the model picker scrolls. The popup has a fixed height but its grid row sized to the content (1,241px), so the list never got a scroll area. */
:root:root:root .mp-pop.mp-pv-pop{grid-template-rows:minmax(0,1fr)}:root:root:root .mp-pv-pop>.mp-pv-l{min-height:0;overflow:hidden}
/* TSD-189 (Robert 11-25): a running chat keeps its title clear of the pulsing dot (it sat on top of the words) */
:root:root:root:root .side .sb-chat:has(.sb-run),:root:root:root:root .side .sb-chat-row .sb-chat:has(.sb-run){padding-right:32px}:root:root:root:root .side .sb-chat-row:hover .sb-chat:has(.sb-run),:root:root:root:root .side .sb-chat-row.on .sb-chat:has(.sb-run){padding-right:56px}
/* TSD-187: the setup video plays wide enough to read the screen recording */
:root:root:root:root .onb-pop .pop-panel{width:min(1040px,calc(100vw - 32px));max-width:none}

/* TSD-187 (Robert): the video popup is just the video and the close button, no title */
:root:root:root:root .onb-pop .pop-head b{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}:root:root:root:root .onb-pop .pop-head{justify-content:flex-end}

/* GRO-10: the one-time first-chat greeting (pages/chat.js), drawn like a model reply */
.g-seed{width:100%;max-width:760px;margin:0 auto 20px;display:flex;flex-direction:column;align-items:stretch;gap:12px;text-align:left}
.g-seed .g-text{white-space:pre-line;font-size:16px;line-height:1.65;color:var(--text);min-height:3.3em}
#thread .g-seed{margin:0 0 24px;max-width:none}
