/* HexSight · one app, Night look.
   Every color, size and motion value lives in the token block. Nothing below
   uses a raw color. Red, amber and green only ever mean a verdict. */

/* Fonts are served from this site (/fonts/). Latin letters only; every character the pages use is in that set.
   Licenses: /fonts/OFL.txt. font-display: swap shows text at once in a fallback, then swaps in. */
@font-face { font-family: "Archivo"; src: url(/fonts/archivo.woff2) format("woff2"); font-weight: 400 900; font-stretch: 100% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url(/fonts/martian-mono.woff2) format("woff2"); font-weight: 400 600; font-stretch: 75% 112.5%; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url(/fonts/schibsted-grotesk.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, Menlo, monospace;

  --r-panel: 12px;
  --r-ctrl: 8px;
  --r-mark: 4px;
  --gap: 20px;
  --pad: max(16px, min(2.6vw, 48px));
  /* One container for header, pages and footer: the screen minus a gutter, capped only on very wide screens. */
  --max: 2240px;
  --edge: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));

  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 140ms;
  --t-mid: 260ms;
}

/* ---------- Night: graphite with one electric yellow ----------
   Lifted from near-black so the page never reads as one dark slab.
   Text tokens are set for at least 6:1 contrast on every surface. */
[data-world="night"] {
  --bg: #111114;
  --bg-2: #16161a;
  --surface: #1c1c21;
  --raised: #27272e;
  --float: #303038;
  --sunk: #0d0d10;
  --line: #33333c;
  --line-2: #4a4a56;
  --ink: #f8f6ef;
  --ink-2: #dedad0;
  --ink-3: #b0aca2;
  --accent: #f2e205;
  --on-accent: #141417;
  --mark: #f2e205;
  --accent-soft: rgba(242, 226, 5, .16);
  --good: #4cd884;
  --warn: #ffa04d;
  --bad: #ff5c5c;
  --good-soft: rgba(76, 216, 132, .15);
  --warn-soft: rgba(255, 160, 77, .15);
  --bad-soft: rgba(255, 92, 92, .15);
  /* Severity ramp: red to amber to grey. Used only for problem levels. */
  --sev-critical: #ff4d5e;
  --sev-high: #ff7a3d;
  --sev-medium: #ffb547;
  --sev-low: #a7a399;
  --dot: #f6f4ed;
  --dot-faint: rgba(246, 244, 237, .2);
  --sun: linear-gradient(150deg, #f9ee40 0%, #f2e205 48%, #e5d300 100%);
  --shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 24px 48px -28px rgba(0, 0, 0, .85);
  /* three heights: panel on the page, block inside a panel, callout that floats over both */
  --sh-1: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 0 0 1px rgba(0, 0, 0, .35), 0 22px 44px -28px rgba(0, 0, 0, .9);
  --sh-2: 0 1px 0 rgba(255, 255, 255, .07) inset, 0 12px 26px -16px rgba(0, 0, 0, .9);
  --sh-3: 0 1px 0 rgba(255, 255, 255, .1) inset, 0 0 0 1px rgba(255, 255, 255, .04), 0 30px 60px -22px rgba(0, 0, 0, .95);
  --shadow-ctrl: 0 1px 0 rgba(255, 255, 255, .07) inset, 0 2px 0 rgba(0, 0, 0, .5);
  --glow: radial-gradient(60% 50% at 85% 0%, rgba(242, 226, 5, .18), transparent 72%), radial-gradient(60% 40% at 0% 100%, rgba(242, 226, 5, .06), transparent 70%);
  --grain-opacity: .06;
  --grain-blend: overlay;
  color-scheme: dark;
}

/* Bold yellow sections. Inside one, every token flips to dark ink on yellow.
   Status colors never sit on yellow. */
.sun {
  --bg: #f2e205;
  --surface: transparent;
  --raised: rgba(255, 255, 255, .32);
  --float: rgba(255, 255, 255, .5);
  --sunk: rgba(20, 20, 23, .07);
  --line: rgba(20, 20, 23, .16);
  --line-2: rgba(20, 20, 23, .3);
  --ink: #141417;
  --ink-2: rgba(20, 20, 23, .8);
  --ink-3: rgba(20, 20, 23, .66);
  --mark: #141417;
  --accent: #141417;
  --on-accent: #f2e205;
  --accent-soft: rgba(20, 20, 23, .1);
  --shadow-ctrl: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 2px 0 rgba(20, 20, 23, .18);
  background: var(--sun) !important;
  color: var(--ink);
  border-color: rgba(20, 20, 23, .2) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 30px 60px -30px rgba(242, 226, 5, .35), 0 24px 48px -28px rgba(0, 0, 0, .8) !important;
}
.sun ::selection { background: rgba(20, 20, 23, .2); }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  background-image: var(--glow);
  background-attachment: fixed;
  color: var(--ink);
  font: 400 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease);
}
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 60;
  opacity: var(--grain-opacity); mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1.2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; border-radius: var(--r-mark); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--font-mono); font-size: .82em; letter-spacing: -.01em; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 12px var(--edge);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.mark {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 800 17px/1 var(--font-display); font-stretch: 112%; letter-spacing: -.01em;
}
.mark svg { width: 28px; height: 28px; }
.mark .glint { fill: var(--bg); }
.mark .lid { transform-origin: 12px 12px; }
.mark:hover .lid, .mark:focus-visible .lid, .mark.blinking .lid { animation: mark-blink .45s ease; }
@keyframes mark-blink { 50% { transform: scaleY(.12); } }
@media (prefers-reduced-motion: reduce) { .mark:hover .lid, .mark.blinking .lid { animation: none; } }
.mark .seal-dot { fill: var(--mark); }
.tabs { position: relative; display: flex; gap: 4px; justify-self: center; background: var(--sunk); padding: 4px; border-radius: 10px; border: 1px solid var(--line); box-shadow: inset 0 1px 2px rgba(0,0,0,.08); }
.tab {
  position: relative; border: 0; background: transparent; cursor: pointer;
  padding: 8px 14px; border-radius: var(--r-ctrl);
  font: 600 14px/1 var(--font-body); color: var(--ink-3);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.tab:hover { color: var(--ink); }
.tab { z-index: 1; }
.tab[aria-current="page"] { color: var(--on-accent); }
.tabs .thumb {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: var(--r-ctrl);
  background: var(--accent); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 2px 0 rgba(0,0,0,.45), 0 6px 18px -8px rgba(242,226,5,.6);
  transition: transform 380ms cubic-bezier(.3, 1.25, .45, 1), width 380ms cubic-bezier(.3, 1.25, .45, 1);
}

/* top right: docs and X */
.bar-r { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 8px; }
.hbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 13px; border-radius: 8px;
  border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--raised), var(--surface)); color: var(--ink);
  font: 600 13.5px/1 var(--font-body); text-decoration: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 2px 0 rgba(0, 0, 0, .35);
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.hbtn:hover { border-color: var(--accent); }
.hbtn:active { transform: translateY(1px); }
.hbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.xbtn { width: 34px; padding: 0; }
.xbtn svg { width: 15px; height: 15px; }

/* ---------- layout ---------- */
main { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: clamp(18px, 3.2vh, 36px) var(--pad) 28px; }
.view { animation: in var(--t-mid) var(--ease); }
@keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* Tabs slide in from the side you moved toward. */
.view.in-r { animation: in-r 420ms var(--ease) both; }
.view.in-l { animation: in-l 420ms var(--ease) both; }
@keyframes in-r { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes in-l { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
/* Rows and parts arrive one after another, never more than a beat apart. */
.rise { animation: rise 460ms var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
.spin { transform-origin: 150px 150px; animation: spin var(--d, 40s) linear infinite; }
.spin.rev { animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.result { animation: in 320ms var(--ease); }
.quick button:hover { transform: translateY(-1px); }

.panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow);
}
.kicker { font: 500 11.5px/1.35 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.kicker::before { content: ""; width: 14px; height: 2px; background: var(--mark); border-radius: 1px; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); letter-spacing: -.02em; }
.h1 { font-weight: 800; font-stretch: 118%; font-size: clamp(40px, 5.2vw, 124px); line-height: .94; letter-spacing: -.035em; }
.h2 { font-weight: 800; font-stretch: 112%; font-size: clamp(26px, 3vw, 38px); line-height: 1; letter-spacing: -.03em; }
/* The hero line says what the product does, so it is longer: a little smaller, in even lines. */
.hero .h1 { text-wrap: balance; }
@media (min-width: 601px) { .hero .h1 { font-size: clamp(40px, 4vw, 96px); line-height: .98; } }
.lede { color: var(--ink-2); font-size: clamp(17px, 1.25vw, 24px); line-height: 1.45; margin: 18px 0 0; max-width: 46ch; }

/* ---------- check: the stage ---------- */
.stage {
  display: grid; gap: var(--gap);
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  grid-template-areas: "lead inst";
  align-items: stretch;
}
.stage > * { min-width: 0; }
.lead { grid-area: lead; display: flex; flex-direction: column; justify-content: center; padding: 8px 0; }
.instrument { grid-area: inst; position: relative; min-height: clamp(380px, 31vw, 680px); overflow: hidden; background: radial-gradient(80% 50% at 50% 110%, rgba(242, 226, 5, .1), transparent 70%), var(--surface); }
.instrument canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.instrument .caption {
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font: 500 11.5px/1.3 var(--font-mono); color: var(--ink-3); letter-spacing: .02em;
}
.instrument .caption b { color: var(--ink); font-weight: 600; }
.instrument .caption .cap-s { font-style: normal; margin-right: auto; }
.instrument .caption .cap-s.tone-good { color: var(--good); } .instrument .caption .cap-s.tone-warn { color: var(--warn); } .instrument .caption .cap-s.tone-bad { color: var(--bad); }
.instrument .cap-go { color: var(--ink-2); }
.instrument.is-idle { cursor: pointer; }
.instrument.is-idle:hover .cap-go, .instrument.is-idle:focus-visible .cap-go { color: var(--mark); }
.instrument:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; }
.instrument .corner { position: absolute; top: 14px; left: 16px; font: 500 11px/1 var(--font-mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; }
.ticks { position: absolute; inset: 10px; pointer-events: none; }
.ticks i { position: absolute; width: 10px; height: 10px; border-color: var(--line-2); border-style: solid; }
.ticks i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.ticks i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.ticks i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.ticks i:nth-child(4) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

/* the field */
.field {
  margin-top: 28px; display: flex; align-items: stretch;
  background: var(--sunk); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .12);
  transition: border-color var(--t-fast) var(--ease);
}
.field:focus-within { border-color: var(--ink-2); }
.field .prompt { display: grid; place-items: center; width: 34px; color: var(--mark); font: 600 15px/1 var(--font-mono); }
.field input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font: 500 15px/1 var(--font-mono); letter-spacing: -.01em; padding: 14px 6px; color: var(--ink);
}
.field input::placeholder { color: var(--ink-3); }
@media (min-width: 1500px) { .field input { font-size: clamp(15px, 1vw, 20px); padding: 18px 8px; } .field .btn { font-size: 16px; padding-inline: 22px; } .kicker { font-size: 12.5px; } }

/* crafted buttons: a key you press, not a stock rectangle */
.btn {
  --b-bg: var(--accent); --b-ink: var(--on-accent);
  position: relative; cursor: pointer; border: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 20px; min-height: 46px; border-radius: var(--r-ctrl);
  background: var(--b-bg); color: var(--b-ink);
  font: 700 15px/1 var(--font-body); letter-spacing: -.005em;
  box-shadow: 0 1px 0 rgba(255,255,255,.28) inset, 0 -2px 0 rgba(0,0,0,.18) inset, 0 3px 0 color-mix(in srgb, var(--b-bg) 55%, #000), 0 10px 18px -10px color-mix(in srgb, var(--b-bg) 70%, transparent);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), filter var(--t-fast);
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 1px 0 color-mix(in srgb, var(--b-bg) 55%, #000); }
.btn .arrow { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn.ghost { --b-bg: var(--raised); --b-ink: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--shadow-ctrl); min-height: 40px; font-size: 14px; padding: 0 14px; }
.btn.ghost:active { transform: translateY(1px); }
.btn.small { min-height: 34px; font-size: 13px; padding: 0 12px; }

/* quick starts: labelled keys in a row, not pills */
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.quick button {
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 11px; border-radius: var(--r-ctrl);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  font: 500 13px/1 var(--font-body); box-shadow: var(--shadow-ctrl);
  transition: color var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease);
}
.quick button:hover { color: var(--ink); border-color: var(--line-2); }
.quick button:active { transform: translateY(1px); }
.quick .n { font: 600 10.5px/1 var(--font-mono); color: var(--ink-3); background: var(--sunk); padding: 3px 5px; border-radius: 4px; }
.field-err { margin: 10px 2px 0; font: 500 14px/1.4 var(--font-body); color: var(--bad); overflow-wrap: anywhere; }
.field-err[hidden] { display: none; }
.field input[aria-invalid="true"] { color: var(--bad); }
.fine { margin: 18px 0 0; font-size: 13px; color: var(--ink-3); }

/* the six checks as one weighted bar */
.weights { margin-top: var(--gap); padding: 18px 20px; display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; }
.weights h3 { font: 700 15px/1.2 var(--font-display); font-stretch: 108%; letter-spacing: -.01em; }
.weights .sub { color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.wbar { display: flex; gap: 3px; min-height: 54px; }
.wseg {
  position: relative; flex: var(--w) 1 0; min-width: 0; border: 0; cursor: default; text-align: left;
  background: var(--raised); border-radius: 6px; padding: 9px 10px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background var(--t-fast);
}
.wseg:hover, .wseg:focus-visible { background: var(--accent-soft); }
.wseg b { font: 600 12.5px/1.15 var(--font-body); color: var(--ink); overflow-wrap: anywhere; }
.wseg { gap: 6px; }
.wseg span { font: 500 10.5px/1 var(--font-mono); color: var(--ink-3); }
.wseg .tip {
  position: absolute; left: 0; bottom: calc(100% + 8px); white-space: nowrap; z-index: 5;
  background: var(--ink); color: var(--bg); font: 500 12px/1 var(--font-body); padding: 8px 10px; border-radius: 6px;
  display: none; pointer-events: none;
}
.wseg { overflow: visible; }
.wseg:hover .tip, .wseg:focus-visible .tip { display: block; animation: in var(--t-fast) var(--ease); }
.wseg:nth-last-child(-n+2) .tip { left: auto; right: 0; }

/* ---------- check: result layouts ---------- */
.is-result .stage { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-areas: "bar bar" "inst panel"; }
.is-result .lead { grid-area: bar; padding: 0; }
.is-result .lead .hero { display: none; }
.is-result .lead .field { margin-top: 0; }
.is-result .lead .quick, .is-result .lead .fine { display: none; }
.is-result .weights { display: none; }
.is-result .instrument { min-height: 420px; }
.result { grid-area: panel; padding: 22px 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; container: report / inline-size; }
/* Once a site report is on screen it gets the whole width: one score, no empty dot panel beside it. */
.is-report .stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "bar" "panel"; }
.is-report .instrument { display: none; }
@media (min-width: 1000px) { .is-report .result { padding: 28px 32px 30px; gap: 26px; } }

.verdict { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.verdict .host { font: 600 13px/1 var(--font-mono); color: var(--ink-3); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.verdict .word { font: 800 34px/1 var(--font-display); font-stretch: 115%; letter-spacing: -.03em; }
.verdict .score { text-align: right; font: 600 12px/1 var(--font-mono); color: var(--ink-3); white-space: nowrap; }
.verdict .score b { display: block; font: 800 34px/1 var(--font-display); font-stretch: 110%; color: var(--ink); margin-bottom: 6px; letter-spacing: -.03em; }
.tone-good { color: var(--good); } .tone-warn { color: var(--warn); } .tone-bad { color: var(--bad); } .tone-none { color: var(--ink-3); }

.todo { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 14px 16px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); }
.todo .ico { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; }
.todo .ico svg { width: 16px; height: 16px; }
.todo.good .ico { background: var(--good-soft); color: var(--good); }
.todo.warn .ico { background: var(--warn-soft); color: var(--warn); }
.todo.bad .ico { background: var(--bad-soft); color: var(--bad); }
.todo p { margin: 3px 0 0; font-weight: 600; line-height: 1.4; }
.todo.none .ico { background: var(--sunk); color: var(--ink-3); }
.todo p b { font-weight: 700; }
.todo p .sb { display: block; margin-top: 3px; font-weight: 400; color: var(--ink-2); }
.todo p.src { font: 500 11.5px/1.4 var(--font-mono); color: var(--ink-3); margin-top: 6px; }
.sell { margin-top: 10px; }
/* copycat check: one panel, three answers separated by hairlines */
.cc { margin-top: 10px; padding: 12px 16px 10px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line), 0 6px 18px -14px rgba(0,0,0,.35); }
.cc-h { display: block; font: 700 10.5px/1.6 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 4px; }
.cc ul { list-style: none; margin: 0; padding: 0; }
.cc li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; padding: 9px 0; }
.cc li + li { border-top: 1px solid var(--line); }
.cc .ico { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; background: var(--sunk); color: var(--ink-3); }
.cc .ico svg { width: 14px; height: 14px; }
.cc li.good .ico { background: var(--good-soft); color: var(--good); }
.cc li.warn .ico { background: var(--warn-soft); color: var(--warn); }
.cc li.bad .ico { background: var(--bad-soft); color: var(--bad); }
.cc li b { display: block; font-weight: 700; line-height: 1.35; margin-top: 2px; }
.cc li span:not(.ico) { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--ink-2); overflow-wrap: anywhere; }
.cc .src { font: 500 11.5px/1.4 var(--font-mono); color: var(--ink-3); margin: 6px 0 0; }
.todo-k { font: 500 10.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }

/* state marks used by the list results */
.state { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; }
.state svg { width: 13px; height: 13px; }
.state.good { background: var(--good-soft); color: var(--good); }
.state.warn { background: var(--warn-soft); color: var(--warn); }
.state.bad { background: var(--bad-soft); color: var(--bad); }
.state.none { background: var(--sunk); color: var(--ink-3); }


.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; }
details.wire { border: 1px solid var(--line); border-radius: 10px; background: var(--sunk); }
details.wire summary { cursor: pointer; list-style: none; padding: 11px 14px; font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
details.wire summary::-webkit-details-marker { display: none; }
details.wire summary::after { content: "+"; font: 500 16px/1 var(--font-mono); color: var(--ink-3); }
details.wire[open] summary::after { content: "−"; }
.wire dl { margin: 0; padding: 0 14px 12px; display: grid; grid-template-columns: 140px 1fr; gap: 7px 14px; }
.wire dt { color: var(--ink-3); font-size: 13px; }
.wire dd { margin: 0; font: 500 12.5px/1.4 var(--font-mono); word-break: break-all; }

/* list result: worst first */
.sumbar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; margin: 4px 0 2px; }
.sumbar i { display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink-2); }
.legend b { font-family: var(--font-mono); font-size: 12px; margin-right: 4px; }
.legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; }

