:root {
  color-scheme: light dark;
  --bg: #fff; --fg: #000; --muted: #666; --rule: #ccc;
  --fail: #b00; --add: #060; --del: #a00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111; --fg: #eee; --muted: #999; --rule: #333;
    --fail: #f66; --add: #6c6; --del: #f66;
  }
}

body {
  margin: 0;
  padding: 14px 20px 40px;
  background: var(--bg);
  color: var(--fg);
  font: 13px/1.45 system-ui, -apple-system, sans-serif;
  font-variant-numeric: tabular-nums;
}

header { padding-bottom: 6px; margin-bottom: 16px; border-bottom: 1px solid var(--rule); }
h1 { font-size: 15px; margin: 0 0 10px; }
h2 { font-size: 14px; margin: 18px 0 6px; }
h2:first-child { margin-top: 0; }
a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
code, pre, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
pre { margin: 6px 0 16px; padding: 2px 0 2px 10px; border-left: 2px solid var(--rule); overflow-x: auto; line-height: 1.4; }
p.cmd { margin: 4px 0; color: var(--muted); }
.table-scroll { overflow-x: auto; }
table { width: auto; border-collapse: collapse; margin: 0 0 16px; }
th, td { padding: 2px 14px 2px 0; text-align: left; vertical-align: top; }
th:last-child, td:last-child { padding-right: 0; }
th.num, td.num { text-align: right; white-space: nowrap; }
thead th { font-weight: 600; border-bottom: 1px solid var(--rule); padding-bottom: 4px; white-space: nowrap; }
thead + tbody tr:first-child td { padding-top: 5px; }
table.kv th { font-weight: 400; color: var(--muted); white-space: nowrap; padding-right: 16px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
a.fail, .fail { color: var(--fail); font-weight: 700; }
.err { color: var(--fail); }
.diff-add { color: var(--add); }
.diff-del { color: var(--del); }
