:root {
  --bg: #f6f4ef; --surface: #fffdf9; --ink: #1d2327; --muted: #5b6469; --line: #dcd8cd;
  --base: #6d767b; --pr: #1f5f8b; --pass: #1d6b4a; --fail: #a8321f; --fail-bg: #f6e3df;
  --focus: #1f5f8b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14181a; --surface: #1b2124; --ink: #e8e6e0; --muted: #9ea7ab; --line: #2f383c;
    --base: #9aa3a7; --pr: #6fb1df; --pass: #5fc296; --fail: #f08a77; --fail-bg: #3a2420;
    --focus: #6fb1df;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
.wrap { max-width: 56rem; margin: 0 auto; padding: 0 16px; }
header.wrap { padding-top: 2.5rem; }
h1 { font: 600 clamp(1.7rem, 5vw, 2.5rem)/1.15 Georgia, "Times New Roman", serif; margin: .25rem 0 1rem; letter-spacing: -.01em; }
h2 { font: 600 1.4rem/1.25 Georgia, "Times New Roman", serif; margin: 3rem 0 .75rem; }
h2.kicker { margin: 2rem 0 .75rem; }
.kicker { font: 600 .78rem/1 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0; }
.lede { font-size: 1.1rem; max-width: 42rem; color: var(--ink); margin: 0; }
a { color: var(--pr); text-underline-offset: 2px; }
a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.card { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--fail); border-radius: 6px; padding: 1.25rem 1.25rem 1.1rem; }
.card h3 { margin: 0 0 .25rem; font-size: 1.1rem; line-height: 1.35; }
.card .sub { margin: 0 0 1rem; color: var(--muted); font-size: .92rem; }
.nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: 1rem; margin: 0 0 1rem; }
.nums div { min-width: 0; }
.nums dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.nums dd { margin: 0; font: 600 1.9rem/1.2 Georgia, serif; font-variant-numeric: tabular-nums; }
.nums dd small { font: 400 .85rem system-ui, sans-serif; color: var(--muted); display: block; }
.verdict { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.verdict svg { width: .9em; height: .9em; flex: none; }
.verdict.FAIL { color: var(--fail); }
.verdict.PASS { color: var(--pass); }
.card p { margin: .5rem 0 0; }
.app-meta { color: var(--muted); margin: 0 0 1rem; }
.chart { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: .5rem; overflow-x: auto; }
.chart svg { display: block; width: 100%; min-width: 30rem; height: auto; }
.chart text { fill: var(--muted); font: 11px system-ui, sans-serif; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .band { fill: var(--fail-bg); }
.chart .ci-base { stroke: var(--base); stroke-width: 2; }
.chart .ci-pr { stroke: var(--pr); stroke-width: 2; }
.chart .pt-base { fill: var(--surface); stroke: var(--base); stroke-width: 2; }
.chart .pt-pr { fill: var(--pr); stroke: var(--surface); stroke-width: 1; }
.chart .pt-pr.FAIL { fill: var(--fail); }
.chart g.run:focus-visible { outline: none; }
.chart g.run:focus-visible .hit, .chart g.run:hover .hit { fill: var(--line); opacity: .5; }
.chart .hit { fill: transparent; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .85rem; color: var(--muted); margin: .6rem 0 0; padding: 0; list-style: none; }
.legend svg { width: 1.1rem; height: 1.1rem; vertical-align: -.2em; margin-right: .25rem; }
.legend .l-base { fill: var(--surface); stroke: var(--base); stroke-width: 2; }
.legend .l-pr { fill: var(--pr); }
.legend .l-fail { fill: var(--fail); }
.readout { min-height: 3em; margin: .5rem 0 1rem; font-size: .92rem; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding: .6rem .75rem; color: var(--muted); font-size: .85rem; }
th, td { padding: .5rem .75rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.date { white-space: nowrap; }
td.pr { min-width: 13rem; }
tr.fail td { background: var(--fail-bg); }
.state { color: var(--muted); font-size: .8rem; }
ul.plain { padding-left: 1.1rem; margin: 0; }
ul.plain li { margin: 0 0 .75rem; max-width: 44rem; }
section p { max-width: 44rem; }
footer.wrap { padding-top: 3rem; padding-bottom: 3rem; color: var(--muted); }
@media (max-width: 480px) {
  body { font-size: .97rem; }
  .card { padding: 1rem; }
}
