/* ==========================================================================
   Outrings, design A ("Console").

   One stylesheet for every public page. Dark first, with a designed light mode.
   The rules that hold it together:

   1. Two faces. Geist for what we wrote, Geist Mono for what a machine observed
      (values, URLs, counts, check ids, labels). Nothing is mono for decoration.
   2. One surface. Every box on the site is the same box: surface fill, one
      hairline, 12px corners, no shadow. Interactive boxes get a stronger line.
   3. Colour is state. Ink for the interface; blue for pass and measured values;
      amber for warn; red for fail; a hollow grey ring for undetermined.
   4. One rhythm. Spacing is on a 4px grid; sections are 96px apart on desktop.
   ========================================================================== */

@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geist-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #08090b;
  --surface: #0e0f12;
  --raised: #15161a;
  --code: #0b0c0e;
  --hover: rgba(255, 255, 255, .035);
  --line: rgba(255, 255, 255, .075);
  --line2: rgba(255, 255, 255, .13);
  --fg: #ededef;
  --fg2: #b3b7be;
  --muted: #8d929b;
  --faint: #767b84;
  --blue: #5b95ff;
  --blue-soft: rgba(91, 149, 255, .12);
  --red: #ff6363;
  --red-soft: rgba(255, 99, 99, .1);
  --amber: #f2b13c;
  --amber-soft: rgba(242, 177, 60, .1);
  --grey: #6b7079;
  --track: rgba(255, 255, 255, .07);
  --btn-bg: #ededef;
  --btn-fg: #08090b;
  --hl: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16) 30%, rgba(255, 255, 255, .16) 70%, transparent);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --r: 12px;
  --r-sm: 8px;
  --nav: 60px;

  /* Names the page scripts and inline styles already use. */
  --fg-2: var(--fg2); --fg-3: var(--muted); --fg-4: var(--muted);
  --pass: var(--blue); --data: var(--blue); --warn: var(--amber); --fail: var(--red);
  --info: var(--muted); --na: var(--grey); --accent: var(--blue); --accent-ink: var(--fg);
  --fill: var(--raised); --fill-strong: var(--raised); --card: var(--surface);
  --line-strong: var(--line2); --ring-deep: var(--raised); --r-xl: 16px; --r-lg: 12px;
  --sh-1: none; --sh-2: none; --sh-3: var(--shadow);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #fafafa; --surface: #ffffff; --raised: #f3f3f5; --code: #f7f7f8;
    --hover: rgba(0, 0, 0, .03); --line: rgba(0, 0, 0, .08); --line2: rgba(0, 0, 0, .15);
    --fg: #0b0c0f; --fg2: #3b3f47; --muted: #646872; --faint: #70747c;
    --blue: #2563eb; --blue-soft: rgba(37, 99, 235, .09);
    --red: #d92d36; --red-soft: rgba(217, 45, 54, .07);
    --amber: #9a5c00; --amber-soft: rgba(168, 100, 0, .08);
    --grey: #8b8f97; --track: rgba(0, 0, 0, .07);
    --btn-bg: #0b0c0f; --btn-fg: #ffffff;
    --hl: linear-gradient(90deg, transparent, rgba(0, 0, 0, .06) 30%, rgba(0, 0, 0, .06) 70%, transparent);
    --shadow: 0 24px 60px -24px rgba(16, 24, 40, .22);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fafafa; --surface: #ffffff; --raised: #f3f3f5; --code: #f7f7f8;
  --hover: rgba(0, 0, 0, .03); --line: rgba(0, 0, 0, .08); --line2: rgba(0, 0, 0, .15);
  --fg: #0b0c0f; --fg2: #3b3f47; --muted: #646872; --faint: #70747c;
  --blue: #2563eb; --blue-soft: rgba(37, 99, 235, .09);
  --red: #d92d36; --red-soft: rgba(217, 45, 54, .07);
  --amber: #9a5c00; --amber-soft: rgba(168, 100, 0, .08);
  --grey: #8b8f97; --track: rgba(0, 0, 0, .07);
  --btn-bg: #0b0c0f; --btn-fg: #ffffff;
  --hl: linear-gradient(90deg, transparent, rgba(0, 0, 0, .06) 30%, rgba(0, 0, 0, .06) 70%, transparent);
  --shadow: 0 24px 60px -24px rgba(16, 24, 40, .22);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; max-width: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 15px/1.6 var(--sans); letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; max-width: 100%; overflow-x: clip;
  font-feature-settings: "ss01" 0;
}
h1, h2, h3, h4 { margin: 0; color: var(--fg); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; }
a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line2);
    text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color .15s, color .15s; }
a:hover { text-decoration-color: currentColor; }
strong, b { font-weight: 600; color: var(--fg); }
img, svg, video, canvas, iframe, table { max-width: 100%; }
::selection { background: var(--blue-soft); color: var(--fg); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
code, kbd, samp, pre { font-family: var(--mono); }
code { font-size: .86em; padding: .1em .38em; border-radius: 5px; background: var(--raised);
       border: 1px solid var(--line); color: var(--fg); overflow-wrap: anywhere; }
pre code, .g-code code, .code-box code { background: none; border: 0; padding: 0; font-size: inherit; }
button:where(:not([class*="mn-"])) { font: inherit; color: inherit; }
input:where(:not([class*="mn-"])), select:where(:not([class*="mn-"])), textarea:where(:not([class*="mn-"])) { font: inherit; color: var(--fg); }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.hidden, [hidden] { display: none !important; }
.sr, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
      clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--mono); font-size: .92em; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6;
     stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.i-sm { width: 15px; height: 15px; }
.i-lg { width: 20px; height: 20px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: 8px;
             background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; font-weight: 500; }
.skip-link:focus { top: 10px; }

/* The label: mono, small, upper. Used for every "this is a field name" in the site. */
.eyebrow, .o-label, .field-label, .control > label, .impact-card h3, .impact-card h4, th,
.trace-head, .g-answer-label, .ts-r-label, .mr-c-label, .foot-title, .o-toc h2, .nav-h,
.flow figcaption, .sort-shell, .checks-block > summary, .table-stack td::before, .lbl {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; line-height: 1.4;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}

/* ---------- buttons ---------- */
.btn, .btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line2);
  background: transparent; color: var(--fg); font: 500 14px/1 var(--sans); letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .15s, border-color .15s, opacity .15s, transform .1s;
}
.btn:hover, .btn-secondary:hover, .btn-ghost:hover { background: var(--hover); border-color: color-mix(in srgb, var(--fg) 28%, transparent); text-decoration: none; }
.btn-primary, .btn-p { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.btn-primary:hover { opacity: .88; text-decoration: none; }
.btn-primary .i, .btn-p .i { color: var(--btn-fg); }
.btn-ghost { border-color: transparent; color: var(--fg2); }
.btn-ghost:hover { color: var(--fg); background: var(--hover); border-color: transparent; }
.btn-sm, .btn.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 7px; }
.btn-icon { width: 34px; padding: 0; }
button:active:not(:disabled) { transform: translateY(.5px); }
button:disabled { opacity: .5; cursor: default; }

.pillbtn, .opt {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px;
  border-radius: 7px; border: 1px solid var(--line); background: transparent; color: var(--muted);
  font: 500 13px/1 var(--sans); cursor: pointer; transition: color .15s, background .15s, border-color .15s;
}
.pillbtn:hover, .opt:hover { color: var(--fg); border-color: var(--line2); }
.pillbtn[aria-pressed="true"], .opt[aria-pressed="true"] { color: var(--fg); background: var(--raised); border-color: var(--line2); }
.pillbtn-danger { color: var(--red); }
.opt-disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

select:where(:not([class*="mn-"])) {
  height: 32px; padding: 0 30px 0 12px; border-radius: 7px; border: 1px solid var(--line);
  background-color: transparent; color: var(--fg2); font: 500 13px/1 var(--sans); cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d929b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 14px;
}
select:where(:not([class*="mn-"])):hover { border-color: var(--line2); }
select option { background: var(--surface); color: var(--fg); }

/* Text fields. */
.input-shell { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; }
.input-shell > .i { position: absolute; left: 13px; color: var(--muted); pointer-events: none; }
.input-shell input, .control input[type="text"], .control select, .cform input, .cform textarea, .pin-input,
.err-form input {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line2);
  background: var(--surface); color: var(--fg); font: 400 14px/1 var(--sans); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input-shell input { padding-left: 38px; font-family: var(--mono); font-size: 13.5px; }
.control select { padding-right: 30px; height: 40px; font-size: 14px; color: var(--fg); }
input:focus, textarea:focus, select:focus { border-color: color-mix(in srgb, var(--fg) 40%, transparent);
  box-shadow: 0 0 0 3px var(--blue-soft); outline: none; }
::placeholder { color: var(--faint); opacity: 1; }

/* ==========================================================================
   Chrome
   ========================================================================== */
