:root {
  color-scheme: light;
  --bg: #f6f5f2; --surface: #fcfcfb; --line: #e3e1db; --text: #0b0b0b; --text-2: #52514e; --muted: #7b7a74;
  --dem: #2a78d6; --rep: #e34948; --ind: #6250d6; --yea: #1baf7a; --nay: #eb6834; --none: #c9c7c0;
  --link: #1c5cab; --chip: #eeede9;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #121211; --surface: #1a1a19; --line: #33332f; --text: #f0efec; --text-2: #c3c2b7; --muted: #94938a;
    --dem: #3987e5; --rep: #e66767; --ind: #9085e9; --yea: #199e70; --nay: #d95926; --none: #4a4a45;
    --link: #86b6ef; --chip: #2a2a27;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.top { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; padding: 14px 24px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.brand { font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: -0.01em; }
nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
nav a { color: var(--text-2); padding: 4px 0; border-bottom: 2px solid transparent; }
nav a.on { color: var(--text); border-color: var(--text); }
main { max-width: 1160px; margin: 0 auto; padding: 24px 16px 48px; }
.foot { max-width: 1160px; margin: 0 auto; padding: 16px; color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 24px; border-top: 1px solid var(--line); }
h1 { font-size: 26px; line-height: 1.25; margin: 0 0 6px; letter-spacing: -0.015em; }
h2 { font-size: 17px; margin: 0 0 12px; }
h3 { font-size: 14px; margin: 0 0 8px; color: var(--text-2); font-weight: 600; }
.lede { color: var(--text-2); margin: 0 0 20px; max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 16px; overflow: hidden; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid > .card { margin: 0; min-width: 0; }
.grid { margin-bottom: 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.tile b { display: block; font-size: 26px; line-height: 1.2; font-weight: 650; letter-spacing: -0.02em; }
.tile span { color: var(--text-2); font-size: 13px; }
.tile small { display: block; color: var(--muted); font-size: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
input[type=search], select { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
input[type=search] { min-width: 240px; flex: 1 1 240px; max-width: 420px; }
label.check { display: inline-flex; gap: 6px; align-items: center; color: var(--text-2); font-size: 14px; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 600; color: var(--text-2); font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; user-select: none; }
th.sort { cursor: pointer; }
th.sort:hover { color: var(--text); }
td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.nw { white-space: nowrap; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: flex-end; padding-top: 10px; color: var(--text-2); font-size: 13px; }
button { font: inherit; padding: 5px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); cursor: pointer; }
button:disabled { opacity: .4; cursor: default; }
.chip { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--chip); color: var(--text-2); font-size: 12px; white-space: nowrap; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: baseline; }
.D { background: var(--dem); } .R { background: var(--rep); } .I { background: var(--ind); }
.Y { background: var(--yea); } .N { background: var(--nay); } .X, .P { background: var(--none); }
.split { display: grid; grid-template-columns: 150px 1fr; gap: 8px 12px; align-items: center; }
.split > span { white-space: nowrap; }
.split > span .small { margin-left: 4px; }
.bar { display: flex; gap: 2px; height: 18px; }
.bar i { display: block; height: 100%; min-width: 2px; border-radius: 3px; }
.mini { display: flex; gap: 2px; height: 8px; width: 120px; }
.mini i { display: block; height: 100%; border-radius: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--text-2); font-size: 13px; margin-top: 10px; }
.hbar { display: grid; grid-template-columns: minmax(120px, 200px) 1fr auto; gap: 6px 12px; align-items: center; font-size: 14px; }
.hbar .track { height: 14px; }
.hbar .track i { display: block; height: 100%; border-radius: 0 4px 4px 0; min-width: 2px; background: var(--dem); }
.hbar .v { font-variant-numeric: tabular-nums; color: var(--text-2); }
.cols { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding-top: 22px; border-bottom: 1px solid var(--line); }
.cols .c { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.cols .c i { display: block; width: 100%; max-width: 46px; border-radius: 4px 4px 0 0; min-height: 2px; }
.cols .c b { font-size: 12.5px; font-weight: 600; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.colx { display: flex; gap: 10px; margin-top: 6px; }
.colx span { flex: 1; text-align: center; font-size: 11.5px; color: var(--text-2); line-height: 1.25; min-width: 0; }
.colx small { display: block; color: var(--muted); }
.profile { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.profile img { width: 96px; height: 118px; object-fit: cover; border-radius: 10px; background: var(--chip); flex: none; }
.scroll { max-height: 420px; overflow-y: auto; }
a.case { display: block; color: var(--text); }
a.case:hover { text-decoration: none; border-color: var(--muted); }
a.case h2 { color: var(--link); }
a.case p { color: var(--text-2); margin: 0 0 8px; }
.prose { max-width: 780px; }
.prose h2 { margin-top: 22px; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: 6px; }
.prose ul { padding-left: 20px; }
.note { border-left: 3px solid var(--line); padding: 2px 0 2px 12px; color: var(--text-2); font-size: 14px; margin: 12px 0; max-width: 760px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px 16px; font-size: 14px; }
#tip { position: fixed; z-index: 20; pointer-events: none; background: var(--text); color: var(--bg); font-size: 12.5px; padding: 5px 9px; border-radius: 6px; max-width: 280px; }
@media (max-width: 600px) { .split { grid-template-columns: 1fr; } .hbar { grid-template-columns: 1fr auto; } .hbar .track { grid-column: 1 / -1; order: 3; } .top { padding: 12px 16px; } }
