/* Full-screen explorer. UX polish is being reviewed locally. */
:root{font-size:14px;--muted:#aeb4bf;--faint:#9099a7;--water:#101b22;--panel:#171c21;--bg:#11171c;--line:#343d46;--ink:#f0f2f5}
body[data-theme=light]{--bg:#faf9f6;--panel:#fffefa;--hover:#eeede9;--subtle:#f4f3ef;--line:#dadcd9;--ink:#20272b;--muted:#59636b;--faint:#68747e;--water:#eaf0f3}
body{height:100dvh;overflow:hidden}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
button:disabled{cursor:default}.site-header{height:66px;padding:0 24px;gap:22px;background:var(--panel);position:relative;z-index:1300}.brand{font-size:21px;font-weight:650;white-space:nowrap}.header-date{font-size:12px;color:var(--muted);white-space:nowrap;border-left:1px solid var(--line);padding-left:22px}.contest-trigger{height:38px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex:1;max-width:530px;min-width:150px;padding:0 13px;border:1px solid var(--line);border-radius:5px;text-align:left;background:var(--subtle);font-size:13px}.contest-trigger span:first-child{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.contest-trigger:hover{background:var(--hover)}.site-header .mode-tabs{align-self:auto;height:36px;display:flex;gap:2px;background:var(--subtle);border:1px solid var(--line);border-radius:5px;padding:3px}.site-header .mode-tabs button{padding:0 13px;border-radius:3px;font-size:12px;font-weight:550}.site-header .mode-tabs .active{background:var(--hover)}.site-header .mode-tabs button.active:after{display:none}.header-actions{gap:17px}.header-actions button,.header-actions a{font-size:12px}.header-actions .icon-button{border:0;font-size:20px;width:25px}.site-header .text-button{white-space:nowrap}
main{max-width:none;padding:0;height:calc(100dvh - 96px);margin:0;position:relative}.page#explorer-page,.workspace{height:100%;position:relative}.workspace{background:none;border:0;border-radius:0}.sf-explore-grid{display:block;min-height:0;height:100%;position:absolute;inset:0}.map-shell{border:0;height:100%;position:relative}.sf-map-wrap{height:100%;background:var(--water)}.workspace-toolbar{position:absolute;top:20px;left:22px;z-index:800;padding:0;border:0;gap:0;background:var(--panel);border:1px solid var(--line);border-radius:5px}.surface-tabs{background:none;padding:3px}.surface-tabs button{font-size:12px;padding:6px 10px}.surface-tabs button.active{background:var(--hover)}.map-toolbar{position:absolute;z-index:1100;top:20px;left:190px;padding:4px 9px;min-height:40px;border:1px solid var(--line);background:var(--panel);border-radius:5px;gap:14px}.view-tabs{display:none}.settings summary{padding:2px;font-size:12px}.settings-popover{left:0;right:auto;top:37px}.map-overline{top:84px;left:24px;gap:3px}.map-overline strong{font-size:16px;font-weight:600}.map-overline span{font-size:12px;max-width:250px;text-shadow:0 1px 3px var(--water)}.map-buttons{left:24px;right:auto;top:auto;bottom:100px;gap:4px}.map-buttons button{width:36px;height:36px;color:var(--ink);font-size:23px}.map-bottom-note{bottom:78px;left:24px;font-size:11px}.sf-legend{position:absolute;bottom:34px;left:24px;z-index:700;border:1px solid var(--line);border-radius:5px;background:var(--panel);padding:11px 14px;min-height:0;max-width:min(650px,calc(100% - 420px));font-size:11px;gap:7px 16px;box-shadow:none}.candidate-color{width:9px;height:9px}.legend-chips{gap:5px 13px}.sf-detail{position:absolute;right:22px;top:20px;width:336px;max-height:calc(100% - 56px);padding:23px;z-index:750;overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:6px;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.panel-race{font-size:21px;line-height:1.3;letter-spacing:-.4px;font-weight:600;margin-bottom:18px}.panel-race small{font-weight:450;font-size:12px;display:block;color:var(--muted);letter-spacing:0;margin-bottom:6px}.detail-heading{margin-bottom:8px;margin-top:18px}.detail-heading .overline{font-size:11px}#area-identity h2{font-size:17px;font-weight:550}#area-identity>p{font-size:11px}.candidate-result-head{font-size:14px;gap:12px;line-height:1.45}.candidate-result-head strong{font-size:16px;font-weight:600;flex:none}.candidate-label{gap:8px}.candidate-label .candidate-color{align-self:center}.candidate-result{margin-bottom:18px}.progress-track{height:5px;margin-top:9px;border-radius:2px}.candidate-result-count{font-size:12px;margin-top:5px}.result-mode-label{font-size:11px;margin:19px 0 17px;padding-top:16px}.result-totals{gap:18px;margin-top:21px;padding-top:17px}.result-totals strong{font-size:20px}.result-totals span{font-size:10px}.coverage-note{font-size:11px;line-height:1.6;margin-top:15px}.membership-chips{margin:10px 0}.membership-chips span{font-size:10px}.contest-context{padding:0 0 15px;border:0;border-bottom:1px solid var(--line);display:block;font-size:12px}.contest-context h2{font-size:14px;line-height:1.45;letter-spacing:0;font-weight:450;color:var(--muted)}.contest-context .context-kicker{display:none}.contest-context p{font-size:11px;line-height:1.6;margin:0}.context-links{display:flex;gap:14px;margin-top:10px}.context-links a{font-size:11px}.write-in-note{padding:0 0 12px;font-size:11px;line-height:1.5;border:0}.round-controls{padding:0 0 15px;margin-top:17px;display:flex;flex-direction:column;align-items:stretch;gap:10px}.round-picker{gap:5px;display:flex;flex-wrap:wrap}.round-picker label{width:100%;font-size:11px;margin:0 0 3px}.round-picker select{width:115px;flex:1;min-width:0;font-size:11px;padding:5px}.round-picker button{height:30px;min-width:22px;width:24px;font-size:18px}.round-picker #round-first,.round-picker #round-final{width:auto;padding:0 7px;font-size:11px}#round-note{font-size:10px;line-height:1.5}.eliminated{font-size:12px}.workspace-footer{position:absolute;bottom:6px;left:24px;right:22px;border:0;padding:0;min-height:20px;z-index:600;font-size:10px;pointer-events:none}.workspace-footer button{display:none}.site-credit{height:30px;max-width:none;padding:0 23px;background:var(--panel);border-top:1px solid var(--line);display:flex;align-items:center;gap:17px;font-size:10px;justify-content:flex-start;position:relative;z-index:1200}.site-credit>span:last-child{margin-left:auto}.local-badge{color:var(--ink)}.local-badge:before{content:'';display:inline-block;width:5px;height:5px;border-radius:100%;background:#b1a3df;margin-right:7px}.snapshot-label:before{display:none}
.table-panel,.seats-panel{position:absolute;inset:80px 22px 34px;overflow:auto;z-index:800;background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:28px;min-height:0;scrollbar-width:thin}.table-heading h2{font-size:20px}.table-scroll{overflow:auto}.table-toolbar .search-wrap{width:380px}table{font-size:13px}thead th{font-size:10px}tbody th small{font-size:11px}.seats-panel{max-width:1080px;margin:auto}.seat-cards{margin:24px 0}.seat-card h3{font-size:17px}.seat-footer{font-size:11px}body[data-surface=seats] .map-toolbar,body[data-surface=table] .map-toolbar{display:none}
#methods-page{height:100%;overflow:auto;padding:35px max(28px,calc((100vw - 1120px)/2)) 50px}.methods-grid{margin-top:26px;grid-template-columns:240px minmax(0,670px);gap:60px}#methods-page .page-heading{padding:0 0 15px}.method-copy p,.method-copy dd{font-size:13px}.download-links{font-size:12px}.method-copy h2{font-size:19px}.file-name{font-size:11px}
.leaflet-tooltip{font-size:13px;padding:10px 12px;line-height:1.6;box-shadow:0 3px 14px #0002}.leaflet-tooltip span{font-size:12px}.city-tag{font-size:12px;font-weight:500;letter-spacing:0;color:var(--muted);text-shadow:0 1px 3px var(--water)}.city-neighborhood{font-size:11px;color:var(--ink);background:var(--panel);padding:1px 5px;border-radius:3px;text-shadow:none;opacity:.92}.city-main{display:none}.city-water{letter-spacing:1px;font-weight:400}.leaflet-control-scale-line{font-size:10px!important}.leaflet-bottom.leaflet-left{left:14px;bottom:62px}.leaflet-control-attribution{font-size:9px!important}.leaflet-interactive:focus-visible{outline:2px solid var(--accent)}
dialog{color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:0;width:600px;max-width:calc(100vw - 32px);max-height:min(75dvh,720px);box-shadow:0 20px 80px #0005}dialog::backdrop{background:#080c1280;backdrop-filter:blur(2px)}.ballot-heading{display:flex;align-items:center;justify-content:space-between;padding:18px 20px 8px}.ballot-heading h2{font-size:17px}.ballot-heading button{font-size:24px;padding:0 5px}.ballot-search{display:flex;align-items:center;gap:12px;margin:10px 20px 0;border-bottom:1px solid var(--line);padding-bottom:13px}.ballot-search input{width:100%;background:none;border:0;font-size:14px;padding:5px 0;outline:none}.ballot-search kbd{font-size:10px;color:var(--muted);border:1px solid var(--line);padding:1px 4px;border-radius:3px}#ballot-list{max-height:calc(75dvh - 175px);overflow:auto;padding:9px 10px}.ballot-group{font-size:11px;color:var(--muted);padding:12px 10px 5px;font-weight:500}.ballot-option{display:flex;width:100%;text-align:left;padding:10px;gap:14px;align-items:center;border-radius:4px;font-size:14px}.ballot-option:hover,.ballot-option:focus-visible,.ballot-option[aria-current=true]{background:var(--hover)}.ballot-option small{display:block;color:var(--muted);font-size:12px;margin-top:2px}.ballot-option>span:first-child{flex:1}.ballot-check{color:var(--muted)}.ballot-footer{border-top:1px solid var(--line);padding:12px 20px;font-size:11px;color:var(--muted)}.no-races{padding:25px 10px;color:var(--muted)}
body[data-mode=turnout] .workspace-toolbar,body[data-mode=turnout] .map-toolbar{display:none}body[data-mode=turnout] .map-overline{top:24px}body[data-mode=turnout] .sf-legend{bottom:137px}body[data-mode=turnout] .map-buttons{bottom:200px}body[data-mode=turnout] .sf-detail{max-height:calc(100% - 165px)}body[data-mode=turnout] .leaflet-bottom.leaflet-left{bottom:161px}body[data-mode=turnout] .workspace-footer{display:none}.turnout-summary{position:absolute;bottom:24px;left:24px;right:24px;z-index:800;min-height:91px;display:grid;grid-template-columns:1.3fr 1fr 1fr 1.7fr;align-items:center;gap:22px;padding:17px 22px;background:var(--panel);border:1px solid var(--line);border-radius:6px}.turnout-summary>div+div{border-left:1px solid var(--line);padding-left:22px}.turnout-summary strong{font-size:27px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.25;letter-spacing:-.8px}.turnout-summary span,.turnout-summary small{display:block;font-size:11px;color:var(--muted)}.turnout-summary small{font-size:10px;margin-top:3px}.turnout-scale{display:flex;height:10px;overflow:hidden;border-radius:2px}.turnout-scale i{flex:1}.turnout-ticks{display:flex;justify-content:space-between;margin-top:6px;font-size:10px;color:var(--muted)}.turnout-value{font-size:43px;font-weight:600;letter-spacing:-1.5px;margin-top:20px;font-variant-numeric:tabular-nums}.turnout-pairs{display:grid;gap:12px;margin:17px 0}.turnout-pairs>div{display:flex;justify-content:space-between;font-size:13px}.turnout-pairs dt{color:var(--muted)}.turnout-pairs dd{margin:0;font-variant-numeric:tabular-nums}.turnout-empty{font-size:13px;color:var(--muted);line-height:1.65;margin-top:20px}.sample-toggle{border:1px solid var(--line);border-radius:4px;font-size:12px;padding:8px 11px;margin-top:15px;color:var(--ink)}.sample-toggle:hover{background:var(--hover)}.sample-label{display:inline-block;font-size:11px;color:#c8b9f6;background:#66509533;padding:3px 7px;border-radius:3px;margin-top:12px}body[data-theme=light] .sample-label{color:#61478c;background:#e9e0f5}.turnout-source{font-size:11px;color:var(--muted);margin-top:13px}.turnout-source a{text-decoration:underline}
@media(max-width:1100px){.site-header{gap:14px;padding:0 18px}.header-date{display:none}.header-actions{gap:12px}.sf-detail{width:308px;right:16px;padding:20px}.sf-legend{max-width:calc(100% - 365px)}.map-overline{left:20px}.candidate-result-head{font-size:13px}.turnout-summary{gap:15px;padding:15px}.turnout-summary>div+div{padding-left:15px}.turnout-summary strong{font-size:23px}}
@media(max-width:760px){.site-header{height:108px;padding:10px 14px;display:grid;grid-template-columns:1fr auto auto;gap:9px 14px}.brand{font-size:18px}.contest-trigger{grid-column:1 / -1;grid-row:2;max-width:none;height:35px;width:100%;font-size:12px}.site-header .mode-tabs{grid-column:2;grid-row:1;height:32px}.site-header .mode-tabs button{font-size:11px;padding:0 9px}.header-actions{grid-row:1;grid-column:3;gap:10px;margin:0}.header-actions>[data-page],.source-link{display:none}.header-actions .icon-button{font-size:18px}.site-credit{padding:0 12px;font-size:9px;gap:10px}.site-credit #snapshot-label{display:none}main{height:calc(100dvh - 138px)}.workspace-toolbar{top:12px;left:12px}.surface-tabs button{font-size:11px;padding:5px 8px}.surface-tabs button svg{display:none}.map-toolbar{top:12px;left:159px;min-height:34px;padding:3px 7px}.settings summary{font-size:11px}.settings-popover{left:-130px;top:32px}.sf-detail{left:0;right:0;top:auto;bottom:0;width:100%;height:38%;max-height:none;padding:16px 20px;border-radius:0;border-bottom:0;border-left:0;border-right:0}.sf-map-wrap{height:62%}.map-shell{height:100%}.sf-legend{bottom:calc(38% + 8px);left:12px;max-width:calc(100% - 65px);font-size:9px;padding:6px 8px;max-height:56px;overflow:auto;gap:3px 7px}.map-overline{top:61px;left:14px}.map-overline strong{font-size:13px}.map-overline span{font-size:10px}.map-buttons{left:auto;right:10px;bottom:13px;gap:3px}.map-buttons button{width:29px;height:29px;font-size:19px}.map-buttons #region{display:none}.map-bottom-note{bottom:65px;left:12px;max-width:220px;font-size:9px}.leaflet-bottom.leaflet-left{bottom:64px;left:4px}.leaflet-control-attribution{display:none}.city-neighborhood{font-size:9px}.city-tag{font-size:10px}.panel-race{font-size:19px;margin-bottom:12px}.detail-heading{margin-top:14px}.candidate-result{margin-bottom:15px}.candidate-result-head{font-size:14px}.candidate-result-head strong{font-size:16px}.result-totals strong{font-size:22px}.workspace-footer{display:none}.table-panel,.seats-panel{inset:59px 10px 10px;padding:17px;max-width:none}.table-panel{min-height:0}.table-toolbar .search-wrap{width:100%}.table-scroll{max-height:none}.table-filters{gap:12px}.table-heading h2{font-size:17px}.seat-cards{gap:12px}.seat-card h3{font-size:13px}.seat-row-label{font-size:12px}.seat-footer{font-size:10px}.round-picker{max-width:350px}.round-picker select{min-width:105px}.round-controls{max-width:370px}.result-mode-label{margin-top:16px}.coverage-note{font-size:11px}.contest-context h2{font-size:13px}#methods-page{padding:24px 20px}.methods-grid{grid-template-columns:1fr;gap:35px}.method-copy p,.method-copy dd{font-size:13px}.page-heading h1{font-size:24px}body[data-mode=turnout] .map-overline{top:15px}body[data-mode=turnout] .sf-map-wrap{height:55%}body[data-mode=turnout] .sf-detail{bottom:100px;height:25%;max-height:none}body[data-mode=turnout] .sf-legend{bottom:calc(45% + 8px);left:12px}body[data-mode=turnout] .map-buttons{bottom:15px}body[data-mode=turnout] .leaflet-bottom.leaflet-left{bottom:67px}.turnout-summary{left:0;right:0;bottom:0;height:100px;min-height:0;grid-template-columns:1fr 1fr 1fr;gap:10px;border-radius:0;padding:12px;border-left:0;border-right:0;border-bottom:0}.turnout-summary>div+div{padding-left:10px}.turnout-summary strong{font-size:20px}.turnout-summary span{font-size:9px}.turnout-summary small{font-size:8px}.turnout-summary .summary-scale{display:none}.turnout-value{font-size:29px;margin-top:10px}.turnout-empty{font-size:12px;margin-top:10px}.turnout-pairs{margin:10px 0;gap:6px}.turnout-pairs>div{font-size:12px}.sample-toggle{margin-top:10px}.turnout-source{margin-top:8px}.sample-label{font-size:10px;margin-top:6px}.turnout-summary strong.data-missing{font-size:15px;letter-spacing:0}}

body[data-mode=turnout] .workspace-toolbar{display:flex}body[data-mode=turnout] .map-overline{top:84px}body[data-mode=turnout] .sf-legend{display:none}body[data-mode=turnout] .leaflet-bottom.leaflet-left{bottom:140px}
@media(max-width:760px){body[data-mode=turnout] .map-overline{top:61px}body[data-mode=turnout] .leaflet-bottom.leaflet-left{bottom:15px}}

.footer-data{font-size:inherit;color:var(--muted);padding:0}.footer-data:hover{color:var(--ink)}.turnout-methods{padding-top:15px;border-top:1px solid var(--line)}

@media(max-width:760px){
 .sf-detail{height:43%}.sf-map-wrap{height:57%}.sf-legend{bottom:calc(43% + 8px)}
 .panel-race{font-size:17px;margin-bottom:8px}.panel-race small{font-size:10px;margin-bottom:3px}
 .contest-context{padding-bottom:8px}.context-links{margin-top:0}.context-links a{font-size:10px}
 .detail-heading{margin:10px 0 4px}.detail-heading .overline{font-size:9px}#area-identity h2{font-size:13px}
 #area-identity>p{display:none}.result-mode-label{font-size:10px;margin:9px 0 11px;padding-top:9px}
 .candidate-result{margin-bottom:10px}.candidate-result-head{font-size:13px}.candidate-result-head strong{font-size:14px}.candidate-result-count{font-size:10px;margin-top:3px}.progress-track{margin-top:6px;height:4px}
 body[data-mode=turnout] .sf-map-wrap{height:50%}body[data-mode=turnout] .sf-detail{height:calc(50% - 100px)}
}

/* Controls share consistent sizing and spacing. */
.site-header .mode-tabs{height:38px;align-self:center;gap:2px;padding:3px;flex:0 0 auto}
.site-header .mode-tabs button{display:flex;align-items:center;justify-content:center;min-width:70px;height:30px;padding:0 13px;line-height:1;font-weight:550;color:var(--muted);border-radius:3px}
.site-header .mode-tabs button.active{color:var(--ink);background:var(--hover)}
.site-header .mode-tabs button:not(.active):hover{background:var(--hover);color:var(--ink)}
.explorer-controls{position:absolute;top:20px;left:22px;display:flex;align-items:stretch;gap:8px;z-index:1100;max-width:calc(100% - 44px)}
.workspace-toolbar,.map-toolbar{position:static;min-height:40px}
.map-toolbar{padding:3px 11px}
.settings-popover{top:calc(100% + 13px);left:0;right:auto;max-height:calc(100dvh - 200px);overflow:auto;overscroll-behavior:contain}
.sf-detail{overscroll-behavior:contain;scrollbar-gutter:stable}
.round-controls{margin:17px 0 0;padding:0 0 15px;gap:9px;border-bottom:1px solid var(--line)}
.round-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted)}
.round-heading .text-button{font-size:11px}
.round-picker{display:grid;grid-template-columns:38px minmax(0,1fr) 38px;gap:6px;width:100%;max-width:none}
.round-picker select{width:100%;min-width:0;height:38px;min-height:38px;padding:0 28px 0 11px;font-size:12px;line-height:normal;background:var(--subtle)}
.round-picker button{display:grid;place-items:center;min-width:0;width:38px;height:38px;min-height:38px;padding:0;border:1px solid var(--line);border-radius:5px;background:var(--subtle);color:var(--ink)}
.round-picker button svg{width:18px;height:18px;stroke-width:1.6}
.round-picker button:disabled{opacity:1;background:transparent;color:var(--faint);border-color:var(--line);cursor:default}
.round-picker button:not(:disabled):hover{background:var(--hover);border-color:var(--muted)}
#round-note{font-size:11px;color:var(--muted);line-height:1.5}
.round-disclosure{font-size:10px;color:var(--muted);line-height:1.5;margin-top:-4px}

/* Scale, parcel status and legend stay together as their contents wrap. */
.map-bottom-dock{position:absolute;left:24px;bottom:32px;z-index:700;display:flex;flex-direction:column;align-items:flex-start;gap:10px;width:max-content;max-width:min(650px,calc(100% - 420px));pointer-events:none}
.map-meta{display:flex;align-items:center;gap:16px;flex-wrap:wrap;max-width:100%}
#map-scale .leaflet-control{float:none;position:static;margin:0}
#map-scale .leaflet-control-scale-line{font-size:11px!important;line-height:1.25;color:var(--ink);border-color:var(--muted);border-width:0 1px 1px;padding:2px 5px 3px;background:var(--water);text-shadow:none}
.map-bottom-note{position:static;font-size:11px;max-width:280px;line-height:1.4;background:var(--water)}
.map-bottom-note:empty{display:none}
.sf-legend{position:static;max-width:100%;width:auto;min-height:0;max-height:min(28dvh,220px);overflow:auto;overscroll-behavior:contain;pointer-events:auto;scrollbar-width:thin;padding:10px 12px;gap:7px 14px;font-size:11px;line-height:1.55}
.legend-chips{gap:7px 16px;min-width:0}
.legend-chips>span{min-width:0;max-width:100%;overflow-wrap:anywhere}
.legend-chips .candidate-color{flex-shrink:0;align-self:flex-start;margin-top:4px}
.map-buttons{top:148px;bottom:auto;left:24px;right:auto;gap:5px}
.map-buttons button{width:36px;height:36px}
body[data-mode=turnout] .map-bottom-dock{bottom:calc(var(--turnout-summary-height,110px) + 38px)}
body[data-mode=turnout] .map-buttons{top:148px;bottom:auto}
.table-toolbar{flex-wrap:wrap;gap:12px}
.table-toolbar .search-wrap{flex:1;min-width:150px}
.table-filters{flex-wrap:wrap;gap:10px}
.table-scroll{overscroll-behavior:contain}
.candidate-result-count{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.candidate-result-count>span{margin-right:auto}
.turnout-scale{background:linear-gradient(90deg,#e0dcf5 0%,#c2b4ec 25%,#9c82d9 50%,#7656bd 75%,#50338f 100%)}
.turnout-scale i{visibility:hidden}

@media(max-width:1100px){.map-bottom-dock{max-width:calc(100% - 365px)}}
@media(max-width:760px){
 .site-header .mode-tabs{height:36px;padding:3px;gap:2px}
 .site-header .mode-tabs button{height:28px;min-width:60px;padding:0 10px;font-size:11px}
 .header-actions .icon-button{width:32px;height:36px}
 .site-header{column-gap:8px}
 .explorer-controls{top:12px;left:12px;gap:8px;max-width:calc(100% - 24px)}
 .workspace-toolbar,.map-toolbar{min-height:38px}
 .surface-tabs button{height:30px;min-width:44px;justify-content:center;padding:0 9px}
 .settings summary{min-height:30px}
 .map-toolbar{padding:3px 9px}
 .settings-popover{left:auto;right:0;top:calc(100% + 9px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 215px)}
 .map-overline,body[data-mode=turnout] .map-overline{top:66px}
 .round-controls{max-width:none;gap:8px;margin-top:12px;padding-bottom:12px}
 .round-picker{grid-template-columns:40px minmax(0,1fr) 40px;gap:7px;max-width:none}
 .round-picker button,.round-picker select{height:40px;min-height:40px;font-size:12px}
 .round-picker button{width:40px}
 .map-bottom-dock{left:12px;bottom:12px;gap:8px;max-width:calc(100% - 68px)}
 .map-meta{gap:8px}
 #map-scale .leaflet-control-scale-line{font-size:10px!important}
 .sf-legend{max-width:100%;max-height:90px;padding:7px 9px;gap:4px 10px;font-size:10px}
 .legend-chips{gap:5px 10px}
 .legend-chips .candidate-color{margin-top:3px;width:8px;height:8px}
 .map-buttons,body[data-mode=turnout] .map-buttons{left:auto;right:10px;top:auto;bottom:12px;gap:5px}
 .map-buttons button{width:34px;height:34px;font-size:20px}
 .map-bottom-note{font-size:10px;max-width:180px}
 body[data-mode=turnout] .map-bottom-dock{bottom:12px}
 .table-toolbar .search-wrap{flex-basis:100%;height:38px}
 .table-filters{width:100%;justify-content:space-between}
 .table-filters select{min-height:36px}
 .table-heading{align-items:flex-start}
 .table-heading .text-button{font-size:11px;white-space:nowrap}
}
@media(min-width:761px) and (max-height:650px){
 .map-buttons,body[data-mode=turnout] .map-buttons{top:20px;bottom:auto;left:auto;right:380px}
}
@media(min-width:761px) and (max-width:1100px) and (max-height:650px){
 .map-buttons,body[data-mode=turnout] .map-buttons{right:340px}
}