.o-header { position: sticky; top: 0; z-index: 50; height: var(--nav);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line); }
.o-header-in { max-width: 1240px; height: 100%; margin: 0 auto; display: flex; align-items: center; gap: 28px;
  padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.o-logo { display: inline-flex; align-items: center; gap: 9px; color: var(--fg); text-decoration: none;
  font-weight: 600; font-size: 15.5px; letter-spacing: -.025em; flex: none; }
.o-logo .mark { width: 22px; height: 22px; color: var(--fg); display: grid; place-items: center; }
.o-logo .or-dot { fill: var(--blue); }
.o-topnav { display: flex; gap: 2px; }
.o-topnav a { padding: 6px 10px; border-radius: 6px; color: var(--muted); font-size: 14px; text-decoration: none; transition: color .15s; }
.o-topnav a:hover, .o-topnav a[aria-current] { color: var(--fg); }
.o-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.o-quick { margin: 0; }
.o-quick-in { position: relative; display: flex; align-items: center; }
.o-quick-in .i { position: absolute; left: 10px; width: 14px; height: 14px; color: var(--muted); pointer-events: none; }
.o-quick input { width: 220px; height: 32px; padding: 0 34px 0 31px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--surface); font: 400 13px/1 var(--mono); color: var(--fg); outline: none; }
.o-quick input:focus { border-color: var(--line2); box-shadow: 0 0 0 3px var(--blue-soft); }
.o-quick kbd { position: absolute; right: 7px; font: 500 10.5px/1 var(--mono); color: var(--muted);
  border: 1px solid var(--line); border-radius: 4px; padding: 3px 5px; pointer-events: none; }
.o-header .o-menu { display: none; }
.theme-toggle { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 7px; border: 1px solid transparent;
  background: transparent; color: var(--muted); cursor: pointer; position: relative; }
.theme-toggle:hover { color: var(--fg); background: var(--hover); }
.theme-toggle .i { width: 16px; height: 16px; position: absolute; inset: 0; margin: auto; }
.theme-toggle .i-auto, .theme-toggle .i-moon { display: none; }
.theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme]) .theme-toggle .i-moon { display: block; }
}
.o-getapp { white-space: nowrap; }

/* The page grid: site index, page, on-this-page. */
.o-docs { max-width: 1240px; margin: 0 auto; display: grid; gap: 56px;
  grid-template-columns: 210px minmax(0, 1fr) 190px;
  padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.o-docs.o-no-toc { grid-template-columns: 210px minmax(0, 1fr); }
.o-docs.o-no-side { grid-template-columns: minmax(0, 1fr) 190px; }
.o-docs.o-no-side.o-no-toc { grid-template-columns: minmax(0, 1fr); }
.o-main { min-width: 0; padding: 40px 0 0; }
.o-main [id] { scroll-margin-top: calc(var(--nav) + 24px); }
.o-side { position: sticky; top: var(--nav); align-self: start; max-height: calc(100vh - var(--nav));
  overflow-y: auto; overscroll-behavior: contain; padding: 36px 8px 48px 0; scrollbar-width: none; }
.o-side::-webkit-scrollbar { display: none; }
.o-nav { display: flex; flex-direction: column; gap: 22px; }
.nav-g { display: flex; flex-direction: column; gap: 1px; }
.nav-h { margin: 0 0 6px; font-size: 11px; color: var(--faint); }
.nav-a { display: block; padding: 5px 10px; margin-left: -10px; border-radius: 6px; color: var(--muted);
  font-size: 13.5px; line-height: 1.4; text-decoration: none; transition: color .12s, background .12s; }
.nav-a:hover { color: var(--fg); }
.nav-a[aria-current="page"] { color: var(--fg); background: var(--raised); font-weight: 500; }

.o-toc { position: sticky; top: var(--nav); align-self: start; max-height: calc(100vh - var(--nav)); overflow-y: auto;
  padding: 40px 0 40px; scrollbar-width: none; }
.o-toc h2 { margin: 0 0 12px; font-size: 11px; color: var(--faint); }
.o-toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px;
  border-left: 1px solid var(--line); }
.o-toc a { display: block; padding: 4px 0 4px 12px; margin-left: -1px; border-left: 1px solid transparent;
  color: var(--muted); font-size: 13px; line-height: 1.45; text-decoration: none; }
.o-toc a:hover { color: var(--fg); }
.o-toc a[aria-current] { color: var(--fg); border-left-color: var(--fg); }
.o-toc .o-h3 a { padding-left: 24px; font-size: 12.5px; }

.o-crumbs { margin: 0 0 28px; }
.o-crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font: 400 12.5px/1.4 var(--mono); color: var(--faint); }
.o-crumbs li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.o-crumbs li + li::before { content: "/"; color: var(--faint); }
.o-crumbs a { color: var(--muted); text-decoration: none; }
.o-crumbs a:hover { color: var(--fg); }
.o-crumbs [aria-current] { color: var(--fg2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.crumbs { display: none; }

.wrap { min-width: 0; }
.wrap :is(p, li, td, dd, h1, h2, h3, a) { overflow-wrap: break-word; }

/* Drawer (phones). */
.o-drawer { position: fixed; inset: 0 auto 0 0; margin: 0; width: min(320px, 86vw); height: 100dvh; max-height: none;
  max-width: none; padding: 0; border: 0; border-right: 1px solid var(--line); background: var(--bg); color: var(--fg);
  overflow: hidden; }
.o-drawer[open] { display: flex; flex-direction: column; animation: drawerIn .22s var(--ease); }
.o-drawer::backdrop { background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
@keyframes drawerIn { from { transform: translateX(-16px); opacity: 0; } }
.o-drawer-head { display: flex; align-items: center; justify-content: space-between; height: var(--nav);
  padding: 0 12px 0 max(20px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); flex: none; }
.o-drawer-body { overflow-y: auto; padding: 24px 20px 40px max(20px, env(safe-area-inset-left, 0px)); flex: 1; }
.o-drawer-body .nav-a { margin-left: -10px; font-size: 15px; padding: 7px 10px; }
.o-close { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); cursor: pointer; }
.o-close:hover { color: var(--fg); background: var(--hover); }

/* Footer. */
footer.o-foot { margin-top: 120px; padding: 48px 0 56px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
.foot-brand p { max-width: 34ch; margin-top: 14px; }
.foot-title { margin-bottom: 12px; color: var(--faint); font-size: 11px; }
.foot-grid a { display: block; padding: 3px 0; color: var(--muted); text-decoration: none; font-size: 13.5px; }
.foot-grid a:hover { color: var(--fg); }
.foot-base { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); display: flex;
  justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; font: 400 12px/1.6 var(--mono); color: var(--faint); }
.foot-base a { color: var(--muted); text-decoration: none; }
.foot-note { font-size: 12.5px; color: var(--faint); margin-top: 14px; max-width: 110ch; }
.foot-note strong { color: var(--muted); font-weight: 500; }

/* The mark. */
.orings { width: 100%; height: 100%; display: block; overflow: visible; }
.orings .or { fill: none; stroke: currentColor; stroke-linecap: round; transform-origin: 24px 24px;
  transition: transform .5s var(--ease), opacity .5s var(--ease); }
.orings .or-3 { stroke-width: 3; opacity: .35; stroke-dasharray: 88 38; }
.orings .or-2 { stroke-width: 3.2; opacity: .65; }
.orings .or-1 { stroke-width: 3.4; }
.orings .or-dot { fill: currentColor; }
.o-logo:hover .or-3 { transform: rotate(40deg); }

/* ==========================================================================
   Page furniture
   ========================================================================== */
.hero { padding: 8px 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); text-align: left; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.hero .eyebrow .i { width: 14px; height: 14px; color: var(--muted); }
.hero h1, .g-head h1, .page-h1 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.06; letter-spacing: -.038em; font-weight: 600; max-width: 20ch; }
.hero .lede, .lede { font-size: 17px; line-height: 1.6; color: var(--fg2); max-width: 64ch; margin-top: 16px; }
.hero > p:not(.eyebrow):not(.lede) { color: var(--fg2); max-width: 64ch; margin-top: 12px; }
.hero .btn-primary, .hero .btn-secondary { margin-top: 24px; }

.section-title { display: flex; align-items: center; gap: 10px; font-size: 22px; letter-spacing: -.025em;
  margin: 64px 0 16px; }
.section-title > .i { display: none; }
.section-sub { color: var(--fg2); font-size: 15px; max-width: 68ch; margin: -6px 0 22px; }
.wrap > .section-title:first-child { margin-top: 0; }

/* Prose pages. */
.doc > p, .doc > ul, .doc > ol, .doc > .lede { max-width: 70ch; }
.doc h2 { font-size: 24px; letter-spacing: -.025em; margin: 56px 0 14px; }
.doc h3 { font-size: 17px; letter-spacing: -.015em; margin: 32px 0 10px; }
.doc p, .doc li { color: var(--fg2); font-size: 15.5px; line-height: 1.7; }
.doc p + p { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 20px; margin: 12px 0 16px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--faint); }
.doc pre, pre.code, .wrap > pre {
  background: var(--code); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px;
  overflow-x: auto; font-size: 13px; line-height: 1.65; margin: 16px 0; color: var(--fg2); max-width: 100%;
}
.wrap > p { color: var(--fg2); max-width: 70ch; }
.wrap > p + p { margin-top: 14px; }

