:root {
  --bg: #ffffff; --fg: #16181d; --muted: #6b7280;
  --line: rgba(128, 128, 128, 0.25); --accent: #d2593c; --open: #2f9e68;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1115; --fg: #e6e8ec; --muted: #9199a5; --line: rgba(128,128,128,0.3); }
}
* { box-sizing: border-box; }
body {
  margin: 0; padding: 24px; background: var(--bg); color: var(--fg);
  font: 14px/1.5 system-ui, sans-serif;
}
h1 { font-size: 20px; margin: 0 0 4px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; }
th {
  text-align: right; padding: 7px 8px; border-bottom: 2px solid var(--fg);
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em;
  white-space: nowrap; cursor: pointer; user-select: none;
}
th:nth-child(-n+2) { text-align: left; }
th.sorted::after { content: " ▼"; font-size: 8px; }
td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
td:nth-child(-n+2) { text-align: left; }
td:first-child { color: var(--muted); width: 24px; }
td.name { font-weight: 600; }
.lab { color: var(--muted); font-weight: 400; }
.badge {
  display: inline-block; font-size: 9px; padding: 1px 4px; border-radius: 3px;
  margin-left: 5px; font-weight: 700; vertical-align: 1px;
}
.badge-open { border: 1px solid var(--open); color: var(--open); font-weight: 400; }
.badge-new { background: var(--accent); color: #fff; }
.best { font-weight: 700; }
.self-reported { opacity: 0.5; }
.stale { opacity: 0.45; font-style: italic; }
.missing { opacity: 0.25; }
.foot { font-size: 11px; margin-top: 8px; }
.lower { display: grid; grid-template-columns: 1fr 320px; gap: 32px; margin-top: 28px; }
@media (max-width: 860px) { .lower { grid-template-columns: 1fr; } }
#legend dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
#legend dt { font-family: var(--mono); font-weight: 700; white-space: nowrap; }
#legend dd { margin: 0; color: var(--muted); font-size: 12px; }
#legend .src { opacity: 0.65; }
#usage-list { font-family: var(--mono); font-size: 12px; padding-left: 20px; }
#usage-list li { margin: 4px 0; }
.source-warning {
  border: 1px solid var(--accent); border-radius: 6px; padding: 8px 12px;
  margin-bottom: 14px; font-size: 12px;
}

/* Advisory, not an error: nothing on the board is wrong. Muted so it can't be
   mistaken for the stale/collision warnings, which mean a value may be off. */
.source-warning-soft { border-color: var(--muted); color: var(--muted); }