.rows { border-top: 1px solid var(--line); max-height: 360px; overflow: auto; scrollbar-width: thin; }
.row {
  width: 100%; border: 0; background: transparent; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: minmax(0, 1.4fr) 92px 1fr 1fr 1fr; gap: 10px; align-items: center;
  padding: 10px 6px; border-bottom: 1px solid var(--line); font-size: 14px;
  transition: background var(--t-fast);
}
.row:hover { background: var(--raised); }
.row .h { font: 600 13.5px/1.2 var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sc { display: flex; align-items: center; gap: 8px; font: 700 15px/1 var(--font-display); font-stretch: 110%; }
.row .flag { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .flag .state { width: 18px; height: 18px; border-radius: 5px; flex: none; }
.row .flag { min-width: 0; }
.row .flag .state svg { width: 11px; height: 11px; }
.row.pending { cursor: default; color: var(--ink-3); }
.rowhead { display: grid; grid-template-columns: minmax(0, 1.4fr) 92px 1fr 1fr 1fr; gap: 10px; padding: 8px 6px; font: 500 10.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }

/* token result */
/* who the token says it is: logo, name, ticker, and a still picture of its listed website */
.tid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: auto 1fr; grid-template-areas: "who site" "src site"; gap: 12px 22px; align-items: start; }
.tid-who { grid-area: who; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; }
.tid-logo { position: relative; width: 64px; height: 64px; border-radius: 16px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--raised), var(--sunk)); border: 1px solid var(--line-2); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06); }
.tid-logo b { font: 800 22px/1 var(--font-display); color: var(--accent); letter-spacing: -.02em; }
.tid-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--t-mid) var(--ease); }
.tid-logo.has-img img { opacity: 1; }
.tid-txt { min-width: 0; }
.tid-name { font: 800 26px/1.1 var(--font-display); font-stretch: 110%; letter-spacing: -.02em; color: var(--ink); overflow-wrap: anywhere; }
.tid-tick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; }
.tid-tick b { font: 700 15px/1 var(--font-mono); color: var(--accent); }
.tid-chain { font: 600 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); padding: 4px 6px; border-radius: 5px; border: 1px solid var(--line-2); }
.tid-tick code { font: 500 12px/1 var(--font-mono); color: var(--ink-3); }
.tid-read { margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.tid-src { grid-area: src; margin: 0; font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.tid-src a { color: var(--ink-2); }
.tid-site { grid-area: site; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tid-shot { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: var(--sunk); text-decoration: none;
  box-shadow: 0 24px 40px -28px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .05); transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.tid-shot:hover { transform: translateY(-2px); border-color: var(--accent); }
.tid-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--raised); }
.tid-bar i { width: 7px; height: 7px; border-radius: 50%; border: 1.2px solid var(--line-2); }
.tid-bar span { margin-left: 6px; font: 600 12px/1 var(--font-mono); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tid-img { position: relative; display: block; aspect-ratio: 16 / 10; background: linear-gradient(90deg, var(--sunk), var(--raised), var(--sunk)); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.tid-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity var(--t-mid) var(--ease); }
.tid-shot.is-ready .tid-img { animation: none; }
.tid-shot.is-ready .tid-img img { opacity: 1; }
.tid-shot.is-none .tid-img { animation: none; background: var(--sunk); }
.tid-shot.is-none .tid-img::after { content: "No picture yet. Open the site to see it."; position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--ink-3); }
.tid-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.tid-nosite { padding: 18px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--ink-3); font-size: 13.5px; }
@media (max-width: 700px) {
  .tid { grid-template-columns: 1fr; grid-template-areas: "who" "site" "src"; }
  .tid-name { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .tid-img { animation: none; } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stats div { background: var(--raised); padding: 14px 16px; }
.stats span { display: block; font: 500 10.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 8px; }
.stats b { font: 800 26px/1 var(--font-display); font-stretch: 110%; letter-spacing: -.02em; }
.stats.pool { grid-template-columns: repeat(4, 1fr); }
.stats.pool b { font-size: 20px; }
.stats div { min-width: 0; }
.stats.words b { font-size: 19px; line-height: 1.15; overflow-wrap: anywhere; }
.nc .nc-why { grid-column: 2; margin: 6px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
@media (max-width: 600px) { .stats.pool, .stats.words { grid-template-columns: 1fr 1fr; } .stats.words div:last-child { grid-column: 1 / -1; } .nc .nc-why { grid-column: 1; } }

/* ---------- standings ---------- */
.split { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: var(--gap); align-items: start; }
.side { padding: 22px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 84px; }
.side .h2 { font-size: clamp(22px, 2.2vw, 28px); }
.big { font: 800 64px/.9 var(--font-display); font-stretch: 118%; letter-spacing: -.04em; }
.big small { font-size: .38em; color: var(--ink-3); letter-spacing: -.01em; }
.side p { margin: 0; color: var(--ink-2); }
.cats { display: flex; flex-direction: column; gap: 2px; }
.cat {
  display: grid; grid-template-columns: 1fr 70px 26px; gap: 10px; align-items: center; cursor: pointer;
  border: 0; background: transparent; text-align: left; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-2);
  transition: background var(--t-fast), color var(--t-fast);
}
.cat:hover { background: var(--raised); color: var(--ink); }
.cat[aria-pressed="true"] { background: var(--raised); color: var(--ink); box-shadow: var(--shadow-ctrl); }
.cat .minibar { height: 6px; border-radius: 3px; background: var(--bad-soft); overflow: hidden; display: flex; }
.cat .minibar i { background: var(--good); }
.sun .cat .minibar { background: rgba(20, 20, 23, .14); }
.sun .cat .minibar i { background: #141417; }
.cat .ct { font: 500 11px/1 var(--font-mono); color: var(--ink-3); text-align: right; }
.board { padding: 8px 18px 6px; }
.board .rows { max-height: calc(100vh - 230px); min-height: 300px; border-top: 0; }
.board .row, .board .rowhead { grid-template-columns: 34px minmax(0, 1.3fr) 110px 1fr 1fr 1fr; }
.rank { font: 500 12px/1 var(--font-mono); color: var(--ink-3); }
.when { font: 500 11.5px/1 var(--font-mono); color: var(--ink-3); }

/* ---------- the record ---------- */
.record-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--gap); align-items: start; }
.callbox { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.callbox .field { margin-top: 6px; }
.callbox .row2 { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.input {
  border: 1px solid var(--line-2); background: var(--sunk); border-radius: var(--r-ctrl); padding: 0 12px; min-height: 46px;
  font: 500 14px/1 var(--font-mono); color: var(--ink); outline: none; box-shadow: inset 0 2px 4px rgba(0,0,0,.08); min-width: 0;
}
.input:focus { border-color: var(--ink-2); }
.msg { font-size: 14px; font-weight: 600; min-height: 20px; }
.msg.bad { color: var(--bad); } .msg.good { color: var(--good); }
.readout { border: 1px solid var(--line); border-radius: 10px; background: var(--raised); padding: 14px 16px; display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; font-size: 14px; }
.readout dt { color: var(--ink-3); } .readout dd { margin: 0; font-family: var(--font-mono); font-size: 13px; }
.seal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border-radius: 10px; background: var(--sunk); border: 1px solid var(--line); font-size: 13.5px; }
.seal .led { width: 8px; height: 8px; border-radius: 2px; background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.seal code { font: 500 12px/1 var(--font-mono); color: var(--ink-3); }
.seal a { font-weight: 600; color: var(--ink); text-decoration-color: var(--mark); text-underline-offset: 3px; }
.boards { display: grid; gap: var(--gap); }
.boards .panel { padding: 18px 20px; }
.boards h3 { font: 700 17px/1 var(--font-display); font-stretch: 108%; display: flex; align-items: baseline; gap: 10px; }
.steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 1px; background: var(--line-2); }
.steps li { position: relative; padding: 22px 12px 0 0; display: flex; flex-direction: column; gap: 4px; }
.steps li::before { content: ""; position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 4px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink-2); }
.steps li:last-child::before { background: var(--ink); }
.steps b { font: 700 14px/1.2 var(--font-display); font-stretch: 106%; }
.steps span { color: var(--ink-2); font-size: 13.5px; line-height: 1.4; }
.boards h3 span { font: 500 12px/1 var(--font-body); color: var(--ink-3); letter-spacing: 0; }
.empty { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; padding: 18px 4px 6px; color: var(--ink-2); font-size: 14.5px; }
.empty svg { width: 40px; height: 40px; color: var(--ink-3); }
.tag { display: inline-block; font: 600 10.5px/1 var(--font-mono); padding: 4px 6px; border-radius: 4px; letter-spacing: .04em; }
.tag.hit { background: var(--good-soft); color: var(--good); }
.tag.miss { background: var(--bad-soft); color: var(--bad); }
.tag.mid { background: var(--warn-soft); color: var(--warn); }
.tag.pending { background: var(--sunk); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- $SIGHT ---------- */
.token-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: stretch; }
.token-hero { padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 26px; min-height: 420px; overflow: hidden; }
.coin { position: absolute; right: 26px; bottom: 26px; width: 210px; height: 210px; pointer-events: none; }
.statusline { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 46%; }
.statusline span { font: 600 11.5px/1 var(--font-mono); padding: 7px 9px; border-radius: 6px; background: var(--sunk); border: 1px solid var(--line); color: var(--ink-2); }
.statusline span.live { color: var(--ink); border-color: var(--line-2); }
.points { list-style: none; margin: 0; padding: 0; display: grid; }
.points li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.points li:last-child { border-bottom: 0; }
.points .num { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.points .num svg { width: 20px; height: 20px; }
.points h3 { font: 700 18px/1.15 var(--font-display); font-stretch: 106%; letter-spacing: -.015em; }
.points p { margin: 6px 0 0; color: var(--ink-2); font-size: 14.5px; }
.isnot { padding: 16px 22px; border-top: 1px dashed var(--line-2); color: var(--ink-2); font-size: 14px; background: var(--sunk); border-radius: 0 0 var(--r-panel) var(--r-panel); }
.isnot b { color: var(--ink); }

/* ---------- drawer (one site from a list) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 70; animation: fade var(--t-mid) var(--ease); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); z-index: 71;
  background: var(--surface); border-left: 1px solid var(--line-2); box-shadow: -30px 0 60px -30px rgba(0,0,0,.6);
  padding: 22px 24px; overflow: auto; display: flex; flex-direction: column; gap: 18px;
  animation: slide var(--t-mid) var(--ease);
}
.drawer .close { position: absolute; top: 16px; right: 16px; }
.drawer .verdict { padding-right: 52px; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- toast + footer ---------- */
.copybox { position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 90; width: min(480px, calc(100vw - 24px)); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.copybox[hidden] { display: none; }
.copybox label { grid-column: 1 / -1; font: 600 14px/1.35 var(--font-body); color: var(--ink); }
.copybox input { min-width: 0; box-sizing: border-box; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--sunk); color: var(--ink); font: 500 13px/1.2 var(--font-mono); }
.dt-full { width: 100%; box-sizing: border-box; margin-top: 8px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--sunk); color: var(--ink-2); font: 500 12.5px/1.55 var(--font-mono); resize: vertical; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); animation: in var(--t-mid) var(--ease); }
@media (max-width: 600px) { .copybox input, .dt-full { font-size: 16px; } }
/* A long, eased fade: the yellow comes up out of the black with no visible edge. */
.foot-band { margin-top: 28px; padding-top: 168px; background: linear-gradient(180deg, rgba(242, 226, 5, 0) 0, rgba(242, 226, 5, .02) 24px, rgba(242, 226, 5, .05) 48px, rgba(242, 226, 5, .1) 72px, rgba(242, 226, 5, .18) 94px, rgba(242, 226, 5, .3) 114px, rgba(242, 226, 5, .48) 132px, rgba(242, 226, 5, .7) 148px, rgba(242, 226, 5, .9) 160px, #f2e205 168px, #e8d600 100%); }
.foot { max-width: var(--max); width: 100%; margin: 0 auto; padding: 4px var(--pad) 22px; display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; font-weight: 600; color: #141417; }
.foot nav { display: flex; gap: 16px; }
.foot-tools { flex-wrap: wrap; align-items: center; }
.foot-tools b { font: 700 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: rgba(20, 20, 23, .7); }
.foot a:focus-visible { outline: 2px solid #141417; outline-offset: 3px; border-radius: 3px; }
.foot a { text-decoration: none; } .foot a:hover { text-decoration: underline; }
.preview-note { font: 500 11.5px/1.4 var(--font-mono); color: var(--ink-3); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .bar { grid-template-columns: 1fr auto; row-gap: 10px; }
  .bar-r { grid-column: 2; }
  .tabs { grid-column: 1 / -1; }
  .tabs { justify-self: stretch; overflow-x: auto; }
  .tab { flex: 1; padding: 9px 10px; white-space: nowrap; }
  .stage, .is-result .stage { grid-template-columns: 1fr; grid-template-areas: "lead" "inst"; }
  .is-result .stage { grid-template-areas: "bar" "inst" "panel"; }
  .instrument { min-height: 240px; }
  .is-result .instrument { min-height: 200px; }
  .weights { grid-template-columns: 1fr; }
  .wbar { height: auto; flex-wrap: wrap; }
  .wseg { flex: 1 1 30%; min-height: 50px; }
  .split, .record-grid, .token-grid { grid-template-columns: minmax(0, 1fr); }
  .split > *, .record-grid > *, .token-grid > * { min-width: 0; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .steps::before { display: none; }
  .token-hero { min-height: 0; padding-bottom: 240px; }
  .side { position: static; }
  .callbox .row2 { grid-template-columns: 1fr 1fr; }
  .callbox .row2 .input { grid-column: 1 / -1; }
  .foot { flex-direction: column; }
}

/* ---------- phones ---------- */
@media (max-width: 600px) {
  .tab, .quick button, .btn.small, .btn.ghost, .cat { min-height: 44px; }
  .btn.small, .btn.ghost { font-size: 14px; }
  .h1 { font-size: clamp(36px, 11vw, 46px); }
  .lede { font-size: 16.5px; }
  /* the button gets its own row so it never covers the address */
  .field { padding: 5px; flex-wrap: wrap; row-gap: 5px; }
  .field input { font-size: 14px; padding: 12px 4px; flex: 1 1 calc(100% - 34px); }
  .field .btn { flex: 1 1 100%; justify-content: center; min-height: 46px; padding: 0 14px; }
  .verdict .word { font-size: 28px; }
  .verdict .score b { font-size: 28px; }
  .result { padding: 18px 16px; }
  .actions .btn { flex: 1 1 auto; }
  /* list result + standings: site, score, quantum */
  .row, .rowhead, .board .row, .board .rowhead { grid-template-columns: minmax(0, 1fr) 52px 92px; }
  #result .row > :nth-child(3), #result .row > :nth-child(4),
  #result .rowhead > :nth-child(3), #result .rowhead > :nth-child(4),
  .board .row > :nth-child(1), .board .row > :nth-child(4), .board .row > :nth-child(5),
  .board .rowhead > :nth-child(1), .board .rowhead > :nth-child(4), .board .rowhead > :nth-child(5) { display: none !important; }
  .instrument .caption { font-size: 11px; }
  .instrument .caption span { display: none; }
  .instrument .caption b, .instrument .caption .cap-s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .board { padding: 6px 12px; }
  .board .rows { max-height: 62vh; -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent); mask-image: linear-gradient(to bottom, #000 88%, transparent); }
  .side { padding: 18px; gap: 14px; }
  .side .h2 { display: none; }
  .big { font-size: 52px; }
  .cats { flex-direction: row; overflow-x: auto; gap: 6px; margin: 0 -18px; padding: 2px 18px 6px; scrollbar-width: none; }
  .cat { flex: none; grid-template-columns: auto auto; gap: 8px; padding: 0 12px; background: rgba(255,255,255,.28); }
  .cat .minibar { display: none; }
  .token-hero { padding: 22px; padding-bottom: 210px; }
  .coin { width: 170px; height: 170px; right: 50%; transform: translateX(50%); bottom: 20px; }
  .statusline { max-width: none; }
  .foot nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================================
   Deeper pages: shared page header
   ========================================================================= */
.pagehead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 40px; align-items: end; margin: 4px 0 var(--gap); }
.page-title { font-size: clamp(34px, 4.2vw, 56px); }
.pagehead .lede { margin: 0; max-width: 52ch; }
.ph { font: 800 19px/1.1 var(--font-display); font-stretch: 110%; letter-spacing: -.015em; }
.phs { margin: 6px 0 0; color: var(--ink-3); font-size: 14px; }
.ph-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.stepper { display: flex; gap: 6px; }

/* sliders and shared keyframes */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line-2); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line-2); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 6px; background: var(--accent); border: 0; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 2px 0 rgba(0,0,0,.45); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); border: 0; box-shadow: 0 2px 0 rgba(0,0,0,.45); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes show { to { opacity: 1; } }

/* phones get short tab names */
.tab .s { display: none; }

@media (max-width: 900px) {
  .pagehead { grid-template-columns: minmax(0, 1fr); }
  .sliders { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .preset { min-height: 44px; }
  .lat2 { grid-template-columns: 1fr; }
  .dimrow { grid-template-columns: 1fr; gap: 6px; }
  .rulelist li { grid-template-columns: 22px minmax(0, 1fr); }
  .rulelist em { display: none; }
  .tab .l { display: none; }
  .tab .s { display: inline; }
  .tab { padding: 9px 6px; font-size: 13px; }
}
.tally { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.tally-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.tally-top b { margin: 0 4px 0 8px; }
.sumbar .grow { transform-origin: left; animation: grow 900ms var(--ease) both; animation-delay: 200ms; }

/* =========================================================================
   Developer panel (in the side drawer)
   ========================================================================= */
.term-wrap { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.term-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--raised); }
.seg { display: flex; gap: 4px; flex-wrap: wrap; }
.seg button { cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); padding: 8px 11px; border-radius: var(--r-ctrl); font: 600 13px/1 var(--font-body); transition: color var(--t-fast), background var(--t-fast); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.term { margin: 0; min-height: 360px; padding: 18px 18px 20px; background: var(--sunk); font: 500 12.5px/1.7 var(--font-mono); color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.term .tl { display: block; animation: in 260ms var(--ease) both; }
.term .tl-cmd { color: var(--mark); font-weight: 600; margin-bottom: 6px; }
.term .tl-dim { color: var(--ink-3); }
.term .tl-big { font-weight: 700; margin: 8px 0 2px; }
.term .tl-bad { color: var(--bad); } .term .tl-warn { color: var(--warn); } .term .tl-good { color: var(--good); }
.term .tl-fix { color: var(--ink); padding-left: 2.6em; text-indent: -2.6em; }
.term .tl:last-child::after { content: ""; display: inline-block; width: .55em; height: 1.05em; margin-left: 4px; vertical-align: -2px; background: var(--mark); animation: pulse 1s steps(1) infinite; }
.term-note { margin: 0; padding: 12px 18px 16px; }
.cmd { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; cursor: pointer; border: 1px solid var(--line); background: var(--sunk); color: var(--ink); padding: 9px 11px; border-radius: var(--r-ctrl); transition: border-color var(--t-fast); min-width: 0; }
.cmd:hover { border-color: var(--line-2); }
.cmd code { font: 500 12px/1.4 var(--font-mono); overflow-wrap: anywhere; min-width: 0; }
.cmd svg { flex: none; color: var(--ink-3); }
.json { margin: 0; max-height: 380px; overflow: auto; padding: 14px 16px; border-radius: 10px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); font: 500 11.5px/1.55 var(--font-mono); color: var(--ink-3); white-space: pre; scrollbar-width: thin; }
.verb { font: 700 11px/1 var(--font-mono); color: var(--ink); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-2); padding: 6px 0; border-radius: 5px; text-align: center; margin-top: 6px; }
.devp { display: grid; gap: 22px; padding-right: 8px; }
.devp section { display: grid; gap: 10px; }
.devp h4 { margin: 0; font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.term.mini { min-height: 0; padding: 12px 14px; border-radius: 10px; font-size: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.exits-mini { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.exits-mini b { font: 800 15px/1 var(--font-display); margin-right: 6px; }
.api-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.api-row .verb { margin-top: 0; }
.api-out { max-height: 260px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }
.devp .two { grid-template-columns: 1fr 1fr; gap: 18px; }
.kv { margin: 0; display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.kv .state { flex: none; }
.kv b { color: var(--ink); text-align: right; }
@media (max-width: 600px) { .devp .two { grid-template-columns: 1fr; } .api-row { grid-template-columns: 44px minmax(0, 1fr); } .api-row .btn { grid-column: 2; justify-self: start; } }

/* =========================================================================
   Recent checks: 3D cover-flow
   ========================================================================= */
.recent { margin-top: var(--gap); padding: 16px 22px 4px; overflow: hidden; }
.is-result .recent { display: none; }
.flow { position: relative; height: 236px; perspective: 1500px; outline: none; touch-action: pan-y; margin: 8px -22px 0; }
.flow:focus-visible { box-shadow: inset 0 0 0 2px var(--mark); border-radius: 10px; }
.flow-in { --cw: 256px; position: absolute; inset: 0; transform-style: preserve-3d; }
.fcard {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%;
  position: absolute; left: 50%; top: 14px; width: var(--cw); margin-left: calc(var(--cw) / -2); height: 204px;
  display: flex; flex-direction: column; gap: 8px; text-align: left; cursor: pointer; overflow: hidden;
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); color: var(--ink);
  background: linear-gradient(160deg, var(--raised), var(--surface) 70%);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 30px 50px -28px rgba(0,0,0,.9);
  transition: transform 560ms cubic-bezier(.22, .9, .25, 1), opacity 420ms var(--ease), border-color var(--t-fast), box-shadow var(--t-mid);
  backface-visibility: hidden;
}
.fcard.on { border-color: color-mix(in srgb, var(--mark) 55%, var(--line-2)); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 34px 60px -26px rgba(0,0,0,.95), 0 0 0 1px rgba(242,226,5,.08); }
.fcard.peek { border-color: color-mix(in srgb, var(--ink-3) 70%, var(--line-2)); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 40px 60px -24px rgba(0,0,0,.95); transition: transform 260ms cubic-bezier(.22, .9, .25, 1), opacity 200ms var(--ease), box-shadow var(--t-mid); }
.fcard:not(.on):not(.peek) > :not(.sheen) { filter: saturate(.6); }
.fcard.tilt { transition: transform 140ms linear, opacity 500ms var(--ease); }
.fcard .sheen { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(260px 180px at var(--mx) var(--my), rgba(242, 226, 5, .13), transparent 70%); opacity: 0; transition: opacity var(--t-mid); }
.fcard.on .sheen { opacity: 1; }
.fc-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.fc-host { font: 600 13.5px/1.2 var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fc-when { font: 500 11px/1 var(--font-mono); color: var(--ink-3); white-space: nowrap; }
.fc-mid { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fc-score { font: 800 42px/.95 var(--font-display); font-stretch: 116%; letter-spacing: -.04em; }
.fc-score small { font-size: .3em; color: var(--ink-3); letter-spacing: 0; margin-left: 4px; }
.fc-word { font: 700 15px/1.1 var(--font-display); font-stretch: 106%; }
/* the worst real problem from that check */
.fc-w { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; align-items: start; margin-top: 2px; padding: 8px 9px; border-radius: 9px; background: var(--sunk); border: 1px solid var(--line); }
.fc-w .state { width: 20px; height: 20px; }
.fc-w .state svg { width: 11px; height: 11px; }
.fc-w > span:last-child { font-size: 13px; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fc-w em { display: block; font: 700 10px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; font-style: normal; color: var(--ink-3); margin-bottom: 1px; }
.fc-w.sev-critical em, .fc-w.sev-high em { color: var(--bad); } .fc-w.sev-medium em { color: var(--warn); } .fc-w.sev-low em { color: color-mix(in srgb, var(--warn) 70%, var(--ink-3)); } .fc-w.sev-ok em { color: var(--good); }
.fc-w.sev-critical { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.fc-w small { color: var(--ink-3); font-size: 11.5px; margin-left: 6px; white-space: nowrap; }
.fc-go { font: 600 12.5px/1 var(--font-body); color: var(--mark); margin-top: auto; opacity: 0; transform: translateY(4px); transition: opacity var(--t-mid), transform var(--t-mid) var(--ease); }
.fcard.on .fc-go, .fcard.peek .fc-go { opacity: 1; transform: none; }
/* edges: rest the pointer here to keep moving */
.flow-edge { position: absolute; top: 0; bottom: 0; width: 64px; z-index: 40; cursor: e-resize; opacity: 0; transition: opacity var(--t-mid); }
.flow-edge.l { left: 0; cursor: w-resize; background: linear-gradient(90deg, color-mix(in srgb, var(--mark) 10%, transparent), transparent); }
.flow-edge.r { right: 0; background: linear-gradient(270deg, color-mix(in srgb, var(--mark) 10%, transparent), transparent); }
.flow:hover .flow-edge { opacity: .5; } .flow.edge-l .flow-edge.l, .flow.edge-r .flow-edge.r { opacity: 1; }
@media (hover: none) { .flow-edge { display: none; } }

@media (max-width: 600px) {
  .recent { padding: 16px 16px 4px; }
  .flow { height: 232px; margin: 4px -16px 0; }
  .fcard { height: 196px; padding: 12px 14px; }
  .fc-score { font-size: 38px; }
}

/* phone taps: every control at least 44px tall */
@media (max-width: 600px) {
  input[type="range"] { height: 44px; }
  .mark { min-height: 44px; }
  .seal a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* =========================================================================
   The agents: a bold yellow strip on the home page
   ========================================================================= */
.agents { margin-top: var(--gap); padding: 20px 22px 16px; display: grid; gap: 16px; }
.is-result .agents { display: none; }
.agents-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.agents h3 { font: 800 22px/1.05 var(--font-display); font-stretch: 112%; letter-spacing: -.02em; }
.agents .sub { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.agent-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.agent { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 4px 0; }
.agent + .agent { padding-left: 16px; border-left: 1px solid var(--line); }
.agent b { font: 700 15px/1.15 var(--font-display); font-stretch: 106%; }
.agent p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); flex: 1; }
.agent .tag { align-self: flex-start; }
.agent.soon b, .agent.soon .aglyph { opacity: .62; }
.aglyph { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.aglyph svg { width: 19px; height: 19px; }
.tag.live { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: var(--bg); }
.tag.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--good); animation: pulse 1.6s var(--ease) infinite; }
.sun .tag.live { background: #141417; color: #f2e205; }
.sun .tag.pending { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.owner-note { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.agent.live .aglyph { background: #141417; color: #f2e205; box-shadow: none; }

/* the report, grouped by agent */
.soon-note { margin: -6px 0 0; }

@media (max-width: 900px) {
  .agent-row { grid-template-columns: minmax(0, 1fr); }
  .agent, .agent + .agent { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; padding: 12px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .agent .aglyph { grid-row: span 2; }
  .agent p { grid-column: 2 / -1; }
  .agent .tag { grid-column: 3; grid-row: 1; }
}
@media (max-width: 600px) {
  .agents { padding: 18px 16px 12px; }
  .agents-head .btn { width: 100%; }
}

/* =========================================================================
   Example report: verdict, a site x-ray and short findings
   ========================================================================= */
.ex-pick { margin-bottom: 14px; }
.ex-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: var(--gap); align-items: start; }
.ex-top { padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--sh-1); }
.ex-line { margin: 0; font-size: 18px; line-height: 1.4; color: var(--ink); font-weight: 600; }
.ex-mid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 20px; align-items: start; padding-top: 16px; border-top: 1px solid var(--line); }
.ex-mid h4, .ex-list h4 { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; font: 800 15px/1.2 var(--font-display); font-stretch: 108%; letter-spacing: -.01em; color: var(--ink); }
.ex-mid h4::before, .ex-list h4::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--mark); }
.ex-list.pros h4::before { background: var(--good); } .ex-list.cons h4::before { background: var(--bad); }
.xr { width: 100%; height: auto; display: block; }
.xr-win { fill: var(--sunk); stroke: var(--line-2); }
.xr-part { cursor: pointer; outline: none; }
.xr-part rect { fill: var(--raised); stroke: var(--line); stroke-width: 1.2; transition: fill 300ms, stroke 300ms; animation: xin 600ms var(--ease) both; animation-delay: calc(250ms + var(--i) * 160ms); }
@keyframes xin { from { fill: var(--raised); stroke: var(--mark); } }
.xr-part.k-bad rect { fill: rgba(255, 92, 92, .16); stroke: var(--bad); }
.xr-part.k-warn rect { fill: rgba(255, 160, 77, .14); stroke: var(--warn); }
.xr-part.k-good rect { fill: rgba(76, 216, 132, .13); stroke: var(--good); }
.xr-part.k-none rect { stroke: var(--ink-3); }
.xr-part.k-skip rect { stroke-dasharray: 4 4; fill: transparent; }
.xr-part.hot rect, .xr-part:focus-visible rect { stroke-width: 2.6; }
.xr-ink { fill: var(--line-2); opacity: .8; } .xr-btn { fill: none; stroke: var(--line-2); }
.xr-pin { fill: var(--ink); } .xr-n { font: 700 11px var(--font-body); fill: var(--bg); }
.xr-l { font: 600 11px var(--font-body); fill: var(--ink-2); }
.ex-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ex-row { display: grid; grid-template-columns: 30px 82px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); box-shadow: var(--sh-2); transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease); }
.ex-row.skip { background: transparent; box-shadow: none; border-style: dashed; }
.ex-row.hot { background: var(--float); border-color: var(--line-2); transform: translateX(2px); }
.ex-row b { font: 700 13.5px/26px var(--font-display); font-stretch: 106%; }
.ex-row .aglyph { width: 26px; height: 26px; border-radius: 7px; } .ex-row .aglyph svg { width: 15px; height: 15px; }
.ex-row.skip b, .ex-row.skip .aglyph { opacity: .55; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 1px; }
/* three tiers that read apart at a glance: solid, outlined, quiet */
.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px/1.25 var(--font-body); padding: 5px 9px 5px 7px; border-radius: 6px; background: var(--sunk); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.chip i { width: 14px; height: 14px; flex: none; display: grid; place-items: center; border-radius: 4px; font: 800 10px/1 var(--font-body); font-style: normal; }
.chip.k-bad { color: #fff; background: color-mix(in srgb, var(--bad) 30%, var(--raised)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 70%, transparent), 0 6px 14px -8px rgba(255, 92, 92, .6); font-weight: 700; }
.chip.k-bad i { background: var(--bad); color: #1a0a0a; }
.chip.k-warn { color: var(--warn); background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--warn) 65%, transparent); }
.chip.k-warn i { color: var(--warn); box-shadow: inset 0 0 0 1.5px var(--warn); }
.chip.k-good { color: var(--good); background: var(--good-soft); box-shadow: none; }
.chip.k-good i { color: var(--good); }
.chip i:empty { display: none; }
.chip.k-skip { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; }
.ex-side { padding: 20px 22px; display: flex; flex-direction: column; gap: 22px; box-shadow: var(--sh-1); }
.ex-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ex-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.ex-fix { padding: 18px; border-radius: 12px; border: 1px solid; box-shadow: var(--sh-3); }
.ex-fix .ex-list h4::before { background: #141417; }
.ex-fix .ex-list h4 { color: var(--ink); }
.ex-fix li { color: var(--ink); font-weight: 600; }
@media (max-width: 1000px) { .ex-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .ex-mid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .ex-top, .ex-side { padding: 18px 16px; }
  .ex-line { font-size: 16.5px; }
  .ex-pick button { min-height: 44px; }
  .ex-row { grid-template-columns: 30px minmax(0, 1fr); }
  .ex-row .chips { grid-column: 2; }
}

/* =========================================================================
   The agent map: agents fan out over a site, the report builds itself
   ========================================================================= */
.agents { background: radial-gradient(60% 70% at 50% 40%, rgba(242, 226, 5, .07), transparent 70%), var(--surface); }
.fm-legend { display: flex; gap: 8px; }
.fm { width: 100%; height: auto; display: block; overflow: visible; }
.agents-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.fm-win { fill: var(--sunk); stroke: var(--line-2); stroke-width: 1.2; }
.fm-site, .fm-card { opacity: 0; transform: translateY(8px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); transform-box: fill-box; }
.fm-site.in, .fm-card.in { opacity: 1; transform: none; }
.fm-reg { fill: var(--raised); stroke: var(--line); stroke-width: 1; transition: stroke 300ms, fill 300ms; }
.fm-reg.scan { stroke: var(--mark); fill: rgba(242, 226, 5, .08); animation: scanp 900ms var(--ease) 1; }
@keyframes scanp { 0% { stroke-width: 1; } 40% { stroke-width: 2.5; } 100% { stroke-width: 1.2; } }
.fm-url { font: 500 11px var(--font-mono); fill: var(--ink-2); } .fm-url.dim { fill: var(--ink-3); }
.fm-site svg { color: var(--ink-2); }
.fm-ink { fill: var(--line-2); } .fm-ink.strong { fill: var(--ink-3); }
.fm-ink.code { fill: rgba(76, 216, 132, .35); } .fm-ink.leak { fill: rgba(255, 92, 92, .55); }
.fm-code { font: 600 12px var(--font-mono); fill: var(--ink-3); }
.fm-btn { fill: var(--surface); stroke: var(--line-2); } .fm-btn.dead { stroke-dasharray: 3 3; }
.fm-beam { fill: none; stroke: var(--line-2); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 520ms var(--ease), stroke 300ms; }
.fm-beam.on { stroke-dashoffset: 0; stroke: var(--mark); }
.fm-beam.soon.on { stroke: var(--ink-3); }
.fm-trail { fill: none; stroke: none; }
.fm-node .fm-ring { fill: var(--raised); stroke: var(--line-2); stroke-width: 1.4; transition: fill 300ms, stroke 300ms; }
.fm-node.soon .fm-ring { stroke-dasharray: 4 4; }
.fm-node svg { color: var(--ink-3); transition: color 300ms; }
.fm-node.on .fm-ring { fill: var(--accent); stroke: var(--accent); }
.fm-node.soon.on .fm-ring { fill: var(--raised); stroke: var(--ink-2); }
.fm-node.on svg { color: var(--on-accent); } .fm-node.soon.on svg { color: var(--ink); }
.fm-pulse { fill: none; stroke: var(--mark); opacity: 0; transform-box: fill-box; transform-origin: center; }
.fm-node.on .fm-pulse { animation: ring 900ms var(--ease) 1; }
@keyframes ring { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
.fm-name { font: 700 15px var(--font-display); font-stretch: 106%; fill: var(--ink-2); transition: fill 300ms; }
.fm-name.sm { font-size: 11px; }
.fm-node.on .fm-name { fill: var(--ink); }
.fm-does { font: 400 12.5px var(--font-body); fill: var(--ink-3); }
.fm-pkt { fill: var(--mark); opacity: 0; } .fm-pkt.on { opacity: 1; filter: drop-shadow(0 0 6px rgba(242, 226, 5, .8)); }
.fm-head { fill: var(--accent); }
.fm-headtxt { font: 800 14px var(--font-display); font-stretch: 110%; fill: var(--on-accent); }
.fm-headtxt.dim { font: 500 11px var(--font-mono); opacity: .7; }
.fm-row { opacity: 0; transform: translateX(-8px); transform-box: fill-box; transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.fm-row.in { opacity: 1; transform: none; }
.fm-row.soon.in { opacity: .72; }
.fm-dot.t-good { fill: var(--good); } .fm-dot.t-warn { fill: var(--warn); } .fm-dot.t-bad { fill: var(--bad); }
.fm-row.soon .fm-dot { fill: none; stroke-width: 2; } .fm-row.soon .fm-dot.t-good { stroke: var(--good); } .fm-row.soon .fm-dot.t-warn { stroke: var(--warn); } .fm-row.soon .fm-dot.t-bad { stroke: var(--bad); }
.fm-rname { font: 700 13px var(--font-body); fill: var(--ink); }
.fm-soon { font: 500 10px var(--font-mono); fill: var(--ink-3); }
.fm-rval { font: 400 12px var(--font-body); fill: var(--ink-2); }
.fm-total { opacity: 0; transition: opacity 500ms var(--ease); }
.fm.done .fm-total { opacity: 1; }
.fm-score { font: 800 40px var(--font-display); font-stretch: 116%; fill: var(--bad); letter-spacing: -.03em; }
.fm-word { font: 700 15px var(--font-display); fill: var(--bad); }
.fm.still .fm-site, .fm.still .fm-card, .fm.still .fm-row { opacity: 1; transform: none; transition: none; }
.fm.still .fm-beam { stroke-dashoffset: 0; transition: none; }
@media (max-width: 640px) {
  .fm-score { font-size: 34px; }
  .agents-foot .btn { width: 100%; }
}
@media (max-width: 600px) {
  .foot a { display: inline-flex; align-items: center; min-height: 44px; }
  .devp .cmd { min-height: 44px; }
}

/* every report says the full AI review is coming */
.soon-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line-2); background: var(--sunk); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.soon-icons { display: flex; } .soon-icons .aglyph { width: 26px; height: 26px; border-radius: 7px; margin-right: -6px; box-shadow: 0 0 0 2px var(--surface); }
.soon-icons .aglyph svg { width: 14px; height: 14px; }
@media (max-width: 600px) { .soon-banner { grid-template-columns: auto minmax(0, 1fr); } .soon-banner .tag { display: none; } }

/* ---------- sample report, opened in place under the agent map ---------- */
.sample { scroll-margin-top: 96px; }
.sample-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; justify-content: space-between; margin: 0 0 14px; }
.sample-head h3 { margin: 4px 0 4px; font: 800 clamp(22px, 2.4vw, 30px)/1.05 var(--font-display); font-stretch: 112%; letter-spacing: -.01em; }
.sample-head .sub { margin: 0; color: var(--ink-3); font-size: 14px; }
.sample-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sample-tools .ex-pick { margin: 0; }
.btn.ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line); box-shadow: none; }
.view .in-up, .in-up { animation: in-up 420ms var(--ease) both; }
@keyframes in-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .sample-tools { width: 100%; justify-content: space-between; } .sample-tools .btn { min-height: 44px; } }

/* ---------- Security agent findings ---------- */
.settled .rise { animation: none; }
.spin { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--mark); animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

/* ==========================================================================
   The single-site report: verdict, fix these first, where, what each agent checked.
   Pictures lead and words label them. Severity colors mean the same thing everywhere.
   ========================================================================== */
.sev-critical { --sev: var(--sev-critical); }
.sev-high { --sev: var(--sev-high); }
.sev-medium { --sev: var(--sev-medium); }
.sev-low { --sev: var(--sev-low); }

/* 1. Verdict */
.vx, .rp, .ag, .ag-soon { flex: none; }
.drawer .vx { margin-right: 48px; }
.vx { --tone: var(--ink-3); position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px 20px; align-items: center;
  padding: 20px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--raised), var(--surface)); box-shadow: var(--shadow); }
.vx::before { content: ""; position: absolute; inset: -40% 40% 30% -30%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tone) 22%, transparent), transparent); opacity: .9; }
.vx.tone-good { --tone: var(--good); } .vx.tone-warn { --tone: var(--warn); } .vx.tone-bad { --tone: var(--bad); }
.vx-gauge { position: relative; width: 132px; height: 132px; }
.vx-gauge svg { width: 100%; height: 100%; display: block; overflow: visible; }
.vx-gauge .ticks line { stroke: var(--line-2); stroke-width: 1.6; }
.vx-gauge .ticks line.on { stroke: var(--tone); }
.vx-gauge .trk { fill: var(--sunk); stroke: var(--line); stroke-width: 7; }
.vx-gauge .arc { fill: none; stroke: var(--tone); stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset 900ms var(--ease); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--tone) 45%, transparent)); }
.vx-gauge.tone-good { --tone: var(--good); } .vx-gauge.tone-warn { --tone: var(--warn); } .vx-gauge.tone-bad { --tone: var(--bad); }
.vx-gauge.is-pending .trk { animation: pulse 1.4s ease-in-out infinite; }
.vx-n { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.vx-n b { font: 800 40px/1 var(--font-display); font-stretch: 112%; letter-spacing: -.04em; color: var(--ink); }
.vx-n span { font: 500 10.5px/1 var(--font-mono); color: var(--ink-3); margin-top: 4px; letter-spacing: .06em; text-transform: uppercase; }
.vx-main { min-width: 0; }
.vx .host { font: 600 13px/1.2 var(--font-mono); color: var(--ink-3); margin-bottom: 8px; overflow-wrap: anywhere; }
.vx .word { font: 800 32px/1 var(--font-display); font-stretch: 115%; letter-spacing: -.03em; }
.vx-do { margin: 12px 0 0; display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; font-weight: 600; line-height: 1.4; font-size: 15px; }
.vx-do .ico { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; margin-top: -1px; }
.vx-do .ico svg { width: 14px; height: 14px; stroke-width: 2.4; }
.vx-do.tone-good .ico { background: var(--good-soft); color: var(--good); }
.vx-do.tone-warn .ico { background: var(--warn-soft); color: var(--warn); }
.vx-do.tone-bad .ico { background: var(--bad-soft); color: var(--bad); }
/* a check the server's rate limit skipped: the plain line, what was skipped, and the retry button */
.vx-skip > div { display: grid; gap: 6px; justify-items: start; }
.vx-skip p { margin: 0; }
.vx-skip .skip-what { font-weight: 500; font-size: 13px; color: var(--ink-3); }
.vx-skip .skip-go { margin-top: 4px; }
.vx-skip .skip-go[disabled] { cursor: not-allowed; }
.vx-sev { grid-column: 1 / -1; }
.sevbar { display: flex; gap: 3px; height: 12px; border-radius: 4px; overflow: hidden; background: var(--sunk); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); }
.sevbar i { display: block; min-width: 6px; transition: flex var(--t-mid) var(--ease); }
.sevbar .s-critical { background: var(--sev-critical); } .sevbar .s-high { background: var(--sev-high); }
.sevbar .s-medium { background: var(--sev-medium); } .sevbar .s-low { background: var(--sev-low); }
.sevbar .s-pass { background: var(--good); opacity: .75; }
.sevbar .s-wait { background: linear-gradient(90deg, var(--sunk), var(--line-2), var(--sunk)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.sevbar .s-none { background: var(--line); }
.sevkey { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.sevkey li { display: flex; flex-direction: column; gap: 3px; font: 500 11px/1.1 var(--font-mono); color: var(--ink-3); letter-spacing: .02em; }
.sevkey b { font: 800 22px/1 var(--font-display); font-stretch: 108%; letter-spacing: -.02em; }
.sevkey .s-critical b { color: var(--sev-critical); } .sevkey .s-high b { color: var(--sev-high); }
.sevkey .s-medium b { color: var(--sev-medium); } .sevkey .s-low b { color: var(--ink-2); } .sevkey .s-pass b { color: var(--good); }
.sevkey li.zero b { color: var(--line-2); }
.vx-cap { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pulse { 50% { opacity: .45; } }

/* section heads */
.rp { display: flex; flex-direction: column; gap: 14px; }
.result > .rp, .rv > .rp { padding: 18px 20px 20px; border-radius: 14px; background: color-mix(in srgb, var(--raised) 55%, var(--surface)); border: 1px solid var(--line); box-shadow: var(--sh-2); }
.rp-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rp-h h3 { margin: 0; font: 800 15px/1.2 var(--font-display); font-stretch: 108%; letter-spacing: -.01em; color: var(--ink); }
.rp-n { font: 500 11.5px/1 var(--font-mono); color: var(--ink-3); }

/* the small 4-step severity meter used in lists */
.sevm { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; flex: none; }
.sevm i { width: 4px; border-radius: 1px; background: var(--line-2); }
.sevm i:nth-child(1) { height: 5px; } .sevm i:nth-child(2) { height: 7px; } .sevm i:nth-child(3) { height: 9.5px; } .sevm i:nth-child(4) { height: 12px; }
.sevm i.on { background: var(--sev); }

/* 3. Where the problems are: a wireframe of the site */
.wf { --wl: var(--line-2); display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: 14px; align-items: stretch; position: relative; }
.wf-win { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 12px; border: 1.5px solid var(--wl); background:
  linear-gradient(180deg, var(--sunk), var(--bg-2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 20px 40px -30px rgba(0, 0, 0, .9); }
.wf-bar { display: flex; align-items: center; gap: 8px; }
.wf-dots { display: flex; gap: 4px; padding: 0 2px; } .wf-dots i { width: 7px; height: 7px; border-radius: 50%; border: 1.2px solid var(--wl); }
.wf-side { display: flex; flex-direction: column; gap: 6px; position: relative; }
.wf-side::before { content: ""; position: absolute; left: -15px; top: 22px; bottom: 22px; border-left: 1.5px dashed var(--wl); }
.wf-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 6px; flex: 1; }
.wf-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.wf-a { --st: var(--wl); position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; text-align: left; min-width: 0;
  padding: 10px 40px 10px 10px; min-height: 44px; border-radius: 8px; border: 1.5px solid var(--st); color: var(--ink-2); font: inherit;
  background: color-mix(in srgb, var(--st) 7%, transparent); cursor: default; transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.wf-a:not(:disabled) { cursor: pointer; }
.wf-a:not(:disabled):hover { background: color-mix(in srgb, var(--st) 16%, transparent); }
.wf-a:not(:disabled):active { transform: translateY(1px); }
.wf-a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wf-a.st-none { border-style: dashed; --st: var(--line); background: transparent; }
.wf-a.st-none .wf-l { color: var(--ink-3); }
.wf-a.st-clean { --st: color-mix(in srgb, var(--good) 45%, var(--wl)); background: transparent; }
.wf-a.st-pending { --st: var(--line-2); border-style: dashed; }
.wf-a.st-critical { --st: var(--sev-critical); } .wf-a.st-high { --st: var(--sev-high); } .wf-a.st-medium { --st: var(--sev-medium); } .wf-a.st-low { --st: var(--sev-low); }
.wf-bar .wf-a { flex: 1; flex-direction: row; align-items: center; justify-content: flex-start; min-height: 36px; padding-block: 6px; border-radius: 7px; }
.wf-bar .wf-l { order: 2; margin-left: auto; }
.wf-url { font: 600 12.5px/1 var(--font-mono); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wf-l { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px/1.1 var(--font-body); color: var(--ink); white-space: nowrap; }
.wf-l .g { width: 16px; height: 16px; color: var(--ink-3); display: inline-grid; } .wf-l .g svg { width: 16px; height: 16px; }
.wf-c { font: 500 11px/1.3 var(--font-mono); color: var(--ink-3); }
.wf-hint { font-size: 12px; line-height: 1.3; color: var(--ink-3); }
.wf-bar .wf-hint { display: none; }
.wf-fx { display: inline-flex; gap: 3px; margin-left: 4px; }
.wf-fx i { font: 700 10.5px/1 var(--font-mono); font-style: normal; padding: 3px 4px; border-radius: 4px; color: var(--sev); border: 1px solid color-mix(in srgb, var(--sev) 55%, transparent); }
.wf-a.is-lit { background: color-mix(in srgb, var(--st) 22%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st) 25%, transparent); }
.wf-body .a-page, .wf-body .a-scripts { justify-content: space-between; min-height: 112px; }
.wf-sk { display: flex; flex-direction: column; gap: 7px; width: 100%; } .wf-sk i { height: 6px; border-radius: 2px; background: color-mix(in srgb, var(--st) 22%, var(--line)); }
.wf-sk i:first-child { height: 10px; }
.wf-tiles { display: flex; gap: 5px; width: 100%; max-width: 160px; } .wf-tiles i { flex: 1; height: 26px; border-radius: 4px; border: 1.2px solid color-mix(in srgb, var(--st) 50%, var(--line)); background: var(--sunk); }
.wf-side .wf-a { flex: 1; justify-content: center; }
.pin { position: absolute; top: 8px; right: 8px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 6px; display: grid; place-items: center;
  font: 800 13px/1 var(--font-display); color: #160606; background: var(--st); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st) 22%, transparent), 0 4px 10px -4px rgba(0, 0, 0, .8); }
.wf-bar .pin { top: 50%; transform: translateY(-50%); }
.pin svg { width: 14px; height: 14px; stroke-width: 2.4; }
.pin.st-clean { background: var(--good-soft); color: var(--good); box-shadow: none; }
.pin.st-none { background: transparent; color: var(--ink-3); box-shadow: none; }
.pin.st-pending { background: transparent; box-shadow: none; }
.pin.st-low { color: var(--bg); }
.pin.st-critical { animation: beacon 2.4s var(--ease) infinite; }
@keyframes beacon { 0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--st) 22%, transparent), 0 4px 10px -4px rgba(0, 0, 0, .8); } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--st) 8%, transparent), 0 4px 10px -4px rgba(0, 0, 0, .8); } }

/* under the map: what was not checked */
.nc { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: start; padding: 12px 14px; border-radius: 10px; border: 1px dashed var(--line-2); }
.nc-h { font: 700 10.5px/1.7 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); white-space: nowrap; }
.nc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.nc li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.nc li svg { width: 14px; height: 14px; margin-top: 2px; color: var(--ink-3); }
@media (max-width: 600px) { .nc { grid-template-columns: 1fr; } }

