/* Frontier, a part of sylin.org, in the idiom of Sylin's workbench: one dusk ground, hairlines, compact controls.
   Emphasis is spent the way Sylin spends it: running text is grey, white is for names and headings.
   Words are sans, values are mono. Amber is interface only: the eyebrow, the primary action, a chosen value,
   where you are. A chosen value is filled; a place gets an amber bar. Colour belongs to fit, in marks and meters only: green ready, orange tight, blue a plan you pay for,
   a hollow grey mark out of reach. The one other use is movement on the boards: up green, down red. Stance and rank are grey. Square inside grids, rounded on controls. */

:root {
  --bg: #0f0e12; --raised: #15141a; --sunk: #0d0c10; --active: #1b1a21; --track: #201f27;
  --line: #24232b; --line-soft: #1b1a21; --line-strong: #2e2d36; --line-focus: #6b6a75;
  --ink: #f4f4f5; --ink-2: #c9c9d1; --ink-3: #a1a1aa; --muted: #8b8b95;
  --signal: #fbbf24; --signal-2: #fcd34d; --on-signal: #18130a; --wash: #18150e;
  --signal-line: color-mix(in oklch, var(--signal) 45%, transparent);
  --warn: #fb923c; --go: oklch(0.80 0.14 150); --plan: oklch(0.78 0.11 230); --stop: oklch(0.68 0.17 25);
  --sans: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Cascadia Code', 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --gutter: 28px; --cell: 14px; --page: 1320px; --bar: 63px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 77px; color-scheme: dark; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink-2); font: 400 15px/1.6 var(--sans); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; } a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; color: var(--ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 50; padding: 8px 14px; border-radius: 8px; background: var(--signal); color: var(--on-signal); font: 500 13px var(--sans); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--ink); }
b, strong { color: var(--ink); }
p { margin: 0; }

/* text roles: a micro-label, small text, a value */
.lbl { font: 600 10.5px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lbl.amber { color: var(--signal); }
.meta { font: 400 12.5px/1.4 var(--sans); color: var(--muted); }
.data { font: 500 12.5px/1.4 var(--mono); color: var(--ink); }
.amber { color: var(--signal); }
.mut { color: var(--ink-3); } .dim { color: var(--muted); }
.tag { font: 400 12.5px/1.4 var(--sans); color: var(--ink-3); white-space: nowrap; }
.tag:hover { color: var(--signal); text-decoration: none; } .tag.on { color: var(--signal); }
.tags { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* controls: button, chip, quiet link, switch */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border-radius: 8px;
  font: 500 13px var(--sans); border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .024); color: var(--ink-2); }
.btn:hover { text-decoration: none; border-color: var(--line-focus); color: var(--ink); }
.btn.amber { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.btn.amber:hover { background: var(--signal-2); border-color: var(--signal-2); color: var(--on-signal); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 32px; padding: 4px 12px; border-radius: 6px; font: 400 13px var(--sans); border: 1px solid var(--line-strong); color: var(--ink-2); white-space: nowrap; }
.chip:hover { border-color: var(--line-focus); color: var(--ink); }
.chip.on { background: var(--signal); border-color: var(--signal); color: var(--on-signal); font-weight: 500; }
.chip-t { padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--ink-2); font: 400 12.5px var(--sans); }
.chip-t:hover { border-color: var(--line-focus); color: var(--ink); text-decoration: none; }
.chip-t.on { border-color: var(--signal); background: var(--signal); color: var(--on-signal); font-weight: 500; }
.chip-t small { font: 400 11px var(--mono); color: var(--muted); margin-left: 2px; } .chip-t.on small { color: inherit; }
.linkbtn { font: 500 13px var(--sans); color: var(--ink-3); }
.linkbtn:hover { color: var(--signal); }
.switch { display: inline-flex; align-items: center; gap: 8px; font: 400 13px var(--sans); color: var(--ink-2); margin-left: auto; }
.switch i { width: 28px; height: 16px; border: 1px solid var(--line-focus); border-radius: 999px; position: relative; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.switch.on i { border-color: var(--signal); background: var(--signal); } .switch.on i::after { left: 14px; background: var(--on-signal); }

/* Sylin's top bar */
.hdr { position: sticky; top: 0; z-index: 30; height: var(--bar); display: flex; align-items: center; gap: 22px;
  padding: 0 max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter))) 0 max(25px, calc((100% - var(--page)) / 2 + 25px));
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.hdr .sp { flex: 1; }
.brand { font: 600 15px var(--sans); letter-spacing: .34em; white-space: nowrap; color: var(--ink); }
.brand:hover { text-decoration: none; }
.hdr .links { display: flex; gap: 26px; font-size: 14px; white-space: nowrap; }
.hdr .links a { color: var(--ink-3); transition: color .3s; }
.hdr .links a:hover { color: var(--signal); text-decoration: none; }
.hdr .links a.here, .hdr .links a.gh { color: var(--signal); }