/* The one box. */
.panel-card, .impact-card, .table-card, .acc:not(details), details.acc, .collapsible, .rec, .check, .cat,
.pv, .g-card, .trace, .gsplit-item, .fl-node, .app-cta, .g-check-card, .g-sources, .progress, .summary,
.endpoint, .msg, .rec-hero, .tile-box, .box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.panel-card { padding: 24px; }
.panel-card > h3, .panel-card > h2 { font-size: 16px; letter-spacing: -.015em; margin-bottom: 8px; }
.panel-card > p { color: var(--fg2); font-size: 14.5px; }
.panel-card > p + p { margin-top: 10px; }

.impact-grid, .pv-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 24px; }
.impact-card { padding: 20px 22px; }
.impact-card h3, .impact-card h4 { margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.impact-card h3 .i, .impact-card h4 .i { width: 14px; height: 14px; }
.impact-card p, .impact-card li { color: var(--fg2); font-size: 14.5px; line-height: 1.6; }
.impact-card ul { padding-left: 18px; margin-top: 8px; }

/* Notes and alerts. */
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 0 0 24px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  color: var(--fg2); font-size: 14px; line-height: 1.6; }
.note > .i { color: var(--muted); margin-top: 2px; width: 16px; height: 16px; }
.note > div { min-width: 0; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 20px 0;
  border-radius: 10px; border: 1px solid; font-size: 14px; line-height: 1.55; color: var(--fg); }
.alert > .i { width: 16px; height: 16px; margin-top: 2px; }
.alert-fail { border-color: color-mix(in srgb, var(--red) 35%, transparent); background: var(--red-soft); }
.alert-fail > .i { color: var(--red); }
.alert-warn { border-color: color-mix(in srgb, var(--amber) 35%, transparent); background: var(--amber-soft); }
.alert-warn > .i { color: var(--amber); }
.alert-info { border-color: var(--line2); background: var(--surface); }
.alert a { color: inherit; }

/* Tables. */
.table-card { overflow: hidden; margin: 0 0 24px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 11px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-size: 11px; white-space: nowrap; background: var(--surface); position: sticky; top: 0; z-index: 1;
  cursor: default; user-select: none; }
th[data-sort], th.sortable { cursor: pointer; }
th:hover { color: var(--fg2); }
td { color: var(--fg2); }
td:first-child { color: var(--fg); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--hover); }
td.wrap-any { overflow-wrap: anywhere; max-width: 34rem; }
.url-cell { font-family: var(--mono); font-size: 12.5px; line-height: 1.5; }
.muted-dash { color: var(--faint); }
@media (max-width: 760px) {
  .table-stack .table-scroll { overflow-x: visible; }
  .table-stack table, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-stack tr { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
  .table-stack tbody tr:last-child { border-bottom: 0; }
  .table-stack td { border: 0; padding: 0; max-width: none; background: none !important; }
  .table-stack td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 10.5px; }
  .table-stack td:not([data-label])::before { content: none; }
  .table-stack td.is-empty { opacity: .6; }
}
.only-narrow { display: none; }
@media (max-width: 760px) { .only-narrow { display: inline-flex; } }
.sort-shell { align-items: center; gap: 8px; }
.sort-shell select { text-transform: none; letter-spacing: 0; }

/* Accordions: a box of rows. */
.acc:not(details) { overflow: hidden; }
.acc:not(details) > details { border-bottom: 1px solid var(--line); }
.acc:not(details) > details:last-child { border-bottom: 0; }
.acc summary, details.acc > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; font-size: 15px; font-weight: 500; color: var(--fg); letter-spacing: -.01em;
  transition: background .15s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { background: var(--hover); }
.acc summary .i { color: var(--muted); transition: transform .2s var(--ease); }
.acc details[open] > summary .i, details.acc[open] > summary .i { transform: rotate(180deg); }
.acc-body { padding: 0 20px 18px; color: var(--fg2); font-size: 14.5px; line-height: 1.7; max-width: 76ch; }
.acc-body > * + * { margin-top: 10px; }
.acc-body ul, .acc-body ol { padding-left: 18px; }
details.acc { margin-bottom: 10px; overflow: hidden; }
html.js .acc details[open] .acc-body { animation: accIn .22s var(--ease); }
@keyframes accIn { from { opacity: 0; transform: translateY(-4px); } }

.collapsible { margin: 12px 0; }
.collapsible > summary { list-style: none; cursor: pointer; padding: 13px 16px; display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--fg2); }
.collapsible > summary::-webkit-details-marker { display: none; }
.collapsible > summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; flex: none;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s var(--ease); }
.collapsible[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.collapsible > summary:hover { color: var(--fg); }
.collapsible-body { padding: 0 16px 16px; color: var(--fg2); font-size: 14px; line-height: 1.65; }
.checks-block { border: 0; background: none; margin-top: 4px; }
.checks-block > summary { padding: 10px 0; }

/* Local contents (FAQ, methodology). */
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 40px; }
.toc a { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 7px;
  border: 1px solid var(--line); color: var(--muted); font-size: 13px; text-decoration: none; }
.toc a:hover { color: var(--fg); border-color: var(--line2); }

/* Pills. */
.pill, .chiplet, .effort {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px; border-radius: 6px;
  border: 1px solid var(--line); color: var(--muted); font: 400 11.5px/1 var(--mono); white-space: nowrap;
}
.pill.ok { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 35%, transparent); }
.pill.bad { color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.pill.mid { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 35%, transparent); }
.effort .i { width: 12px; height: 12px; }

/* Code tabs. */
.codetabs { margin: 16px 0 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--code); overflow: hidden; }
.ct-bar { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; background: var(--surface); }
.ct-bar::-webkit-scrollbar { display: none; }
html:not(.js) .ct-bar { display: none; }
.ct-bar button { flex: none; height: 40px; padding: 0 10px; border: 0; background: none; cursor: pointer;
  color: var(--muted); font: 500 12.5px/1 var(--mono); border-bottom: 1px solid transparent; margin-bottom: -1px; }
.ct-bar button:hover { color: var(--fg); }
.ct-bar button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--fg); }
.ct-pane > pre, .codetabs pre { margin: 0; border: 0; border-radius: 0; background: transparent; padding: 16px 18px;
  font-size: 13px; line-height: 1.65; overflow-x: auto; color: var(--fg2); }

/* API endpoints. */
.endpoint { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; padding: 12px 16px; margin: 8px 0;
  font: 400 13px/1.5 var(--mono); }
.method { font-weight: 600; font-size: 11.5px; color: var(--blue); letter-spacing: .04em; }
.endpoint .desc { margin-left: auto; color: var(--muted); font-family: var(--sans); font-size: 13.5px; }

/* Forms. */
.err-form { display: flex; gap: 8px; flex-wrap: wrap; max-width: 560px; }
.err-form .input-shell { flex: 1 1 260px; }
.cform { display: flex; flex-direction: column; gap: 16px; }
.cform .field, .control { margin: 0 0 16px; }
.cform label, .control > label { display: block; margin-bottom: 8px; }
.cform label { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--fg2); text-transform: none; letter-spacing: 0; }
.cform textarea { height: auto; min-height: 140px; padding: 10px 12px; resize: vertical; line-height: 1.55; }
.field-hint, .control-note { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; font-weight: 400; text-transform: none; letter-spacing: 0; font-family: var(--sans); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.opts-row { display: flex; flex-wrap: wrap; gap: 6px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }

/* Empty and loading states. */
.empty { padding: 56px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.empty .i { width: 28px; height: 28px; margin-bottom: 12px; color: var(--faint); stroke-width: 1.3; }
.spinner { position: relative; display: inline-block; width: 16px; height: 16px; vertical-align: middle; flex: none; }
.spinner::before, .spinner::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid currentColor; opacity: 0; animation: oring 1.6s var(--ease) infinite; }
.spinner::after { animation-delay: .8s; }
.oload { display: inline-flex; align-items: center; gap: 12px; }
.oload-rings { position: relative; width: 24px; height: 24px; display: block; }
.oload-rings i { position: absolute; inset: 0; border: 1.5px solid var(--blue); border-radius: 50%; opacity: 0;
  animation: oring 1.8s var(--ease) infinite; }
.oload-rings i:nth-child(2) { animation-delay: .6s; }
.oload-rings i:nth-child(3) { animation-delay: 1.2s; }
.oload-label { font: 400 13px/1 var(--mono); color: var(--muted); }
@keyframes oring { 0% { transform: scale(.2); opacity: 0; } 20% { opacity: 1; } 100% { transform: scale(1); opacity: 0; } }

.reveal { opacity: 1; }
html.js .reveal { opacity: 0; transform: translateY(10px); }
html.js .reveal.in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }

