/* mrsn chrome — the better-auth shell wearing the fallow voice
   (2026-11 owner pass: TIGER retired — no accent orange; fallow.tools
   lent the skin — warm-paper neutrals, solid ink borders on content
   surfaces, one accent token (--accent) as THE fork colour, tight
   radii 4/3/2). DARK-ONLY by owner law (2026-11-14): one token set,
   no cookie, no media fork, no toggle — light is retired entirely.
   Hairline borders for CHROME (top bar, footer, toc spine), solid ink
   borders for CONTENT (cards, code blocks, the terminal plate) —
   curl-visible styling (utilities ride alongside, see tw lane).
   Tailwind v4 utilities layer AFTER this sheet, so utility classes
   always override chrome (see the @layer line). Forks: put your chrome
   in @layer base. */

/* ── fonts ─────────────────────────────────────────────────────────
   fontsource v5 woff2, SELF-HOSTED in /static/fonts — never a font CDN
   at serve time. House stack: Geist Sans 400 + 600, Geist Mono 400 —
   three files, nothing commented (an unfetched face is dead bytes, not
   an option). Another face? `just fonts` — pinned fontsource versions,
   sha256-verified — then wire it here + a preload in base.html. OFL. */

@font-face {
	font-family: 'Geist Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/static/fonts/geist-sans-latin-400-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Geist Sans';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('/static/fonts/geist-sans-latin-600-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Geist Mono';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/static/fonts/geist-mono-latin-400-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cascade order truth: base (this sheet) then utilities (tw.css, linked
   after this in base.html) — utilities win. */
@layer base, utilities;

/* ── tokens ────────────────────────────────────────────────────────
   fallow's warm-paper scale (fallow.tools, MIT-adjacent borrow of
   VALUES only), DARK-ONLY: paper bg + deep-paper surface + ink, all
   slightly warm; hairlines are solid rule colors, not alpha. One
   theme, one token set on :root — the light set and the cookie/media
   fork are retired (owner law 2026-11-14).
   radii: 4px controls · 3px plates (cards, pre, display) · 2px inline
   code. colour law: the chrome is mono ink; ONE accent (--accent) is
   the single spot of colour — focus ring, active-tab underline,
   wayfinding dots, callouts — and THE fork colour: retint the whole
   site from one line. Default hue: tiger orange #ff6b1a (2026-11-22
   owner pick, lifted from mrsaynothing's chrome — their AMOLED black ·
   bright white · tiger orange thirds, now ours too; 6.6:1 on the
   paper). Former resident: signal violet (2026-11-14). */

@layer base {
:root {
    color-scheme: dark;
    --bg: #121211;
    --fg: #edece7;
    --dim: #a3a29a;
    --line: #34332f;        /* hairline rule */
    --line-strong: #6d6b62; /* mid rule — control borders (≥3:1 vs bg+card, WCAG 1.4.11) */
    --card: #1b1b19;        /* the deep paper */
    --code: #1b1b19;
    --accent: #ff6b1a;      /* THE fork colour — one line retints the site (tiger orange, mrsaynothing's chrome — owner pick 2026-11-22) */
    --accent-tint: color-mix(in srgb, var(--accent) 15%, var(--bg)); /* the whisper — derives from the accent, retints itself */
    --ring: var(--accent);  /* the focus ring rides the accent */
    --closure: #85847e;     /* quiet underline; sharpens to fg on hover */
    --radius: 0.1875rem;
    --radius-plate: 0.1875rem;
    --radius-code: 0.125rem;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 16px/1.65 "Geist Sans", ui-sans-serif, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
code, pre, kbd { font-family: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; }
/* micro-label — the better-auth signature: uppercase mono, tracked wide */
.micro {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}
/* motion law: 150ms transitions only (each rule names its own), and a
   vestibular kill switch — reduced motion means NO transitions */
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: var(--radius); }
::selection { background: var(--fg); color: var(--bg); }
/* the vendored glyph (icons.rs registry) — 1em, baseline-seated, so an
   icon rides text and buttons without layout surprises */
svg.ico { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.125em; }

/* the fallow link voice: a quiet closure-colored underline that
   sharpens to ink on hover */
a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--closure); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--accent); }
main { max-width: 46rem; margin: 0 auto; padding: 2rem 1.5rem; }
/* shell pages (docs index + doc pages) free themselves from the reading
   measure — .shell carries its own 72rem + gutters (:has is css-only,
   CSP-clean; a browser without it degrades to the 46rem measure) */
main:has(> .shell, > .land) { max-width: none; padding: 0; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.02em; }
h1, h2, h3, strong, th { font-weight: 600; }

/* ── the skip link — sr-only until keyboard focus (the a11y first
   tab stop; bg flips to ink so it reads on any surface) ── */
.skip {
    position: absolute;
    left: -100vw;
    top: .75rem;
    z-index: 30;
    background: var(--fg);
    color: var(--bg);
    padding: .5rem 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: .875rem;
}
.skip:focus { left: .75rem; }

/* ── the top bar — better-auth's landing header: brand | tab lane |
    actions, hairline verticals between, full-height action block ── */
.top {
    display: flex;
    align-items: stretch;
    min-height: 3.25rem;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}
.brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    border-right: 1px solid var(--line);
    text-decoration: none;
}
.brand .wordmark { font-weight: 600; letter-spacing: -0.01em; }
.brand .ver { color: var(--dim); font-size: .75rem; font-family: "Geist Mono", monospace; font-variant-numeric: tabular-nums; }
/* the kit's .tabs adds gap:.25rem — that would break the seamless
   hairline row into floating tiles; the skin owns this nav (base.html is
   off-limits to this lane), so the gap is defended here, unlayered */
.tabs { display: flex; align-items: stretch; flex: 1; min-width: 0; overflow-x: auto; gap: 0; }
.tabs a {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    padding: 0 1.1rem;
    border-right: 1px solid var(--line);
    color: var(--dim);
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s, background-color .15s;
}
.tabs a:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 4%, transparent); }
.tabs a[aria-current="page"] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--accent); }
.acts { display: flex; align-items: stretch; margin-left: auto; }
.acts > * { border-left: 1px solid var(--line); }
/* the far-edge action block — inverted, better-auth's sign-in slot */
.act-cta {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: 0 1.1rem;
    background: var(--fg);
    color: var(--bg);
    text-decoration: none;
    transition: opacity .15s;
}
.act-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* ── the footer — fallow's four lane columns + the honesty line: the
   sha is the same MRSN_SHA stamp /health carries, so a page names its
   build. Full-bleed under the article column, hairline top. */
.foot { border-top: 1px solid var(--line); margin-top: 3rem; padding: 2.25rem 1.5rem 1.25rem; }
.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
}
.foot-brand .wordmark { font-weight: 600; }
.foot-brand .ver { color: var(--dim); font-size: .75rem; font-family: "Geist Mono", monospace; margin-left: .45rem; }
.foot-brand p { margin: .5rem 0 0; font-size: .85rem; max-width: 26ch; }
.foot h3 { margin: 0 0 .6rem; font-size: .72rem; }
.foot h3 .ico { color: var(--accent); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.foot a { color: var(--dim); text-decoration: none; font-size: .85rem; transition: color .15s; }
.foot a:hover { color: var(--fg); text-decoration: underline; text-decoration-color: var(--closure); }
.foot-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .25rem 1.5rem;
    max-width: 72rem;
    margin: 1.75rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--dim);
    font-size: .78rem;
    font-family: "Geist Mono", monospace;
}

/* ── components ─────────────────────────────────────────────────── */
/* controls: fallow's ink-border button — paper bg, solid ink outline,
   hover fills the deep paper (never a shadow) */
button {
    font: inherit;
    color: var(--fg);
    background: var(--bg);
    border: 1px solid var(--fg);
    border-radius: var(--radius);
    padding: .25rem .8rem;
    cursor: pointer;
    transition: background-color .15s;
}
button:hover { background: var(--card); }
/* the fallow button voice — paper face, solid ink outline, tight radius.
   the sheet owns the button's geometry (display/pad/rungs); the skin owns
   its identity: ink border, paper face, the inverted primary, the ghost.
   150ms motion, named on each rule. */
.button {
    background: var(--bg);
    color: var(--fg);
    border: 1px solid var(--fg);
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: opacity .15s;
}
.button:hover { opacity: .85; }
/* primary + ghost paint retired to the variant wall (EOF) — @layer
   base lost them to the sheet's later ui.paint flats anyway */
/* pill badge — the announcement slot, ink-bordered */
.pill {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .2rem .8rem;
    border-radius: var(--radius);
    border: 1px solid var(--fg);
    background: var(--bg);
    color: var(--dim);
    font-size: .8rem;
    text-decoration: none;
    transition: background-color .15s, color .15s;
}
.pill:hover { color: var(--fg); background: var(--card); border-color: var(--accent); }
/* the wayfinding dot — the accent's quiet mark on docs groups */
.dot { width: .5rem; height: .5rem; border-radius: 999px; background: var(--accent); flex: none; display: inline-block; }
.raw-md {
    color: var(--dim);
    font-size: .72rem;
    font-family: "Geist Mono", monospace;
    text-decoration: none;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: .1rem .45rem;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    transition: color .15s, border-color .15s;
} /* ≥24px target — WCAG 2.5.8 */
.raw-md:hover, .raw-md:focus { color: var(--fg); border-color: var(--accent); }

/* ── the docs shell — better-auth's three-column layout: sidebar |
   content | on-this-page. Narrow viewports collapse the sidebar into
   a <details> index and drop the toc (no JS drawer — CSP law). */
.shell {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 2rem;
    align-items: stretch;
    padding: 0 1.5rem 3rem 0;
}
.shell > :not(.snav) { max-width: 60rem; }
.shell > :not(.snav):first-child { padding-top: 2rem; }
/* the solo shell — radar pages ride .shell's name but have no .snav
   to own the 15rem column; solo is the single-column variant (the
   reading column stays, the gutters arrive from the shell itself) */
.shell--solo {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 1.5rem 3rem;
}
/* the full-height rail — ba's docs sidebar: deep paper, hairline spine,
   version box up top (no search, no chevrons — both would be fake
   without js) */
.snav { background: var(--card); border-right: 1px solid var(--line); padding: 1.5rem 1.1rem 2rem; font-size: .875rem; }
.verbox {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .5rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: .45rem .7rem;
    margin-bottom: 1.1rem;
}
.verbox .ver { color: var(--dim); font-size: .72rem; font-family: "Geist Mono", monospace; }
.snav .snav-label {
    color: var(--dim);
    margin: 1.25rem 0 .35rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .45rem;
}
.snav ul { list-style: none; margin: 0; padding: 0; }
/* the fallow rail: a 3px left border per item — transparent at rest,
   hairline on hover, ink on the current page (wayfinding without a
   color flood) */
.snav a {
    display: block;
    padding: .3rem .6rem;
    border-left: 3px solid transparent;
    color: var(--dim);
    text-decoration: none;
    transition: color .15s, border-color .15s;
}
.snav a:hover { color: var(--fg); border-left-color: var(--line-strong); }
.snav a[aria-current="page"] { color: var(--fg); border-left-color: var(--accent); background: var(--accent-tint); font-weight: 600; }
.snav-md { display: block; margin-top: 1rem; }
/* the breadcrumb trail — the sheet lays the list AND emits the `/`
   separator in --dim (bridged below), so the skin keeps only the fallow
   identity: dim micro type, the hairline rule, closure-colored links. */
.breadcrumbs { color: var(--dim); font-size: .8rem; border-bottom: 1px solid var(--line); padding-bottom: .6rem; }
.breadcrumbs a { color: var(--dim); text-decoration: none; }
.breadcrumbs a:hover { color: var(--fg); text-decoration: underline; text-decoration-color: var(--closure); }
/* the raw-md badge rides the crumb row's far edge (better-auth's COPY
   MD slot) */
