:root { color-scheme: light dark; --bg: #fff; --fg: #171717; --muted: #757575; --line: #e8e8e8; --soft: #f5f5f5; font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; font-synthesis: none; }
@media (prefers-color-scheme: dark) { :root { --bg: #000; --fg: #f5f5f5; --muted: #909090; --line: #252525; --soft: #141414; } }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; padding: 48px 32px; background: var(--bg); color: var(--fg); display: flex; align-items: center; justify-content: center; font-size: 13px; }
[hidden] { display: none !important; }
.dashboard { width: min(100%, 560px); }
.election { min-width: 0; }
.identity { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 32px; }
.name { min-width: 0; max-width: 100%; font: inherit; font-size: 20px; font-weight: 550; letter-spacing: -.5px; color: var(--fg); overflow-wrap: anywhere; }
select.name { appearance: none; border: 0; border-radius: 0; padding: 4px 0; margin: 0; background: transparent; field-sizing: content; cursor: pointer; text-overflow: ellipsis; }
select.name:focus-visible { outline: 1px solid var(--muted); outline-offset: 5px; }
select.name option { background: var(--bg); color: var(--fg); font-size: 14px; }
.meta { color: var(--muted); font-size: 10px; line-height: 1.5; text-align: right; flex-shrink: 0; }
.person { margin-bottom: 22px; }
.person-line { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 7px; }
.person-name { min-width: 0; overflow-wrap: anywhere; line-height: 1.5; }
.person[data-leading="true"] .person-name { font-weight: 550; }
.id, .office { color: var(--muted); font-size: 9px; margin-left: 5px; font-weight: 400; white-space: nowrap; }
.values { display: grid; grid-template-columns: 44px 48px; align-items: baseline; gap: 14px; flex-shrink: 0; text-align: right; font-variant-numeric: tabular-nums; }
.values small { font-size: 10px; color: var(--muted); }
.values strong { font-size: 19px; font-weight: 500; letter-spacing: -.5px; min-width: 35px; text-align: right; }
.values strong span { font-size: 9px; font-weight: 400; margin-left: 3px; color: var(--muted); letter-spacing: 0; }
.track { display: flex; height: 5px; border-radius: 1px; background: var(--soft); overflow: hidden; }
.segment { background: var(--candidate); }
.segment.secondary { opacity: .4; }
.history { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 24px; margin-top: 36px; }
.plot-wrap { min-width: 0; position: relative; }
.plot { width: 100%; display: block; }
.plot .gridline { stroke: var(--line); stroke-width: 1; }
.plot text { fill: var(--muted); font: 9px ui-sans-serif, sans-serif; }
.plot .curve { fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.plot .cursor { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 4; opacity: .5; }
.plot:focus-visible { outline: 1px solid var(--muted); outline-offset: 5px; }
.tooltip { position: absolute; top: 12px; width: 170px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); pointer-events: none; z-index: 2; box-shadow: 0 4px 22px #00000009; }
.tooltip-head { font-size: 9px; color: var(--muted); margin-bottom: 8px; }
.tooltip-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 5px; font-size: 10px; }
.tooltip-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tooltip-row b { font-weight: 500; font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); font-size: 32px; text-align: center; grid-column: 1 / -1; }
.connection { position: fixed; bottom: 20px; right: 22px; pointer-events: none; }
.connection i { display: none; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); opacity: .5; }
.connection[data-state="offline"] i { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
@media (max-width: 650px) { body { padding: 35px 22px; } .identity { gap: 12px; margin-bottom: 22px; } .name { font-size: 18px; } .meta { font-size: 9px; } .person { margin-bottom: 20px; } .history { margin-top: 30px; } }
