@font-face { font-family: 'Graphik'; src: url('/fonts/Graphik-Regular-Web.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Graphik'; src: url('/fonts/Graphik-Medium-Web.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Graphik'; src: url('/fonts/Graphik-Semibold-Web.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Graphik'; src: url('/fonts/Graphik-Bold-Web.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Founders Grotesk'; src: url('/fonts/FoundersGroteskWeb-Semibold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Founders Grotesk'; src: url('/fonts/FoundersGroteskWeb-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #eef1f5;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --black: #0a0a0a;
  --ink: #1f2937;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-2: #f0f1f4;
  --brand: #1a56ff;
  --brand-2: #1246d6;
  --brand-tint: #e7edff;
  --on-brand: #ffffff;
  --ok: #2ba24a;
  --ok-bg: #e6f5ea;
  --warn: #c9750a;
  --warn-bg: #fbedd8;
  --bad: #e0322f;
  --bad-bg: #fdeaea;
  --wait: #1246d6;
  --wait-bg: #eff4ff;
  --test: #9a5800;
  --test-bg: #fbedd8;
  --test-line: #f0c98a;
  --shadow: none;
  --radius: 12px;
  --radius-sm: 8px;
  --font-body: 'Graphik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Founders Grotesk', 'Graphik', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 14px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; color: var(--black); margin: 0; line-height: 1.15; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--brand-2); }
.num, td.num, .money { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-2) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--black); color: #fff; position: sticky; top: 0; z-index: 20; }
.topbar-inner { padding: 12px 22px; display: flex; align-items: center; gap: 20px; justify-content: space-between; flex-wrap: wrap; }
.brand { font: 700 20px/1.2 var(--font-head); letter-spacing: .2px; color: #fff; white-space: nowrap; }
.brand .mark { color: var(--brand); }
.topbar-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.quarter-pick { display: flex; align-items: center; gap: 8px; }
.quarter-pick span { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #cbd2df; }
.quarter-pick select { font-size: 13px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); cursor: pointer; }
.sendmode { display: inline-flex; align-items: center; gap: 6px; background: var(--test-bg); color: var(--test); border-radius: 20px; padding: 3px 11px 3px 9px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sendmode svg { width: 14px; height: 14px; }
.userbox { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #cbd2df; }
.userbox .who { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; flex: none; }
.linkbtn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13px; }

.chevron-band { position: relative; background: var(--brand); height: 60px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.chev-bg { position: absolute; inset: 0; display: flex; align-items: center; color: rgba(255, 255, 255, .15); font: 700 56px/1 var(--font-head); letter-spacing: 4px; white-space: nowrap; pointer-events: none; }
.chev-content { position: relative; }
.headline { font: 700 17px/1.2 var(--font-head); color: #fff; }

/* ---------- Layout ---------- */
.main { padding: 20px 22px 48px; }
.layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 18px; }

/* ---------- Gate ---------- */
.gate { text-align: center; padding: 64px 20px; }
.gate .gate-icon { display: none; }
.gate h1 { font-size: 24px; margin-bottom: 8px; }
.gate p { color: var(--muted); font-size: 15px; margin: 0 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 4px; padding: 8px 18px; font-weight: 600; font-size: 13px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s; white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-2); }
.btn-secondary { background: #fff; color: var(--black); border-color: var(--black); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--ink-2); padding: 5px 9px; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-sm svg { width: 13px; height: 13px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: default; }
.btn-ok { background: var(--black); color: #fff; }
.btn-ok:hover { background: #23262e; }

/* ---------- Hero ("your next step") ---------- */
.hero {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 22px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; position: relative; overflow: hidden;
}
.hero::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--hero-accent, var(--brand)); }
.hero[data-tone="ok"] { --hero-accent: var(--ok); --hero-tint: var(--ok-bg); --hero-ink: var(--ok); }
.hero[data-tone="warn"] { --hero-accent: var(--warn); --hero-tint: var(--warn-bg); --hero-ink: var(--warn); }
.hero[data-tone="bad"] { --hero-accent: var(--bad); --hero-tint: var(--bad-bg); --hero-ink: var(--bad); }
.hero[data-tone="wait"] { --hero-accent: var(--wait); --hero-tint: var(--wait-bg); --hero-ink: var(--wait); }
.hero[data-tone="brand"] { --hero-accent: var(--brand); --hero-tint: var(--brand-tint); --hero-ink: var(--brand); }
.hero-icon { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; background: var(--hero-tint); color: var(--hero-ink); }
.hero-icon svg { width: 22px; height: 22px; }
.hero-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--hero-ink, var(--muted)); margin-bottom: 4px; }
.hero h1 { font-size: 24px; margin-bottom: 4px; }
.hero p { margin: 0; color: var(--ink-2); max-width: 70ch; }
.hero .hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.hero .progress { margin-top: 12px; height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; max-width: 460px; }
.hero .progress span { display: block; height: 100%; background: var(--wait); border-radius: 99px; transition: width 1s linear; }
.hero .progress.indeterminate span { width: 35% !important; animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.countdown { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }

/* ---------- Stepper ---------- */
.stepper { position: sticky; top: 70px; display: flex; flex-direction: column; gap: 2px; }
.step {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; text-align: left; width: 100%;
  background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 12px; cursor: pointer; position: relative;
}
.step:not(:last-child)::after { content: ''; position: absolute; left: 28px; top: 50px; bottom: -8px; width: 2px; background: var(--line); }
.step[data-status="done"]:not(:last-child)::after { background: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.step:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.step[aria-current="true"] { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.step-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 15px/1 var(--font-body); background: var(--surface); border: 2px solid var(--line); color: var(--muted); position: relative; z-index: 1; }
.step-dot svg { width: 17px; height: 17px; }
.step[data-status="done"] .step-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.step[data-status="now"] .step-dot { background: var(--brand); border-color: var(--brand); color: var(--on-brand); box-shadow: 0 0 0 5px var(--brand-tint); }
.step[data-status="attention"] .step-dot { background: var(--warn-bg); border-color: var(--warn); color: var(--warn); box-shadow: 0 0 0 5px color-mix(in srgb, var(--warn-bg) 70%, transparent); }
.step[data-status="waiting"] .step-dot { background: var(--wait-bg); border-color: var(--wait); color: var(--wait); }
.step[data-status="running"] .step-dot { background: var(--wait-bg); border-color: var(--wait); color: var(--wait); }
.step[data-status="running"] .step-dot svg { animation: spin 1.1s linear infinite; }
.step[data-status="bad"] .step-dot { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
.step[data-status="later"] { cursor: default; }
.step[data-status="later"] .step-dot { border-style: dashed; }
.step[data-status="later"] .step-title { color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
.step-title { font-weight: 600; font-size: 14px; color: var(--black); display: block; margin-top: 1px; }
.step-sub { font-size: 12.5px; color: var(--muted); display: block; margin-top: 2px; }
.step[data-status="attention"] .step-sub { color: var(--warn); font-weight: 500; }
.step[data-status="waiting"] .step-sub, .step[data-status="running"] .step-sub { color: var(--wait); font-weight: 500; }
.step[data-status="bad"] .step-sub { color: var(--bad); font-weight: 500; }
.step-tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--line); border-radius: 99px; padding: 1px 8px; margin-top: 5px; }

/* ---------- Panel / cards ---------- */
.panel { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.panel-head h2 { font-size: 20px; letter-spacing: .4px; text-transform: uppercase; }
.panel-head .kicker { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.panel-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 72ch; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px 22px; }
.card h3 { font-size: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.banner { border-radius: 8px; padding: 12px 16px; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.banner svg { width: 19px; height: 19px; flex: none; margin-top: 1px; }
.banner.info { background: #eff4ff; color: var(--ink); }
.banner.info svg { color: var(--brand); }
.banner.warn { background: #fff7ed; border: 1px solid #fde4c8; color: var(--ink); }
.banner.warn svg { color: var(--warn); }
.banner.bad { background: var(--bad-bg); color: var(--ink); }
.banner.bad svg { color: var(--bad); }
.banner.ok { background: var(--ok-bg); color: var(--ink); }
.banner.ok svg { color: var(--ok); }
.banner b { font-weight: 600; }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; border-radius: 20px; padding: 2px 9px; white-space: nowrap; }
.pill svg { width: 13px; height: 13px; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.wait { background: var(--wait-bg); color: var(--wait); }
.pill.neutral { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }

/* ---------- Data clock (freshness) ---------- */
.fresh { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; }
.fresh-verdict { padding: 20px 22px; border-right: 1px solid var(--line-2); }
.fresh-verdict .verdict-label { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.fresh-verdict h3 { font-size: 18px; margin: 6px 0 6px; display: flex; gap: 10px; align-items: center; }
.fresh-verdict h3 .vdot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.fresh-verdict p { margin: 0; color: var(--ink-2); font-size: 14px; }
.timeline { list-style: none; margin: 0; padding: 18px 22px; position: relative; }
.timeline li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 6px 0; position: relative; font-size: 14px; }
.timeline li::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline li:first-child::before { top: 50%; }
.timeline li:last-child::before { bottom: 50%; }
.timeline .tdot { width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--muted); position: relative; z-index: 1; margin-left: 3px; align-self: center; }
.timeline .t-now .tdot { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 4px var(--line-2); }
.timeline .t-now { font-weight: 600; }
.timeline .t-lake .tdot { border-color: var(--brand); background: var(--brand-tint); }
.timeline .t-run .tdot { border-color: var(--ok); background: var(--ok-bg); }
.timeline .t-fix .tdot { border-color: var(--warn); background: var(--warn-bg); }
.timeline .t-next .tdot { border-color: var(--wait); border-style: dashed; }
.timeline .t-future { color: var(--muted); }
.timeline .when { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 13px; text-align: right; white-space: nowrap; }
.tables-detail { padding: 0 22px 16px; font-size: 13px; }
.tables-detail summary { cursor: pointer; color: var(--muted); }
.tables-detail table { margin-top: 8px; border-collapse: collapse; width: 100%; }
.tables-detail td { padding: 4px 0; border-top: 1px solid var(--line-2); }
.tables-detail td:last-child { text-align: right; }

/* ---------- Runs list ---------- */
.runs { list-style: none; margin: 0; padding: 0; }
.runs > li { border-top: 1px solid var(--line-2); }
.runs > li:first-child { border-top: 0; }
.run-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 13px 22px; }
.run-row .run-when { font-weight: 600; }
.run-row .run-by { font-size: 13px; color: var(--muted); }
.run-extra { padding: 0 22px 16px; }
.run-extra .mini { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.run-extra .mini th { text-align: left; font-weight: 700; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--black); padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.run-extra .mini td { padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.run-extra .mini .num { text-align: right; }
.run-error { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; background: var(--bad-bg); color: var(--bad); border-radius: 8px; padding: 8px 10px; margin-top: 6px; word-break: break-word; }

/* ---------- Warnings ---------- */
.wsummary { display: flex; gap: 10px; flex-wrap: wrap; }
.wstat { flex: 1 1 150px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.wstat .n { font: 700 30px/1 var(--font-head); color: var(--black); }
.wstat .l { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.wstat.open .n { color: var(--warn); }
.wstat.waiting .n { color: var(--wait); }
.wstat.ok .n { color: var(--ok); }
.wstat.gone .n { color: var(--ok); }

.wgroup { overflow: hidden; }
.wgroup-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; padding: 18px 22px; align-items: start; }
.wkind { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; }
.wkind svg { width: 18px; height: 18px; }
.wkind.fix { background: var(--warn-bg); color: var(--warn); }
.wkind.tell { background: var(--wait-bg); color: var(--wait); }
.wkind.review { background: var(--brand-tint); color: var(--brand); }
.wgroup-head h3 { font-size: 18px; }
.wgroup-head .wmeta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.wgroup-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line-2); }
.wexplain { padding: 16px 22px; font-size: 14px; color: var(--ink-2); }
.wexplain h4 { font: 600 11px/1 var(--font-body); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.wexplain p { margin: 0 0 14px; }
.wexplain ol { margin: 0 0 14px; padding-left: 20px; }
.wexplain ol li { margin-bottom: 4px; }
.wexplain .why { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; margin: 0; font-size: 13.5px; }
.witems { border-left: 1px solid var(--line-2); list-style: none; margin: 0; padding: 0; }
.witem { padding: 13px 18px; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.witem:last-child { border-bottom: 0; }
.witem .who { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.witem .who b { font-weight: 600; }
.witem .facts { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.witem .facts .stake { color: var(--ink); font-weight: 500; }
.witem .actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.witem[data-state="ok"], .witem[data-state="waiting"] { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.witem[data-state="ok"] .who b, .witem[data-state="waiting"] .who b { color: var(--ink-2); }
.witem .state-line { font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.idchip { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; cursor: pointer; color: var(--ink); }
.idchip:hover { border-color: var(--muted); }
.tech { font-size: 12.5px; color: var(--muted); }
.tech summary { cursor: pointer; }
.tech p { margin: 6px 0 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; word-break: break-word; }
.gone-list { list-style: none; margin: 0; padding: 0; }
.gone-list li { padding: 9px 22px; border-top: 1px solid var(--line-2); display: flex; gap: 10px; align-items: center; font-size: 14px; flex-wrap: wrap; }
.gone-list li svg { width: 16px; height: 16px; color: var(--ok); flex: none; }

/* ---------- Review ---------- */
.totals { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0; }
.totals > div { padding: 18px 22px; border-right: 1px solid var(--line-2); }
.totals > div:last-child { border-right: 0; }
.totals .l { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.totals .v { font: 700 30px/1.1 var(--font-head); color: var(--black); margin-top: 6px; font-variant-numeric: tabular-nums; }
.totals .v.big { font-size: 36px; color: var(--brand); }
.totals .s { font-size: 13px; color: var(--muted); margin-top: 4px; }
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gcard { display: flex; flex-direction: column; }
.gcard[data-recon="done"] { border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); }
.gcard[data-recon="changed"] { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); }
.gcard .gtop { padding: 16px 20px 12px; display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.gcard .gname { font: 700 18px/1.1 var(--font-head); color: var(--black); }
.gcard .gsub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.gcard .gnums { display: grid; grid-template-columns: 1fr 1fr; padding: 0 20px 12px; gap: 10px; }
.gcard .gnums .l { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.gcard .gnums .v { font: 700 22px/1.15 var(--font-head); color: var(--black); margin-top: 3px; font-variant-numeric: tabular-nums; }
.gcard .gnums .d { font-size: 12.5px; margin-top: 2px; }
.d.up { color: var(--ok); }
.d.down { color: var(--bad); }
.d.same { color: var(--muted); }
.gcard .integrity { padding: 0 20px 12px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.gcard .integrity svg { width: 14px; height: 14px; }
.gcard .integrity.ok svg { color: var(--ok); }
.gcard .integrity.bad { color: var(--bad); }
.gcard .recon { margin-top: auto; border-top: 1px solid var(--line-2); padding: 14px 20px; background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); display: grid; gap: 10px; }
.recon-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.recon label.pay { font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; flex: 1 1 160px; }
.money-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); padding: 0 10px; }
.money-input span { color: var(--muted); }
.money-input input { border: 0; background: transparent; padding: 8px 6px; width: 100%; outline: none; font-variant-numeric: tabular-nums; }
.money-input:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-tint); }
.diff { font-size: 13px; font-weight: 500; }
.diff.ok { color: var(--ok); }
.diff.off { color: var(--bad); }
.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-weight: 600; font-size: 14px; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; margin: 0; }

.drivers .toolbar { display: flex; gap: 10px 26px; align-items: center; flex-wrap: wrap; padding: 0 18px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 26px; flex-wrap: wrap; align-self: stretch; }
.tab { border: 0; border-bottom: 3px solid transparent; background: none; padding: 14px 2px 11px; font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; cursor: pointer; color: var(--muted); }
.tab:hover { color: var(--ink-2); }
.tab[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.search { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 20px; padding: 0 14px; margin: 8px 0; font-size: 13px; background: var(--surface); }
.search svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.search input { border: 0; background: transparent; padding: 6px 0; width: 100%; outline: none; }
.search:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-tint); }
.tablewrap { overflow-x: auto; max-height: 640px; overflow-y: auto; }
table.dt { border-collapse: collapse; width: 100%; font-size: 13px; }
table.dt th { position: sticky; top: 0; background: var(--surface); text-align: left; font-weight: 700; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--black); padding: 12px 14px; box-shadow: inset 0 -2px 0 var(--black); white-space: nowrap; z-index: 1; }
table.dt th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
table.dt th button:focus-visible { outline: 2px solid var(--brand-2); border-radius: 4px; }
table.dt th.num, table.dt td.num { text-align: right; }
table.dt td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.dt tbody tr.drow { cursor: pointer; }
table.dt tbody tr.drow:hover td { background: #f5f8ff; }
table.dt tbody tr.drow[aria-expanded="true"] td { background: #eaf0ff; }
table.dt .dname { font-weight: 600; }
table.dt td.nowrap, table.dt td.num { white-space: nowrap; }
table.dt td.site { max-width: 220px; }
table.dt .did { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--muted); }
table.dt .chev { width: 14px; height: 14px; color: var(--muted); transition: transform .15s; vertical-align: -2px; margin-right: 4px; }
table.dt tr[aria-expanded="true"] .chev { transform: rotate(90deg); }
tr.dsub td { background: var(--surface-2); padding: 0; }
.batches { padding: 8px 14px 14px 40px; }
.batches table { width: 100%; border-collapse: collapse; font-size: 13px; }
.batches th { text-align: left; color: var(--black); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.batches td { padding: 6px 8px; border-bottom: 1px solid var(--line-2); }
.batches .num { text-align: right; }
.empty { padding: 28px 22px; text-align: center; color: var(--muted); }
.tfoot td { font-weight: 600; background: var(--surface-2); position: sticky; bottom: 0; }

/* ---------- Later phases ---------- */
.later { position: relative; }
.later .lock { display: inline-flex; gap: 7px; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--muted); border: 1px dashed var(--line); border-radius: 99px; padding: 4px 11px; }
.later .lock svg { width: 14px; height: 14px; }
.later-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.later-steps li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 14px; }
.later-steps li .n { width: 24px; height: 24px; border-radius: 50%; border: 1.5px dashed var(--line); display: grid; place-items: center; font-size: 12px; color: var(--muted); flex: none; }
.guard { border: 1px solid var(--test-line); background: var(--test-bg); border-radius: 8px; padding: 18px 20px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.guard svg { width: 26px; height: 26px; color: var(--test); }
.guard h3 { font-size: 18px; color: var(--test); }
.guard p { margin: 4px 0 0; color: var(--ink); font-size: 14px; }
.recips { list-style: none; margin: 10px 0 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.recips li { background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; font-size: 13px; }
.recips li span { color: var(--muted); }
.fake-form { display: grid; gap: 12px; margin-top: 16px; opacity: .6; }
.fake-form label { font-size: 13px; color: var(--ink-2); display: grid; gap: 5px; }
.fake-form select { border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; background: var(--surface); max-width: 360px; }

/* ---------- How-to & toast ---------- */
.howto { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 22px; }
.howto summary { cursor: pointer; font-weight: 600; }
.howto ol { margin: 12px 0 6px; padding-left: 20px; color: var(--ink-2); }
.howto li { margin-bottom: 6px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--black); color: #fff; padding: 10px 16px; border-radius: 4px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.skeleton { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--line-2), var(--surface-2), var(--line-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.spin { animation: spin 1s linear infinite; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .wgroup-body { grid-template-columns: minmax(0, 1fr); }
  .witems { border-left: 0; border-top: 1px solid var(--line-2); }
  .fresh { grid-template-columns: minmax(0, 1fr); }
  .fresh-verdict { border-right: 0; border-bottom: 1px solid var(--line-2); }
}
@media (max-width: 880px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .stepper { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .stepper::-webkit-scrollbar { display: none; }
  .step { grid-template-columns: 28px auto; gap: 8px; padding: 8px 12px 8px 8px; flex: none; width: auto; align-items: center; background: var(--surface); border-color: var(--line); }
  .step::after { display: none; }
  .step-dot { width: 28px; height: 28px; font-size: 13px; }
  .step[data-status="now"] .step-dot { box-shadow: none; }
  .step[data-status="attention"] .step-dot { box-shadow: none; }
  .step-sub, .step-tag { display: none; }
  .step-title { font-size: 14px; white-space: nowrap; margin: 0; }
  .step[aria-current="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 14px; }
  .hero-icon { display: none; }
  .hero h1 { font-size: 22px; }
  .hero .hero-actions { justify-content: flex-start; }
  .groups { grid-template-columns: minmax(0, 1fr); }
  .totals { grid-template-columns: minmax(0, 1fr); }
  .totals > div { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .totals > div:last-child { border-bottom: 0; }
}
@media (max-width: 600px) {
  .topbar { position: static; }
  .topbar-inner { padding: 10px 16px; gap: 10px; }
  .drivers .toolbar { gap: 0 16px; }
  .tabs { gap: 16px; }
  .topbar-right { gap: 8px; }
  .sm-hide { display: none; }
  .main { padding: 16px 16px 48px; }
  .userbox .who { display: none; }
  .run-row { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 16px; }
  .run-row .run-act { grid-column: 1 / -1; }
  .card-head, .wgroup-head, .wexplain, .card-pad { padding-left: 16px; padding-right: 16px; }
  .wgroup-head { grid-template-columns: minmax(0, 1fr) auto; }
  .wgroup-head .wkind { display: none; }
  .drivers .toolbar { padding: 12px 16px; }
  table.dt .hide-sm { display: none; }
  table.dt { font-size: 13.5px; }
  table.dt tr.drow .did { display: block; margin-left: 18px; }
  table.dt th, table.dt td { padding: 9px 6px; }
  table.dt td:first-child, table.dt th:first-child { padding-left: 10px; }
  table.dt td:last-child, table.dt th:last-child { padding-right: 10px; }
  .batches { padding: 6px 8px 12px; }
  .batches .hide-sm { display: none; }
}

#payonce:empty { display: none; }
.payonce-list { margin: 8px 0 0; padding-left: 18px; }
.payonce-list .did { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--muted); }
.compare-pick { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.compare-pick select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 5px 8px; max-width: 100%; }
.chg-sum { margin: 0; padding: 12px 22px 4px; font-size: 14px; }
.chg-wrap { max-height: 420px; }
.chg-why { min-width: 200px; color: var(--ink-2); font-size: 13px; }

#panel, .wgroup { scroll-margin-top: 70px; }
.wgroup.flash { animation: flash 1.4s ease-out; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--brand); } 100% { box-shadow: 0 0 0 0 transparent; } }