.breadcrumbs .raw-md { margin-left: auto; }
/* the toc rail — sticky, hairline-spined list */
.with-toc { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; gap: 2.5rem; align-items: start; }
.toc { position: sticky; top: 1.5rem; font-size: .8rem; }
.toc .toc-label { color: var(--fg); font-weight: 600; margin-bottom: .5rem; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li { padding: .15rem 0; }
.toc a { display: block; color: var(--dim); text-decoration: none; padding-left: .75rem; border-left: 1px solid transparent; margin-left: -1px; line-height: 1.45; transition: color .15s; }
.toc a:hover { color: var(--fg); border-left-color: var(--line-strong); }
.toc .l3 a { padding-left: 1.4rem; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; }
.pager a {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--fg);
    border-radius: var(--radius-plate);
    padding: .6rem .9rem;
    text-decoration: none;
    transition: background-color .15s;
}
.pager a:hover { background: var(--card); border-color: var(--accent); }
.pager .dir { color: var(--dim); font-size: .72rem; }
.pager .next { text-align: right; margin-left: auto; }
.pager span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the kit's pagination tile fixes height:2rem + inline-flex; the pager
   plate is a two-line label/title pair — keep its stacked flow */
.pager .pagination a { display: block; height: auto; min-width: 0; }

/* ── article lanes (.doc — rendered markdown) ───────────────────── */
/* the composed page — the bake IS the article, so the WHOLE column
   (crumbs, article, badge) reads at one centered measure: the shell
   child itself caps when it carries a compose article. One number
   retunes the reading measure. */
.shell--solo > div:has(> article.compose) { max-width: 42rem; margin-inline: auto; }
/* the landing's every-page index — one column of the day's stories
   and posts, the house row shape (rowitem) at the broadcast's feet */
.pages-idx { margin-top: 2.4rem; }
/* the fallow h2: every section opens under a hairline rule */
.doc h2 { border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 2.5rem; }
.doc pre { background: var(--card); border: 1px solid var(--fg); border-radius: var(--radius-plate); padding: 1rem; overflow-x: auto; font-size: .875rem; line-height: 1.6; }
.doc code { background: var(--card); border-radius: var(--radius-code); padding: .1em .35em; overflow-wrap: anywhere; font-size: .875em; } /* inline code breaks long tokens — a 320px viewport must not scroll the page (WCAG 1.4.10) */
.doc pre code { padding: 0; background: none; overflow-wrap: normal; border-radius: 0; font-size: inherit; } /* pre keeps its own horizontal scroll */
.doc table { display: block; overflow-x: auto; border-collapse: collapse; } /* the table element IS the scroll container (WCAG 1.4.10 reflow) */
.doc th, .doc td { border: 1px solid var(--line); padding: .4rem .6rem; text-align: left; }
.doc th { background: var(--card); }
.doc blockquote { margin: 1rem 0; padding: .6rem 1rem; border-left: 3px solid var(--accent); background: var(--accent-tint); border-radius: 0 var(--radius) var(--radius) 0; color: var(--dim); }
.doc img { max-width: 100%; border-radius: var(--radius-plate); }
/* heading permalinks — quiet ¶ anchors, visible on hover/focus */
.doc h2, .doc h3 { position: relative; }
.doc a.hlink { text-decoration: none; color: var(--dim); opacity: 0; font-weight: 400; margin-left: .4em; }
.doc h2:hover a.hlink, .doc h3:hover a.hlink, .doc a.hlink:focus { opacity: 1; color: var(--accent); }
.big404 { font-size: 5rem; margin: 2rem 0 0; color: var(--accent); letter-spacing: -0.03em; }
.dim { color: var(--dim); }
/* the docs index — group heading carries the accent dot; the doc cards
   ride the fallow grid (one column on phones, two from 34rem) */
.group-h { display: flex; align-items: center; gap: .5rem; margin: 1.4rem 0 .7rem; font-size: 1.15rem; }
.group-h .ico { width: 1em; height: 1em; color: var(--accent); flex: none; }
.group-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ── the landing: the contract, printed — the kit stops describing
   itself and starts BEING itself: a hero terminal rendering the live
   clap --help, the machine-lane ticker, the verb index, the two-tongues
   mirror, the gates, an accent fork band, then the readme. Mobile folds
   to one column, terminal under the copy. ── */
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 2rem; }
.land { overflow-x: clip; }
.land-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
    padding-top: 3.2rem;
    padding-bottom: 2.4rem;
}
.pillrow { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-copy h1 { font-size: clamp(2.3rem, 4.5vw, 3.4rem); line-height: 1.05; letter-spacing: -.02em; margin: .9rem 0 0; }
.hero-copy h1 em { font-style: normal; color: var(--accent); }
.hero-copy .lede { color: var(--dim); font-size: 1.02rem; max-width: 44ch; margin: 1rem 0 1.5rem; }
.hero-copy .cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
/* the hero terminal — solid ink plate, the live --help inside */
.term { border: 1px solid var(--fg); border-radius: var(--radius-plate); background: var(--card); overflow: hidden; }
.tbar { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: .45rem .9rem; border-bottom: 1px solid var(--line); font-family: "Geist Mono", monospace; font-size: .75rem; color: var(--dim); }
.tp { color: var(--accent); font-weight: 700; }
.tbody { margin: 0; padding: .9rem 1rem; font-family: "Geist Mono", monospace; font-size: .78rem; line-height: 1.6; white-space: pre; overflow-x: auto; color: var(--fg); }
.tbody .tv { color: var(--accent); font-weight: 600; }
.cursor { display: inline-block; width: .55em; height: 1.05em; background: var(--accent); vertical-align: -.15em; margin-left: .25em; animation: cursor-blink 1.1s steps(1) infinite; }
@keyframes cursor-blink { 50% { opacity: 0; } }
.cap { font-family: "Geist Mono", monospace; font-size: .72rem; color: var(--dim); margin: .6rem 0 0; }
.cap b { color: var(--accent); font-weight: 600; }
/* the machine-lane ticker — css-only motion, killed on reduced-motion */
.tickwrap { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .5rem 0; }
.tick { display: flex; width: max-content; animation: tick-mq var(--tick-dur, 45s) linear infinite; font-family: "Geist Mono", monospace; font-size: .78rem; color: var(--dim); }
.tick .tk { white-space: nowrap; }
.tick i { font-style: normal; color: var(--accent); padding: 0 .8rem; }
@keyframes tick-mq { to { transform: translateX(-50%); } }
/* the pause control (WCAG 2.2.2): hover or keyboard focus holds the marquee */
.tickwrap:hover .tick, .tickwrap:focus-within .tick { animation-play-state: paused; }
/* section heads — micro caps riding a hairline rule */
.sec { padding-top: 2.2rem; }
.sec > .micro { display: flex; align-items: center; gap: .9rem; margin: 0 0 .9rem; }
.sec > .micro::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sec > .micro .ico { color: var(--accent); }
/* the radar home — the front door's own paint: broadsheet grids, the
   lead-cut plate, essay and signal cards. The /about land block's
   siblings: one accent, the same hairlines, motion only on hover. */
.land-grid { display: grid; gap: 1rem; }
.land-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.land-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 62rem) {
  .land-grid--2, .land-grid--3 { grid-template-columns: 1fr; }
}
.land-lead {
  border: 1px solid var(--accent); border-radius: var(--radius-plate);
  background: var(--card); padding: 1.2rem 1.3rem 1.3rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.land-lead .kicker { font-family: "Geist Mono", monospace; font-size: .7rem; letter-spacing: .14em; color: var(--accent); }
.land-lead h2 { margin: 0; font-size: 1.35rem; line-height: 1.25; letter-spacing: -.01em; }
.land-lead p { margin: 0; color: var(--dim); font-size: .88rem; }
.land-lead .meta { margin-top: .1rem; font-family: "Geist Mono", monospace; font-size: .68rem; color: var(--dim); }
.land-lead .cta { margin-top: .8rem; display: flex; gap: .6rem; align-items: center; }
.land-sig {
  display: block; border: 1px solid var(--line); border-left: 2px solid var(--accent);
  border-radius: var(--radius); background: color-mix(in srgb, var(--card) 55%, transparent);
  padding: .8rem 1rem .9rem; color: var(--fg); text-decoration: none;
  transition: background .15s, border-color .15s;
}
.land-sig:hover { background: var(--card); border-color: var(--line-strong); border-left-color: var(--accent); }
.land-sig h3 { margin: .3rem 0 .25rem; font-size: .95rem; line-height: 1.35; }
.land-sig p { margin: 0; color: var(--dim); font-size: .8rem; }
.land-sig .meta { margin-top: .45rem; font-family: "Geist Mono", monospace; font-size: .68rem; color: var(--dim); }
/* the verb index — a broadsheet, not cards: hairline rows, accent
   ordinals, lane chips; the whole row is the link */
.vrow { display: grid; grid-template-columns: 3.2rem 6.5rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .55rem .6rem; border-bottom: 1px solid var(--line); color: var(--fg); font-size: .85rem; text-decoration: none; transition: background .15s; }
.vrow:first-of-type { border-top: 1px solid var(--line); }
.vrow:hover { background: var(--accent-tint); }
.vrow .vn { font-family: "Geist Mono", monospace; font-size: .75rem; color: var(--accent); letter-spacing: .08em; }
.vrow .vv { font-family: "Geist Mono", monospace; font-size: .9rem; font-weight: 600; }
.vrow .vd { color: var(--dim); min-width: 0; }
.vrow .vlane { display: inline-flex; align-items: center; gap: .4em; font-family: "Geist Mono", monospace; font-size: .68rem; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: .12rem .6rem; color: var(--dim); }
.vrow .vlane .ico { color: var(--accent); }
/* the docs index rides the same broadsheet — the row anchor spreads
   its children across the grid via display:contents, the .md lane is
   its own link (no fake chips: every pill here goes somewhere) */
.vrow .vbody { display: contents; }
.vrow a { text-decoration: none; }
.vrow a.vlane:hover { color: var(--fg); border-color: var(--accent); }
/* the docs index rides the same broadsheet — titles need more lane
   than verbs do */
.vindex .vrow { grid-template-columns: 3.2rem 17rem minmax(0, 1fr) auto; }
.vindex .vrow .vv { font-size: .85rem; }

/* the two-tongues mirror — one plate, ink spine, each half links to
   its real lane */
.tt { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--fg); border-radius: var(--radius-plate); overflow: hidden; background: var(--bg); }
.half { display: block; padding: 1rem 1.2rem 1.2rem; min-width: 0; color: var(--fg); text-decoration: none; transition: background .15s; }
.half + .half { border-left: 1px solid var(--fg); }
.half:hover { background: var(--card); }
.hl { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin: 0 0 .7rem; font-family: "Geist Mono", monospace; font-size: .72rem; color: var(--dim); }
/* (the mono tag voice now rides the kit's tag class, dressed in the
   radar block below — one source, no second badge) */
.half h3 { margin: .15rem 0 .3rem; font-size: .95rem; }
.half p { margin: 0; color: var(--dim); font-size: .82rem; }
.half-md { margin: 0; font-family: "Geist Mono", monospace; font-size: .78rem; line-height: 1.6; white-space: pre-wrap; }
/* the gates — the honesty strip */
.gates { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; }
.g { font-family: "Geist Mono", monospace; font-size: .75rem; color: var(--dim); }
.g b { color: var(--accent); font-weight: 700; margin-right: .45em; }
/* the fork band — the one full-bleed accent surface on the site */
.band { background: var(--accent); color: var(--bg); margin-top: 2.8rem; padding: 2.6rem 0; }
.band h2 { margin: 0 0 .5rem; font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -.02em; }
.band .band-a { display: inline-flex; align-items: center; gap: .4em; color: var(--bg); font-family: "Geist Mono", monospace; font-size: .85rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; transition: opacity .15s; }
.band .band-a:hover { opacity: .8; }
.band .sub { font-family: "Geist Mono", monospace; font-size: .72rem; opacity: .75; margin: .5rem 0 0; }

