
:root {
  color-scheme: light dark;
  --bg: #0b0d12;
  --surface: #12151c;
  --border: #262b36;
  --text: #e6e9ef;
  --muted: #9aa3b2;
  --accent: #60a5fa;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fa;
    --surface: #ffffff;
    --border: #e2e5eb;
    --text: #14161a;
    --muted: #5b6472;
    --accent: #2563eb;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
}
main { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }
.site-header {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); background: var(--surface);
}
.brand { color: var(--text); font-weight: 700; text-decoration: none; }
.generated-at { color: var(--muted); font-size: 0.85rem; }
.site-footer { color: var(--muted); font-size: 0.8rem; text-align: center; padding: 2rem; }
a { color: var(--accent); }
section { margin-bottom: 2.5rem; }
table.scoreboard { width: 100%; border-collapse: collapse; }
table.scoreboard th, table.scoreboard td {
  text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border);
}
.badge {
  display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; color: #fff;
}
.badge-merged { background: #1f8b4c; }
.badge-in-progress { background: #d97706; }
.badge-spec-only { background: #6b7280; }
.badge-unknown { background: #9ca3af; }
.badge-sev-high { background: #dc2626; }
.badge-sev-medium { background: #d97706; }
.badge-sev-low { background: #6b7280; }
.gap-list { list-style: none; padding: 0; }
.gap-list li { padding: 0.35rem 0; border-bottom: 1px solid var(--border); }
.graph-canvas {
  width: 100%; border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
}
.muted { color: var(--muted); }
.sources { color: var(--muted); font-size: 0.85rem; }
code { background: var(--surface); padding: 0.1rem 0.35rem; border-radius: 4px; }
.tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  background: var(--border); color: var(--muted); padding: 0.05rem 0.4rem; border-radius: 4px; margin-left: 0.4rem;
}
.sidebar {
  position: fixed; top: 0; right: 0; width: 360px; max-width: 90vw; height: 100vh;
  background: var(--surface); border-left: 1px solid var(--border); box-shadow: -8px 0 24px rgba(0,0,0,0.25);
  padding: 1.25rem; overflow-y: auto; z-index: 50; transition: transform 0.15s ease;
}
.sidebar.hidden { transform: translateX(100%); pointer-events: none; }
.sidebar h3 { margin-top: 0; }
.sidebar ul, .sidebar ol { padding-left: 1.1rem; }
.sidebar h4 { margin-bottom: 0.25rem; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; }
#sidebar-close {
  position: absolute; top: 0.75rem; right: 0.75rem; background: none; border: none;
  color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
