/* Two Hands. One accent (indigo); green / amber / red are status colours only.
   Spacing scale 4-8-12-16-24-32-48-64; type scale xs-sm-base-lg-xl-2xl-3xl. */
:root {
  --bg: #f5f5f2;
  --surface: #ffffff;
  --sunken: #f0f0ec;
  --ink: #14161b;
  --ink-2: #2c3039;
  --muted: #5f6673;
  --faint: #969ca7;
  --line: #e2e2dc;
  --line-2: #ececE7;
  --accent: #3047c0;
  --accent-ink: #22348f;
  --accent-soft: #eceffc;
  --accent-line: #cbd3f5;
  --ok: #157042;
  --ok-soft: #e7f4ec;
  --ok-line: #bfe0cb;
  --bad: #b3261e;
  --bad-soft: #fcebe9;
  --bad-line: #f0c4bf;
  --warn: #965500;
  --warn-soft: #fcf2e1;
  --warn-line: #f1d2a8;
  --bar: #12141a;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --t-xs: .75rem; --t-sm: .875rem; --t-base: 1rem; --t-lg: 1.125rem; --t-xl: 1.375rem; --t-2xl: 1.75rem;
  --t-3xl: clamp(2.1rem, 3.6vw, 3rem);

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 22, 28, .04), 0 4px 18px rgba(20, 22, 28, .05);
  --shadow-lg: 0 2px 4px rgba(20, 22, 28, .04), 0 18px 48px rgba(20, 22, 28, .10);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: hidden; overflow-wrap: break-word; background: var(--bg); color: var(--ink); font-family: var(--sans);
  font-size: var(--t-base); line-height: 1.55; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0; color: var(--ink); }
h1 { font-size: var(--t-3xl); font-weight: 690; letter-spacing: -0.03em; }
h2 { font-size: var(--t-xl); font-weight: 650; }
h3 { font-size: var(--t-base); font-weight: 630; }
p { margin: 0 0 var(--s-3); }
.mono, .num { font-family: var(--mono); font-feature-settings: "zero"; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--s-6); }

