:root {
  --bg: #f6f5f1;
  --paper: #ffffff;
  --ink: #16181d;
  --muted: #5b606b;
  --line: #e1dfd8;
  --accent: #0f6b4f;
  --warn: #8f5500;
  --display: "IBM Plex Sans Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1114; --paper: #171a1f; --ink: #e8e6e1; --muted: #a0a6b0; --line: #2a2e35; --accent: #4cc39a; --warn: #e8b35a; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--body); padding-inline: 16px; padding-block: 20px 48px; }
.controls { max-width: 960px; margin: 0 auto 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 14px; }
.controls a { color: var(--muted); text-decoration: none; margin-right: auto; }
.controls label { display: flex; align-items: center; gap: 8px; color: var(--muted); }
select, button { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; }
button { cursor: pointer; font-weight: 500; }
.report { max-width: 960px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: clamp(20px, 4vw, 44px); display: grid; gap: 28px; }
.masthead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; border-bottom: 2px solid var(--ink); padding-bottom: 16px; }
.masthead h1 { font: 600 clamp(1.6rem, 3.6vw, 2.2rem)/1.1 var(--display); margin: 0; }
.masthead .meta { font: 13px/1.6 var(--mono); color: var(--muted); text-align: right; }
.label { font: 500 11px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.headline { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 8px; }
.figure { padding: 16px 18px; display: grid; gap: 4px; }
.figure + .figure { border-left: 1px solid var(--line); }
.figure .value { font: 500 1.6rem/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.figure.lead .value { color: var(--accent); }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { font: 500 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
td.num, th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
td.saved { color: var(--accent); }
.method { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 8px; }
.method p { max-width: 80ch; margin: 0; }
.shadow { color: var(--warn); font-weight: 600; }
.loading, .error { color: var(--muted); }
.error { color: #a3262d; }
@media (max-width: 560px) {
  .figure + .figure { border-left: 0; border-top: 1px solid var(--line); }
  .masthead .meta { text-align: left; }
}
@media print {
  body { background: #fff; padding: 0; }
  .no-print { display: none !important; }
  .report { border: 0; border-radius: 0; max-width: none; padding: 0; }
  :root { --paper: #fff; --ink: #000; --muted: #444; --line: #ccc; --accent: #0f6b4f; }
  table { min-width: 0; font-size: 10px; }
}