/* agent bits shared by the coverage section */
.aglyph { flex: none; }
.cv .aglyph, .ag-soon .aglyph { width: 28px; height: 28px; border-radius: 7px; }
.cv .aglyph svg, .ag-soon .aglyph svg { width: 16px; height: 16px; }
.ag-s { display: flex; align-items: center; gap: 10px; font: 500 11.5px/1 var(--font-mono); color: var(--ink-3); white-space: nowrap; margin-left: auto; }
.ag-strip { display: flex; gap: 2px; }
.ag-strip i { width: 6px; height: 14px; border-radius: 1.5px; background: var(--line-2); }
.ag-strip i:nth-child(n+7) { display: none; } /* six bars are enough to read; the count says the rest */
.ag-strip .st-good { background: var(--good); } .ag-strip .st-critical { background: var(--sev-critical); } .ag-strip .st-high { background: var(--sev-high); }
.ag-strip .st-medium { background: var(--sev-medium); } .ag-strip .st-low { background: var(--sev-low); } .ag-strip .st-none { background: var(--line); }
.ag-note { margin: 0; color: var(--ink-2); font-size: 14px; }
.ag-soon { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line-2); color: var(--ink-3); font-size: 13.5px; font-weight: 600; }
.ag-soon .aglyph { opacity: .6; }

/* section heads that read as their own block */
.rp-h.big { align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rp-h.big h3 { font: 800 22px/1.1 var(--font-display); font-stretch: 110%; letter-spacing: -.02em; text-transform: none; color: var(--ink); }
.rp-h.big .rp-n { white-space: nowrap; font: 500 12px/1 var(--font-mono); color: var(--ink-2); padding: 6px 8px; border-radius: 6px; background: var(--sunk); border: 1px solid var(--line); }

/* 2. The site, part by part: the map leads, the selected part's problems sit beside it */
.xp-grid { display: flex; flex-direction: column; gap: 16px; }
.xp .wf { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.xp .wf-side { flex-direction: row; } .xp .wf-side::before { display: none; }
.xp .wf-side .wf-a { flex: 1 1 0; min-width: 0; justify-content: center; }
@media (max-width: 600px) { .xp .wf-side { flex-wrap: wrap; } .xp .wf-side .wf-a { flex: 1 1 calc(50% - 6px); } }
.wf-a { min-height: calc(46px + var(--w, 0) * 9px); }
.wf-a.is-sel { box-shadow: 0 0 0 2px var(--accent), 0 10px 26px -14px rgba(0, 0, 0, .9); background: color-mix(in srgb, var(--st) 18%, transparent); z-index: 1; }
.wf-a.st-none, .wf-a.st-clean { cursor: pointer; }
.wf-sev { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.wf-sev i { width: 9px; height: 9px; border-radius: 50%; background: var(--sev); box-shadow: 0 0 0 2px color-mix(in srgb, var(--sev) 22%, transparent); }
.wf-sev b { font: 600 11px/1 var(--font-mono); color: var(--ink-2); }
.wf-bar .wf-sev { order: 3; margin-left: 4px; flex-wrap: nowrap; }
.xp-p { border-radius: 14px; border: 1px solid var(--line-2); background: var(--float); box-shadow: var(--sh-3); overflow: hidden; }
.xp-ph { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 16px 18px; background: linear-gradient(180deg, var(--raised), var(--surface)); border-bottom: 1px solid var(--line); }
.xp-ph .g { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--sunk); border: 1px solid var(--line-2); color: var(--ink); }
.xp-ph .g svg { width: 20px; height: 20px; }
.xp-ph b { display: block; font: 800 19px/1.15 var(--font-display); font-stretch: 108%; color: var(--ink); }
.xp-ph div span { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-3); }
.xp-n { font: 700 11.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--sev); padding: 6px 8px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--sev) 50%, transparent); white-space: nowrap; }
.xp-l { list-style: none; margin: 0; padding: 0; }
.xp-i + .xp-i { border-top: 1px solid var(--line); }
.xp-i > button { width: 100%; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto 18px; gap: 12px; align-items: center; padding: 14px 18px; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background var(--t-fast) var(--ease); }
.xp-i > button:hover { background: color-mix(in srgb, var(--sev) 6%, transparent); }
.xp-i > button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.xp-t { font: 600 15px/1.3 var(--font-body); }
.xp-i em { font: 700 11px/1 var(--font-mono); font-style: normal; color: var(--sev); padding: 3px 5px; border-radius: 4px; border: 1px solid color-mix(in srgb, var(--sev) 55%, transparent); }
.xp-c::before { content: "+"; font: 500 16px/1 var(--font-mono); color: var(--ink-3); }
.xp-i > button[aria-expanded="true"] .xp-c::before { content: "\2212"; }
.xp-d { padding: 0 18px 16px 44px; display: flex; flex-direction: column; gap: 10px; }
.xp-d p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.xp-w { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.xp-w code { font: 500 12px/1.3 var(--font-mono); color: var(--ink-2); background: var(--sunk); border: 1px solid var(--line); padding: 3px 6px; border-radius: 5px; overflow-wrap: anywhere; }
.xp-w code.masked { color: var(--sev-critical); }
.xp-w .also { font: 500 11.5px/1 var(--font-mono); color: var(--ink-3); }
.xp-fix { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border-radius: 8px; background: var(--sunk); border: 1px solid var(--line); }
.xp-fix b { font: 700 10.5px/1.6 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.xp-fix span { font: 500 12.5px/1.55 var(--font-mono); color: var(--ink); overflow-wrap: anywhere; }
.xp-note { margin: 0; padding: 18px; display: flex; gap: 10px; align-items: center; color: var(--ink-2); font-size: 14.5px; }
.xp-note .ico { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; color: var(--ink-3); background: var(--sunk); }
.xp-note .ico svg { width: 15px; height: 15px; }
.xp-note.ok .ico { color: var(--good); background: var(--good-soft); }

/* 3. What was checked */
.cv-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.cv-a { border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.cv-h { display: flex; align-items: center; gap: 10px; }
.cv-h b { font: 700 15px/1 var(--font-display); font-stretch: 106%; }
.cv-ok { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.cv-ok li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.cv-ok .ico { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; color: var(--good); background: var(--good-soft); }
.cv-ok .ico svg { width: 11px; height: 11px; stroke-width: 2.8; }
.cv-ok li.off .ico { color: var(--ink-3); background: var(--sunk); }
.cv-ok li.more { display: block; padding-top: 6px; border-top: 1px solid var(--line); font: 600 12px/1.3 var(--font-mono); color: var(--warn); }
.cv-wait { display: grid; gap: 7px; } .cv-wait i { height: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--sunk), var(--raised), var(--sunk)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.cv-nc { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; align-items: start; padding: 12px 14px; border-radius: 10px; border: 1px dashed var(--line-2); }
.cv-nc b { font: 700 10.5px/1.7 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); white-space: nowrap; }
.cv-nc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px 18px; }
.cv-nc li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.cv-nc li svg { width: 13px; height: 13px; margin-top: 2px; color: var(--ink-3); }

@media (max-width: 600px) {
  .rp-h.big h3 { font-size: 20px; }
  .rp-h.big .rp-n { font-size: 11px; padding: 5px 6px; }
  .vx { grid-template-columns: 96px minmax(0, 1fr); padding: 16px; gap: 14px 16px; }
  .vx-gauge { width: 96px; height: 96px; }
  .vx-n b { font-size: 30px; }
  .vx .word { font-size: 26px; }
  .vx-do { font-size: 14px; grid-column: 1 / -1; margin-top: 0; }
  .vx-main { display: contents; }
  .vx .host, .vx .word { grid-column: 2; }
  .vx .host { align-self: end; margin: 0; }
  .vx .word { align-self: start; margin-top: -10px; }
  .sevkey { gap: 4px; } .sevkey b { font-size: 19px; } .sevkey li { font: 600 11px/1.1 var(--font-body); letter-spacing: 0; }
  .wf { grid-template-columns: 1fr; }
  .wf-side { flex-direction: row; } .wf-side::before { display: none; }
  .wf-body .a-page, .wf-body .a-scripts { min-height: 96px; }
}
/* Wide report: the verdict reads left to right, score, what it means, what was found. */
@container report (min-width: 880px) {
  .vx { grid-template-columns: 140px minmax(0, 1fr) minmax(340px, 440px); gap: 20px 36px; padding: 26px 30px; }
  .sevkey { gap: 12px; }
  .vx-gauge { width: 140px; height: 140px; }
  .vx-n b { font-size: 44px; }
  .vx .word { font-size: 38px; }
  .vx-do { font-size: 16px; max-width: 46ch; }
  .vx-sev { grid-column: auto; align-self: center; padding-left: 32px; border-left: 1px solid var(--line); }
  .xp-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; align-items: start; }
  .xp-side { position: sticky; top: 76px; }
  .xp .wf-body .wf-a { min-height: calc(132px + var(--w, 0) * 12px); }
  .cv-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); align-items: start; }
  .cv-nc ul { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .vx-gauge .arc, .sevbar i { transition: none; }
  .sevbar .s-wait, .cv-wait i, .vx-gauge.is-pending .trk { animation: none; }
}

/* developer panel: MCP and coming soon */
.devp .fine { margin: 0; }
.devp .dv-sec + .dv-sec { padding-top: 20px; border-top: 1px solid var(--line); }
.devp .term.mini .tl { white-space: pre-wrap; }
.devp .two > div { display: grid; gap: 8px; align-content: start; }
.devp .cmd code { overflow-wrap: anywhere; }
.mcp-tools, .soon-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mcp-tools { gap: 2px; }
.mcp-tools li { display: grid; gap: 3px; padding: 9px 12px; border-radius: 8px; background: var(--sunk); font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.mcp-tools code { font: 600 12.5px/1.3 var(--font-mono); color: var(--mark); }
.soon-list li { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-2); }

/* fix these first: the top problems with the exact line to paste */
.ff ol { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-2); border-radius: 12px; background: var(--float); overflow: hidden; box-shadow: var(--sh-3); }
.ff-i { transition: background var(--t-fast); } .ff-i.hot { background: color-mix(in srgb, var(--mark) 7%, transparent); }
.xp-i.hot > button { background: color-mix(in srgb, var(--mark) 7%, transparent); }
.wf-a.hot { background: color-mix(in srgb, var(--st) 22%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--st) 55%, transparent); }
.ff-i { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 16px 18px; }
.ff-i + .ff-i { border-top: 1px solid var(--line); }
.ff-n { font: 700 13px/1 var(--font-mono); color: var(--mark); padding: 5px 0; border: 1px solid color-mix(in srgb, var(--mark) 45%, transparent); border-radius: 6px; text-align: center; height: fit-content; }
.ff-b { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ff-t { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; font: 650 15.5px/1.35 var(--font-body); color: var(--ink); }
.ff-t:hover span:not(.sevm), .ff-t:focus-visible span:not(.sevm) { text-decoration: underline; text-underline-offset: 3px; }
.ff-t:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; border-radius: 4px; }
.ff-where { font: 500 11px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.ff-code { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; background: var(--sunk); border: 1px solid var(--line); max-width: 100%; }
.ff-code code { font: 500 12.5px/1.5 var(--font-mono); color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.ff-code svg { width: 16px; height: 16px; flex: none; color: var(--ink-3); }
.ff-code:hover { border-color: var(--line-2); } .ff-code:hover svg { color: var(--mark); }
.ff-code:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; }
.ff-code.copied { border-color: var(--good); } .ff-code.copied svg { color: var(--good); }
.ff-note, .ff-fix { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 600px) { .ff-i { grid-template-columns: 34px minmax(0, 1fr); gap: 4px 10px; padding: 14px 12px; } .ff-n { font-size: 12px; } .ff-t { font-size: 15px; } }

/* since your last check (this browser only) */
.since { border: 1px solid var(--line); border-radius: 12px; background: var(--raised); padding: 0 16px; }
.since summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 13px 0; }
.since summary::-webkit-details-marker { display: none; }
.since-k { font: 500 11px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.since summary b { font-weight: 650; color: var(--ink); }
.since.tone-bad summary b { color: var(--bad); } .since.tone-good summary b { color: var(--good); }
.since ul { list-style: none; margin: 0; padding: 0 0 14px; display: grid; gap: 6px; }
.since li { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); }
.since li svg { width: 14px; height: 14px; flex: none; }
.since li.new svg { color: var(--bad); } .since li.fixed svg { color: var(--good); } .since li.fixed span { text-decoration: line-through; text-decoration-color: var(--ink-3); }
.since summary:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; border-radius: 6px; }

/* =========================================================================
   The agent story: meet the agents
   ========================================================================= */