/* the page: rail and content, capped and centred, framed by hairlines */
/* one faint amber wash at the top of the main column, as on Sylin's workbench */
main { min-height: 60vh; background: radial-gradient(720px 340px at 100% 0, rgba(251, 191, 36, .05), transparent 70%) no-repeat; }
.shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); max-width: var(--page); margin: 0 auto;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
/* the page closes on one line: what this is, then when it was updated and its feed */
footer { display: flex; align-items: center; justify-content: space-between; gap: 6px 28px; flex-wrap: wrap; max-width: var(--page); margin: 0 auto; border: 1px solid var(--line); border-bottom: 0; padding: 16px var(--gutter) 16px 25px; background: var(--sunk); font: 400 13.5px/1.6 var(--sans); color: var(--ink-3); }
footer .meta { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.rss { display: inline-flex; align-items: center; gap: 6px; } .rss svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
footer a:hover { color: var(--signal); }
@media (max-width: 1320px) { .shell, footer { border-left: 0; border-right: 0; } }

/* the rail in three parts, each closed by a full-width line: where you are, your setup, the filters */
.rail-nav { position: sticky; top: var(--bar); height: calc(100vh - var(--bar)); border-right: 1px solid var(--line); padding: 14px 14px 18px;
  display: flex; flex-direction: column; z-index: 20; }
/* the tool's name, in Sylin's headline voice: light, large, white, over a short amber rule */
.mark { display: block; padding: 4px 10px 16px; font: 300 28px/1 var(--sans); letter-spacing: -.025em; color: var(--ink); }
.mark::after { content: ""; display: block; width: 28px; height: 2px; margin-top: 12px; background: var(--signal); }
.mark:hover { text-decoration: none; }
.search { display: flex; align-items: center; flex: none; height: 32px; margin-bottom: 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--raised); overflow: hidden; }
.search:focus-within { border-color: var(--signal); }
.search input { background: none; border: 0; outline: 0; flex: 1; min-width: 0; padding: 0 10px; font: 400 13px var(--sans); }
.search input::placeholder { color: var(--muted); }
.search kbd { font: 400 11px var(--mono); color: var(--muted); border-left: 1px solid var(--line-strong); padding: 0 8px; height: 100%; display: grid; place-items: center; }
.tabs { display: flex; flex-direction: column; gap: 2px; padding-bottom: 14px; }
.tabs a { display: flex; align-items: center; min-height: 36px; padding: 0 10px; font: 400 14px var(--sans); color: var(--ink-3); white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--ink); font-weight: 500; box-shadow: inset 2px 0 var(--signal); }
.rail-setup, .rail-facets { margin: 0 -14px; padding: 14px; border-top: 1px solid var(--line); }
.rail-facets { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 0; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }

/* My setup: a readout in the rail, edited on a page of its own */
.setup-ro { display: block; border: 1px solid var(--signal-line); border-radius: 8px; background: var(--wash); padding: 10px 12px; }
.setup-ro:hover { text-decoration: none; border-color: var(--signal); }
.setup-ro .hd { display: flex; justify-content: space-between; margin-bottom: 4px; font: 600 10.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--signal); }
.setup-ro b { display: block; font: 500 12.5px/1.45 var(--mono); color: var(--ink); }
.setup-ro .pl { display: block; font: 400 12.5px/1.45 var(--sans); color: var(--ink-3); }
.setup-ro.unset { display: grid; place-items: center; min-height: 34px; padding: 0 12px; background: var(--signal); border-color: var(--signal); color: var(--on-signal); font: 500 13px var(--sans); }
.setup-ro.unset:hover { background: var(--signal-2); border-color: var(--signal-2); }
.ask { display: flex; align-items: center; gap: 14px; padding: 12px var(--gutter); border-bottom: 1px solid var(--line); background: var(--wash); color: var(--ink-3); font-size: 14px; }
.ask:hover { text-decoration: none; color: var(--ink); }
.ask b { margin-left: auto; flex: none; font: 500 13px var(--sans); color: var(--ink-2); }
.setup { padding: 26px var(--gutter) 44px; max-width: 1000px; }
.setup h1 { font: 300 40px/1.1 var(--sans); letter-spacing: -.025em; }
.setup .lede { color: var(--ink-2); margin-top: 10px; max-width: 64ch; }
.setup .now { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font: 400 13.5px var(--sans); color: var(--ink-2); }
.setup .now .mk { margin-right: 7px; } .setup .now .linkbtn { margin-left: auto; }
.setup fieldset { border: 0; border-top: 1px solid var(--line); margin: 26px 0 0; padding: 18px 0 0; min-width: 0; }
.setup legend { float: left; width: 100%; padding: 0; display: flex; align-items: center; gap: 9px; font: 400 21px var(--sans); letter-spacing: -.01em; color: var(--ink); }
.setup legend svg { width: 18px; height: 18px; fill: none; stroke: var(--signal); stroke-width: 1.6; }
.setup .why { clear: both; color: var(--ink-3); font-size: 14px; padding: 6px 0 12px; max-width: 72ch; }
.setup .grp { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 14px; align-items: center; margin-bottom: 8px; }
.setup .grp > span { font: 400 13px var(--sans); color: var(--ink-3); }
.setup .grp > div { min-width: 0; }
.setup .chip { white-space: normal; text-align: left; }
.setup .chip small { margin-left: 5px; font: 400 11.5px var(--mono); color: var(--muted); } .setup .chip.on small { color: inherit; }
.setup .lim { margin: 6px 0 2px; font-size: 13px; color: var(--ink-3); } .setup .lim b { color: var(--ink); font-weight: 500; margin-right: 6px; }
.setup .end { display: flex; align-items: center; gap: 18px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.setup .end .lbl { margin-right: auto; }

/* sections: the number as an eyebrow, a light heading, one line of what it is */
.sec { border-top: 1px solid var(--line); padding: 32px var(--gutter) 32px; }
.sec-h { display: flex; align-items: baseline; gap: 6px 12px; margin-bottom: 16px; flex-wrap: wrap; }
.sec-h .no { font: 500 12px var(--mono); color: var(--signal); }
.sec-h h2 { font: 300 24px/1.2 var(--sans); letter-spacing: -.015em; }
.sec-h .desc { color: var(--ink-3); font-size: 15px; }
.sec-h .right { margin-left: auto; }
.sec-h a.right { font: 500 13px var(--sans); color: var(--ink-3); } .sec-h a.right:hover { color: var(--signal); text-decoration: none; }
.crumbs { margin: 0; padding: 10px var(--gutter); border-bottom: 1px solid var(--line); font: 400 12.5px var(--sans); color: var(--muted); }
.crumbs a:hover { color: var(--ink); } .crumbs b { color: var(--ink); font-weight: 500; } .crumbs i { font-style: normal; padding: 0 8px; }
.page-h { padding: 26px var(--gutter) 6px; } .page-h h1 { font: 300 36px/1.12 var(--sans); letter-spacing: -.02em; } .page-h p { color: var(--ink-3); margin-top: 6px; }

/* hairline cell grids */
.cells { display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cells > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--cell); min-width: 0; }