/* ---------- app bar */
.top { background: var(--bar); position: sticky; top: 0; z-index: 30; color: #fff; }
.top .wrap { display: flex; align-items: center; gap: var(--s-5); height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 680; font-size: 1.05rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 28px; height: 28px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; gap: 7px; color: #c9ccd4; padding: 7px 11px; border-radius: 8px; font-size: var(--t-sm); font-weight: 520; white-space: nowrap; }
.nav a svg { width: 16px; height: 16px; opacity: .8; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.nav a.on { background: rgba(255,255,255,.12); color: #fff; }
.nav a.on svg { opacity: 1; }
.amdpill { display: inline-flex; align-items: center; gap: 7px; font-size: var(--t-xs); font-weight: 600; color: #d8dbe2; padding: 5px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; white-space: nowrap; cursor: default; position: relative; }
.amdpill .pdot { width: 8px; height: 8px; border-radius: 50%; background: #8a8f9a; }
.amdpill.up .pdot { background: #3ccf7c; box-shadow: 0 0 0 0 rgba(60,207,124,.6); animation: pulse 2.2s infinite; }
.amdpill.busy .pdot, .amdpill.degraded .pdot { background: #f2a83b; }
.amdpill.down .pdot { background: #8a8f9a; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(60,207,124,.55); } 70% { box-shadow: 0 0 0 7px rgba(60,207,124,0); } 100% { box-shadow: 0 0 0 0 rgba(60,207,124,0); } }
.menubtn { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 8px; width: 40px; height: 36px; cursor: pointer; }
.menubtn svg { width: 20px; height: 20px; }

main { padding: var(--s-7) 0 var(--s-8); min-height: 60vh; }
section { margin-top: var(--s-8); }
section:first-child { margin-top: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: var(--t-xs); font-weight: 650; color: var(--accent); margin-bottom: var(--s-3); }
.lede { font-size: var(--t-lg); color: var(--ink-2); max-width: 44em; line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: var(--t-sm); }
.tiny { font-size: var(--t-xs); color: var(--muted); line-height: 1.5; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-4); flex-wrap: wrap; }
.sec-head p { margin: 6px 0 0; color: var(--muted); max-width: 52em; }
.page-head { margin-bottom: var(--s-6); }
.page-head h1 { font-size: var(--t-2xl); }
.page-head .lede { margin-top: var(--s-3); font-size: var(--t-base); color: var(--muted); }

/* ---------- source tooltip: sources stay one hover/tap away, not in the copy */
.src-tip { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-xs); color: var(--faint); cursor: help; position: relative; border-bottom: 1px dotted var(--faint); line-height: 1.2; }
.src-tip svg { width: 12px; height: 12px; }
.src-tip .tip { display: none; position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 40; width: min(320px, 80vw); background: var(--bar); color: #e7e9ee; font: 400 .72rem/1.5 var(--mono); padding: 10px 12px; border-radius: 8px; box-shadow: var(--shadow-lg); white-space: normal; word-break: break-word; }
.src-tip:hover .tip, .src-tip:focus .tip, .src-tip:focus-within .tip { display: block; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 10px 16px; min-height: 42px; border-radius: 10px; font: 580 .95rem var(--sans); cursor: pointer; transition: background .15s, border-color .15s, transform .05s, box-shadow .15s; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { text-decoration: none; border-color: #cfcfc8; background: #fbfbf9; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 6px 16px rgba(48,71,192,.25); }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.lg { padding: 13px 22px; font-size: 1rem; min-height: 48px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.sm { padding: 6px 11px; min-height: 32px; font-size: .85rem; border-radius: 8px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: var(--s-5); }

/* ---------- cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s-5); }
.card h3 { margin-bottom: 10px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }

/* ---------- hero */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-7); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 3.3vw, 3rem); }
.hero h1 em { font-style: normal; color: var(--accent); display: block; }
.hero .lede { margin-top: var(--s-4); }
.trust { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: grid; gap: 8px; font-size: var(--t-sm); color: var(--ink-2); }
.trust li { display: flex; gap: 8px; align-items: center; }
.trust svg { width: 16px; height: 16px; color: var(--ok); flex: none; }

/* the reader loop */
.reader { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.reader-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); font-size: var(--t-sm); }
.reader-top .id { font-family: var(--mono); font-weight: 600; }
.reader-top .stage { color: var(--muted); margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader-top .clock { font-size: var(--t-xs); color: var(--faint); white-space: nowrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.reader-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.bed { background: #1b1d24; display: flex; align-items: center; padding: 10px; }
.bed .frame { width: 100%; border-radius: 4px; }
.frame { position: relative; aspect-ratio: 1584 / 1552; overflow: hidden; background: #111; }
.frame img { width: 151.515%; max-width: none; height: auto; }
.frame .bx { position: absolute; border-radius: 3px; transition: background .3s, box-shadow .3s; }
.frame .bx.ok { background: rgba(21,112,66,.18); box-shadow: inset 0 0 0 1.5px rgba(21,112,66,.65); }
.frame .bx.bad { background: rgba(179,38,30,.22); box-shadow: inset 0 0 0 2px rgba(179,38,30,.9); }
.frame .scan { position: absolute; border-radius: 4px; box-shadow: 0 0 0 2px var(--accent), 0 0 0 6px rgba(48,71,192,.25); transition: left .22s ease, top .22s ease, width .22s ease, height .22s ease, opacity .3s; pointer-events: none; }
.frame .mask-note { position: absolute; right: 0; top: 0; bottom: 0; width: 4%; background: #000; }
.panel { padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 10px; border-left: 1px solid var(--line-2); min-width: 0; }
.panel h4 { margin: 0; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 650; }
.ftiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.ft { border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 7px; min-height: 30px; display: flex; justify-content: space-between; align-items: center; gap: 4px; font-size: .7rem; background: var(--sunken); transition: background .25s, border-color .25s; }
.ft .k { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft .v { font-family: var(--mono); font-weight: 650; font-size: .78rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.ft.ok { background: #fff; border-color: var(--ok-line); }
.ft.bad { background: var(--bad-soft); border-color: var(--bad); flex-wrap: wrap; }
.ft.bad .k { overflow: visible; color: var(--bad); font-weight: 650; }
.ft.bad .v { color: var(--bad); }
.ft.cur { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.ft .sk { display: inline-block; width: 22px; height: 9px; border-radius: 3px; }
.idl { display: grid; gap: 4px; }
.idl div { display: flex; align-items: center; gap: 8px; font-size: .74rem; padding: 4px 8px; border-radius: 6px; background: var(--sunken); color: var(--muted); transition: background .3s, color .3s; }
.idl div b { margin-left: auto; font-family: var(--mono); font-weight: 600; font-size: .72rem; }
.idl div i { font-style: normal; width: 14px; text-align: center; font-weight: 800; }
.idl div.ok { background: var(--ok-soft); color: var(--ok); }
.idl div.bad { background: var(--bad-soft); color: var(--bad); }
.vbar { border-radius: 8px; padding: 9px 11px; font-size: .8rem; font-weight: 600; background: var(--sunken); color: var(--muted); min-height: 40px; display: flex; align-items: center; gap: 8px; transition: background .3s, color .3s; }
.vbar.bad { background: var(--warn-soft); color: var(--warn); }
.vbar.ok { background: var(--ok-soft); color: var(--ok); }

/* skeleton shimmer */
.sk, .skel { background: linear-gradient(90deg, #ebebe6 0%, #f6f6f2 50%, #ebebe6 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; }
.skel { border-radius: 6px; min-height: 14px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- stats */
.stat { padding: var(--s-5) var(--s-5) var(--s-4); display: flex; flex-direction: column; }
.stat .v { font-size: 2.5rem; font-weight: 690; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .l { margin-top: 10px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.stat .s { margin-top: 8px; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.stat .src { margin-top: auto; padding-top: 12px; }
.stat.pending { background: repeating-linear-gradient(-45deg, #fff, #fff 12px, #fafaf7 12px, #fafaf7 24px); border-style: dashed; border-color: #d4d4cc; }
.stat.pending .v { color: var(--faint); }
.progress { height: 6px; background: var(--sunken); border-radius: 99px; overflow: hidden; margin-top: 12px; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

/* ---------- flow diagram */
.flow { display: grid; grid-template-columns: 1fr 34px 1.15fr 34px 1.15fr 34px 1fr; align-items: stretch; }
.flow .step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: var(--shadow); }
.flow .step .k { font-family: var(--mono); font-size: .72rem; color: var(--faint); }
.flow .step h3 { margin: 6px 0 6px; font-size: 1rem; }
.flow .step p { font-size: .86rem; color: var(--muted); margin: 0; line-height: 1.5; }
.flow .step.model { border-color: var(--accent-line); background: linear-gradient(180deg, #fff, var(--accent-soft)); }
.flow .arrow { display: flex; align-items: center; justify-content: center; color: var(--faint); }
.flow .arrow svg { width: 22px; height: 22px; }
.flow .split { display: grid; gap: 10px; grid-template-rows: 1fr 1fr; }
.flow .split .step { padding: 14px 16px; }
.flow .split .ok { border-color: var(--ok-line); background: var(--ok-soft); }
.flow .split .rv { border-color: var(--warn-line); background: var(--warn-soft); }
.flow .split h3 { font-size: .95rem; margin: 0 0 4px; }

/* ---------- key/value lists */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; }
.kv dt { color: var(--muted); font-size: .88rem; }
.kv dd { margin: 0; font-weight: 520; }
.big-num { font-size: 1.9rem; font-weight: 690; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.biz-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-2); }
.biz-row:first-of-type { border-top: 0; padding-top: 4px; }
.biz-row .lab { font-size: .84rem; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; background: var(--bg); border-radius: var(--radius-sm); padding: 16px; margin: 6px 0 14px; }
.vs .mid { color: var(--faint); font-size: .85rem; }
.buyers { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-size: .92rem; }
.buyers li { margin: 4px 0; }

.amd-model { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.amd-model:first-of-type { border-top: 0; }
.amd-model .nm { font-weight: 600; }
.amd-model .role { font-size: .8rem; color: var(--muted); }
.amd-model .figs { text-align: right; font-size: .86rem; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #eeeee9; color: var(--ink-2); white-space: nowrap; border: 1px solid transparent; }
.chip.accent { background: var(--accent-soft); color: var(--accent-ink); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.paper { background: #fff; color: var(--ink-2); border-color: #c9c9c1; }
.chip.ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

.code { font-family: var(--mono); font-size: .8rem; background: #f3f3ef; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; color: var(--ink-2); line-height: 1.6; white-space: pre; }
.code.dark { background: #15171d; color: #e4e6ec; border-color: #15171d; }

/* ---------- form list */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters button { border: 1px solid var(--line); background: var(--surface); padding: 6px 12px; min-height: 34px; border-radius: 999px; font: 540 .85rem var(--sans); cursor: pointer; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.filters button b { font-weight: 650; font-variant-numeric: tabular-nums; }
.filters button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.flist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.fitem { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.fitem:hover { text-decoration: none; border-color: #c9cdd8; box-shadow: var(--shadow); }
.fitem .id { font-family: var(--mono); font-weight: 600; font-size: .92rem; }
.fitem .ln { font-size: .82rem; color: var(--muted); margin-top: 6px; line-height: 1.4; min-height: 2.8em; }
.fitem .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* ---------- inbox */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.kpi { background: var(--surface); padding: 14px 16px; min-width: 0; }
.kpi .l { font-size: var(--t-xs); color: var(--muted); font-weight: 560; line-height: 1.3; min-height: 2.6em; }
.kpi .v { font-size: 1.5rem; font-weight: 690; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.kpi .s { font-size: .72rem; color: var(--faint); }
.toolbar { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; margin: var(--s-5) 0 var(--s-3); }
.toolbar .filters { margin: 0; }
.toolbar .grow { flex: 1; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 0 10px; min-height: 38px; }
.search svg { width: 16px; height: 16px; color: var(--faint); }
.search input { border: 0; outline: 0; font: 500 .9rem var(--sans); background: transparent; width: 180px; min-width: 0; }
select.sel { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; min-height: 38px; padding: 0 10px; font: 500 .88rem var(--sans); color: var(--ink-2); }
.itable { font-size: .86rem; background: var(--surface); }
.itable th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafaf8; position: sticky; top: 0; }
.itable td { white-space: nowrap; padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.itable tr:hover td { background: #fafaf8; }
.itable td.n, .itable th.n { text-align: right; font-variant-numeric: tabular-nums; }
.itable .id a { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.itable .why { color: var(--muted); max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tablecard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tablecard .tablewrap { max-height: 70vh; overflow: auto; }
.tablefoot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: var(--t-xs); color: var(--muted); border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.empty { text-align: center; padding: var(--s-7) var(--s-5); color: var(--muted); }
.empty svg { width: 36px; height: 36px; color: var(--faint); margin: 0 auto var(--s-3); display: block; }
.empty b { display: block; color: var(--ink-2); font-size: var(--t-base); margin-bottom: 4px; }

/* ---------- verdict banner */
.verdict { display: flex; gap: 16px; align-items: center; border-radius: var(--radius); padding: 18px 22px; border: 1px solid; }
.verdict.ok { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.verdict.bad { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
.verdict .icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; }
.verdict.ok .icon { background: var(--ok); }
.verdict.bad .icon { background: var(--warn); }
.verdict .t { font-weight: 650; font-size: 1.12rem; color: var(--ink); line-height: 1.35; }
.verdict .sub { font-size: .85rem; color: var(--ink-2); margin-top: 2px; }

/* ---------- viewer */
.viewer { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 26px; align-items: start; margin-top: 22px; }
.sticky { position: sticky; top: 82px; }
.page-frame { width: 100%; aspect-ratio: 1680 / 1552; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: #000; }
.page-frame img { width: 142.857%; max-width: none; height: auto; }
.page-img { border-radius: 10px; border: 1px solid var(--line); background: #fff; width: 100%; }
.placeholder { border: 1.5px dashed #cfcfc8; border-radius: 12px; padding: 40px 24px; text-align: center; color: var(--muted); background: repeating-linear-gradient(-45deg, #fafaf8, #fafaf8 10px, #f4f4f0 10px, #f4f4f0 20px); }
.placeholder strong { color: var(--ink-2); display: block; margin-bottom: 6px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs a { font-size: .8rem; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-2); background: var(--surface); }
.tabs a.on { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); font-weight: 600; }
.tabs a:hover { text-decoration: none; }

table { border-collapse: collapse; width: 100%; }
.ftable { font-size: .88rem; }
.ftable th { text-align: left; font-weight: 560; color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ftable td { padding: 7px 8px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.ftable td.n { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.ftable th.n { text-align: right; }
.ftable tr.sep td { border-top: 1px solid var(--line); }
.ftable .fname { font-weight: 560; color: var(--ink); }
.others summary { cursor: pointer; margin: -4px 0 10px; color: var(--muted); }
.ftable .key { font-family: var(--mono); font-size: .8rem; font-weight: 600; color: var(--ink); }
.ftable .nm { color: var(--muted); font-size: .74rem; line-height: 1.3; }
.ftable tr.bad td { background: #fff8ec; }
.ftable tr.bad td.n.hl, .ftable td.n.hl { color: var(--bad); font-weight: 700; }
.ftable td.diff { color: var(--warn); font-weight: 650; }
.ftable tr.croprow td { background: #fafaf8; padding: 10px; }
.ftable tr.croprow img { border-radius: 8px; border: 1px solid var(--line); max-height: 120px; width: auto; }
.st { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: .72rem; font-weight: 700; flex: none; }
.st.ok { background: var(--ok-soft); color: var(--ok); }
.st.bad { background: var(--bad-soft); color: var(--bad); }
.st.na { background: #efefea; color: var(--faint); }
.linkbtn { background: none; border: 0; color: var(--accent); cursor: pointer; font: 500 .78rem var(--sans); padding: 2px 4px; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.idents { display: grid; gap: 8px; }
.ident { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; border: 1px solid; font-size: .9rem; }
.ident.ok { border-color: #c8e4d2; background: var(--ok-soft); }
.ident.bad { border-color: var(--bad-line); background: var(--bad-soft); }
.ident.na { border-color: var(--line); background: #f6f6f2; color: var(--muted); }
.ident .nm { flex: 1; font-weight: 540; color: var(--ink); }
.ident .eq { font-family: var(--mono); font-size: .84rem; white-space: nowrap; }
.ident.ok .eq { color: var(--ok); }
.ident.bad .eq { color: var(--bad); font-weight: 650; }

/* ---------- live job */
.live { border: 1px solid var(--accent-line); background: linear-gradient(180deg, #fff 0%, #f6f8fe 100%); }
.live-act { display: flex; align-items: center; gap: 14px; }
.live-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.timer { font-family: var(--mono); font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent-ink); }
.jobsteps { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: grid; gap: 2px; }
.jobsteps li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: .86rem; color: var(--faint); }
.jobsteps li .ic { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #d6d6cf; flex: none; display: grid; place-items: center; font-size: .65rem; font-weight: 800; }
.jobsteps li .tt { margin-left: auto; font-family: var(--mono); font-size: .74rem; color: var(--faint); }
.jobsteps li.now { color: var(--ink); background: var(--accent-soft); font-weight: 560; }
.jobsteps li.now .ic { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.jobsteps li.did { color: var(--ink-2); }
.jobsteps li.did .ic { border-color: var(--ok); background: var(--ok); color: #fff; }
.jobsteps li.did .ic::after { content: "✓"; }
.jobsteps li.fail { color: var(--warn); }
.jobsteps li.fail .ic { border-color: var(--warn); background: var(--warn); color: #fff; }
.jobsteps li.fail .ic::after { content: "!"; }
@keyframes spin { to { transform: rotate(360deg); } }
.qpos { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 650; padding: 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); }
.banner { display: flex; gap: 12px; align-items: flex-start; border-radius: 10px; padding: 12px 14px; margin-top: var(--s-3); font-size: .88rem; border: 1px solid var(--warn-line); background: var(--warn-soft); color: #6d3f00; }
.banner svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.banner .grow { flex: 1; }
.banner.ok { border-color: var(--ok-line); background: var(--ok-soft); color: var(--ok); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; margin-top: 14px; }
.tile { border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; background: #fff; transition: opacity .25s, border-color .25s, background .25s; min-height: 50px; }
.tile.wait .v { width: 46px; height: 14px; margin-top: 4px; }
.tile.in { opacity: 1; }
.tile.ok { border-color: #c8e4d2; }
.tile.bad { border-color: var(--bad-line); background: var(--bad-soft); }
.tile.measured { border-style: dashed; }
.tile .k { font-family: var(--mono); font-size: .66rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .v { font-family: var(--mono); font-size: .95rem; font-weight: 650; }
.tile .v span { color: var(--faint); font-weight: 450; font-size: .78rem; }
.note { font-size: .8rem; color: var(--muted); background: #f3f3ee; border-radius: 9px; padding: 10px 12px; margin-top: 12px; line-height: 1.5; }
.msg { margin-top: 12px; padding: 12px 14px; border-radius: 10px; font-size: .9rem; }
.msg.warn { background: var(--warn-soft); color: #6d3f00; }
.msg.ok { background: var(--ok-soft); color: var(--ok); }
.msg.bad { background: var(--bad-soft); color: var(--bad); }

/* ---------- try it */
.drop { border: 2px dashed #c9cdd9; border-radius: 16px; background: linear-gradient(180deg, #fff, #f7f8fd); padding: var(--s-6) var(--s-5); text-align: center; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop .big { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto var(--s-3); }
.drop .big svg { width: 26px; height: 26px; }
.drop h2 { font-size: var(--t-lg); }
.drop .actions { justify-content: center; margin-top: var(--s-4); }
.samples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin-top: var(--s-4); }
.sample { display: flex; gap: 12px; align-items: center; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s; }
.sample:hover { border-color: var(--accent-line); box-shadow: var(--shadow); }
.sample img { width: 64px; height: 60px; object-fit: cover; object-position: left top; border-radius: 6px; border: 1px solid var(--line); flex: none; }
.sample b { display: block; font-size: .9rem; }
.sample span { font-size: .76rem; color: var(--muted); }
.goodphoto { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.goodphoto li { display: flex; gap: 10px; font-size: .9rem; color: var(--ink-2); }
.goodphoto svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 2px; }
.sheet-illo { width: 100%; max-width: 220px; margin: 0 auto; display: block; }
.privacy { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--ink-2); background: var(--sunken); border-radius: 10px; padding: 12px 14px; }
.privacy svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }

/* ---------- review + audit */
.qcard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.qcard + .qcard { margin-top: 16px; }
.qcard.done { opacity: .78; }
.qcard .crops { display: grid; gap: 10px; }
.qcard .crops figure { margin: 0; }
.qcard .crops figcaption { font-family: var(--mono); font-size: .74rem; color: var(--muted); margin-bottom: 4px; }
.qcard .crops img { border-radius: 8px; border: 1px solid var(--line); }
.inputs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.inputs label { font-size: .76rem; color: var(--muted); display: block; }
.inputs label b { font-family: var(--mono); color: var(--ink); font-weight: 600; }
.inputs input { width: 100%; margin-top: 4px; font: 600 1rem var(--mono); padding: 8px 10px; border: 1px solid #d3d3cc; border-radius: 8px; background: #fff; }
.inputs input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; color: var(--ink-2); margin: 8px 0; }
textarea { width: 100%; font: .9rem var(--sans); border: 1px solid #d3d3cc; border-radius: 8px; padding: 8px 10px; min-height: 40px; resize: vertical; }

.err { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.err + .err { margin-top: 16px; }
.vals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.vals .box { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.vals .box .l { font-size: .74rem; color: var(--muted); }
.vals .box .v { font-family: var(--mono); font-size: 1.35rem; font-weight: 650; }
.vals .box.wrong { background: var(--bad-soft); border-color: var(--bad-line); }
.vals .box.wrong .v { color: var(--bad); text-decoration: line-through; text-decoration-thickness: 2px; }
.vals .box.right { background: var(--ok-soft); border-color: #c8e4d2; }
.vals .box.right .v { color: var(--ok); }

/* ---------- results */
.rtable { font-size: .86rem; }
.rtable th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 560; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rtable td { padding: 10px; border-bottom: 1px solid var(--line-2); font-variant-numeric: tabular-nums; vertical-align: top; }
.rtable tr.hl td { background: var(--accent-soft); }
.callout { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; }
.callout.warn { border-color: var(--warn); }
.callout.bad { border-color: var(--bad); }
.callout.ok { border-color: var(--ok); }
.sources { font-size: .78rem; color: var(--muted); }
.sources li { margin: 3px 0; word-break: break-word; }

/* ---------- api */
.endpoint { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
.method { font: 700 .72rem var(--mono); padding: 3px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); }
.method.post { background: var(--ok-soft); color: var(--ok); }
.copybox { position: relative; }
.copybox .code { padding-right: 96px; }
.copybox .btn { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.08); color: #e4e6ec; border-color: rgba(255,255,255,.18); }

/* ---------- ledger */
.ledger td.n, .ledger th.n { text-align: right; }
.ledger td.miss { color: var(--warn); font-weight: 700; }
.ledger th.yr { font-family: var(--mono); font-size: .8rem; text-transform: none; letter-spacing: 0; color: var(--ink); text-align: right; }
.ledger tr.tot td { border-top: 1px solid var(--line); font-weight: 650; }
.ledger td.colbad { background: #fff6ea; }

/* ---------- footer */
footer { background: var(--bar); color: #a9adb7; padding: var(--s-7) 0 var(--s-6); font-size: .8rem; line-height: 1.6; }
footer a { color: #d9dce3; }
footer .cols { display: grid; grid-template-columns: 1.3fr .8fr 1.6fr; gap: var(--s-6); }
footer h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 var(--s-3); }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
footer p { margin: 0 0 8px; }
footer .base { border-top: 1px solid rgba(255,255,255,.1); margin-top: var(--s-6); padding-top: var(--s-4); display: flex; gap: var(--s-4); flex-wrap: wrap; justify-content: space-between; color: #80858f; }
footer .brand { margin-bottom: var(--s-3); }
footer .fbar { display: flex; gap: var(--s-6); align-items: baseline; flex-wrap: wrap; }
footer .fbar .brand { margin-bottom: 0; }
footer .flinks { display: flex; flex-wrap: wrap; gap: 6px 18px; flex: 1 1 420px; }
footer .flinks a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
footer .pdot { width: 7px; height: 7px; border-radius: 50%; background: #8a8f9a; flex: none; }
footer .pdot.up { background: #3ccf7c; }
footer .pdot.busy, footer .pdot.degraded { background: #f2a83b; }
footer .base > span:first-child { flex: 1 1 520px; }

/* ---------- responsive */
@media (max-width: 1100px) {
  .nav a { padding: 7px 8px; }
  .nav a span.lbl-long { display: none; }
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .flow .arrow { height: 30px; transform: rotate(90deg); }
  .flow .split { grid-template-rows: auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menubtn { display: inline-grid; place-items: center; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bar); flex-direction: column; padding: 8px 16px 16px; border-top: 1px solid rgba(255,255,255,.08); box-shadow: 0 18px 40px rgba(0,0,0,.3); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 1rem; }
  .nav a span.lbl-long { display: inline; }
  .top .wrap { position: relative; }
  .amdpill { margin-left: auto; }
  .menubtn { margin-left: auto; }
  .livedot + .menubtn { margin-left: 0; }
}
@media (max-width: 860px) {
  .grid2, .grid3, .viewer, .qcard, .err { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
  .second-m { order: 2; }
  footer .cols { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .itable .hide-m { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 var(--s-4); }
  main { padding-top: var(--s-5); }
  section { margin-top: var(--s-7); }
  .top .wrap { gap: 10px; height: 56px; }
  .brand { font-size: 1rem; }
  .amdpill { padding: 4px 8px; }
  .card { padding: 18px; }
  .hero h1 { font-size: 2.05rem; }
  .hero .lede { font-size: var(--t-base); }
  .trust { display: none; }
  .reader-body { grid-template-columns: minmax(0, 1fr); }
  .panel { border-left: 0; border-top: 1px solid var(--line-2); }
  .ftiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .reader-top .stage { display: none; }
  .grid4 { grid-template-columns: minmax(0, 1fr); }
  .stat .v { font-size: 2.2rem; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .biz-row { grid-template-columns: 1fr; gap: 10px; }
  .vs { grid-template-columns: 1fr; text-align: left; }
  .flow .split { grid-template-columns: minmax(0, 1fr); }
  .ftable td, .ftable th { padding-left: 5px; padding-right: 5px; }
  .ftable { font-size: .82rem; }
  .ftable .key { font-size: .72rem; }
  .kv { grid-template-columns: minmax(0, auto) minmax(0, 1fr); }
  .stat .src, .tiny { overflow-wrap: anywhere; }
  .ftable .nm { display: none; }
  .verdict { padding: 14px 16px; }
  .verdict .t { font-size: 1rem; }
  .vals { grid-template-columns: 1fr 1fr; }
  .samples { grid-template-columns: minmax(0, 1fr); }
  .search input { width: 120px; }
  .itable .why { max-width: 160px; }
  .actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Evolus case panel (additive) */
.evo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.evo-notes { display: grid; gap: 6px; padding: 10px 12px; border-radius: 8px; background: var(--warn-soft); }
.evo-steps { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.evo-steps li { padding-left: 2px; overflow-wrap: anywhere; }
.evo.compact .evo-notes { font-size: .8rem; }

/* Overview: product line, the receipt the hero loop ends on, the honest sentence */
.hero .product { margin-top: var(--s-3); font-weight: 600; color: var(--ink); border-left: 3px solid var(--accent); padding-left: 12px; }
.reader { position: relative; }
.receipt { position: absolute; inset: 49px 0 0 0; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(20, 22, 28, .55); opacity: 0; pointer-events: none; transition: opacity .45s; }
.receipt.on { opacity: 1; pointer-events: auto; }
.rc-card { background: var(--surface); border: 2px solid var(--bad); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 16px 18px; width: min(520px, 100%); }
.rc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .82rem; }
.rc-card img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); margin-top: 10px; }
.rc-line { margin: 12px 0 10px; font-weight: 650; color: var(--bad); line-height: 1.4; }
.rc-vals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rc-vals > div { border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.rc-vals .l { font-size: .7rem; color: var(--muted); }
.rc-vals .v { font: 700 1.5rem/1.1 var(--mono); margin-top: 2px; }
.rc-vals .t { font-size: .68rem; color: var(--muted); }
.rc-vals .ok { border-color: var(--ok-line); background: var(--ok-soft); }
.rc-vals .ok .v { color: var(--ok); }
.rc-vals .bad { border-color: var(--bad-line); background: var(--bad-soft); }
.rc-vals .bad .v { color: var(--bad); text-decoration: line-through; text-decoration-thickness: 2px; }
.rc-foot { margin: 10px 0 0; font-size: .78rem; color: var(--muted); }
.card.honest { margin-top: var(--s-4); border-left: 4px solid var(--ink); }
.card.honest p { margin: 0; font-size: 1.08rem; font-weight: 560; line-height: 1.5; }
.featured .crops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.featured .crops img { width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.bytype { width: 100%; border-collapse: collapse; }
.bytype td, .bytype th { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line-2); }
.bytype td.n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; }
@media (max-width: 860px) { .featured .crops { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .receipt { inset: 45px 0 0 0; padding: 10px; align-items: flex-start; }
  .rc-vals .v { font-size: 1.2rem; }
}

/* ---- Audit your capture (/audit/new, /audit/{id}) */
.au-head { margin-bottom: var(--s-5); }
.au-sample { display: flex; gap: var(--s-5); align-items: center; justify-content: space-between; border-color: var(--accent-line); background: linear-gradient(180deg, #fff, var(--accent-soft)); }
.au-sample h2 { margin: 0; }
.au-sample-go { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
.au-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.au-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-top: 1px solid var(--line-2); }
.au-step h3 { margin: 2px 0 4px; }
.au-step p.small { margin: 0 0 10px; }
.au-n { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 650; font-size: .9rem; }
.au-step[hidden], .au-file[hidden] { display: none; }
.au-file { display: block; cursor: pointer; }
.au-file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.au-file > span { display: flex; align-items: center; gap: 10px; border: 1.5px dashed var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); border-radius: 12px; padding: 14px 16px; }
.au-file > span svg { width: 20px; height: 20px; flex: none; }
.au-file:hover > span, .au-file input:focus-visible + span { border-color: var(--accent); }
.au-msg { font-size: var(--t-sm); color: var(--muted); margin: 8px 0 0; min-height: 1.2em; }
.au-msg.bad { color: var(--bad); }
.au-map { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; max-height: 460px; overflow-y: auto; }
.au-maprow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line-2); font-size: .9rem; }
.au-maprow:last-child { border-bottom: 0; }
.au-maprow.au-id { background: #fafaf8; }
.au-maprow select { width: 100%; min-width: 0; }
.au-auto { font-size: .68rem; padding: 1px 7px; margin-left: 4px; }
.au-maprow .au-sec { display: block; font-size: .75rem; color: var(--muted); }
.au-radio { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.au-radio input { margin-top: 4px; accent-color: var(--accent); }
.au-radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.au-what h3 { margin-top: 0; }
.au-list { margin: 0; padding-left: 18px; font-size: var(--t-sm); color: var(--ink-2); }
.au-list li { margin-bottom: 8px; }
.au-pending { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: var(--s-4); border-left: 4px solid var(--warn-line); font-size: var(--t-sm); }
.au-check { margin-top: var(--s-4); }
.au-check-t { font-size: var(--t-sm); }
.au-bars { display: grid; gap: 8px; margin-top: 10px; }
.au-bar { display: grid; grid-template-columns: 84px minmax(0, 1fr) 128px; gap: 12px; align-items: center; }
.au-bar .chip { justify-content: center; }
.au-track { height: 10px; background: var(--sunken); border-radius: 999px; overflow: hidden; }
.au-track span { display: block; height: 100%; background: var(--bad); border-radius: 999px; }
.au-wrap { max-height: none; overflow-x: auto; }
.au-table td { vertical-align: top; }
.au-table .au-pos { color: var(--faint); font-weight: 600; }
.au-table .au-img img { width: 200px; max-width: 200px; border: 1px solid var(--line); border-radius: 6px; display: block; }
.au-table .au-id a { font-weight: 650; color: var(--ink); }
.au-table .au-f { color: var(--ink-2); font-weight: 560; margin-top: 2px; }
.au-table .au-v { font-size: .98rem; font-variant-numeric: tabular-nums; }
.au-table .au-keyed { color: var(--bad); }
.au-table .au-lab { display: none; }
.au-table .au-ev { white-space: normal; min-width: 240px; max-width: 330px; }
.au-table th, .au-table td { padding-left: 10px; padding-right: 10px; }
.au-table .au-ev ul { margin: 6px 0 4px; padding-left: 16px; font-size: .8rem; color: var(--muted); }
.au-table .au-ev li.pos::marker { color: var(--bad); }
.au-table .au-ev li.neg::marker { color: var(--faint); }
.au-mkb { display: flex; flex-direction: column; gap: 6px; }
.au-mkb button { display: inline-flex; align-items: center; gap: 5px; justify-content: center; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 5px 10px; font: 560 .78rem var(--sans); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.au-mkb button svg { width: 13px; height: 13px; }
.au-mkb button:hover { border-color: var(--faint); }
.au-mkb button[data-mark=confirmed].on { background: var(--bad); color: #fff; border-color: var(--bad); }
.au-mkb button[data-mark=not_error].on { background: var(--ok); color: #fff; border-color: var(--ok); }
.au-table .chip { font-size: .7rem; }
@media (max-width: 1020px) {
  .au-grid { grid-template-columns: minmax(0, 1fr); }
  .au-table .au-img img { width: 150px; }
}
@media (max-width: 860px) {
  .au-sample { flex-direction: column; align-items: stretch; }
  .au-sample-go { align-items: stretch; text-align: center; }
  .au-table thead { display: none; }
  .au-table, .au-table tbody, .au-table tr, .au-table td { display: block; width: 100%; }
  .au-table tr { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 10px; padding: 14px 14px 12px; border-bottom: 1px solid var(--line); }
  .au-table tr[hidden] { display: none; }
  .au-table td { padding: 0; border: 0; white-space: normal; }
  .au-table tr:hover td { background: none; }
  .au-table .au-pos { position: absolute; top: 14px; right: 14px; width: auto; }
  .au-table .au-id { grid-column: 1 / -1; order: -2; padding-right: 40px; }
  .au-table .au-img { grid-column: 1 / -1; order: -1; margin: 6px 0 4px; }
  .au-table .au-img img { width: 100%; max-width: none; }
  .au-table .au-v { text-align: left; }
  .au-table .au-lab { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
  .au-table .au-ev { grid-column: 1 / -1; min-width: 0; max-width: none; margin-top: 6px; }
  .au-table .au-mk { grid-column: 1 / -1; }
  .au-mkb { flex-direction: row; }
  .au-mkb button { flex: 1; padding: 8px 10px; }
  .au-bar { grid-template-columns: 70px minmax(0, 1fr); }
  .au-bar .mono { grid-column: 2; }
  .au-maprow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* narrow phones: the brand keeps its room; a long AMD status shortens instead of running under it */
@media (max-width: 480px) {
  .top .wrap { gap: 10px; }
  .brand { flex: none; }
  .amdpill { min-width: 0; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 1.5; }
  .amdpill .pdot { display: inline-block; margin-right: 6px; vertical-align: 0; }
}

/* Request an audit (/audit/request) */
.rq-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.rq-form { display: grid; gap: 16px; }
.rq-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rq-f { display: grid; gap: 6px; margin: 0; min-width: 0; }
.rq-f > span, .rq-f legend { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.rq-f input:not([type=radio]), .rq-f select, .rq-f textarea { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; min-height: 40px; padding: 8px 11px; font: 500 .92rem var(--sans); color: var(--ink); }
.rq-f textarea { resize: vertical; min-height: 76px; }
.rq-f input:focus, .rq-f select:focus, .rq-f textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.rq-where { border: 0; padding: 0; }
.rq-where legend { margin-bottom: 6px; padding: 0; }
.rq-where .au-radio { margin-bottom: 6px; font-size: .9rem; }
.rq-where input[type=url][hidden] { display: none; }
.rq-quote b { min-height: 40px; display: flex; align-items: center; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.rq-err { color: var(--bad); font-size: .8rem; font-style: normal; font-weight: 550; }
.rq-top { background: var(--bad-soft); border: 1px solid var(--bad-line); border-radius: 10px; padding: 10px 12px; margin: 0; }
.rq-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rq-price { display: grid; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rq-turn { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--ok); }
.rq-turn svg { width: 18px; height: 18px; }
.rq-done { grid-column: 1 / -1; max-width: 640px; }
.rq-id { font-family: var(--mono); font-size: 1.6rem; font-weight: 650; letter-spacing: -.01em; margin: 4px 0 16px; }
@media (max-width: 860px) { .rq-grid, .rq-row2 { grid-template-columns: minmax(0, 1fr); } }

/* ======================================================================= the cut: nav, first screen, station */
.more { position: relative; }
.more summary { list-style: none; cursor: pointer; color: #c9ccd4; padding: 7px 11px; border-radius: 8px; font-size: var(--t-sm); font-weight: 520; white-space: nowrap; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .7; }
.more summary:hover, .more[open] summary { background: rgba(255,255,255,.08); color: #fff; }
.more-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: var(--bar); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.35); display: flex; flex-direction: column; z-index: 40; }
.nav .more-menu a { display: flex; align-items: center; gap: 8px; color: #c9ccd4; padding: 8px 10px; border-radius: 7px; font-size: var(--t-sm); white-space: nowrap; }
.nav .more-menu a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.more-menu .pdot { width: 8px; height: 8px; border-radius: 50%; background: #8a8f9a; flex: none; }
.more-menu .pdot.up { background: #3ccf7c; }
.more-menu .pdot.busy, .more-menu .pdot.degraded { background: #f2a83b; }
.livedot { display: inline-flex; align-items: center; gap: 7px; color: #c9ccd4; font-size: var(--t-xs); font-weight: 600; padding: 5px 9px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); white-space: nowrap; }
.livedot:hover { color: #fff; text-decoration: none; }
.livedot .ldot, .strip .ldot { width: 8px; height: 8px; border-radius: 50%; background: #8a8f9a; display: inline-block; }
.livedot.live .ldot, .strip .ldot.on { background: #3ccf7c; animation: pulse 2.2s infinite; }
.livedot.warn .ldot { background: #f2a83b; }
.livedot.ok .ldot { background: #3ccf7c; }

.first { padding-top: 6px; }
.f-h1 { font-size: clamp(2rem, 3.4vw, 3.05rem); max-width: 22em; }
.f-sub { margin: 12px 0 0; font-size: var(--t-lg); color: var(--ink-2); max-width: 46em; line-height: 1.5; }
.f-live { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-5); margin-top: var(--s-6); align-items: stretch; }
.strip { display: flex; flex-direction: column; justify-content: space-between; padding: 22px 24px 18px; }
.strip .nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.strip .v { font-size: clamp(2.3rem, 4.2vw, 3.6rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-family: var(--sans); }
.strip .n-conf .v { color: var(--ok); }
.strip .l { margin-top: 8px; font-weight: 600; font-size: .92rem; line-height: 1.3; color: var(--ink-2); }
.strip .meta { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: .82rem; color: var(--muted); }
.strip .meta .ldot { margin-right: 6px; vertical-align: 0; }
.strip .tag { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn-line); border-radius: 999px; padding: 1px 9px; font-weight: 650; font-size: .76rem; }
.rcard { display: block; color: inherit; padding: 16px 18px; border: 1px solid var(--ok-line); }
.rcard:hover { border-color: var(--ok); }
.rslide .rimg { display: block; }
.rcap { margin: -4px 0 10px; font-size: .8rem; color: var(--ink-2); }
.rid a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line); }
.rslide .rimg { background: var(--sunken); border-radius: 8px; border: 1px solid var(--line); overflow: hidden; }
.rslide img { width: 100%; height: auto; max-height: 150px; object-fit: contain; }
.rvals { margin: 12px 0 10px; font-size: .95rem; line-height: 1.45; }
.rvals b { font-family: var(--mono); font-size: 1.12rem; }
.okv { color: var(--ok); }
.badv { color: var(--bad); text-decoration: line-through; text-decoration-thickness: 2px; }
.rfoot { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.rslide.on { animation: rfade .45s ease; }
@keyframes rfade { from { opacity: .2; } to { opacity: 1; } }
.f-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: var(--s-4); }
.f-diff { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }

.measured .stat .v { font-size: 1.85rem; white-space: nowrap; }
@media (max-width: 1240px) { .measured { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.measured .vs-word { font-size: .5em; color: var(--faint); font-weight: 600; letter-spacing: 0; margin: 0 2px; }
.anyform { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.anyform-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
.anyform-side .code { overflow-x: auto; }
.gifcard { padding: 8px; }
.builder-gif { width: 100%; height: auto; display: block; border-radius: 9px; background: var(--sunken); aspect-ratio: 16 / 10; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 var(--s-5); }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.tabs .tab-cta { margin-left: auto; align-self: center; }

.st-pick { display: grid; gap: 12px; }
.st-in { position: relative; display: flex; gap: 8px; margin-top: 4px; }
.st-in input { flex: 1; min-width: 0; font: 600 1.15rem var(--mono); padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-transform: uppercase; }
.st-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); z-index: 20; max-height: 320px; overflow: auto; }
.st-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: .92rem; }
.st-list li:hover, .st-list li.on { background: var(--accent-soft); }
.st-tree { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.st-tree select { font: 500 .95rem var(--sans); padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); min-width: 0; }
.st-ex { margin: 0; }
.st-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.st-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.st-page { padding: 8px; }
.st-page img { width: 100%; border-radius: 8px; }
.st-side { display: grid; gap: 12px; }
.st-rc img { width: 100%; max-height: 140px; object-fit: contain; background: var(--sunken); border-radius: 8px; border: 1px solid var(--line); }
.st-rc .rvals { margin: 10px 0 8px; }
.st-queue h3 { font-size: 1.15rem; }
.st-qrow { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.qpos .v { font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--accent); }
.qpos .l { font-size: .85rem; color: var(--muted); margin-top: 4px; }

@media (max-width: 1100px) {
  .nav a, .more summary { padding: 7px 8px; }
}
@media (max-width: 1020px) {
  .f-live, .anyform, .st-grid { grid-template-columns: minmax(0, 1fr); }
  .more summary { display: none; }
  .more-menu { position: static; display: flex; background: none; border: 0; box-shadow: none; padding: 6px 0 0; border-top: 1px solid rgba(255,255,255,.08); margin-top: 6px; min-width: 0; }
  .nav .more-menu a { padding: 10px; font-size: .95rem; }
  .livedot { margin-left: auto; }
}
.m-only { display: none; }
@media (max-width: 560px) {
  .d-only, #stripPrice { display: none; }
  .m-only { display: block; }
  .fold { min-height: calc(100vh - 56px - 24px); min-height: calc(100svh - 56px - 24px); display: flex; flex-direction: column; }
  .f-h1 { font-size: 1.6rem; }   /* two lines at 390 px once Inter has loaded; 1.85rem wrapped to three and pushed the main button below the fold */
  .f-live { margin-top: 16px; gap: 12px; }
  .f-actions { margin-top: 14px; }
  .f-second { display: none; }
  .f-actions .btn, .below-fold .btn { width: 100%; }
  .below-fold { padding-top: 8px; }
  .below-fold .f-sub { font-size: var(--t-base); margin: 0 0 14px; }
  .strip { padding: 14px 16px 12px; }
  .strip .nums { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .strip .n-disp { display: none; }
  .strip .v { font-size: 2.1rem; }
  .strip .l { font-size: .82rem; }
  .strip .meta { display: none; }
  .rcard { padding: 12px 14px; }
  .rslide img { max-height: 92px; }
  .rvals { font-size: .86rem; margin: 8px 0 6px; }
  .rvals b { font-size: 1rem; }
  .livedot .ltxt { display: none; }
  .st-tree { grid-template-columns: minmax(0, 1fr); }
  .st-in { flex-wrap: wrap; }
  .st-in .btn { width: 100%; }
  .tabs a { padding: 9px 10px; }
  .tabs .tab-cta { display: none; }
}

.res-report { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-left: 4px solid var(--accent); }
.res-jump { margin: 12px 0 0; color: var(--muted); }
.allruns > summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.allruns > summary::-webkit-details-marker { display: none; }
.allruns > summary h2::after { content: " +"; color: var(--faint); }
.allruns[open] > summary h2::after { content: " -"; }
.allruns .allrun { margin-top: var(--s-5); }
.amdpill.on-light { color: var(--ink); border-color: var(--line); }
@media (max-width: 640px) { .measured { grid-template-columns: minmax(0, 1fr); } .measured .stat .v { white-space: normal; } }
.st-head { margin-bottom: var(--s-5); }
section.st-pick { margin-top: 0; }
section.st-ans { margin-top: var(--s-6); }

.gtable tr.ph td { color: var(--muted); }
.gtake { margin: 14px 0 0; font-weight: 560; border-left: 3px solid var(--ink); padding-left: 12px; max-width: 60em; }
.fold-note { margin: 10px 2px 0; font-size: .8rem; color: var(--muted); line-height: 1.45; }
.fold-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* Judge this verdict yourself; the 52's confirmation line; the hero's regulation line and live counter */
.judge-body { max-width: 760px; }
.j-img { background: var(--sunken); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.j-img img { display: block; width: 100%; height: auto; }
.j-form { display: grid; gap: 12px; margin-top: 16px; }
.j-in { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.j-in input { font: 600 1.5rem/1.2 var(--mono); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); width: 100%; max-width: 260px; }
.j-flags { display: flex; gap: 18px; flex-wrap: wrap; font-size: .92rem; }
.j-flags label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.j-act { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.j-err { color: var(--bad); font-weight: 600; }
.j-reveal { margin-top: 16px; }
.j-form[hidden], .j-reveal[hidden] { display: none; }
.j-you { margin: 0 0 12px; }
.j-vals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.judge-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 12px; }
.judge-row .jc { font-size: .8rem; color: var(--muted); }
.conf { margin-top: 8px; font-size: .84rem; color: var(--ink-2); line-height: 1.45; }
.conf b { font-weight: 650; }
.conf .ok { color: var(--ok); }
.conf .pend { color: var(--warn); font-weight: 600; }
.f-two { margin: 6px 0 0; font-size: .98rem; font-weight: 600; color: var(--ink-2); }
.f-user { margin: 8px 0 0; font-size: 1.05rem; font-weight: 650; color: var(--accent-ink); }
.f-reg { margin: 12px 0 0; font-size: 1.04rem; color: var(--ink-2); max-width: 52em; line-height: 1.55; }
.f-reg a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line); }
.f-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5); margin-top: var(--s-5); align-items: stretch; }
.f-hero .rcard, .f-hero .strip { height: 100%; }
.f-hero + .fold-note { margin-top: 12px; }
.strip .nums.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.strip .nums.four .v { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.strip .v .unit { font-size: .55em; font-weight: 650; letter-spacing: -0.01em; margin-left: 1px; color: var(--ink-2); }
.strip .n-day .v { color: var(--ok); }
.buyer { border: 1px solid var(--accent-soft); }
.buyer-hero { margin-top: var(--s-5); }   /* under the first-screen actions: the main button stays above the fold */
.below-fold .buyer-phone { margin: 0 0 14px; text-align: left; }
@media (max-width: 560px) { .buyer-hero { display: none; } }   /* the .m-only breakpoint */
@media (max-width: 860px) {
  .f-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .f-reg { font-size: .9rem; margin-top: 8px; }
  .f-two { font-size: .86rem; margin-top: 4px; }
  .f-hero { margin-top: 14px; gap: 12px; }
  .strip .nums.four { gap: 10px 12px; }
  .strip .nums.four .v { font-size: 1.6rem; }
  .rfoot .chip { white-space: normal; }
  .j-vals { grid-template-columns: minmax(0, 1fr); }
}

/* English captions for Spanish number words; the judge page's helper */
.en-cap { color: var(--ink-2); }
.j-helper { border-collapse: collapse; margin-top: 8px; columns: 2; }
.j-helper td { padding: 2px 12px 2px 0; border-bottom: 1px solid var(--line-2); }

/* Home as a product page: hook, receipt + three proof tiles, actions, five steps, the live counter */
.f-eyebrow { margin: 0 0 var(--s-2); }
.proof { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.ptile { display: grid; grid-template-columns: minmax(0, 1fr) 20px; grid-template-areas: "v go" "l go"; align-items: center;
  column-gap: var(--s-3); padding: 14px 18px; color: inherit; text-decoration: none; }
.ptile:hover { text-decoration: none; border-color: var(--accent-line); }
.ptile .pv { grid-area: v; font-family: var(--sans); font-size: clamp(1.5rem, 2.3vw, 2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.ptile .pvs { font-size: .55em; font-weight: 650; letter-spacing: 0; color: var(--muted); }
.ptile .pl { grid-area: l; margin-top: 4px; font-size: .9rem; line-height: 1.35; color: var(--ink-2); }
.ptile .pgo { grid-area: go; color: var(--faint); display: flex; }
.ptile .pgo svg { width: 18px; height: 18px; }
.ptile:hover .pgo { color: var(--accent); }
.f-hero .proof { height: 100%; }
.f-actions { align-items: center; }
.f-try { font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; }
.f-try svg { width: 16px; height: 16px; }
.steps5 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-3); counter-reset: s5; }
.steps5 .s5 { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 14px; box-shadow: var(--shadow); counter-increment: s5; position: relative; }
.steps5 .s5::before { content: "0" counter(s5); position: absolute; top: 14px; right: 14px; font-family: var(--mono); font-size: .72rem; color: var(--faint); }
.steps5 .s5 > svg { width: 22px; height: 22px; color: var(--accent); }
.steps5 .s5 h3 { margin: 8px 0 4px; font-size: .98rem; }
.steps5 .s5 p { margin: 0; font-size: .86rem; line-height: 1.45; color: var(--muted); }
.steps5 .model { border-color: var(--accent-line); background: linear-gradient(180deg, #fff, var(--accent-soft)); }
.steps5 .ok { border-color: var(--ok-line); background: var(--ok-soft); }
.steps5 .ok > svg { color: var(--ok); }
.steps5 .rv { border-color: var(--warn-line); background: var(--warn-soft); }
.steps5 .rv > svg { color: var(--warn); }
.h-more { margin: 12px 2px 0; }
#live-strip .strip { padding: 18px 22px 14px; }
#live-strip .strip .nums.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#live-strip .strip .nums.four .v { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
#live-strip .strip .meta { margin-top: 12px; }
#live-strip .eyebrow { margin-bottom: 8px; }
@media (max-width: 1020px) { .steps5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .f-eyebrow { font-size: .68rem; margin-bottom: 6px; }
  .f-two { font-size: .9rem; font-weight: 500; }
  .f-hero { display: contents; }
  .fold > .f-h1, .fold > .f-eyebrow, .fold > .f-user, .fold > .f-two { order: 0; }
  .f-user { font-size: .9rem; margin-top: 4px; }
  .fold #rcard { order: 1; margin-top: 12px; }
  .fold .f-actions { order: 2; }
  .fold .proof { order: 3; margin-top: 14px; }
  .f-actions .f-second { display: inline-flex; }
  .f-try { margin: 2px auto 0; }
  .ptile { padding: 12px 14px; }
  .steps5 { grid-template-columns: minmax(0, 1fr); }
  #live-strip .strip .nums.four { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
/* Home, desktop: the receipt card fills the height of the three proof tiles; the crop sits centred in its frame */
@media (min-width: 561px) {
  .f-hero .rcard { display: flex; flex-direction: column; }
  .f-hero .rslide.on { flex: 1; display: flex; flex-direction: column; }
  .f-hero .rslide .rimg { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 110px; }
  .f-hero .rslide img { max-height: 240px; }
  .f-hero .rfoot { margin-top: auto; }
}

/* ---------- results: summary and collapsed method blocks */
.res-head { margin-bottom: 0; }
.res-head .lede a { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.res-head .lede a svg { width: 16px; height: 16px; }
.res-sum-wrap { margin-top: var(--s-5); }
.res-sum { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.res-sum a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 14px 14px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.res-sum a:hover { border-color: var(--accent); text-decoration: none; }
.res-sum .v { font-size: 1.35rem; font-weight: 680; letter-spacing: -0.01em; line-height: 1.15; }
.res-sum .v .vs-word { font-size: .8rem; font-weight: 500; color: var(--muted); }
.res-sum .l { font-size: var(--t-xs); color: var(--muted); line-height: 1.4; }
@media (max-width: 1100px) { .res-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .res-sum { grid-template-columns: minmax(0, 1fr); } }
.more-d { margin-top: 12px; }
.more-d > summary { cursor: pointer; color: var(--muted); font-size: var(--t-sm); font-weight: 560; width: fit-content; max-width: 100%; }
.more-d > summary:hover { color: var(--ink); }
.more-d[open] > summary { margin-bottom: 10px; }

/* The sample audit opens finished; "bring your own data" is one closed panel under it */
.au-own { margin-top: var(--s-6); padding: 16px 20px; }
.au-own > summary { cursor: pointer; }
.au-own[open] > summary { margin-bottom: 4px; }
.au-own .au-grid { margin-top: var(--s-4); }
.au-own .au-steps, .au-own .au-what { box-shadow: none; }
