:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #6b7280;
  --line: #e5e7eb;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--fg);
  background: var(--bg);
}
header, main { max-width: 1100px; margin: 0 auto; padding: 1rem; }
h1 { margin: 0 0 0.25rem; font-size: 1.5rem; }
h2 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.muted { color: var(--muted); margin: 0.25rem 0; font-size: 0.85rem; }
.chart-wrap { position: relative; height: 60vh; min-height: 320px; }
.table-wrap { overflow: auto; max-height: 75vh; border: 1px solid var(--line); }
table { border-collapse: collapse; font-size: 0.8rem; }
th, td {
  border: 1px solid var(--line);
  padding: 4px 6px;
  text-align: center;
  white-space: nowrap;
}
thead th {
  position: sticky;
  top: 0;
  background: #f9fafb;
  z-index: 2;
  cursor: pointer;
}
thead th .score { display: block; font-weight: 700; }
thead th .label { display: block; font-weight: 400; color: var(--muted); font-size: 0.7rem; }
th.name, td.name {
  position: sticky;
  left: 0;
  background: #f9fafb;
  text-align: left;
  z-index: 1;
}
thead th.name, thead th.total { z-index: 3; }
td.name { background: var(--bg); font-weight: 600; }
td.total { font-weight: 700; }
tbody tr:hover td { outline: 1px solid #9ca3af; }
td.empty { background: #ffffff; color: var(--muted); }