/* logos: square, monochrome, on a light tile so a dark mark doesn't vanish on the dark page */
.logo { width: 28px; height: 28px; flex: none; display: grid; place-items: center; position: relative; overflow: hidden;
  font: 700 10px var(--mono); letter-spacing: -.02em; color: #23262a; background: #d6d4cd; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 1px; object-fit: contain;
  filter: grayscale(1) contrast(1.7) brightness(.86); background: #d6d4cd; }
.logo.xl { width: 56px; height: 56px; border-radius: 12px; font-size: 17px; } .logo.xl img { padding: 7px; }
.logo.sm { width: 20px; height: 20px; font-size: 9px; }
.logo.kind svg { width: 62%; height: 62%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.logo.kind { color: #4a4d52; }
/* an entry wherever it is named: its logo, then its name */
.echip { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; vertical-align: middle; }
.echip > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.echip:hover { text-decoration: none; color: var(--signal); }
/* favicons mark where a source or link goes (kept in colour: they're for recognition) */
.fav { width: 14px; height: 14px; flex: none; vertical-align: -2px; margin-right: 6px; }

/* fit: marks, the route glyph (shape = route, colour = fit), meters */
.mk { width: 10px; height: 10px; display: inline-block; flex: none; }
.mk.go { background: var(--go); } .mk.plan { background: var(--plan); } .mk.warn { background: var(--warn); }
.mk.out { border: 1px solid var(--line-focus); } .mk.unk { border: 1px dashed #3a3e44; }
.mk.lg { width: 12px; height: 12px; }
.gl { display: inline-grid; place-items: center; width: 18px; height: 18px; cursor: help; vertical-align: middle; }
.gl svg, .lg-sh { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gl.t-go { color: var(--go); } .gl.t-plan { color: var(--plan); } .gl.t-warn { color: var(--warn); } .gl.t-out, .gl.t-unk { color: var(--muted); }
.gl.t-go svg, .gl.t-plan svg { fill: color-mix(in oklch, currentColor 18%, transparent); }
.vd-mark { display: inline-flex; }
.meter { position: relative; height: 4px; background: var(--track); }
.meter > span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--muted); }
.meter.go > span { background: var(--go); } .meter.warn > span { background: var(--warn); }
.meter.over > span { width: 100% !important; background: repeating-linear-gradient(135deg, var(--stop) 0 3px, transparent 3px 6px); }
.meter::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--line-focus); }
.meter.big { height: 9px; }
.vd { font: 600 12px var(--mono); letter-spacing: .05em; white-space: nowrap; color: var(--ink); }
.det { font: 400 12.5px var(--sans); color: var(--ink-3); } .det .meter { margin-top: 6px; max-width: 260px; }
.alt { font: 400 12px var(--sans); color: var(--muted); }
.fit { display: flex; align-items: center; gap: 10px; } .fit > span { flex: none; white-space: nowrap; }
.fit .pct { width: 4ch; text-align: right; font: 400 12.5px var(--mono); color: var(--ink-2); }
.fit .meter { flex: none; width: 100px; max-width: none; margin: 0; } .fit .meter::after { display: none; }

/* how to start: which tool, then the command with a clipboard button */
.term { background: var(--sunk); border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.term-h { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line-strong); }
.steps { padding: 4px 12px 10px; }
.step { padding: 9px 0; border-top: 1px solid var(--line-soft); } .step:first-child { border-top: 0; }
.step > .lbl { display: block; margin-bottom: 5px; color: var(--ink-3); } .step > a.lbl:hover { color: var(--signal); text-decoration: none; }
.cmdline { display: flex; align-items: flex-start; gap: 10px; }
.cmdline code { flex: 1; min-width: 0; font: 400 12.5px/1.6 var(--mono); color: var(--ink-2); white-space: pre-wrap; word-break: break-all; }
.cmdline .d { color: var(--signal); }
.cp { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink-3); }
.cp:hover { border-color: var(--signal); color: var(--signal); }
.cp svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cp .i-done { display: none; } .cp.copied { border-color: var(--go); color: var(--go); } .cp.copied .i-copy { display: none; } .cp.copied .i-done { display: block; }

