:root {
  color-scheme: light;
  --bg: #fcfcfb; --surface: #ffffff; --border: #e4e3df; --grid: #ecebe7;
  --text: #0b0b0b; --text-2: #52514e; --text-3: #6f6e69;
  --accent: #2a78d6; --accent-tint: #e8f1fc;
  --s1: #2a78d6; --s2: #eb6834;
  --good: #006300; --warn: #8a5a00;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1a1a19; --surface: #222221; --border: #383835; --grid: #2e2e2c;
    --text: #f0efec; --text-2: #c3c2b7; --text-3: #9a998f;
    --accent: #3987e5; --accent-tint: #1d2c40;
    --s1: #3987e5; --s2: #d95926;
    --good: #4cc24c; --warn: #e0a83a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1a1a19; --surface: #222221; --border: #383835; --grid: #2e2e2c;
  --text: #f0efec; --text-2: #c3c2b7; --text-3: #9a998f;
  --accent: #3987e5; --accent-tint: #1d2c40;
  --s1: #3987e5; --s2: #d95926;
  --good: #4cc24c; --warn: #e0a83a;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
header.site, footer.site { max-width: 1040px; margin: 0 auto; padding: 16px; }
header.site a { color: var(--text); text-decoration: none; font-weight: 700; }
footer.site { color: var(--text-3); font-size: 13px; border-top: 1px solid var(--border); margin-top: 48px; }
main { max-width: 1040px; margin: 0 auto; padding: 8px 16px 32px; }
h1 { font-size: clamp(26px, 4vw, 34px); line-height: 1.2; margin: 8px 0; }
h2 { font-size: 20px; margin: 32px 0 8px; }
.lead { color: var(--text-2); font-size: 18px; margin: 0 0 24px; max-width: 680px; }
.note { color: var(--text-3); font-size: 13px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: right; }
th:first-child, td:first-child { text-align: left; }
th { font-size: 13px; color: var(--text-2); font-weight: 600; }
tr.total td { font-weight: 700; border-bottom: none; }
