:root {
  color-scheme: light dark;
  --bg: #fafafa;
  --fg: #1d1d1f;
  --muted: #6b6b70;
  --panel: #ffffff;
  --border: #e3e3e6;
  --ok: #1a7f37;
  --warn: #9a6700;
  --error: #cf222e;
  --new: #fff3c4;
  --link: #0a58ca;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --fg: #ececf0;
    --muted: #9a9aa2;
    --panel: #1b1b1f;
    --border: #2c2c32;
    --ok: #3fb950;
    --warn: #d29922;
    --error: #f85149;
    --new: #3a3212;
    --link: #6ea8fe;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 1100px;
  padding: 24px 16px 48px;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

h1 { font-size: 1.5rem; margin: 0 0 4px; }
h2 { font-size: 1.1rem; margin: 32px 0 12px; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.status { margin: 0; color: var(--muted); }
.status::before { content: "●"; margin-right: 6px; }
.status.ok::before { color: var(--ok); }
.status.warn::before { color: var(--warn); }
.status.error { color: var(--error); }

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 0;
}
.tiles div {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}
.tiles dt { color: var(--muted); font-size: 0.85rem; }
.tiles dd {
  margin: 4px 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.table-wrap {
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px 12px; text-align: left; white-space: nowrap; }
th { color: var(--muted); font-weight: 500; font-size: 0.85rem; border-bottom: 1px solid var(--border); }
tbody tr + tr td { border-top: 1px solid var(--border); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9rem; }

tr.new td { animation: arrive 4s ease-out; }
@keyframes arrive { from { background: var(--new); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { tr.new td { animation: none; } }

footer { margin-top: 32px; color: var(--muted); font-size: 0.85rem; }
code { font-size: 0.9em; }