/* Tiles: readings in a hairline strip. */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line);
  border-radius: var(--r); background: var(--surface); margin: 0 0 24px; overflow: hidden; }
.tile { padding: 18px 20px; border-left: 1px solid var(--line); min-width: 0; }
.tile:first-child { border-left: 0; }
.tile .n { font: 500 28px/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--fg); }
.tile .l { margin-top: 8px; font-size: 13px; color: var(--muted); }
.tile .d { margin-top: 4px; font-size: 12.5px; color: var(--faint); }

/* ==========================================================================
   App prompts
   ========================================================================== */
html.in-app .app-promo { display: none !important; }
.appstore-btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 12px; border-radius: 10px;
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; line-height: 1.05; flex: none; transition: opacity .15s; }
.appstore-btn:hover { opacity: .88; text-decoration: none; }
.appstore-btn .i, .appstore-btn svg { color: var(--btn-fg); }
.appstore-btn span { display: flex; flex-direction: column; text-align: left; }
.appstore-btn small { font-size: 10px; opacity: .75; font-weight: 500; }
.appstore-btn b { font-size: 15.5px; font-weight: 600; color: var(--btn-fg); letter-spacing: -.01em; }
.app-get { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.app-get p { color: var(--muted); font-size: 14px; }
.app-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 22px; margin: 24px 0; }
.app-cta h3 { font-size: 15.5px; letter-spacing: -.015em; margin-bottom: 4px; }
.app-cta p { color: var(--fg2); font-size: 14px; max-width: 70ch; }
.app-cta ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 20px;
  font: 400 12.5px/1.5 var(--mono); color: var(--muted); }
.app-cta li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); margin-right: 8px; vertical-align: 1px; }
.app-pop { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 60; width: 300px; padding: 16px; border-radius: 14px; border: 1px solid var(--line2);
  background: var(--raised); box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.app-pop.in { opacity: 1; transform: none; }
.app-pop p { margin: 0 24px 12px 0; font-size: 13.5px; line-height: 1.5; color: var(--fg2); }
.app-pop p strong { display: block; margin-bottom: 2px; font-size: 14px; }
.app-pop-x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; display: grid; place-items: center;
  border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.app-pop-x:hover { color: var(--fg); background: var(--hover); }

/* ==========================================================================
   Homepage
   ========================================================================== */
.h-hero { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); padding: 40px 0 0; }
.h-kicker { display: inline-flex; align-items: center; gap: 10px; height: 28px; padding: 0 12px 0 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font: 400 12px/1 var(--mono); color: var(--muted); }
.h-kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.h-title { margin-top: 24px; font-size: clamp(40px, 6.4vw, 72px); line-height: 1.0; letter-spacing: -.045em; font-weight: 600; max-width: 14ch; }
.h-title span { color: var(--muted); }
.h-sub { margin-top: 22px; font-size: 18px; line-height: 1.55; color: var(--fg2); max-width: 58ch; }

.cmd { margin-top: 36px; max-width: 640px; }
.cmd-row { display: flex; align-items: center; height: 56px; padding: 0 6px 0 16px; gap: 12px; border-radius: 12px;
  border: 1px solid var(--line2); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.cmd-row:focus-within { border-color: color-mix(in srgb, var(--fg) 38%, transparent); box-shadow: 0 0 0 4px var(--blue-soft); }
.cmd-row > .i { color: var(--muted); }
.cmd-row input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; box-shadow: none;
  font: 400 15px/1 var(--mono); color: var(--fg); padding: 0; }
.cmd-row input:focus { box-shadow: none; }
.cmd-row kbd { font: 500 11px/1 var(--mono); color: var(--faint); border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px; }
.cmd-row .btn-primary { height: 42px; padding: 0 18px; border-radius: 8px; }
.cmd-hint { margin-top: 14px; font-size: 13px; color: var(--muted); max-width: 64ch; line-height: 1.6; }
.cmd-try { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 400 12px/1 var(--mono); color: var(--faint); }
.cmd-try button { height: 26px; padding: 0 9px; border-radius: 6px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); font: inherit; cursor: pointer; }
.cmd-try button:hover { color: var(--fg); border-color: var(--line2); }

/* The product window. */
.window { position: relative; border: 1px solid var(--line2); border-radius: 16px; background: var(--surface);
  box-shadow: var(--shadow); overflow: hidden; }
.window::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--hl); }
.wbar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line);
  font: 400 12px/1 var(--mono); color: var(--muted); }
.wbar .dots { display: flex; gap: 6px; }
.wbar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--track); }
.wbar .url { color: var(--fg2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wbar .meta { margin-left: auto; white-space: nowrap; }
.wbar .run { height: 26px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); font: inherit; cursor: pointer; }
.wbar .run:hover { color: var(--fg); border-color: var(--line2); }
.wbody { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 340px; }
.wside { padding: 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; }
.wmain { padding: 8px 0; min-width: 0; }
.wmain-h { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px 10px; }

/* Rings: overall, security, AI visibility. */
.rings { position: relative; width: 168px; height: 168px; flex: none; }
.rings svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.rings .rt { fill: none; stroke: var(--track); }
.rings .rv { fill: none; stroke-linecap: round; transition: stroke-dashoffset 1.1s var(--ease); }
.rings .rv-1 { stroke: var(--fg); }
.rings .rv-2 { stroke: var(--blue); }
.rings .rv-3 { stroke: color-mix(in srgb, var(--blue) 55%, var(--muted)); }
.rings-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.rings-c b { display: block; font: 300 44px/1 var(--sans); letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--fg); }
.rings-c span { display: block; margin-top: 6px; font: 500 11.5px/1 var(--mono); color: var(--muted); letter-spacing: .04em; }
.rkey { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--fg2); }
.rkey li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.rkey i { width: 8px; height: 8px; border-radius: 50%; }
.rkey b { font: 500 12.5px/1 var(--mono); color: var(--fg); font-variant-numeric: tabular-nums; }

/* Counts with state dots. */
.counts { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 13px; color: var(--fg2); }
.counts li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.counts b { font: 500 12.5px/1 var(--mono); color: var(--fg); font-variant-numeric: tabular-nums; }
.sd { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: var(--grey); }
.sd.pass { background: var(--blue); }
.sd.warn { background: var(--amber); }
.sd.fail { background: var(--red); }
.sd.info { background: var(--faint); }
.sd.na, .sd.unknown { background: transparent; box-shadow: inset 0 0 0 1.5px var(--grey); }

/* Finding rows. */
.find { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 14px; align-items: baseline;
  padding: 12px 20px; border-top: 1px solid var(--line); font-size: 14px; }
