:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#17242c;background:#e8ecee;font-synthesis:none}
*{box-sizing:border-box}
html,body,#map{width:100%;height:100%;height:100dvh;margin:0;overflow:hidden}
#map{position:fixed;inset:0;background:#eef1f2}.leaflet-tile-pane{filter:saturate(.15) contrast(.9) brightness(1.07)}
button,select{font:inherit;color:inherit;cursor:pointer}
button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #288baf;outline-offset:2px}
.panel{background:rgba(249,251,251,.91);border:1px solid rgba(25,48,55,.15);box-shadow:0 4px 20px rgba(22,37,49,.13);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-radius:12px;z-index:1000}
.masthead{position:absolute;top:calc(14px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;padding:9px 11px;max-width:calc(100vw - 32px);white-space:nowrap}
.brand{font-size:13px;font-weight:800;letter-spacing:.075em;padding:0 5px 3px;background:linear-gradient(90deg,#1f6fd1 0 33%,#e09a12 33% 66%,#d62f45 66%) bottom/100% 3px no-repeat}.brand span{color:#8b9da3;font-weight:500}.separator{width:1px;height:29px;background:#cbd5d8}
.control{display:flex;flex-direction:column;gap:1px;color:#53656d;font-size:10px;font-weight:700;letter-spacing:.07em;text-transform:uppercase}
.control select{appearance:none;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='m1 1 4.5 4.5L10 1' fill='none' stroke='%2352656d' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 4px center;border:0;border-radius:4px;padding:2px 19px 2px 0;max-width:157px;color:#142c38;font-size:13px;line-height:1.3;font-weight:650;letter-spacing:0;text-transform:none}
.control select:hover{color:#185d78}.versus{align-self:flex-end;padding-bottom:4px;color:#778990;font-size:12px;font-weight:600}
.geography select{max-width:135px}
.icon,.close{border:0;background:transparent;font-weight:750}.icon{border:1px solid #c3d0d4;border-radius:50%;width:27px;height:27px;margin-left:1px}
.map-actions{position:absolute;top:90px;left:17px;display:flex;flex-direction:column;padding:4px}.map-actions:has(.state-menu:not([hidden])){z-index:1004}
.map-actions > button{width:34px;height:35px;border:0;border-bottom:1px solid #d3dcdf;background:transparent;font-size:15px;font-weight:700}.map-actions > button:last-of-type{border-bottom:0}.map-actions > button:hover,.icon:hover,.close:hover{background:rgba(35,91,112,.1)}.map-actions > button[aria-pressed="false"]{color:#8c9ca1}
.map-actions > .state-switch{font-size:12px;color:#1b5e86}.state-switch span::after{content:'⌄';font-size:9px;margin-left:1px}
.state-menu{position:absolute;top:70px;left:42px;width:min(270px,calc(100vw - 85px));padding:10px;background:#f9fbfb;box-shadow:0 8px 30px #152f4240;border:1px solid #b9c9cf;border-radius:10px;color:#1b303b;font-size:12px}.state-menu[hidden]{display:none}.state-menu-head,.state-menu-foot{display:flex;align-items:center;justify-content:space-between;gap:8px}.state-menu-head strong{font-size:13px}.state-menu button{width:auto;height:auto;border:1px solid #c4d1d5;border-radius:6px;background:#fff;padding:5px 8px;font-size:12px}.state-menu-head button{border:0;background:transparent;font-size:18px;padding:0 4px}.state-menu input[type=search]{width:100%;padding:7px;margin:8px 0;border:1px solid #c4d1d5;border-radius:6px;background:#fff;font-size:12px}.state-options{max-height:min(260px,40dvh);overflow:auto;border-top:1px solid #e0e6e8;border-bottom:1px solid #e0e6e8}.state-options label{display:flex;align-items:center;gap:8px;padding:5px 4px;cursor:pointer}.state-options label[hidden]{display:none}.state-options label:hover{background:#eaf1f4}.state-options input{margin:0;accent-color:#1b5e86}.state-menu-foot{margin-top:8px}.state-menu-foot button:last-child{background:#17323f;color:#fff;border-color:#17323f}
.legend{position:absolute;left:17px;bottom:56px;width:270px;padding:11px 13px;font-size:11px}.legend-title{font-size:12px;font-weight:750;margin-bottom:7px}.steps{display:flex;gap:2px}.steps span{flex:1;height:11px}.steps span:first-child{border-radius:4px 0 0 4px}.steps span:last-child{border-radius:0 4px 4px 0}.ticks{display:flex;justify-content:space-between;margin-top:4px;color:#586970;padding:0 10%}.steps+.ticks:has(span:nth-child(3)){padding:0}.legend-note{margin-top:7px;color:#627079;line-height:1.3;display:flex;align-items:center;gap:5px;flex-wrap:wrap}.swatch{display:inline-block;width:13px;height:11px;border-radius:3px;border:1px solid #c5cdcf}.swatch.hatch{background-image:repeating-linear-gradient(45deg,rgba(251,250,248,.85) 0 1.6px,transparent 1.6px 4px)}
.dot,.candidate-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px;vertical-align:1px}
.float{position:absolute;display:flex;flex-direction:column;overflow:hidden;resize:both;min-width:250px;min-height:90px;max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:0}.float[hidden]{display:none}.float.dragging{opacity:.92;box-shadow:0 12px 40px rgba(22,37,49,.28);user-select:none}
.float-head{display:flex;align-items:center;gap:6px;padding:8px 8px 6px 10px;cursor:grab;border-bottom:1px solid #dbe3e6;touch-action:none;user-select:none}.float.dragging .float-head{cursor:grabbing}.grip{color:#9aabb1;font-size:13px;letter-spacing:-1px}.float-title{flex:1;min-width:0;font-size:11px;color:#40555e;font-weight:750;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.head-btn{border:0;background:transparent;width:24px;height:22px;border-radius:5px;font-size:16px;line-height:1;color:#53656d;padding:0}.head-btn:hover{background:rgba(35,91,112,.12)}#side-toggle::after{content:'−'}.side.collapsed #side-toggle::after{content:'+'}
.float-body{overflow:auto;min-height:0;flex:1;padding:6px 12px 10px;position:relative}
.side{right:17px;top:90px;width:clamp(260px,22vw,350px)}.side.wide{width:clamp(520px,40vw,680px)}.side.collapsed{resize:none;height:auto!important;min-height:0}.side.collapsed .float-body{display:none}
#cards{display:grid;grid-template-columns:repeat(var(--columns,1),minmax(0,1fr));column-gap:16px}#cards .hint,#cards .card[data-code=all]{grid-column:1/-1}.card[data-code=all] h2{color:#10212b}
.rank{left:152px;top:90px;width:320px;height:min(520px,calc(100dvh - 170px))}.donors{right:17px;top:90px;width:360px;height:min(640px,calc(100dvh - 130px))}.timeline{left:50%;transform:translateX(-50%);bottom:40px;width:min(560px,calc(100vw - 40px))}.timeline[style*="left"]{transform:none}
.seg{display:inline-flex;border:1px solid #c7d3d7;border-radius:7px;overflow:hidden;margin:4px 0 6px}.seg button{border:0;background:#fff;font-size:11px;font-weight:650;color:#53656d;padding:4px 9px}.seg button+button{border-left:1px solid #c7d3d7}.seg button[aria-pressed=true]{background:#17323f;color:#fff}
.tools{position:absolute;left:17px;top:330px;display:flex;flex-direction:column;padding:4px;gap:2px}.tools button{display:flex;align-items:center;gap:7px;border:0;background:transparent;border-radius:7px;padding:7px 10px 7px 7px;font-size:12px;font-weight:700;color:#28404b;text-align:left}.tools button span{width:16px;text-align:center;color:#56707b}.tools button:hover{background:rgba(35,91,112,.1)}.tools button[aria-pressed=true]{background:#17323f;color:#fff}.tools button[aria-pressed=true] span{color:#9fd3e8}.tools button:disabled{opacity:.45;cursor:default}
.rank-by{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:700;color:#53656d;margin:4px 0 6px}.rank-by select{flex:1;border:1px solid #c3d0d4;border-radius:7px;background:#fff;padding:4px 6px;font-size:12px}
.rank-list{list-style:none;margin:0;padding:0}.rank-list li{display:grid;grid-template-columns:22px 1fr auto;align-items:center;column-gap:6px;padding:5px 4px 6px;border-radius:7px;cursor:pointer;font-size:12px}.rank-list li:hover,.rank-list li:focus{background:rgba(35,91,112,.1);outline:none}.rank-n{color:#8a9aa0;font-variant-numeric:tabular-nums;text-align:right}.rank-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rank-value{font-weight:700;font-variant-numeric:tabular-nums}.rank-bar{grid-column:2/4;display:flex;height:5px;border-radius:3px;overflow:hidden;margin-top:3px;gap:1px}.rank-bar i,.split i{display:block;min-width:0}
.stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:6px 0}.stat-row div{background:#f1f5f6;border-radius:8px;padding:6px 8px}.stat-row b{display:block;font-size:15px;color:#10212b}.stat-row span{font-size:10px;color:#66777f}
.split{display:flex;height:8px;border-radius:4px;overflow:hidden;gap:2px;margin:4px 0 8px}
.bars{list-style:none;margin:0;padding:0}.bars li{display:grid;grid-template-columns:minmax(70px,1.1fr) 2fr 36px;align-items:center;gap:6px;font-size:11.5px;padding:2px 3px;border-radius:5px}.bars li.pick{cursor:pointer}.bars li.pick:hover{background:rgba(35,91,112,.1)}.bars li>span:last-child{text-align:right;font-variant-numeric:tabular-nums;color:#40555e}.bars .bar{height:9px;background:#eef2f3;border-radius:4px;overflow:hidden}.bars .bar i{display:block;height:100%;border-radius:4px}.board li{grid-template-columns:90px 1fr 56px;font-size:12px;padding:3px}
.time-controls{display:flex;align-items:center;gap:10px;margin:4px 0}.play{width:34px;height:34px;border-radius:50%;border:0;background:#17323f;color:#fff;font-size:13px;flex:none}.play:hover{background:#244b5d}#time-slider{flex:1;accent-color:#17323f}#time-label{min-width:130px;font-size:13px;color:#10212b}.time-chart{position:relative}.chart .now{stroke:#10212b;stroke-width:1.5}
.muted-cell{color:#6b7c83;font-size:11px;text-align:right;white-space:nowrap}.tooltip-hint{color:#1b5e86;font-size:11px;margin-top:3px}.card{border-top:1px solid #d3dcdf;padding:9px 0 6px;position:relative}.card header{display:flex;justify-content:space-between;align-items:center}.card h2{font-size:14px;margin:0 0 4px}.remove{border:0;background:transparent;font-size:18px;line-height:1;color:#53656d;padding:0 4px}.remove:hover{color:#8c2639}.totals{width:100%;border-collapse:collapse;font-size:12px;margin-bottom:4px}.totals td{padding:1px 0}.totals td+td{text-align:right;font-variant-numeric:tabular-nums}.chart{width:100%;height:auto;display:block;overflow:visible}.chart .axis{font-size:9px;fill:#66777f}.chart .base{stroke:#9fb0b5}.chart .grid{stroke:#dde4e6}.chart .event{stroke:#8c9ca1;stroke-dasharray:2 2}.chart .event-label{font-size:8.5px;fill:#66777f}.chart .band{fill:#dfe8ec}.chart .cursor{stroke:#1d3440;stroke-width:1}.chart .hit{fill:transparent}.chart-tip{position:absolute;z-index:2;white-space:nowrap;background:#fcfdfd;border:1px solid #bacbd1;border-radius:7px;padding:6px 8px;font-size:11px;box-shadow:0 5px 18px #152f4230;pointer-events:none}.chart-tip[hidden]{display:none}.muted,.hint{color:#66777f;font-size:11px;margin:6px 0}.add-state{margin-top:6px;border:1px solid #c3d0d4;border-radius:7px;background:#fff;padding:5px 7px;font-size:12px}.control select option:disabled{color:#a9b4b8}
.foot{position:absolute;left:17px;bottom:17px;display:flex;gap:9px;max-width:min(590px,calc(100vw - 32px));padding:7px 10px;color:#4b6069;font-size:11px}.foot>span+span{border-left:1px solid #b8c9cf;padding-left:9px}
.foot #scope{display:inline-flex;align-items:center;gap:4px;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.foot .crumb{flex:none;border:0;border-radius:4px;background:transparent;padding:2px 3px;margin:-2px -3px;color:#155d80;font-size:inherit;font-weight:700}.foot .crumb:hover{background:#dcebf0;text-decoration:underline}.foot .crumb-separator{border:0;padding:0 2px;color:#87999f}.foot #coverage{flex:none}
.about{position:absolute;right:17px;top:90px;z-index:1001;width:min(370px,calc(100vw - 34px));max-height:calc(100dvh - 145px);overflow:auto;padding:20px 22px;line-height:1.5;font-size:13px;color:#33434b}.about[hidden],.error[hidden]{display:none}.about h1{font-size:16px;margin:0 0 12px;color:#142b36}.about p{margin:0 0 11px}.about .small{font-size:11px;color:#66777f}.about .links{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0}.about a{color:#176582;text-decoration:none;border-bottom:1px solid #8bb8c9}.about .close{float:right;font-size:22px;line-height:20px;margin:-7px -8px 0 0}
.error{position:absolute;top:96px;left:50%;transform:translateX(-50%);padding:10px 15px;max-width:calc(100vw - 40px);font-size:13px;color:#8c2639}
.leaflet-control-attribution{background:rgba(248,250,249,.76)!important;color:#51636b!important;font-size:9px!important}.leaflet-control-attribution a{color:#316a80!important}.leaflet-tooltip{box-shadow:0 5px 22px #152f4240;border:1px solid #bacbd1;border-radius:7px;background:#fcfdfd;padding:9px 11px;line-height:1.5;font-size:12px}.tooltip-title{font-weight:750}.tooltip-sub{color:#63777d;font-size:11px}
@media(max-width:850px){.masthead{left:10px;right:10px;top:calc(9px + env(safe-area-inset-top));transform:none;max-width:none;gap:7px;flex-wrap:wrap;justify-content:space-between}.brand{width:100%;font-size:12px}.separator{display:none}.control{font-size:9px}.control select{font-size:12px;max-width:130px}.versus{display:none}.map-actions,.about{top:132px}.legend{left:9px;bottom:92px;width:230px}.float,.side,.side.wide,.side.collapsed,.rank,.donors,.timeline,.filter{top:auto!important;left:9px!important;right:9px!important;bottom:44px!important;width:auto!important;height:auto!important;max-height:50dvh;transform:none;resize:none;z-index:1002}.side.collapsed{max-height:none}.float-head{cursor:default}.grip{display:none}.tools{top:132px;left:56px;flex-direction:row;flex-wrap:wrap;max-width:calc(100vw - 66px)}.tools button{padding:5px 7px;font-size:11px}.float:not([hidden]):not(.collapsed)~.legend{display:none}.foot{left:9px;bottom:8px;max-width:calc(100vw - 18px);font-size:10px}.map-actions{left:9px}}
@media(max-width:540px){.masthead{gap:5px;padding:7px}.control{flex:1 1 27%;min-width:0}.control select{max-width:100%;width:100%;font-size:11px}.icon{flex:none}.map-actions,.about{top:190px}.tools{top:190px}.legend{padding:8px 10px;bottom:92px;width:auto;right:9px}.legend-note{display:none}.foot{bottom:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.foot span{overflow:hidden;text-overflow:ellipsis}.foot span+span{flex:none}}
.filter{left:50%;transform:translateX(-50%);bottom:40px;width:min(520px,calc(100vw - 40px))}.filter[style*="left"]{transform:none}
.seg.wrap{flex-wrap:wrap}.rank-controls{display:flex;flex-direction:column;gap:2px;margin-bottom:4px}.rank-controls .seg{align-self:flex-start}
.filter-hist{margin-top:4px}.hist rect.in{fill:#3b528b}.hist rect.out{fill:#d5dde0}
.dual{position:relative;height:22px;margin:-4px 0 2px}.dual input{position:absolute;inset:0;width:100%;margin:0;background:none;pointer-events:none;-webkit-appearance:none;appearance:none;accent-color:#17323f}.dual input::-webkit-slider-runnable-track{height:4px;background:transparent}.dual input::-moz-range-track{height:4px;background:transparent}.dual input::-webkit-slider-thumb{pointer-events:auto;-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background:#17323f;border:2px solid #fff;box-shadow:0 1px 4px #0005;margin-top:-6px;cursor:ew-resize}.dual input::-moz-range-thumb{pointer-events:auto;width:14px;height:14px;border-radius:50%;background:#17323f;border:2px solid #fff;cursor:ew-resize}.dual::before{content:'';position:absolute;left:0;right:0;top:9px;height:4px;border-radius:2px;background:#d5dde0}
.filter-ends{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:#53656d;margin-bottom:6px}.filter-ends b{color:#10212b}.check{display:flex;gap:7px;align-items:flex-start;font-size:12px;color:#28404b;margin:6px 0}.check input{margin-top:2px}.text-btn{border:0;background:transparent;color:#1b5e86;font-size:12px;padding:0;text-decoration:underline}
.fade-row{margin-top:6px}.fade{display:block;height:8px;border-radius:4px}.filter-note{color:#1b5e86}
.rank-list li.muted{display:block;cursor:default}.rank-list li.muted:hover{background:none}.ticks.ends{padding:0}
.control.period{min-width:210px}.control.period b{color:#142c38;font-size:12px;letter-spacing:0;text-transform:none}
.period-slider{position:relative;height:18px;margin-top:2px}.period-track{position:absolute;left:7px;right:7px;top:7px;height:4px;border-radius:2px;background:#d5dde0}.period-track i{position:absolute;top:-3px;width:1px;height:10px;background:#a8b6bb}.period-fill{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:2px;background:#17323f}
.period-slider input{position:absolute;inset:0;width:100%;margin:0;background:none;pointer-events:none;-webkit-appearance:none;appearance:none}.period-slider input::-webkit-slider-runnable-track{height:18px;background:transparent}.period-slider input::-moz-range-track{background:transparent}.period-slider input::-webkit-slider-thumb{pointer-events:auto;-webkit-appearance:none;width:14px;height:14px;border-radius:50%;background:#fff;border:2px solid #17323f;margin-top:2px;cursor:ew-resize;box-shadow:0 1px 3px #0003}.period-slider input::-moz-range-thumb{pointer-events:auto;width:10px;height:10px;border-radius:50%;background:#fff;border:2px solid #17323f;cursor:ew-resize}.period-slider input:focus-visible::-webkit-slider-thumb{outline:3px solid #288baf}
.period-ticks{display:flex;justify-content:space-between;gap:4px;font-size:8.5px;letter-spacing:0;text-transform:none;font-weight:600;color:#6b7c83;padding:0 2px}.period-ticks span{flex:1;text-align:center}
@media(max-width:850px){.control.period{width:100%;min-width:0}}
@media(max-width:850px){.control.period{flex:1 1 100%!important;max-width:none}}
.ticks8{display:grid;grid-template-columns:repeat(8,1fr);gap:2px;margin-top:3px;font-size:9.5px;color:#586970;text-align:center}.ticks8 span:nth-child(4){border-right:1px solid #9aa8ad}
/* Dark theme (html.dark, toggled by the ◐ button) */
html.dark{color:#e3e9ec;background:#0f151a}
html.dark #map{background:#0f151a}html.dark .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg) saturate(.15) brightness(.75) contrast(.9)}
html.dark .panel{background:rgba(20,27,33,.9);border-color:rgba(255,255,255,.09);box-shadow:0 6px 24px rgba(0,0,0,.45)}
html.dark .brand span,html.dark .versus,html.dark .grip,html.dark .rank-n,html.dark .crumb-separator{color:#7e8f97}html.dark .separator{background:#34414a}
html.dark .control,html.dark .float-title,html.dark .rank-by,html.dark .filter-ends,html.dark .foot,html.dark .muted,html.dark .hint,html.dark .muted-cell,html.dark .tooltip-sub,html.dark .about .small,html.dark .legend-note,html.dark .ticks,html.dark .ticks8,html.dark .period-ticks,html.dark .stat-row span,html.dark .bars li>span:last-child{color:#93a3ab}
html.dark .control select,html.dark .control.period b,html.dark .card h2,html.dark .card[data-code=all] h2,html.dark .stat-row b,html.dark #time-label,html.dark .filter-ends b,html.dark .about h1,html.dark .tooltip-title,html.dark .check,html.dark .tools button,html.dark .about{color:#e3e9ec}
html.dark .control select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='m1 1 4.5 4.5L10 1' fill='none' stroke='%2393a3ab' stroke-width='1.5'/%3E%3C/svg%3E")}
html.dark .control select option{background:#141b21;color:#e3e9ec}html.dark .control select:hover{color:#8cc8ec}
html.dark .icon{border-color:#3a4750}html.dark .map-actions > button{border-bottom-color:#2a353d;color:#e3e9ec}html.dark .map-actions > button[aria-pressed="false"]{color:#6f8089}html.dark .map-actions > .state-switch,html.dark .tooltip-hint,html.dark .filter-note,html.dark .text-btn,html.dark .about a{color:#7cc0ea}
html.dark .map-actions > button:hover,html.dark .icon:hover,html.dark .close:hover,html.dark .head-btn:hover,html.dark .tools button:hover,html.dark .rank-list li:hover,html.dark .rank-list li:focus,html.dark .bars li.pick:hover{background:rgba(255,255,255,.07)}
html.dark .tools button span,html.dark .head-btn,html.dark .remove{color:#93a3ab}html.dark .tools button[aria-pressed=true],html.dark .seg button[aria-pressed=true],html.dark .play,html.dark .state-menu-foot button:last-child{background:#2f7fc0;color:#fff;border-color:#2f7fc0}html.dark .tools button[aria-pressed=true] span{color:#d8ecf8}
html.dark .float-head,html.dark .card{border-color:#2a353d}html.dark .seg,html.dark .seg button+button{border-color:#34414a}html.dark .seg button{background:#1b242b;color:#b6c3c9}
html.dark .rank-by select,html.dark .add-state,html.dark .state-menu input[type=search],html.dark .state-menu button{background:#1b242b;border-color:#34414a;color:#e3e9ec}
html.dark .state-menu{background:#141b21;border-color:#34414a;color:#e3e9ec}html.dark .state-options,html.dark .state-options label{border-color:#2a353d}html.dark .state-options label:hover{background:#1f2a31}
html.dark .stat-row div{background:#1b242b}html.dark .bars .bar,html.dark .period-track,html.dark .dual::before{background:#2a353d}html.dark .hist rect.in{fill:#5b8fd6}html.dark .hist rect.out{fill:#2f3a42}
html.dark .chart .axis,html.dark .chart .event-label{fill:#93a3ab}html.dark .chart .base{stroke:#56656e}html.dark .chart .grid{stroke:#26313a}html.dark .chart .event{stroke:#6f8089}html.dark .chart .band{fill:#1c2a35}html.dark .chart .cursor,html.dark .chart .now{stroke:#e3e9ec}
html.dark .chart-tip,html.dark .leaflet-tooltip{background:#1b242b;border-color:#34414a;color:#e3e9ec;box-shadow:0 6px 22px rgba(0,0,0,.5)}html.dark .leaflet-tooltip-top:before{border-top-color:#34414a}
html.dark .foot>span+span{border-color:#34414a}html.dark .foot .crumb{color:#7cc0ea}html.dark .foot .crumb:hover{background:#1f2a31}
html.dark .swatch{border-color:#4a565e}html.dark .error{color:#ff8c9a}
html.dark .leaflet-control-attribution{background:rgba(15,21,26,.75)!important;color:#7e8f97!important}html.dark .leaflet-control-attribution a{color:#7cc0ea!important}
html.dark .period-slider input::-webkit-slider-thumb{background:#0f151a;border-color:#e3e9ec}html.dark .period-slider input::-moz-range-thumb{background:#0f151a;border-color:#e3e9ec}html.dark .period-fill{background:#e3e9ec}
/* Legend fits between the panel buttons and the footer; title click collapses it */
.legend{overflow:auto}.legend-title{cursor:pointer;user-select:none}.legend-title::after{content:'−';float:right;color:#93a3ab;font-weight:500}.legend.collapsed .legend-title::after,.legend.squeezed:not(.expanded) .legend-title::after{content:'+'}.legend.collapsed>:not(.legend-title),.legend.squeezed>.legend-note:not(.empty-toggle),.legend.squeezed>.fade-row{display:none}.legend.collapsed .legend-title{margin:0}
.empty-toggle{display:flex;align-items:center;gap:6px;width:100%;margin-top:8px;padding:0;border:0;background:none;color:#b6c3c9;font-size:11px}.empty-toggle i{margin-left:auto;width:24px;height:14px;border-radius:7px;background:#34414a;position:relative;transition:background .15s}.empty-toggle i::after{content:'';position:absolute;top:2px;left:2px;width:10px;height:10px;border-radius:50%;background:#93a3ab;transition:transform .15s}.empty-toggle[aria-checked=true] i{background:#2f7fc0}.empty-toggle[aria-checked=true] i::after{transform:translateX(10px);background:#fff}
/* Loading bar */
.progress{position:absolute;top:84px;left:50%;transform:translateX(-50%);z-index:100000;display:flex;align-items:center;gap:8px;padding:7px 10px;font-size:10px;color:#93a3ab;font-variant-numeric:tabular-nums}.progress[hidden]{display:none}.progress-bar{width:180px;height:4px;border-radius:2px;background:#2a353d;overflow:hidden}.progress-bar i{display:block;height:100%;width:0;background:#7cc0ea;transition:width .2s}
@media(max-width:850px){.progress{top:auto;bottom:130px}}
.control.inactive{opacity:.45}.control.inactive input{pointer-events:none}.control[hidden]{display:none}.tooltip-head{margin-top:4px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;font-size:9.5px}
.splom{left:50%;transform:translateX(-50%);bottom:400px;width:min(520px,calc(100vw - 40px));height:min(460px,calc(100dvh - 520px));min-height:260px}.splom[style*="left"]{transform:none}
.splom-body{display:flex;flex-direction:column;padding-bottom:6px}.splom-plot{position:relative;flex:1;min-height:180px}.splom-plot canvas{position:absolute;inset:0;width:100%;height:100%;cursor:crosshair}.splom-body .hint{margin:4px 0 0;flex:none}
.filter-actions{display:flex;gap:14px}
.layer-row{display:flex;align-items:center;gap:8px;margin:0 0 8px;padding-bottom:8px;border-bottom:1px solid rgba(120,140,150,.25);font-size:11px}.layer-row label{display:flex;align-items:center;gap:6px;flex:1}.layer-row input[type=range]{flex:1;min-width:60px;accent-color:#3b8fd0}.layer-row .empty-toggle{margin:0}
.legend.data-off>:not(.layer-row){opacity:.35}
.legend.collapsed>.layer-row{display:flex}
