:root {
  --bg: #f6f7f9; --surface: #ffffff; --text: #1b1f24; --muted: #59636e; --border: #d8dee4;
  --accent: #0b6e4f; --better: #1a7f37; --worse: #cf222e;
  --series-1: #0b6e4f; --series-2: #8250df; --series-3: #bc4c00; --series-4: #0969da;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1117; --surface: #161b22; --text: #e6edf3; --muted: #9198a1; --border: #30363d;
    --accent: #3fb68b; --better: #3fb950; --worse: #f85149;
    --series-1: #3fb68b; --series-2: #a371f7; --series-3: #f0883e; --series-4: #4493f8;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1117; --surface: #161b22; --text: #e6edf3; --muted: #9198a1; --border: #30363d;
  --accent: #3fb68b; --better: #3fb950; --worse: #f85149;
  --series-1: #3fb68b; --series-2: #a371f7; --series-3: #f0883e; --series-4: #4493f8;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; }
.container { max-width: 1180px; margin: 0 auto; padding: 24px 16px 64px; }
.hero h1 { margin: 0 0 4px; font-size: 1.6rem; }
.hero p, .note, .empty { color: var(--muted); margin: 0; }
section { margin-top: 32px; }
h2 { font-size: 1.1rem; margin: 0 0 12px; }
.machines ul { list-style: none; padding: 0; margin: 0 0 8px; }
.machines li { margin: 4px 0; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; vertical-align: baseline; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; min-width: 0; }
.card header { display: flex; flex-direction: column; gap: 2px; }
.card h3 { font-size: 0.95rem; margin: 0; }
.card header code { color: var(--muted); }
.latest { margin: 8px 0 0; }
.when { margin: 0 0 4px; color: var(--muted); font-size: 0.85rem; }
.latest strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.change { margin-left: 6px; font-size: 0.85rem; color: var(--muted); }
.change.better { color: var(--better); }
.change.worse { color: var(--worse); }
.trend { width: 100%; height: auto; display: block; }
.trend polyline { fill: none; stroke-width: 2; }
.trend .grid { stroke: var(--border); stroke-width: 1; }
.trend .axis { fill: var(--muted); font-size: 11px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }
.num { text-align: right; }
