/* Public navigation uses the same menu control on every screen size. */
body[data-access=public] #workspaceNav{display:none!important}
body[data-access=public] .reader-desktop-controls{display:none!important}
body[data-access=public] #readerControls .reader-mobile-menu{display:grid!important;grid-template-columns:minmax(0,1fr);gap:4px}
body[data-access=public] #readerControls .reader-controls-panel{width:min(320px,calc(100vw - 24px));padding:10px!important;box-sizing:border-box;max-height:calc(100dvh - var(--reader-controls-top,100px) - 12px);overflow:auto}
body[data-access=public] #readerControls .reader-mobile-menu>strong{color:#eaf6fc;font-size:15px;padding:5px 8px}
body[data-access=public] #readerControls .reader-mobile-menu :is(a,button){display:flex;align-items:center;width:100%;min-height:36px;box-sizing:border-box;padding:7px 11px;border:1px solid #456b80;background:#244b5f;color:#edf7fc!important;font:inherit;font-size:13px!important;text-align:left;text-decoration:none}
body[data-access=public] #readerControls .reader-mobile-menu [aria-current=page]{color:#9af1db!important;border-color:#70e3c7!important;background:#102c3c!important}
body[data-access=public] #readerControls .reader-mobile-more>summary{padding:9px 11px;color:#c9e0eb!important;font-size:12px!important;cursor:pointer}
body[data-access=public] #readerControls .reader-mobile-more>div{display:grid;gap:4px}
/* Phone and small-tablet layouts. Desktop workspaces retain their own rules. */
@media (max-width:1100px) {
 body[data-atlas-theme=broadcast] {font-size:14px;line-height:1.45;--atlas-mobile-gap:12px}
 body[data-atlas-theme=broadcast] :is(main,section,article,aside,header,footer,nav,div,fieldset,form,label){min-width:0}
 body[data-atlas-theme=broadcast] :is(h1,h2,h3,h4,p){overflow-wrap:break-word}
 body[data-atlas-theme=broadcast] :is(h1,h2){font-size:22px!important;line-height:1.2!important;letter-spacing:-.35px!important}
 body[data-atlas-theme=broadcast] :is(h3,h4){font-size:17px!important;line-height:1.3!important}
 body[data-atlas-theme=broadcast] p{font-size:13px;line-height:1.5}
 body[data-atlas-theme=broadcast] :is(label,legend){font-size:12px;line-height:1.4}
 body[data-atlas-theme=broadcast] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){font-size:16px!important;min-height:44px;max-width:100%;box-sizing:border-box}
 body[data-atlas-theme=broadcast] :is(button,.button,summary){font-size:13px;line-height:1.35;min-height:44px;box-sizing:border-box}
 body[data-atlas-theme=broadcast] :is(button,.button){white-space:normal}
 body[data-atlas-theme=broadcast] :is(input[type=checkbox],input[type=radio]){min-width:18px;width:18px;height:18px;flex-shrink:0}
 body[data-atlas-theme=broadcast] :is(.muted,.small,.rc-foot,.cp-note){font-size:11px!important;line-height:1.5;color:#b4cfde}
 body[data-atlas-theme=broadcast] :is(.table-scroll,.oa-table-scroll,.rc-table-scroll,.rp-table-scroll,.ee-table-scroll){max-width:100%;overflow:auto;overscroll-behavior:contain}
 body[data-atlas-theme=broadcast] table :is(th,td){font-size:12px;line-height:1.4}
 body[data-atlas-theme=broadcast] code{overflow-wrap:anywhere}
 body[data-atlas-theme=broadcast] .atlas-mobile-rehearsal{padding:5px 10px!important;min-height:25px!important;font-size:10px!important;line-height:1.4!important;text-align:center}
 body[data-access=public] #readerStickyHeader{position:relative!important;top:auto;max-height:none;overflow:visible}
 body[data-access=public] .desk-masthead{display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;grid-template-areas:'controls brand' 'status status'!important;gap:9px 10px;padding:12px!important;min-height:0}
 body[data-access=public] .reader-controls{grid-area:controls;align-self:center}
 body[data-access=public] .reader-controls>summary{width:40px;height:40px;min-height:40px;padding:8px}
 body[data-access=public] .desk-brand{grid-area:brand;justify-self:start;max-width:100%}
 body[data-access=public] .desk-brand .brand{font-size:22px!important;line-height:1.1}
 body[data-access=public] .desk-brand .brand-subtitle{font-size:8px!important;letter-spacing:.8px}
 body[data-access=public] .desk-account-actions{display:none!important}
 body[data-access=public] .desk-live-status{grid-area:status;margin:0!important;padding:8px 0 0!important;border-top:1px solid #456778;display:flex;align-items:center;justify-content:space-between;gap:7px;width:100%;font-size:10px!important;flex-wrap:nowrap}
 body[data-access=public] .desk-live-status :is(button,.button){min-height:34px;padding:6px 9px;font-size:11px!important;flex-shrink:0}
 body[data-access=public] .desk-live-status .refresh-button{width:34px}
 body[data-access=public] #workspaceNav{display:none!important}
 body[data-access=public] .reader-desktop-controls{display:none!important}
 body[data-access=public] .reader-controls-panel{width:min(340px,calc(100vw - 24px));max-height:calc(100dvh - var(--reader-controls-top,100px) - 12px);overflow-y:auto;padding:10px!important;box-sizing:border-box}
 body[data-access=public] .reader-mobile-menu{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:4px}
 body[data-access=public] .reader-mobile-menu>strong{font-size:15px;padding:4px 8px;color:#edf7fc}
 body[data-access=public] .reader-mobile-menu :is(a,button){display:flex;align-items:center;min-height:44px;padding:9px 12px;border:1px solid #456b80;background:#244b5f;color:#edf7fc!important;font:inherit;font-size:14px!important;text-align:left;text-decoration:none;width:100%;box-sizing:border-box}
 body[data-access=public] .reader-mobile-menu [aria-current=page]{color:#9af1db!important;border-color:#70e3c7!important;background:#102c3c!important}
 .reader-mobile-more{margin:0;border:0;padding:0}
 body[data-access=public] .reader-mobile-menu .reader-mobile-more>summary{padding:12px;color:#c9e0eb!important;font-size:13px!important;min-height:44px}
 .reader-mobile-more>div{display:grid;gap:4px}
 body[data-access=public] .main-content{padding:0 12px 24px!important;max-width:100%;width:auto}
 body[data-access=public] .page-heading{padding:18px 0 14px!important;margin:0!important;min-height:0!important}
 body[data-access=public] .page-heading .eyebrow,body[data-access=public] #pageSubtitle{display:none!important}
 body[data-access=public] .page-heading h1{font-size:22px!important;margin:0}
 body[data-access=public] :is(.view,.workspace-view){max-width:100%}
 /* Compact national summary retains year/source coverage in one strip. */
 body[data-access=public] .reader-tally-wrap{padding:0!important}
 body[data-access=public] .nr-banner{padding:14px 12px!important;margin:0!important}
 body[data-access=public] .nr-executive-compact{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;padding:0!important}
 body[data-access=public] .nr-executive-candidate{padding:0!important;border:0!important;gap:7px!important;align-items:flex-start;min-height:0}
 body[data-access=public] .nr-executive-candidate>.candidate-portrait{width:28px!important;height:36px!important;flex-basis:28px!important}
 body[data-access=public] .nr-executive-identity>strong{font-size:26px!important;line-height:1.1!important}
 body[data-access=public] .nr-executive-identity h3{font-size:12px!important;margin:3px 0!important}
 body[data-access=public] .nr-executive-party{gap:4px!important;font-size:10px!important}
 body[data-access=public] .nr-executive-party small{font-size:11px!important;line-height:1.4}
 body[data-access=public] .nr-executive-party .atlas-party-fullname{display:none!important}
 body[data-access=public] .nr-margin{grid-column:1/-1!important;display:flex!important;flex-wrap:wrap;align-items:baseline;gap:4px 8px!important;border:0!important;padding:0!important}
 body[data-access=public] .nr-margin>span{font-size:11px!important}
 body[data-access=public] .nr-margin>strong{font-size:22px!important;line-height:1.1}
 body[data-access=public] .nr-margin>small{font-size:10px!important}
 body[data-access=public] .nr-reporting{grid-column:1/-1!important;padding:0!important;border:0!important}
 body[data-access=public] .nr-reporting>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:10px!important}
 body[data-access=public] .nr-reporting strong{font-size:22px!important}
 body[data-access=public] .nr-reporting small{font-size:10px!important;line-height:1.4}
 body[data-access=public] .nr-context-line{display:flex!important;flex-wrap:wrap;gap:4px 12px!important;padding:9px 0 0!important;margin-top:10px!important;font-size:10px!important}
 body[data-access=public] .nr-context-line>span:last-child{display:none}
 /* Existing nodes are folded, so filters preserve their values and listeners. */
 .atlas-mobile-disclosure{margin:0 0 12px;border:1px solid #456b80;background:#183a4b;min-width:0}
 .atlas-mobile-disclosure>summary{display:list-item;padding:12px 14px;color:#edf7fc;font-weight:650;cursor:pointer;font-size:13px!important;min-height:44px}
 .atlas-mobile-disclosure[open]>summary{border-bottom:1px solid #456b80;color:#9af1db}
 .atlas-mobile-disclosure>:not(summary){margin:0!important;padding:12px!important;box-sizing:border-box;max-width:100%}
 /* County navigation sits above all evidence views. */
 #countyView #countyProfileContent{padding:0!important}
 body[data-access=public] #readerControls .reader-mobile-menu :is(a,button){width:100%!important;max-width:none!important;min-width:0!important}
 body[data-access=public] .reader-mobile-menu>details{width:100%;box-sizing:border-box}
 #countyView #countyProfileContent .cp-header{padding:16px 0!important;min-height:0;display:grid;gap:12px;margin:0!important}
 #countyView #countyProfileContent .cp-identity{gap:9px}
 #countyView #countyProfileContent .cp-county-mark{width:34px;height:38px;min-width:34px}
 #countyView #countyProfileContent .cp-identity .cp-kicker{font-size:10px!important;margin:0 0 3px}
 body[data-access=public] #countyView #countyProfileContent .cp-profile>.cp-header h1{font-size:22px!important;margin:0!important}
 body[data-access=public] #countyView #countyProfileContent .cp-profile>.cp-header h1 span{font-size:12px!important}
 #countyView #countyProfileContent .cp-header>.atlas-mobile-disclosure{margin:0!important}
 #countyView #countyProfileContent .cp-identity>div>p:last-child{display:none}
 #countyView #countyProfileContent .cp-header-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:end}
 #countyView #countyProfileContent .cp-header-tools>label{grid-column:1/-1;font-size:11px!important;display:flex;gap:10px;align-items:center}
 #countyView #countyProfileContent .cp-header-tools>label select{flex:1}
 #countyView #countyProfileContent .cp-header-tools .cp-button{padding:8px 12px;min-height:40px;font-size:12px!important;width:auto}
 #countyView #countyProfileContent .cp-tabs{display:flex!important;overflow-x:auto;gap:5px;padding:0 0 8px!important;margin:0!important;scrollbar-width:thin}
 #countyView #countyProfileContent .cp-tabs>button{flex:0 0 auto;min-height:40px;padding:8px 10px;font-size:12px!important;white-space:nowrap}
 #countyView #countyProfileContent .cp-profile:has(>.cp-tab-panel:is(#cp-panel-overview,#cp-panel-areas)){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;padding:0!important}
 #countyView #countyProfileContent .cp-profile:has(>.cp-tab-panel:is(#cp-panel-overview,#cp-panel-areas)) :is(.cp-tab-panel,.cp-overview-dashboard,.cp-summary-rail,.cp-overview-main,[data-cp-explorer],.electoral-explorer,.cp-overview-grid:not([hidden])){display:contents!important}
 #countyView #countyProfileContent .cp-profile:has(>.cp-tab-panel:is(#cp-panel-overview,#cp-panel-areas))>.cp-header{grid-column:1;grid-row:1}
 #countyView #countyProfileContent .cp-profile:has(>.cp-tab-panel:is(#cp-panel-overview,#cp-panel-areas)) .ee-location-toolbar{grid-column:1;grid-row:2;display:flex;flex-wrap:wrap;gap:8px;padding:9px!important;margin:0!important}
 #countyView #countyProfileContent .ee-location-toolbar label{display:flex;flex-direction:row;align-items:center;gap:8px;width:100%;font-size:11px!important;margin:0!important}
 #countyView #countyProfileContent .ee-location-toolbar .ee-county-filter{display:none!important}
 #countyView #countyProfileContent .ee-breadcrumbs{padding:0!important;margin:0!important}
 #countyView #countyProfileContent .ee-breadcrumbs>button{min-height:32px!important;padding:3px 0!important;font-size:12px!important}
 #countyView #countyProfileContent .ee-location-toolbar select{flex:1;width:100%;max-width:100%}
 #countyView #countyProfileContent .cp-profile:has(>.cp-tab-panel:is(#cp-panel-overview,#cp-panel-areas))>.cp-tabs{grid-column:1;grid-row:3}
 #countyView #countyProfileContent .cp-profile:has(>.cp-tab-panel:is(#cp-panel-overview,#cp-panel-areas)) .cp-stats{grid-column:1;grid-row:4}
 #countyView #countyProfileContent .cp-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;margin:0!important}
 #countyView #countyProfileContent .cp-stats>article{padding:9px 7px!important;min-height:0!important}
 body[data-access=public] #countyView #countyProfileContent .cp-stats>article>strong{font-size:18px!important;line-height:1.2}
 #countyView #countyProfileContent .cp-stats>article>:is(span,small){font-size:10px!important;line-height:1.4}
 #countyView #countyProfileContent .cp-stats>article:nth-child(1),#countyView #countyProfileContent .cp-stats>article:nth-child(4),#countyView #countyProfileContent .cp-stats>article:nth-child(5){display:none!important}
 #countyView #countyProfileContent .cp-profile:has(>.cp-tab-panel:is(#cp-panel-overview,#cp-panel-areas)) .ee-map-card{grid-column:1!important;grid-row:5!important;margin:0!important;padding:8px!important}
 #countyView #countyProfileContent .cp-profile:has(>.cp-tab-panel:is(#cp-panel-overview,#cp-panel-areas)) .ee-results{grid-column:1!important;grid-row:6!important;margin:0!important;padding:12px!important}
 #countyView #countyProfileContent .cp-profile:has(>.cp-tab-panel:is(#cp-panel-overview,#cp-panel-areas)) :is(.ee-table-panel,.cp-overview-context,.atlas-mobile-disclosure,.cp-footer){grid-column:1!important;grid-row:auto!important}
 #countyView #countyProfileContent .ee-duplicate-county-filter{display:none!important}
 #countyView #countyProfileContent :is(.ee-heading,.ee-panel-heading){padding:10px!important;gap:9px;flex-wrap:wrap}
 #countyView #countyProfileContent .ee-heading p,#countyView #countyProfileContent .ee-panel-heading p{font-size:11px!important}
 #countyView #countyProfileContent :is(.ee-map,.ee-map-stage,.ee-map-canvas,.cp-world-map){height:390px!important;min-height:0!important}
 #countyView #countyProfileContent .ee-map-card>.cp-section-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:6px!important;margin:0 0 8px!important}
 #countyView #countyProfileContent .ee-map-card>.cp-section-head>div{flex:1 1 140px}
 #countyView #countyProfileContent .ee-map-card>.cp-section-head p{display:none}
 #countyView #countyProfileContent .ee-map-card>.cp-section-head h3{font-size:17px!important;margin:0}
 #countyView #countyProfileContent .ee-map-layer{flex:1 1 140px;font-size:10px!important}
 #countyView #countyProfileContent .ee-station-link{display:none!important}
 #countyView #countyProfileContent .ee-map-legend{font-size:10px!important;padding:8px!important}
 #countyView #countyProfileContent .ee-candidate-line{flex-wrap:wrap;gap:4px 8px}
 #countyView #countyProfileContent .ee-candidate-line strong{font-size:12px!important}
 #countyView #countyProfileContent .ee-candidate-line b{font-size:16px!important}
 #countyView #countyProfileContent .ee-candidates article{padding:12px 0!important}
 #countyView #countyProfileContent .cp-footer{margin-top:0;padding:12px 0}
 #countyView #countyProfileContent .cp-footer p{display:none}
 /* Polling locations and station results use the same readable panel surfaces. */
 .ps-header{padding:12px!important;gap:8px;align-items:center}
 .ps-header h2{font-size:20px!important}
 .ps-header p:not(.ps-eyebrow){display:none}
 .ps-eyebrow,.ps-history-badge{font-size:10px!important}
 .ps-coverage{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:10px!important;font-size:11px!important}
 .ps-coverage strong{font-size:13px!important}
 .ps-toolbar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px!important;gap:8px}
 .ps-toolbar .ps-search{grid-column:1/-1}
 .ps-toolbar label{font-size:10px!important}
 .ps-workspace{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
 .ps-map-frame{height:390px!important;min-height:0!important}
 .ps-detail{padding:12px!important;max-height:none!important;border-left:0!important}
 .ps-detail h3{font-size:19px!important}
 /* Regional comparison keeps breadcrumbs separate from optional settings. */
 .rc-geography-toolbar{padding:10px!important;margin:0 0 12px!important}
 .rc-geography-toolbar #rcDrillControls{display:block!important}
 .rc-geography-toolbar .atlas-mobile-disclosure{margin:6px 0 0!important}
 .rc-geography-toolbar .rc-geography-selects{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}
 .rc-geography-toolbar .rc-geography-selects label{font-size:11px!important}
 .rc-history-workspace{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 .rc-history-control-rail{display:block!important}
 .rc-history-control-rail .rc-controls-toggle{display:none!important}
 .rc-history-control-rail #rcControlsBody{display:block!important;padding:0!important}
 .rc-filter-summary{padding:10px!important;gap:5px;margin-bottom:12px!important;font-size:12px!important}
 .rc-filter-summary strong{font-size:13px!important}
 .rc-history-map-panel{padding:10px!important}
 .rc-history-map-panel>.rc-panel-heading{gap:9px;display:grid;grid-template-columns:1fr}
 .rc-history-map-panel>.rc-panel-heading .rc-kicker,.rc-history-map-panel #rcHistoryMapHint{display:none}
 .rc-map-toolbar-controls{justify-content:space-between;max-width:100%;gap:6px!important}
 .rc-map-toolbar-controls select{max-width:100%;width:100%;font-size:13px!important}
 .rc-map-zoom-group>button{min-width:36px;min-height:40px;padding:6px}
 .rc-history-map-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 #rcHistoryMap{height:390px!important;min-height:0!important}
 .rc-share-heading{gap:8px;padding-bottom:4px}
 .rc-share-heading h4{font-size:17px!important;flex-basis:135px}
 .rc-share-heading>label{flex-basis:130px;font-size:10px!important}
 .rc-history-map-detail{padding:10px!important}
 .rc-history-map-detail .rc-kicker{display:none}
 .rc-history-map-detail table{min-width:580px}
 .rc-history-map-detail .rc-table-scroll{overflow:auto;max-width:100%}
 .rc-history-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}
 .rc-history-card{padding:10px!important}
 .rc-history-card h3{font-size:18px!important}
 .rc-history-standing strong{font-size:13px!important}
 .rc-history-turnout strong{font-size:23px!important}
 .rc-history-card .rc-year{font-size:9px!important;padding:3px}
 .rc-history-card :is(dt,small,.rc-kicker){font-size:10px!important}
 .rc-history-card dd{font-size:13px!important}
 .rc-history-candidate-list strong{font-size:11px!important}
 .rc-history-insights,.rp-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}
 .rc-history-insights>article,.rp-kpis>article{padding:10px!important}
 .rc-panel{max-width:100%;box-sizing:border-box}
 /* National count analysis. */
 .cn-modebar{padding:14px 0!important;min-height:0!important;margin:0!important}
 .cn-modebar .cn-kicker,.cn-modebar p{display:none}
 .cn-sourcebar{display:grid!important;gap:10px}
 .cn-sourcebar p{font-size:11px!important}
 .cn-analysis-overview{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 .ca-candidates{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 .ca-candidate{padding:10px!important;min-height:0!important}
 .ca-person{gap:7px!important;align-items:flex-start}
 .ca-person h3{font-size:12px!important}
 .ca-person .candidate-portrait{width:30px!important;height:40px!important}
 .ca-person .atlas-party-fullname{display:none}
 .ca-person small{font-size:10px!important}
 .ca-vote-total{gap:2px;margin-top:10px!important}
 .ca-vote-total>strong{font-size:28px!important;line-height:1.1}
 .ca-vote-total b{font-size:14px!important}
 .ca-vote-total :is(span,small){font-size:10px!important}
 .ca-candidate .ca-behind{font-size:10px!important}
 .ca-map-top{flex-wrap:wrap;gap:7px;padding:0 0 8px!important}
 .ca-map-top p{font-size:11px!important}
 .ca-map-top h3{font-size:18px!important}
 .ca-map{height:400px!important;min-height:0!important}
 .ca-map-readout,.ca-map-legend{font-size:10px!important;line-height:1.45;padding:8px!important}
 .ca-count-intelligence{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px}
 .ca-coverage{padding:12px!important}
 .ca-coverage>strong{font-size:32px!important}
 /* Public map and ward station view. */
 body[data-view=map] .map-workspace-heading{padding:12px!important;gap:8px;min-height:0}
 body[data-view=map] .map-workspace-heading h2{font-size:21px!important}
 body[data-view=map] .map-workspace-heading .button{font-size:11px!important;min-height:36px}
 body[data-view=map] .map-explorer-workspace{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
 body[data-view=map] .map-explorer-rail{width:100%!important;max-height:none!important}
 body[data-view=map] .map-explorer-rail .map-explorer-rail-body{padding:10px!important}
 body[data-view=map] .map-explorer-main{width:100%;min-width:0}
 body[data-view=map] :is(.map-stage,.map-canvas,#electionMap){height:410px!important;min-height:0!important}
 .ws-header{padding:10px!important}
 .ws-header h3{font-size:17px!important}
 .ws-stat-strip{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .ws-stat-strip>article{padding:8px!important}
 .ws-stat-strip strong{font-size:18px!important}
 .ws-stat-strip :is(span,small){font-size:10px!important}
 .ws-detail{padding:12px!important}
 .ws-detail .ws-leading{background:#21485b!important;color:#edf7fc!important}
 /* Office results: map first, compact measures, locally scrolling office tabs. */
 .oa-hero{padding:16px 12px!important;min-height:0!important;gap:12px!important}
 .oa-hero .oa-kicker{font-size:10px!important;margin:0 0 5px!important}
 .oa-hero h2{margin:0!important;font-size:22px!important}
 .oa-hero p:not(.oa-kicker){display:none}
 .oa-hero-actions{display:flex;flex-wrap:wrap;gap:7px}
 .oa-hero-actions .oa-accepted-only{font-size:10px!important}
 .oa-hero :is(button,a){min-height:40px;font-size:12px!important;padding:8px 10px}
 .oa-office-grid{display:flex!important;overflow:auto;gap:5px;padding:0!important;scrollbar-width:thin}
 .oa-office-grid>button{flex:0 0 auto;min-height:44px;padding:9px 12px;font-size:12px!important;white-space:nowrap}
 .oa-location-toolbar{padding:8px!important;gap:8px}
 .oa-power-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 .oa-power-panel,.oa-power-sidebar,.oa-party-panel{padding:10px!important;max-width:100%}
 .oa-map-heading{display:grid!important;gap:8px}
 .oa-county-summary{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px}
 .oa-county-summary strong{font-size:17px!important}
 .oa-county-summary span{font-size:10px!important}
 .oa-map{height:390px!important;min-height:0!important}
 #officeArchivePanel .oa-map-legend{display:none!important}
 .oa-seats-overview{padding:12px!important}
 .oa-measures{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}
 .oa-controls-body{max-width:calc(100vw - 24px)!important;box-sizing:border-box}
 /* Secondary workspaces share a single content column and compact cards. */
 :is(.ei-workspace,.ei-main-grid,.projection-workspace,.pr-workspace,.tl-workspace,.turnout-workspace,.ss-workspace,.cs-workspace,.coalition-workspace,.member-auth-layout,.member-profile-grid,.membership-layout,.sg-layout,.ke-overview-grid,.constituency-workspace){grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 :is(.ei-kpis,.projection-kpis,.pr-kpis,.tl-kpis,.turnout-kpis,.ss-kpis,.cs-kpis,.membership-plans,.cp-history-stats){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 :is(.ei-hero,.projection-hero,.tl-hero,.ss-hero,.cs-hero,.member-account-card,.membership-hero,.simulation-guide-section){padding:14px!important;min-height:0!important}
 :is(.ei-hero,.projection-hero,.tl-hero,.ss-hero,.cs-hero)>div>p:not([role=status]):not([class*=kicker]){font-size:12px!important;margin:6px 0}
 :is(.ei-map,.projection-map,.pr-map,.tl-map,.ss-map,.cs-map){height:400px!important;min-height:0!important}
 .ei-control-rail{max-height:none!important;position:static!important;width:100%!important}
 .ei-control-rail fieldset{padding:8px!important}
 :is(.member-profile-actions,.member-account-verification-actions){display:flex;flex-wrap:wrap;gap:8px}
 .member-account-tabs{display:flex;overflow:auto}
 .member-account-tabs>button{flex:0 0 auto;white-space:nowrap}
 .membership-plan{padding:16px!important}
 .membership-plan h3{font-size:20px!important}
 /* Broadcast remains readable on a phone. */
 body[data-atlas-display=broadcast] :is(.cn-broadcast-stage,.ei-broadcast-grid,.oa-broadcast-grid){grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
 body[data-atlas-display=broadcast] :is(.cn-broadcast-metrics,.cn-broadcast-scoreboard){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body[data-atlas-display=broadcast] .cn-broadcast-map{height:400px!important;min-height:0!important}
 .cn-map-playback{max-width:calc(100% - 20px)!important;box-sizing:border-box}
 .cn-map-playback input[type=range]{min-width:60px}
 /* Private operations: coherent cards, short header, usable forms. */
 body[data-access=admin] .main-content{padding:12px!important;max-width:100%;width:auto}
 body[data-access=admin] .admin-sidebar{padding:12px!important;min-height:0!important}
 body[data-access=admin] .admin-brand-row{gap:10px;min-height:48px}
 body[data-access=admin] .admin-brand-row .brand{font-size:22px!important}
 body[data-access=admin] .admin-brand-row .brand small{font-size:8px!important}
 body[data-access=admin] #adminMenuToggle{min-height:40px;padding:8px 12px;font-size:13px!important}
 body[data-access=admin] .admin-navigation{max-height:70dvh;overflow:auto;overscroll-behavior:contain;padding-top:10px!important}
 body[data-access=admin] .admin-sidebar-note{display:none}
 body[data-access=admin] .topbar{padding:8px 12px!important;min-height:40px!important;gap:7px;font-size:11px}
 body[data-access=admin] .topbar :is(button,.button){min-height:34px;padding:6px 8px;font-size:11px!important}
 body[data-access=admin] .page-heading{padding:12px 0!important;min-height:0!important;gap:10px;margin:0 0 12px!important}
 body[data-access=admin] .page-heading .eyebrow,body[data-access=admin] #pageSubtitle{display:none}
 body[data-access=admin] .heading-actions{display:flex;flex-wrap:wrap;gap:7px}
 body[data-access=admin] .heading-actions .year-control{flex:1;min-width:90px}
 body[data-access=admin] .heading-actions>.button{flex:1;font-size:12px!important;padding:8px}
 body[data-access=admin] :is(.admin-next-grid,.admin-overview-grid,.admin-work-grid,.operations-grid,.folder-settings-grid,.pipeline-settings-grid,.review-layout,.form-grid.three){grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
 body[data-access=admin] :is(.admin-stat-grid,.admin-readiness-grid,.form-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 body[data-access=admin] .admin-stat-grid article{padding:11px!important;min-height:0!important}
 body[data-access=admin] .admin-stat-grid article>strong{font-size:25px!important}
 body[data-access=admin] .admin-stat-label{font-size:10px!important;min-height:0;line-height:1.4}
 body[data-access=admin] .admin-next-grid article{padding:14px!important;min-height:0!important}
 body[data-access=admin] :is(.admin-next-grid p,.admin-panel-description,.admin-activity-list small){font-size:12px!important;color:#b9d2df!important}
 body[data-access=admin] .incoming-forms-table tbody{padding:0!important;gap:10px;background:transparent!important}
 body[data-access=admin] .incoming-forms-table tbody tr{padding:12px!important;gap:9px!important;background:#183a4b!important;border:1px solid #456b80!important;color:#edf7fc!important}
 body[data-access=admin] .incoming-forms-table tbody :is(td,.incoming-area-name,.incoming-document strong){background:transparent!important;color:#edf7fc!important}
 body[data-access=admin] .incoming-forms-table tbody .incoming-document strong{font-size:14px!important;line-height:1.35}
 body[data-access=admin] .incoming-forms-table tbody [data-label]::before{font-size:10px!important;line-height:1.4;color:#b9d2df!important}
 body[data-access=admin] .incoming-forms-table tbody :is(small,code){font-size:11px!important;color:#b9d2df!important}
 body[data-access=admin] .incoming-forms-table .table-action{min-height:40px;padding:8px 12px;font-size:12px!important}
 body[data-access=admin] .incoming-process-actions{gap:7px;flex-wrap:wrap;padding:10px!important}
 body[data-access=admin] .incoming-process-actions button{font-size:12px!important}
 body[data-access=admin] .csv-pipeline-scope{display:flex;flex-wrap:wrap;gap:8px;padding:10px!important;font-size:12px!important}
 body[data-access=admin] .csv-pipeline-note{font-size:12px!important;color:#c3dae5!important}
 body[data-access=admin] .source-fingerprint code{font-size:10px!important}
 /* Dialog actions remain in view without making the entire page scroll sideways. */
 body[data-atlas-theme=broadcast] dialog{width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 20px)!important;margin:auto!important;padding:0!important;box-sizing:border-box;overflow:auto}
 body[data-atlas-theme=broadcast] dialog :is(.dialog-heading,.dialog-footer,.upload-body,.review-layout,.membership-dialog-body){padding:12px!important}
 body[data-atlas-theme=broadcast] dialog .dialog-heading h2{font-size:20px!important}
 body[data-atlas-theme=broadcast] dialog :is(.dialog-footer,.review-actions,.upload-footer>div){flex-wrap:wrap;gap:8px}
 body[data-atlas-theme=broadcast] dialog :is(.review-layout,.form-grid.three){grid-template-columns:minmax(0,1fr)!important}
 body[data-atlas-theme=broadcast] dialog .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:370px) {
 body[data-access=public] .desk-brand .brand{font-size:20px!important}
 .rc-history-cards{grid-template-columns:minmax(0,1fr)!important}
 body[data-access=admin] .form-grid{grid-template-columns:minmax(0,1fr)!important}
}

@media(max-width:1100px){
 body[data-atlas-theme=broadcast] #main details.atlas-mobile-disclosure>summary{color:#edf7fc!important;background:#1b4052!important;min-height:44px!important;padding:12px!important}
 body[data-atlas-theme=broadcast] #main details.atlas-mobile-disclosure[open]>summary{color:#9af1db!important}
}

@media(max-width:1100px){
 body[data-access=public] #main>.page-heading{padding:16px 0!important;min-height:0!important;margin:0 0 10px!important}
 body[data-access=public] #main #pageTitle{font-size:22px!important;line-height:1.2!important;margin:0!important}
 body[data-access=public] #comparisonContent .rc-geography-toolbar{padding:10px!important}
 body[data-access=public] #comparisonContent .rc-geography-selects{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body[data-access=public] #comparisonContent .atlas-mobile-disclosure:has(>.rc-geography-selects){margin:8px 0 0!important;grid-column:1/-1}
 body[data-access=public] #comparisonContent .rc-geography-selects label{margin:0!important}
}

@media(max-width:1100px){
 body[data-access=public] #main #intelligenceContent .ei-heading{padding:12px!important;gap:8px!important;margin-bottom:10px}
 body[data-access=public] #main #intelligenceContent .ei-heading h2{font-size:22px!important;line-height:1.2!important}
 body[data-access=public] #main #intelligenceContent .ei-heading p:not(.ei-kicker):not(.ei-live-status){display:none}
 body[data-access=public] #main #intelligenceContent .ei-heading .ei-kicker{font-size:10px!important;line-height:1.4!important;margin:0 0 6px!important}
 body[data-access=public] #main #intelligenceContent .ei-live-status{font-size:10px!important;line-height:1.4!important;margin-top:7px!important}
 body[data-access=public] #main #intelligenceContent .ei-heading button{font-size:11px!important;min-height:36px!important;padding:7px 10px!important}
 body[data-access=public] #main #intelligenceContent .ei-layout{gap:10px!important}
 body[data-access=public] #main #intelligenceContent .ei-explainer{padding:10px!important}
 body[data-access=public] #main #intelligenceContent .ei-explainer>p:not(.ei-takeaway){display:none}
 body[data-atlas-theme=broadcast] #mapView.atlas-reference-wall .ref-map-settings :is(select,input){font-size:16px!important}
}

.desk-route-status{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;margin:0 0 12px;color:#cef2ea;background:#154150;border:1px solid #3b7e87;font-size:13px;line-height:1.4}
.desk-route-status[hidden]{display:none}
.desk-route-status[data-error=true]{color:#ffe5b2;border-color:#98794a;background:#483d2d}
.desk-route-status button{color:#edf7fc;background:#244b5f;border:1px solid #6e8d9d;padding:8px 14px;min-height:36px;cursor:pointer}
