:root { --ink:#e9f3f1; --muted:#91aaa6; --panel:#101a1d; --panel2:#152327; --line:#294044; --accent:#46e0b3; }
* { box-sizing:border-box; }
html,body,main { height:100%; margin:0; }
body { background:#091113; color:var(--ink); font:14px/1.4 Inter,ui-sans-serif,system-ui,sans-serif; }
main { display:grid; grid-template-columns:minmax(0,1fr) 410px; }
.map-wrap { position:relative; min-height:55vh; }
header { position:absolute; z-index:500; top:18px; left:18px; right:18px; display:flex; justify-content:space-between; align-items:flex-start; pointer-events:none; }
header>div { padding:11px 15px; background:rgba(9,17,19,.9); border:1px solid var(--line); border-radius:12px; backdrop-filter:blur(12px); }
.area-picker { pointer-events:auto; margin-left:auto; margin-right:10px; padding:8px 11px; background:rgba(9,17,19,.9); border:1px solid var(--line); border-radius:12px; color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:1px; }
.area-picker select { display:block; min-width:130px; margin-top:2px; border:0; background:transparent; color:var(--ink); font:700 14px/1.3 inherit; outline:none; }
.area-picker option { background:var(--panel); }
h1 { font-size:23px; line-height:1; margin:3px 0 1px; letter-spacing:-.5px; }
.eyebrow { font-size:10px; letter-spacing:2px; color:var(--accent); font-weight:800; }
.freshness { color:var(--muted); font-size:12px; }
#map { height:100%; background:#0c1719; }
.leaflet-tile { filter:saturate(.35) brightness(.58) hue-rotate(125deg); }
.leaflet-tooltip { background:#0d181b; color:var(--ink); border:1px solid #385055; border-radius:10px; box-shadow:0 10px 30px #0008; padding:11px 13px; }
.leaflet-tooltip:before { border-top-color:#385055; }
.tip-title { font-weight:800; margin-bottom:6px; color:#fff; }
.tip-row { display:grid; grid-template-columns:20px 1fr auto; gap:6px; min-width:220px; }
.tip-row span:last-child { color:var(--accent); font-variant-numeric:tabular-nums; }
.tip-margin { border-top:1px solid var(--line); margin-top:7px; padding-top:6px; color:var(--muted); }
.legend { position:absolute; z-index:500; left:18px; bottom:20px; background:rgba(9,17,19,.9); border:1px solid var(--line); padding:9px 12px; border-radius:10px; display:flex; gap:12px; flex-wrap:wrap; }
.legend span { color:var(--muted); font-size:11px; display:flex; align-items:center; gap:5px; }
.legend i { width:9px; height:9px; border-radius:50%; }.tie{background:#ef476f}.close{background:#ff8c42}.watch{background:#ffd166}.safe{background:#23b58a}.none{background:#42565a}
aside { background:var(--panel); border-left:1px solid var(--line); padding:20px; overflow:auto; }
.scope { display:grid; grid-template-columns:repeat(3,1fr); background:#0b1416; padding:4px; border-radius:10px; gap:4px; }
.scope:has(#last-scope[hidden]) { grid-template-columns:repeat(2,1fr); }
.scope:has(#middle-scope[hidden]) { grid-template-columns:1fr; }
button { border:0; border-radius:7px; background:transparent; color:var(--muted); padding:9px 4px; cursor:pointer; font-weight:700; }
button.active { background:var(--panel2); color:var(--accent); box-shadow:inset 0 0 0 1px var(--line); }
.selection { margin-top:22px; min-height:236px; }
.selection.empty { display:grid; place-items:center; }
.hint { color:var(--muted); text-align:center; max-width:280px; }
.title-type { color:var(--accent); text-transform:uppercase; letter-spacing:1.5px; font-size:10px; font-weight:800; }
.selection h2 { font-size:25px; margin:4px 0 2px; letter-spacing:-.6px; }
.captured { color:var(--muted); font-size:11px; margin-bottom:14px; }
.leader-row { display:grid; grid-template-columns:27px 1fr auto; align-items:center; padding:9px 0; border-bottom:1px solid var(--line); }
.rank { color:var(--muted); font-weight:800; }.parcels { color:var(--accent); font-weight:800; font-variant-numeric:tabular-nums; }
.margin { display:flex; justify-content:space-between; background:#0b1416; padding:10px 12px; margin-top:12px; border-radius:8px; color:var(--muted); }.margin strong{color:#fff}
.chart-card { border-top:1px solid var(--line); padding-top:18px; }
.chart-heading { display:flex; justify-content:space-between; align-items:center; }.chart-heading h2{font-size:15px;margin:0}.chart-heading span{color:var(--muted);font-size:11px}
.chart-wrap { height:255px; margin-top:12px; }.history-note{color:var(--muted);font-size:11px;text-align:center}
.board-list button { width:100%; text-align:left; border-bottom:1px solid var(--line); border-radius:0; display:flex; justify-content:space-between; }.board-list button:hover{color:#fff}
.region-marker { background:rgba(9,17,19,.92); border:1px solid var(--accent); color:var(--ink); border-radius:14px; padding:5px 9px; width:max-content; font-size:12px; font-weight:800; box-shadow:0 5px 18px #0008; }
@media(max-width:850px){ main{grid-template-columns:1fr;grid-template-rows:58vh auto} aside{border-left:0;border-top:1px solid var(--line)} header{right:14px}.freshness{display:none}.area-picker{margin-left:8px}.legend{right:14px}.chart-wrap{height:220px} }