/* story images: loud, square, full-bleed in their cell */
.card-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--track); }
.card-img.ph { display: grid; place-items: center; padding: 16px; font: 600 18px/1.2 var(--sans); text-align: center; color: var(--ink-3); }

/* home: the week's pick; its image keeps its own shape */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; border-bottom: 1px solid var(--line); }
.hero > a { align-self: stretch; display: flex; align-items: center; border-right: 1px solid var(--line); background: var(--sunk); }
.hero-b { padding: 30px var(--gutter); display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.kicker { display: flex; align-items: center; gap: 10px; font: 600 11px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--signal); }
.kicker .dim { color: var(--muted); font-weight: 500; letter-spacing: .1em; } .kicker .vd-mark { margin-left: 2px; }
.hero-e { font: 600 15px var(--sans); color: var(--ink); margin-bottom: -6px; }
.hero-b h1 { font: 300 36px/1.12 var(--sans); letter-spacing: -.02em; }
.hero-b .dek { color: var(--ink-2); font-size: 16px; }
.strip { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border: 1px solid var(--line); padding: 10px 12px; font: 500 12px var(--mono); }
.strip .lbl { margin-right: 2px; }

/* home: worth exploring */
.wk { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wk > a { padding: 0 14px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; }
.wk > a:first-child { border-left: 0; padding-left: 0; } .wk > a:last-child { padding-right: 0; }
.wk > a:hover { text-decoration: none; } .wk > a:hover b { color: var(--signal); }
.wk > a.off { opacity: .5; }
.wk b { font: 600 15px/1.3 var(--sans); } .wk .blurb { color: var(--ink-3); font-size: 13.5px; }

/* every pane: one closed frame of stacked bands that touch.
   control bar (things you change) / ribbon (a summary or shortcuts) / data / footer.
   One left edge for everything inside: the frame edge + var(--cell). Lines: frame strong, bands normal, rows soft. */
.frame { border: 1px solid var(--line-strong); border-radius: 12px; overflow: auto hidden; }
.frame > * + *, .frame .st-panel > * + * { border-top: 1px solid var(--line); }
.band { display: flex; align-items: center; gap: 14px; padding: 0 var(--cell); min-height: 40px; }
.band:empty, .band.foot:not(:has(> .btn:not([hidden]), > .key:not(:empty))) { display: none; }
.band.bar { background: var(--active); padding: 0; }
.band.bar .switch { margin: 0 var(--cell) 0 auto; flex: none; }
.band.ribbon { background: var(--raised); gap: 20px; padding: 9px var(--cell); white-space: nowrap; overflow: hidden; font: 400 12.5px var(--sans); color: var(--ink-3); }
.band.ribbon > span { display: inline-flex; align-items: center; gap: 7px; }
.band.ribbon b { color: var(--ink); font: 500 12.5px var(--mono); }
.band.ribbon .key { margin-left: auto; gap: 16px; color: var(--muted); }
.band.ribbon .key > span, .band.foot .key > span { display: inline-flex; align-items: center; gap: 6px; }
.band.foot { justify-content: center; padding: 10px var(--cell); }
.band.foot:has(> .key) { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; }
.band.foot .key { display: flex; flex-wrap: wrap; gap: 4px 16px; font: 400 12px var(--sans); color: var(--muted); }
.band.foot .key .lg-sh { color: var(--muted); }
.band.foot > [hidden] { display: block !important; visibility: hidden; }
/* tabs inside a control bar: full height, divided; the current one sinks to the page colour over an amber bar */
.ftabs { display: flex; align-self: stretch; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ftabs::-webkit-scrollbar { display: none; }
.ftabs button { flex: none; min-height: 40px; padding: 0 var(--cell); border-right: 1px solid var(--line); font: 400 13px var(--sans); color: var(--ink-3); white-space: nowrap; }
.ftabs button small { font: 400 11px var(--mono); color: var(--muted); margin-left: 6px; }
.ftabs button:hover { color: var(--ink); }
.ftabs button.on { background: var(--bg); color: var(--ink); font-weight: 500; box-shadow: inset 0 -2px 0 var(--signal); }
#quick { gap: 8px; flex-wrap: wrap; white-space: normal; row-gap: 6px; } #quick > .lbl { margin-right: 6px; }
#ritFit:has(#ritOnly[hidden]) { display: none; }
#ritLegend { display: inline-flex; align-items: center; gap: 20px; }
#ritLegend > span { display: inline-flex; align-items: center; gap: 7px; }
#ritFit .switch { margin-left: auto; flex: none; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { font: 600 10.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tr:hover td { background: var(--raised); }
.tbl .nm a { font-weight: 600; color: var(--ink); } .tbl .nm .meta { display: block; margin-top: 1px; }
.tbl .echip { color: var(--ink); } .tbl .nm.dimmed a { color: var(--muted); }
td.mkc { width: 24px; padding-right: 0; } td.mkc .gl { margin-top: -2px; }
.frame .tbl th { background: var(--sunk); padding: 9px 10px; }
.frame .tbl tr:last-child td { border-bottom: 0; }
.frame .tbl th:first-child, .frame .tbl td:first-child { padding-left: var(--cell); }
.frame .tbl th:last-child, .frame .tbl td:last-child { padding-right: var(--cell); }
.frame .tbl td.mkc { width: 34px; padding-right: 0; }
.frame .cells { border: 0; margin: 0 -1px -1px 0; } .st-panel { overflow: hidden; }  /* the grid's last lines tuck under the frame's */
.nmr { display: flex; align-items: center; gap: 9px; min-width: 0; } .nmr a { min-width: 0; }
/* a maker's page: the read is the point, so it gets the room the other columns leave */
@media (min-width: 901px) { .grp-t { table-layout: fixed; } .grp-t col:nth-child(1) { width: 34px; } .grp-t col:nth-child(2) { width: 24%; } .grp-t col:nth-child(4) { width: 130px; } .grp-t col:nth-child(5) { width: 22%; } }
.vt td.det { width: 230px; } .vt td.c-area { white-space: nowrap; } .vt.area-on .c-area { display: none; }

/* the boards: each category's top three as equal rows, the first bold, movement in its own column */
.band.ribbon.hot { flex-wrap: wrap; gap: 22px; font-size: 13px; }
.hot a { color: var(--ink); } .hot small { font: 400 11px var(--mono); color: var(--muted); margin-left: 5px; } .hot .echip { gap: 6px; }
.lb { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lb-c { display: flex; flex-direction: column; } .lb-c > .lbl { margin-bottom: 8px; }
.lb-c.extra { display: none; } .st-open .lb-c.extra, .st-panel.filtered .lb-c.extra { display: flex; }
.lb-c.off { display: none !important; }
.lb-c .lbl a:hover { color: var(--signal); text-decoration: none; }
.lb-h { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.lb-r { display: grid; grid-template-columns: minmax(0, 1fr) 16px; gap: 10px; align-items: baseline; padding: 3px 0; font: 400 15px/1.35 var(--sans); color: var(--ink-3); }
.lb-r.top { font-weight: 600; color: var(--ink); }
.lb-n { display: flex; align-items: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-n a:hover { color: var(--signal); }
.lb-r .echip .logo.sm, .hot .echip .logo.sm { width: 16px; height: 16px; }
.lb-new { flex: none; margin-left: 8px; padding: 1px 8px; border: 1px solid var(--line-strong); border-radius: 999px; font: 600 10.5px/1.5 var(--sans); letter-spacing: .1em; color: var(--ink-2); vertical-align: 2px; }
.lb-a { font-size: 11px; text-align: right; color: var(--muted); } .lb-a .up { color: var(--go); } .lb-a .down { color: var(--stop); }  /* movement: up green, down red */
.lb-eq { color: var(--muted); font-size: 16px; line-height: 0; }
.st-panel.filtered > .band.foot { display: none; }
.st-panel.none > .cells { display: none; }
.st-panel.none::after { content: "No titles match these filters."; display: block; padding: 14px var(--cell); color: var(--ink-3); font-size: 14px; border-top: 1px solid var(--line); }

/* the catalog: a surface you type in, then the rows */
.cmdbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.frame .cmdbar { padding: 4px var(--cell); min-height: 46px; }
.frame .cmdbar:focus-within { box-shadow: inset 0 0 0 1px var(--signal); }
.cmdbar > .d { color: var(--signal); font: 600 13px var(--mono); }
.cmdbar .tok { font: 400 12.5px var(--sans); background: var(--active); border: 1px solid var(--line-strong); border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.cmdbar .tok:hover { border-color: var(--line-focus); text-decoration: none; }
.cmdbar input { flex: 1; min-width: 240px; background: none; border: 0; outline: 0; font: 400 14px var(--sans); padding: 4px 0; }
.cmdbar input::placeholder { color: var(--muted); }
.cmdbar select { background: transparent; border: 0; font: 400 13px var(--sans); color: var(--ink-3); }
.cmdbar select option { background: var(--raised); }
.cat td.lt { color: var(--ink-3); font-size: 13.5px; }
.cat .nm .meta { padding-left: 29px; }

/* the page's filters: in the rail, a drawer on narrow screens; every section follows them */
.fhead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.fhead .lbl:first-child { color: var(--ink-3); }
.fclear { display: block; color: var(--ink-3); } .fclear:hover { text-decoration: none; color: var(--ink); }
.fg { margin-bottom: 16px; } .fg > .lbl { display: block; margin-bottom: 5px; }
.fc { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 28px; padding: 0 4px; font-size: 13.5px; color: var(--ink-2); }
.fc:hover { text-decoration: none; color: var(--ink); }
.fc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc .box { position: relative; width: 14px; height: 14px; border: 1px solid var(--line-focus); border-radius: 3px; overflow: visible; }
.fc.on { color: var(--ink); } .fc.on .box { background: var(--signal); border-color: var(--signal); }
.fc.on .box::after { content: ""; position: absolute; left: 4px; top: 1px; width: 3px; height: 7px; border: solid var(--on-signal); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.fc small { font: 400 11px var(--mono); color: var(--muted); } .fc.zero:not(.on) { opacity: .4; }
.use-find { width: 100%; height: 30px; margin: 2px 0 5px; padding: 0 9px; background: var(--raised); border: 1px solid var(--line-strong); border-radius: 8px; outline: 0; font: 400 13px var(--sans); }
.use-find:focus { border-color: var(--signal); } .use-find::placeholder { color: var(--muted); }
.facets-m { display: none; }

/* a story */
.art { display: grid; grid-template-columns: minmax(0, 1fr) 340px; border-bottom: 1px solid var(--line); }
.art-main { padding: 28px var(--gutter) 40px; }
.art-main h1 { font: 300 48px/1.07 var(--sans); letter-spacing: -.03em; margin: 14px 0 12px; }
.art-main .dek { font-size: 19px; color: var(--ink-2); margin-bottom: 24px; }
.art-main .card-img { margin-bottom: 26px; }
.rail { border-left: 1px solid var(--line); }
.rail > section { padding: 20px; border-bottom: 1px solid var(--line); }
.rail h3 { font: 600 17px var(--sans); margin: 6px 0 2px; } .rail h3 .echip { font: inherit; }
.rail .lbl.head { display: block; margin-bottom: 10px; }
.prose { font: 400 17px/1.7 var(--sans); color: var(--ink-2); }
.prose > p { margin: 0 0 18px; } .prose > p:first-child { font-size: 19px; color: var(--ink); }
.prose a { color: var(--signal); text-decoration: underline; text-decoration-color: var(--signal-line); text-underline-offset: 3px; }
.prose h2 { font: 600 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 30px 0 14px; }
.prose code { font: 400 14px var(--mono); background: var(--sunk); border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 4px; }
.prose ul { padding-left: 20px; margin: 0 0 18px; }
.sv { border-top: 1px solid var(--line); margin: 8px 0 26px; }
.sv-h { padding: 12px 0; border-bottom: 1px solid var(--line); }
.sv-r { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font: 400 16px/1.6 var(--sans); }
.sv-r .lbl { padding-top: 6px; }
.moment { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.moment:hover { text-decoration: none; } .moment:hover b { color: var(--signal); }
.moment .src { font: 600 10.5px var(--mono); color: var(--ink-3); padding-top: 2px; }
.moment .src .fav { width: 18px; height: 18px; margin: 0; }
.moment b { font-weight: 600; font-size: 14px; } .moment .ts { font: 500 11.5px var(--mono); color: var(--muted); margin-left: 6px; }
.moment .meta { display: block; }
.more-wk { padding: 26px var(--gutter) 34px; }
.more-wk h2 { font: 400 22px var(--sans); letter-spacing: -.015em; margin-bottom: 16px; } .more-wk h2 small { font: 400 12.5px var(--sans); color: var(--muted); margin-left: 10px; }
/* the story's rail: what it is, the read, its titles, whether it runs here, two facts */
.gl-e + .gl-e { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.gl-t { margin-top: 8px; font-size: 14px; color: var(--ink-2); } .gl-t b { font: 600 13px var(--mono); margin-right: 4px; }
.read + .gl-t, .meta + .gl-t { margin-top: 12px; }
.gl-run { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.gl-f { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.gl-f dt { font: 600 10.5px/1.9 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); } .gl-f dd { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }

/* all stories */
.wall { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; }
.wall > a { display: flex; flex-direction: column; gap: 9px; padding: 0 0 14px; }
.wall > a > :not(.card-img) { padding: 0 14px; }
.wall > a.pick { grid-column: span 2; grid-row: span 2; }
.wall > a.pick b { font-size: 24px; font-weight: 300; letter-spacing: -.015em; }
.wall > a:hover { text-decoration: none; } .wall > a:hover b { color: var(--signal); }
.wall b { font: 600 15px/1.3 var(--sans); } .wall .blurb { color: var(--ink-3); font-size: 13.5px; }

/* an entry's page: who it is and how to get it; then the read and its evidence beside cost, alternatives and builds */
.ent-top { display: grid; grid-template-columns: minmax(0, 1fr) 400px; border-bottom: 1px solid var(--line); }
.ident { padding: 28px var(--gutter); display: flex; gap: 22px; }
.ident h1 { font: 300 40px/1.1 var(--sans); letter-spacing: -.025em; }
.ident .by { font: 400 14px var(--sans); color: var(--ink-3); margin: 6px 0 8px; } .ident .by b { color: var(--ink); font-weight: 500; }
/* in this order: what we make of it, whether it fits you, where it ranks first, the latest word, its facts */
.ident > div { min-width: 0; flex: 1; }
.ident .read { margin: 14px 0 0; max-width: 760px; } .ident .read-l { font-size: 17px; }
.hfit { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 9px; margin-top: 12px; }
.ranks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.rank { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 999px; font: 500 12px var(--sans); color: var(--ink-2); white-space: nowrap; }
.ident .lead { font-size: 15px; color: var(--ink-2); margin-top: 14px; max-width: 760px; }
.kfacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 24px; margin: 18px 0 16px; }
.kfacts span { min-width: 0; font: 400 14px/1.45 var(--sans); overflow-wrap: anywhere; } .kfacts span.n { font: 500 12.5px/1.6 var(--mono); }
.kfacts a { border-bottom: 1px dotted var(--muted); } .kfacts a:hover { text-decoration: none; border-bottom-color: var(--ink-2); }
.kfacts i { display: block; font: 600 10.5px var(--sans); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.get { border-left: 1px solid var(--line); padding: 28px var(--gutter); display: flex; flex-direction: column; gap: 14px; }
.get .btn { align-self: flex-start; }
.get .term .steps { padding: 2px 10px 8px; }
.getlinks { list-style: none; margin: 0; padding: 0; }
.getlinks a { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.getlinks a b { font-weight: 600; } .getlinks .fav { align-self: center; margin-right: 0; }
.getlinks a:hover { text-decoration: none; } .getlinks a:hover b { color: var(--signal); }
.ent-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.2fr); }
.ent-cols.two { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.ent-cols > div { border-right: 1px solid var(--line); } .ent-cols > div:last-child { border-right: 0; }
/* a block is a small section: a light heading, then its content; tables and rows of things sit in a frame, as on the landing page */
.blk { padding: 28px var(--gutter) 30px; border-bottom: 1px solid var(--line); }
.blk-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.blk-h h2, .get h2 { font: 300 22px/1.2 var(--sans); letter-spacing: -.015em; }
.facts { width: 100%; border-collapse: collapse; }
.facts td { padding: 8px 0; border-top: 1px solid var(--line-soft); font: 400 13.5px var(--sans); vertical-align: top; }
.facts td:first-child { width: 132px; padding-top: 11px; font: 600 10.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
/* the evaluator's read: one word, one sentence, who said what */
.stance { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 999px; font: 600 10.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.stance.s-weak, .stance.s-unproven { color: var(--muted); }
.read { margin: 10px 0 2px; } .read-l { margin-top: 7px; font: 500 16px/1.4 var(--sans); color: var(--ink); } .read-w { margin-top: 7px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.read-r { margin-top: 12px; font: 400 13px var(--sans); color: var(--ink-3); }
.blk > .read-r:first-child { margin-top: 0; }
.vread { margin-top: 5px; font-size: 13px; color: var(--ink-3); white-space: normal; line-height: 1.45; } .vread .stance { margin-right: 4px; }
/* evidence */
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.log .d { font: 400 12.5px var(--sans); color: var(--muted); padding-top: 2px; }
.log .cl { font-size: 14px; line-height: 1.5; }
.log .srcs { font: 400 12px var(--sans); color: var(--muted); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 2px 12px; }
.log .srcs a { display: inline-flex; align-items: center; } .log .srcs a:hover { color: var(--signal); }
.log .srcs .fav { width: 12px; height: 12px; margin-right: 5px; }
.log .srcs .one { font-style: italic; }
.ev-more { margin-top: 10px; } .ev-more summary { cursor: pointer; list-style: none; } .ev-more[open] summary { display: none; }
/* alternatives and relatives */
.rival { display: block; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.rival .echip { font-weight: 600; color: var(--ink); }
.rival:hover { text-decoration: none; } .rival:hover b { color: var(--signal); }
.rival .mut { display: block; font-size: 13.5px; padding-left: 28px; margin-top: 3px; }
.fam { margin-top: 14px; } .fam .lbl { display: block; margin-bottom: 7px; }
.rel { display: flex; flex-wrap: wrap; gap: 6px; }
.rel a { border: 1px solid var(--line-strong); border-radius: 6px; padding: 4px 10px; font-size: 13.5px; }
.rel a:hover { border-color: var(--line-focus); text-decoration: none; }
/* versions of one line, each with where it stands */
.vtab td { vertical-align: top; } .vtab td:first-child, .vtab td:nth-child(2) { white-space: nowrap; }
.vr { display: inline-block; margin: 0 14px 4px 0; font: 400 12.5px var(--sans); color: var(--ink-3); cursor: help; white-space: nowrap; }
.vr b { font-weight: 600; } .vr small { color: var(--muted); }
/* builds made from a model */
.variants { list-style: none; margin: 0; padding: 0; }
.variants li { display: grid; grid-template-columns: minmax(0, 1fr) 54px; gap: 3px 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line-soft); font-size: 13px; }
.variants a { min-width: 0; display: flex; align-items: baseline; } .variants a:hover { text-decoration: none; color: var(--signal); }
.variants .vn { overflow-wrap: anywhere; }
.variants .vt { grid-column: 1 / -1; padding-left: 20px; gap: 2px 10px; }
.variants .vdef { font: 600 10.5px var(--sans); letter-spacing: .1em; color: var(--ink-2); }
.variants .tag { cursor: default; } .variants .tag:hover { color: var(--ink-3); }
.variants li > .meta { text-align: right; }
.more-v summary { list-style: none; cursor: pointer; padding-top: 8px; } .more-v summary::-webkit-details-marker { display: none; }
.more-v[open] summary { display: none; }
/* what runs on a runtime */
.runs { list-style: none; margin: 0; padding: 0; }
.runs li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto 64px 48px; gap: 10px; align-items: center; padding: 8px var(--cell); border-top: 1px solid var(--line-soft); font-size: 14px; }
.runs li:first-child { border-top: 0; } .runs a, .runs .echip { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .runs a:hover { color: var(--signal); text-decoration: none; }
.runs .meta { text-align: right; white-space: nowrap; } .runs + details { margin-top: 8px; } .runs + details summary { cursor: pointer; list-style: none; }

/* Cost to run */
.cost-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.cost-tabs button { text-align: left; min-height: 36px; padding: 6px 12px; font: 400 13px var(--sans); color: var(--ink-3); }
.cost-tabs button + button { border-left: 1px solid var(--line); }
.cost-tabs button.on { color: var(--ink); font-weight: 500; box-shadow: inset 0 -2px 0 var(--signal); }
.cost-tabs small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.verdict-big { display: flex; align-items: center; gap: 12px; font: 500 20px/1.2 var(--sans); color: var(--ink); margin: 6px 0 8px; }
.cost .det { font-size: 14px; color: var(--ink-2); } .cost .alt { margin-top: 6px; } .cost .meter { margin-top: 8px; }
.cost-f { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.try-other { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.try-other .row { display: grid; grid-template-columns: 80px 1fr; gap: 10px; align-items: center; }
.units { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 6px 0 2px; }
.units b { font: 300 24px/1.2 var(--sans); letter-spacing: -.015em; } .units .meta { white-space: nowrap; }
.peers { margin-top: 14px; } .peers .row { display: grid; grid-template-columns: 120px 1fr 54px; gap: 10px; align-items: center; padding: 3px 0; font: 400 12.5px var(--sans); }
.peers .bar { height: 6px; background: var(--track); position: relative; } .peers .bar span { position: absolute; inset: 0 auto 0 0; background: var(--muted); }
.peers .row.me { color: var(--ink); font-weight: 500; } .peers .row.me .bar span { background: var(--ink); }
.peers .row .n { text-align: right; font-family: var(--mono); }
.foot { font: 400 12px var(--sans); color: var(--muted); margin-top: 10px; }
.band.foot { margin-top: 0; }
.plan-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px var(--cell); font-size: 14px; }
.cost .plan-row > .meta { flex: none; white-space: nowrap; }
.plan-row.in { background: var(--wash); box-shadow: inset 2px 0 var(--signal); } .plan-row.in > .meta { color: var(--ink); }
.plan-row.over, .plan-row.over b { color: var(--ink-3); }

@media (max-width: 1180px) {
  .wk { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; } .wk > a:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
  .lb { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ent-cols { grid-template-columns: 1fr 1fr; } .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shell, .hero, .art, .ent-top, .ent-cols, .ent-cols.two { grid-template-columns: minmax(0, 1fr); }
  .hero > a, .rail, .get, .ent-cols > div { border-left: 0; border-right: 0; }
  .wk { grid-template-columns: 1fr 1fr; gap: 22px 14px; } .wk > a:nth-child(n) { border-left: 0; padding: 0; }
  .lb, .wall { grid-template-columns: 1fr; } .wall > a.pick { grid-column: auto; grid-row: auto; }
  .art-main h1 { font-size: 34px; } .hide-sm { display: none; }
  .hdr { position: static; height: auto; flex-wrap: wrap; justify-content: center; gap: 4px 0; padding-block: 12px 8px; }
  .hdr .sp, .mark, .search { display: none; } .brand { width: 100%; text-align: center; }
  .hdr .links { flex-wrap: wrap; justify-content: center; gap: 0 18px; font-size: 12.5px; } .hdr .links a { min-height: 30px; display: inline-flex; align-items: center; }
  /* the rail becomes a strip: the setup first, where it is seen without swiping, then the sections */
  .rail-nav { top: 0; height: auto; flex-direction: row; align-items: center; gap: 10px; padding: 8px 12px;
    border-right: 0; border-bottom: 1px solid var(--line); background: var(--bg); overflow-x: auto; }
  .tabs { flex-direction: row; padding-bottom: 0; } .tabs a { min-height: 40px; } .tabs a.on { box-shadow: inset 0 -2px var(--signal); }
  .rail-setup { order: -1; flex: none; margin: 0; padding: 0; border: 0; }
  .setup-ro { padding: 6px 10px; white-space: nowrap; } .setup-ro .hd, .setup-ro .pl { display: none; } .setup-ro b { display: inline; }
  .rail-facets { display: none; }
  .facets-m { display: block; background: var(--raised); }
  .facets-m > summary { padding: 13px var(--cell); cursor: pointer; list-style: none; color: var(--ink-2); }
  .facets-m > summary::after { content: " +"; color: var(--muted); } .facets-m[open] > summary::after { content: " −"; }
  .facets-m .facets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; padding: 4px var(--cell) 6px; }
  .facets-m .fclear { grid-column: 1 / -1; }
  html { scroll-padding-top: 56px; }
  input, select { font-size: 16px; }
  .chip { min-height: 40px; } .fc { min-height: 36px; } .tag { padding: 4px 0; } .linkbtn { padding: 8px 0; }
}
@media (max-width: 720px) {
  .band.foot:has(> .key) { grid-template-columns: 1fr; justify-items: center; gap: 10px; }
  .band.ribbon { overflow-x: auto; }
  #ritFit, #ritLegend { flex-wrap: wrap; white-space: normal; row-gap: 6px; }
  .runs li { grid-template-columns: 18px minmax(0, 1fr) 64px; } .runs li .ar, .runs li .dt { display: none; }
  .fit .meter { width: 56px; } .fit .meta { display: none; }
}
/* phones: each "For your setup" row becomes one block (mark, name, then how it fits) */
@media (max-width: 700px) {
  .setup .grp { grid-template-columns: minmax(0, 1fr); gap: 4px; margin-bottom: 14px; } .setup h1 { font-size: 32px; } .ask { flex-wrap: wrap; }
  .vt thead { display: none; }
  .vt, .vt tbody { display: block; }
  .frame .vt tr { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px var(--cell); border-bottom: 1px solid var(--line-soft); }
  .frame .vt td, .frame .vt td:first-child, .frame .vt td:last-child { display: block; padding: 0; border: 0; background: none !important; }
  .frame .vt td.mkc { grid-row: 1; width: auto; padding-top: 5px; }
  .vt td.nm { grid-column: 2; grid-row: 1; }
  .frame .vt td.det { grid-column: 3; grid-row: 1; width: auto; text-align: right; }
  .frame .vt td.meta, .frame .vt td.hide-sm { display: none; }
}