.find .sv { font: 500 11px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.find .sv.fail { color: var(--red); } .find .sv.warn { color: var(--amber); } .find .sv.pass { color: var(--blue); }
.find .t { color: var(--fg); min-width: 0; }
.find .o { display: block; margin-top: 2px; font: 400 12.5px/1.45 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.find .id { font: 400 11.5px/1.4 var(--mono); color: var(--faint); white-space: nowrap; }
.find .g { font: 500 12.5px/1 var(--mono); color: var(--blue); white-space: nowrap; }
.window [data-step] { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.window.is-running [data-step]:not(.on) { opacity: 0; transform: translateY(4px); }

/* Readings strip under the hero. */
.h-read { margin-top: 72px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.h-read > div { padding: 22px 24px 24px; border-left: 1px solid var(--line); min-width: 0; }
.h-read > div:first-child { border-left: 0; padding-left: 0; }
.h-read b { display: block; margin-top: 10px; font: 500 32px/1 var(--sans); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.h-read b i { font-style: normal; color: var(--muted); font-weight: 400; margin-left: 2px; }
.h-read p { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* Section heading: title left, explanation right. */
.h-sec { margin-top: 128px; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -.035em; max-width: 18ch; }
.sec-head p { color: var(--fg2); font-size: 16px; line-height: 1.65; max-width: 52ch; }
.sec-head .eyebrow { display: block; margin-bottom: 16px; }

/* The outcome spectrum. */
.spec { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.spec-bar { display: flex; height: 10px; margin: 24px 24px 0; border-radius: 3px; overflow: hidden; gap: 2px; }
.spec-bar i { display: block; height: 100%; }
.spec-bar .pass { background: var(--blue); } .spec-bar .warn { background: var(--amber); }
.spec-bar .fail { background: var(--red); } .spec-bar .info { background: var(--faint); }
.spec-bar .na { background: var(--track); }
.spec-bar .unknown { background: repeating-linear-gradient(-45deg, var(--grey) 0 2px, transparent 2px 5px); }
.spec-cap { padding: 10px 24px 0; font: 400 12px/1.5 var(--mono); color: var(--faint); }
.spec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 24px; border-top: 1px solid var(--line); }
.spec-grid > div { padding: 20px 24px 24px; border-left: 1px solid var(--line); min-width: 0; }
.spec-grid > div:first-child { border-left: 0; }
.spec-grid h3 { display: flex; align-items: center; gap: 9px; font: 500 13px/1 var(--mono); letter-spacing: 0; }
.spec-grid p { margin-top: 10px; color: var(--fg2); font-size: 14px; line-height: 1.6; }

/* Bento of three. */
.bento { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bento > div { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 24px; display: flex; flex-direction: column; min-width: 0; }
.bento .n { font: 500 12px/1 var(--mono); color: var(--faint); }
.bento h3 { margin-top: 16px; font-size: 17px; letter-spacing: -.02em; }
.bento p { margin-top: 8px; color: var(--fg2); font-size: 14.5px; line-height: 1.6; }
.inset { margin-top: auto; padding-top: 22px; }
.inset > div { border: 1px solid var(--line); border-radius: 10px; background: var(--code); padding: 14px 16px;
  font: 400 12.5px/1.7 var(--mono); color: var(--fg2); overflow-x: auto; white-space: pre; }
.inset .k { color: var(--muted); } .inset .v { color: var(--fg); } .inset .b { color: var(--blue); } .inset .r { color: var(--red); } .inset .a { color: var(--amber); }

/* Split: text left, panel right. */
.split { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }
.split .codetabs { margin: 0; }
.points { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.points li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.points .lbl { padding-top: 3px; }
.points h3 { font-size: 15px; letter-spacing: -.01em; }
.points p { margin-top: 4px; color: var(--fg2); font-size: 14.5px; line-height: 1.6; }

/* Two cards side by side. */
.duo { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.duo > div { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.duo h3 { font-size: 18px; letter-spacing: -.02em; }
.duo p { color: var(--fg2); font-size: 14.5px; line-height: 1.6; max-width: 48ch; }
.duo .go { margin-top: auto; padding-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Why the name. */
.why2 { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; align-items: center; }
.why2-rings { position: relative; width: 180px; aspect-ratio: 1; }
.why2-rings i { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid var(--line2); }
.why2-rings i:nth-child(1) { width: 100%; height: 100%; border-style: dashed; }
.why2-rings i:nth-child(2) { width: 74%; height: 74%; }
.why2-rings i:nth-child(3) { width: 48%; height: 48%; border-color: color-mix(in srgb, var(--blue) 55%, transparent); }
.why2-rings i:nth-child(4) { width: 12%; height: 12%; background: var(--blue); border: 0; }
.why2 h2 { font-size: 24px; letter-spacing: -.025em; }
.why2 p { margin-top: 12px; color: var(--fg2); font-size: 15.5px; line-height: 1.7; max-width: 64ch; }
.home-faq .acc { max-width: none; }

/* Progress while an inspection runs: a log, not a modal. */
.progress { max-width: 640px; margin: 20px 0 0; overflow: hidden; }
.progress-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line);
  font: 400 13px/1.4 var(--mono); color: var(--fg); }
.progress-head .spinner { color: var(--blue); }
.progress-track { height: 2px; background: var(--track); }
.progress-fill { height: 100%; width: 0; background: var(--blue); transition: width .5s var(--ease); }
.progress-body { padding: 10px 16px 14px; max-height: 220px; overflow-y: auto; font: 400 12.5px/1.5 var(--mono); }
.pline { display: flex; gap: 14px; padding: 3px 0; color: var(--muted); animation: plIn .25s var(--ease) both; }
.pline .t { min-width: 42px; text-align: right; color: var(--faint); font-variant-numeric: tabular-nums; }
.pline.active { color: var(--fg); }
@keyframes plIn { from { opacity: 0; transform: translateY(3px); } }

/* ==========================================================================
   Report
   ========================================================================== */
#view-results { padding-top: 8px; }
.rep-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.rep-head h1, .rep-head .rep-h { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.035em; line-height: 1.05; overflow-wrap: anywhere; }
.rep-url { margin-top: 8px; font: 400 13px/1.4 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.rep-url a { color: inherit; text-decoration: none; }
.rep-url a:hover { color: var(--fg); }
.rep-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.rep-sum { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--line); }
.rep-sum .rings { width: 176px; height: 176px; }
.rep-verdict { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rep-verdict b { font-size: 22px; letter-spacing: -.025em; }
.rep-verdict span { font: 500 12.5px/1 var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 4px 7px; }
.rep-keys { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; color: var(--fg2); }
.rep-keys span { display: inline-flex; align-items: center; gap: 8px; }
.rep-keys i { width: 8px; height: 8px; border-radius: 50%; }
.rep-keys b { font: 500 12.5px/1 var(--mono); color: var(--fg); }
.dist { display: flex; height: 8px; gap: 2px; margin-top: 22px; border-radius: 3px; overflow: hidden; max-width: 720px; }
.dist i { display: block; height: 100%; min-width: 2px; }
.dist .pass { background: var(--blue); } .dist .warn { background: var(--amber); } .dist .fail { background: var(--red); }
.dist .info { background: var(--faint); } .dist .na { background: var(--track); }
.dist .unknown { background: repeating-linear-gradient(-45deg, var(--grey) 0 2px, transparent 2px 5px); }
.tallies { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.tally { display: inline-flex; align-items: center; gap: 7px; font: 400 12.5px/1.4 var(--mono); color: var(--muted); }
.tally .i { display: none; }
.tally::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grey); flex: none; }
.tally.pass::before { background: var(--blue); } .tally.warn::before { background: var(--amber); }
.tally.fail::before { background: var(--red); } .tally.info::before { background: var(--faint); }
.tally.na::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--grey); }
.summary-meta, .rep-meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 4px 16px; font: 400 12px/1.5 var(--mono); color: var(--faint); }

/* Underline tabs. */
.tabs { display: flex; gap: 24px; margin: 0 0 28px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0; border: 0; background: none;
  border-bottom: 1px solid transparent; margin-bottom: -1px; color: var(--muted); font: 500 14px/1 var(--sans); cursor: pointer; }
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--fg); }
.tab .count { font: 500 11.5px/1 var(--mono); color: var(--faint); }
.tab[aria-selected="true"] .count { color: var(--blue); }
.panel { animation: fade .25s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

/* Fixes. */
.rec-hero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 20px; overflow: hidden; }
.rec-hero .stat { padding: 20px 22px; border-left: 1px solid var(--line); min-width: 0; }
.rec-hero .stat:first-child { border-left: 0; }
.stat .n { font: 500 30px/1 var(--sans); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stat .l { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.rec, .check { margin-bottom: 8px; overflow: hidden; }
#rec-list, #check-list { display: flex; flex-direction: column; }
.rec-head, .check-head { display: flex; align-items: flex-start; gap: 14px; width: 100%; padding: 16px 18px; border: 0;
  background: none; text-align: left; color: inherit; cursor: pointer; white-space: normal; transition: background .15s; }
.rec-head:hover, .check-head:hover { background: var(--hover); }
.rank { flex: none; width: 26px; padding-top: 2px; font: 500 12.5px/1.4 var(--mono); color: var(--faint); font-variant-numeric: tabular-nums; }
.rec-main, .check-main { flex: 1; min-width: 0; display: block; }
.rec-title, .check-title { display: block; font-size: 15px; font-weight: 500; letter-spacing: -.01em; color: var(--fg); }
.rec-found, .check-found { display: block; margin-top: 4px; font: 400 12.5px/1.5 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.rec-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.check-meta { display: block; margin-top: 6px; font: 400 11.5px/1.4 var(--mono); color: var(--faint); }
.gain { flex: none; text-align: right; font: 500 14px/1.2 var(--mono); color: var(--blue); font-variant-numeric: tabular-nums; padding-top: 1px; }
.gain small { display: block; margin-top: 3px; font: 400 11px/1 var(--mono); color: var(--faint); }
.sev { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 7px; border-radius: 6px; border: 1px solid var(--line);
  font: 500 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.sev::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sev.critical, .sev.high { color: var(--red); }
.sev.medium { color: var(--amber); }
.chev { flex: none; color: var(--faint); padding-top: 1px; transition: transform .2s var(--ease); }
.rec.open .chev, .check.open .chev { transform: rotate(180deg); }
.rec-body, .check-body { padding: 4px 18px 18px 58px; border-top: 1px solid var(--line); }
.check-body { padding-left: 52px; }
.field { margin-top: 16px; }
.field-label { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 10.5px; }
.field-label .i { width: 12px; height: 12px; }
.field-body { font-size: 14px; line-height: 1.6; color: var(--fg2); }
.field-body.act { color: var(--fg); }
pre.ev { margin: 6px 0 0; padding: 12px 14px; background: var(--code); border: 1px solid var(--line); border-radius: 8px;
  font-size: 12px; line-height: 1.6; color: var(--fg2); overflow-x: auto; max-height: 340px; white-space: pre-wrap; word-break: break-word; }

/* Status marks in check rows. */
.badge { flex: none; width: 20px; height: 20px; display: grid; place-items: center; margin-top: 1px; color: var(--muted); }
.badge .i { width: 16px; height: 16px; stroke-width: 2; }
.badge.pass { color: var(--blue); } .badge.warn { color: var(--amber); } .badge.fail { color: var(--red); }
.badge.info { color: var(--faint); } .badge.na { color: var(--grey); }
.dot { display: inline-flex; align-items: center; gap: 5px; }

/* Category grid. */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cat { display: block; width: 100%; padding: 20px; text-align: left; color: inherit; cursor: pointer; font: inherit;
  white-space: normal; transition: border-color .15s, background .15s; }
.cat:hover { border-color: var(--line2); background: color-mix(in srgb, var(--surface) 70%, var(--raised)); }
.cat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cat-title { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; letter-spacing: -.01em; }
.cat-icon { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 7px; border: 1px solid var(--line); color: var(--muted); background: none; }
.cat-icon .i { width: 15px; height: 15px; }
.cat-score { font: 500 22px/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cat-bar { height: 3px; margin: 16px 0 12px; border-radius: 2px; background: var(--track); overflow: hidden; }
.cat-bar > i { display: block; height: 100%; width: 0; border-radius: 2px; transition: width 1s var(--ease); }
.cat-affects { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.cat-desc { color: var(--muted); font-size: 13px; line-height: 1.5; margin-bottom: 12px; }
.cat-foot { display: flex; flex-wrap: wrap; gap: 6px 12px; font: 400 12px/1.4 var(--mono); color: var(--faint); }

/* Score split. */
.gsplit { margin-bottom: 20px; }
.gsplit h3 { font-size: 15px; margin-bottom: 4px; }
.gsplit-note { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.gsplit-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.gsplit-item { padding: 14px 16px; min-width: 0; }
.gsplit-score { font: 500 24px/1 var(--sans); letter-spacing: -.03em; }
.gsplit-name { margin-top: 8px; font-size: 13.5px; font-weight: 500; }
.gsplit-ep { margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.gsplit-n { margin-top: 6px; font: 400 11.5px/1 var(--mono); color: var(--faint); }

/* Multi-ring charts. */
.mr-wrap { display: grid; gap: 28px; grid-template-columns: 260px minmax(0, 1fr); align-items: center; }
.multiring { position: relative; width: 100%; max-width: 260px; aspect-ratio: 1; margin: 0 auto; }
.multiring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.multiring .mr-track { fill: none; stroke: var(--track); }
.multiring .mr-val { fill: none; cursor: pointer; outline: none; transition: stroke-dashoffset 1.1s var(--ease), opacity .2s; }
.multiring .mr-val.dim { opacity: .2; }
.mr-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; padding: 0 22%; }
.mr-c-label { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 10px; }
.mr-c-value { display: block; margin-top: 4px; font: 500 20px/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mr-center.active .mr-c-label { color: var(--fg); }
.mr-hint { margin-top: 10px; text-align: center; font: 400 11.5px/1.4 var(--mono); color: var(--faint); }
.mr-legend { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.mr-legend li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; color: var(--fg2); }
.mr-key { width: 8px; height: 8px; border-radius: 50%; }
.mr-name { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
.mr-val-n { font: 500 12.5px/1 var(--mono); color: var(--fg); font-variant-numeric: tabular-nums; }
@media (min-width: 920px) {
  .pv-grid .mr-wrap { grid-template-columns: 140px minmax(0, 1fr); gap: 18px; }
  .pv-grid .multiring { max-width: 140px; }
}

/* Share previews (platform look-alikes keep their platforms' own colours). */
.pv { display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.pv-head { display: flex; align-items: center; gap: 9px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 400 12px/1.4 var(--mono); color: var(--muted); }
.pv-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.pv-stage.light { background: #f0f0f2; }
.pv-stage.dark { background: #16181d; }
.pv-note { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.g-result { width: 100%; max-width: 34rem; font-family: Arial, sans-serif; }
.g-line { display: flex; align-items: center; gap: 11px; margin-bottom: 5px; }
.g-fav { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #dadce0; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.g-fav img { width: 16px; height: 16px; object-fit: contain; }
.g-site { font-size: 14px; line-height: 1.2; } .g-url { font-size: 12px; }
.g-title { font-size: 20px; line-height: 1.3; margin: 2px 0 3px; } .g-desc { font-size: 14px; line-height: 1.58; }
.light .g-site { color: #202124; } .light .g-url { color: #4d5156; } .light .g-title { color: #1a0dab; } .light .g-desc { color: #4d5156; }
.dark .g-site { color: #dadce0; } .dark .g-url { color: #bdc1c6; } .dark .g-title { color: #8ab4f8; } .dark .g-desc { color: #bdc1c6; }
.card-large { width: 100%; max-width: 32rem; border-radius: 10px; overflow: hidden; font-family: Helvetica, Arial, sans-serif; }
.light .card-large, .light .card-compact { border: 1px solid #dcdee1; background: #fff; }
.dark .card-large, .dark .card-compact { border: 1px solid #303236; background: #1e2024; }
.card-img { width: 100%; aspect-ratio: 1200/630; background: #e4e6eb; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dark .card-img { background: #2a2c31; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 11px 14px; }
.card-site { font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
.card-title { font-size: 15px; font-weight: 600; margin: 3px 0; line-height: 1.35; }
.card-desc { font-size: 13px; line-height: 1.4; }
.light .card-site { color: #606770; } .light .card-title { color: #1d2129; } .light .card-desc { color: #606770; }
.dark .card-site { color: #8a9099; } .dark .card-title { color: #e4e6eb; } .dark .card-desc { color: #b0b3b8; }
.card-compact { width: 100%; max-width: 28rem; display: flex; gap: 12px; padding: 11px; border-radius: 12px; font-family: Helvetica, Arial, sans-serif; align-items: center; }
.card-thumb { width: 72px; height: 72px; border-radius: 8px; flex: none; overflow: hidden; background: #e4e6eb; display: flex; align-items: center; justify-content: center; }
.dark .card-thumb { background: #2a2c31; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bubble { width: 100%; max-width: 21rem; border-radius: 17px; overflow: hidden; font-family: Helvetica, Arial, sans-serif; background: #007aff; color: #fff; }
.bubble .card-img { aspect-ratio: 16/9; }
.bubble-body { padding: 10px 13px; } .bubble-title { font-size: 13px; font-weight: 600; line-height: 1.3; } .bubble-url { font-size: 11px; opacity: .82; margin-top: 2px; }
.icon-set { display: flex; flex-wrap: wrap; gap: 18px; padding: 22px; }
.icon-demo { text-align: center; font: 400 11px/1.4 var(--mono); color: var(--muted); }
.icon-demo .frame { border: 1px solid var(--line); border-radius: 8px; background: var(--raised); display: flex; align-items: center; justify-content: center; margin: 0 auto 7px; overflow: hidden; }
.tab-strip { display: flex; align-items: center; gap: 8px; background: var(--raised); border-radius: 9px 9px 0 0; padding: 9px 13px; max-width: 16rem; }
.tab-strip img { width: 16px; height: 16px; flex: none; }
.tab-strip span { font-size: 13px; color: var(--fg2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================================================
   Other page components
   ========================================================================== */
/* Methodology catalogue. */
.cat-block { margin-bottom: 40px; }
.cat-block > h2, .cat-block > h3 { display: flex; align-items: center; gap: 10px; }
.check-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.check-row:last-child { border-bottom: 0; }
.check-row .idx { font: 400 12px/1.5 var(--mono); color: var(--muted); padding-top: 2px; overflow-wrap: anywhere; }
.check-row .body { min-width: 0; }
.check-row .t { font-size: 14.5px; font-weight: 500; }
.check-row .d { margin-top: 3px; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* Agent traces. */
.trace-pair { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 0 8px; }
.trace { padding: 20px 22px; display: flex; flex-direction: column; min-width: 0; }
.trace-good { border-color: color-mix(in srgb, var(--blue) 40%, transparent); }
.trace-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.trace-good .trace-head { color: var(--blue); }
.trace-bad .trace-head { color: var(--muted); }
.trace-q { font-size: 15px; font-weight: 500; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.trace-call { margin: 0 0 12px; font: 400 12px/1.6 var(--mono); color: var(--blue); display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.trace-call code { display: block; width: 100%; overflow-x: auto; white-space: pre; font-size: 11.5px; }
.trace-a { color: var(--fg2); font-size: 14.5px; line-height: 1.65; margin: 0 0 14px; }
.trace-note { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }

/* Badge builder. */
.builder { display: grid; gap: 16px; grid-template-columns: 340px minmax(0, 1fr); align-items: start; }
.badge-stage { display: flex; align-items: center; justify-content: center; min-height: 160px; padding: 30px; margin-bottom: 16px;
  border-radius: 10px; border: 1px dashed var(--line2);
  background: repeating-conic-gradient(var(--raised) 0% 25%, transparent 0% 50%) 50% / 16px 16px; }
.badge-stage.on-light { background: #ffffff; }
.badge-stage.on-dark { background: #0e0f12; }
.code-box { position: relative; padding: 14px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--code);
  font: 400 12.5px/1.6 var(--mono); color: var(--fg2); overflow-x: auto; white-space: pre-wrap; word-break: break-all; }

/* Guides. */
.with-sidebar { display: block; }
.with-sidebar > .sidebar { display: none; }
.guide { max-width: 46rem; }
.g-head { padding: 0 0 8px; }
.g-head .eyebrow { display: inline-flex; gap: 8px; align-items: center; }
.g-head h1 { margin-top: 16px; }
.g-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line);
  font: 400 12px/1.5 var(--mono); color: var(--muted); }
.g-meta span { display: inline-flex; align-items: center; gap: 6px; }
.g-meta .i { width: 13px; height: 13px; }
.g-answer { margin: 32px 0 8px; padding: 20px 22px; border: 1px solid var(--line); border-left: 2px solid var(--blue); border-radius: 0 10px 10px 0; background: var(--surface); }
.g-answer-label { margin-bottom: 8px; color: var(--blue); }
.g-answer p { font-size: 16px; line-height: 1.65; color: var(--fg); }
.g-body { margin-top: 8px; }
.g-body > p { font-size: 16px; line-height: 1.75; color: var(--fg2); margin: 0 0 18px; }
.g-h2 { font-size: 24px; letter-spacing: -.025em; margin: 52px 0 14px; }
.g-h3 { font-size: 17px; letter-spacing: -.015em; margin: 32px 0 10px; }
.g-list { list-style: none; padding: 0; margin: 0 0 22px; }
.g-list li { position: relative; padding-left: 22px; margin-bottom: 10px; font-size: 15.5px; line-height: 1.7; color: var(--fg2); }
.g-list > li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--muted); }
.g-steps { counter-reset: gs; }
.g-steps > li { padding-left: 36px; }
.g-steps > li::before { counter-increment: gs; content: counter(gs); left: 0; top: .15em; width: 22px; height: 22px; border-radius: 6px;
  border: 1px solid var(--line2); display: grid; place-items: center; font: 500 11.5px/1 var(--mono); color: var(--fg); }
.g-body .note { margin: 24px 0; }
.g-body .table-card { margin: 8px 0 24px; }
.g-code { margin: 8px 0 24px; padding: 16px 18px; background: var(--code); border: 1px solid var(--line); border-radius: 10px;
  overflow-x: auto; font: 400 13px/1.65 var(--mono); color: var(--fg2); white-space: pre; tab-size: 2; }
.g-check-card { margin: 48px 0 0; padding: 26px 28px; }
.g-check-card h2, .g-check-card h3 { font-size: 18px; letter-spacing: -.02em; }
.g-check-card p { color: var(--fg2); margin-top: 8px; font-size: 14.5px; }
.g-check-card .err-form { margin-top: 16px; }
.g-sources { margin: 40px 0 0; padding: 20px 22px; }
.g-sources > p { font-size: 14px; color: var(--fg2); margin-bottom: 12px; }
.g-sources .g-list li { font-size: 14px; margin-bottom: 6px; }
.g-topic { margin-top: 56px; }
.g-topic > h2 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 16px; }
.g-cards { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; text-decoration: none; color: inherit; transition: border-color .15s, background .15s; }
.g-card:hover { border-color: var(--line2); background: color-mix(in srgb, var(--surface) 70%, var(--raised)); text-decoration: none; }
.g-card h3 { font-size: 15px; letter-spacing: -.012em; line-height: 1.35; }
.g-card p { flex: 1; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.g-card-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font: 500 12px/1 var(--mono); color: var(--fg2); }
.g-card-go .i { width: 13px; height: 13px; transition: transform .2s var(--ease); }
.g-card:hover .g-card-go .i { transform: translateX(3px); }

/* Loop diagram (kept for pages that still use it). */
.flow { margin: 0 0 40px; }
.flow figcaption { margin-bottom: 16px; }
.flow-chain { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.fl-node { padding: 18px 20px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 4px 24px; }
.fl-k { font-size: 14.5px; font-weight: 500; }
.fl-d { color: var(--fg2); font-size: 14px; line-height: 1.6; }
.fl-us { border-color: color-mix(in srgb, var(--blue) 45%, transparent); }
.fl-fan { grid-column: 2; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0 0; margin: 12px 0 0; border-top: 1px solid var(--line); }
.fl-fan li { font: 400 11.5px/1 var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; }

/* Stats page. */
.dial-grid { display: grid; gap: 24px 12px; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); padding: 8px 0; }
.ringstat { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ringstat-dial { position: relative; width: 88px; height: 88px; }
.ringstat-dial svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ringstat-dial .rs-track { fill: none; stroke: var(--track); stroke-width: 6; }
.ringstat-dial .rs-val { fill: none; stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 1.1s var(--ease); }
.ringstat-mid { position: absolute; inset: 0; display: grid; place-content: center; }
.ringstat-num { font: 500 21px/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ringstat-lab { text-align: center; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.statbars { display: flex; flex-direction: column; gap: 10px; }
.statbar { display: grid; grid-template-columns: 15rem minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; font-size: 13.5px; }
.sb-label { color: var(--fg2); min-width: 0; overflow-wrap: anywhere; }
.sb-value { font: 500 12.5px/1 var(--mono); color: var(--fg); white-space: nowrap; }
.sb-track { height: 4px; border-radius: 2px; background: var(--track); overflow: hidden; }
.sb-track > i { display: block; height: 100%; width: 0; border-radius: 2px; transition: width .9s var(--ease); }
.ts { position: relative; }
.ts-readout { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; min-height: 32px; }
.ts-r-total { font: 500 24px/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ts-r-detail { font: 400 12.5px/1.4 var(--mono); color: var(--muted); }
.ts-readout.active .ts-r-label { color: var(--fg); }
.ts-svg { width: 100%; height: 200px; display: block; overflow: visible; }
.ts-col { cursor: pointer; outline: none; transition: opacity .15s; }
.ts-col.dim { opacity: .28; }
.ts-axis { display: flex; justify-content: space-between; margin-top: 8px; font: 400 11.5px/1 var(--mono); color: var(--faint); }
.ts-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.ts-legend span { display: inline-flex; align-items: center; gap: 7px; }
.ts-legend i { width: 8px; height: 8px; border-radius: 2px; }
.chart-empty { color: var(--muted); font-size: 14px; padding: 18px 0; }
.sidebar-title { font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.bars { display: flex; flex-direction: column; gap: 9px; }
.barrow { display: grid; grid-template-columns: minmax(90px, 190px) 1fr auto; gap: 12px; align-items: center; font-size: 13.5px; }
.barrow .lab { color: var(--fg2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barrow .track { height: 4px; background: var(--track); border-radius: 2px; overflow: hidden; }
.barrow .track > i { display: block; height: 100%; background: var(--blue); width: 0; transition: width .8s var(--ease); }
.barrow .val { font: 400 12.5px/1 var(--mono); color: var(--muted); min-width: 46px; text-align: right; }

/* Hover cards. */
.hc { position: relative; display: inline-block; }
.hc-trigger { border-bottom: 1px dashed var(--muted); cursor: help; text-decoration: none; color: inherit; }
.hc-panel { position: absolute; z-index: 60; left: 50%; bottom: calc(100% + 10px); width: max-content; max-width: min(20rem, 78vw);
  transform: translateX(-50%) translateY(4px); background: var(--raised); border: 1px solid var(--line2); border-radius: 10px;
  box-shadow: var(--shadow); padding: 12px 14px; font-size: 13px; line-height: 1.55; color: var(--fg2);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s, transform .15s, visibility .15s; text-align: left; font-weight: 400; }
.hc-panel strong { display: block; margin-bottom: 4px; }
.hc:hover .hc-panel, .hc:focus-within .hc-panel { opacity: 1; visibility: visible; transform: translateX(-50%); }
.hc.hc-below .hc-panel { bottom: auto; top: calc(100% + 10px); }

/* Admin gate. */
.gate-wrap { display: flex; justify-content: flex-start; margin-top: 8px; }
.gate { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.gate .control { margin: 0; }
.pin-input { font-family: var(--mono); font-size: 18px; letter-spacing: .3em; height: 48px; }
.gate-go { width: 100%; height: 44px; }
.gate-note { font-size: 12.5px; color: var(--muted); line-height: 1.55; }

/* ==========================================================================
   Private dashboard: MIAN components, re-tokened to this system.
   ========================================================================== */
:root[data-noodle][data-noodle] {
  --mn-bg: var(--bg); --mn-surface: var(--surface); --mn-surface-2: var(--raised); --mn-border: var(--line);
  --mn-fg: var(--fg); --mn-muted: var(--muted); --mn-primary: var(--btn-bg); --mn-primary-fg: var(--btn-fg);
  --mn-hover: var(--hover); --mn-ring: var(--blue); --mn-font: var(--sans); --mn-font-mono: var(--mono);
  --mn-radius-field: 8px; --mn-radius-box: 12px;
}
#dash { --mn-series-1: var(--blue); --mn-series-2: color-mix(in oklab, var(--fg) 40%, var(--surface));
  --mn-bar-fill: color-mix(in oklab, var(--blue) 24%, transparent); --mn-bar-fill-hl: var(--blue); }
.o-dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.o-dash-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
#dash .mn-stats { margin-bottom: 16px; }
#dash .mn-card { margin-top: 16px; }
#dash .o-dash-grid .mn-card { margin-top: 0; }
.o-dom-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.o-dom-controls .mn-input { flex: 1 1 220px; min-width: 0; width: auto; }
.o-dom-controls .mn-select { flex: 0 1 170px; min-width: 0; width: auto; }
.o-dom-controls .mn-btn { flex: 0 0 auto; margin-left: auto; }
.o-dom-count { margin: 0 0 10px; font-size: 13px; }
.o-dom-pager { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
#dash .mn-table :is(th, td) { overflow-wrap: normal; word-break: normal; white-space: nowrap; position: static; }
.o-surfaces { display: inline-flex; flex-wrap: wrap; gap: 4px; white-space: normal; max-width: 22rem; }
.o-caveats { margin: 0 0 12px; padding-left: 18px; }
.o-caveats li { margin-bottom: 6px; color: var(--muted); font-size: 14px; }
.o-ranges { display: flex; flex-wrap: wrap; gap: 6px; }
.o-dash-right { display: flex; align-items: center; gap: 10px; }
.o-dash-sub { margin: -8px 0 16px; font-size: 13px; }
#dash .o-range-on { font-weight: 650; }
.dtabs { display: flex; gap: 22px; margin: 24px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.dtabs button { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0; border: 0; background: none;
  border-bottom: 1px solid transparent; margin-bottom: -1px; color: var(--muted); font: 500 14px/1 var(--sans); cursor: pointer; }
.dtabs button:hover { color: var(--fg); }
.dtabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--fg); }
.dtab-count { font: 500 11px/1 var(--mono); color: var(--blue); }
.msg-list { display: flex; flex-direction: column; gap: 10px; }
.msg { padding: 16px 18px; }
.msg-done { opacity: .55; }
.msg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.msg-who { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; min-width: 0; }
.msg-head time, .msg-meta { font: 400 12px/1.4 var(--mono); color: var(--muted); }
.msg-subject { font-weight: 500; margin-bottom: 6px; }
.msg-body { font-size: 14px; color: var(--fg2); white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 12px; }
.msg-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.msg-actions { display: flex; gap: 8px; }
.msg-badge { font: 500 11px/1 var(--mono); color: var(--blue); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .o-docs, .o-docs.o-no-side { grid-template-columns: 200px minmax(0, 1fr); gap: 44px; }
  .o-docs.o-no-side, .o-docs.o-no-side.o-no-toc { grid-template-columns: minmax(0, 1fr); }
  .o-toc { display: none !important; }
  .o-quick input { width: 180px; }
}
@media (max-width: 1000px) {
  .grid, .g-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .builder { grid-template-columns: minmax(0, 1fr); }
  .wbody { grid-template-columns: minmax(0, 1fr); }
  .wside { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; align-items: center; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-grid > div:nth-child(3) { border-left: 0; }
  .spec-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  :root { --nav: 56px; }
  .o-docs, .o-docs.o-no-toc, .o-docs.o-no-side { grid-template-columns: minmax(0, 1fr); gap: 0;
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .o-header-in { gap: 12px; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
  .o-side, .o-topnav, .o-quick { display: none; }
  .o-header .o-menu { display: grid; }
  .o-main { padding-top: 24px; }
  .sec-head { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .h-read { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-read > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .h-read > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .h-read > div { padding-left: 20px; }
  .rep-sum { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .mr-wrap { grid-template-columns: minmax(0, 1fr); }
  .why2 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .why2-rings { width: 140px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .h-sec { margin-top: 96px; }
}
@media (max-width: 720px) {
  .impact-grid, .pv-grid, .duo, .trace-pair, .grid, .g-cards { grid-template-columns: minmax(0, 1fr); }
  .tiles, .rec-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:nth-child(3), .rec-hero .stat:nth-child(3) { border-left: 0; }
  .tile:nth-child(n+3), .rec-hero .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .points li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .fl-node { grid-template-columns: minmax(0, 1fr); }
  .fl-fan { grid-column: auto; }
  .check-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .statbar { grid-template-columns: minmax(0, 1fr) auto; }
  .sb-track { grid-column: 1 / -1; }
  .app-cta { flex-direction: column; align-items: flex-start; }
  .app-pop { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .o-dash-grid { grid-template-columns: minmax(0, 1fr); }
  .o-getapp { display: none; }
  .find { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 12px 16px; }
  .find .id { display: none; }
  .wbar .meta { display: none; }
  .rec-body, .check-body { padding-left: 18px; }
  .endpoint .desc { margin-left: 0; width: 100%; }
  .panel-card { padding: 20px 18px; }
}
@media (max-width: 520px) {
  .h-title { font-size: 40px; }
  .h-sub { font-size: 16px; }
  .cmd-row { height: auto; flex-wrap: wrap; padding: 8px; gap: 8px; }
  .cmd-row > .i, .cmd-row kbd { display: none; }
  .cmd-row input { height: 40px; padding: 0 8px; flex: 1 1 100%; }
  .cmd-row .btn-primary { width: 100%; }
  .spec-grid { grid-template-columns: minmax(0, 1fr); }
  .spec-grid > div { border-left: 0 !important; }
  .spec-grid > div + div { border-top: 1px solid var(--line); }
  .rep-tools .btn-sm { padding: 0 10px; }
  .rings { width: 140px; height: 140px; }
  .rings-c b { font-size: 36px; }
  .err-form .btn-primary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; }
}
@media print { .o-header, .o-side, .o-toc, .app-promo, footer.o-foot { display: none !important; } }
.split > .codetabs { position: sticky; top: calc(var(--nav) + 32px); }
@media (max-width: 1000px) { .split > .codetabs { position: static; } }
/* Findings and checks read as one list, not a stack of cards. */
#rec-list, #check-list { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
#rec-list > .rec, #check-list > .check { margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
#rec-list > .rec:last-child, #check-list > .check:last-child { border-bottom: 0; }
#rec-list:empty, #check-list:empty { display: none; }
.rep-sum .rings-c b { font-size: 34px; }
.rep-sum .rings-c span { font-size: 12px; color: var(--fg2); }
/* Headings written straight into a page, without a component around them. */
:where(.wrap) h2 { font-size: 24px; letter-spacing: -.025em; }
:where(.wrap) h3 { font-size: 16.5px; letter-spacing: -.015em; }
:where(.wrap > h2, .wrap > section > h2, .doc > h2) { margin: 56px 0 14px; }
:where(.wrap > h3, .wrap > section > h3, .doc > h3) { margin: 32px 0 10px; }
.panel-card h2, .panel-card h3 { display: flex; align-items: center; gap: 8px; }
.panel-card h2 .i, .panel-card h3 .i { color: var(--muted); width: 16px; height: 16px; }
.wrap > ul, .wrap > ol, .wrap > section > ul, .wrap > section > ol { color: var(--fg2); padding-left: 20px; max-width: 70ch; }
.wrap > ul li, .wrap > ol li { margin: 6px 0; }

/* MIAN controls in the dashboard, drawn as this system's buttons and tags. Unlayered,
   so they win over MIAN's layered variants in both themes. */
.mn-btn { --_bg: var(--btn-bg); --_fg: var(--btn-fg); --_bd: var(--btn-bg); color: var(--_fg); font-family: var(--sans); font-weight: 500; }
.mn-btn.mn-btn-secondary, .mn-btn.mn-btn-outline, .mn-btn.mn-btn-soft { --_bg: transparent; --_fg: var(--fg); --_bd: var(--line2); }
.mn-btn.mn-btn-secondary:hover, .mn-btn.mn-btn-outline:hover { --_bg: var(--hover); }
.mn-btn.mn-btn-secondary.o-range-on { --_bg: var(--raised); --_bd: color-mix(in srgb, var(--fg) 35%, transparent); }
.mn-btn.mn-btn-ghost { --_bg: transparent; --_fg: var(--fg2); --_bd: transparent; }
.mn-btn.mn-btn-ghost:hover { --_bg: var(--hover); --_fg: var(--fg); }
.mn-btn.mn-danger { --_fg: var(--red); }
.mn-btn:disabled { opacity: .4; }
.mn-input, .mn-select { background-color: var(--surface); color: var(--fg); border-color: var(--line2); }