/* ── narrow viewports: the shell folds — sidebar becomes a plain
   block above the article (the <details> index), toc rail drops, the
   footer grid stacks. Pure CSS, no drawer JS. */
@media (max-width: 56rem) {
    .wrap { padding: 0 1.25rem; }
    .land-hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-top: 2.2rem; }
    .vrow { grid-template-columns: 2.4rem minmax(0, 1fr) auto; }
    .vrow .vd { grid-column: 2 / -1; }
    .tt { grid-template-columns: minmax(0, 1fr); }
    .half + .half { border-left: 0; border-top: 1px solid var(--fg); }
    .shell, .with-toc { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-left: 1.5rem; }
    /* the tab row wraps at the fold — scroll-off tabs read as clipped
       nav; a wrapped row shows every lane (no scroll affordance to fake) */
    .tabs { flex-wrap: wrap; overflow-x: visible; }
    .shell > .snav { margin: 0 -1.5rem; border-right: 0; border-bottom: 1px solid var(--line); }
    .shell > :not(.snav) { max-width: none; padding-right: 0; padding-top: 1.5rem; }
    .toc { display: none; }
    .tabs a { padding: 0 .7rem; }
    .foot-grid { grid-template-columns: repeat(2, 1fr); }
    .foot-brand { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
} /* end @layer base */

/* ── ui sheet adoption: 7 utilities outside the kit's committed sheet
   election (copied byte-for-byte from the retired tw.css) ── */
@layer utilities {
.mt-6{margin-top:calc(var(--spacing) * 6)}
.items-center{align-items:center}
.gap-3{gap:calc(var(--spacing) * 3)}
}

/* ── the wire's state words, painted (the offline lane must never be
   silent again): html.offline = the navigator says the line is down;
   form.queued = the outbox holds the write, replayed on reconnect ── */
html.offline::before {
	content: "offline — writes are held; they send when the line returns";
	position: fixed; inset: 0 0 auto 0; z-index: 80;
	padding: .45rem 1rem; text-align: center;
	font: .78rem/1.4 "Geist Mono", ui-monospace, monospace;
	background: var(--card); color: var(--dim);
	border-bottom: 1px solid var(--line);
}
html:has(form.queued)::after {
	content: "write held — the outbox sends it when the server answers";
	position: fixed; inset: auto 1rem 1rem auto; z-index: 80;
	padding: .4rem .8rem;
	font: .75rem/1.4 "Geist Mono", ui-monospace, monospace;
	background: var(--card); color: var(--dim);
	border: 1px solid var(--line); border-radius: var(--radius);
}
form.queued { opacity: .72; }

/* ── the radar face (2026-11): feed rows, hub cards, chips, the ask
   bar. Same laws as the chrome above: mono micro-labels, hairline
   rules, ONE accent, tight radii. A second @layer base block — later
   blocks of the same layer win, and this keeps the starter chrome
   byte-identical above. ─────────────────────────────────────────── */
@layer base {
/* the ask bar — fixed to the viewport floor on every page (the ONE
   interactive lane; the chips on radar pages are native submit buttons
   of the same POST /ask wire) */
.askbar {
	position: sticky; bottom: .75rem; z-index: 40;
	display: flex; gap: .4rem; align-items: center;
	margin: 1.25rem auto 0; max-width: 38rem;
	padding: .4rem .4rem .4rem .9rem;
	background: color-mix(in srgb, var(--card) 92%, transparent);
	backdrop-filter: blur(10px);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	box-shadow: 0 6px 22px rgb(0 0 0 / .35);
}
main { padding-bottom: 1rem; }
.askinput {
	flex: 1; min-width: 0; background: transparent; color: var(--fg);
	border: 0; padding: .45rem .2rem; font: inherit;
}
.askinput:focus { outline: none; }
.askinput::placeholder { color: var(--dim); }
.askbtn {
	display: inline-flex; align-items: center; justify-content: center;
	white-space: nowrap; border-radius: var(--radius); padding: .45rem .85rem;
}
.askbtn .ico { width: 1.05em; height: 1.05em; }
/* the source row — only rules the v2 block doesn't re-own */
.srcrow { margin-top: 1.25rem; }
}

/* ── the radar face v2 (2026-11): the violet retint rides the tokens
   above; this block carries the sweep's craft — signal-strength rows,
   badges, the trend strip, the answers index, the detail pass.
   Same laws: mono micro, hairline rules, solid ink plates, ONE accent,
   transitions ≤200ms ease, nothing decorative animates. ───────────── */
@layer base {
/* signal-strength rows — the radar sweep's device: fresher = louder.
   The left edge is the signal bar; the hover is a background step, no
   shadow (the plate law) */
.rowitem {
	padding: .8rem .6rem .8rem .75rem;
	border-bottom: 1px solid var(--line);
	border-left: 2px solid transparent;
	transition: background-color 150ms ease, border-color 150ms ease;
}
.rowitem:last-child { border-bottom: 0; }
.rowitem:hover { background: color-mix(in srgb, var(--card) 60%, transparent); }
.b-now { border-left-color: var(--accent); }
.b-today { border-left-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.b-week { border-left-color: color-mix(in srgb, var(--accent) 18%, transparent); }
.rowtitle { font-weight: 600; text-decoration: none; }
.rowtitle:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.rowsum { margin: .25rem 0 0; font-size: .925rem; max-width: 68ch; }
.rowmeta { margin: .3rem 0 0; color: var(--dim); }
.rowmeta a { color: var(--dim); text-decoration-color: var(--closure); }
.rowmeta a:hover { color: var(--fg); }
/* the mono tag — the kit's .tag carries the anatomy; the skin gives it
   the fallow micro-label voice (kind · source · age · score). The sheet
   owns its rung padding; identity is type, hairline, tight radius. */
.badgerow { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0 0 .5rem; }
.tag {
	font: 400 .72rem/1.4 "Geist Mono", ui-monospace, monospace;
	letter-spacing: .06em; text-transform: uppercase;
	border: 1px solid var(--line-strong);
	border-radius: 2px; color: var(--dim); background: var(--card);
}
.tag.b-score { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line-strong)); }
.tag.b-link:hover { color: var(--fg); border-color: var(--accent); }
/* the daily ranked list — accent ordinals */
.dailylist { margin: 1rem 0 0; padding-left: 1.6rem; }
.dailylist li { margin: .55rem 0; }
.dailylist li::marker { color: var(--accent); font-family: "Geist Mono", ui-monospace, monospace; }
.daynav { display: flex; justify-content: space-between; gap: .75rem; margin-top: .75rem; }
.daynav a { color: var(--dim); }
.daynav a:hover { color: var(--fg); text-decoration-color: var(--accent); }
.button:active, .askbtn:active, .chatbtn:active { transform: scale(0.97); }
.anslist { margin: .25rem 0 0; padding-left: 1.25rem; }
.anslist li { margin: .3rem 0; }
.anslist.big { padding-left: 1.5rem; }
.anslist.big li { margin: .6rem 0; }
.anslist.big a { font-weight: 600; }
.anslist.big li::marker { color: var(--accent); font-family: "Geist Mono", ui-monospace, monospace; }
/* empty states — authored, never blank */
.empty {
	padding: 1.1rem 1.25rem; color: var(--dim);
	border: 1px dashed var(--line-strong); border-radius: var(--radius-plate);
	background: color-mix(in srgb, var(--card) 40%, transparent);
}
.ghlink { font-size: .8rem; color: var(--dim); text-decoration-color: var(--closure); }
.ghlink:hover { color: var(--accent); }
/* the detail pass — selection, scrollbars, headings, focus glow */
::selection { background: var(--accent-tint); color: var(--fg); }
* { scrollbar-color: var(--line-strong) transparent; }
main h1 { font-size: clamp(1.7rem, 4.5vw, 2.3rem); letter-spacing: -0.02em; }
.lede { max-width: 65ch; }
.askinput:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.vhide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ── the door (2026-11-22): the agihunt bones + dev.to cards cut —
   the doorhead's lanes + topic row, the lead/two-up essay cards, the
   numbered observation log, the rail (trending + digest), the search
   box, the reaction hearts. Same laws: mono micro, hairline rules,
   solid ink plates, ONE accent, ≤200ms ease, nothing decorative
   animates. ───────────── */
