:root {
  color-scheme: light dark;
  --bg: #f5f5f2;
  --surface: #fff;
  --surface-muted: #ecece7;
  --text: #1d1d1b;
  --muted: #66665f;
  --border: #d7d7d0;
  --accent: #3157d5;
  --accent-soft: #e7edff;
  --pass: #056b4c;
  --pass-soft: #dcf7ec;
  --fail: #c92a2a;
  --fail-soft: #ffe3e3;
  --skip: #8a6200;
  --skip-soft: #fff1c7;
  --radius: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111210;
    --surface: #191a17;
    --surface-muted: #22231f;
    --text: #f0f0e9;
    --muted: #a5a69c;
    --border: #34362f;
    --accent: #8da7ff;
    --accent-soft: #202b4d;
    --pass: #63d6ae;
    --pass-soft: #163a2e;
    --fail: #ff8787;
    --fail-soft: #472222;
    --skip: #f2c85b;
    --skip-soft: #403713;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 40px 0 64px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.brand { font-weight: 750; letter-spacing: -0.03em; text-decoration: none; color: var(--text); }
.nav { display: flex; flex-wrap: wrap; gap: 8px; }
.nav a { padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; }
.nav a[aria-current="page"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.hero { margin-bottom: 28px; }
.eyebrow { color: var(--accent); font-size: 0.78rem; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; }
h1 { margin: 6px 0 10px; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.05em; }
h2 { margin: 0 0 8px; font-size: 1.3rem; letter-spacing: -0.02em; }
h3 { margin: 0 0 6px; font-size: 1rem; }
p { margin: 0; color: var(--muted); }
.lede { max-width: 720px; font-size: 1.08rem; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; color: var(--muted); font-size: 0.88rem; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 28px 0; }
.metric, .card, .workspace { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.metric { padding: 18px 20px; }
.metric span { display: block; color: var(--muted); font-size: 0.82rem; }
.metric strong { display: block; margin-top: 4px; font-size: 1.8rem; letter-spacing: -0.04em; }
.metric small { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
a.metric { text-decoration: none; color: inherit; }
a.metric:hover { border-color: var(--accent); }
.metric-detail { display: block; margin-top: 6px; color: var(--muted); font-size: 0.82rem; }
.metric-hint { display: block; margin-top: 6px; color: var(--accent); font-size: 0.82rem; font-weight: 700; }
.deduction { color: var(--fail); font-weight: 700; }
.cleared { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.left { text-align: left; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 22px; text-decoration: none; color: var(--text); }
.card:hover { border-color: var(--accent); }
.card p { flex: 1; }
.card-link { font-weight: 700; }
.badge { display: inline-flex; align-items: center; width: fit-content; padding: 3px 9px; border-radius: 999px; font-size: 0.76rem; font-weight: 750; }
.badge.pass { color: var(--pass); background: var(--pass-soft); }
.badge.fail { color: var(--fail); background: var(--fail-soft); }
.badge.skip { color: var(--skip); background: var(--skip-soft); }
.section { margin-top: 40px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.workspace-list { display: grid; gap: 12px; }
.workspace { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; }
.workspace p { margin-top: 3px; font-size: 0.9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 14px 18px; border-bottom: 1px solid var(--border); text-align: right; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.fixture { min-width: 280px; }
.bar { height: 5px; margin-top: 7px; background: var(--surface-muted); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.note { margin-top: 14px; font-size: 0.88rem; }
pre { overflow: auto; margin: 0; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.82rem; line-height: 1.5; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
@media (max-width: 820px) {
  .metrics, .cards { grid-template-columns: 1fr; }
  .workspace { grid-template-columns: 1fr; }
  .topbar, .section-head { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 520px) {
  .shell { width: min(100% - 24px, 1120px); padding-top: 24px; }
  .nav a { padding: 6px 9px; }
}
