/* Desktop workspaces stay in their existing arrangement. */
.atlas-mobile-book{min-width:0;max-width:100%;box-sizing:border-box}
/* A Broadcast side panel uses the same real-content pager at desktop widths. */
.atlas-panel-book{display:flex;flex-direction:column;gap:8px;height:100%;min-height:0;overflow:hidden}
.atlas-panel-book .atlas-mobile-page-nav{display:grid;grid-template-columns:75px minmax(0,1fr) 75px;gap:6px;align-items:center;flex:none;text-align:center;padding:5px;background:#102f42;border:1px solid #426e82;color:#eaf6fc}
.atlas-panel-book .atlas-mobile-page-nav>label{display:flex;grid-column:1/-1;gap:8px;align-items:center;font-size:11px;min-width:0;color:#bdd9e8!important}
.atlas-panel-book .atlas-mobile-page-nav select{width:0;flex:1;min-width:0}
.atlas-panel-book .atlas-mobile-page-nav button:disabled{opacity:.45}
.atlas-panel-book .atlas-mobile-page-nav span{font-size:12px}
.atlas-panel-book .atlas-mobile-page-viewport{position:relative;flex:1;min-height:0;width:100%;overflow:hidden}
body[data-access=public] #officeArchivePanel.oa-broadcast .atlas-panel-book #oaBroadcastIntel{display:block!important;box-sizing:border-box;width:100%;height:var(--atlas-page-height)!important;max-height:none;min-height:0!important;columns:var(--atlas-page-width) auto;column-gap:24px;column-fill:auto;overflow:visible!important}
.atlas-panel-book .atlas-mobile-page-flow>section{box-sizing:border-box;max-width:100%;margin-bottom:10px;break-inside:auto}
.atlas-panel-book .atlas-mobile-page-flow :is(li,dl>div){break-inside:avoid}
.atlas-panel-book .atlas-mobile-page-flow h3{break-after:avoid}
@media(max-width:1100px){
 body[data-access=public] #mapView.atlas-reference-wall .ref-map-preview{left:auto;right:10px;width:min(270px,calc(100% - 20px))}
 body[data-access=public] #mapView.atlas-reference-wall .ref-map-preview header button{min-height:36px!important;height:36px!important;width:36px;font-size:24px!important}
 body[data-access=public] #mapView.atlas-reference-wall .ref-strategy-overview{grid-template-columns:1fr}
 body[data-access=public].atlas-mobile-paged :is(.page-heading,.reader-tally-wrap,.page-footer){display:none!important}
 body[data-access=public].atlas-mobile-paged #main{padding:6px 10px!important;max-width:100%!important;box-sizing:border-box}
 body[data-access=public] #main .atlas-mobile-book{display:flex!important;flex-direction:column;gap:8px;min-height:0;margin:0}
 .atlas-mobile-page-nav{display:grid;grid-template-columns:90px minmax(0,1fr) 90px;align-items:center;gap:8px;flex:none;color:#eaf6fc;text-align:center;background:#102f42;border:1px solid #426e82;padding:5px;min-height:48px;box-sizing:border-box}
 body[data-access=public] .atlas-mobile-page-nav button{min-height:36px!important;padding:6px!important;font-size:13px!important;color:#edf8ff!important;background:#244e64!important;border:1px solid #5c8295!important;cursor:pointer}
 .atlas-mobile-page-nav button:disabled{opacity:.45;cursor:default}
 .atlas-mobile-page-nav span{font-size:13px;font-variant-numeric:tabular-nums}
 .atlas-mobile-page-nav>label{grid-column:1/-1;display:flex;align-items:center;gap:8px;font-size:11px;color:#bdd9e8;min-width:0}
 body[data-access=public] .atlas-mobile-page-nav select{min-height:38px!important;height:38px!important;flex:1;width:0;max-width:100%;font-size:14px!important;color:#edf8ff!important;background:#244e64!important;border:1px solid #5c8295!important;padding:5px!important}
 .atlas-mobile-page-viewport{position:relative;flex:1;min-height:0;width:100%;overflow:hidden;overscroll-behavior:contain}
 body[data-access=public] #main .atlas-mobile-page-flow{display:block!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;height:var(--atlas-page-height)!important;min-height:0!important;max-height:none!important;columns:var(--atlas-page-width) auto!important;column-gap:24px!important;column-fill:auto!important;overflow:visible!important;margin:0!important;padding:0!important}
 body[data-access=public] #main #officeArchivePanel.oa-broadcast.atlas-mobile-page-flow{position:static!important;inset:auto!important}
 .atlas-mobile-page-flow :is(section,article,aside,header,footer,nav,div,form,fieldset){max-width:100%;min-width:0;box-sizing:border-box}
 .atlas-mobile-page-flow :is(h1,h2,h3,h4){break-after:avoid;overflow-wrap:anywhere}
 .atlas-mobile-page-flow :is(p,li){orphans:3;widows:3;overflow-wrap:anywhere}
 .atlas-mobile-page-flow :is(span,strong,b,small,dt,dd){overflow-wrap:anywhere}
 .atlas-mobile-page-flow :is(article,fieldset,tr,.cp-tabs,.oa-office-grid,.atlas-view-tools,.ee-location-toolbar,.rc-panel-heading,.ei-heading,.eh-intro,.pm-toolbar){break-inside:avoid}
 /* Grid workspaces become a reading sequence; the map remains a whole panel. */
 body[data-access=public] #main .atlas-mobile-page-flow :is(.cp-profile,.cp-overview-dashboard,.cp-summary-rail,.cp-overview-main,.electoral-explorer,.cp-overview-grid,.rc-history-workspace,.rc-history-map-grid,.oa-power-grid,.ei-layout,.eh-map-layout,.pm-layout,.tl-layout,.ca-geographic-layout,.studio-map-layout,.studio-wiki-layout,.batch-overview-layout,.batch-map-layout,.ko-bottom,.member-auth-layout,.member-profile-grid){display:block!important;height:auto!important;min-height:0!important;max-height:none!important}
 body[data-access=public] #main .atlas-mobile-page-flow :is(.ca-shell,.ca-workspace,.ca-sidebar,.ca-main,.batch-overview-lists,.tm-roster-scroll){display:block!important;position:static!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;width:100%!important}
 .atlas-mobile-page-flow :is(.ca-header,.ca-topbar,.ca-filterbar){flex-wrap:wrap!important}
 .atlas-mobile-page-flow .ca-party-target{break-inside:avoid}
 body[data-access=public] #main .atlas-mobile-page-flow :is(.cp-header,.rc-history-map-panel,.oa-power-panel,.ei-heading,.ei-map-panel,.eh-card,.tl-card,.batch-panel,.pm-source-strip,.ko-panel){margin:0 0 10px!important;padding:10px!important;height:auto!important;min-height:0!important;max-height:none!important}
 body[data-access=public] #main .atlas-mobile-page-flow :is(.cp-stats,.cp-county-dna,.cp-story-strip,.rc-history-cards,.ea-card-grid,.eh-ticket-grid,.ko-guide-grid,.membership-plans,.batch-control-grid){display:block!important}
 .atlas-mobile-page-flow :is(article,fieldset){margin-bottom:10px}
 body[data-access=public] #main #countyView #countyProfileContent.atlas-mobile-page-flow .cp-profile{display:block!important}
 body[data-access=public] #main #countyView #countyProfileContent.atlas-mobile-page-flow :is(.cp-tab-panel:not([hidden]),.cp-overview-dashboard,.cp-summary-rail,.cp-overview-main,[data-cp-explorer],.electoral-explorer,.cp-overview-grid:not([hidden])){display:contents!important}
 body[data-access=public] #main .atlas-mobile-page-flow :is(.ee-map-card,.rc-history-map-panel,.ei-map-panel,.eh-map-card,.oa-power-grid>div:first-child,.pm-map-content,.ca-map-wrap){break-inside:avoid!important}
 body[data-access=public] #main .atlas-mobile-page-flow :is(.ee-map-stage,.ee-map,.cp-world-map,#rcHistoryMap,.oa-map,.ei-map,.eh-world-map,.eh-map-frame,.pm-map,.ca-world-map,.studio-world-map,.tm-world-map,.batch-overview-map,.batch-map){height:min(380px,calc(var(--atlas-page-height) - 110px))!important;min-height:140px!important;max-height:none!important;break-inside:avoid!important;overflow:hidden!important}
 body[data-access=public] #main .atlas-mobile-page-flow :is(.table-scroll,.rc-table-scroll,.oa-table-scroll,.ea-table-wrap,.eh-table-wrap,.ca-matrix-scroll,.batch-table-wrap,.tl-table-wrap,.pm-table-scroll){overflow:visible!important;max-height:none!important;width:100%!important;min-width:0!important}
 body[data-access=public] #main .atlas-mobile-page-flow table{display:block!important;min-width:0!important;width:100%!important;max-width:100%!important;table-layout:fixed!important}
 .atlas-mobile-page-flow table thead{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)}
 body[data-access=public] #main .atlas-mobile-page-flow table tbody{display:block!important}
 body[data-access=public] #main .atlas-mobile-page-flow table tbody tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;padding:10px!important;border:1px solid #426c80;margin:0 0 10px!important;break-inside:avoid!important;background:#193d50!important}
 body[data-access=public] #main .atlas-mobile-page-flow table tbody :is(td,th){display:block!important;width:auto!important;min-width:0!important;border:0!important;padding:3px 0!important;text-align:left!important;font-size:13px!important;overflow-wrap:anywhere;white-space:normal!important}
 .atlas-mobile-page-flow td[data-mobile-label]::before{content:attr(data-mobile-label);display:block;font-size:10px;line-height:1.3;color:#bdd9e8;font-weight:500;margin-bottom:3px}
 .atlas-mobile-page-flow :is(td,th):first-child{grid-column:1/-1}
 body[data-access=public] #main .atlas-mobile-page-flow :is(.cp-tabs,.oa-office-grid,.batch-tabs,.member-account-tabs,.pm-display){display:flex!important;flex-wrap:wrap!important;overflow:visible!important;gap:5px}
 body[data-access=public] #main .atlas-mobile-page-flow :is(.cp-tabs,.oa-office-grid)>button{flex:1 1 100px!important;min-height:40px!important;white-space:normal!important;font-size:12px!important;padding:6px!important}
 .atlas-mobile-page-flow :is(input,select,textarea){max-width:100%!important;box-sizing:border-box;min-width:0}
 .atlas-mobile-page-flow :is(.cp-footer,.rc-method,.ei-rules,.eh-sources,.ko-guide-grid,.tl-disclosure){break-inside:auto}
 .atlas-mobile-page-flow dialog{columns:auto!important;column-count:1!important}
 body[data-access=public] #main .atlas-detail-dialog:has(.atlas-mobile-book){inset:8px!important;margin:0 auto!important;height:calc(100dvh - 16px)!important;max-height:none!important;overflow:hidden!important;padding:12px!important}
 body[data-access=public] #main .atlas-detail-dialog:has(.atlas-mobile-book)>header{margin-bottom:8px}
}
@media(max-width:450px){
 body[data-access=public] #main .atlas-mobile-page-flow :is(.tl-stats,.cs-metrics,.ca-summary-stats,.batch-metrics,.ea-model-stats,.ko-coverage,.ko-status-grid,.rp-kpis){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
 body[data-access=public] #main .atlas-mobile-page-flow :is(.tl-stats,.cs-metrics,.ca-summary-stats,.batch-metrics,.ea-model-stats,.ko-coverage,.ko-status-grid,.rp-kpis) :is(strong,b){white-space:nowrap;overflow-wrap:normal}
}
@media(max-width:1100px) and (max-height:500px){
 body[data-access=public] #mapView.atlas-reference-wall .ref-map-preview li{padding-top:4px}
 body[data-access=public] #mapView.atlas-reference-wall .ref-hover-trend{height:25px}
 body[data-access=public] #mapView.atlas-reference-wall .ref-map-preview-metrics{padding:4px 0}
}