.story { margin-top: calc(var(--gap) * 3); }
.is-result .story, .is-report .story { display: none; }
.st-head { margin-bottom: clamp(18px, 3vw, 40px); }
.st-head .lede { max-width: 60ch; }
.st-head .h2 { font-size: clamp(30px, 3.6vw, 64px); }
.ma { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: clamp(16px, 2.4vw, 36px); align-items: stretch; }
/* the index rail: every agent, what it catches, live or coming */
.ma-rail { list-style: none; margin: 0; padding: 6px; display: flex; flex-direction: column; justify-content: space-between; gap: 2px; border-radius: 16px; background: var(--sunk); border: 1px solid var(--line); box-shadow: inset 0 1px 3px rgba(0,0,0,.3); }
.ma-r { all: unset; box-sizing: border-box; position: relative; overflow: hidden; width: 100%; cursor: pointer; display: grid; grid-template-columns: 22px 34px minmax(0, 1fr) 10px; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 11px; color: var(--ink-3); transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); }
.ma-r:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); color: var(--ink-2); }
.ma-r:focus-visible { outline: 2px solid var(--mark); outline-offset: 1px; }
.ma-r.on { background: linear-gradient(180deg, var(--raised), var(--surface)); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2), 0 10px 24px -14px rgba(0,0,0,.9); }
.ma-r .ma-n { font: 600 11px/1 var(--font-mono); color: var(--ink-3); }
.ma-r .aglyph { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--raised); border: 1px solid var(--line); color: var(--ink-2); transition: background var(--t-fast), color var(--t-fast); }
.ma-r .aglyph svg { width: 18px; height: 18px; }
.ma-r.on .aglyph { background: var(--mark); color: #121212; border-color: transparent; box-shadow: 0 6px 18px -8px rgba(242,226,5,.7); }
.ma-r[data-st="soon"].on .aglyph, .ma-r[data-st="ai"].on .aglyph { background: transparent; color: var(--mark); border: 1.5px dashed var(--mark); box-shadow: none; }
.ma-rt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ma-rt b { font: 700 15px/1.15 var(--font-display); color: inherit; }
.ma-rt small { font-size: 12.5px; line-height: 1.3; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ma-r.on .ma-rt small { color: var(--ink-2); }
.ma-dot { width: 8px; height: 8px; border-radius: 50%; }
.ma-dot.st-live { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.ma-dot.st-soon, .ma-dot.st-ai { border: 1.5px dashed var(--ink-3); }
.ma-soon { margin-left: 8px; padding: 2px 6px; border: 1px dashed var(--ink-3); border-radius: 6px; font: 600 12px/1 var(--font-mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); vertical-align: middle; }
/* while the stage steps on its own, the chosen row fills like a timer */
.ma-prog { position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 1px; background: var(--mark); transform: scaleX(0); transform-origin: left; opacity: 0; }
.ma.is-auto.is-live .ma-r.on .ma-prog { opacity: .8; animation: ma-prog 6s linear forwards; }
@keyframes ma-prog { to { transform: scaleX(1); } }
/* the stage: how the chosen agent reads a site, then what it reads and catches */
.ma-stage { display: grid; grid-template-rows: auto auto; gap: 14px; min-width: 0; }
.ma-frame { position: relative; width: 100%; aspect-ratio: 520 / 340; border-radius: 18px; background: radial-gradient(70% 60% at 50% 0%, rgba(242, 226, 5, .07), transparent 70%), var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh-3); overflow: hidden; }
.ma-scene { position: absolute; inset: 16px; opacity: 0; transform: scale(.985) translateY(6px); transition: opacity 480ms var(--ease), transform 480ms var(--ease); }
.ma-scene.on { opacity: 1; transform: none; }
.ma-scene .sc { width: 100%; height: 100%; display: block; }
.ma-info { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "h h" "d e"; gap: 12px 22px; align-items: start; }
.ma-ih { grid-area: h; display: flex; align-items: center; gap: 12px; }
.ma-ih h3 { margin: 0; font: 800 clamp(22px, 2vw, 32px)/1 var(--font-display); font-stretch: 112%; letter-spacing: -.03em; }
.ma-info dl { grid-area: d; display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 6px 12px; margin: 0; }
.ma-info dt { font: 600 11px/1.6 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.ma-info dd { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.ma-info .ma-ex { grid-area: e; }
.ma-st { font: 600 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--ink-2); }
.ma-st.st-live { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, transparent); background: var(--good-soft); }
.ma-st.st-soon { border-style: dashed; }
.ma-st.st-ai { border-style: dashed; color: var(--mark); border-color: color-mix(in srgb, var(--mark) 45%, transparent); }
.ma-ex { margin: 0; display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); box-shadow: var(--sh-2); font-weight: 650; }
.ma-ex span { font: 600 10.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.ma-ex.k-bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); } .ma-ex.k-warn { border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
@media (max-width: 900px) {
  .ma { grid-template-columns: minmax(0, 1fr); }
  .ma-rail { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 4px; }
  .ma-rail::-webkit-scrollbar { display: none; }
  .ma-rail li { flex: none; scroll-snap-align: start; }
  .ma-r { grid-template-columns: 34px auto; padding: 8px 10px 10px; }
  .ma-r .ma-n, .ma-r .ma-dot, .ma-rt small, .ma-soon { display: none; }
  .ma-info { grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "e" "d"; }
}

/* scene drawing */
.sc { font-family: var(--font-body); }
.sc-t { fill: var(--ink); font-size: 14px; font-weight: 600; }
.sc-h { fill: var(--ink); font: 800 16px var(--font-display); }
.sc-s { fill: var(--ink-3); font-size: 12px; }
.sc-s.k-bad, .sc-s.bad { fill: var(--bad); } .sc-s.k-warn { fill: var(--warn); } .sc-s.k-good { fill: var(--good); }
.sc-k { fill: var(--ink-3); font: 600 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.sc-url { fill: var(--ink); font: 600 17px var(--font-mono); }
.sc-url .hl { fill: var(--bad); }
.sc-code { fill: var(--ink-2); font: 500 13px var(--font-mono); }
.sc-code.hl { fill: var(--ink); }
.sc-box { fill: var(--raised); stroke: var(--line-2); stroke-width: 1.2; }
.sc-box.bad { stroke: color-mix(in srgb, var(--bad) 60%, transparent); fill: color-mix(in srgb, var(--bad) 7%, var(--raised)); }
.sc-box.warn { stroke: color-mix(in srgb, var(--warn) 55%, transparent); }
.sc-box.code { fill: var(--sunk); }
.sc-box.gh { fill: var(--sunk); }
.sc-ink { fill: var(--line-2); } .sc-ink.strong { fill: var(--ink-3); }
.sc-btn { fill: var(--sunk); stroke: var(--line-2); stroke-width: 1.2; }
.sc-btn.bad { stroke: var(--bad); stroke-dasharray: 5 4; }
.sc-field { fill: var(--sunk); stroke: var(--line); }
.sc-phone { fill: var(--surface); stroke: var(--line-2); stroke-width: 2; }
.sc-tag { fill: var(--float); stroke: var(--line-2); stroke-width: 1.2; }
.sc-tag.k-bad { fill: color-mix(in srgb, var(--bad) 16%, var(--float)); stroke: var(--bad); }
.sc-tag.k-warn { fill: color-mix(in srgb, var(--warn) 12%, var(--float)); stroke: color-mix(in srgb, var(--warn) 70%, transparent); }
.sc-tag.k-good { fill: color-mix(in srgb, var(--good) 10%, var(--float)); stroke: color-mix(in srgb, var(--good) 55%, transparent); }
.sc-tagt { fill: var(--ink); font-size: 14px; font-weight: 700; }
.sc-rowbg { fill: var(--sunk); }
.sc-mk circle { stroke: none; } .sc-mk path { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sc-mk.k-good circle { fill: var(--good-soft); } .sc-mk.k-good path { stroke: var(--good); }
.sc-mk.k-bad circle { fill: var(--bad-soft); } .sc-mk.k-bad path { stroke: var(--bad); }
.sc-mk.k-warn circle { fill: var(--warn-soft); } .sc-mk.k-warn path { stroke: var(--warn); } .sc-mk.k-warn path + circle { fill: var(--warn); }
.sc-node { fill: var(--float); stroke: var(--mark); stroke-width: 1.5; }
.sc-ico { fill: none; stroke: var(--ink); stroke-width: 1.8; }
.sc-glow { fill: color-mix(in srgb, var(--bad) 14%, transparent); stroke: color-mix(in srgb, var(--bad) 60%, transparent); }
.sc-ring { fill: none; stroke: var(--line); stroke-width: 8; }
.sc-arc { fill: none; stroke-width: 8; stroke-linecap: round; }
.sc-arc.k-good { stroke: var(--good); } .sc-arc.k-warn { stroke: var(--warn); } .sc-arc.k-bad { stroke: var(--bad); }
.sc-big { fill: var(--ink); font: 800 26px var(--font-display); } .sc-big.l { font-size: 24px; }
.sc-scan { fill: var(--mark); opacity: 0; }
/* the one moving light: it travels toward what was found */
.sc-track { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
/* still state (reduced motion, off screen, not the current agent): the whole path softly lit */
.sc-run { fill: none; stroke: var(--mark); stroke-width: 2; stroke-linecap: round; opacity: .55; }
.is-live .ma-scene.cur .sc-run { stroke-width: 3; stroke-dasharray: 12 88; stroke-dashoffset: 100; filter: drop-shadow(0 0 5px rgba(242, 226, 5, .7)); animation: sc-run 3.6s cubic-bezier(.45, 0, .3, 1) infinite; }
.is-live .ma-scene.cur .sc-hit { animation: sc-hit 3.6s ease-out infinite; }
.is-live .ma-scene.cur .sc-scan { animation: sc-scan 3.6s ease-in-out infinite; }
@keyframes sc-run { 0% { stroke-dashoffset: 100; opacity: 0; } 8% { opacity: 1; } 62% { stroke-dashoffset: 12; opacity: 1; } 72%, 100% { stroke-dashoffset: 12; opacity: 0; } }
@keyframes sc-hit { 0%, 58% { filter: none; } 66% { filter: drop-shadow(0 0 10px rgba(242, 226, 5, .55)); } 100% { filter: none; } }
@keyframes sc-scan { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .55; } 90% { opacity: .55; } 100% { transform: translateY(288px); opacity: 0; } }
/* reduced motion or off screen: the still end state, the whole path lit */
@media (prefers-reduced-motion: reduce) { .ma-scene { transition: none; } .ma-prog { display: none; } }
/* phones: the drawings are smaller, so their words are a little larger */
@media (max-width: 600px) {
  .story .sc-t, .story .sc-tagt { font-size: 16px; }
  .story .sc-s { font-size: 14px; }
  .story .sc-code { font-size: 14px; }
  .story .sc-k { font-size: 12.5px; }
}

/* story: shared section rhythm */
.st-sec { margin-top: clamp(64px, 9vw, 140px); }

/* two ways to use it: a terminal for builders, a plain card for reviewers */
.tw-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 36px); align-items: stretch; }
.tw-b, .tw-r { border-radius: 18px; padding: clamp(20px, 2.4vw, 36px); box-shadow: var(--sh-3); }
.tw-b { background: var(--sunk); border: 1px solid var(--line-2); }
.tw-r { background: linear-gradient(160deg, #f8f6ef, #ebe7da); color: #141417; border: 1px solid rgba(255,255,255,.2); }
.tw-h { margin-bottom: 22px; }
.tw-h h3 { font: 800 clamp(22px, 2vw, 32px)/1.1 var(--font-display); font-stretch: 110%; letter-spacing: -.02em; margin-top: 10px; }
.tw-tag { font: 600 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--mark); }
.tw-r .tw-tag { color: #141417; border-color: rgba(20,20,23,.3); }
.tw-steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 18px; }
.tw-steps::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.tw-steps li { position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 16px; }
.tw-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--sunk); border: 2px solid var(--line-2); margin-top: 3px; position: relative; z-index: 1; }
.tw-steps b { font: 800 17px/1.2 var(--font-display); }
.tw-steps p { margin: 4px 0 10px; color: var(--ink-2); font-size: 15px; }
.tw-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font: 500 12.5px/1.4 var(--font-mono); color: var(--ink); overflow-wrap: anywhere; }
.tw-code svg { width: 15px; height: 15px; flex: none; color: var(--ink-3); }
/* one step lit at a time, top to bottom */
.tw.is-live .tw-steps li .tw-dot { animation: tw-step 6s infinite; animation-delay: calc(var(--k) * 2s); }
@keyframes tw-step { 0%, 30% { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(242,226,5,.15); } 34%, 100% { background: var(--sunk); border-color: var(--line-2); box-shadow: none; } }
.tw-verdict { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 14px; background: rgba(255,255,255,.6); border: 1px solid rgba(20,20,23,.12); }
.tw-score { font: 800 52px/1 var(--font-display); font-stretch: 116%; color: #c96a12; letter-spacing: -.04em; }
.tw-verdict b { font: 800 20px/1.1 var(--font-display); }
.tw-verdict p { margin: 4px 0 0; color: rgba(20,20,23,.78); font-size: 15px; }
.tw-k { margin: 20px 0 8px; font: 800 15px/1 var(--font-display); }
.tw-flags { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tw-flags li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; line-height: 1.4; }
.tw-flags i { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font: 800 13px/1 var(--font-body); font-style: normal; }
.tw-flags .k-bad i { background: #d93a3a; color: #fff; } .tw-flags .k-warn i { box-shadow: inset 0 0 0 2px #c96a12; color: #c96a12; }
.tw-gl { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; }
.tw-term { font: 700 13px/1 var(--font-mono); padding: 6px 8px; border-radius: 6px; border-bottom: 2px dotted #141417; background: rgba(20,20,23,.06); cursor: help; }
.tw-def { color: rgba(20,20,23,.8); }
.tw-soon { margin: 18px 0 0; font: 600 12px/1.4 var(--font-mono); color: rgba(20,20,23,.62); }

/* plug it in: one pulse travels from the asker to the answer */

@media (max-width: 900px) {
  .tw-grid { grid-template-columns: minmax(0, 1fr); }

}

/* about the project: what it shows about itself, and its public code */
.ab-note { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.ab-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ab-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ab-i { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); box-shadow: var(--sh-2); }
.ab-i .ico { grid-row: span 2; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; }
.ab-i .ico svg { width: 13px; height: 13px; }
.ab-i.k-good .ico { background: var(--good-soft); color: var(--good); }
.ab-i.k-bad .ico { background: var(--bad-soft); color: var(--bad); }
.ab-i.k-warn .ico { background: var(--warn-soft); color: var(--warn); }
.ab-i.k-none { background: transparent; box-shadow: none; border-style: dashed; }
.ab-i.k-none .ico { color: var(--ink-3); }
.ab-i.k-none b { color: var(--ink-2); }
.ab-i b { font: 700 14px/1.2 var(--font-display); }
.ab-i > span:not(.ico) { grid-column: 2; font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-i.k-bad > span:not(.ico) { color: var(--bad); }
.ab-i a { grid-row: 1 / span 2; grid-column: 3; font: 600 12.5px/1 var(--font-body); color: var(--mark); text-decoration: none; padding: 7px 9px; border-radius: 7px; border: 1px solid var(--line-2); }
.ab-i a:hover { border-color: var(--mark); }
.ab-code { padding: 16px; border-radius: 14px; background: var(--float); border: 1px solid var(--line-2); box-shadow: var(--sh-3); }
.ab-code.empty { background: transparent; box-shadow: none; border-style: dashed; }
.ab-ch { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ab-ch b { font: 800 16px/1 var(--font-display); }
.ab-ch a { font: 500 12px/1.2 var(--font-mono); color: var(--ink-2); overflow-wrap: anywhere; text-align: right; }
.ab-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
.ab-s b { display: block; font: 800 22px/1.05 var(--font-display); letter-spacing: -.02em; }
.ab-s span { font-size: 12px; color: var(--ink-3); }
.ab-n { margin: 0 0 10px; font-size: 13px; color: var(--ink-3); }
.ab-tool { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-3); }
.ab-tool a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ab-warn { margin: 12px 0 0; color: var(--warn); font-weight: 600; font-size: 13.5px; }
@container report (max-width: 760px) { .ab-wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .ab-list { grid-template-columns: minmax(0, 1fr); } .ab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* speed and quality */
.qs-dials { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.qd { position: relative; display: grid; justify-items: center; gap: 6px; padding: 16px 10px; border-radius: 14px; background: var(--raised); border: 1px solid var(--line); box-shadow: var(--sh-2); }
.qd svg { width: 84px; height: 84px; }
.qd-t { fill: none; stroke: var(--line); stroke-width: 6; }
.qd-a { fill: none; stroke-width: 6; stroke-linecap: round; stroke: var(--ink-3); transition: stroke-dashoffset 900ms var(--ease); }
.qd.k-good .qd-a { stroke: var(--good); } .qd.k-warn .qd-a { stroke: var(--warn); } .qd.k-bad .qd-a { stroke: var(--bad); }
.qd b { position: absolute; top: 44px; font: 800 24px/1 var(--font-display); }
.qd span { font: 600 13px/1.2 var(--font-body); color: var(--ink-2); text-align: center; }
.qs-fix { margin-top: 4px; padding: 14px 16px; border-radius: 12px; background: var(--float); border: 1px solid var(--line-2); box-shadow: var(--sh-3); }
.qs-fix b { font: 800 15px/1.2 var(--font-display); }
.qs-fix ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.qs-fix li { font-size: 14px; color: var(--ink); }
.qs-fix em { font-style: normal; color: var(--ink-3); margin-left: 8px; font-size: 12.5px; }
.qs-src { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.qs-wait { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 12px; border: 1px dashed var(--line-2); }
.qs-wait b { display: block; font: 700 15px/1.3 var(--font-display); } .qs-wait span:not(.spin) { font-size: 13.5px; color: var(--ink-3); }
.qs-none { margin: 0; display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-2); padding: 14px; border-radius: 12px; border: 1px dashed var(--line-2); }
.qs-none .ico { color: var(--ink-3); display: grid; } .qs-none .ico svg { width: 16px; height: 16px; }
@media (max-width: 600px) { .qs-dials { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- two views of one report: Developer and Reviewer ---------- */
.rv { display: contents; }
.rv.is-dev .only-rev, .rv.is-rev .only-dev { display: none !important; }
.rv-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rv-q { font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.rv-sw { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 10px; background: var(--sunk); border: 1px solid var(--line); box-shadow: inset 0 1px 2px rgba(0,0,0,.18); min-width: min(100%, 380px); }
.rv-sw button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 3px; padding: 8px 12px; border-radius: 7px; color: var(--ink-3); transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); }
.rv-sw button { min-width: 0; overflow-wrap: anywhere; }
.rv-sw button b { font: 700 14px/1.15 var(--font-body); color: inherit; }
.rv-sw button span { font-size: 12px; line-height: 1.2; }
.rv-sw button:hover { color: var(--ink-2); }
.rv-sw button[aria-pressed="true"] { background: linear-gradient(180deg, var(--raised), var(--surface)); color: var(--ink); box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 0 0 1px var(--line-2), 0 6px 14px -10px rgba(0,0,0,.8); }
.rv-sw button[aria-pressed="true"] span { color: var(--ink-2); }
.rv-sw button:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; }
@media (max-width: 600px) { .rv-bar { flex-direction: column; align-items: stretch; } .rv-sw { min-width: 0; } }

/* For me (the plain view): red flags first, each with what it means for you */
.rf ol { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-2); border-radius: 12px; background: var(--float); overflow: hidden; box-shadow: var(--sh-3); }
.rf-i { padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; transition: background var(--t-fast); }
.rf-i + .rf-i { border-top: 1px solid var(--line); }
.rf-i.hot { background: color-mix(in srgb, var(--mark) 7%, transparent); }
.rf-t { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; font: 650 15.5px/1.35 var(--font-body); color: var(--ink); }
.rf-t > span:not(.sevm) { flex: 1; min-width: 0; }
.rf-t:hover > span:not(.sevm) { text-decoration: underline; text-underline-offset: 3px; }
.rf-t:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; border-radius: 4px; }
.rf-t em { font: 600 11px/1 var(--font-mono); font-style: normal; text-transform: uppercase; letter-spacing: .08em; padding: 4px 6px; border-radius: 5px; border: 1px solid currentColor; }
.rf-t em.sev-critical { color: var(--sev-critical); } .rf-t em.sev-high { color: var(--sev-high); } .rf-t em.sev-medium { color: var(--sev-medium); }
.rf-you { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 9px 12px; border-radius: 8px; background: var(--sunk); border: 1px solid var(--line); }
.rf-you b { font: 600 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mark); }
.rf-you span { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.rf-none { margin: 0; display: flex; gap: 10px; align-items: center; color: var(--ink-2); }
.rf-none .ico { color: var(--good); width: 20px; height: 20px; }
@media (max-width: 600px) { .rf-i { padding: 13px 12px; } .rf-t { font-size: 15px; } .rf-you { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* Reviewer: the words this report uses, explained on tap */
details.gl > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
details.gl > summary::-webkit-details-marker { display: none; }
details.gl > summary b { font: 800 18px/1.1 var(--font-display); letter-spacing: -.01em; }
details.gl > summary span { font: 500 12px/1 var(--font-mono); color: var(--ink-2); padding: 6px 8px; border-radius: 6px; background: var(--sunk); border: 1px solid var(--line); }
details.gl > summary span::after { content: " +"; }
details.gl[open] > summary span::after { content: " -"; }
details.gl dl { margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
details.gl dl div { padding: 12px 14px; border-radius: 10px; background: var(--sunk); border: 1px solid var(--line); }
details.gl dt { font: 700 14px/1.2 var(--font-body); color: var(--ink); }
details.gl dd { margin: 5px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }

/* Developer: run the same check from a build or an AI tool */
.dt-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.dt-c { padding: 14px 16px; border-radius: 12px; background: var(--float); border: 1px solid var(--line-2); box-shadow: var(--sh-3); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dt-c > b { font: 700 15px/1.25 var(--font-body); color: var(--ink); }
.dt-c p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.dt-c p code { font: 500 12.5px/1 var(--font-mono); color: var(--ink); background: var(--sunk); padding: 2px 5px; border-radius: 4px; }
.dt-c .to-dev { margin-top: auto; align-self: flex-start; font: 600 13.5px/1 var(--font-body); color: var(--mark); text-decoration: none; padding: 9px 12px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--mark) 45%, transparent); }
.dt-c .to-dev:hover { background: color-mix(in srgb, var(--mark) 10%, transparent); }
@container report (max-width: 760px) { .dt-grid { grid-template-columns: minmax(0, 1fr); } }
.rv > details.gl { padding: 16px 20px; }

/* ---------- coming soon: AI reviews (outlines only, never results) ---------- */
.ai-note { margin: 12px 0 12px; font-size: 13.5px; color: var(--ink-3); }
.ai-l { list-style: none; margin: 0; padding: 0; border: 1px dashed var(--line-2); border-radius: 12px; }
.ai-i { display: grid; grid-template-columns: 36px minmax(0, 1fr) minmax(0, .9fr); gap: 14px; align-items: center; padding: 14px 16px; }
.ai-i + .ai-i { border-top: 1px dashed var(--line); }
.ai-i .aglyph { width: 36px; height: 36px; opacity: .75; }
.ai-b { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ai-a { font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.ai-b b { font: 650 15px/1.3 var(--font-body); color: var(--ink); }
.ai-b p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.ai-g { display: grid; gap: 6px; }
.ai-g span { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-3); }
.ai-g i { flex: none; width: 46%; max-width: 120px; height: 8px; border-radius: 3px; border: 1px dashed var(--line-2); }
@container report (max-width: 760px) { .ai-i { grid-template-columns: 36px minmax(0, 1fr); } .ai-g { grid-column: 2; } }

/* ---------- the problem, before the product ---------- */
.problem { margin-top: clamp(56px, 8vw, 120px); }
.is-result .problem { display: none; }
.pb-head { max-width: 980px; margin-bottom: clamp(26px, 3.4vw, 48px); }
.pb-head .h2 { font-size: clamp(34px, 4.2vw, 76px); line-height: .98; text-wrap: balance; }
.pb-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 56px); align-items: start; }
.pb-h { margin: 0 0 16px; font: 500 11.5px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }

/* the loss field: one dot per $100 million, filling to the real amount */
.lf { display: flex; flex-direction: column; gap: 18px; }
.lf-r { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); grid-template-areas: "n f" "n s"; gap: 6px 22px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.lf-r:first-child { border-top: 0; padding-top: 0; }
.lf-n { grid-area: n; display: flex; flex-direction: column; gap: 6px; }
.lf-n b { font: 800 clamp(38px, 3.6vw, 60px)/.9 var(--font-display); font-stretch: 112%; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.lf-n span { font-size: 14px; line-height: 1.35; color: var(--ink-2); max-width: 26ch; }
.lf-f { grid-area: f; min-width: 0; }
.lf-dots { display: block; width: 100%; max-width: 560px; height: auto; }
.lf-dots circle { fill: color-mix(in srgb, var(--ink) 9%, transparent); transition: fill .35s var(--ease); transition-delay: var(--d); }
.lf.is-on .lf-dots circle { fill: var(--mark); }
.lf-src { grid-area: s; font: 500 11px/1.3 var(--font-mono); color: var(--ink-3); text-decoration: none; justify-self: start; border-bottom: 1px dotted var(--line-2); }
.lf-src:hover { color: var(--ink); border-color: var(--ink-3); }
.lf-key { margin: 0; display: flex; align-items: center; gap: 8px; font: 500 11px/1 var(--font-mono); color: var(--ink-3); }
.lf-key i { width: 7px; height: 7px; border-radius: 50%; background: var(--mark); }

/* where it gets in: a site as stacked slabs, one sourced number per layer */
.wl { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 18px; align-items: center; padding: clamp(16px, 2vw, 24px); border-radius: 18px; background: radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--mark) 6%, var(--surface)), var(--sunk) 70%); border: 1px solid var(--line); box-shadow: var(--sh-3); }
.wl-svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); }
.wl-t { fill: color-mix(in srgb, var(--ink) 7%, var(--surface)); stroke: var(--line-2); stroke-width: 1; transition: fill .4s var(--ease), stroke .4s var(--ease); }
.wl-l { fill: color-mix(in srgb, #000 30%, var(--surface)); }
.wl-r { fill: color-mix(in srgb, #000 48%, var(--surface)); }
.wl-s.on .wl-t { fill: color-mix(in srgb, var(--mark) 30%, var(--surface)); stroke: var(--mark); }
.wl-s.on .wl-l { fill: color-mix(in srgb, var(--mark) 22%, #000); }
.wl-s.on .wl-r { fill: color-mix(in srgb, var(--mark) 14%, #000); }
.wl-p { fill: var(--mark); filter: drop-shadow(0 0 8px var(--mark)); transition: cy .9s var(--ease); }
.wl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.wl-i { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "k k" "b p" "b a"; gap: 2px 12px; padding: 9px 12px; border-radius: 10px; cursor: default; outline: none; transition: background .3s var(--ease); }
.wl-i.on, .wl-i:focus-visible { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.wl-k { grid-area: k; font: 500 10.5px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); }
.wl-i b { grid-area: b; font: 800 26px/1 var(--font-display); font-stretch: 110%; letter-spacing: -.03em; color: var(--ink-2); align-self: center; transition: color .3s var(--ease); }
.wl-i.on b { color: var(--mark); }
.wl-i p { grid-area: p; margin: 0; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.wl-i a { grid-area: a; font: 500 10.5px/1.3 var(--font-mono); color: var(--ink-3); text-decoration: none; }
.wl-i a:hover { color: var(--ink); }

/* the turn: one bold yellow band, fading back into the night */
.pb-turn { margin-top: clamp(40px, 6vw, 96px); position: relative; background: var(--mark); box-shadow: 0 0 0 100vmax var(--mark); clip-path: polygon(-100vmax 0, calc(100% + 100vmax) 0, calc(100% + 100vmax) 72%, -100vmax 100%); padding: clamp(36px, 5vw, 72px) 0 clamp(64px, 8vw, 120px); }
.pb-turn-in { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.pb-turn-k { margin: 0; display: flex; gap: clamp(18px, 3vw, 44px); }
.pb-turn-k div { display: flex; flex-direction: column; gap: 4px; }
.pb-turn-k dt { font: 800 clamp(30px, 3vw, 52px)/.9 var(--font-display); font-stretch: 112%; letter-spacing: -.04em; color: #121212; }
.pb-turn-k dd { margin: 0; font: 600 11px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: rgba(18,18,18,.66); }
.pb-turn p { margin: 0; color: #121212; font: 800 clamp(26px, 3.6vw, 60px)/1.02 var(--font-display); font-stretch: 112%; letter-spacing: -.035em; }
.pb-turn p:first-child { font-weight: 600; opacity: .72; font-size: clamp(18px, 1.8vw, 30px); letter-spacing: -.01em; margin-bottom: 10px; }
@media (max-width: 900px) {
  .pb-grid { grid-template-columns: minmax(0, 1fr); }
  .wl { grid-template-columns: minmax(0, 1fr); }
  .wl-svg { max-width: 240px; justify-self: center; }
}
@media (max-width: 600px) {
  .wl-i { grid-template-columns: 78px minmax(0, 1fr); padding: 8px 6px; }
  .wl-i b { font-size: 22px; }
  .lf-r { grid-template-columns: minmax(0, 1fr); grid-template-areas: "n" "f" "s"; }
  .lf-n { flex-direction: row; align-items: baseline; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .lf-dots circle, .wl-p, .wl-t { transition: none; } }

/* Developer view: the fix prompt for AI coding tools */
.dt-ai, .dt-cb { grid-column: 1 / -1; }
.dt-cb .btn { align-self: flex-start; }
.dt-cb b { overflow-wrap: anywhere; }
.dt-prompt { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: block; border-radius: 10px; background: var(--sunk); border: 1px solid var(--line); padding: 12px 14px 44px; max-height: 168px; overflow: hidden; }
.dt-prompt code { display: block; font: 500 12.5px/1.55 var(--font-mono); color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.dt-prompt::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: linear-gradient(180deg, transparent, var(--sunk) 70%); pointer-events: none; }
.dt-copy { position: absolute; z-index: 1; right: 10px; bottom: 9px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 8px; background: var(--mark); color: #121212; font: 700 13px/1 var(--font-body); box-shadow: 0 6px 16px -8px rgba(242,226,5,.7); }
.dt-copy svg { width: 15px; height: 15px; }
.dt-prompt:hover { border-color: var(--line-2); }
.dt-prompt:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; }
.dt-prompt.copied .dt-copy { background: var(--good); }

/* What's next: a horizon. Live work at the center, coming work on rings by distance. */
.nx-wrap { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-areas: "map d"; gap: 18px 28px; align-items: center; padding-bottom: 18px; }
.nx-map { grid-area: map; position: relative; aspect-ratio: 2 / 1; margin-top: 30px; background: radial-gradient(48% 96% at 50% 100%, rgba(242, 226, 5, .13), transparent 72%); border-bottom: 1px solid var(--line); }
.nx-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.nx-arc { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.nx-arc.nx-next { stroke: color-mix(in srgb, var(--mark) 55%, var(--line)); stroke-width: 2; }
.nx-arc.nx-later { stroke-dasharray: 3 9; stroke-linecap: round; }
.nx-core { fill: var(--mark); filter: drop-shadow(0 0 40px rgba(242, 226, 5, .35)); }
.nx-ray { stroke: var(--mark); stroke-width: 2; stroke-dasharray: 4 6; transition: all .45s cubic-bezier(.2, .8, .2, 1); }
.nx.is-live .nx-ray { animation: nx-flow 1.2s linear infinite; }
@keyframes nx-flow { to { stroke-dashoffset: -20; } }
.nx-now-b { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); width: 20%; min-width: 120px; display: grid; gap: 3px; text-align: center; color: var(--on-accent); background: none; border: 0; cursor: pointer; }
.nx-now-b b { font: 800 clamp(15px, 1.6vw, 22px)/1 var(--font-display); font-stretch: 110%; }
.nx-now-b span { font: 600 clamp(9.5px, .8vw, 11.5px)/1.25 var(--font-mono); opacity: .8; }
.nx-p { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--ink-2); cursor: pointer; }
.nx-p i { width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--mark); box-shadow: 0 0 0 5px var(--bg); transition: transform .25s, background .25s; }
.nx-p.nx-later i { border-color: var(--line-2); border-style: dashed; }
.nx-p span { position: absolute; bottom: 100%; margin-bottom: 8px; white-space: nowrap; font: 700 13px/1.1 var(--font-body); padding: 5px 8px; border-radius: 7px; background: var(--surface); box-shadow: var(--sh-2); }
.nx-p.e-l span { left: -6px; } .nx-p.e-r span { right: -6px; }
.nx-p.on i, .nx-p:hover i, .nx-p:focus-visible i { transform: scale(1.35); background: var(--mark); border-style: solid; border-color: var(--mark); }
.nx-p.on span { background: var(--mark); color: var(--on-accent); }
.nx-p:focus-visible { outline: none; } .nx-p:focus-visible span { outline: 2px solid var(--mark); outline-offset: 2px; }
.nx-rl { position: absolute; bottom: -2px; font: 600 10.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.nx-d { grid-area: d; padding: 22px 22px 20px; border-radius: 18px; background: var(--raised); box-shadow: var(--sh-3); margin-bottom: 8px; }
.nx-dh { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 14px; margin-bottom: 14px; }
.nx-dh h3 { font: 800 26px/1.05 var(--font-display); font-stretch: 110%; margin: 0; }
.nx-tag { font: 700 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; background: var(--sunk); color: var(--ink-3); }
.nx-d.t-good .nx-tag { color: var(--good); } .nx-d.t-next .nx-tag { color: var(--mark); }
.nx-d dl { margin: 0; display: grid; gap: 12px; }
.nx-d dl div { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; }
.nx-d dt { font: 600 11px/1.6 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.nx-d dd { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.nx-lists { grid-area: lists; display: none; }
@media (max-width: 900px) {
  .nx-wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "map" "lists" "d"; }
  .nx-p span { display: none; }
  .nx-rl { display: none; }
  .nx-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .nx-lg { display: grid; gap: 2px; align-content: start; }
  .nx-lk { margin: 0 0 6px; font: 600 10.5px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
  .nx-li { display: flex; align-items: center; gap: 9px; text-align: left; padding: 9px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink-2); font: 600 14px/1.2 inherit; cursor: pointer; }
  .nx-li i { flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--mark); }
  .nx-li.nx-later i { border-color: var(--line-2); border-style: dashed; }
  .nx-li.on { color: var(--ink); } .nx-li.on i { background: var(--mark); border-color: var(--mark); border-style: solid; }
  .nx-d { margin-bottom: 0; }
  .nx-now-b span { display: none; }
  .nx-now-b b { font-size: 13px; }
  .nx-map { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { .nx-ray { transition: none; animation: none !important; } }

/* Plug it in: a rail that shows how a call flows, beside one console with three doors in. */
.pl-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr); gap: 32px; align-items: stretch; }
.pl-rail { position: relative; list-style: none; margin: 0; padding: 6px 0 0; display: grid; align-content: space-between; gap: 18px; }
.pl-rail::before { content: ""; position: absolute; left: 9px; top: 18px; bottom: 30px; width: 2px; background: linear-gradient(var(--line-2), var(--mark)); }
.pl-rail li { position: relative; padding-left: 36px; display: grid; gap: 3px; }
.pl-rail i { position: absolute; left: 2px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); box-shadow: 0 0 0 4px var(--bg); }
.pl-rail li:last-child i { background: var(--mark); border-color: var(--mark); }
.pl-rail b { font: 800 18px/1.15 var(--font-display); }
.pl-rail span { color: var(--ink-3); font-size: 14px; }
.pl.is-live .pl-rail i { animation: pl-step 6s infinite; animation-delay: calc(var(--k) * 1.5s); }
@keyframes pl-step { 0%, 20% { border-color: var(--mark); box-shadow: 0 0 0 4px var(--bg), 0 0 0 9px rgba(242, 226, 5, .18); } 26%, 100% { box-shadow: 0 0 0 4px var(--bg); } }
.pl-con { border-radius: 18px; background: var(--sunk); box-shadow: var(--sh-3); overflow: hidden; min-width: 0; }
.pl-tabs { display: flex; gap: 2px; padding: 0 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.pl-tab { position: relative; padding: 15px 14px 14px; border: 0; background: none; color: var(--ink-3); font: 700 14px/1 var(--font-body); cursor: pointer; }
.pl-tab[aria-selected="true"] { color: var(--ink); }
.pl-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--mark); }
.pl-tab:focus-visible { outline: 2px solid var(--mark); outline-offset: -4px; border-radius: 8px; }
.pl-body { padding: 20px 22px 22px; display: grid; gap: 10px; }
.pl-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.pl-top p { margin: 0; color: var(--ink-2); font-size: 15.5px; max-width: 46ch; }
.pl-line { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--mark); cursor: pointer; }
.pl-line code { flex: 1; min-width: 0; font: 500 13.5px/1.4 var(--font-mono); overflow-wrap: anywhere; }
.pl-p { font: 600 11px/1 var(--font-mono); color: var(--ink-3); }
.pl-cp { font: 700 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.pl-line:hover .pl-cp, .pl-line:focus-visible .pl-cp { color: var(--mark); }
.pl-k { margin: 6px 0 0; font: 600 10.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.pl-ask { font: 500 13px/1.45 var(--font-mono); color: var(--ink-2); overflow-wrap: anywhere; }
.pl-out { margin: 0; padding: 14px 16px; border-radius: 10px; background: #0a0a0c; border-left: 0; box-shadow: inset 0 0 0 1px var(--line); font: 500 13px/1.6 var(--font-mono); color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.pl-out .v-hold { color: var(--warn); }
.pl-more { margin: 2px 0 0; color: var(--ink-3); font-size: 13px; }
@media (max-width: 900px) {
  .pl-wrap { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .pl-rail { grid-template-columns: 1fr 1fr; gap: 16px 14px; }
  .pl-rail::before { display: none; }
  .pl-tabs { padding: 0 6px; overflow-x: auto; }
  .pl-tab { padding: 14px 10px 13px; white-space: nowrap; }
  .pl-body { padding: 16px; }
}

/* The live run: one row per agent, filled in as its real answer arrives. */
.lv { margin: 14px 0 18px; border-radius: 16px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.lv-h { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 600 11.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.lv-h b { color: var(--ink); letter-spacing: .1em; }
.lv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.lv.is-running .lv-dot { background: var(--mark); animation: lv-blink 1s steps(2) infinite; }
@keyframes lv-blink { 50% { opacity: .25; } }
.lv-sum { flex: 1; } .lv-h::-webkit-details-marker { display: none; } .lv:not([open]) .lv-h { border-bottom: 0; } .lv:not(.is-running) .lv-sum { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 13px; } .lv-t { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lv-list { list-style: none; margin: 0; padding: 6px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lv-r { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 10px 16px; }
.lv-i { width: 12px; height: 12px; margin-top: 3px; border-radius: 50%; border: 2px solid var(--line-2); }
.lv-r.s-work .lv-i { border-color: var(--mark); border-right-color: transparent; animation: lv-spin .8s linear infinite; }
.lv-r.s-done .lv-i { background: var(--good); border-color: var(--good); }
.lv-r.s-gap .lv-i { border-style: dashed; }
@keyframes lv-spin { to { transform: rotate(360deg); } }
.lv-n { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.lv-n b { font-size: 14.5px; color: var(--ink); }
.lv-s { font: 600 10.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.lv-r.s-work .lv-s { color: var(--mark); } .lv-r.s-gap .lv-s { color: var(--warn); }
.lv-rt { margin-left: auto; font: 500 12px/1 var(--font-mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lv-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; font: 500 12px/1.4 var(--font-mono); color: var(--ink-3); }
.lv-steps li::before { content: "> "; color: var(--line-2); }
.lv-f { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); }
.lv-f:empty { display: none; }
@media (max-width: 760px) { .lv-list { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .lv-r.s-work .lv-i, .lv.is-running .lv-dot { animation: none; } }

/* Launchpad coin: how far along its bonding curve it is. */
.lc { display: grid; gap: 10px; margin: 6px 0 4px; }
.lc-h { display: flex; justify-content: space-between; align-items: baseline; font: 600 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.lc-h b { font: 800 22px/1 var(--font-display); color: var(--ink); text-transform: none; letter-spacing: 0; }
.lc-bar { height: 12px; border-radius: 6px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.lc-bar i { display: block; height: 100%; background: var(--sun); box-shadow: 0 0 18px rgba(242, 226, 5, .45); }

/* ---------- resting panel: one check, readable at any width ---------- */
.instrument .im { display: none; }
.instrument.is-idle canvas { visibility: hidden; }
.instrument.is-idle .im:not(:empty) {
  position: absolute; inset: 44px 22px 22px; display: flex; flex-direction: column; gap: 14px;
  max-width: 560px; margin: 0 auto; justify-content: center;
}
.im-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.im-who { min-width: 0; display: grid; gap: 6px; }
.im-host { font: 600 15px/1.2 var(--font-mono); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.im-sub { font: 500 13px/1.3 var(--font-body); color: var(--ink-3); }
.im-score { display: grid; justify-items: end; gap: 4px; flex: none; }
.im-score b { font: 800 clamp(44px, 3.6vw, 64px)/0.9 var(--font-display); font-stretch: 110%; letter-spacing: -.03em; }
.im-score span { font: 600 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.im-score.tone-good { color: var(--good); } .im-score.tone-warn { color: var(--warn); } .im-score.tone-bad { color: var(--bad); } .im-score.tone-none { color: var(--ink-2); }
.im-parts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 22px; }
.im-parts li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 0; border-bottom: 1px solid var(--line); font: 500 14px/1.25 var(--font-body); color: var(--ink); }
.im-parts li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.im-parts li i { flex: none; width: 9px; height: 9px; border-radius: 2px; background: var(--ink-3); box-shadow: 0 0 0 3px rgba(255, 255, 255, .04); }
.im-parts li em { flex: none; font: 500 11.5px/1 var(--font-mono); font-style: normal; color: var(--ink-3); }
.im-parts .sev-critical i { background: var(--bad); box-shadow: 0 0 10px rgba(255, 92, 92, .55); } .im-parts .sev-critical em { color: var(--bad); }
.im-parts .sev-high i { background: #ff7a45; } .im-parts .sev-high em { color: #ff8a5c; }
.im-parts .sev-medium i { background: var(--warn); } .im-parts .sev-medium em { color: var(--warn); }
.im-parts .sev-low i { background: var(--ink-3); }
.im-clean { display: flex; align-items: center; gap: 8px; margin: 0; font: 500 13px/1.35 var(--font-body); color: var(--ink-2); }
.im-clean .ico { color: var(--good); display: inline-flex; flex: none; }
.im-clean .ico svg { width: 15px; height: 15px; }
.im-go { font: 600 13px/1 var(--font-body); color: var(--ink-2); }
.instrument.is-idle:hover .im-go, .instrument.is-idle:focus-visible .im-go { color: var(--mark); }
@media (max-width: 600px) {
  .instrument.is-idle { min-height: 0; }
  .instrument.is-idle .im:not(:empty) { position: relative; inset: auto; padding: 42px 16px 18px; }
  .im-parts { grid-template-columns: 1fr; }
  .im-score b { font-size: 38px; }
}

/* ---------- report map: problem parts name their count; phones keep everything inside its box ---------- */
.wf-sev i { border-radius: 2px; }
.wf-sev b { color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.wf-sev .wf-fx { margin-left: auto; }
.xp .wf-side .wf-l { white-space: normal; }
@media (max-width: 600px) {
  .wf-bar .wf-dots { display: none; }
  .wf-bar .wf-a { gap: 8px; }
  .wf-l { min-width: 0; }
  .xp-ph { grid-template-columns: 38px minmax(0, 1fr); row-gap: 10px; }
  .xp-ph .xp-n { grid-column: 2; justify-self: start; }
}

/* ---------- shorter report: missing items on one line, long sections fold ---------- */
.ab-col { display: grid; gap: 10px; align-content: start; min-width: 0; }
.ab-miss { margin: 0; padding: 12px 14px; border-radius: 10px; border: 1px dashed var(--line-2); font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.ab-miss b { display: block; margin-bottom: 4px; font: 600 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.ab-why { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
details.rp-fold { display: block; }
details.rp-fold > summary { list-style: none; cursor: pointer; }
details.rp-fold > summary::-webkit-details-marker { display: none; }
details.rp-fold:not([open]) > summary { border-bottom: 0; padding-bottom: 0; }
details.rp-fold > .rp-b { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.rp-chev { flex: none; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line-2); display: grid; place-items: center; margin-left: 2px; }
.rp-chev::before { content: ""; width: 7px; height: 7px; border-right: 1.6px solid var(--ink-2); border-bottom: 1.6px solid var(--ink-2); transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
details.rp-fold[open] .rp-chev::before { transform: translateY(2px) rotate(-135deg); }
details.rp-fold > summary:focus-visible { outline: 2px solid var(--mark); outline-offset: 4px; border-radius: 6px; }
details.rp-fold > summary h3 { margin-right: auto; }
@media (max-width: 600px) { details.rp-fold > summary .rp-n { display: none; } }

/* ---------- roadmap: an in-progress ring, and the lists shown at every width ---------- */
.nx-wrap { grid-template-areas: "map d" "lists lists"; }
.nx-arc.nx-wip { stroke: var(--mark); stroke-width: 2.5; }
.nx-p.nx-wip i { background: color-mix(in srgb, var(--mark) 45%, var(--bg)); }
.nx-p span { opacity: 0; transition: opacity .2s; pointer-events: none; }
.nx-p.on span, .nx-p:hover span, .nx-p:focus-visible span { opacity: 1; }
.nx-d.t-wip .nx-tag { color: var(--mark); }
.nx-lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 28px; }
.nx-lg { display: grid; gap: 2px; align-content: start; }
.nx-lk { margin: 0 0 6px; font: 600 10.5px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.nx-li { display: flex; align-items: center; gap: 9px; text-align: left; padding: 9px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink-2); font: 600 14px/1.25 var(--font-body); cursor: pointer; }
.nx-li i { flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--mark); }
.nx-li.nx-wip i { background: color-mix(in srgb, var(--mark) 45%, transparent); }
.nx-li.nx-later i { border-color: var(--line-2); border-style: dashed; }
.nx-li:hover, .nx-li.on { color: var(--ink); } .nx-li.on i { background: var(--mark); border-color: var(--mark); border-style: solid; }
@media (max-width: 900px) {
  .nx-wrap { grid-template-areas: "map" "lists" "d"; }
  .nx-lists { grid-template-columns: 1fr 1fr; }
  .nx-lists .nx-lg:first-child { grid-column: 1 / -1; }
}

/* ---------- before you ship: the command line tool ---------- */
.sh-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px 28px; align-items: start; }
.sh-term { margin: 0; border-radius: 16px; overflow: hidden; background: #0c0c0e; border: 1px solid var(--line-2); box-shadow: var(--sh-3); }
.sh-bar { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--raised), transparent); }
.sh-bar span { font: 600 12px/1 var(--font-mono); color: var(--ink-2); }
.sh-bar em { font: 500 11px/1.2 var(--font-mono); font-style: normal; color: var(--ink-3); text-align: right; }
.sh-term pre { margin: 0; padding: 16px 16px 18px; font: 500 12.5px/1.6 var(--font-mono); color: #e7e5df; white-space: pre-wrap; overflow-wrap: anywhere; }
.sh-term .t-d { color: #8d8a84; } .sh-term .t-b { font-weight: 700; color: #fff; }
.sh-term .t-F { color: #ff5c5c; font-weight: 800; } .sh-term .t-x { color: #fff; font-weight: 700; }
.sh-term .t-c { color: #ff5c5c; } .sh-term .t-h { color: #ff8a5c; } .sh-term .t-m { color: #ffa04d; }
.sh-side { display: grid; gap: 16px; }
.sh-checks { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: sh; }
.sh-checks li { counter-increment: sh; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sh-checks li::before { content: "0" counter(sh); grid-row: span 2; font: 700 12px/1.5 var(--font-mono); color: var(--mark); }
.sh-checks b { font: 700 16px/1.3 var(--font-body); color: var(--ink); }
.sh-checks span { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.sh-gh { padding: 14px 16px; border-radius: 14px; background: var(--raised); box-shadow: var(--sh-2); }
.sh-gh code { display: block; white-space: pre; font: 500 12.5px/1.6 var(--font-mono); color: var(--ink); padding: 10px 12px; border-radius: 9px; background: var(--sunk); overflow-x: auto; }
.sh-gh p:last-child { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-3); }
.sh-st { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 0; font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 900px) { .sh-wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .sh-term pre { font-size: 11px; padding: 12px; } .sh-bar em { display: none; } }

/* ---------- the moving sample check (cs/flow.js) ---------- */
/* the moving card sets the panel's height itself, so nothing is cut off or runs under the corner label */
.instrument.is-idle:has(.im.is-flow:not(:empty)) { display: flex; flex-direction: column; }
.instrument.is-idle .im.is-flow:not(:empty) { position: relative; inset: auto; flex: 1; max-width: none; width: 100%; padding: 44px 22px 22px; justify-content: stretch; container-type: inline-size; }
.im.is-flow .fl { flex: 1; grid-template-rows: auto 1fr; }
.fl-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-height: 0; }
.fl-main { display: grid; gap: 12px; align-content: start; min-width: 0; }
.fl-pic { min-height: 0; border-radius: 12px; background: var(--sunk); border: 1px solid var(--line); padding: 10px; display: grid; align-items: center; transition: opacity .15s; }
.fl-pic.is-out { opacity: 0; }
.fl-pic svg { width: 100%; height: 100%; max-height: 100%; display: block; }
.fl-pic text { font: 600 10px var(--font-mono); fill: var(--ink-2); }
.fl-pic .fl-dim { fill: var(--ink-3); font-weight: 500; }
.fl-pic .fl-frame { fill: none; stroke: var(--line-2); }
.fl-pic .fl-ink { fill: var(--raised); }
.fl-pic .fl-grid { stroke: var(--line); } .fl-pic .fl-goal { stroke: var(--ink-3); stroke-dasharray: 4 4; }
.fl-pic .fl-bub { fill: var(--raised); }
.fl-z > rect:first-child { fill: rgba(255, 255, 255, .02); stroke: var(--line); transition: fill .3s, stroke .3s, filter .3s; }
.fl-z .fl-ic { fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.fl-z .fl-ic2 { fill: none; stroke: var(--ink-3); stroke-width: 1.6; } .fl-z .fl-ic3 { fill: var(--ink-3); }
.fl-z .fl-area { fill: rgba(242, 226, 5, .12); stroke: none; } .fl-z .fl-curve { fill: none; stroke: var(--ink-3); stroke-width: 2.5; transition: stroke .3s; } .fl-z .fl-dot { fill: var(--ink-3); transition: fill .3s; }
.fl-z .fl-c1 { fill: var(--good); } .fl-z .fl-c2 { fill: var(--bad); opacity: .5; } .fl-z .fl-cn { fill: var(--line-2); }
.fl-z.is-read > rect:first-child { fill: rgba(242, 226, 5, .14); stroke: var(--mark); filter: drop-shadow(0 0 6px rgba(242, 226, 5, .55)); }
.fl-z.is-read .fl-ic, .fl-z.is-read .fl-curve { stroke: var(--mark); } .fl-z.is-read .fl-dot { fill: var(--mark); }
.fl-z.is-done.tone-bad > rect:first-child { fill: rgba(255, 92, 92, .14); stroke: var(--bad); } .fl-z.is-done.tone-bad .fl-ic { stroke: var(--bad); }
.fl-z.is-done.tone-warn > rect:first-child { fill: rgba(255, 160, 77, .13); stroke: var(--warn); } .fl-z.is-done.tone-warn .fl-ic { stroke: var(--warn); }
.fl-z.is-done.tone-good > rect:first-child { fill: rgba(76, 216, 132, .10); stroke: rgba(76, 216, 132, .7); } .fl-z.is-done.tone-good .fl-ic { stroke: var(--good); }
.fl-z.is-done.tone-low > rect:first-child { fill: rgba(143, 179, 255, .10); stroke: rgba(143, 179, 255, .7); }
.fl-z.is-done .fl-curve { stroke: var(--mark); } .fl-z.is-done .fl-dot { fill: var(--mark); } .fl-z.is-done .fl-area { fill: rgba(242, 226, 5, .22); }
.fl-stamp { opacity: 0; transform: rotate(-6deg) scale(1.3); transform-origin: 264px 118px; transition: opacity .25s, transform .35s cubic-bezier(.2, .9, .3, 1.3); }
.fl-stamp.is-on { opacity: 1; transform: rotate(-6deg) scale(1); }
.fl-stamp rect { fill: rgba(255, 160, 77, .12); stroke: var(--warn); stroke-width: 3; }
.fl-pic .fl-stamp text { font: 900 20px var(--font-display); fill: var(--warn); letter-spacing: .04em; }
/* wide panel (big screens): score and list on the left, the picture on the right, the two
   worst problems across the bottom. Extra height goes to the picture, so the card stays full. */
@container (min-width: 640px) {
  .fl-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-rows: auto 1fr auto; grid-template-areas: "top pic" "rows pic" "finds finds"; gap: 14px 18px; }
  .fl-main { display: contents; }
  .fl-top { grid-area: top; } .fl-finds { grid-area: finds; } .fl-pic { grid-area: pic; padding: 12px; }
  .fl-rows { grid-area: rows; display: grid; grid-auto-rows: 1fr; }
  .fl-row { padding-block: 0; min-height: 34px; }
}
/* narrow panel: no picture; the score, list and problems fill the card on their own */
@container (max-width: 639px) { .fl-pic { display: none; } }
.fl { display: grid; gap: 12px; }
.fl-tabs { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.fl-tabs button { all: unset; cursor: pointer; padding: 9px 4px 11px; text-align: center; font: 700 13px/1.1 var(--font-body); color: var(--ink-3); transition: color .3s; }
.fl-tabs button[aria-selected="true"] { color: var(--ink); }
.fl-tabs button:hover { color: var(--ink-2); }
.fl-tabs button:focus-visible { outline: 2px solid var(--mark); outline-offset: -2px; border-radius: 4px; }
.fl-prog { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.fl-prog i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, rgba(242, 226, 5, .35), var(--mark)); box-shadow: 0 0 10px rgba(242, 226, 5, .8); }
.fl-prog .fl-fill::after { content: ""; position: absolute; right: -3px; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--mark); box-shadow: 0 0 10px var(--mark); }
.fl-prog .fl-ghost { width: 100%; opacity: 0; }
.fl-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.fl-who { min-width: 0; display: grid; gap: 4px; justify-items: start; }
.fl-roll { display: block; transition: opacity .18s, transform .18s; }
.fl-roll.is-out { opacity: 0; transform: translateY(-6px); }
.fl-tg { max-width: 100%; font: 700 16px/1.2 var(--font-mono); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-sub { max-width: 100%; color: var(--ink-3); font: 500 13px/1.3 var(--font-body); }
.fl-ex { font: 700 9.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-accent, #141417); background: var(--mark); padding: 4px 5px 3px; border-radius: 3px; margin-top: 2px; }
.fl-score { display: grid; justify-items: center; gap: 6px; color: var(--ink-3); transition: color .4s; }
.fl-score.tone-bad { color: var(--bad); } .fl-score.tone-warn { color: var(--warn); } .fl-score.tone-good { color: var(--good); }
.fl-dial { position: relative; width: 96px; height: 96px; }
.fl-dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fl-trk { fill: none; stroke: var(--raised); stroke-width: 11; }
.fl-arc { fill: none; stroke: currentColor; stroke-width: 11; }
.fl-n { position: absolute; inset: 0; display: grid; place-items: center; font: 900 32px/1 var(--font-display); font-stretch: 120%; font-variant-numeric: tabular-nums; }
.fl-w { font: 700 10px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.fl-rows { position: relative; border: 1px solid var(--line); border-radius: 10px; background: var(--sunk); overflow: hidden; }
.fl-row { position: relative; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line); font: 500 13.5px/1.3 var(--font-body); color: var(--ink-2);
  transition: opacity .3s, transform .3s cubic-bezier(.2, .8, .2, 1), background .3s, box-shadow .3s; }
.fl-row:first-child { border-top: 0; }
.fl-rows.is-scan .fl-row { opacity: .4; }
.fl-rows.is-scan .fl-row.is-seen { opacity: 1; }
.fl-rows .fl-row.is-focus { opacity: 1; z-index: 2; transform: scale(1.025); background: var(--raised); border-radius: 6px; box-shadow: 0 10px 24px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(242, 226, 5, .55); }
.fl-row.is-focus::before { content: ""; position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(90deg, transparent, rgba(242, 226, 5, .16), transparent) no-repeat; background-size: 50% 100%; animation: fl-lens .5s ease-out both; }
@keyframes fl-lens { from { background-position: -60% 0; } to { background-position: 160% 0; } }
.fl-row.is-settle .fl-rs { animation: fl-pop .35s cubic-bezier(.2, .9, .3, 1.4) both; }
@keyframes fl-pop { from { transform: scale(.7); opacity: 0; } }
.fl-lamp { width: 10px; height: 10px; border-radius: 2px; background: var(--line-2); transition: background .25s, box-shadow .25s; }
.fl-lamp.is-read { background: var(--mark); box-shadow: 0 0 8px var(--mark); }
.fl-lamp.tone-good { background: var(--good); } .fl-lamp.tone-warn { background: var(--warn); } .fl-lamp.tone-bad { background: var(--bad); } .fl-lamp.tone-low { background: #8fb3ff; }
.fl-nm { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-rs { font: 600 11.5px/1 var(--font-mono); white-space: nowrap; color: var(--ink-3); }
.fl-rs.tone-good { color: var(--good); } .fl-rs.tone-warn { color: var(--warn); } .fl-rs.tone-bad { color: var(--bad); } .fl-rs.tone-low { color: #8fb3ff; }
.fl-beam { position: absolute; left: 0; right: 0; top: 0; height: 38px; pointer-events: none; opacity: 0; background: linear-gradient(180deg, transparent, rgba(242, 226, 5, .10) 45%, rgba(242, 226, 5, .10) 55%, transparent); border-bottom: 1px solid rgba(242, 226, 5, .7); }
.fl-finds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fl-fd { display: grid; gap: 4px; align-content: start; justify-items: start; padding: 10px 12px; border-radius: 8px; background: var(--raised); min-height: 84px; transition: opacity .2s, transform .2s; }
.fl-fd.is-out { opacity: 0; transform: translateY(6px); }
.fl-fd p { margin: 0; font: 500 13.5px/1.35 var(--font-body); color: var(--ink); }
.fl-fd small { color: var(--ink-3); font: 400 12.5px/1.35 var(--font-body); }
.fl-tag { font: 700 9.5px/1 var(--font-mono); letter-spacing: .06em; padding: 4px 5px 3px; border-radius: 3px; color: var(--bg); background: var(--ink-3); }
.fl-tag.tone-bad { background: var(--bad); } .fl-tag.tone-warn { background: var(--warn); } .fl-tag.tone-low { background: #8fb3ff; }
@media (max-width: 600px) {
  .instrument.is-idle .im.is-flow:not(:empty) { padding: 40px 14px 16px; }
  .fl-finds { grid-template-columns: minmax(0, 1fr); }
  .fl-fd { min-height: 0; }
  .fl-tabs button { font-size: 12px; }
  .fl-dial { width: 80px; height: 80px; }
  .fl-n { font-size: 26px; }
}
/* while a real check runs: the same card, every row "reading", the dots faint behind it */
.instrument.is-live { display: flex; flex-direction: column; }
.instrument.is-live canvas { opacity: .22; }
.instrument.is-live .im.is-flow { display: flex; position: relative; flex: 1; width: 100%; padding: 44px 22px 46px; container-type: inline-size; }
/* the result panel stays hidden while the card waits, so the card takes the whole row */
.is-result .stage:has(.instrument.is-live) { grid-template-areas: "bar bar" "inst inst"; }
.fl.is-live { flex: 1; grid-template-rows: auto 1fr; }
.fl.is-live .fl-tab { padding: 9px 4px 11px; text-align: center; font: 700 13px/1.1 var(--font-body); color: var(--ink-3); opacity: .45; }
.fl.is-live .fl-tab.is-on { color: var(--ink); opacity: 1; }
.fl.is-live .fl-rows { display: grid; grid-auto-rows: minmax(34px, 1fr); }
.fl.is-live .fl-row { padding-block: 0; }
.fl.is-live .fl-rs { color: var(--mark); }
.fl.is-live .fl-main { align-content: stretch; grid-template-rows: auto 1fr; }
.fl-dial.is-spin svg { animation: fl-spin 1.1s linear infinite; }
.fl-dial.is-spin .fl-arc { stroke: var(--mark); }
@keyframes fl-spin { to { transform: rotate(270deg); } }
@media (max-width: 600px) { .is-result .stage:has(.instrument.is-live) { grid-template-areas: "bar" "inst"; } .instrument.is-live .im.is-flow { padding: 40px 14px 44px; } .fl.is-live .fl-tab { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .fl *, .fl *::before { animation: none !important; transition: none !important; } }
/* Your last checks in the moving card: host tabs you switch yourself, a muted "checked" tag. */
.fl-tabs button { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-inline: 8px; }
.fl-ex.is-mine { color: var(--ink-2); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-2); }
.fl-tag.tone-good { background: var(--good); }
.fl-prog .fl-fill.is-tab { left: 0; transition: transform .35s cubic-bezier(.2, .9, .3, 1); }
.fl-prog .fl-fill.is-tab::after { display: none; }
/* No dead space: the rows take whatever height is left, and each problem slot keeps one height
   (two lines of problem, one line of detail), so switching checks never makes the card jump. */
.im.is-flow .fl-main { align-content: stretch; grid-template-rows: auto 1fr auto; }
.im.is-flow .fl-rows { display: grid; grid-auto-rows: minmax(34px, 1fr); }
.im.is-flow .fl-row { padding-block: 0; }
.im.is-flow .fl-fd { height: 96px; min-height: 0; overflow: hidden; }
.im.is-flow .fl-fd p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.im.is-flow .fl-fd small { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Small phones: the "check your own project" side column never grows past the screen. */
.sh-side { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.sh-gh code { max-width: 100%; overflow-x: auto; }

/* =====================================================================
   AI ADD-ONS TAB: how the sealed test works, the board, one card
   ===================================================================== */
.ad { display: grid; gap: clamp(28px, 4vw, 56px); padding-bottom: 40px; }
.ad-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
.ad-lead .h1 { font-size: clamp(38px, 4.2vw, 96px); }
.ad-field { margin-top: 26px; }
.ad-chips { align-items: center; }
.ad-chl { font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-right: 2px; }
.ad-msg { display: grid; gap: 8px; margin: 14px 0 0; padding: 12px 14px; border-radius: var(--r-ctrl); background: var(--raised); color: var(--ink-2); font-size: 14px; line-height: 1.45; max-width: 60ch; }
.ad-msg .cmd { margin-top: 2px; }

/* the moving picture */
.ad-lab { margin: 0; position: relative; border-radius: var(--r-panel); border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(70% 60% at 50% 45%, rgba(242, 226, 5, .07), transparent 70%), var(--surface); box-shadow: var(--shadow); }
.ad-lab::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.4px); background-size: 18px 18px; pointer-events: none; }
.ad-svg { position: relative; display: block; width: 100%; height: auto; max-height: 440px; padding: 10px 10px 0; }
.ad-svg text { font: 600 12px var(--font-mono); fill: var(--ink-3); transition: fill .4s; }
.ad-st .ad-sb { fill: var(--raised); stroke: var(--line-2); transition: stroke .4s, fill .4s, filter .4s; }
.ad-wire { stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 3 5; fill: none; transition: stroke .4s; }
.ad-ic { fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; transition: stroke .4s; }
.ad-key { fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linecap: round; opacity: .35; transition: opacity .4s, stroke .4s; }
.ad-ln { fill: var(--line-2); }
.ad-scan { fill: var(--mark); opacity: 0; }
.ad-cur { fill: var(--ink-3); opacity: 0; }
.ad-pk { fill: var(--mark); opacity: 0; }
.ad-x { stroke: var(--bad); stroke-width: 2.4; stroke-linecap: round; opacity: 0; }
.ad-back { fill: #0d0d10; stroke: var(--line); }
.ad-face { fill: var(--sunk); stroke: var(--line-2); stroke-width: 1.5; }
.ad-glow { fill: url(#adGlow); opacity: 0; transition: opacity .6s; }
.ad-wall { fill: none; stroke: var(--mark); stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .9s var(--ease); filter: drop-shadow(0 0 6px rgba(242, 226, 5, .6)); }
.ad-tool { fill: var(--raised); stroke: var(--ink-3); }
.ad-svg .ad-tl { fill: var(--ink); font-size: 10.5px; }
.ad-pin { opacity: 0; transform: translateY(-14px); transition: opacity .4s, transform .5s var(--ease); }
.ad-pin rect { fill: var(--mark); } .ad-svg .ad-pin text { fill: var(--on-accent); font-weight: 700; font-size: 10.5px; }
.ad-lock { fill: var(--mark); opacity: 0; transform-origin: 260px 232px; transform: scale(.2); transition: opacity .3s, transform .4s cubic-bezier(.2, .9, .3, 1.5); }
.ad-out { opacity: 0; transform: translateY(24px); transition: opacity .4s, transform .6s var(--ease); }
.ad-out > rect:first-child { fill: var(--raised); stroke: var(--line-2); }
.ad-ol { fill: var(--line-2); transition: fill .3s; }
/* stage 0: pin. 1: seal. 2: watch. 3: card. Later stages keep what earlier ones showed. */
.ad-lab:not([data-stage="0"]) .ad-pin, .ad-lab[data-stage="0"] .ad-pin { opacity: 1; transform: none; }
.ad-lab:not([data-stage="0"]) .ad-wall { stroke-dashoffset: 0; }
.ad-lab:not([data-stage="0"]) .ad-lock { opacity: 1; transform: none; }
.ad-lab:not([data-stage="0"]) .ad-glow { opacity: 1; }
.ad-lab[data-stage="2"] .ad-wire, .ad-lab[data-stage="3"] .ad-wire { stroke: rgba(242, 226, 5, .55); }
.ad-lab[data-stage="2"] .ad-st .ad-sb { stroke: var(--mark); filter: drop-shadow(0 0 8px rgba(242, 226, 5, .35)); animation: ad-ping 2.6s var(--ease) both; }
.ad-lab[data-stage="2"] .s-net .ad-sb { animation-delay: .35s; } .ad-lab[data-stage="2"] .s-prog .ad-sb { animation-delay: .7s; } .ad-lab[data-stage="2"] .s-text .ad-sb { animation-delay: 1.05s; }
.ad-lab[data-stage="2"] .ad-st text { fill: var(--ink); }
.ad-lab[data-stage="2"] .ad-key { opacity: 1; stroke: var(--bad); animation: ad-blink .5s 2 .2s; }
.ad-lab[data-stage="2"] .ad-pk.p1 { animation: ad-pk1 1.3s ease-in-out .5s 2 both; }
.ad-lab[data-stage="2"] .ad-pk.p2 { animation: ad-pk2 1.3s ease-in-out 1.1s 1 both; }
.ad-lab[data-stage="2"] .ad-x { animation: ad-xin 2s ease 1.1s both; }
.ad-lab[data-stage="2"] .ad-cur { animation: ad-blink .7s steps(1) infinite; opacity: 1; fill: var(--mark); }
.ad-lab[data-stage="2"] .ad-scan { animation: ad-scan 1.4s ease-in-out .3s 2 both; }
.ad-lab[data-stage="3"] .ad-out { opacity: 1; transform: none; }
.ad-lab[data-stage="3"] .ad-ol.o0 { fill: var(--good); transition-delay: .25s; } .ad-lab[data-stage="3"] .ad-ol.o1 { fill: var(--warn); transition-delay: .4s; }
.ad-lab[data-stage="3"] .ad-ol.o2 { fill: var(--good); transition-delay: .55s; } .ad-lab[data-stage="3"] .ad-ol.o3 { fill: var(--good); transition-delay: .7s; }
@keyframes ad-ping { 0% { fill: var(--raised); } 20% { fill: #3a381c; } 100% { fill: var(--raised); } }
@keyframes ad-blink { 50% { opacity: .2; } }
@keyframes ad-pk1 { 0% { opacity: 0; transform: translate(306px, 154px); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(392px, 96px); } }
@keyframes ad-pk2 { 0% { opacity: 0; transform: translate(306px, 154px); } 15% { opacity: 1; fill: var(--bad); } 70% { opacity: 1; fill: var(--bad); transform: translate(352px, 124px); } 100% { opacity: 0; fill: var(--bad); transform: translate(352px, 124px); } }
@keyframes ad-xin { 0%, 30% { opacity: 0; } 40%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ad-scan { 0% { opacity: .5; transform: translateY(0); } 100% { opacity: 0; transform: translateY(26px); } }
.ad-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); background: rgba(13, 13, 16, .55); }
.ad-rail { position: absolute; left: 0; right: 0; top: -1px; height: 2px; pointer-events: none; }
.ad-rail i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, rgba(242, 226, 5, .3), var(--mark)); box-shadow: 0 0 10px rgba(242, 226, 5, .8); }
.ad-step { all: unset; cursor: pointer; display: grid; gap: 3px; align-content: start; padding: 12px 14px 14px; min-width: 0; color: var(--ink-3); transition: color .3s, background .3s; }
.ad-step + .ad-step { border-left: 1px solid var(--line); }
.ad-step .n { font: 600 10px/1 var(--font-mono); letter-spacing: .08em; }
.ad-step b { font: 700 14px/1.2 var(--font-body); color: var(--ink-2); }
.ad-step small { font-size: 12px; line-height: 1.35; }
.ad-step[aria-current="step"] { color: var(--ink-2); background: rgba(242, 226, 5, .06); }
.ad-step[aria-current="step"] .n { color: var(--mark); } .ad-step[aria-current="step"] b { color: var(--ink); }
.ad-step.is-done .n { color: color-mix(in srgb, var(--mark) 60%, var(--ink-3)); }
.ad-step:focus-visible { outline: 2px solid var(--mark); outline-offset: -2px; }

/* the board: one row per add-on, one column per question */
.ad-sec { display: grid; gap: 16px; }
.ad-sh { display: grid; gap: 2px; }
.ad-grid { display: grid; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.ad-head, .ad-row { display: grid; grid-template-columns: minmax(150px, 1.25fr) repeat(4, minmax(0, 1fr)) minmax(130px, 1fr); align-items: center; gap: 12px; padding: 0 18px; }
.ad-head { min-height: 38px; background: var(--sunk); border-bottom: 1px solid var(--line); font: 500 10.5px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.ad-row { all: unset; box-sizing: border-box; display: grid; grid-template-columns: minmax(150px, 1.25fr) repeat(4, minmax(0, 1fr)) minmax(130px, 1fr); align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; border-top: 1px solid var(--line); transition: background var(--t-fast); position: relative; }
.ad-head + .ad-row { border-top: 0; }
.ad-row:hover { background: var(--raised); }
.ad-row[aria-expanded="true"] { background: var(--raised); box-shadow: inset 0 0 0 1px rgba(242, 226, 5, .45); }
.ad-row:focus-visible { outline: 2px solid var(--mark); outline-offset: -2px; }
.ad-who { display: grid; gap: 3px; min-width: 0; }
.ad-who b { font: 800 17px/1.15 var(--font-display); font-stretch: 108%; color: var(--ink); overflow-wrap: anywhere; }
.ad-who small { font: 500 11px/1.3 var(--font-mono); color: var(--ink-3); overflow-wrap: anywhere; }
.ad-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ad-cell em { font-style: normal; font-size: 13px; line-height: 1.25; color: var(--ink-2); min-width: 0; }
.ad-cell.span { grid-column: span 4; }
.ad-cl { display: none; }
.ad-cells { display: contents; }
.ad-lamp { flex: none; width: 12px; height: 12px; border-radius: 3px; background: var(--line-2); }
.ad-lamp.t-good { background: var(--good); box-shadow: 0 0 10px rgba(76, 216, 132, .45); }
.ad-lamp.t-warn { background: var(--warn); box-shadow: 0 0 10px rgba(255, 160, 77, .45); }
.ad-lamp.t-bad { background: var(--bad); box-shadow: 0 0 10px rgba(255, 92, 92, .5); }
.ad-lamp.t-info { background: #8fb3ff; box-shadow: 0 0 8px rgba(143, 179, 255, .35); }
.ad-sum { font: 600 13.5px/1.3 var(--font-body); min-width: 0; }
.ad-sum.t-bad { color: var(--bad); } .ad-sum.t-warn { color: var(--warn); } .ad-sum.t-good { color: var(--good); }
.ad-wait { margin: 0; padding: 22px 18px; color: var(--ink-3); font-size: 14px; }

/* one card, opened under the board */
.ad-open { scroll-margin-top: 90px; }
.ad-card { position: relative; border: 1px solid var(--line-2); border-radius: var(--r-panel); background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px rgba(242, 226, 5, .12); overflow: hidden; }
.ad-ch { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: end; padding: 22px 64px 20px 24px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(242, 226, 5, .05), transparent); }
.ad-cw { min-width: 0; }
.ad-mk { margin: 0 0 6px; font: 500 10.5px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mark); }
.ad-ch h2 { margin: 0; font: 800 clamp(28px, 2.6vw, 44px)/1 var(--font-display); font-stretch: 115%; letter-spacing: -.02em; color: var(--ink); overflow-wrap: anywhere; }
.ad-ver { margin: 8px 0 0; color: var(--ink-3); font-size: 13px; overflow-wrap: anywhere; }
.ad-ver code { font: 500 12px/1.4 var(--font-mono); color: var(--ink-2); }
.ad-about { margin: 8px 0 0; color: var(--ink-2); font-size: 14.5px; max-width: 60ch; }
.ad-hl { display: grid; gap: 8px; justify-items: end; text-align: right; }
.ad-hl b { font: 800 20px/1.15 var(--font-display); font-stretch: 108%; }
.ad-hl.t-bad b { color: var(--bad); } .ad-hl.t-warn b { color: var(--warn); } .ad-hl.t-good b { color: var(--good); }
.ad-links { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: flex-end; }
.ad-links a, .ad-gh { color: var(--ink-2); font-size: 13px; text-decoration: none; border-bottom: 1px solid var(--line-2); }
.ad-links a:hover, .ad-gh:hover { color: var(--mark); border-color: var(--mark); }
.ad-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r-ctrl); border: 1px solid var(--line); background: var(--raised); color: var(--ink-2); font-size: 20px; line-height: 1; cursor: pointer; }
.ad-x:hover { color: var(--ink); border-color: var(--line-2); }
.ad-cb { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.ad-lines { list-style: none; margin: 0; padding: 8px 24px; display: grid; }
.ad-line { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.ad-line:first-child { border-top: 0; }
.ad-line .ad-lamp { margin-top: 4px; }
.ad-lt { font: 500 10.5px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.ad-line p { margin: 4px 0 0; font: 600 16px/1.35 var(--font-body); color: var(--ink); overflow-wrap: anywhere; }
.ad-det { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.ad-det li { font: 500 11.5px/1.45 var(--font-mono); color: var(--ink-3); overflow-wrap: anywhere; }
.ad-side { display: grid; gap: 18px; align-content: start; padding: 18px 24px 22px; background: var(--sunk); border-left: 1px solid var(--line); }
.ad-side h4 { margin: 0 0 8px; font: 800 14px/1.2 var(--font-display); font-stretch: 108%; color: var(--ink); }
.ad-side p { margin: 0 0 8px; color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
.ad-tools, .ad-more, .ad-not { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ad-tools { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 2px 14px; }
.ad-tools li { display: grid; gap: 1px; min-width: 0; padding: 6px 0; border-top: 1px solid var(--line); }
.ad-tools b { font: 600 14px/1.3 var(--font-body); color: var(--ink); overflow-wrap: anywhere; }
.ad-tools code { font: 500 11px/1.3 var(--font-mono); color: var(--ink-3); overflow-wrap: anywhere; }
.ad-tg { display: grid; gap: 4px; margin-top: 8px; }
.ad-tg.is-ch { padding: 10px 12px 8px; border-radius: 10px; background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.ad-tg.is-ch .ad-tools li { border-top-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.ad-tgh { display: flex; align-items: baseline; gap: 8px; margin: 0; font: 700 13px/1.2 var(--font-body); color: var(--ink-2); }
.ad-tg.is-ch .ad-tgh { color: var(--warn); }
.ad-tgh b { font: 700 12px/1 var(--font-mono); padding: 3px 6px; border-radius: var(--r-mark); background: var(--sunk); color: var(--ink-2); }
details.ad-tg > summary { cursor: pointer; list-style: none; padding: 6px 0; }
details.ad-tg > summary::-webkit-details-marker { display: none; }
details.ad-tg > summary::after { content: "Show"; margin-left: auto; font: 600 12px/1 var(--font-body); color: var(--mark); }
details.ad-tg[open] > summary::after { content: "Hide"; }
details.ad-tg > summary:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; border-radius: 4px; }
.ad-tag { font: 600 9.5px/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; padding: 3px 5px; border-radius: 3px; color: var(--warn); background: var(--warn-soft); }
.ad-more li { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.ad-more .sev { flex: none; font: 700 9.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .05em; padding: 3px 5px; border-radius: 3px; color: var(--bg); background: var(--sev, var(--ink-3)); }
.ad-not li { font-size: 13.5px; line-height: 1.4; color: var(--ink-3); padding-left: 14px; position: relative; }
.ad-not li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 1px; background: var(--line-2); }
.ad-note { margin: 0; padding: 12px 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }

/* how the box is sealed */
.ad-how { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(18px, 3vw, 44px); align-items: start; }
.ad-how .phs { max-width: 46ch; line-height: 1.5; }
.ad-gh { display: inline-block; margin-top: 12px; }
.ad-dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.ad-dl div { background: var(--surface); padding: 14px 16px; }
.ad-dl dt { font: 500 10.5px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mark); }
.ad-dl dd { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; }

@media (max-width: 1100px) {
  .ad-hero { grid-template-columns: minmax(0, 1fr); }
  .ad-cb { grid-template-columns: minmax(0, 1fr); }
  .ad-side { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .ad-head { display: none; }
  .ad-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who sum" "cells cells"; gap: 10px 12px; }
  .ad-who { grid-area: who; } .ad-sum { grid-area: sum; text-align: right; }
  .ad-cells { grid-area: cells; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding-top: 10px; border-top: 1px dashed var(--line); }
  .ad-cell { display: grid; grid-template-columns: 12px minmax(0, 1fr); grid-template-areas: "l t" "l w"; column-gap: 8px; align-items: center; }
  .ad-cell .ad-lamp { grid-area: l; } .ad-cell em { grid-area: w; }
  .ad-cl { display: block; grid-area: t; font: 500 9.5px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
  .ad-cell.span { grid-column: 1 / -1; }
  .ad-how { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .ad-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-step:nth-child(4) { border-left: 0; }
  .ad-step:nth-child(n+4) { border-top: 1px solid var(--line); }
  .ad-ch { grid-template-columns: minmax(0, 1fr); padding: 18px 56px 16px 16px; }
  .ad-hl { justify-items: start; text-align: left; }
  .ad-links { justify-content: flex-start; }
  .ad-lines { padding: 4px 16px; }
  .ad-side { padding: 16px; }
  .ad-note { padding: 12px 16px; }
  .ad-row { grid-template-areas: "who" "sum" "cells"; grid-template-columns: minmax(0, 1fr); }
  .ad-sum { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .ad-lab *, .ad-lab *::before { animation: none !important; transition: none !important; } }
@media (max-width: 600px) { .ad-svg text { font-size: 16px; } .ad-svg .ad-pin text, .ad-svg .ad-tl { font-size: 12px; } }
.ad-gh[hidden] { display: none; }
/* the lab's own score on its fake tools */
.ad-score { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)) minmax(0, 1fr); align-items: center; gap: 14px 34px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-panel); background: radial-gradient(60% 120% at 0% 50%, rgba(76, 216, 132, .08), transparent 70%), var(--surface); box-shadow: var(--shadow); }
.ad-big { display: grid; gap: 2px; }
.ad-big b { font: 900 clamp(34px, 3.4vw, 52px)/1 var(--font-display); font-stretch: 120%; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ad-big b small { font-size: .45em; color: var(--ink-3); font-weight: 700; margin-left: 2px; }
.ad-big.t-good b { color: var(--good); } .ad-big.t-warn b { color: var(--warn); }
.ad-big span { font: 500 11px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.ad-sn { margin: 0; color: var(--ink-3); font-size: 13.5px; line-height: 1.45; max-width: 52ch; }
@media (max-width: 700px) { .ad-score { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ad-sn { grid-column: 1 / -1; } }
.ad-score[hidden] { display: none; }
.ad-proofgrid.is-short .ad-row:nth-child(n+6) { display: none; }
.ad-all { all: unset; box-sizing: border-box; cursor: pointer; display: block; text-align: center; padding: 12px; border-top: 1px solid var(--line); font: 600 13px/1.2 var(--font-body); color: var(--ink-2); background: var(--sunk); }
.ad-all:hover { color: var(--mark); }
.ad-all:focus-visible { outline: 2px solid var(--mark); outline-offset: -2px; }

/* ==========================================================================
   Your app: the command line checks for builders, shown on a made-up app.
   One raised desk: four steps on top, a dark index rail of checks (each with its
   count before and after), and one sheet that changes with the step.
   ========================================================================== */
.ya { display: grid; gap: clamp(24px, 3.4vw, 48px); padding-bottom: 40px; }
.ya .t-good { color: var(--good); } .ya .t-warn { color: var(--warn); } .ya .t-bad { color: var(--bad); }
.ya-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(20px, 3vw, 48px); align-items: end; }
.ya-lead .h1 { font-size: clamp(36px, 4vw, 92px); }
.ya-cmds { display: grid; gap: 10px; margin-top: 24px; max-width: 560px; }
.ya-cmd { display: grid; gap: 5px; min-width: 0; }
.ya-cmd > span { font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.ya-cmd .cmd code { font-size: 13px; }

/* the score: before and after, side by side */
.ya-scorebox { min-width: 0; }
.ya-score { position: relative; display: grid; grid-template-columns: 1fr 96px 1fr; align-items: center; gap: 4px 8px; padding: 22px 22px 18px; border-radius: 14px;
  border: 1px solid var(--line); background: radial-gradient(80% 90% at 85% 0%, rgba(242, 226, 5, .1), transparent 70%), linear-gradient(180deg, var(--raised), var(--surface)); box-shadow: var(--shadow); overflow: hidden; }
.ya-g { display: grid; justify-items: center; gap: 2px; min-width: 0; }
.ya-gl { font: 500 11px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); text-align: center; }
.ya-g b { font: 800 clamp(64px, 6vw, 112px)/.9 var(--font-display); font-stretch: 118%; letter-spacing: -.04em; color: currentColor; text-shadow: 0 10px 30px color-mix(in srgb, currentColor 30%, transparent); }
.ya-g small { font: 600 13px/1 var(--font-mono); color: var(--ink-2); }
.ya-g.t-bad b { color: var(--bad); } .ya-g.t-warn b { color: var(--warn); } .ya-g.t-good b { color: var(--good); }
.ya-g.t-bad, .ya-g.t-warn, .ya-g.t-good { color: inherit; }
.ya-arc svg { width: 100%; height: auto; display: block; overflow: visible; }
.ya-arc path { fill: none; stroke: var(--mark); stroke-width: 2; stroke-dasharray: 4 5; stroke-linecap: round; }
.view:not([hidden]) .ya-arc path { animation: ya-flow 1.6s linear infinite; }
@keyframes ya-flow { to { stroke-dashoffset: -18; } }
.ya-tally { grid-column: 1 / -1; display: flex; justify-content: center; gap: 18px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font: 700 14px/1.2 var(--font-body); }
.ya-src { grid-column: 1 / -1; margin: 8px 0 0; text-align: center; color: var(--ink-3); font-size: 12.5px; line-height: 1.4; }
.ya-wait { color: var(--ink-3); font-size: 14px; }

/* the desk */
.ya-desk { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.ya-steps { --at: 0; position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--raised), var(--surface)); }
.ya-steps li { min-width: 0; }
.ya-st { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: baseline; width: 100%; height: 100%; padding: 14px 16px 16px; color: var(--ink-3); transition: color var(--t-fast); }
.ya-steps li + li .ya-st { border-left: 1px solid var(--line); }
.ya-st .n { font: 600 11px/1 var(--font-mono); color: var(--ink-3); }
.ya-st b { font: 800 16px/1.15 var(--font-display); font-stretch: 110%; color: var(--ink-2); overflow-wrap: anywhere; }
.ya-st small { grid-column: 2; font: 500 12px/1.3 var(--font-mono); margin-top: 3px; overflow-wrap: anywhere; }
.ya-st:hover b { color: var(--ink); }
.ya-st[aria-current="step"] b { color: var(--ink); }
.ya-st[aria-current="step"] .n, .ya-st.is-done .n { color: var(--mark); }
.ya-st:focus-visible { outline: 2px solid var(--mark); outline-offset: -2px; }
.ya-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.ya-bar i { display: block; height: 100%; width: calc((var(--at) + 1) * 25%); background: var(--sun); box-shadow: 0 0 14px rgba(242, 226, 5, .45); transition: width 420ms var(--ease); }

.ya-body { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); min-height: 360px; }
.ya-rail { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: var(--sunk); border-right: 1px solid var(--line); }
.ya-rr { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; color: var(--ink-2);
  border: 1px solid transparent; transition: background var(--t-fast), border-color var(--t-fast); }
.ya-rr:hover { background: color-mix(in srgb, var(--raised) 60%, transparent); }
.ya-rr[aria-pressed="true"] { background: var(--raised); border-color: var(--line-2); box-shadow: var(--shadow-ctrl); color: var(--ink); }
.ya-rr:focus-visible { outline: 2px solid var(--mark); outline-offset: 1px; }
.ya-ri { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink-3); }
.ya-ri svg { width: 19px; height: 19px; }
.ya-rr[aria-pressed="true"] .ya-ri { color: var(--on-accent); background: var(--sun); border-color: transparent; }
.ya-rt { display: grid; gap: 2px; min-width: 0; }
.ya-rt b { font: 700 14.5px/1.2 var(--font-body); overflow-wrap: anywhere; }
.ya-rt small { font-size: 12px; line-height: 1.3; color: var(--ink-3); overflow-wrap: anywhere; }
.ya-rn { display: flex; align-items: center; gap: 5px; font: 700 15px/1 var(--font-mono); }
.ya-rn i { font-style: normal; color: var(--ink-3); font-weight: 400; font-size: 12px; }

/* the sheet */
.ya-sheet { min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: clamp(16px, 2vw, 28px); background: radial-gradient(60% 50% at 100% 0%, rgba(242, 226, 5, .05), transparent 70%); }
.ya-sht { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ya-sht > div { min-width: 0; }
.ya-cap { margin: 0 0 6px; font: 500 11px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mark); }
.ya-sht .ph { font-size: clamp(20px, 1.7vw, 28px); overflow-wrap: anywhere; }
.ya-count { display: grid; justify-items: end; flex: none; font: 500 11px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.ya-count b { font: 800 34px/1 var(--font-display); font-stretch: 112%; letter-spacing: -.02em; }
.ya-count, .ya-count.t-bad, .ya-count.t-warn, .ya-count.t-good { color: var(--ink-3); }
.ya-count.t-bad b { color: var(--bad); } .ya-count.t-warn b { color: var(--warn); } .ya-count.t-good b { color: var(--good); }
.ya-sb { flex: 1; display: grid; gap: 14px; align-content: start; min-width: 0; }
.ya-list { border-radius: 12px; border: 1px solid var(--line); background: var(--raised); box-shadow: var(--shadow-ctrl); overflow: hidden; }
.ya-f { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 12px 14px; color: var(--ink); }
button.ya-f { cursor: pointer; transition: background var(--t-fast); }
button.ya-f:hover, .ya-f.on { background: color-mix(in srgb, var(--float) 70%, transparent); }
button.ya-f:focus-visible { outline: 2px solid var(--mark); outline-offset: -2px; }
.ya-f + .ya-f { border-top: 1px solid var(--line); }
.ya-ft { display: grid; gap: 3px; min-width: 0; }
.ya-ft b { font: 600 14.5px/1.35 var(--font-body); overflow-wrap: anywhere; }
.ya-ft code { font: 500 11.5px/1.35 var(--font-mono); color: var(--ink-3); overflow-wrap: anywhere; }
.ya-f.is-fixed b { color: var(--ink-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--good) 70%, transparent); text-decoration-thickness: 2px; }
.ya-sev, .ya-tag { font: 600 10.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; padding: 5px 7px; border-radius: var(--r-mark); white-space: nowrap; }
.ya-sev { color: var(--sev); background: color-mix(in srgb, var(--sev) 15%, transparent); }
.ya-tag.t-warn { background: var(--warn-soft); } .ya-tag.t-good { background: var(--good-soft); }
.ya-none { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px; border-radius: 12px; background: var(--raised); color: var(--ink-2); font-size: 14.5px; }

.ya-ex { display: grid; gap: 14px; }
.ya-exh { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 16px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow-ctrl); }
.ya-exh > div { display: grid; gap: 4px; min-width: 0; }
.ya-exh b { font: 700 17px/1.3 var(--font-body); overflow-wrap: anywhere; }
.ya-exh code { font: 500 12px/1.35 var(--font-mono); color: var(--ink-3); overflow-wrap: anywhere; }
.ya-why { margin: 0; font-size: clamp(17px, 1.3vw, 21px); line-height: 1.5; color: var(--ink); max-width: 62ch; }
.ya-why span, .ya-meta span { display: block; margin-bottom: 6px; font: 500 11px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.ya-meta { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }

.ya-fix { display: grid; gap: 12px; }
.ya-fixlead { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.45; max-width: 62ch; }
.ya-prompt { position: relative; border-radius: 12px; border: 1px solid var(--line); background: var(--sunk); box-shadow: 0 1px 0 rgba(0,0,0,.4) inset; }
.ya-prompt pre { margin: 0; padding: 16px 16px 58px; font: 500 12.5px/1.6 var(--font-mono); color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 300px; overflow: auto; }
.ya-prompt .btn { position: absolute; right: 12px; bottom: 12px; }
.ya-all { all: unset; cursor: pointer; justify-self: start; font: 600 13.5px/1.3 var(--font-body); color: var(--ink-2); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.ya-all:hover { color: var(--mark); border-color: var(--mark); }
.ya-all:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; }

.ya-next { all: unset; box-sizing: border-box; cursor: pointer; align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r-ctrl);
  font: 700 14px/1 var(--font-body); color: var(--on-accent); background: var(--sun); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 2px 0 rgba(0,0,0,.45); }
.ya-next:active { transform: translateY(1px); }
.ya-next:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* two fake users picture */
.ya-up { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--sunk); }
.ya-who { display: grid; grid-template-columns: 34px 22px 38px 22px 34px; align-items: center; }
.ya-p { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 14px/1 var(--font-display); background: var(--raised); border: 1px solid var(--line-2); box-shadow: var(--shadow-ctrl); }
.ya-p.pa { color: var(--good); } .ya-p.pb { color: var(--warn); }
.ya-wire { height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 7px); }
.ya-db { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--mark); background: var(--raised); border: 1px solid var(--line-2); }
.ya-db svg { width: 22px; height: 22px; }
.ya-ut { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ya-ut th, .ya-ut td { text-align: left; padding: 7px 8px; vertical-align: middle; }
.ya-ut thead th { font: 500 10.5px/1.25 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.ya-ut tbody tr + tr th, .ya-ut tbody tr + tr td { border-top: 1px solid var(--line); }
.ya-ut code { font: 600 12.5px/1 var(--font-mono); }
.ya-cell { display: inline-flex; align-items: center; gap: 7px; }
.ya-cell em { font-style: normal; font-weight: 600; color: var(--ink-2); }

/* coming soon */
.ya-soon { display: grid; gap: 14px; }
.ya-soon ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ya-soon li { display: grid; gap: 6px; align-content: start; padding: 16px 18px 16px 0; min-width: 0; }
.ya-soon li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.ya-soon b { font: 800 15px/1.2 var(--font-display); font-stretch: 110%; color: var(--ink); overflow-wrap: anywhere; }
.ya-soon span { color: var(--ink-3); font-size: 13.5px; line-height: 1.45; }

@media (max-width: 1100px) {
  .ya-body { grid-template-columns: minmax(220px, 260px) minmax(0, 1fr); }
  .ya-soon ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ya-soon li:nth-child(3) { padding-left: 0; border-left: 0; }
  .ya-soon li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .ya-hero { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .ya-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .ya-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid var(--line); }
  .ya-rr { grid-template-columns: 30px minmax(0, 1fr); padding: 8px; }
  .ya-ri { width: 30px; height: 30px; }
  .ya-rt small { display: none; }
  .ya-rn { grid-column: 2; font-size: 13px; }
}
@media (max-width: 600px) {
  .ya-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ya-steps li:nth-child(3) .ya-st { border-left: 0; }
  .ya-steps li:nth-child(n+3) .ya-st { border-top: 1px solid var(--line); }
  .ya-st { padding: 11px 12px 12px; }
  .ya-score { grid-template-columns: 1fr 56px 1fr; padding: 18px 14px 14px; }
  .ya-f { grid-template-columns: 22px minmax(0, 1fr); }
  .ya-f > .ya-sev, .ya-f > .ya-tag { grid-column: 2; justify-self: start; }
  .ya-exh { grid-template-columns: 22px minmax(0, 1fr); }
  .ya-exh > .ya-sev { grid-column: 2; justify-self: start; }
  .ya-up { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .ya-ut th, .ya-ut td { padding: 6px 4px; }
  .ya-cell em { display: none; }
  .ya-soon ul { grid-template-columns: minmax(0, 1fr); }
  .ya-soon li, .ya-soon li + li { padding: 14px 0; border-left: 0; }
  .ya-soon li + li { border-top: 1px solid var(--line); }
  .ya-next { align-self: stretch; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .view:not([hidden]) .ya-arc path { animation: none; } .ya-bar i { transition: none; } }

/* Your app: score faces flip from before to after on Check again */
.ya-score { display: block; perspective: 900px; }
.ya-faces { display: grid; }
.ya-face { grid-area: 1 / 1; display: grid; justify-items: center; gap: 2px; backface-visibility: hidden; transition: transform 700ms var(--ease), opacity 400ms var(--ease); }
.ya-face b { font: 800 clamp(64px, 6vw, 112px)/.9 var(--font-display); font-stretch: 118%; letter-spacing: -.04em; text-shadow: 0 10px 30px color-mix(in srgb, currentColor 30%, transparent); }
.ya-face.t-bad b { color: var(--bad); } .ya-face.t-warn b { color: var(--warn); } .ya-face.t-good b { color: var(--good); }
.ya-face, .ya-face.t-bad, .ya-face.t-warn, .ya-face.t-good { color: var(--ink); }
.ya-face small { font: 600 13px/1 var(--font-mono); color: var(--ink-2); }
.ya-face .ya-tally { width: 100%; }
.ya-face.fa { transform: rotateY(180deg); opacity: 0; }
.ya[data-after="true"] .ya-face.fb { transform: rotateY(-180deg); opacity: 0; }
.ya[data-after="true"] .ya-face.fa { transform: none; opacity: 1; }

/* the live diagram: who asks, what stands in the way, what they reach */
.yd { --pk: var(--mark); margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr) 56px minmax(0, 1fr); align-items: center; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--sunk); }
.yd-n { display: grid; gap: 3px; min-width: 0; padding: 10px 12px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line-2); box-shadow: var(--shadow-ctrl); }
.yd-n b { font: 700 14px/1.2 var(--font-body); color: var(--ink); overflow-wrap: anywhere; }
.yd-n span { font: 500 11.5px/1.3 var(--font-mono); color: var(--ink-3); overflow-wrap: anywhere; }
.yd-n.gate.open { border: 1px dashed var(--bad); }
.yd-n.gate.shut { border: 2px solid var(--good); background: color-mix(in srgb, var(--good) 10%, var(--raised)); }
.yd-n.gate.shut span, .yd-n.end.safe span { color: var(--good); }
.yd-n.end.hit { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, var(--raised)); }
.yd-n.end.hit span { color: var(--bad); }
.yd-n.end.safe { opacity: .75; }
.yd-w { position: relative; height: 2px; margin: 0 6px; background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 8px); }
.yd-w i { position: absolute; top: 50%; left: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--pk); box-shadow: 0 0 10px var(--pk); opacity: 0; }
.view:not([hidden]) .yd-w i { animation: yd-go 1.8s linear infinite; }
.view:not([hidden]) .yd-w i + i { animation-delay: -.9s; }
.view:not([hidden]) .yd-w.w2 i { animation-delay: -.45s; } .view:not([hidden]) .yd-w.w2 i + i { animation-delay: -1.35s; }
@keyframes yd-go { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.yd-w.cut { opacity: .5; }
.yd-w.cut i { display: none; }
.yd-w.cut::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 1.5px solid var(--good); background: var(--sunk)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' stroke='%234cd884' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.yd[data-after="true"] .yd-w.w1 i { animation-name: yd-bump; }
@keyframes yd-bump { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 80% { left: 100%; opacity: 1; } 100% { left: 92%; opacity: 0; } }
.view:not([hidden]) .yd-n.end.hit { animation: yd-hit 1.8s ease-in-out infinite; }
@keyframes yd-hit { 0%, 70%, 100% { box-shadow: var(--shadow-ctrl); } 85% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 35%, transparent), 0 0 18px rgba(255, 92, 92, .45); } }
@media (max-width: 600px) {
  .yd { grid-template-columns: minmax(0, 1fr); padding: 10px; }
  .yd-w { width: 2px; height: 22px; margin: 4px auto; background: repeating-linear-gradient(180deg, var(--line-2) 0 4px, transparent 4px 8px); }
  .yd-w i { left: 50%; top: 0; margin: -4.5px 0 0 -4.5px; }
  .view:not([hidden]) .yd-w i { animation-name: yd-down; }
  .yd[data-after="true"] .yd-w.w1 i { animation-name: yd-down; }
  @keyframes yd-down { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
  .yd-n { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 10px; }
  .ya-f > .ya-sev, .ya-f > .ya-tag { grid-column: auto; }
}

/* rows: severity first, what could happen, the fix under it */
.ya-f { grid-template-columns: 76px minmax(0, 1fr); align-items: start; }
.ya-f > .ya-sev, .ya-f > .ya-tag { justify-self: start; margin-top: 2px; }
.ya-fx { font-size: 13.5px; line-height: 1.4; color: var(--ink-2); overflow-wrap: anywhere; }
.ya-fx em { font-style: normal; font-weight: 700; color: var(--good); margin-right: 5px; }
.ya-pickd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.ya-pickd b { font: 700 17px/1.3 var(--font-body); overflow-wrap: anywhere; min-width: 0; }
.ya-why { margin: 0; }

/* the check runs in front of you, then rows flip on Check again */
.ya[data-live="1"] .ya-sheet[data-step="0"] .ya-f { animation: ya-land 420ms var(--ease) both; animation-delay: calc(var(--i) * 90ms + 150ms); }
@keyframes ya-land { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ya-flip { animation: ya-flip 560ms var(--ease) both; animation-delay: calc(var(--i) * 110ms); transform-origin: 50% 50%; }
@keyframes ya-flip { from { transform: rotateX(90deg); opacity: 0; } to { transform: none; opacity: 1; } }
.ya-cell.flip { animation: ya-flip 560ms var(--ease) both; }

/* footer: run it, coming soon */
.ya-foot { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.ya-run { display: grid; gap: 12px; }
.ya-run .ya-cmds { margin-top: 0; }
.ya-safe { margin: 0; color: var(--ink-3); font-size: 13px; }
.ya-foot .ya-soon ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ya-foot .ya-soon li:nth-child(odd) { padding-left: 0; border-left: 0; }
.ya-foot .ya-soon li:nth-child(n+3) { border-top: 1px solid var(--line); }
.ya-soon li { padding-top: 12px; padding-bottom: 12px; }
@media (max-width: 860px) { .ya-foot { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .ya-f { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ya-f.ya-flip { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .ya-f.ya-flip > .ya-tag { order: 2; margin-top: 0; }
  .yd { padding: 8px; }
  .yd-l { font-size: 15px; } .yd-s { font-size: 13px; }
  .ya-foot .ya-soon ul { grid-template-columns: minmax(0, 1fr); }
  .ya-foot .ya-soon li { padding-left: 0; border-left: 0; }
  .ya-foot .ya-soon li + li { border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { .ya-face, .ya-flip, .ya-cell.flip, .ya[data-live="1"] .ya-sheet[data-step="0"] .ya-f, .view:not([hidden]) .yd-n.end.hit, .view:not([hidden]) .yd-w i { animation: none; transition: none; } }
.ya-next { white-space: nowrap; }
.ya-next svg { width: 16px; height: 16px; flex: none; }

/* ==========================================================================
   Check tab, clarity pass: what HexSight checks, why it matters, how a check works.
   ========================================================================== */
.problem { margin-top: clamp(48px, 6vw, 96px); }
.pb-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pb-strip li { display: grid; gap: 6px; align-content: start; padding: 18px 20px 18px 0; min-width: 0; }
.pb-strip li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.pb-strip b { font: 800 clamp(40px, 4vw, 72px)/1 var(--font-display); font-stretch: 118%; letter-spacing: -.03em; color: var(--mark); }
.pb-strip span { color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.pb-strip a { font: 500 12px/1.3 var(--font-mono); color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); justify-self: start; }
.pb-strip a:hover { color: var(--ink); }

.story { margin-top: clamp(48px, 6vw, 96px); }
.st-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 28px; flex-wrap: wrap; }
.st-head > div { min-width: 0; max-width: 820px; }
.st-head .btn { flex: none; }
.st-more { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 22px 0 0; }
.st-more a { font: 700 14.5px/1.3 var(--font-body); color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.st-more a:hover { color: var(--mark); border-color: var(--mark); }
.sample { margin-top: 24px; }

@media (max-width: 600px) {
  .pb-strip { grid-template-columns: minmax(0, 1fr); }
  .pb-strip li, .pb-strip li + li { padding: 14px 0; border-left: 0; }
  .pb-strip li + li { border-top: 1px solid var(--line); }
  .tl-i { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
  .tl-ic { width: 38px; height: 38px; }
}

/* Your app, clarity pass: the example bar, the rail's key, the grade's caption */
.ya-exbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(135deg, rgba(242, 226, 5, .07) 0 10px, transparent 10px 20px), var(--sunk); font-size: 14px; line-height: 1.35; }
.ya-exbar b { font: 700 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--on-accent); background: var(--mark); padding: 5px 7px; border-radius: var(--r-mark); }
.ya-exbar span { color: var(--ink); font-weight: 600; min-width: 0; }
.ya-exbar em { font-style: normal; color: var(--ink-3); }
.ya-st small { font: 500 12.5px/1.35 var(--font-body); }
.ya-rail { gap: 4px; }
.ya-rows { display: flex; flex-direction: column; gap: 4px; }
.ya-rh { display: flex; justify-content: flex-start; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 2px 4px 6px; font-size: 12px; line-height: 1.3; }
.ya-rh b { font: 500 11px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.ya-rh span { color: var(--ink-3); }
.ya-gcap { margin: 0 0 8px; text-align: center; font: 500 11px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
@media (max-width: 860px) {
  .ya-rail { display: flex; flex-direction: column; }
  .ya-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* AI add-ons, clarity pass: caption on the picture, proof and technical parts folded */
.ad-labcap { position: relative; margin: 0; padding: 12px 16px 0; }
.ad-labcap b { font: 500 11px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.ad-honest { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; max-width: 80ch; }
.ad-honest .ad-gh { margin-left: 6px; }
details.ad-sec { display: block; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); padding: 0 clamp(14px, 2vw, 22px); }
details.ad-sec > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 16px 0; }
details.ad-sec > summary::-webkit-details-marker { display: none; }
details.ad-sec > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform var(--t-fast) var(--ease); }
details.ad-sec[open] > summary::after { transform: rotate(-135deg); }
details.ad-sec > summary:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; border-radius: 6px; }
details.ad-sec[open] { padding-bottom: 18px; }
details.ad-sec[open] > *:not(summary) { margin-top: 12px; }
.ad-psum { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 700 13.5px/1.3 var(--font-body); }
.ad-psum .t-good { color: var(--good); } .ad-psum .t-warn { color: var(--warn); }

/* =====================================================================
   TWO TABS (Nov 14): Check for everyone, Builders for code.
   ===================================================================== */
.tab .tab-sub { display: block; margin-top: 3px; font: 500 10.5px/1 var(--font-body); color: var(--ink-3); letter-spacing: 0; }
.tab[aria-current="page"] .tab-sub { color: rgba(20, 20, 23, .62); }
@media (max-width: 600px) {
  .tab .l { display: inline; }
  .tab { padding: 8px 14px; font-size: 14px; }
}

/* The band holds the private tools and the builder doors. Its edges close in toward the right. */
.pb-turn { clip-path: polygon(-100vmax 0, calc(100% + 100vmax) 7%, calc(100% + 100vmax) 76%, -100vmax 100%); padding-bottom: clamp(96px, 11vw, 170px); }
.dr-wrap { position: relative; z-index: 1; margin-top: clamp(26px, 3vw, 44px); }
/* Three classes, so it beats .pb-turn p and .pb-turn p:first-child (which would make it huge and faded). */
.pb-turn .dr-wrap .dr-h { opacity: 1; margin: 0 0 14px; display: flex; align-items: center; gap: 12px; font: 600 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: #121212; }
.pb-turn .dr-wrap .dr-h::after { content: ""; flex: 1; height: 2px; background: rgba(18, 18, 18, .18); border-radius: 1px; }
.dr-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: start; }
.dr { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px 16px 14px; border-radius: 14px; color: var(--ink);
  background: linear-gradient(180deg, #1d1d22, #141417); margin-top: calc(var(--i) * 8px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 2px 0 rgba(0, 0, 0, .35), 0 26px 44px -20px rgba(54, 48, 0, .75);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease); }
.dr:hover, .dr:focus-within { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(255, 255, 255, .1) inset, 0 2px 0 rgba(0, 0, 0, .35), 0 34px 56px -20px rgba(54, 48, 0, .9); }
.dr-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dr-who { font: 500 10.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.dr-st { display: inline-flex; align-items: center; gap: 6px; font: 600 10.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; padding: 4px 7px; border-radius: 5px; }
.dr-st.st-live { color: var(--good); background: var(--good-soft); }
.dr-st.st-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.dr-st.st-soon { color: var(--ink-2); border: 1px dashed var(--line-2); }
.dr-t { font: 800 clamp(18px, 1.5vw, 22px)/1.12 var(--font-display); font-stretch: 108%; letter-spacing: -.015em; }
.dr-d { font-size: 14.5px; line-height: 1.42; color: var(--ink-2); }
.dr-cmd { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 5px 5px 5px 10px; border-radius: 8px; background: var(--sunk); border: 1px solid var(--line); font: 500 12px/1.2 var(--font-mono); color: var(--ink-3); min-width: 0; }
.dr-cmd code { flex: 1; min-width: 0; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-cmd code b { color: var(--mark); font-weight: 500; }
.dr-copy { position: relative; z-index: 2; flex: none; width: 30px; height: 28px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--line); background: var(--raised); color: var(--ink-2); cursor: pointer; }
.dr-copy svg { width: 15px; height: 15px; }
.dr-copy:hover { color: var(--ink); border-color: var(--line-2); }
.dr-apps { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.dr-apps span { font-size: 12px; line-height: 1; padding: 5px 7px; border-radius: 5px; border: 1px solid var(--line); background: var(--sunk); color: var(--ink-2); }
/* The private tools: one panel of plain links, two columns on a laptop, one on a phone. */
.dr-tools { grid-column: span 2; gap: 8px; }
.dr-tools h3.dr-t { margin: 0; }
.dr-tools:hover, .dr-tools:focus-within { transform: none; }
.dr-tools .dr-d { margin-bottom: 4px; }
.dr-tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.dr-tl li { min-width: 0; border-top: 1px solid var(--line); }
.dr-tool { display: flex; flex-direction: column; gap: 5px; height: 100%; box-sizing: border-box; padding: 12px 2px 14px; color: var(--ink); text-decoration: none; border-radius: 6px; }
.dr-tn { font: 700 15.5px/1.25 var(--font-body); color: var(--mark); overflow-wrap: anywhere; }
.dr-tx { font-size: 13.5px; line-height: 1.42; color: var(--ink-2); overflow-wrap: anywhere; }
.dr-tool:hover .dr-tn { text-decoration: underline; text-underline-offset: 3px; }
.dr-tool:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; }
.dr-go { all: unset; box-sizing: border-box; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding-top: 11px; border-top: 1px solid var(--line); font: 700 14px/1.2 var(--font-body); color: var(--mark); }
.dr-go::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.dr-go:focus-visible { outline: none; }
.dr:has(.dr-go:focus-visible) { outline: 2px solid #121212; outline-offset: 3px; }
@media (max-width: 1100px) {
  .dr-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dr { margin-top: 0; }
  /* an odd last door takes the whole row, so no half row is left empty */
  .dr-row > .dr:nth-child(even):last-child { grid-column: span 2; }
}
@media (max-width: 600px) {
  .dr-row { grid-template-columns: minmax(0, 1fr); }
  .dr-tools, .dr-row > .dr:nth-child(even):last-child { grid-column: auto; }
  .dr-tl { grid-template-columns: minmax(0, 1fr); }
  .dr-tool { min-height: 44px; }
  .pb-turn { clip-path: polygon(-100vmax 0, calc(100% + 100vmax) 3%, calc(100% + 100vmax) 90%, -100vmax 100%); padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .dr { transition: none; } }

/* The add-on strip on the Check tab */
.admini { margin-top: clamp(48px, 6vw, 96px); }
.ad-mini { display: grid; gap: 12px; margin-top: clamp(18px, 2.4vw, 30px); }
.ad-mtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ad-mfield { margin: 0; flex: 1 1 320px; max-width: 520px; }
.ad-mlive { display: inline-flex; align-items: center; gap: 7px; font: 600 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--good); padding: 6px 9px; border-radius: 6px; background: var(--good-soft); }
.ad-mlive::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.ad-mall { justify-self: start; font: 700 14.5px/1.3 var(--font-body); color: var(--mark); text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 2px; }
.ad-mall:hover { border-color: var(--mark); }
@media (max-width: 600px) {
  .pb-turn-k { gap: 18px; flex-wrap: wrap; }
  .pb-turn-k dt { font-size: 26px; white-space: nowrap; }
  .wl-svg { display: none; }
}

/* ---------- Builders tab: what's next (roadmap rings, from the long Nov 13 page) ---------- */
/* What's next: a horizon. Live work at the center, coming work on rings by distance. */
.nx-wrap { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-areas: "map d"; gap: 18px 28px; align-items: center; padding-bottom: 18px; }
.nx-map { grid-area: map; position: relative; aspect-ratio: 2 / 1; margin-top: 30px; background: radial-gradient(48% 96% at 50% 100%, rgba(242, 226, 5, .13), transparent 72%); border-bottom: 1px solid var(--line); }
.nx-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.nx-arc { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.nx-arc.nx-next { stroke: color-mix(in srgb, var(--mark) 55%, var(--line)); stroke-width: 2; }
.nx-arc.nx-later { stroke-dasharray: 3 9; stroke-linecap: round; }
.nx-core { fill: var(--mark); filter: drop-shadow(0 0 40px rgba(242, 226, 5, .35)); }
.nx-ray { stroke: var(--mark); stroke-width: 2; stroke-dasharray: 4 6; transition: all .45s cubic-bezier(.2, .8, .2, 1); }
.nx.is-live .nx-ray { animation: nx-flow 1.2s linear infinite; }
@keyframes nx-flow { to { stroke-dashoffset: -20; } }
.nx-now-b { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); width: 20%; min-width: 120px; display: grid; gap: 3px; text-align: center; color: var(--on-accent); background: none; border: 0; cursor: pointer; }
.nx-now-b b { font: 800 clamp(15px, 1.6vw, 22px)/1 var(--font-display); font-stretch: 110%; }
.nx-now-b span { font: 600 clamp(9.5px, .8vw, 11.5px)/1.25 var(--font-mono); opacity: .8; }
.nx-p { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--ink-2); cursor: pointer; }
.nx-p i { width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--mark); box-shadow: 0 0 0 5px var(--bg); transition: transform .25s, background .25s; }
.nx-p.nx-later i { border-color: var(--line-2); border-style: dashed; }
.nx-p span { position: absolute; bottom: 100%; margin-bottom: 8px; white-space: nowrap; font: 700 13px/1.1 var(--font-body); padding: 5px 8px; border-radius: 7px; background: var(--surface); box-shadow: var(--sh-2); }
.nx-p.e-l span { left: -6px; } .nx-p.e-r span { right: -6px; }
.nx-p.on i, .nx-p:hover i, .nx-p:focus-visible i { transform: scale(1.35); background: var(--mark); border-style: solid; border-color: var(--mark); }
.nx-p.on span { background: var(--mark); color: var(--on-accent); }
.nx-p:focus-visible { outline: none; } .nx-p:focus-visible span { outline: 2px solid var(--mark); outline-offset: 2px; }
.nx-rl { position: absolute; bottom: -2px; font: 600 10.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.nx-d { grid-area: d; padding: 22px 22px 20px; border-radius: 18px; background: var(--raised); box-shadow: var(--sh-3); margin-bottom: 8px; }
.nx-dh { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 14px; margin-bottom: 14px; }
.nx-dh h3 { font: 800 26px/1.05 var(--font-display); font-stretch: 110%; margin: 0; }
.nx-tag { font: 700 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; background: var(--sunk); color: var(--ink-3); }
.nx-d.t-good .nx-tag { color: var(--good); } .nx-d.t-next .nx-tag { color: var(--mark); }
.nx-d dl { margin: 0; display: grid; gap: 12px; }
.nx-d dl div { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; }
.nx-d dt { font: 600 11px/1.6 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.nx-d dd { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.nx-lists { grid-area: lists; display: none; }
@media (max-width: 900px) {
  .nx-wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "map" "lists" "d"; }
  .nx-p span { display: none; }
  .nx-rl { display: none; }
  .nx-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .nx-lg { display: grid; gap: 2px; align-content: start; }
  .nx-lk { margin: 0 0 6px; font: 600 10.5px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
  .nx-li { display: flex; align-items: center; gap: 9px; text-align: left; padding: 9px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink-2); font: 600 14px/1.2 inherit; cursor: pointer; }
  .nx-li i { flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--mark); }
  .nx-li.nx-later i { border-color: var(--line-2); border-style: dashed; }
  .nx-li.on { color: var(--ink); } .nx-li.on i { background: var(--mark); border-color: var(--mark); border-style: solid; }
  .nx-d { margin-bottom: 0; }
  .nx-now-b span { display: none; }
  .nx-now-b b { font-size: 13px; }
  .nx-map { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { .nx-ray { transition: none; animation: none !important; } }
/* ---------- roadmap: an in-progress ring, and the lists shown at every width ---------- */
.nx-wrap { grid-template-areas: "map d" "lists lists"; }
.nx-arc.nx-wip { stroke: var(--mark); stroke-width: 2.5; }
.nx-p.nx-wip i { background: color-mix(in srgb, var(--mark) 45%, var(--bg)); }
.nx-p span { opacity: 0; transition: opacity .2s; pointer-events: none; }
.nx-p.on span, .nx-p:hover span, .nx-p:focus-visible span { opacity: 1; }
.nx-d.t-wip .nx-tag { color: var(--mark); }
.nx-lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 28px; }
.nx-lg { display: grid; gap: 2px; align-content: start; }
.nx-lk { margin: 0 0 6px; font: 600 10.5px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.nx-li { display: flex; align-items: center; gap: 9px; text-align: left; padding: 9px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink-2); font: 600 14px/1.25 var(--font-body); cursor: pointer; }
.nx-li i { flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--mark); }
.nx-li.nx-wip i { background: color-mix(in srgb, var(--mark) 45%, transparent); }
.nx-li.nx-later i { border-color: var(--line-2); border-style: dashed; }
.nx-li:hover, .nx-li.on { color: var(--ink); } .nx-li.on i { background: var(--mark); border-color: var(--mark); border-style: solid; }
@media (max-width: 900px) {
  .nx-wrap { grid-template-areas: "map" "lists" "d"; }
  .nx-lists { grid-template-columns: 1fr 1fr; }
  .nx-lists .nx-lg:first-child { grid-column: 1 / -1; }
}

/* ---------- Builders tab: plug in, scan, more ways in ---------- */
.ya .nx.st-sec { margin-top: clamp(24px, 3vw, 48px); }
.bd-sec { scroll-margin-top: 84px; margin-top: clamp(16px, 2.4vw, 36px); }
.bd-sec .st-head { margin-bottom: clamp(16px, 2vw, 26px); }
.bd-sec .h2 { font-size: clamp(28px, 3.2vw, 52px); line-height: 1; }
.bd-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.bd-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font: 700 14px/1.2 var(--font-body); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.bd-jump a:hover { border-color: var(--line-2); transform: translateY(-1px); }
.bd-jump a.is-first { background: var(--accent); color: var(--on-accent); border-color: transparent; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 2px 0 rgba(0,0,0,.45), 0 8px 22px -10px rgba(242,226,5,.7); }
.bd-wiz { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 16px; align-items: start; }
.bd-pick, .bd-how { border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--raised), var(--surface)); box-shadow: var(--shadow); }
.bd-pick { padding: 16px; display: grid; gap: 14px; }
.bd-step { margin: 0; font: 600 11px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.bd-group { display: grid; gap: 6px; }
.bd-gl { margin: 0 0 2px; font-size: 12.5px; color: var(--ink-2); }
.bd-app { all: unset; box-sizing: border-box; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--sunk); transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.bd-app b { font: 700 14.5px/1.2 var(--font-body); color: var(--ink); }
.bd-app small { font: 500 11px/1 var(--font-mono); color: var(--ink-3); }
.bd-app:hover { border-color: var(--line-2); }
.bd-app[aria-pressed="true"] { border-color: var(--mark); background: color-mix(in srgb, var(--mark) 8%, var(--sunk)); box-shadow: 0 0 0 1px var(--mark) inset; }
.bd-app:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; }
.bd-how { padding: clamp(16px, 2vw, 24px); display: grid; gap: 16px; min-width: 0; }
.bd-ht { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.bd-ht h3 { margin: 0; font: 800 clamp(22px, 2vw, 30px)/1.05 var(--font-display); font-stretch: 110%; letter-spacing: -.02em; }
.bd-st { display: inline-flex; align-items: center; gap: 7px; font: 600 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; padding: 6px 9px; border-radius: 6px; white-space: nowrap; }
.bd-st.st-live { color: var(--good); background: var(--good-soft); }
.bd-st.st-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.bd-st.st-soon { color: var(--ink-2); border: 1px dashed var(--line-2); flex-direction: column; align-items: flex-start; gap: 5px; }
.bd-st small { font: 500 11px/1.2 var(--font-body); text-transform: none; letter-spacing: 0; color: var(--ink-3); white-space: normal; }
.bd-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: bd; }
.bd-steps li { counter-increment: bd; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
.bd-steps li::before { content: counter(bd); grid-row: span 2; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--sunk); border: 1px solid var(--line); font: 600 13px/1 var(--font-mono); color: var(--mark); }
.bd-steps p { margin: 6px 0 4px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.bd-steps li > *:not(p) { grid-column: 2; }
.bd-code { display: flex; align-items: flex-start; gap: 8px; min-width: 0; padding: 6px 6px 6px 12px; border-radius: 9px; background: var(--sunk); border: 1px solid var(--line); }
.bd-code pre { margin: 0; flex: 1; min-width: 0; overflow-x: auto; padding: 6px 0; font: 500 12.5px/1.55 var(--font-mono); color: var(--ink); white-space: pre; }
.bd-code.is-plain { padding: 6px 12px; }
.bd-copy { all: unset; box-sizing: border-box; cursor: pointer; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line); background: var(--raised); font: 600 12px/1 var(--font-body); color: var(--ink-2); }
.bd-copy svg { width: 15px; height: 15px; }
.bd-copy:hover { color: var(--ink); border-color: var(--line-2); }
.bd-copy.is-done { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, var(--line)); }
.bd-copy:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; }
.bd-say { justify-self: start; display: inline-block; padding: 10px 14px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font: 800 18px/1 var(--font-display); font-stretch: 108%; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 8px 20px -10px rgba(242,226,5,.7); }
.bd-gets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.bd-gets li { display: grid; gap: 3px; padding: 10px 12px; border-radius: 9px; background: var(--sunk); border: 1px solid var(--line); }
.bd-gets b { font: 700 14px/1.2 var(--font-body); color: var(--ink); }
.bd-gets span { font-size: 13px; line-height: 1.35; color: var(--ink-3); }
.bd-note { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.bd-scan { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 16px 32px; align-items: end; }
.bd-scan .st-head { margin-bottom: 0; }
.bd-big .bd-code { padding: 8px 8px 8px 16px; align-items: center; }
.bd-big pre { font-size: 18px; }
.bd-big pre::before { content: "$ "; color: var(--mark); }
.bd-ledger { border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--raised), var(--surface)); box-shadow: var(--shadow); overflow: hidden; }
.bd-row { display: grid; grid-template-columns: minmax(150px, 200px) minmax(0, 1fr) minmax(0, 340px) minmax(110px, auto); gap: 16px 22px; align-items: center; padding: 16px 20px; }
.bd-row + .bd-row { border-top: 1px solid var(--line); }
.bd-row h3 { margin: 0; font: 800 18px/1.15 var(--font-display); font-stretch: 106%; }
.bd-row p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 980px) {
  .bd-wiz, .bd-scan { grid-template-columns: minmax(0, 1fr); }
  .bd-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bd-pick .bd-step { grid-column: 1 / -1; }
  .bd-row { grid-template-columns: minmax(0, 1fr) auto; }
  .bd-row p, .bd-row .bd-code { grid-column: 1 / -1; }
  .bd-row .bd-st { grid-row: 1; grid-column: 2; }
}
@media (max-width: 600px) {
  .bd-pick { grid-template-columns: minmax(0, 1fr); }
  .bd-big pre { font-size: 15px; }
  .bd-copy span { display: none; }
}
.nx .st-head { display: block; }
@media (max-width: 600px) {
  .bd-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bd-group { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bd-gl { grid-column: 1 / -1; }
  .bd-app { padding: 10px; }
  .bd-app small { display: none; }
}

/* ---------- the product check: four plain answers, each with its proof ---------- */
.pc-lede { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); max-width: 66ch; }
.pc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pc-i { display: grid; gap: 10px; align-content: start; min-width: 0; padding: 14px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); box-shadow: var(--sh-2); }
.pc-i.k-none { background: transparent; box-shadow: none; border-style: dashed; }
.pc-q { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.pc-q .ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-3); }
.pc-q .ico svg { width: 14px; height: 14px; }
.pc-i.k-good .pc-q .ico { background: var(--good-soft); color: var(--good); }
.pc-i.k-warn .pc-q .ico { background: var(--warn-soft); color: var(--warn); }
.pc-q b { font: 800 17px/1.2 var(--font-display); letter-spacing: -.01em; color: var(--ink); }
.pc-q em { font: 600 11px/1 var(--font-mono); font-style: normal; text-transform: uppercase; letter-spacing: .06em; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.pc-i.k-good .pc-q em { color: var(--good); border-color: currentColor; }
.pc-i.k-warn .pc-q em { color: var(--warn); border-color: currentColor; }
.pc-why { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.pc-l { display: grid; gap: 6px; }
.pc-l > span { font: 600 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.pc-l ul { margin: 0; padding: 0 0 0 16px; display: grid; gap: 4px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.pc-but ul { color: var(--ink); }
.pc-at { margin: 0; font: 500 12px/1.5 var(--font-mono); color: var(--ink-3); }
.rc .cc { margin-top: 0; }
@media (max-width: 760px) { .pc-list { grid-template-columns: 1fr; } .pc-q { grid-template-columns: 26px minmax(0, 1fr); } .pc-q em { grid-column: 2; justify-self: start; } }
/* Long words in any line of the block wrap, so a phone never scrolls sideways. */
.pc-why, .pc-q b, .pc .ab-miss, .pc-lede { overflow-wrap: anywhere; }

/* ---------- Fix guides (/fix): a rail of five guides and one raised sheet ---------- */
.fx { display: grid; gap: clamp(22px, 3vw, 40px); padding-bottom: 40px; }
.fx-hero { max-width: 1100px; }
.fx-hero .h1 { font-size: clamp(36px, 4.4vw, 96px); text-wrap: balance; }
.fx-main { display: grid; grid-template-columns: minmax(240px, 330px) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 36px); align-items: start; }
.fx-rail { position: sticky; top: 16px; display: grid; gap: 18px; }
.fx-grp { display: grid; gap: 6px; }
.fx-gl { margin: 0 0 4px; font: 500 11.5px/1.35 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.fx-li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; row-gap: 3px; padding: 12px 14px; border-radius: 10px; border: 1px solid transparent; color: var(--ink); text-decoration: none; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.fx-li:hover { background: var(--surface); border-color: var(--line); }
.fx-li:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; }
.fx-li[aria-current="true"] { background: linear-gradient(180deg, var(--raised), var(--surface)); border-color: var(--line-2); box-shadow: var(--shadow); transform: translateX(4px); }
.fx-ln { grid-row: 1 / span 2; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: var(--sunk); border: 1px solid var(--line); font: 600 12px/1 var(--font-mono); color: var(--ink-2); }
.fx-li[aria-current="true"] .fx-ln { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.fx-li b { font: 700 15px/1.25 var(--font-body); overflow-wrap: anywhere; }
.fx-li small { color: var(--ink-3); font-size: 13px; line-height: 1.35; }

.fx-sheet { position: relative; min-width: 0; display: grid; gap: clamp(18px, 2vw, 28px); padding: clamp(18px, 2.6vw, 40px); border-radius: var(--r-panel); border: 1px solid var(--line-2);
  background: radial-gradient(80% 50% at 85% 0%, rgba(242, 226, 5, .06), transparent 70%), linear-gradient(180deg, var(--raised), var(--surface));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 8px 10px 0 0 var(--bg-2), 8px 10px 0 1px var(--line), 0 30px 56px -30px rgba(0, 0, 0, .9); scroll-margin-top: 12px; }
.fx-h:focus { outline: none; }
.fx-h:focus-visible { outline: 2px solid var(--mark); outline-offset: 4px; border-radius: 4px; }
.fx-tag { margin: 0 0 10px; font: 500 11.5px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.fx-tag span { color: var(--ink-3); }
.fx-h { font: 800 clamp(26px, 2.8vw, 48px)/1 var(--font-display); font-stretch: 112%; letter-spacing: -.03em; text-wrap: balance; overflow-wrap: anywhere; }
.fx-top { margin: 0; max-width: 62ch; color: var(--ink-2); font-size: clamp(16px, 1.15vw, 19px); line-height: 1.5; }
.fx-sub { margin: 0 0 10px; font: 700 15px/1.3 var(--font-body); color: var(--ink); }
.fx-note { margin: 8px 0 0; color: var(--ink-3); font-size: 13.5px; line-height: 1.5; max-width: 70ch; }
.fx-note a { color: var(--ink); text-decoration-color: var(--mark); text-underline-offset: 3px; white-space: nowrap; }
.fx-n { font: 600 12px/1 var(--font-mono); color: var(--ink-3); }

/* the moving picture */
.fx-fig { margin: 0; display: grid; gap: 12px; padding: clamp(12px, 1.6vw, 20px); border-radius: 11px; background: var(--sunk); border: 1px solid var(--line); }
.fx-svg { width: 100%; height: auto; display: block; max-height: 300px; }
.fx-svg text { font-family: var(--font-body); }
.fx-wire { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 5 7; }
.view:not([hidden]) .fx-wire { animation: fx-flow 1.4s linear infinite; }
@keyframes fx-flow { to { stroke-dashoffset: -24; } }
.fx-hexb { fill: var(--bg-2); stroke: var(--line); }
.fx-hex { fill: var(--raised); stroke: var(--bad); stroke-width: 2; }
.fx-head, .fx-torso { fill: none; stroke: var(--ink-2); stroke-width: 2.4; stroke-linecap: round; }
.fx-lbl { font-size: 14px; font-weight: 700; fill: var(--ink); }
.fx-got { font-size: 12.5px; fill: var(--bad); opacity: 0; }
.fx-gate { opacity: 0; transition: opacity var(--t-mid) var(--ease); }
.fx-fig[data-state="after"] .fx-gate { opacity: 1; }
.fx-shield { fill: var(--good-soft); stroke: var(--good); stroke-width: 2; }
.fx-tick { fill: none; stroke: var(--good); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fx-glbl { font-size: 12.5px; font-weight: 600; fill: var(--good); }
.fx-dbb { fill: var(--bg-2); stroke: var(--line); }
.fx-dbf { fill: var(--surface); stroke: var(--line-2); }
.fx-dbt { font: 500 11px var(--font-mono) !important; letter-spacing: .08em; text-transform: uppercase; fill: var(--ink-3); }
.fx-row rect { fill: var(--raised); stroke: var(--line); }
.fx-rt { font-size: 13.5px; font-weight: 600; fill: var(--ink-2); }
.fx-hit { font-size: 13.5px; font-weight: 700; fill: var(--bad); opacity: 0; }
.fx-r0 rect { stroke: var(--mark); }
.fx-dot { fill: var(--mark); opacity: 0; }
.fx-fig[data-state="after"] .fx-dot { fill: var(--good); }

/* one 4.2s loop: the dot travels, then the row changes (before) or the gate holds (after) */
.view:not([hidden]) .fx-dot { animation: fx-go 4.2s var(--ease) infinite; }
.view:not([hidden]) .fx-fig[data-state="after"] .fx-dot { animation-name: fx-stop; }
.view:not([hidden]) .fx-fig[data-mode="read"] .fx-dot { animation-name: fx-out; }
.view:not([hidden]) .fx-fig[data-mode="read"][data-state="after"] .fx-dot { animation-name: fx-outstop; }
.view:not([hidden]) .fx-fig[data-state="before"] .fx-r0 rect { animation: fx-bad 4.2s var(--ease) infinite; }
.view:not([hidden]) .fx-fig[data-state="before"]:not([data-mode="read"]) .fx-r0 .fx-rt { animation: fx-hide 4.2s var(--ease) infinite; }
.view:not([hidden]) .fx-fig[data-state="before"]:not([data-mode="read"]) .fx-hit { animation: fx-show 4.2s var(--ease) infinite; }
.view:not([hidden]) .fx-fig[data-mode="delete"][data-state="before"] .fx-r0 { animation: fx-gone 4.2s var(--ease) infinite; }
.view:not([hidden]) .fx-fig[data-mode="read"][data-state="before"] .fx-got { animation: fx-show 4.2s var(--ease) infinite; }
.view:not([hidden]) .fx-fig[data-state="after"] .fx-shield { animation: fx-pulse 4.2s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes fx-go { 0%, 8% { opacity: 0; transform: translate(150px, 140px); } 12% { opacity: 1; } 48% { opacity: 1; transform: translate(408px, 96px); } 54%, 100% { opacity: 0; transform: translate(408px, 96px); } }
@keyframes fx-stop { 0%, 8% { opacity: 0; transform: translate(150px, 140px); } 12% { opacity: 1; } 34% { opacity: 1; transform: translate(272px, 119px); } 44%, 100% { opacity: 0; transform: translate(272px, 119px); } }
@keyframes fx-out { 0%, 8% { opacity: 0; transform: translate(408px, 96px); } 12% { opacity: 1; } 48% { opacity: 1; transform: translate(150px, 140px); } 54%, 100% { opacity: 0; transform: translate(150px, 140px); } }
@keyframes fx-outstop { 0%, 8% { opacity: 0; transform: translate(408px, 96px); } 12% { opacity: 1; } 34% { opacity: 1; transform: translate(338px, 108px); } 44%, 100% { opacity: 0; transform: translate(338px, 108px); } }
@keyframes fx-bad { 0%, 46% { fill: var(--raised); stroke: var(--mark); } 52%, 92% { fill: var(--bad-soft); stroke: var(--bad); } 100% { fill: var(--raised); stroke: var(--mark); } }
@keyframes fx-hide { 0%, 46% { opacity: 1; } 52%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes fx-show { 0%, 46% { opacity: 0; } 52%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fx-gone { 0%, 56% { opacity: 1; } 66%, 92% { opacity: .25; } 100% { opacity: 1; } }
@keyframes fx-pulse { 0%, 30% { transform: scale(1); } 38% { transform: scale(1.12); } 46%, 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .fx-fig, .fx-fig * { animation: none !important; transition: none !important; }
  .fx-fig[data-mode="delete"][data-state="before"] .fx-r0 { opacity: .25; }
  .fx-fig .fx-dot { display: none; }
  .fx-wire { animation: none !important; }
  .fx-fig[data-state="before"]:not([data-mode="read"]) .fx-hit, .fx-fig[data-mode="read"][data-state="before"] .fx-got { opacity: 1; }
  .fx-fig[data-state="before"]:not([data-mode="read"]) .fx-r0 .fx-rt { opacity: 0; }
  .fx-fig[data-state="before"] .fx-r0 rect { fill: var(--bad-soft); stroke: var(--bad); }
}

/* the before/after switch and the provider picker: square, joined buttons */
.fx-cap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.fx-seg { display: inline-flex; flex-wrap: wrap; padding: 3px; gap: 3px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); }
.fx-seg button { all: unset; box-sizing: border-box; cursor: pointer; min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 6px; font: 600 13.5px/1 var(--font-body); color: var(--ink-3); transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.fx-seg button:hover { color: var(--ink); }
.fx-seg button[aria-pressed="true"] { background: var(--raised); color: var(--ink); box-shadow: var(--shadow-ctrl); }
.fx-seg button:focus-visible { outline: 2px solid var(--mark); outline-offset: 1px; }
.fx-say { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; flex: 1 1 240px; }

/* the three parts of a recipe */
.fx-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fx-part { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 16px 18px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--line); }
.fx-part .fx-n { padding-top: 4px; }
.fx-part h3 { margin: 0 0 8px; font: 800 17px/1.2 var(--font-display); font-stretch: 108%; }
.fx-part p { margin: 0; color: var(--ink-2); line-height: 1.5; max-width: 70ch; }
.fx-part .fx-why { margin-top: 10px; color: var(--ink-3); font-size: 14.5px; }
.fx-part .fx-why b { color: var(--ink-2); }
.fx-part.is-key { background: linear-gradient(180deg, rgba(242, 226, 5, .07), transparent 60%), var(--bg-2); border-color: color-mix(in srgb, var(--mark) 35%, var(--line)); }
.fx-part.is-key .fx-n { color: var(--mark); }
.fx-part.fx-next { background: transparent; border-style: dashed; }
.fx-part.fx-next .fx-code { opacity: .75; }
.fx-solo { grid-template-columns: minmax(0, 1fr); }
.fx-code + .fx-code { margin-top: 8px; }
.fx-code.is-wrap pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.fx-code pre { font-size: 13px; }

/* scary email: three rules, then the claims table */
.fx-rules ol, .fx-order { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fx-order { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fx-rules li, .fx-order li { display: grid; align-content: start; gap: 6px; padding: 14px 16px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.fx-rules li b, .fx-order li b { font: 700 15.5px/1.25 var(--font-body); }
.fx-rules li span:last-child, .fx-order li span:last-child { color: var(--ink-3); font-size: 14px; line-height: 1.45; }
.fx-order li:first-child { border-color: color-mix(in srgb, var(--mark) 40%, var(--line)); }
.fx-order li:first-child .fx-n { color: var(--mark); }
.fx-ct { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--bg-2); }
.fx-crow { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1.2fr); gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.fx-crow:first-child { border-top: 0; }
.fx-chead { font: 500 11px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); background: var(--sunk); }
.fx-c1 { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.fx-c2 { color: var(--ink-2); }
.fx-c3 { color: var(--ink-2); display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 8px; align-items: start; }
.fx-pub { margin: 0; padding: 12px 16px; border-radius: 10px; background: var(--sunk); border: 1px dashed var(--line-2); color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.fx-c3 i { width: 8px; height: 8px; margin-top: 6px; border-radius: 2px; background: var(--good); }
.fx-c3.t-no i { background: var(--ink-3); }
.fx-checkbtn { margin-top: 12px; text-decoration: none; }

/* leaked key: provider steps */
.fx-prov { display: grid; gap: 10px; }
.fx-psheet { padding: 16px 18px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--line); }
.fx-psheet ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--ink-2); line-height: 1.5; }
.fx-psheet li::marker { font: 600 12px var(--font-mono); color: var(--ink-3); }
.fx-honest { margin: 0; color: var(--ink-3); font-size: 13.5px; max-width: 70ch; }

@media (max-width: 1100px) { .fx-order { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .fx-main { grid-template-columns: minmax(0, 1fr); }
  .fx-rail { position: static; }
  .fx-li[aria-current="true"] { transform: none; }
  .fx-sheet { box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 24px 48px -28px rgba(0, 0, 0, .85); }
}
@media (max-width: 640px) {
  .fx-rules ol, .fx-order { grid-template-columns: minmax(0, 1fr); }
  .fx-crow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .fx-chead { display: none; }
  .fx-crow > span::before { content: attr(data-l); display: block; margin-bottom: 2px; font: 500 10.5px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
  .fx-c3::before { grid-column: 1 / -1; }
  .fx-svg .fx-lbl, .fx-svg .fx-glbl, .fx-svg .fx-got, .fx-svg .fx-dbt { display: none; }
  .fx-svg .fx-rt, .fx-svg .fx-hit { font-size: 20px; }
  .fx-part { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px; }
  .fx-part .fx-n:empty { display: none; }
  .fx-seg { width: 100%; } .fx-seg button { flex: 1 1 auto; justify-content: center; min-height: 44px; }
  .fx-sheet { padding: 16px; }
}

/* ---------- Knock (/knock): the break-in test that runs in the page ---------- */
.kn { display: grid; gap: clamp(22px, 3vw, 40px); padding-bottom: 40px; }
.kn-hero { max-width: 1100px; }
.kn-hero .h1 { font-size: clamp(36px, 4.4vw, 96px); text-wrap: balance; }
.kn-hero .lede { max-width: 58ch; }
.kn-stage { min-width: 0; scroll-margin-top: 12px; }
.kn-sheet { position: relative; min-width: 0; border-radius: var(--r-panel); border: 1px solid var(--line-2);
  background: radial-gradient(70% 60% at 0% 0%, rgba(242, 226, 5, .07), transparent 70%), linear-gradient(180deg, var(--raised), var(--surface));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 8px 10px 0 0 var(--bg-2), 8px 10px 0 1px var(--line), 0 30px 56px -30px rgba(0, 0, 0, .9); }
.kn-in .kn-sheet { display: grid; grid-template-columns: minmax(0, 1.15fr) auto minmax(0, 1fr); }
.kn-drop { position: relative; display: grid; justify-items: start; align-content: center; gap: 12px; padding: clamp(22px, 3vw, 48px); border-radius: var(--r-panel) 0 0 var(--r-panel); }
.kn-drop:focus { outline: none; }
.kn-door { width: clamp(72px, 7vw, 108px); aspect-ratio: 1; margin-bottom: 4px; }
.kn-door svg { width: 100%; height: 100%; overflow: visible; }
.kn-dhb { fill: var(--sunk); stroke: var(--line); stroke-width: 1.5; }
.kn-dh { fill: var(--float); stroke: var(--line-2); stroke-width: 1.5; }
.kn-dk { fill: none; stroke: var(--mark); stroke-width: 3; }
.kn-dkn { fill: var(--mark); }
.kn-ring { fill: none; stroke: var(--mark); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.view:not([hidden]) .kn-ring { animation: kn-ring 3.2s var(--ease) infinite; }
.view:not([hidden]) .kn-ring2 { animation-delay: 1.6s; }
@keyframes kn-ring { 0% { opacity: .55; transform: scale(.5); } 70%, 100% { opacity: 0; transform: scale(1.7); } }
.kn-dt { margin: 0; font: 800 clamp(24px, 2.4vw, 40px)/1.02 var(--font-display); font-stretch: 112%; letter-spacing: -.03em; text-wrap: balance; }
.kn-ds { margin: 0; color: var(--ink-2); max-width: 44ch; line-height: 1.5; }
.kn-picks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.kn-picks .btn { position: relative; overflow: hidden; }
.kn-picks .btn:focus-within { outline: 2px solid var(--mark); outline-offset: 3px; }
.kn-up { margin: 0; color: var(--ink-3); font-size: 12.5px; line-height: 1.45; max-width: 46ch; }
.kn-file-in { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.kn-over { position: absolute; inset: 10px; margin: 0; display: grid; place-items: center; border-radius: 10px; border: 2px dashed var(--mark);
  background: color-mix(in srgb, var(--bg) 82%, transparent); font: 700 clamp(18px, 1.6vw, 24px)/1.2 var(--font-display); color: var(--ink);
  opacity: 0; pointer-events: none; transition: opacity var(--t-fast) var(--ease); }
.kn-sheet.is-over { border-color: var(--mark); }
.kn-sheet.is-over .kn-over { opacity: 1; }
.kn-or { display: grid; place-items: center; padding: 18px 0; }
.kn-or::before { content: ""; grid-area: 1 / 1; width: 1px; height: 100%; background: linear-gradient(180deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent); }
.kn-or span { grid-area: 1 / 1; padding: 6px 2px; background: color-mix(in srgb, var(--raised) 45%, var(--surface)); font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
.kn-side { display: grid; align-content: center; gap: clamp(22px, 2.6vw, 36px); padding: clamp(22px, 3vw, 48px); }
.kn-repo { display: grid; gap: 0; }
.kn-rl { font: 500 11.5px/1.35 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.kn-repo .field { margin-top: 10px; }
.kn-repo .field .btn { min-height: 42px; }
.kn-rerr { margin: 10px 0 0; color: var(--bad); font-size: 14px; line-height: 1.45; }
.kn-ex { display: grid; gap: 12px; justify-items: start; padding-top: clamp(18px, 2vw, 26px); border-top: 1px solid var(--line); }
.kn-ex p { margin: 0; color: var(--ink-2); line-height: 1.5; max-width: 40ch; }
.kn-under { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 48px); align-items: start; margin-top: clamp(28px, 3vw, 44px); }
.kn-how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; }
.kn-how::before { content: ""; position: absolute; left: 14px; right: 14px; top: 14px; height: 1px; background: var(--line-2); }
.kn-how li { position: relative; display: grid; gap: 10px; padding-right: 18px; }
.kn-hn { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: var(--raised); border: 1px solid var(--line-2); font: 600 12px/1 var(--font-mono); color: var(--ink); box-shadow: var(--shadow-ctrl); }
.kn-how p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.kn-how b { color: var(--ink); font-weight: 700; }
.kn-priv { margin: 0; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 14px 16px; border-radius: 10px; background: var(--sunk); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.kn-priv svg { width: 20px; height: 20px; color: var(--good); margin-top: 1px; }

/* running */
.kn-runsheet { display: grid; gap: 22px; padding: clamp(20px, 3vw, 44px); max-width: 980px; }
.kn-rtop { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.kn-rtop .kicker { margin-bottom: 10px; }
.kn-h { margin: 0; font: 800 clamp(24px, 2.6vw, 44px)/1.04 var(--font-display); font-stretch: 112%; letter-spacing: -.03em; text-wrap: balance; overflow-wrap: anywhere; }
.kn-h:focus { outline: none; }
.kn-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.kn-steps li { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; color: var(--ink-3); }
.kn-steps li + li::before { content: ""; position: absolute; left: 10px; top: -10px; height: 20px; width: 2px; background: var(--line); }
.kn-sdot { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line-2); background: var(--sunk); }
.kn-steps li.is-now { color: var(--ink); }
.kn-steps li.is-now .kn-sdot { border-color: var(--mark); background: var(--accent-soft); }
.view:not([hidden]) .kn-steps li.is-now .kn-sdot { animation: kn-pulse 1.4s var(--ease) infinite; }
@keyframes kn-pulse { 50% { box-shadow: 0 0 0 6px var(--accent-soft); } }
.kn-steps li.is-done { color: var(--ink-2); }
.kn-steps li.is-done .kn-sdot { border-color: transparent; background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141417' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.kn-st { font-weight: 600; }
.kn-sx { font: 500 12px/1.3 var(--font-mono); color: var(--ink-3); text-align: right; }
.kn-meter { display: grid; gap: 8px; }
.kn-mbar { height: 6px; border-radius: 3px; background: var(--sunk); border: 1px solid var(--line); overflow: hidden; }
.kn-mbar i { display: block; height: 100%; width: 0; background: var(--sun); transition: width var(--t-mid) var(--ease); }
.kn-mlab { margin: 0; font: 500 12px/1.3 var(--font-mono); color: var(--ink-3); }
.kn-live { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.kn-live li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px 5px 6px; border-radius: 7px; background: var(--sunk); border: 1px solid var(--line); font: 500 12px/1 var(--font-mono); color: var(--ink-2); animation: in-up 320ms var(--ease) both; }
.kn-live .kn-glyph { width: 16px; height: 16px; }

/* level glyphs: shape and color both carry the level */
.kn-glyph { width: 22px; height: 22px; flex: none; overflow: visible; }
.kn-glyph .kn-gf { fill: currentColor; }
.kn-glyph .kn-go { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.kn-glyph .kn-gd { stroke-dasharray: 3 2.4; }
.kn-glyph .kn-gx { stroke: var(--bg); stroke-width: 2.2; stroke-linecap: round; fill: none; }
.kn-glyph .kn-gq { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kn-now { color: var(--sev-critical); } .kn-look { color: var(--sev-medium); } .kn-unknown { color: var(--ink-3); } .kn-fine { color: var(--good); }

/* results */
.kn-res { display: grid; gap: clamp(18px, 2.2vw, 28px); }
.kn-rhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 28px; flex-wrap: wrap; }
.kn-rhead > div:first-child { min-width: 0; max-width: 900px; }
.kn-rhead .kicker { margin-bottom: 10px; }
.kn-meta { margin: 10px 0 0; font: 500 12.5px/1.5 var(--font-mono); color: var(--ink-3); overflow-wrap: anywhere; }
.kn-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.kn-acts .btn svg { width: 16px; height: 16px; }
.kn-notes { margin: 0; padding: 12px 16px 12px 34px; border-radius: 10px; background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line)); color: var(--ink); font-size: 14px; line-height: 1.5; }
.kn-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: var(--r-panel); border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--raised), var(--surface)); box-shadow: var(--sh-1); overflow: hidden; }
.kn-cell { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 12px; row-gap: 2px; padding: clamp(14px, 1.8vw, 24px); min-width: 0; color: var(--ink); }
.kn-cell + .kn-cell { border-left: 1px solid var(--line); }
.kn-cell .kn-glyph { grid-row: 1; align-self: center; width: 26px; height: 26px; }
.kn-cell.kn-now .kn-glyph { color: var(--sev-critical); } .kn-cell.kn-look .kn-glyph { color: var(--sev-medium); } .kn-cell.kn-unknown .kn-glyph { color: var(--ink-3); } .kn-cell.kn-fine .kn-glyph { color: var(--good); }
.kn-num { grid-row: 1; font: 800 clamp(34px, 3.4vw, 60px)/1 var(--font-display); font-stretch: 112%; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kn-lab { grid-column: 1 / -1; font-weight: 700; margin-top: 8px; }
.kn-hint { grid-column: 1 / -1; color: var(--ink-3); font-size: 13px; line-height: 1.4; }
.kn-cell.is-zero .kn-num, .kn-cell.is-zero .kn-lab { color: var(--ink-3); }
.kn-cell.is-zero .kn-glyph { opacity: .45; }
.kn-bar { display: flex; height: 6px; gap: 2px; border-radius: 3px; overflow: hidden; margin-top: -10px; }
.kn-bar i { display: block; min-width: 6px; }
.kn-bar .kn-now { background: var(--sev-critical); } .kn-bar .kn-look { background: var(--sev-medium); } .kn-bar .kn-unknown { background: var(--line-2); } .kn-bar .kn-fine { background: var(--good); }
.kn-list { border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.kn-row + .kn-row { border-top: 1px solid var(--line); }
.kn-row summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 22px minmax(90px, max-content) minmax(0, 1fr) auto 18px; gap: 14px; align-items: center; padding: 14px clamp(14px, 1.6vw, 22px); color: var(--ink); transition: background var(--t-fast) var(--ease); }
.kn-row summary::-webkit-details-marker { display: none; }
.kn-row summary:hover { background: var(--raised); }
.kn-row summary:focus-visible { outline: 2px solid var(--mark); outline-offset: -2px; }
.kn-tn { font: 600 13.5px/1.3 var(--font-mono); overflow-wrap: anywhere; }
.kn-first { color: var(--ink-2); font-size: 14.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kn-lv { font: 600 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.kn-row.kn-now .kn-lv { color: var(--sev-critical); } .kn-row.kn-look .kn-lv { color: var(--sev-medium); } .kn-row.kn-unknown .kn-lv { color: var(--ink-3); } .kn-row.kn-fine .kn-lv { color: var(--good); }
.kn-row { color: inherit; }
.kn-row summary .kn-glyph.kn-now { color: var(--sev-critical); }
.kn-chev { width: 18px; height: 18px; color: var(--ink-3); transition: transform var(--t-fast) var(--ease); }
details[open] > summary .kn-chev { transform: rotate(90deg); }
.kn-row[open] summary { background: var(--raised); }
.kn-row[open] .kn-first { white-space: normal; }
.kn-body { display: grid; gap: 14px; padding: 4px clamp(14px, 1.6vw, 22px) 20px calc(clamp(14px, 1.6vw, 22px) + 36px); background: var(--raised); }
.kn-lines { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink); line-height: 1.5; }
.kn-lines li::marker { color: var(--ink-3); }
.kn-owner { margin: 0; font: 500 12px/1.5 var(--font-mono); color: var(--ink-3); overflow-wrap: anywhere; }
.kn-fix { display: grid; gap: 8px; padding: 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.kn-fixh { margin: 0; font: 500 11.5px/1.35 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--mark); }
.kn-code pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.kn-fixn { margin: 0; color: var(--ink-3); font-size: 13px; }
.kn-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(14px, 2vw, 24px); align-items: start; }
.kn-sec { border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--surface); padding: 0; }
.kn-setup summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) 18px; gap: 12px; align-items: baseline; padding: 16px 18px; }
.kn-setup summary::-webkit-details-marker { display: none; }
.kn-setup summary:focus-visible { outline: 2px solid var(--mark); outline-offset: -2px; border-radius: var(--r-panel); }
.kn-sh { margin: 0; font: 700 16px/1.2 var(--font-body); color: var(--ink); }
.kn-sm { color: var(--ink-2); font-size: 14px; }
.kn-sbody { display: grid; gap: 10px; padding: 0 18px 18px; }
.kn-small { margin: 0; color: var(--ink-3); font-size: 13px; line-height: 1.5; }
.kn-failed { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; max-height: 420px; overflow: auto; }
.kn-failed li { display: grid; gap: 4px; padding: 10px 12px; border-radius: 9px; background: var(--sunk); border: 1px solid var(--line); min-width: 0; }
.kn-fl { margin: 0; font: 500 12px/1.4 var(--font-mono); color: var(--ink-3); overflow-wrap: anywhere; }
.kn-file { color: var(--ink-2); }
.kn-fw { margin: 0; font: 500 12.5px/1.45 var(--font-mono); color: var(--ink); overflow-wrap: anywhere; }
.kn-fw span { font-family: var(--font-body); color: var(--ink-2); font-size: 13.5px; }
.kn-raw { margin: 2px 0 0; padding: 6px 10px; border-left: 0; border-radius: 6px; background: var(--bg-2); font: 500 12px/1.45 var(--font-mono); color: var(--ink-3); overflow-wrap: anywhere; }
.kn-not { padding: 16px 18px 18px; display: grid; gap: 10px; }
.kn-notl { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.kn-notl li::marker { color: var(--ink-3); }
.kn-honest { margin: 0; color: var(--ink-3); font-size: 13.5px; max-width: 80ch; line-height: 1.5; }
.kn-honest a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--mark); text-underline-offset: 3px; white-space: nowrap; }

@media (max-width: 1100px) {
  .kn-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kn-cell:nth-child(3) { border-left: 0; }
  .kn-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .kn-pair { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .kn-in .kn-sheet { grid-template-columns: minmax(0, 1fr); }
  .kn-drop { border-radius: var(--r-panel) var(--r-panel) 0 0; }
  .kn-or { padding: 0 22px; }
  .kn-or::before { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent); }
  .kn-or span { padding: 2px 10px; }
  .kn-under { grid-template-columns: minmax(0, 1fr); }
  .kn-sheet { box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 24px 48px -28px rgba(0, 0, 0, .85); }
}
@media (max-width: 640px) {
  .kn-how { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .kn-how::before { left: 14px; right: auto; top: 14px; bottom: 14px; width: 1px; height: auto; }
  .kn-how li { grid-template-columns: 28px minmax(0, 1fr); align-items: start; padding-right: 0; }
  .kn-row summary { grid-template-columns: 22px minmax(0, 1fr) 18px; row-gap: 4px; }
  .kn-row summary .kn-first { grid-column: 2 / 3; grid-row: 2; }
  .kn-row summary .kn-lv { grid-column: 2 / 3; grid-row: 3; }
  .kn-row summary .kn-chev { grid-column: 3; grid-row: 1; }
  .kn-body { padding-left: clamp(14px, 1.6vw, 22px); }
  .kn-repo .field { flex-wrap: wrap; }
  .kn-repo .field input { flex-basis: calc(100% - 40px); }
  .kn-repo .field .btn { flex: 1 1 100%; margin-top: 6px; }
  .kn-picks .btn { flex: 1 1 auto; }
  .kn-rtop { flex-wrap: wrap; }
  .kn-steps li { grid-template-columns: 22px minmax(0, 1fr); }
  .kn-sx { grid-column: 2; text-align: left; }
  .kn-acts { width: 100%; } .kn-acts .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .view:not([hidden]) .kn-ring, .view:not([hidden]) .kn-steps li.is-now .kn-sdot, .kn-live li { animation: none; }
  .kn-ring { opacity: 0; }
  .kn-mbar i, .kn-chev { transition: none; }
}

/* ---------- Tool check (/tool): what a crypto tool's own pages say ---------- */
.tl { display: grid; gap: clamp(20px, 2.6vw, 36px); padding-bottom: 40px; }
.tl-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 56px); align-items: end; }
.tl-hero .h1 { font-size: clamp(34px, 3.9vw, 84px); text-wrap: balance; }
.tl-hero .lede { max-width: 50ch; }
.tl-formbox { border-radius: var(--r-panel); border: 1px solid var(--line-2); padding: clamp(18px, 2.2vw, 30px);
  background: radial-gradient(80% 70% at 100% 0%, rgba(242, 226, 5, .09), transparent 70%), linear-gradient(180deg, var(--raised), var(--surface)); box-shadow: var(--sh-1); }
.tl-fl { font: 500 11.5px/1.35 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.tl-form .field { margin-top: 10px; }
.tl-form .field .prompt svg { width: 18px; height: 18px; }
.tl-form .field .btn { min-height: 44px; padding: 0 22px; }
.tl-form .field input[aria-invalid="true"] { color: var(--ink); }
.tl-form .field:has(input[aria-invalid="true"]) { border-color: var(--warn); }
.tl-ferr { margin: 10px 2px 0; color: var(--warn); font-size: 14px; line-height: 1.4; }
.tl-ferr[hidden] { display: none; }
.tl-priv { margin: 14px 0 0; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 9px; color: var(--ink-3); font-size: 13.5px; line-height: 1.45; }
.tl-priv svg { width: 18px; height: 18px; color: var(--ink-3); margin-top: 1px; }
.tl-stage { display: grid; gap: clamp(14px, 1.8vw, 22px); min-width: 0; }
.tl-sub { margin: 0; font: 500 11.5px/1.35 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }

/* the strip: four answers, the summary of the whole check */
.tl-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-radius: var(--r-panel); border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--raised), var(--surface)); box-shadow: var(--sh-1); }
.tl-cell { --tc: var(--mark); position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; column-gap: 10px; row-gap: 10px;
  padding: clamp(14px, 1.7vw, 24px); min-width: 0; text-align: left; color: var(--ink); background: transparent; border: 0; font: inherit; }
.tl-cell + .tl-cell { border-left: 1px solid var(--line); }
.tl-cell:first-child { border-radius: var(--r-panel) 0 0 var(--r-panel); } .tl-cell:last-child { border-radius: 0 var(--r-panel) var(--r-panel) 0; }
.tl-ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--sunk); border: 1px solid var(--line); color: var(--tc); }
.tl-ic svg { width: 17px; height: 17px; }
.tl-cl { align-self: center; font: 500 11.5px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.tl-cb { grid-column: 1 / -1; font: 700 clamp(17px, 1.35vw, 24px)/1.18 var(--font-display); font-stretch: 108%; letter-spacing: -.015em; text-wrap: balance; overflow-wrap: anywhere; }
.tl-strip.is-idle .tl-cb { font: 500 15px/1.45 var(--font-body); color: var(--ink-2); letter-spacing: 0; }
.tl-cn { grid-column: 1 / -1; font: 500 12px/1.3 var(--font-mono); color: var(--ink-3); }
.tl-cell.t-watch { --tc: var(--warn); }
.tl-cell.t-watch .tl-ic { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.tl-cell.t-quiet { --tc: var(--ink-3); }
.tl-cell.t-quiet .tl-cb { color: var(--ink-3); }
.tl-cell[role=tab] { cursor: pointer; transition: background var(--t-fast) var(--ease); }
.tl-cell[role=tab]:hover { background: color-mix(in srgb, var(--float) 55%, transparent); }
.tl-cell[role=tab]:focus-visible { outline: 2px solid var(--mark); outline-offset: -3px; }
.tl-cell[aria-selected="true"] { background: var(--float); box-shadow: inset 0 0 0 1px var(--line-2); }
.tl-cell[aria-selected="true"] .tl-ic { background: var(--accent-soft); border-color: var(--mark); color: var(--mark); }
.tl-cell.t-watch[aria-selected="true"] .tl-ic { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.tl-strip.is-result .tl-cell, .tl-strip.is-reading .tl-cell { animation: in-up 380ms var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
/* while reading, a light passes over each card in turn */
.tl-strip.is-reading .tl-cell { overflow: hidden; }
.tl-strip.is-reading .tl-cell::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(242, 226, 5, .09) 50%, transparent 70%);
  transform: translateX(-100%); animation: tl-sweep 2.4s var(--ease) infinite; animation-delay: calc(var(--i) * 300ms); }
@keyframes tl-sweep { 60%, 100% { transform: translateX(100%); } }
.tl-asks { margin-bottom: -6px; }

/* result */
.tl-rhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 24px; flex-wrap: wrap; }
.tl-rhead > div:first-child { min-width: 0; }
.tl-rhead .kicker { margin-bottom: 8px; }
.tl-host { margin: 0; font: 800 clamp(26px, 2.6vw, 48px)/1.04 var(--font-display); font-stretch: 112%; letter-spacing: -.03em; overflow-wrap: anywhere; }
.tl-host:focus { outline: none; }
.tl-meta { margin: 8px 0 0; font: 500 12.5px/1.5 var(--font-mono); color: var(--ink-3); }
.tl-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.tl-acts .btn svg { width: 15px; height: 15px; margin-right: 6px; }
.tl-note, .tl-err { margin: 0; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 12px 16px; border-radius: 10px;
  background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line)); color: var(--ink); font-size: 14.5px; line-height: 1.5; }
.tl-note svg, .tl-err > svg { width: 20px; height: 20px; color: var(--warn); margin-top: 1px; }
.tl-note.is-quiet { background: var(--sunk); border-color: var(--line); }
.tl-note.is-quiet svg { color: var(--ink-3); }
.tl-err p { margin: 0 0 10px; }
.tl-body { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(250px, 1fr); gap: clamp(14px, 1.8vw, 22px); align-items: start; }
.tl-sheet { min-width: 0; border-radius: var(--r-panel); border: 1px solid var(--line-2); background: var(--float); box-shadow: var(--sh-1); }
.tl-sh { display: grid; gap: 16px; padding: clamp(18px, 2.2vw, 30px); }
.tl-shh { display: flex; align-items: center; gap: 10px; }
.tl-sh.t-watch { --tc: var(--warn); } .tl-sh.t-said { --tc: var(--mark); } .tl-sh.t-quiet { --tc: var(--ink-3); }
.tl-ask { margin: 0; font: 500 12px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.tl-line { margin: 0; font: 700 clamp(20px, 1.8vw, 30px)/1.22 var(--font-display); font-stretch: 106%; letter-spacing: -.02em; text-wrap: pretty; max-width: 38ch; }
.tl-line:focus { outline: none; }
.tl-vals { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-val { display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 7px; background: var(--sunk); border: 1px solid var(--line-2); font: 600 13px/1.25 var(--font-mono); color: var(--ink); overflow-wrap: anywhere; }
.tl-qs, .tl-facts { display: grid; gap: 10px; }
.tl-q { margin: 0; display: grid; gap: 8px; padding: 14px 16px; border-radius: 10px; background: var(--sunk); border: 1px solid var(--line); min-width: 0; }
.tl-q blockquote { margin: 0; position: relative; padding-left: 22px; color: var(--ink); font-size: 15.5px; line-height: 1.5; overflow-wrap: anywhere; }
.tl-q blockquote::before { content: "\201C"; position: absolute; left: 0; top: -6px; font: 800 30px/1 var(--font-display); color: var(--mark); }
.tl-q figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-left: 22px; font: 500 12px/1.4 var(--font-mono); color: var(--ink-3); }
.tl-kind { padding: 3px 7px; border-radius: 5px; background: var(--raised); border: 1px solid var(--line); color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.tl-q a { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; overflow-wrap: anywhere; min-width: 0; }
.tl-q a:hover { color: var(--ink); text-decoration-color: var(--mark); }
.tl-q a svg { width: 13px; height: 13px; flex: none; }
.tl-side { justify-self: start; padding: 3px 8px; border-radius: 5px; background: var(--warn-soft); color: var(--ink); font: 600 11.5px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.tl-facts ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.tl-facts li { display: grid; gap: 8px; }
.tl-facts li > b { font-weight: 700; font-size: 15px; }
.tl-facts .tl-q { padding: 10px 14px; }
.tl-facts .tl-q blockquote { font-size: 14px; color: var(--ink-2); }

/* the pages it read: each one a stop on a line */
.tl-pages { display: grid; gap: 12px; min-width: 0; padding: clamp(16px, 1.8vw, 24px); border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--surface); }
.tl-pages ol { margin: 0; padding: 0; list-style: none; display: grid; }
.tl-pg { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: center; padding: 9px 0; animation: in-up 320ms var(--ease) both; animation-delay: calc(120ms + var(--i) * 50ms); }
.tl-pg + .tl-pg::before { content: ""; position: absolute; left: 6px; top: -9px; height: 18px; width: 2px; background: var(--line); }
.tl-pd { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--sunk); }
.tl-pg.is-read .tl-pd { border-color: var(--mark); background: var(--mark); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl-pk { font-weight: 700; font-size: 14.5px; }
.tl-pk small { margin-left: 4px; font: 500 11px/1 var(--font-mono); color: var(--ink-3); }
.tl-ps { font: 500 12px/1.3 var(--font-mono); color: var(--ink-3); text-align: right; }
.tl-pg.is-skip .tl-pk { color: var(--ink-2); }
.tl-pu { grid-column: 2 / -1; font: 500 12px/1.4 var(--font-mono); color: var(--ink-3); text-decoration: none; overflow-wrap: anywhere; }
.tl-pu:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--mark); }
.tl-pages.is-reading .tl-pd { animation: tl-ping 1.8s var(--ease) infinite; animation-delay: calc(var(--i) * 180ms); }
@keyframes tl-ping { 0%, 100% { border-color: var(--line-2); background: var(--sunk); box-shadow: none; } 30% { border-color: var(--mark); background: var(--accent-soft); box-shadow: 0 0 0 5px var(--accent-soft); } }
.tl-stage > .tl-pages.is-reading { max-width: 560px; }
.tl-limit { margin: -4px 0 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; max-width: 90ch; }

@media (max-width: 1100px) {
  .tl-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-cell:nth-child(3) { border-left: 0; }
  .tl-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tl-cell:first-child { border-radius: var(--r-panel) 0 0 0; } .tl-cell:nth-child(2) { border-radius: 0 var(--r-panel) 0 0; }
  .tl-cell:nth-child(3) { border-radius: 0 0 0 var(--r-panel); } .tl-cell:last-child { border-radius: 0 0 var(--r-panel) 0; }
}
@media (max-width: 900px) {
  .tl-top, .tl-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .tl-cell { grid-template-columns: auto minmax(0, 1fr); padding: 14px; row-gap: 8px; }
  .tl-cb { font-size: 16px; }
  .tl-strip.is-idle .tl-cb { font-size: 13.5px; }
  .tl-form .field { flex-wrap: wrap; }
  .tl-form .field input { flex-basis: calc(100% - 40px); min-width: 0; }
  .tl-form .field .btn { flex: 1 1 100%; margin-top: 6px; }
  .tl-acts { width: 100%; } .tl-acts .btn { flex: 1 1 auto; justify-content: center; }
  .tl-q blockquote, .tl-q figcaption { padding-left: 18px; }
  .tl-pg { grid-template-columns: 14px minmax(0, 1fr); }
  .tl-ps { grid-column: 2; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-strip.is-result .tl-cell, .tl-strip.is-reading .tl-cell, .tl-pg { animation: none; }
  .tl-strip.is-reading .tl-cell::before, .tl-pages.is-reading .tl-pd { animation: none; }
  .tl-strip.is-reading .tl-cell::before { display: none; }
  .tl-cell[role=tab] { transition: none; }
}