@layer base {
/* the door head — the lanes + the search box on one bar */
.doorhead { padding-top: 2.4rem; padding-bottom: 1.2rem; }
.doorhead h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); line-height: 1.05; letter-spacing: -.02em; margin: .9rem 0 0; }
.doorhead h1 em { font-style: normal; color: var(--accent); }
.doorhead .lede { color: var(--dim); font-size: 1.02rem; max-width: 52ch; margin: 1rem 0 1.4rem; }
.doorbar {
	display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center;
	justify-content: space-between;
	border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
	padding: .55rem 0;
}
.lanerow { display: flex; flex-wrap: wrap; gap: .25rem; }
.lane-a {
	font: 400 .78rem/1.4 "Geist Mono", ui-monospace, monospace;
	letter-spacing: .05em; text-transform: uppercase;
	color: var(--dim); text-decoration: none;
	padding: .25rem .6rem; border-radius: 2px;
	transition: color 150ms ease, background-color 150ms ease;
}
.lane-a:hover { color: var(--fg); background: color-mix(in srgb, var(--card) 70%, transparent); }
.lane-a[aria-current="page"] { color: var(--accent); background: var(--accent-tint); }
.doorsearch { display: flex; gap: .4rem; }
.doorsearch-i {
	color: var(--fg); background: var(--card);
	border: 1px solid var(--line-strong); border-radius: 2px;
	padding: .4rem .7rem; width: min(16rem, 60vw);
}
.doorsearch-i:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); outline: none; }
.doorsearch-b {
	font: 400 .72rem/1.4 "Geist Mono", ui-monospace, monospace;
	letter-spacing: .06em; text-transform: uppercase;
	color: var(--fg); background: transparent;
	border: 1px solid var(--line-strong); border-radius: 2px;
	padding: .4rem .7rem; cursor: pointer;
	transition: color 150ms ease, border-color 150ms ease;
}
.doorsearch-b:hover { color: var(--accent); border-color: var(--accent); }
.doorsearch--page { margin: .5rem 0 1.25rem; }
.doorsearch--page .doorsearch-i { width: min(24rem, 100%); }
/* the topic row — cooked counts, the category band */
.topicrow { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.topic-a {
	font: 400 .78rem/1.4 "Geist Mono", ui-monospace, monospace;
	color: var(--dim); text-decoration: none;
	border: 1px solid var(--line); border-radius: 999px;
	padding: .18rem .7rem;
	transition: color 150ms ease, border-color 150ms ease;
}
.topic-a:hover { color: var(--fg); border-color: var(--line-strong); }
.topic-a[aria-current="page"] {
	color: var(--accent);
	border-color: color-mix(in srgb, var(--accent) 45%, var(--line-strong));
}
.topic-n { color: var(--accent); font-size: .7rem; }
/* the door grid — the main column + the rail (one fold on narrow) */
.doorgrid {
	display: grid; grid-template-columns: minmax(0, 1fr) 16rem;
	gap: 2rem; align-items: start; padding-bottom: .75rem;
}
.doormain { min-width: 0; }
/* the lead — the fleet's essay opens the door */
.leadcard {
	border: 1px solid var(--line-strong); border-radius: var(--radius-plate);
	background: var(--card);
	padding: 1.4rem 1.5rem 1.3rem; margin-top: 1.25rem;
}
.kickrow { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin-bottom: .6rem; }
.kicker {
	font: 400 .72rem/1.4 "Geist Mono", ui-monospace, monospace;
	letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
}
.leadcard .kicker { color: var(--accent); }
.leadtitle { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -.015em; margin: 0; }
.leadtitle a { text-decoration: none; }
.leadtitle a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.leadsum { color: var(--dim); font-size: 1.02rem; max-width: 62ch; margin: .7rem 0 0; }
.tagrow { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.metafoot { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.ctarow { margin-top: 1.1rem; }
/* the two-up — the next essays, the card pair */
.twoup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-top: .9rem; }
.essaycard {
	border: 1px solid var(--line); border-radius: var(--radius-plate);
	background: color-mix(in srgb, var(--card) 55%, transparent);
	padding: 1rem 1.1rem .9rem;
	transition: border-color 150ms ease;
}
.essaycard:hover { border-color: var(--line-strong); }
.essaytitle { font-size: 1.12rem; line-height: 1.25; margin: 0; }
.essaytitle a { text-decoration: none; }
.essaytitle a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.essaysum { color: var(--dim); font-size: .925rem; margin: .45rem 0 0; }
/* the observation log — the mined signals, numbered by the counter */
.logsec { margin-top: 1.25rem; }
.logsec .micro { margin-bottom: .4rem; }
.logsec .doorbar { margin-top: .6rem; }
.logsec .topicrow { margin-top: .55rem; }
/* the door's question band rides closer — the log's end isn't a chasm */
.shell--solo + .band { margin-top: 1.5rem; }
.shell--solo:has(+ .band) { padding-bottom: 1rem; }
.loglist { list-style: none; margin: 0; padding: 0; counter-reset: sig; }
.logrow {
	counter-increment: sig;
	position: relative;
	padding: .68rem .6rem .68rem 2.6rem;
	border-bottom: 1px solid var(--line);
	border-left: 2px solid transparent;
	transition: background-color 150ms ease, border-color 150ms ease;
}
.logrow:last-child { border-bottom: 0; }
.logmore, .logend { border-bottom: 0; padding: .68rem 0 .2rem; }
.logmore a {
	font: 400 .74rem/1.4 "Geist Mono", ui-monospace, monospace;
	letter-spacing: .09em; text-transform: uppercase; color: var(--accent);
}
.logend { color: var(--dim); }
.logrow:hover {
	background: color-mix(in srgb, var(--card) 60%, transparent);
	border-left-color: var(--accent);
}
.logrow::before {
	content: counter(sig, decimal-leading-zero);
	position: absolute; left: .6rem; top: .72rem;
	font: 400 .78rem/1.4 "Geist Mono", ui-monospace, monospace;
	color: var(--accent);
}
.logtitle { font-size: 1.05rem; line-height: 1.3; font-weight: 600; margin: .25rem 0 0; }
.logtitle a { text-decoration: none; }
.logtitle a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.logsum { color: var(--dim); font-size: .925rem; max-width: 68ch; margin: .3rem 0 0; }
.logmeta { margin-top: .35rem; color: var(--dim); font-size: .85rem; }
.logmeta a { color: var(--dim); text-decoration-color: var(--closure); }
.logmeta a:hover { color: var(--fg); }
/* the rail — trending + the digest */
.rail { display: grid; gap: .7rem; margin-top: 1.25rem; }
.railcard {
	border: 1px solid var(--line); border-radius: var(--radius-plate);
	background: color-mix(in srgb, var(--card) 55%, transparent);
	padding: .8rem .9rem;
}
.trendlist { list-style: none; margin: .5rem 0 0; padding: 0; counter-reset: tr; }
.trendrow {
	counter-increment: tr;
	position: relative;
	padding: .42rem 0 .42rem 1.9rem;
	border-bottom: 1px solid var(--line);
}
.trendrow:last-child { border-bottom: 0; }
.trendrow::before {
	content: counter(tr, decimal-leading-zero);
	position: absolute; left: 0; top: .5rem;
	font: 400 .72rem/1.4 "Geist Mono", ui-monospace, monospace;
	color: var(--accent);
}
.trend-a {
	font-weight: 600; font-size: .9rem; line-height: 1.25; text-decoration: none;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.trend-a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.trendmeta { color: var(--dim); font-size: .8rem; margin-top: .15rem; }
.digcard { border-left: 2px solid var(--accent); }
.digday { font-weight: 600; margin: .45rem 0 .35rem; }
.digdoc { margin-top: .9rem; }
/* the reaction hearts — one per reader, honestly counted */
.heartform {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem;
	margin-top: 1.4rem; border-top: 1px solid var(--line); padding-top: 1rem;
}
.heartbtn {
	font-size: 1.05rem; line-height: 1;
	color: var(--accent); background: var(--accent-tint);
	border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line-strong));
	border-radius: 999px;
	width: 2.3rem; height: 2.3rem; cursor: pointer;
	transition: transform 150ms ease, background-color 150ms ease;
}
.heartbtn:hover { background: color-mix(in srgb, var(--accent) 22%, var(--accent-tint)); }
.heartbtn:active { transform: scale(0.94); }
.heartbtn:disabled { cursor: default; opacity: .55; }
.heartbtn.is-mine { background: var(--accent); color: var(--bg); opacity: 1; }
.hearts-n { font: 600 1rem/1.4 "Geist Mono", ui-monospace, monospace; color: var(--fg); }
.hearts-w { color: var(--dim); font-size: .82rem; }
.postkick { margin: .9rem 0 .4rem; }
/* narrow fold — the rail drops under the main */
@media (max-width: 60rem) {
	.doorgrid { grid-template-columns: minmax(0, 1fr); }
	.rail { margin-top: 0; }
	.twoup { grid-template-columns: minmax(0, 1fr); }
}
}

/* ── the dashboard plates (2026-11): the agent-built /d/ pages ride
   the big-number plates + the sweep-band svg (f1's devices, folded
   into the house voice). Same laws: mono micro, hairline rules, solid
   ink plates, ONE accent, ≤200ms ease, nothing decorative animates. */
@layer base {
.heroplates {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: .75rem;
	margin-top: 1.25rem;
}
.statplate {
	display: flex; flex-direction: column; gap: .15rem;
	position: relative;
	background: var(--card); border: 1px solid var(--fg);
	border-radius: var(--radius-plate);
	padding: .7rem .9rem .6rem; text-decoration: none;
	clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%);
	transition: background-color 150ms ease, border-color 150ms ease;
}
.statplate .ico { position: absolute; top: .55rem; right: .6rem; width: .95rem; height: .95rem; color: var(--accent); opacity: .75; }
a.statplate:hover { border-color: var(--accent); }
.statn {
	font: 400 1.7rem/1.1 "Geist Mono", ui-monospace, monospace;
	letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.statl { font-size: .72rem; color: var(--dim); letter-spacing: .04em; }
/* the sweep band — violet bars; height is volume, opacity is recency
   (fresher burns brighter). Pure svg, no js. */
.sweepband { margin-top: .9rem; }
.sweepband .hl { margin-bottom: .35rem; }
.bandsvg { display: block; width: 100%; height: 92px; }
.bandbar { fill: var(--accent); }
.bandbase { stroke: var(--line-strong); stroke-width: 1; }
.bandrow { display: flex; justify-content: space-between; margin-top: .3rem; }
}

/* ── chat dock ──────────────────────────────────────────────────────
   the chat lane's column: FULL HEIGHT on the right, the page pushed
   left (side by side). The bottom askbar hides while the dock is open
   (the dock's own bar takes over). Square corners — a column, not a
   card. Mobile: the column takes the whole screen. */
/* the dock rides BELOW the top bar (the bar owns its strip; the
   column hangs under it), compact: 22rem / 26vw, tight gutters */
body:has(.chatdock.is-dock) { --chatw: min(22rem, 28vw); --top-h: 3.25rem; }
.chatdock {
	display: flex; flex-direction: column;
	gap: .5rem; padding: .6rem .65rem;
	background: var(--card); color: var(--fg);
	border: 1px solid var(--fg); border-radius: var(--radius-plate);
}
.chatdock.is-dock {
	position: fixed; z-index: 60;
	inset: var(--top-h, 3.25rem) 0 0 auto;
	width: var(--chatw, 22rem);
	height: calc(100dvh - var(--top-h, 3.25rem));
	border-radius: 0;
	border-left: 1px solid var(--line);
	border-top: 0; border-right: 0; border-bottom: 0;
	box-shadow: -10px 0 24px rgb(0 0 0 / .3);
}
body:has(.chatdock.is-dock) .askbar { display: none; }
body:has(.chatdock.is-dock) main { margin-right: var(--chatw, 22rem); }
.chatdock:not(.is-dock) { min-height: 20rem; }
/* the head is the close affordance only — the conversation is the label */
.chathead { display: flex; align-items: flex-start; justify-content: flex-end; margin: -.15rem -.25rem 0 0; }
.chatx button {
	background: none; border: 0; color: var(--fg);
	font-size: 1rem; line-height: 1; padding: .25rem; cursor: pointer;
	border-radius: var(--radius); opacity: .65;
}
.chatx button:hover { color: var(--accent); opacity: 1; }
.chatx .ico { width: 1em; height: 1em; vertical-align: -.08em; }
.chatlog {
	flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column;
	gap: .4rem; padding: .15rem .1rem; min-height: 5rem;
}
.chatempty { color: var(--fg); opacity: .7; font-size: .8rem; margin: .2rem 0; }
.chatmsg {
	max-width: 94%; padding: .4rem .6rem; border-radius: var(--radius);
	font-size: .78rem; line-height: 1.5; overflow-wrap: break-word;
}
.chatmsg p { margin: 0 0 .35rem; } .chatmsg p:last-child { margin: 0; }
.chatmsg a { color: var(--accent); }
.chatmsg.mine {
	align-self: flex-end;
	background: color-mix(in srgb, var(--accent) 15%, var(--card));
	border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line, var(--fg)));
}
.chatmsg.bot { position: relative; align-self: flex-start; background: color-mix(in srgb, var(--fg) 4%, transparent); border: 1px solid var(--line, var(--fg)); padding-right: 1.8rem; }
.chatmsg.bot .chaterr { color: #e5484d; }
.chatmsg.typing { opacity: .9; border-style: dashed; background: transparent; }
.streamstat { display: inline-flex; align-items: center; gap: .3rem; }
.streamstat .ico { color: var(--accent); width: .95em; height: .95em; }
.charn { font-variant-numeric: tabular-nums; }
.chatcopy {
	position: absolute; top: .2rem; right: .2rem;
	background: none; border: 0; color: var(--fg);
	font-size: .8rem; line-height: 1; padding: .2rem .25rem;
	cursor: pointer; opacity: .35; border-radius: var(--radius);
}
.chatcopy:hover { opacity: 1; color: var(--accent); }
.chatcopy .ico { width: .9em; height: .9em; }
/* the send bar — pill input + icon button, one row, tight */
.chatbar { display: flex; gap: .35rem; margin: 0; }
.chatinput {
	flex: 1 1 auto; min-width: 0; background: var(--bg, var(--card));
	border: 1px solid var(--line, var(--fg));
	border-radius: var(--radius); color: inherit; font: inherit; font-size: .8rem;
	padding: .38rem .7rem;
}
.chatinput:focus { outline: 1px solid var(--accent); }
.chatbtn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: .38rem .55rem; border-radius: var(--radius);
}
.chatbtn .ico { width: 1.05em; height: 1.05em; }
/* the stream region — the kit's answer stream dressed for the dock:
   the region owns the log + the send bar (the engine binds its form,
   paints the seats before it). The seats read as one live bot bubble;
   the sheet already hides/shows .stop across the status flips. */
