:root{--bg:#f6f8fb;--surface:#fff;--ink:#141824;--ink-2:#4a5263;--muted:#8a93a6;--line:#e7ebf2;--line-2:#f0f3f8;--accent:#3b5bfd;--radius:16px;--shadow:0 1px 2px #1418240a, 0 8px 24px #1418240f;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;font-feature-settings:"tnum" 1, "cv11" 1;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}body{background:radial-gradient(1200px 600px at 10% -10%, #eaf0ff 0%, transparent 60%), var(--bg);min-height:100vh;margin:0}h1,h2,h3{letter-spacing:-.02em;margin:0}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}.muted{color:var(--muted)}.small{font-size:12px}.loading{min-height:100vh;color:var(--ink-2);place-items:center;display:grid}.app{max-width:1680px;margin:0 auto;padding:20px 24px 32px}.topbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px;display:flex}.brand{align-items:center;gap:14px;display:flex}.brand__mark{color:#fff;background:linear-gradient(135deg,#3b5bfd,#8b5cf6);border-radius:12px;place-items:center;width:44px;height:44px;font-size:22px;display:grid;box-shadow:0 6px 16px #3b5bfd4d}.brand h1{font-size:22px;font-weight:800}.brand p{margin:2px 0 0;font-size:13px}.status{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.pill{background:var(--surface);border:1px solid var(--line);color:var(--ink-2);border-radius:999px;align-items:center;gap:6px;padding:6px 12px;font-size:12px;font-weight:600;display:inline-flex}.pill--warn{color:#9a6200;background:#fff7e6;border-color:#ffe2a8}.live-dot{background:#16a34a;border-radius:50%;width:8px;height:8px;animation:1.8s infinite pulse;box-shadow:0 0 #16a34a99}@keyframes pulse{70%{box-shadow:0 0 0 8px #16a34a00}to{box-shadow:0 0 #16a34a00}}.banner{color:#b42318;background:#fff1f1;border-radius:12px;margin-bottom:16px;padding:10px 14px;font-size:13px}.layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:20px;display:grid}@media (width<=1400px){.layout{grid-template-columns:minmax(0,1fr) 600px}}@media (width<=1100px){.layout{grid-template-columns:minmax(0,1fr)}}.layout>*{min-width:0}@media (width<=560px){.duel{grid-template-columns:1fr}.duel__vs{flex-direction:row;gap:6px}.app{padding:14px 12px 24px}.stats{grid-template-columns:repeat(2,1fr)}.panel{padding:14px}}.mapcard,.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.mapcard{padding:18px 18px 14px;position:sticky;top:16px}@media (width<=1100px){.mapcard{position:static}}.mapcard__head{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:12px;padding:0 4px 6px;display:flex}.mapcard__head h2{font-size:18px}.map{position:relative}.map svg{width:100%;height:auto;display:block}.map__prov{stroke:#fff;stroke-width:.8px;cursor:pointer;outline:none;transition:fill-opacity .15s,filter .15s}.map__prov:hover,.map__prov:focus-visible{filter:brightness(.92)saturate(1.1)}.map__prov.is-selected{fill-opacity:1!important}.map__outline{fill:none;stroke:var(--ink);stroke-width:2.2px;pointer-events:none;stroke-linejoin:round}.map__city{cursor:pointer;outline:none}.map__city circle{stroke:#fff;stroke-width:2px;filter:drop-shadow(0 1px 2px #14182440);transition:r .15s}.map__city:hover circle,.map__city:focus-visible circle{r:11}.map__city.is-selected circle{stroke:var(--ink);stroke-width:2.5px}.map__city text{fill:var(--ink-2);paint-order:stroke;stroke:#fff;stroke-width:3px;font-size:11px;font-weight:600}.map__canarias{fill:none;stroke:#c9d0dc;stroke-width:1px;stroke-dasharray:4 3}.map__tip{pointer-events:none;border:1px solid var(--line);box-shadow:var(--shadow);white-space:nowrap;background:#fffffff7;border-radius:10px;min-width:150px;padding:8px 10px;font-size:12px;position:absolute;transform:translate(12px,-110%)}.map__tip strong{font-size:13px;display:block}.map__tip-seats{color:var(--muted)}.map__tip-row{align-items:center;gap:6px;margin-top:4px;font-weight:600;display:flex}.map__tip-row i{border-radius:3px;width:10px;height:10px}.legend{color:var(--ink-2);flex-wrap:wrap;gap:6px 14px;margin:0;padding:8px 4px 0;font-size:12px;font-weight:600;list-style:none;display:flex}.legend li{align-items:center;gap:6px;display:flex}.legend i,.party i,.seatsbar__legend i{border-radius:3px;flex:none;width:10px;height:10px;display:inline-block}.panel{flex-direction:column;gap:16px;padding:18px;animation:.25s slide;display:flex}@keyframes slide{0%{opacity:0;transform:translate(12px)}to{opacity:1;transform:none}}.panel__head{justify-content:space-between;align-items:flex-start;display:flex}.panel__head h2{font-size:24px;font-weight:800}.eyebrow{text-transform:uppercase;letter-spacing:.08em;color:var(--accent);font-size:11px;font-weight:700}.btn-ghost{border:1px solid var(--line);background:var(--surface);cursor:pointer;width:32px;height:32px;color:var(--ink-2);border-radius:10px}.btn-ghost:hover{background:var(--line-2)}.stats{grid-template-columns:repeat(4,1fr);gap:8px;display:grid}.stats>div{background:var(--line-2);border-radius:12px;padding:10px}.stats span{color:var(--muted);font-size:11px;font-weight:600;display:block}.stats b{font-size:15px;font-weight:700}.seatsbar__track{background:var(--line-2);border-radius:999px;gap:2px;height:14px;display:flex;position:relative;overflow:hidden}.seatsbar__seg{min-width:3px}.seatsbar__majority{background:var(--ink);width:2px;position:absolute;top:-3px;bottom:-3px}.seatsbar__legend{color:var(--ink-2);flex-wrap:wrap;gap:4px 12px;margin:8px 0 0;padding:0;font-size:12px;list-style:none;display:flex}.seatsbar__legend li{align-items:center;gap:5px;display:flex}.card{border:1px solid var(--line);border-radius:14px;padding:14px}.card__head{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:10px;display:flex}.card__head h3{font-size:15px;font-weight:700}.card__head .muted{font-size:12px}.hint{color:var(--muted);margin:10px 0 0;font-size:12px}.party{align-items:center;gap:7px;font-weight:600;display:inline-flex}.results{border-collapse:collapse;width:100%;font-size:13px}.results th{text-align:left;color:var(--muted);padding:0 6px 6px;font-size:11px;font-weight:600}.results td{border-top:1px solid var(--line-2);padding:7px 6px;position:relative}.results .num{text-align:right;white-space:nowrap}.results__bar{opacity:.8;border-radius:2px;height:3px;margin-top:4px;display:block}.order{flex-wrap:wrap;gap:4px;margin-bottom:12px;display:flex}.order__seat{cursor:default;border-radius:7px;place-items:center;width:24px;height:24px;font-size:10px;font-weight:700;display:grid}.dhondt__scroll{border:1px solid var(--line-2);border-radius:10px;overflow-x:auto}.dhondt{border-collapse:separate;border-spacing:0;width:100%;font-size:12px}.dhondt th,.dhondt td{white-space:nowrap;text-align:right;border-bottom:1px solid var(--line-2);padding:7px 8px}.dhondt thead th{color:var(--muted);background:#fafbfd;font-size:11px;font-weight:600}.dhondt .sticky{background:var(--surface);text-align:left;z-index:1;box-shadow:1px 0 0 var(--line);position:sticky;left:0}.dhondt thead .sticky{background:#fafbfd}.dhondt tbody th{justify-content:space-between;align-items:center;gap:10px;min-width:120px;display:flex}.dhondt__won{background:var(--line-2);border-radius:6px;padding:1px 7px;font-size:12px}.dhondt td{font-variant-numeric:tabular-nums;color:var(--ink-2)}.dhondt td.is-won{color:var(--ink);font-weight:700}.dhondt td.is-won sup{margin-left:2px;font-size:9px;font-weight:800}.dhondt td.is-next{outline-offset:-3px;color:var(--ink);background:#fffaf0;outline:2px dashed #f59e0b;font-weight:700}.dhondt td.is-last{outline:2px solid var(--ink);outline-offset:-3px}.dhondt__keys{color:var(--ink-2);flex-wrap:wrap;gap:6px 16px;margin-top:8px;display:flex}.dhondt__keys span{align-items:center;gap:6px;display:inline-flex}.key{border-radius:3px;width:14px;height:12px;display:inline-block}.key--last{border:2px solid var(--ink)}.key--next{background:#fffaf0;border:2px dashed #f59e0b}.duel{grid-template-columns:1fr auto 1fr;align-items:stretch;gap:8px;margin-top:12px;display:grid}.duel__side{border:2px solid var(--ink);background:var(--surface);border-radius:12px;flex-direction:column;gap:3px;padding:10px 12px;display:flex}.duel__side--next{background:#fffaf0;border:2px dashed #f59e0b}.duel__side>b{font-size:18px;font-weight:800}.duel__tag{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-size:10px;font-weight:700}.duel__vs{flex-direction:column;justify-content:center;align-items:center;padding:0 4px;display:flex}.duel__vs b{font-size:14px}.duel__note{color:var(--ink-2);grid-column:1/-1;margin:2px 0 0;font-size:13px}.dhondt tbody tr:last-child>*{border-bottom:0}.warn{color:#9a6200;background:#fff7e6;border-radius:8px;padding:6px 10px}.footer{text-align:center;color:var(--ink-2);margin-top:24px;font-size:13px}.footer p{margin:4px 0}