.chatstream {
	flex: 1 1 auto; min-height: 0;
	display: flex; flex-direction: column; gap: .4rem;
}
.chatstream .chatlog { min-height: 5rem; }
.chatstream [data-part] {
	font-size: .78rem; line-height: 1.5; overflow-wrap: break-word;
	max-height: 12rem; overflow-y: auto;
}
.chatstream [data-part="text"] {
	align-self: flex-start; max-width: 94%;
	padding: .4rem .6rem; border-radius: var(--radius);
	background: color-mix(in srgb, var(--fg) 4%, transparent);
	border: 1px dashed var(--line, var(--fg));
}
/* the lane kicker (topic + answers) — micro caps over the lane head */
.radarkick {
	text-transform: uppercase; letter-spacing: .12em;
	color: var(--accent); font-weight: 600; margin: 0 0 .2rem;
}
.chatstop {
	display: inline-flex; align-items: center; justify-content: center;
	padding: .38rem .55rem; border-radius: var(--radius);
}
.chatstop .ico { width: 1.05em; height: 1.05em; }
/* the docked ask chips — lifted from the replies server-side, one row
   above the send bar (chat.html renders it only when not cooking) */
.chatasks {
	margin: 0; padding: .45rem 0 .1rem;
	border-top: 1px solid var(--line, var(--fg));
	max-height: 9rem; overflow-y: auto;
}
@media (max-width: 640px) {
	.chatdock.is-dock { width: 100vw; box-shadow: none; }
	body:has(.chatdock.is-dock) main { margin-right: 0; }
}

/* ── the chat agent's html-lane plates ────────────
   the agent writes these as plain html (the sanitizer gates it once at
   append time); the plates reuse the dock's tokens — a plate reads as
   chat furniture */
.c-card {
	border: 1px solid var(--line, var(--fg)); border-radius: var(--radius);
	padding: .6rem .7rem; margin: .3rem 0; background: color-mix(in srgb, var(--accent) 4%, var(--card));
}
.c-cardtitle {
	margin: 0 0 .45rem; font-size: .8rem; letter-spacing: .04em;
	text-transform: uppercase; opacity: .85;
}
.stats { display: flex; flex-wrap: wrap; gap: .5rem; margin: .35rem 0; }
.stat {
	flex: 1 1 6rem; border: 1px solid var(--line, var(--fg)); border-radius: var(--radius);
	padding: .45rem .6rem; display: flex; flex-direction: column; gap: .1rem;
}
.stat-value { font: 500 1.25rem/1.1 "Geist Mono", ui-monospace, monospace; color: var(--accent); }
.stat figcaption { font-size: .72rem; opacity: .75; }
.c-badges { display: flex; flex-wrap: wrap; gap: .3rem; margin: .3rem 0; }
.c-badge {
	display: inline-block; border: 1px solid var(--line, var(--fg)); border-radius: var(--radius);
	font-size: .7rem; padding: .12rem .55rem; letter-spacing: .03em; text-transform: uppercase;
}
.c-kv { margin: .35rem 0; display: grid; gap: .2rem; }
.c-kv > div { display: flex; gap: .6rem; justify-content: space-between; border-bottom: 1px dotted var(--line, var(--fg)); padding: .18rem 0; }
.c-kv dt { opacity: .7; font-size: .8rem; }
.c-kv dd { margin: 0; font: 400 .8rem "Geist Mono", ui-monospace, monospace; text-align: right; overflow-wrap: anywhere; }
.c-tablewrap { overflow-x: auto; margin: .4rem 0; }
.c-table { border-collapse: collapse; font-size: .8rem; width: 100%; }
.c-table th {
	text-align: left; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase;
	opacity: .7; border-bottom: 1px solid var(--fg); padding: .3rem .5rem;
}
.c-table td { border-bottom: 1px solid var(--line, var(--fg)); padding: .3rem .5rem; overflow-wrap: anywhere; }
.c-bars { display: flex; flex-direction: column; gap: .3rem; margin: .4rem 0; }
.c-bar { display: grid; grid-template-columns: minmax(5rem, 9rem) 1fr; gap: .5rem; align-items: center; font-size: .78rem; }
.c-barl { opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-bartrack { background: color-mix(in srgb, var(--fg) 10%, var(--card)); border-radius: var(--radius); height: .5rem; overflow: hidden; }
.c-barfill { display: block; height: 100%; background: var(--accent); border-radius: var(--radius); }
.c-list, .c-steps { margin: .35rem 0; padding-left: 1.2rem; font-size: .83rem; display: grid; gap: .2rem; }
.c-steps li::marker { color: var(--accent); font-family: "Geist Mono", ui-monospace, monospace; }
.c-fallback {
	font-size: .72rem; opacity: .7; white-space: pre-wrap; overflow-wrap: anywhere;
	border: 1px dashed var(--line, var(--fg)); border-radius: var(--radius); padding: .4rem .5rem; margin: .3rem 0;
}

/* ── html-lane wave 2: link cards, asks, sparks, deltas ─────────────── */
.c-links {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
	gap: .45rem; margin: .45rem 0;
}
.c-link {
	display: flex; flex-direction: column; gap: .25rem;
	border: 1px solid var(--line, var(--fg)); border-radius: var(--radius);
	padding: .6rem .65rem; text-decoration: none; color: inherit;
	background: color-mix(in srgb, var(--accent) 3%, var(--card));
	transition: transform .12s ease, border-color .12s ease;
}
a.c-link:hover { transform: translateY(-1px); border-color: var(--accent); }
.c-linktitle { font-weight: 600; font-size: .82rem; line-height: 1.35; overflow-wrap: anywhere; }
a.c-link .c-linktitle { color: var(--accent); }
.c-linknote { font-size: .74rem; opacity: .72; line-height: 1.4; overflow-wrap: anywhere; }
.c-linkbadge {
	align-self: flex-start; font-size: .62rem; letter-spacing: .05em;
	text-transform: uppercase; border: 1px solid var(--line, var(--fg));
	border-radius: var(--radius); padding: .1rem .45rem; opacity: .85;
}
.c-asks { display: flex; flex-wrap: wrap; gap: .35rem; margin: .35rem 0; }
.c-spark { display: block; width: 100%; height: 1.6rem; margin-top: .15rem; }
.c-spark polyline {
	stroke: var(--accent); stroke-width: 2;
	stroke-linecap: round; stroke-linejoin: round;
}
.c-when {
	display: block; font: 400 .68rem "Geist Mono", ui-monospace, monospace;
	opacity: .6; margin-top: .15rem;
}
.stat-value.up { color: #46a758; }
.stat-value.down { color: #e5484d; }
.c-table tr:hover td { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.c-table td.num {
	text-align: right; font-family: "Geist Mono", ui-monospace, monospace;
}
.c-table tbody tr:nth-child(odd) td {
	background: color-mix(in srgb, var(--fg) 3%, transparent);
}
.c-barfill {
	background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, var(--card)), var(--accent));
}
@keyframes chatin {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: none; }
}
.chatmsg { animation: chatin .18s ease; }

/* ── html-lane wave 3: chart, card tones, sub-labels, states, media ──── */
.c-chart { margin: .5rem 0; }
.c-chart figcaption { font-size: .78rem; font-weight: 600; margin-bottom: .25rem; }
.c-chartline { display: block; width: 100%; height: 7rem; }
.c-chartline polyline {
	stroke: var(--accent); stroke-width: 2.5;
	stroke-linecap: round; stroke-linejoin: round;
}
.c-chartline .c-chartarea { fill: color-mix(in srgb, var(--accent) 16%, transparent); stroke: none; }
/* the accent top border read as a stray violet line on every card —
   gone (2026-11-17). The tone variants below still tint the card's
   own 1px top edge, so tone cards keep their colour cue. */
.card-success { border-top-color: #46a758; }
.card-info { border-top-color: #6aa7e8; }
.card-warning { border-top-color: var(--accent); }
.card-error { border-top-color: #e5484d; }
.c-barsub { display: block; font-size: .68rem; opacity: .62; margin-top: .1rem; }
.c-steps li.c-done::marker { color: #46a758; }
.c-steps li.c-current::marker { color: var(--accent); }
.c-steps li.c-todo::marker { color: color-mix(in srgb, var(--fg) 45%, transparent); }
.c-linkimg {
	display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
	border-radius: var(--radius); background: color-mix(in srgb, var(--fg) 6%, transparent);
}
/* surface mode: a dashboard-flavored reply reads as one plate */
.chatmsg:has(.c-chart), .chatmsg:has(.stats), .chatmsg:has(.c-links) {
	background: color-mix(in srgb, var(--accent) 4%, transparent);
	border-radius: var(--radius);
	padding: .6rem .65rem;
}

/* ── html-lane wave 4: tabs, more, callout, progress, parts, legends ── */
.c-tabbar { display: flex; gap: .3rem; margin: .5rem 0 .35rem; flex-wrap: wrap; }
.c-tabbtn {
	font: inherit; font-size: .74rem; font-weight: 600;
	padding: .22rem .6rem; border-radius: var(--radius); cursor: pointer;
	background: color-mix(in srgb, var(--fg) 6%, transparent);
	color: var(--fg); border: 1px solid transparent;
}
.c-tabbtn[aria-selected="true"] {
	background: color-mix(in srgb, var(--accent) 18%, transparent);
	border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.c-tab { padding: .15rem 0 .35rem; }
.c-tabhead { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; opacity: .6; margin: .2rem 0 .3rem; }
.c-more { margin: .5rem 0; }
.c-more summary {
	cursor: pointer; font-size: .78rem; font-weight: 600;
	color: color-mix(in srgb, var(--fg) 75%, var(--accent));
	list-style-position: inside;
}
.c-more[open] summary { margin-bottom: .35rem; }
.c-callout {
	margin: .5rem 0; padding: .5rem .7rem; border-radius: var(--radius);
	border-left: 3px solid var(--fg); font-size: .86rem;
	background: color-mix(in srgb, var(--fg) 5%, transparent);
}
.c-progress { margin: .45rem 0; }
.c-progresshead { display: flex; justify-content: space-between; font-size: .74rem; margin-bottom: .18rem; }
.c-progresshead b { font-variant-numeric: tabular-nums; }
.c-chartlabels, .c-legend { display: flex; gap: .5rem; font-size: .66rem; opacity: .72; margin-top: .2rem; flex-wrap: wrap; }
.c-chartlabels { justify-content: space-between; opacity: .55; margin-top: 0; }
.c-key { display: inline-flex; align-items: center; gap: .28rem; }
.c-swatch { display: inline-block; width: .6rem; height: .18rem; border-radius: 2px; }
.c-s1 { color: var(--accent); background: var(--accent); }
.c-s2 { color: #6aa7e8; background: #6aa7e8; }
.c-s3 { color: #46a758; background: #46a758; }
.c-s4 { color: #e5484d; background: #e5484d; }
.c-chartline polyline.c-s1 { stroke: var(--accent); }
.c-chartline polyline.c-s2 { stroke: #6aa7e8; }
.c-chartline polyline.c-s3 { stroke: #46a758; }
.c-chartline polyline.c-s4 { stroke: #e5484d; }
.c-parts { margin: .5rem 0; }
.c-partbar {
	display: flex; height: .85rem; border-radius: var(--radius); overflow: hidden;
	background: color-mix(in srgb, var(--fg) 7%, transparent);
}
.c-pseg { display: block; min-width: 2px; }
.c-p1 { background: var(--accent); }
.c-p2 { background: #6aa7e8; }
.c-p3 { background: #46a758; }
.c-p4 { background: #e5484d; }
.stat-success .stat-value { color: #46a758; }
.stat-info .stat-value { color: #6aa7e8; }
.stat-warning .stat-value { color: var(--accent); }
.stat-error .stat-value { color: #e5484d; }
table.c-sortable thead th { cursor: pointer; user-select: none; }
table.c-sortable thead th:hover { color: var(--accent); }
table.c-sortable thead th[aria-sort="ascending"]::after { content: " ↑"; opacity: .7; }
table.c-sortable thead th[aria-sort="descending"]::after { content: " ↓"; opacity: .7; }
/* surface mode gains the new plates */
.chatmsg:has(.c-tabs), .chatmsg:has(.c-parts), .chatmsg:has(.c-callout) {
	background: color-mix(in srgb, var(--accent) 4%, transparent);
	border-radius: var(--radius);
	padding: .6rem .65rem;
}
/* islands: the composed tongue is built for the page column — in the
   22rem dock a composed reply takes the FULL bubble width (the copy
   slot keeps its clearance), media caps, stat grids fit three across */
.chatmsg.bot:has(.c-card), .chatmsg.bot:has(.c-links), .chatmsg.bot:has(.stats),
.chatmsg.bot:has(.c-bars), .chatmsg.bot:has(.c-table), .chatmsg.bot:has(.c-chart),
.chatmsg.bot:has(.c-tabs), .chatmsg.bot:has(.c-parts), .chatmsg.bot:has(.c-callout) {
	max-width: 100%;
	padding-right: 1.8rem;
}
.chatmsg .c-linkimg { max-height: 10rem; }
.chatmsg .stats { gap: .35rem; }
.chatmsg .stat { flex: 1 1 5rem; padding: .35rem .5rem; }

/* ── the broadcast bar: LIVE tag + the freshest signals, one marquee ─
   base.html renders it only when the page's chrome carries rows
   (honest-off: no rows, no banner). Seamless loop = the content
   duplicated 2x + translateX(-50%). Reduced motion: the global kill
   stops the marquee; here the duplicate copy hides and the list
   scrolls instead — a static headline bar, never a half-marquee. */
.bcast {
	display: flex; align-items: stretch;
	border-bottom: 1px solid var(--line);
	background: color-mix(in srgb, var(--card) 88%, transparent);
	position: relative; z-index: 50;
}
.livetag {
	display: inline-flex; align-items: center; gap: .35rem;
	padding: .45rem .85rem; border-right: 1px solid var(--line);
	color: var(--accent);
}
.livetag::before {
	content: ""; width: .45rem; height: .45rem; flex: none;
	border-radius: 999px; background: var(--accent);
	animation: livepulse 2.2s ease infinite;
}
@keyframes livepulse { 50% { opacity: .25; } }
.bcast .tickwrap { flex: 1 1 auto; min-width: 0; border: 0; padding: .45rem 0; }
.bcast .tick a { color: var(--dim); text-decoration: none; }
.bcast .tick a:hover { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
	.bcast .tick { animation: none; }
	.bcast .tkdup { display: none; }
	.bcast .tickwrap { overflow-x: auto; }
}

/* ── html-lane wave 5: composition — layout containers, the hero band,
   ask-back forms, and the chart's honest axis ─────────────────────── */
.c-row {
	display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0;
	align-items: stretch;
}
.c-row > * { flex: 1 1 10rem; }
.c-row > .c-card, .c-row > .c-links, .c-grid > .c-card, .c-grid > .c-links {
	margin: 0; height: 100%;
}
/* a links run inside a layout container spans the full track — its
   inner card grid lays the cards, never one card per cell */
.c-row > .c-links, .c-grid > .c-links { flex: 1 1 100%; grid-column: 1 / -1; }
.c-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
	gap: .55rem; margin: .55rem 0;
}
.c-hero {
	margin: .5rem 0 .9rem; padding: .15rem 0 .7rem;
	border-bottom: 1px solid var(--line, var(--fg));
}
.c-herok {
	font: 600 .7rem "Geist Mono", ui-monospace, monospace;
	letter-spacing: .14em; text-transform: uppercase;
	color: var(--accent); margin: 0 0 .35rem;
}
.c-herot {
	font-size: clamp(1.9rem, 4.5vw, 3.1rem); line-height: 1.05;
	font-weight: 600; letter-spacing: -.02em; margin: 0;
	overflow-wrap: anywhere;
}
.c-herot a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.c-heros {
	display: block; margin-top: .5rem; font-size: .95rem;
	line-height: 1.45; opacity: .78; max-width: 46rem;
}
/* ask-back — a native form posts the pick (or the typed line) as q;
   the dock swaps the answer in. No JS, works bare. */
.c-form {
	border: 1px solid var(--line, var(--fg)); border-radius: var(--radius);
	padding: .65rem .7rem; margin: .5rem 0;
	background: color-mix(in srgb, var(--accent) 4%, var(--card));
	display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
}
.c-formq { flex: 1 1 100%; margin: 0; font-size: .82rem; font-weight: 600; }
.c-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.c-formlab {
	display: flex; flex-direction: column; gap: .3rem; flex: 1 1 12rem;
	font-size: .78rem;
}
.c-forminput {
	border: 1px solid var(--line, var(--fg)); border-radius: var(--radius);
	background: transparent; color: inherit; padding: .38rem .55rem;
	font: inherit; font-size: .85rem; width: 100%;
}
.c-forminput:focus {
	outline: 1px solid var(--accent); outline-offset: 1px;
	border-color: var(--accent);
}
/* the honest axis — gridlines + a min/mid/max scale column beside the
   stretched svg (svg <text> would distort under the aspect squash) */
.c-chart { position: relative; }
.c-chartline { height: 8rem; }
.c-plotwrap { position: relative; padding-left: 2.5rem; }
.c-yscale {
	position: absolute; left: 0; top: 0; bottom: 0; width: 2.2rem;
	display: flex; flex-direction: column; justify-content: space-between;
	font: 400 .6rem "Geist Mono", ui-monospace, monospace;
	font-variant-numeric: tabular-nums;
	opacity: .55; text-align: right;
}
.c-gline { stroke: color-mix(in srgb, var(--fg) 9%, transparent); stroke-width: 1; }
.c-gbase { stroke: color-mix(in srgb, var(--fg) 22%, transparent); }
.c-gstop0 { stop-color: var(--accent); stop-opacity: .3; }
.c-gstop1 { stop-color: var(--accent); stop-opacity: 0; }
.c-chartline .c-chartarea { fill: url(#cgrad); stroke: none; }
.c-chartline .c-dot { fill: currentColor; stroke: none; }
.c-chart .c-chartlabels { padding-left: 2.5rem; }
.c-yscale span, .stat-value, .c-chartlabels span { font-variant-numeric: tabular-nums; }
/* a chat turn is narrow — the composition still reads */
.chatmsg .c-herot { font-size: clamp(1.4rem, 4.5vw, 2rem); }
@media (max-width: 720px) {
	.c-row { flex-direction: column; }
	.c-row > * { flex: 1 1 auto; }
	.c-grid { grid-template-columns: 1fr; }
	.c-herot { font-size: 1.65rem; }
	.c-plotwrap { padding-left: 2rem; }
	.c-yscale { width: 1.7rem; }
}

/* ── batch 5: the landing, art-directed (dark editorial) ──────────── */
/* the composed page IS the canvas: it escapes the feed's 60rem
   measure and centers its own 76rem one — the fallback listing keeps
   .measure and never notices; :has scopes it to baked days only */
.shell--solo { overflow-x: clip; } /* the 50vw bleed rides a scrollbar px over — clip, never scroll */
.shell--solo:has(.bcast-edition) > div:not(.measure) {
	max-width: 76rem; margin-inline: auto;
}
.bcast-edition .c-hero {
	/* the hero band bleeds to the viewport edges; its text holds the
	   76rem measure (the parent is centered, so the 50vw math stays
	   symmetric) */
	display: grid; grid-template-columns: minmax(0, 1fr); align-items: center;
	position: relative; overflow: hidden;
	margin: 1rem calc(50% - 50vw) 1.6rem;
	padding: 2.2rem calc(50vw - 50%) 1.8rem;
	border-bottom: 1px solid var(--line);
}
.bcast-edition .c-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(56% 95% at 12% 0%, color-mix(in srgb, var(--accent) 19%, transparent), transparent 70%),
		radial-gradient(42% 75% at 88% 8%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 72%);
}
.bcast-edition .c-hero > * { position: relative; }
.bcast-edition .c-herok { font-size: .74rem; margin-bottom: .5rem; }
.bcast-edition .c-herot { font-size: clamp(2rem, 4vw, 3rem); max-width: 48rem; }
.bcast-edition .c-heros { font-size: 1rem; max-width: 44rem; }
.c-hero:has(.c-heroimg) {
	grid-template-columns: minmax(0, 1fr) minmax(9rem, 22rem); gap: 0 1.4rem;
}
.c-hero > .c-heroimg {
	grid-column: 2; grid-row: 1 / span 3; position: relative;
	width: 100%; height: 100%; max-height: 17rem; object-fit: cover;
	border: 1px solid var(--line); border-radius: var(--radius-plate);
}
/* the pull — an editorial breath between bands */
.c-pull {
	font-size: clamp(1.12rem, 2.2vw, 1.45rem); line-height: 1.4;
	font-weight: 500; letter-spacing: -.01em;
	margin: 1.2rem 0; padding-left: 1rem;
	border-left: 3px solid var(--accent); max-width: 58rem;
}
.c-pull a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); }
/* tappable chips */
.bcast-edition .c-form { padding: .9rem .95rem; gap: .6rem; }
.bcast-edition .c-chips .chip {
	padding: .45rem .95rem; border-radius: 99rem;
	font-weight: 600; font-size: .82rem;
	border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
	background: color-mix(in srgb, var(--accent) 8%, var(--card));
}
.bcast-edition .c-chips .chip:hover {
	background: var(--accent); border-color: var(--accent); color: var(--bg);
}
/* sources as pills — the composed page never ends in a raw list */
.srcpills { display: flex; flex-wrap: wrap; gap: .4rem; margin: .35rem 0 0; }
.srcpill {
	font: 400 .68rem "Geist Mono", ui-monospace, monospace;
	border: 1px solid var(--line); border-radius: 99rem;
	padding: .22rem .6rem; color: inherit; text-decoration: none; opacity: .8;
}
.srcpill:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }
@media (max-width: 720px) {
	.c-hero:has(.c-heroimg) { grid-template-columns: 1fr; }
	.c-hero > .c-heroimg { grid-column: 1; grid-row: auto; max-height: 12rem; margin-top: .7rem; }
	.bcast-edition .c-herot { font-size: clamp(1.9rem, 8.5vw, 2.4rem); }
}
/* ── batch 5b: the broadsheet furniture ─────────────────────────────*/
/* the masthead — the nameplate rides double rules; the live sweep
   line above it becomes the ticker (mono, small caps) */
.bcast-edition .hl {
	border-bottom: 3px double var(--line-strong);
	padding-bottom: .55rem;
}
.bcast-edition .hl .group-h {
	font: 600 .72rem "Geist Mono", ui-monospace, monospace;
	text-transform: uppercase; letter-spacing: .18em;
}
/* band labels — the composer's markdown headings read as section
   slugs, never as a second headline */
.bcast-edition .doc h2 {
	font: 600 .66rem "Geist Mono", ui-monospace, monospace;
	text-transform: uppercase; letter-spacing: .16em; color: var(--dim);
	margin: 1.7rem 0 .5rem; padding-bottom: .3rem;
	border-bottom: 1px solid var(--line);
}
/* the rundown — the ranked index; the engine emits no numbers, the
   counter numbers the rows (decimal-leading-zero: 01–08) */
.bcast-edition .c-rank {
	counter-reset: rankn; margin: .5rem 0 1.3rem;
	border-top: 2px solid var(--line-strong);
}
.bcast-edition .c-rankrow {
	display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto;
	gap: .9rem; align-items: baseline; padding: .6rem .25rem;
	border-bottom: 1px solid var(--line);
}
.bcast-edition a.c-rankrow:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.bcast-edition .c-rankord { counter-increment: rankn; }
.bcast-edition .c-rankord::before {
	content: counter(rankn, decimal-leading-zero);
	font: 600 1.05rem "Geist Mono", ui-monospace, monospace;
	font-variant-numeric: tabular-nums; color: var(--accent);
}
.bcast-edition .c-rankbody { display: block; }
.bcast-edition .c-ranktitle { font-weight: 600; font-size: .98rem; color: inherit; text-decoration: none; }
.bcast-edition .c-ranktitle:hover { color: var(--accent); }
.bcast-edition .c-ranknote { display: block; color: var(--dim); font-size: .8rem; margin-top: .12rem; }
.bcast-edition .c-rankbadge {
	font: 600 .6rem "Geist Mono", ui-monospace, monospace;
	text-transform: uppercase; letter-spacing: .12em;
	border: 1px solid var(--line); border-radius: 99rem;
	padding: .18rem .55rem; color: var(--dim); white-space: nowrap;
}
@media (max-width: 720px) {
	.bcast-edition .c-rankrow { grid-template-columns: 2.4rem minmax(0, 1fr); }
	.bcast-edition .c-rankbadge { grid-column: 2; justify-self: start; }
}

/* ── html-lane wave 5: the kit-0.8 vocabulary ────────────────────────── */
/* hovercard: the sheet gives placement + reveal; the skin gives the
   pop its plate — and un-hides the link (a.hlink is also the heading
   anchor's class; inside a hovercard it's just a link) */
.hovercard a.hlink {
	opacity: 1; margin-left: 0; font-weight: inherit; color: inherit;
}
.hovercard > .hc {
	background: var(--card); color: var(--fg);
	border: 1px solid var(--line); border-radius: var(--radius-plate);
	padding: .5rem .6rem; font-size: .8rem; line-height: 1.45;
	box-shadow: var(--shadow-pop, 0 6px 18px rgba(0, 0, 0, 0.35));
}
/* countdown: a mono clock row */
.c-countdown {
	margin: .4rem 0; font: 400 0.85rem "Geist Mono", ui-monospace, monospace;
}
.c-countdown .c-when { display: inline; margin: 0 0.5rem 0 0; }
/* meter: label + track row; the fill rides --pct (the sheet structures) */
.c-meterrow { margin: .5rem 0; display: grid; gap: .25rem; }
.c-meterrow .c-when { margin: 0; }
/* tree leaf: the kit renders leaves as dim spans */
.c-dim { color: var(--dim); font-size: 0.8rem; }
/* a browser-figure caption */
.c-mockcap {
	font: 400 0.68rem "Geist Mono", ui-monospace, monospace;
	opacity: 0.65; margin-bottom: .3rem;
}
/* ── lane 1: the kit chrome adopted into mrsn's own surfaces ─────── */
/* the ask bar's chip field — the kit mirrors typed values into a
   hidden `tags` input for the real POST (data-name=tags) */
.askchips { flex: 0 1 11rem; min-width: 8.5rem; }
.askchips .field {
	width: 100%; background: none; border: 0; border-left: 1px solid var(--line);
	color: var(--fg); font: inherit; font-size: .875rem; padding: .35rem .5rem;
}
.askchips .field:focus { outline: none; }
.askchips .chip { font-size: .72rem; padding: .1rem .45rem; }
/* the topbar palette trigger's kbd hint */
.kbdk {
	margin-left: .4em; font: 600 0.62rem "Geist Mono", ui-monospace, monospace;
	opacity: .65; letter-spacing: .05em;
}
/* the palette dialog — the sheet sizes it (.palette 34rem) and rules
   the options; the skin plates it onto mrsn's tokens */
dialog.palette {
	background: var(--card); color: var(--fg);
	border: 1px solid var(--line); border-radius: var(--radius-plate);
	box-shadow: var(--shadow-pop, 0 18px 50px rgba(0, 0, 0, 0.5));
	padding: .75rem;
}
dialog.palette::backdrop { background: rgba(0, 0, 0, 0.55); }
dialog.palette .field {
	width: 100%; margin-bottom: .4rem; background: none;
	border: 1px solid var(--line); border-radius: var(--radius-plate);
	color: var(--fg); font: inherit; padding: .45rem .6rem;
}
dialog.palette [role=option] { padding: .35rem .5rem; border-radius: var(--radius-plate); color: var(--fg); }
dialog.palette [role=option]:hover, dialog.palette [role=option][data-live] { background: color-mix(in srgb, var(--fg) 8%, transparent); }

/* ── the kit var bridge (0.8.1) ───────────────────────────────────── */
/* the sheet's ui.paint layer now owns the fallback paint — hooks and
   plates dressed with var(--color-*, currentColor/Canvas) floors. The
   skin's whole remaining duty is the BRIDGE: mrsn's tokens under the
   kit's contract names, so the walls draw in signal violet, mrsn's
   hairlines and deep paper — and the badge trio rides the status
   names. Identity (fonts, the tool plates, the lane-1 chrome above)
   stays here; visibility is the sheet's; nothing below repeats a
   fallback the sheet already carries. */
:root {
	--color-base: var(--bg);
	--color-ink: var(--fg);
	--color-dim: var(--dim);
	--color-line: var(--line);
	--color-code: var(--code);
	--color-accent: var(--accent);
	--color-primary: var(--accent);
	--color-secondary: var(--dim);
	--color-neutral: var(--dim);
	--color-success: #46a758;
	--color-warning: #f5a623;
	--color-error: #e5484d;
}
/* the walls speak the brand face, not the mono code face */
:is(pre.flow, pre.sequence, pre.state, pre.er, pre.gantt, pre.radar,
	pre.quadrant, pre.dots, pre.mindmap) svg text {
	font-family: "Geist Sans", system-ui, sans-serif;
}
/* the tool plate — mrsn's own class; the sheet never knew it */
.tool {
	border: 1px solid var(--line); border-radius: var(--radius-plate);
	background: var(--card); padding: .5rem .75rem; margin-block: .4rem;
}
/* the timeline — the kit's sheet now lays multi-child li correctly at
   source (block li, absolute dot, rail through the dot column); the
   skin retires its old layout patch and keeps only identity: the
   violet dot, the stronger rail, the c-when micro-label. */
.c-when {
	display: block; font: 400 .68rem "Geist Mono", ui-monospace, monospace;
	opacity: .6; margin-top: .15rem;
}


/* ── the 1.0 kit plates, in mrsn's voice (asset-only rename lane) ────
   The sheet owns structure + fallback paint; the skin adds only mrsn's
   hairlines, one accent and tight radii, and only inside its own
   surfaces (agent HTML in a chat turn or a digest edition). No fourth
   personality channel — radius, the 8 roles and type stay the budget. */
.chatmsg :is(.chat > *, .field, .input, .textarea, .accordion, .loading),
.bcast-edition :is(.chat > *, .field, .input, .textarea, .accordion, .loading) {
	border-color: var(--line);
	border-radius: var(--radius);
}
.chatmsg .chat > :is(.chat-start, .chat-end),
.bcast-edition .chat > :is(.chat-start, .chat-end) {
	background: var(--card);
	color: var(--fg);
}
/* the dock's bubbles keep mrsn's symmetric tight radius — the kit's
   chat-tail corner (one square corner) is not the fallow plate */
.chatdock .chat > :is(.chat-start, .chat-end) {
	border-start-start-radius: var(--radius);
	border-start-end-radius: var(--radius);
}
.chatmsg .loading, .bcast-edition .loading { color: var(--accent); }

/* ── the composed lane wears the kit plates (posts + docs) ──────────
   The 1.0 dress above was scoped to chat turns and digest editions;
   the POST lane (article.compose .doc) rode the sheet's bare chrome —
   transparent card/input borders, unpainted bubbles, tab boxes, a
   code mockup crushed by .doc pre. The scope widens: .doc joins the
   surfaces — mrsn's hairlines, deep paper and one accent everywhere
   the writer can reach. Unlayered beats the sheet's layers. */
.doc :is(.card, .input, .textarea, .field, .accordion, .chat > *) {
	border-color: var(--line);
	border-radius: var(--radius);
}
.doc .card { background: var(--card); }
.doc .input, .doc .textarea, .doc .field {
	background: color-mix(in srgb, var(--fg) 4%, transparent);
}
.doc .input:focus, .doc .textarea:focus, .doc .field:focus-within {
	border-color: var(--accent);
}
.doc .input-error, .doc .input[aria-invalid="true"], .doc .textarea-error {
	border-color: var(--color-error);
}
.doc .chat > :is(.chat-start, .chat-end) {
	background: var(--card);
	color: var(--fg);
}
.doc .chat > .chat-accent {
	background: var(--accent-tint);
	border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.doc .timeline > li::before { background: var(--accent); }
.doc .timeline > li::after { background: var(--line-strong); }

/* the code mockup — .doc pre dresses raw code blocks with an ink
   border; the mockup keeps its own gutter + accent line highlight */
.doc pre.mockup-code {
	background: var(--code);
	border: 1px solid var(--line);
	border-radius: var(--radius-code);
	padding: .8rem 0;
}
.doc pre.mockup-code code { padding: 0 1rem; background: none; border: 0; font-size: .82rem; }
.doc .mockup-code [data-line] {
	background: color-mix(in srgb, var(--accent) 12%, transparent);
	border-inline-start: 2px solid var(--accent);
}

/* body tabs — the joined segmented plate (the top-bar lane keeps its
   own header scope; this dresses only inside composed documents) */
.doc .tabs {
	display: inline-flex; align-items: stretch; gap: 0;
	background: var(--card); border: 1px solid var(--line);
	border-radius: var(--radius); overflow: hidden;
}
.doc .tabs > :is(button, a) {
	font: inherit; font-size: .8rem; cursor: pointer; text-decoration: none;
	padding: .35rem .8rem; color: var(--dim); background: transparent;
	border: 0; border-inline-start: 1px solid var(--line);
}
.doc .tabs > :first-child { border-inline-start: 0; }
.doc .tabs > :is(button, a):hover {
	color: var(--fg); background: color-mix(in srgb, var(--fg) 5%, transparent);
}
.doc .tabs .tab-active, .doc .tabs [aria-selected="true"] {
	color: var(--accent); background: var(--accent-tint); font-weight: 600;
}

/* the buttons — the sheet paints no background, so the UA's
   ButtonFace leaks through the inverted plates (primary, outline,
   disabled rendered cream). mrsn's plates: the violet primary, the
   hairline outline, the muted dead one — composed lanes only; the
   top bar keeps its own inverted-cream signature. */
:is(.doc, .chatmsg, .bcast-edition) .button-primary {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--bg);
	font-weight: 600;
}
:is(.doc, .chatmsg, .bcast-edition) .button-outline {
	background: transparent;
	border-color: var(--line-strong);
	color: var(--fg);
}
:is(.doc, .chatmsg, .bcast-edition) .button:disabled,
:is(.doc, .chatmsg, .bcast-edition) .button[aria-disabled="true"] {
	background: color-mix(in srgb, var(--fg) 8%, transparent);
	color: var(--dim);
	border-color: var(--line);
}

/* the tone cards — the base border rule above shares their
   specificity, so the role top edges re-assert after it */
.doc .card-success { border-top-color: #46a758; }
.doc .card-info { border-top-color: #6aa7e8; }
.doc .card-warning { border-top-color: var(--accent); }
.doc .card-error { border-top-color: #e5484d; }

/* the diff — the sheet is headless, ins/del paint is the skin's */
.doc .diff ins { color: #46a758; }
.doc .diff del { color: #e5484d; opacity: .75; }

/* the chat — closedui's own plates, in post scope: the bubble IS the
   chat-start/end child; the sheet aligns it, the skin surfaces it */
:is(.doc, .chatmsg, .bcast-edition) .chat > * {
	background: var(--card); border: 1px solid var(--line);
	border-radius: var(--radius-plate); padding: .45rem .7rem;
	max-width: 78%; width: fit-content;
}
:is(.doc, .chatmsg, .bcast-edition) .chat-accent {
	border-color: var(--accent); background: var(--accent-tint);
}
:is(.doc, .chatmsg, .bcast-edition) .chat-error { border-color: #e5484d; }

/* the menu — the sheet carries no list reset (headless); kill the
   UA bullets in post scope */
.doc .menu { list-style: none; margin: 0; padding: .25rem 0; }

/* the invalid input — the kit names it input-invalid (:user-invalid
   is the native state); the skin's red state rides all three names */
.doc .input-error, .doc .input-invalid, .doc .textarea-error,
.doc .input:user-invalid { border-color: #e5484d; color: #e5484d; }

/* the radial — the skin sizes the ring for legible labels (the spine's
   2rem default swallows them) */
.doc .radial { width: 4rem; height: 4rem; font-size: .72rem; font-weight: 600; }

/* the indicator badge — the kit's currentColor/base inversion collapses
   dark-on-dark here; the skin speaks the accent plainly */
.doc .indicator { background: var(--accent); color: var(--bg); font-weight: 600; }

/* the dialog — Chrome's UA sheet positions every dialog absolute
   centered (the headless sheet never resets it); posts use UNOPEN
   dialogs as in-flow plates, so those drop back into the layout —
   but a real modal (:modal) keeps its centered seat */
.doc .dialog:not(:modal) { position: static; margin: 0; }

/* the quiz — the engine dims the siblings on answer; the skin gives
   the gate a plate and turns the seat accent when it's been answered */
.doc .approval {
  border: 1px solid var(--line); border-radius: var(--radius-plate);
  background: var(--card); padding: .9rem 1rem;
}
.doc .approval[data-state] { border-color: var(--accent); }

/* the reader's motion — the spy act-nav glides, anchors clear the masthead */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
:is(section,div)[id] { scroll-margin-top: 4.5rem; }

/* the picked ink speaks the fork colour — unlayered, it beats the sheet */
::selection { background: color-mix(in srgb, var(--accent) 32%, transparent); }

/* the spy — the engine marks the act you're in; the skin lights the link */
.doc .spy[aria-current] { color: var(--accent); border-color: var(--accent); }

/* the menu links — the UA underline is not a menu */
.doc .menu a { text-decoration: none; }
.doc .menu a:hover { color: var(--accent); }

/* ── the variant wall — the skin's last word (unlayered) ──────────
   The kit's contract: the sheet sets --ui-tone per <base>-<role>, the
   skin reads it and paints. mrsn's component paint sat in @layer base
   — the FIRST layer — so the vendored sheet's later ui.paint flats
   beat it at equal specificity and every role collapsed to one gray
   plate (owner, 2026-11-22: "fix it so they actually do what they
   were intended to do"). Unlayered rules beat every layer (css
   cascade L5); this block is that last word. Tones are the fork's:
   ink primary, violet accent, the four whisper hues. */
.button-primary,.tag-primary,.alert-primary,.status-primary { --ui-tone: var(--fg); }
.button-secondary,.tag-secondary,.alert-secondary,.status-secondary { --ui-tone: var(--accent); }
.button-accent,.tag-accent,.alert-accent,.status-accent { --ui-tone: var(--accent); }
.button-neutral,.tag-neutral,.alert-neutral,.status-neutral { --ui-tone: var(--dim); }
.button-info,.tag-info,.alert-info,.status-info { --ui-tone: #6aa7e8; }
.button-success,.tag-success,.alert-success,.status-success { --ui-tone: #46a758; }
.button-warning,.tag-warning,.alert-warning,.status-warning { --ui-tone: #f5a623; }
.button-error,.tag-error,.alert-error,.status-error { --ui-tone: #e5484d; }
/* a role on a bare button/tag is an implicit SOLID fill in its tone
   (the kit's ladder); secondary stays quiet — the violet whisper */
:is(.button,.tag):is(
  .button-primary,.button-secondary,.button-accent,.button-neutral,
  .button-info,.button-success,.button-warning,.button-error,
  .tag-primary,.tag-secondary,.tag-accent,.tag-neutral,
  .tag-info,.tag-success,.tag-warning,.tag-error
):not(:is(
  .button-soft,.button-outline,.button-dash,.button-ghost,.button-solid,
  .tag-soft,.tag-outline,.tag-dash,.tag-ghost,.tag-solid
)) { background: var(--ui-tone, var(--fg)); color: var(--bg); border-color: transparent; }
:is(.button,.tag):is(.button-secondary,.tag-secondary):not(:is(
  .button-soft,.button-outline,.button-dash,.button-ghost,.button-solid,
  .tag-soft,.tag-outline,.tag-dash,.tag-ghost,.tag-solid
)) {
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}
/* the 5 styles — hyphenated; sheet geometry, skin paint */
:is(.button-soft,.tag-soft,.alert-soft) {
  color: var(--ui-tone, currentColor);
  background: color-mix(in srgb, var(--ui-tone, currentColor) 8%, var(--card));
  border: 1px solid color-mix(in srgb, var(--ui-tone, currentColor) 16%, transparent);
}
:is(.button-outline,.tag-outline,.alert-outline) {
  color: var(--ui-tone, currentColor);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--ui-tone, currentColor) 48%, transparent);
}
:is(.button-dash,.tag-dash,.alert-dash) {
  color: var(--ui-tone, currentColor);
  background: transparent;
  border: 1px dashed color-mix(in srgb, var(--ui-tone, currentColor) 48%, transparent);
}
:is(.button-ghost,.tag-ghost,.alert-ghost) {
  color: var(--ui-tone, currentColor);
  background: transparent;
  border-color: color-mix(in srgb, var(--fg) 16%, transparent);
}
:is(.button-solid,.tag-solid,.alert-solid) {
  color: var(--bg);
  background: var(--ui-tone, var(--fg));
  border-color: transparent;
}
/* the alert plate + its role tints — a whisper, never a loud fill */
.alert {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-plate);
  background: color-mix(in srgb, currentColor 4%, var(--card));
  color: var(--fg);
}
:is(.alert-primary,.alert-secondary,.alert-accent,.alert-neutral,
    .alert-info,.alert-success,.alert-warning,.alert-error):not(:is(.alert-outline,.alert-dash,.alert-ghost)) {
  background: color-mix(in srgb, var(--ui-tone, currentColor) 6%, var(--card));
  border-color: color-mix(in srgb, var(--ui-tone, currentColor) 20%, transparent);
}
/* status — the dot speaks, the label sits quiet (role class = tone) */
.status-online::before, .status[data-state=online]::before { background: #46a758; }
.status-busy::before, .status[data-state=busy]::before { background: #f5a623; }
.status-away::before, .status[data-state=away]::before { background: var(--dim); }
.status-offline::before, .status[data-state=offline]::before { background: #e5484d; }
/* hover = a ground shift; the fill dims a whisper */
:is(.button-outline,.button-dash,.button-ghost):hover { background: var(--card); }
.button-soft:hover { background: color-mix(in srgb, var(--ui-tone, currentColor) 14%, var(--card)); }
:is(.button-solid,.button-primary,.button-secondary,.button-accent,.button-neutral,
    .button-info,.button-success,.button-warning,.button-error):hover { filter: brightness(.92); }
/* ── the atlas pass (2026-11-22): the ladder's sizes back, the whisper
   dot, the star lane, the honest second series, the file voice.
   The element voice at :221 sets literal padding+font that beat the
   sheet's layered var rungs (cascade L5 — unlayered beats layered,
   specificity never enters); this block is that last word. ───────── */
/* the size rungs, restored to the sheet's exact tokens */
.button.button-xs { font-size: .75rem; padding: .25rem .5rem; gap: .25rem; border-radius: .25rem; }
.button.button-sm { font-size: .8125rem; padding: .375rem .75rem; gap: .375rem; border-radius: .375rem; }
.button.button-lg { font-size: 1rem; padding: .75rem 1.5rem; gap: .75rem; border-radius: .5rem; }
.button.button-xl { font-size: 1.125rem; padding: 1rem 2rem; gap: 1rem; border-radius: .75rem; }
.tag.tag-xs { font-size: .75rem; padding: .25rem .5rem; }
.tag.tag-sm { font-size: .8125rem; padding: .375rem .75rem; }
.tag.tag-lg { font-size: 1rem; padding: .75rem 1.5rem; }
/* the status dot whispers — the sheet's md default hands --ui-sz:2rem to
   every component at once, so the dot rendered a 32px ball; the sheet's
   own fallback (.55rem) is the intent, the kit's site skin agrees on the
   quiet .8rem label */
.status { --ui-sz: .55rem; font-size: .8rem; }
/* the star range: the lane is invisible, the gold star IS the value */
input[type="range"].rating { background: transparent; border: 0; }
/* the line wall's second series reads at 45% — 85% read as a shadow of
   series one; the swatch pin: the grid is always three lines, so the
   swatches sit at line positions 4+ (pinned to the vendored engine) */
[data-wall] svg polyline[data-ln]:nth-of-type(2) { stroke-opacity: .45; }
[data-wall] svg line[data-ln]:nth-of-type(n+4) { stroke-opacity: .45; }
/* the file button wears the fallow voice even when bare */
input[type="file"]::file-selector-button {
	background: var(--bg); color: var(--fg);
	border: 1px solid var(--fg); border-radius: var(--radius);
	font: 600 .8rem/1.4 "Geist Mono", ui-monospace, monospace;
	padding: .3rem .6rem; cursor: pointer;
}

/* ── the narrow law (2026-11-22): phones read posts too ──────────────
   The solo wrapper's auto margins (the 42rem centering) silently
   turned the grid item into shrink-to-fit sizing: the article's
   min-content — a wide table, a diagram wall — blew the column past
   the viewport, and the shell's overflow-x:clip amputated every line
   mid-word. width:100% returns the item to its track (the 42rem cap
   and the centering keep their desktop meaning); the wide plates
   below scroll or wrap inside themselves instead of widening the
   page. The article was never the liar — the sizing law was. */
.shell--solo > div:has(> article.compose) { width: 100%; min-width: 0; }
.doc [data-wall] { max-width: 100%; overflow-x: auto; }
.doc pre { overflow-x: auto; }
.doc .tag { white-space: normal; overflow-wrap: break-word; max-width: 100%; }
.doc .approval { flex-wrap: wrap; }
.doc .approval .choice { white-space: normal; }

/* ── the stage law (2026-11-22, the owner's word): buttons on TOP,
   content BELOW ──────────────────────────────────────────────────────
   Two laws conspired to make the tabs plate grotesque: the skin's bare
   .tabs rule (line 156) is the masthead nav's seamless strip — its
   align-items:stretch inflated trigger buttons to the live panel's
   full height (the tall violet rails), and the kit's row law sat the
   active panel BESIDE its triggers, so the plate read sideways. In
   post scope the plate reads like a stage: triggers form a wrapping
   pill row on top (order:-1), the live panel takes its own full-width
   line below (flex-basis:100% banishes it from the trigger row).
   Pre-JS both panels stack under the row — honest degradation,
   nothing overlaps, nothing scrolls sideways. */
.doc .tabs {
	display: flex; flex-wrap: wrap; align-items: flex-start;
	gap: .45rem .5rem; overflow: visible;
}
.doc .tabs > button, .doc .tabs > a { order: -1; }
.doc .tabs > [id] { flex: 1 1 100%; min-width: 0; }
.doc .tabs > button, .doc .tabs > a {
	font: 600 .72rem "Geist Mono", ui-monospace, monospace;
	padding: .28rem .7rem; border: 1px solid var(--line);
	border-radius: 99rem; background: transparent; color: var(--dim);
	cursor: pointer;
}
.doc .tabs > button:hover, .doc .tabs > a:hover {
	border-color: var(--accent); color: var(--accent);
}
.doc .tabs > .tab-active, .doc .tabs > [aria-selected="true"] {
	border-color: color-mix(in srgb, var(--accent) 55%, transparent);
	color: var(--accent); background: var(--accent-tint);
}

/* the source row — deliberate chrome, now dressed to say so (it rode
   bare under the citation table and read like a stray link) */
.srcrow { margin-top: .9rem; }
.srcrow a {
	display: inline-flex; align-items: center; gap: .35em;
	font: 400 .68rem "Geist Mono", ui-monospace, monospace;
	border: 1px solid var(--line); border-radius: 99rem;
	padding: .22rem .6rem; color: inherit; text-decoration: none; opacity: .8;
}
.srcrow a:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }
