.atlas{--green:#a52c3d}.atlas .app-header{height:64px;background:#101522;color:#fff;border:0}.atlas .app-header .brand-mark{border-color:#ffffff38;color:#fff}.atlas .app-header .brand-mark span{color:#f47483}.atlas .app-header nav a[aria-current=page]{color:#ffa2ad}.atlas .back-link{color:#acb7c9}.atlas .map-layout{height:calc(100dvh - 64px);grid-template-columns:285px minmax(0,1fr)}.atlas .sidebar-heading h1{font-size:23px}.atlas .snapshot{color:#7c3a44;background:#fff1f2;border-color:#f0dce0}.atlas .map-context{max-width:420px}.atlas .detail{width:390px;top:80px;max-height:calc(100% - 120px);right:16px;border-radius:14px}.atlas .detail-header{position:sticky;top:0;z-index:3;background:#fff;padding:15px 18px}.atlas .detail-header h2{font-size:22px}.atlas .detail-body{padding:17px}.atlas .kpi-grid{gap:7px}.atlas .kpi{background:#f8f9fb;border-color:#e4e8ed}.atlas .kpi b{font-size:23px}.atlas .kpi span{font-size:11px}.field-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.field-head label,.field-head h2{font-size:12px;font-weight:650;margin:0}.info{min-height:28px;width:28px;padding:0;border-radius:50%;color:#685665;font-family:Georgia,serif;font-size:16px;flex-shrink:0;border-color:#d5dce4}.info:hover{background:#fff0f1}.wide{display:block;width:100%;text-align:center;font-size:12px}.sheet-close{display:none}.mobile-toolbar{display:none}#party-field{margin-top:12px}#party-field label{display:block;font-size:11px;margin:8px 0}.section-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:25px;margin-bottom:12px}.section-title h3{margin:0;font-size:14px;color:#2b414e}.chart-note{font-size:10px!important;line-height:1.6!important;color:#657880!important}.bar-chart{display:grid;gap:8px}.chart-row{display:grid;grid-template-columns:80px 1fr 45px;align-items:center;gap:9px;font-size:11px}.chart-row.wide-label{grid-template-columns:120px 1fr 40px}.chart-row .chart-label{overflow-wrap:anywhere;line-height:1.35}.chart-track{height:12px;background:#eef1f4;border-radius:3px;overflow:hidden}.chart-fill{height:100%;min-width:1px;border-radius:3px;background:#3b7f9b}.chart-row b{text-align:right;font-size:11px;color:#304b59}.gender-chart .chart-row{grid-template-columns:135px 1fr 38px}.gender-chart .chart-row:nth-child(1) .chart-fill{background:#b43b50}.gender-chart .chart-row:nth-child(2) .chart-fill{background:#367a98}.gender-chart .chart-row:nth-child(3) .chart-fill{background:#89939b}.data-table{width:100%;border-collapse:collapse;font-size:11px;margin:12px 0}.data-table th{text-align:left;font-weight:650;background:#f2f5f7}.data-table td,.data-table th{padding:9px 7px;border-bottom:1px solid #e5eaee;white-space:normal;vertical-align:top}.chart-switch{display:flex;gap:5px;margin:8px 0 14px;flex-wrap:wrap}.chart-switch button{min-height:34px;padding:7px 10px;font-size:11px}.chart-switch button.active{background:#18384a;color:#fff;border-color:#18384a}.insight{padding:12px 14px;background:#f6f8fb;border:1px solid #e0e7ee;border-radius:9px;margin-top:9px;font-size:11px;line-height:1.7}.insight strong{color:#294a5a}.list-item{padding:12px 0;border-bottom:1px solid #e5eaee;font-size:12px}.list-item strong{display:block;line-height:1.45}.list-item small{display:block;color:#6f7e85;margin-top:5px;font-size:10px}.list-item p{font-size:11px;margin:7px 0 0;color:#657a83}.candidate-tools{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-top:15px;font-size:11px}.candidate-tools button{font-size:11px;min-height:38px;padding:8px 12px}.detail-tabs{display:flex;gap:5px;position:sticky;top:0;background:#fff;flex-wrap:wrap}.detail-tabs button{font-size:11px;min-height:36px;padding:8px 10px}.detail-tabs button[aria-selected=true]{color:#fff;background:#18384a;border-color:#18384a}.detail-tab[hidden]{display:none}.detail-source{margin:20px 0 0!important;font-size:10px!important;color:#73838b!important}.source-link{text-decoration:underline;font-size:11px;color:#865263}.insight-link{border:0;border-radius:0;width:100%;text-align:left;font-size:11px;padding:10px 0;min-height:40px;border-bottom:1px solid #e6ece9;background:transparent;color:#294852}.insight-link span{display:block;color:#7c848c;font-size:10px;margin-top:3px}.atlas dialog{border:1px solid #d9e1e7;border-radius:15px;box-shadow:0 20px 100px #14233744;width:min(680px,calc(100% - 30px));max-height:85dvh;padding:0;color:#2e4753}.atlas dialog::backdrop{background:#0f172971;backdrop-filter:blur(3px)}.atlas dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 20px;border-bottom:1px solid #e0e7eb;position:sticky;top:0;background:#fff;z-index:2}.atlas dialog h2{font-size:18px;margin:0}.atlas dialog .close{min-height:36px;width:36px;padding:0;font-size:22px}.atlas #info-content,.atlas #compare-body{padding:20px;font-size:13px;line-height:1.7}.compare-pickers{padding:20px;display:grid;grid-template-columns:1fr 1fr;gap:15px}.compare-pickers label{font-size:11px}.compare-pickers input{margin-top:6px}.compare-pickers button{display:block;width:100%;padding:9px 6px;font-size:11px;text-align:left;border:0}.compare-result-title{margin:0 0 20px;display:flex;justify-content:space-around;gap:20px;font-size:16px}.atlas .map-status.error{max-width:350px;font-size:11px}.atlas .search-results{max-height:220px}.atlas .map-workspace .maplibregl-ctrl-bottom-right{max-width:100%}.atlas .map-context small{line-height:1.5}.atlas .mobile-reset{display:none}.atlas .detail .note{font-size:11px}.atlas details summary{cursor:pointer;font-size:11px;line-height:1.5;color:#6e7b84;padding:8px 0}.atlas .map-top button{min-height:44px}.atlas button:disabled{opacity:.5}.atlas .map-status{background:#ffffffeb}.atlas .comparison-note{font-size:11px;background:#f4f7f9;padding:12px;border-radius:8px}
@media(max-width:900px){.atlas .map-layout{display:block}.atlas .map-workspace{height:100%}.atlas .sidebar{position:absolute;bottom:74px;left:8px;right:8px;max-height:calc(100dvh - 150px);border-radius:16px;display:none;border:1px solid #dce4eb;box-shadow:0 8px 35px #18384a2a;z-index:8}.atlas .sidebar.open{display:block}.atlas .sidebar-heading{padding:19px 20px}.atlas .sidebar-heading h1{max-width:calc(100% - 40px)}.sheet-close{display:block;position:absolute;right:15px;top:15px;width:40px;height:40px;min-height:40px;padding:0;font-size:23px}.atlas .sidebar-heading{position:relative}.atlas .detail{top:176px;bottom:74px;left:8px;right:8px;width:auto;max-height:calc(100dvh - 250px);border-radius:16px;z-index:8}.atlas .detail-header{padding:14px 17px}.atlas .detail-body{padding:15px 17px}.atlas .detail-body .kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.atlas .detail-body .kpi{padding:10px}.atlas .detail-body .kpi b{font-size:21px}.atlas .detail-body .kpi span{font-size:10px}.mobile-toolbar{display:grid;position:absolute;bottom:max(24px,env(safe-area-inset-bottom));left:12px;right:12px;grid-template-columns:1.4fr 1fr 1fr;gap:7px;z-index:9}.mobile-toolbar button{min-height:44px;background:#142c40;color:#fff;border-color:#142c40;font-size:11px;padding:10px 6px;box-shadow:0 4px 16px #132c4022}.mobile-toolbar button:first-child{background:#a53043;border-color:#a53043}.atlas .map-top{left:12px;right:52px;top:12px}.atlas .map-top>#reset{display:none}.atlas .map-context{max-width:100%;font-size:11px;padding:10px 13px}.atlas .map-context small{font-size:10px}.atlas .map-status{top:90px;bottom:auto;left:12px;max-width:calc(100% - 60px);font-size:10px;pointer-events:none}.atlas .map-status.error{top:90px;bottom:auto;left:12px;max-width:calc(100% - 60px)}.atlas .app-header{padding:0 13px;height:64px}.atlas .app-header nav{font-size:11px;gap:13px}.atlas .app-header .brand{font-size:12px;gap:8px}.atlas .brand b{display:none}.atlas .back-link{display:none}.atlas dialog{max-height:calc(100dvh - 24px);width:calc(100% - 16px);border-radius:13px}.compare-pickers{gap:10px;padding:15px}.atlas #compare-body{padding:15px}.data-table{font-size:10px}.data-table td,.data-table th{padding:8px 4px}.atlas .detail-tabs{top:auto;position:relative}.atlas .candidate-tools button{min-height:44px}.atlas .info{min-height:36px;width:36px}.atlas .chart-row.wide-label{grid-template-columns:110px 1fr 35px}}
@media(max-width:380px){.atlas .app-header nav{gap:10px;font-size:10px}.atlas .app-header .brand{font-size:11px}.atlas .brand-mark{width:33px;height:33px}.atlas .chart-row{grid-template-columns:66px 1fr 35px}.atlas .gender-chart .chart-row{grid-template-columns:125px 1fr 34px}.detail-tabs button{font-size:10px!important;padding:8px!important}}
.atlas .legend-list>div{display:flex;gap:9px;align-items:center;font-size:11px;margin:7px 0}.atlas .legend-list i{display:block;width:16px;height:12px;border:1px solid #0002;border-radius:2px;flex-shrink:0}.atlas .search-results button small{display:block;color:#75828c;font-size:10px;margin-top:4px}.atlas .detail,.atlas .sidebar{overscroll-behavior:contain}.atlas .detail-tabs button{flex:1}.atlas .detail-header .close{min-height:44px;min-width:44px}
.atlas .compare-pickers small{display:block;color:#7c848c}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.atlas .kpi{position:relative}.atlas .kpi-info{position:absolute;right:4px;top:4px;width:24px;min-height:24px;font-size:12px;background:#fff}.atlas .kpi b{padding-right:18px}@media(max-width:900px){.atlas .kpi-info{width:30px;min-height:30px;position:static;float:right}.atlas .kpi b{padding-right:0}.atlas .kpi{min-height:97px}}
@media(max-width:900px){.atlas .detail-tabs button,.atlas .chart-switch button,.atlas .info,.atlas .kpi-info{min-height:44px}.atlas .info,.atlas .kpi-info{width:44px}.atlas .sidebar-heading{padding-top:16px}.atlas .map-status.error{pointer-events:auto}}
@media(max-width:900px){.atlas .sidebar.open .sidebar-heading{position:sticky;top:0;background:#fff;z-index:2}}
@media(max-width:900px){.atlas .map-workspace:has(.detail:not([hidden])) .map-status,.atlas:has(#sidebar.open) .map-status{display:none}.atlas .map-workspace:has(.detail:not([hidden])) .maplibregl-ctrl-top-right,.atlas:has(#sidebar.open) .maplibregl-ctrl-top-right{visibility:hidden}}
.atlas .detail-header h2:focus{outline:none}.atlas .search-results [aria-selected=true]{background:#fff0f2;color:#92263b;border-left:3px solid #a53043}
.atlas .detail{display:flex;flex-direction:column;overflow:hidden}.atlas .detail[hidden]{display:none}.atlas .detail-header{flex-shrink:0}.atlas .detail-body{overflow:auto;min-height:0;flex:1}.atlas .detail-tabs{position:sticky;top:0;padding-bottom:8px;z-index:2;background:#fff}
.atlas .chart-fill{min-width:0}
.atlas .donut-chart{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:center;gap:12px;padding:12px;margin:10px 0;background:linear-gradient(135deg,#f8fafc,#fff);border:1px solid #e8edf1;border-radius:14px}
.atlas .donut-chart svg{display:block;width:100%;filter:drop-shadow(0 3px 5px #243c5014)}
.atlas .donut-total{font:700 13px Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;fill:#18384a}
.atlas .donut-caption{font:500 7px Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;fill:#75818b}
.atlas .donut-chart ul{list-style:none;margin:0;padding:0;display:grid;gap:6px;min-width:0}
.atlas .donut-chart li{display:grid;grid-template-columns:9px minmax(0,1fr) auto;align-items:center;gap:6px;font-size:10px;line-height:1.3;min-width:0}
.atlas .donut-chart li i{width:8px;height:8px;border-radius:50%;background:var(--slice)}
.atlas .donut-chart li span{overflow-wrap:anywhere;color:#3f5361}
.atlas .donut-chart li b{white-space:nowrap;font-size:10px;color:#18384a;text-align:right}
.atlas .donut-chart li small{display:block;text-align:right;font-size:9px;font-weight:500;color:#74818b}
.atlas .result-years{display:flex;gap:6px;margin:0 0 10px}
.atlas .result-years button{min-height:36px;padding:6px 14px;font-size:11px;color:#324d60;background:#f5f7fa}
.atlas .result-years button.active{background:#a52c3d;border-color:#a52c3d;color:#fff}
.atlas #election-result-chart .data-table{margin-top:10px}
@media(max-width:380px){.atlas .donut-chart{grid-template-columns:96px minmax(0,1fr);gap:8px;padding:9px}.atlas .donut-chart li{font-size:9px;gap:5px}.atlas .donut-chart li b{font-size:9px}}
.atlas dialog .close{min-height:44px;width:44px}@media(max-width:900px){.atlas button{min-height:44px}.atlas .sheet-close{min-width:44px;min-height:44px}.atlas .sidebar-heading h1{max-width:calc(100% - 54px)}.atlas .app-header nav a{display:inline-flex;align-items:center;min-height:44px}.atlas .app-header .brand{min-height:44px}.atlas .insight-link,.atlas .compare-pickers button{min-height:44px}}
.atlas .map-settings-wrap{position:relative;pointer-events:auto}.atlas .map-settings-wrap>#map-settings-toggle{background:#102d43;color:white;border:1px solid #102d43;font-size:12px;padding:10px 16px;box-shadow:0 4px 14px #102d4355}.atlas .map-settings-panel{position:absolute;top:52px;right:0;width:min(350px,calc(100vw - 24px));max-height:min(72dvh,600px);overflow:auto;background:white;color:#253d4c;padding:18px;border:1px solid #cdd8e1;border-radius:13px;box-shadow:0 12px 35px #14283b40;pointer-events:auto}.atlas .map-settings-panel[hidden]{display:none}.atlas .map-settings-panel #search{width:100%;min-height:46px}.atlas .map-settings-panel .panel-section{padding:0;border:0}.atlas .map-settings-panel .search-results{position:relative;max-height:220px;box-shadow:none}.atlas .label-toggle{display:flex;align-items:center;gap:11px;margin-top:15px;min-height:44px;font-size:14px}.atlas .label-toggle input{width:20px;height:20px;accent-color:#b72d45}.atlas .theme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.atlas .theme-grid[hidden],.atlas #theme-choices[hidden]{display:none}.atlas .theme-card{display:grid;grid-template-columns:28px 1fr;grid-template-rows:auto auto;align-items:center;min-height:70px;text-align:left;padding:10px;border:1px solid #d9e1e8;background:linear-gradient(140deg,#f5f8fb,#fff);color:#20394b;border-radius:10px;gap:2px 8px}.atlas .theme-card:hover,.atlas .theme-option:hover{border-color:#a72b44;background:#fff5f6}.atlas .theme-icon{grid-row:1/3;color:#b52d43;font-size:20px;text-align:center}.atlas .theme-card b{font-size:12px;line-height:1.25}.atlas .theme-card small{font-size:10px;color:#758391}.atlas .theme-back{min-height:44px;margin:5px 0 7px}.atlas #theme-group-title{margin:4px 0 10px;font-size:17px}.atlas .theme-options{display:grid;gap:5px}.atlas .theme-option{min-height:44px;text-align:left;padding:9px 12px;border:1px solid #dce3e9;background:#fff;border-radius:8px;color:#294457;font-size:12px}.atlas .theme-option.active{border-color:#b52d43;background:#fff2f4;color:#781d31;font-weight:700}.atlas .theme-picker .legend-list{margin-top:17px;padding-top:12px;border-top:1px solid #e2e8ed}.atlas .visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:900px){.atlas .map-top{left:10px;right:10px;top:10px;align-items:flex-start}.atlas .map-context{max-width:calc(100% - 145px);padding:8px 10px}.atlas .map-context strong{font-size:11px}.atlas .map-context small{font-size:9px}.atlas .map-settings-wrap>#map-settings-toggle{min-height:44px;padding:8px 11px;font-size:11px;white-space:nowrap}.atlas .map-settings-panel{position:fixed;top:70px;right:12px;z-index:20}.atlas .mobile-toolbar{grid-template-columns:1fr 1fr}.atlas .maplibregl-ctrl-top-right{top:64px;right:10px}.atlas .map-workspace:has(.detail:not([hidden])) .map-settings-wrap{visibility:visible}.atlas .theme-grid{gap:7px}.atlas .theme-card{min-height:65px;padding:8px}.atlas .sidebar{overscroll-behavior:contain}}

/* Accessible controls and compact map action bar */
.atlas .map-top{left:12px;right:12px;top:12px;display:flex;align-items:flex-start;gap:12px;pointer-events:none}
.atlas .map-context{max-width:min(32vw,360px);background:#101b2beF;color:#fff;border:1px solid #ffffff35;border-radius:10px;padding:11px 14px;box-shadow:0 6px 20px #10223738}
.atlas .map-context small{color:#e1e8f1}
.atlas .map-actions{display:flex;gap:7px;margin-left:auto;pointer-events:auto}
.atlas .map-action{min-height:44px;padding:9px 14px;border-radius:9px;background:#122b43;color:#fff;border:1px solid #fff;box-shadow:0 4px 15px #14233744;font-size:13px;font-weight:700;white-space:nowrap}
.atlas .map-action:first-child{background:#a52c3d}.atlas .map-action:hover{filter:brightness(1.12)}
.atlas .map-popover{position:absolute;top:58px;right:0;width:min(370px,calc(100vw - 24px));max-height:min(68dvh,540px);overflow:auto;background:#fff;color:#1b2c3d;padding:19px;border:1px solid #cbd6e1;border-radius:13px;box-shadow:0 14px 40px #10223755;pointer-events:auto;z-index:11}
.atlas .map-popover[hidden]{display:none}.atlas .map-popover label{display:block;font-size:13px;font-weight:650;margin:4px 0 8px}.atlas .map-popover input[type=search]{width:100%;min-height:48px;font-size:16px}.atlas .map-popover .search-results{position:relative;max-height:40dvh;box-shadow:none}.atlas .map-popover .search-results button{min-height:48px}
.atlas .popover-close{float:right;width:36px;min-height:36px;padding:0;font-size:22px;margin:-7px -7px 6px 8px}.atlas .map-tooltip{position:absolute;z-index:6;max-width:220px;padding:7px 10px;background:#101b2bed;color:#fff;border:1px solid #ffffff50;border-radius:6px;font-size:12px;box-shadow:0 3px 12px #11223340;pointer-events:none}.atlas .map-tooltip[hidden]{display:none}
.atlas .map-legend{position:absolute;z-index:5;left:12px;right:12px;bottom:14px;max-width:calc(100% - 24px);padding:8px 13px;background:#101b2bf0;border:1px solid #ffffff40;border-radius:10px;color:#fff;box-shadow:0 4px 18px #10223744;overflow:auto;pointer-events:auto}
.atlas .map-legend .legend-list{display:flex;align-items:center;gap:8px 17px;white-space:nowrap}.atlas .map-legend .legend-list>div{display:flex;gap:7px;align-items:center;font-size:12px;margin:0}.atlas .map-legend .legend-note{font-size:10px;color:#e2e8f0;margin:4px 0 0;white-space:normal}.atlas .map-legend:empty{display:none}
.atlas .detail-actions{display:flex;gap:5px;align-items:center}.atlas .share-icon{width:36px;min-width:36px;min-height:36px;height:36px;padding:0;border-radius:50%;font-size:17px;color:#213d54;background:#f2f5f8}.atlas .detail-header .share-icon{min-height:36px}.atlas .detail-header .close{min-height:44px;width:44px}.atlas .info{width:24px;min-width:24px;min-height:24px;height:24px;font-size:13px}.atlas select,.atlas input:not([type=checkbox]):not([type=radio]){font:inherit;line-height:1.35}.atlas select{min-height:44px;padding:9px 36px 9px 12px;border:1px solid #c9d3dc;border-radius:8px;background-color:#fff;color:#20384a;font-size:13px;box-sizing:border-box}.atlas .change-up{color:#176b45;font-weight:750}.atlas .change-down{color:#a52c3d;font-weight:750}.atlas .change-flat{color:#475569;font-weight:700}
@media(max-width:900px){.atlas .map-top{left:8px;right:8px;top:8px;display:block}.atlas .map-context{max-width:calc(100% - 8px);padding:7px 10px;width:max-content}.atlas .map-context small{display:none}.atlas .map-actions{margin:7px 0 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.atlas .map-action{min-height:44px;padding:7px 3px;font-size:11px;white-space:normal;line-height:1.2}.atlas .map-popover{position:fixed;top:118px;right:8px;width:min(430px,calc(100vw - 16px));max-height:calc(100dvh - 145px);padding:14px}.atlas .map-legend{left:8px;right:8px;bottom:86px;max-width:calc(100% - 16px);padding:8px 10px}.atlas .map-legend .legend-list{overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:3px}.atlas .map-legend .legend-note{max-height:2.7em;overflow:auto}.atlas .map-status{top:112px}.atlas .map-status.error{top:112px}.atlas .map-tooltip{display:none}.atlas .map-workspace:has(.detail:not([hidden])) .map-legend{display:none}.atlas .map-workspace:has(.sidebar.open) .map-legend{display:none}.atlas .detail{bottom:76px;max-height:calc(100dvh - 160px)}.atlas .detail-header{display:flex;justify-content:space-between;align-items:flex-start}.atlas .info{width:24px;min-width:44px;min-height:44px;height:44px}.atlas .map-settings-wrap{display:none!important}}
@media(max-width:390px){.atlas .map-action{font-size:10px;padding-inline:2px}.atlas .map-actions{gap:4px}.atlas .map-legend .legend-list>div{font-size:11px}.atlas .map-popover{top:116px}.atlas .map-context strong{font-size:12px}}

.atlas .map-workspace:has(.detail:not([hidden])) .map-legend{display:none}

@media(max-width:390px){.atlas:not(.candidate-app) .app-header nav{gap:5px;font-size:8px}.atlas:not(.candidate-app) .app-header{padding-inline:8px;gap:6px}.atlas:not(.candidate-app) .app-header .brand{font-size:10px;gap:6px}.atlas:not(.candidate-app) .app-header .brand-mark{width:31px;height:31px}}
.atlas .turnout-years{display:grid;gap:9px;margin:12px 0 18px}.atlas .turnout-year{display:grid;gap:9px;padding:12px;background:#f5f7fa;border:1px solid #e0e6ec;border-radius:10px}.atlas .turnout-year-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.atlas .turnout-year-head>b{font-size:14px;color:#203b52}.atlas .turnout-year-head>strong{font-size:17px;color:#a52c3d;white-space:nowrap}.atlas .turnout-year-head small{font-size:10px;font-weight:600}.atlas .turnout-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.atlas .turnout-stats span{padding:7px;background:#fff;border-radius:7px;font-size:10px;line-height:1.45;color:#627184}.atlas .turnout-stats b{display:block;font-size:13px;color:#18364f}.atlas .turnout-year details{border-top:1px solid #e1e7ec}.atlas .turnout-year details summary{padding:7px 0 0}.atlas .map-actions{flex-wrap:wrap}.atlas .insights-popover #insights{max-height:48dvh;overflow:auto}.atlas .party-list-drilldown{margin-top:20px}.atlas .party-list-drilldown>h3{font-size:14px;color:#203b52}.atlas .party-expander{border:1px solid #dfe5eb;border-radius:9px;margin:8px 0;overflow:hidden;background:#fff}.atlas .party-expander>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px;background:#f7f9fb;color:#1d354a}.atlas .party-expander>summary::-webkit-details-marker{display:none}.atlas .party-expander>summary>b,.atlas .party-expander>summary span:first-child{min-width:0}.atlas .party-expander>summary small{display:block;margin-top:3px;font-size:10px;color:#65778a}.atlas .party-expander[open]>summary{background:#eef3f7;border-bottom:1px solid #e1e7ed}.atlas .party-candidates{padding:8px 10px;max-height:45vh;overflow:auto}.atlas .candidate-profile{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,2fr) auto;align-items:center;gap:10px;padding:10px 2px;border-bottom:1px solid #e8edf1}.atlas .candidate-profile h4{margin:0 0 3px;font-size:12px;color:#1d354a}.atlas .candidate-profile>div>span{font-size:10px;color:#687a8b}.atlas .candidate-profile dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0}.atlas .candidate-profile dl div{min-width:0}.atlas .candidate-profile dt{font-size:9px;color:#768698}.atlas .candidate-profile dd{margin:1px 0 0;font-size:10px;overflow-wrap:anywhere}.atlas .candidate-history-trigger{min-height:36px;padding:7px 9px;font-size:10px;white-space:nowrap}.atlas #candidate-history-dialog{width:min(780px,calc(100% - 24px));max-height:90dvh;overflow:auto}.atlas #candidate-history-content{padding:16px 20px 22px}.atlas #candidate-history-content h3{font-size:14px;color:#1b344a}.atlas .candidate-history-warning{padding:11px;border-left:3px solid #b52d43;background:#fff4f5;font-size:11px;line-height:1.6}.atlas .candidate-history-chart{margin:14px 0}.atlas #candidate-history-content .data-table{min-width:520px}.atlas .map-popover .info{min-width:36px;min-height:36px}
@media(max-width:900px){.atlas .map-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.atlas .map-popover.insights-popover{top:165px}.atlas .turnout-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.atlas .candidate-profile{grid-template-columns:1fr;gap:7px}.atlas .candidate-profile dl{grid-template-columns:repeat(2,minmax(0,1fr))}.atlas .candidate-history-trigger{justify-self:start;min-height:44px}.atlas #candidate-history-content{padding:13px}.atlas #candidate-history-content .data-table{font-size:10px}.atlas .party-candidates{max-height:42dvh}}
@media(max-width:390px){.atlas .turnout-year{padding:9px}.atlas .turnout-stats span{padding:6px 4px;font-size:9px}.atlas .turnout-stats b{font-size:11px}.atlas .map-popover.insights-popover{top:164px}}
.atlas .map-legend{left:50%;right:auto;bottom:9px;width:max-content;max-width:calc(100% - 24px);display:flex;align-items:center;justify-content:center;gap:10px;padding:4px 8px;background:#101b2bf0;border-radius:7px;box-shadow:0 2px 8px #10223730;transform:translateX(-50%);overflow:hidden}
.atlas .map-legend .legend-list{min-width:0;gap:5px 11px;overflow-x:auto;scrollbar-width:thin;padding:1px 0}
.atlas .map-legend .legend-list>div{gap:5px;font-size:9px}
.atlas .map-legend .legend-list i{width:12px;height:8px;border-radius:1px}
.atlas .map-legend .legend-note{flex:0 1 210px;max-width:210px;margin:0;color:#d5dce5;font-size:8px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.atlas .precinct-map-card{margin:12px 0;padding:12px;border:1px solid #dce4ea;border-radius:9px;background:#f7f9fb}
.atlas .precinct-map-card>strong{font-size:13px;color:#18364f}
.atlas .precinct-map-card>p{margin:5px 0 8px;font-size:10px;line-height:1.5;color:#5d6f80}
.atlas .precinct-map-toggle{min-height:38px;padding:7px 11px;font-size:11px}
.atlas .precinct-map-toggle:disabled{opacity:.6;cursor:wait}
.atlas .precinct-map-status{color:#315b73!important}
@media(max-width:900px){.atlas .map-legend{left:8px;right:8px;bottom:86px;width:auto;max-width:calc(100% - 16px);transform:none;justify-content:flex-start;gap:6px;padding:4px 7px}.atlas .map-legend .legend-list{gap:5px 10px}.atlas .map-legend .legend-note{flex-basis:130px;max-width:130px;font-size:8px}.atlas .map-workspace:has(.detail:not([hidden])) .map-legend{display:none}}
@media(max-width:390px){.atlas .map-legend .legend-list>div{font-size:8px}.atlas .map-legend .legend-note{display:none}}
.atlas .map-workspace:has(.detail:not([hidden])) .map-legend{display:flex}

/* Roomier controls and a clearer map detail */
@media(min-width:901px){.atlas .map-layout{grid-template-columns:350px minmax(0,1fr)}.atlas .detail{width:min(620px,calc(100vw - 390px));right:18px}.atlas .detail-body .kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.atlas .sidebar{scrollbar-gutter:stable}
.atlas .sidebar .panel-section{margin:14px 12px;padding:15px 13px;border:1px solid #e1e7ed;border-radius:12px;background:linear-gradient(180deg,#fff,#f8fafc)}
.atlas .sidebar .panel-section h2{margin:0 0 13px;font-size:14px;letter-spacing:.01em}
.atlas .sidebar .theme-picker{margin-top:12px}
.atlas .theme-card{grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto auto;min-height:76px;padding:11px;gap:2px 9px}
.atlas .theme-icon{grid-row:1/3;display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#eef5f8;color:#215a73}
.atlas .theme-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.atlas .theme-card b{font-size:13px;line-height:1.2}.atlas .theme-card small{font-size:10px}
.atlas .detail-header{box-shadow:0 1px 0 #e7ebef}
.atlas .detail-header h2{margin:3px 0 4px}
.atlas .detail-quick-stats{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}
.atlas .detail-quick-stats span{padding:4px 8px;border-radius:999px;background:#f0f4f7;color:#405a6a;font-size:10px;line-height:1.25}
.atlas .detail-quick-stats b{color:#173e58}
.atlas .detail-tabs{position:sticky;top:0;z-index:4;display:flex;flex-wrap:nowrap;gap:7px;padding:10px 0 11px;background:#fff;border-bottom:1px solid #e1e7ec}
.atlas .detail-tabs button{flex:1 1 0;min-width:0;min-height:40px;padding:8px 9px;border-radius:9px;font-size:12px;font-weight:650;white-space:nowrap}
.atlas .detail-body .kpi{padding:9px;border-radius:10px}
.atlas .detail-body .kpi b{font-size:19px}
.atlas .detail-body .kpi span{font-size:10px;line-height:1.25}
.atlas .section-title{padding-top:17px;border-top:1px solid #e7ebef}
.atlas .candidate-profile{grid-template-columns:minmax(120px,1.05fr) minmax(0,1.8fr) auto;gap:13px;padding:15px 3px}
.atlas .candidate-profile h4{font-size:14px;line-height:1.3}
.atlas .candidate-profile>div>span{font-size:11px;line-height:1.55}
.atlas .candidate-profile dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 12px}
.atlas .candidate-profile dt{font-size:9px;letter-spacing:.02em;text-transform:uppercase}
.atlas .candidate-profile dd{font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.atlas .candidate-history-trigger{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:9px 13px;border:1px solid #17445d;border-radius:10px;background:#173d55;color:#fff;font-size:12px;font-weight:650;box-shadow:0 3px 8px #173d5522;transition:background .15s,transform .15s}
.atlas .candidate-history-trigger:hover{background:#225a78;transform:translateY(-1px)}
.atlas .candidate-history-trigger svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.atlas .precinct-map-card{padding:14px;background:#f7f9fb;border-color:#dbe4eb}
.atlas .precinct-map-controls{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:10px 0}
.atlas .precinct-map-controls label{display:grid;gap:5px;color:#617382;font-size:10px;font-weight:650}
.atlas .precinct-map-controls select{width:100%;min-height:38px;padding:7px 9px;border:1px solid #ced9e0;border-radius:8px;background:white;color:#1d3c51;font:inherit;font-size:11px}
.atlas .precinct-map-toggle{width:100%;min-height:42px;border:0;border-radius:9px;background:#17455f;color:white;font-size:12px;font-weight:650}
.atlas .precinct-map-warning{padding:8px 10px;border-left:3px solid #d79a36;background:#fff8ea;color:#6d5c3d!important;font-size:9px!important}
.atlas .voter-age-note{margin:10px 0;padding:10px 12px;border:1px solid #e0e7ec;border-radius:9px;background:#f8fafb;font-size:11px}
.atlas .voter-age-note p{margin:7px 0 0;color:#647482;line-height:1.55}
.atlas .donut-slice{cursor:help;transition:stroke-width .14s ease,filter .14s ease}
.atlas .donut-chart li{transition:background .14s ease;border-radius:5px;padding:3px 4px}
.atlas .donut-chart li:hover{background:#edf3f6}
@media(hover:hover){.atlas .donut-slice:hover{stroke-width:20;filter:brightness(1.12)}.atlas .donut-chart:has(li[data-slice="0"]:hover) .donut-slice[data-slice="0"],.atlas .donut-chart:has(li[data-slice="1"]:hover) .donut-slice[data-slice="1"],.atlas .donut-chart:has(li[data-slice="2"]:hover) .donut-slice[data-slice="2"],.atlas .donut-chart:has(li[data-slice="3"]:hover) .donut-slice[data-slice="3"],.atlas .donut-chart:has(li[data-slice="4"]:hover) .donut-slice[data-slice="4"]{stroke-width:20;filter:brightness(1.12)}}
.atlas .opacity-control{display:grid;gap:7px;margin-top:14px;color:#314d5f;font-size:12px;font-weight:600}
.atlas .opacity-control output{justify-self:end;margin-top:-24px;color:#6b7e8b;font-size:11px;font-variant-numeric:tabular-nums}
.atlas .opacity-control input{width:100%;accent-color:#b52d43}
.atlas .osm-attribution-note{margin:10px 0 0;color:#71808c;font-size:10px;line-height:1.5}
.atlas .osm-attribution-note a{color:#1b5c7a;text-decoration:underline}
@media(max-width:900px){.atlas .detail-tabs{top:0;overflow-x:auto}.atlas .candidate-profile{grid-template-columns:1fr;gap:9px;padding:14px 2px}.atlas .candidate-profile dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.atlas .candidate-history-trigger{justify-self:stretch}.atlas .detail-quick-stats span{font-size:9px}.atlas .sidebar .panel-section{margin:10px 7px;padding:13px 11px}}
@media(max-width:390px){.atlas .detail-tabs button{font-size:10px;padding-inline:5px}.atlas .precinct-map-controls{grid-template-columns:1fr}.atlas .theme-card{min-height:68px;padding:8px}.atlas .theme-icon{width:32px;height:32px}}

/* Vysvětlující ikona zůstává na mobilu snadno dotyková, ale její kresba je jemná. */
.atlas .kpi-info{border:0;background:transparent;color:#6b7e8b;font-size:12px;font-weight:700;box-shadow:none}
.atlas .kpi-info:hover{background:#eef3f6;color:#173d55}
.atlas .detail-body .kpi{min-height:74px}
@media(max-width:900px){.atlas .kpi-info{border:0;background:transparent;font-size:12px;box-shadow:none}.atlas .detail-body .kpi{min-height:68px;padding:8px}}

@media(max-width:900px){.atlas .map-workspace .maplibregl-ctrl-bottom-right{bottom:126px;right:8px;z-index:7}.atlas .map-workspace .maplibregl-ctrl-attrib{background:#fffF;border-radius:5px;box-shadow:0 1px 5px #132c4030;font-size:9px}}

.atlas .map-popover{z-index:12}
@media(max-width:900px){.atlas .map-workspace .maplibregl-ctrl-bottom-right{top:136px;bottom:auto;right:8px;z-index:7}}

.atlas .map-top{z-index:13}

@media(max-width:370px){.atlas:not(.candidate-app) .app-header .brand>span:last-child{display:none}}

/* Mobil: jedna kompaktní řada akcí, mapa zůstává vidět kolem spodního panelu. */
@media(max-width:900px){
 .atlas .map-top{display:flex;align-items:center;gap:6px;left:8px;right:8px;top:8px}
 .atlas .map-context{flex:1 1 auto;min-width:0;width:auto;max-width:none;margin:0;padding:8px 10px;overflow:hidden}
 .atlas .map-context strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
 .atlas .map-actions{display:flex;flex:0 0 auto;gap:4px;margin:0}
 .atlas .map-action{display:grid;place-items:center;width:40px;min-width:40px;height:40px;min-height:40px;padding:0;border-radius:12px;font-size:20px;line-height:1;white-space:nowrap}
 .atlas .map-action-label{display:none}
 .atlas .map-popover{top:60px;right:8px;max-height:calc(100dvh - 132px)}
 .atlas .detail{top:auto;bottom:74px;left:8px;right:8px;width:auto;height:min(66dvh,calc(100% - 150px));max-height:calc(100dvh - 150px);border-radius:20px;box-shadow:0 12px 36px #10223735}
 .atlas .detail::before{content:"";display:block;width:38px;height:4px;flex:0 0 auto;margin:9px auto 0;border-radius:99px;background:#cbd5dd}
 .atlas .detail-header{padding-top:10px}
 .atlas .mobile-toolbar{left:50%;right:auto;bottom:max(14px,env(safe-area-inset-bottom));width:min(290px,calc(100% - 24px));transform:translateX(-50%);grid-template-columns:1fr 1fr;gap:5px;padding:4px;border:1px solid #ffffff35;border-radius:16px;background:#101b2bf2;box-shadow:0 7px 24px #0d1c2e44}
 .atlas .mobile-toolbar button{min-height:44px;border-radius:12px;font-size:12px;box-shadow:none}
 .atlas .map-workspace:has(.detail:not([hidden])) .map-legend{display:none!important}
}
@media(max-width:390px){
 .atlas .map-context{padding:7px 8px}
 .atlas .map-context strong{font-size:10px}
 .atlas .map-actions{gap:3px}
 .atlas .map-action{width:38px;min-width:38px;height:40px}
 .atlas .mobile-toolbar{width:min(270px,calc(100% - 20px))}
}

/* Pevná hlavička detailu: záložky jsou sourozencem rolovaného obsahu. */
.atlas{--detail-width:400px}
.atlas .detail>.detail-tabs{position:static!important;top:auto!important;z-index:2;flex:0 0 auto;margin:0!important;padding:7px 14px!important;overflow:visible;gap:6px;background:#fff;border-bottom:1px solid #dde5ec;box-shadow:none}
.atlas .detail>.detail-tabs button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:7px!important;border-radius:8px;font-size:10px!important;line-height:1.25;white-space:normal}
.atlas .detail>.detail-tabs svg{width:19px;height:19px;flex:0 0 19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.atlas .detail-header{position:static;padding:13px 14px}
.atlas .detail-body{padding:12px 14px;scrollbar-gutter:stable;overflow-y:auto}
.atlas .detail-body .kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.atlas .candidate-profile{grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:15px 0}
.atlas .candidate-profile>div{grid-column:1;grid-row:1;min-width:0}
.atlas .candidate-profile dl{grid-column:1/-1;grid-row:2;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
.atlas .candidate-history-trigger{grid-column:2;grid-row:1;align-self:center;padding:8px 10px;font-size:11px;min-height:38px}
.atlas .party-composition-switch{display:flex;gap:4px;padding:4px;background:#eef3f7;border:1px solid #dce5ec;border-radius:10px;margin:0 0 12px}
.atlas .party-composition-switch button{flex:1;min-width:0;min-height:40px;padding:6px 4px;border:0;background:transparent;color:#4b6172;font-size:10px;line-height:1.3;border-radius:7px}
.atlas .party-composition-switch button[aria-pressed=true]{background:#18384a;color:#fff;box-shadow:0 2px 6px #18384a20}
/* Souvislá barevná stupnice uvnitř mapy; nulový posun proti jejímu levému okraji. */
.atlas .map-legend{left:12px;right:12px;bottom:12px;width:auto;max-width:none;transform:none;display:block;padding:9px 12px;border-radius:8px;overflow:hidden}
.atlas .map-legend .legend-list{display:flex;gap:0;margin:0;align-items:start;overflow-x:auto;padding:0;scrollbar-width:thin}
.atlas .map-legend .legend-list>div{display:flex;flex-direction:column;align-items:stretch;flex:1 0 70px;gap:5px;margin:0;font-size:9px;text-align:center;white-space:normal;line-height:1.25}
.atlas .map-legend .legend-list i{width:100%;height:8px;min-height:8px;border-radius:0;border:0}
.atlas .map-legend .legend-list>div:first-child i{border-radius:3px 0 0 3px}
.atlas .map-legend .legend-list>div:last-child i{border-radius:0 3px 3px 0}
.atlas .map-legend .legend-note{display:block;max-width:none;width:auto;margin:6px 0 0;font-size:9px;line-height:1.4;white-space:normal;overflow:visible;color:#d5dce5}
@media(min-width:901px){
 .atlas .detail{width:var(--detail-width);right:12px;top:76px;max-height:calc(100% - 88px)}
 .atlas .map-workspace:has(.detail:not([hidden])) .map-legend{right:calc(var(--detail-width) + 24px)}
 .atlas .app-header nav{font-size:13px}
 .atlas .map-status:not(.error){display:none}
}

@media(max-width:900px){
 .atlas #mobile-detail{display:none!important}
 .atlas .map-status:not(.error){display:none}
 .atlas .mobile-toolbar{left:50%;right:auto;bottom:max(10px,env(safe-area-inset-bottom));width:auto;transform:translateX(-50%);grid-template-columns:1fr;padding:3px;border-radius:99px}
 .atlas .mobile-toolbar button{min-height:34px;border-radius:99px;padding:5px 16px;font-size:11px}
 .atlas .map-legend{bottom:59px;left:8px;right:8px;padding:7px 9px}
 .atlas .map-legend .legend-list>div{flex-basis:66px;font-size:9px}
 .atlas .map-legend .legend-note{display:none}
 .atlas .detail>.detail-tabs button{min-height:44px}
 .atlas .candidate-history-trigger{justify-self:end}
 .atlas .app-header nav{min-width:0;overflow-x:auto;scrollbar-width:none;white-space:nowrap;font-size:11px}
}

/* Menší přepínače a ovládání stran přímo u tématu mapy. */
.atlas .party-composition-switch{display:flex;flex-wrap:wrap;gap:4px;padding:0;margin:0 0 8px;background:transparent;border:0;border-radius:0}
.atlas .party-composition-switch button{flex:0 1 auto;min-height:28px;padding:4px 8px;font-size:10px;border:1px solid transparent;background:#f2f5f7;border-radius:5px}
.atlas .party-composition-switch button[aria-pressed=true]{background:#e3edf3;border-color:#b6ccd9;color:#173e58;box-shadow:none}
.atlas .party-search-box{display:grid;gap:7px;padding:10px;background:#f3f6f8;border:1px solid #dce5ec;border-radius:9px}
.atlas .party-search-box input{min-height:40px;font-size:13px}
.atlas .party-search-box .chart-note{margin:0}
.atlas .party-view-switch{display:flex;gap:5px;margin-top:9px}
.atlas .party-view-switch button{flex:1;min-height:36px;padding:6px;font-size:10px;color:#28475b}
.atlas .party-view-switch button[aria-pressed=true]{color:#fff;background:#18384a;border-color:#18384a}
.atlas .detail-candidate-filters{display:grid;gap:9px;padding:11px;background:#f2f6f9;border:1px solid #dae4ec;border-radius:10px;margin-bottom:7px}
.atlas .detail-candidate-filters label{display:grid;gap:5px;font-size:11px;font-weight:600;color:#39576a}
.atlas .detail-candidate-filters input{font-size:14px;min-height:42px}
.atlas .detail-candidate-filters select{font-size:12px;min-height:42px}
.atlas .detail-candidate-filters p{margin:0;font-size:10px}
.atlas .list-age-comparison{padding:10px;border:1px solid #dce5ec;border-radius:9px;background:#f8fafc;margin:12px 0}
.atlas .list-age-comparison>summary{font-weight:650;color:#23485f}
.atlas .age-boxplots{display:grid;gap:12px;margin-top:10px}
.atlas .age-boxplot-row{min-width:0;padding-bottom:10px;border-bottom:1px solid #e1e7ec}
.atlas .age-boxplot-row>b{display:block;font-size:11px;line-height:1.4}
.atlas .age-boxplot-row svg{display:block;width:100%;height:auto;max-height:70px}
.atlas .age-boxplot-row svg text{font-size:8px;fill:#687f8f}
.atlas .age-boxplot-row small{font-size:9px;color:#647c8d}
.atlas .list-age-chart>details{overflow-x:auto}
.atlas .nav-toggle{display:none}
.atlas .map-layout{position:relative}
@media(min-width:901px){.atlas .map-action>span[aria-hidden=true]{display:none}}
@media(max-width:900px){
 .atlas.map-app:not(.candidate-app) .app-header{position:relative;z-index:50;justify-content:space-between;height:64px;padding:0 13px;gap:10px}
 .atlas.map-app:not(.candidate-app) .app-header .brand{font-size:14px}
 .atlas.map-app:not(.candidate-app) .app-header .preview-badge{display:none}
 .atlas .nav-toggle{display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;font-size:24px;background:#192a40;color:#fff;border:1px solid #ffffff30;border-radius:9px}
 .atlas.map-app:not(.candidate-app) .app-header nav{display:none;position:absolute;top:64px;left:8px;right:8px;margin:0;padding:10px;background:#101b2bf7;border:1px solid #ffffff30;border-radius:0 0 12px 12px;box-shadow:0 12px 25px #10223750;overflow:visible;white-space:normal}
 .atlas.map-app:not(.candidate-app) .app-header nav.open{display:flex;flex-direction:column;align-items:stretch;gap:3px}
 .atlas.map-app:not(.candidate-app) .app-header nav a{display:flex;min-height:46px;align-items:center;padding:9px 14px;font-size:15px;border-radius:7px}
 .atlas.map-app:not(.candidate-app) .app-header nav a[aria-current=page]{background:#ffffff0d}
 .atlas .map-legend .legend-list{width:100%;overflow:hidden;gap:0;padding:0;scrollbar-width:none}
 .atlas .map-legend .legend-list>div{flex:1 1 0;min-width:0;flex-basis:0;font-size:8px}
 .atlas .map-legend .legend-list>div span{overflow-wrap:anywhere;white-space:normal;line-height:1.25}
 .atlas .map-legend{overflow:hidden}
 .atlas .detail{inset:0 0 48px;width:100%;height:auto;max-height:none;border-radius:0;z-index:25;border:0}
 .atlas .detail::before{display:none}
 .atlas .detail-header{padding:14px 16px}
 .atlas .detail-body{padding:12px 16px}
 .atlas .map-workspace:has(.detail:not([hidden])) .map-top{visibility:hidden}
 .atlas .sidebar{inset:0 0 48px;width:100%;height:auto;max-height:none;border-radius:0;z-index:40;border:0}
 .atlas:has(.sidebar.open) .map-top{visibility:hidden}
 .atlas .mobile-toolbar{z-index:45;bottom:6px}
 .atlas .party-composition-switch button{min-height:36px;font-size:10px;padding:5px 7px}
 .atlas .party-search-box input,.atlas .detail-candidate-filters input,.atlas .detail-candidate-filters select{font-size:16px}
 .atlas .party-view-switch button{min-height:44px}
}

.atlas .map-workspace:has(.detail:not([hidden])) .map-legend{display:block}
.atlas .map-legend .legend-list>div{flex:1 1 0;min-width:0;flex-basis:0}

/* Aktivní skupina zůstává rozpoznatelná i po návratu na všechny kategorie. */
.atlas .theme-card{position:relative}
.atlas .theme-active-mark{display:none}
.atlas .theme-card-active{border-color:#8eaebe;background:#edf5f9}
.atlas .theme-card-active .theme-active-mark{display:grid;place-items:center;position:absolute;right:5px;top:5px;width:16px;height:16px;border-radius:50%;font-size:10px;font-weight:750;color:#fff;background:#17455f}
.atlas .candidate-action{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.atlas .candidate-action svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
@media(min-width:901px){
 .atlas .map-legend{left:50%;right:auto;bottom:12px;width:520px;max-width:calc(100% - 24px);transform:translateX(-50%)}
 .atlas .map-workspace:has(.detail:not([hidden])) .map-legend{left:calc((100% - var(--detail-width) - 12px)/2);right:auto;max-width:calc(100% - var(--detail-width) - 36px)}
 .atlas .map-legend .legend-note{font-size:9px}
 .atlas .map-action{font-size:12px}
}
@media(max-width:900px){.atlas .candidate-action{display:grid}.atlas .map-context{flex:1 1 auto}.atlas .map-legend .legend-note{display:none}}

/* Kompaktní detail a panely; hlavní ukazatele zůstávají v pevné hlavičce. */
.atlas .detail-quick-stats{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}
.atlas .detail-quick-stats>span{padding:4px 7px;font-size:10px;line-height:1.4;background:#edf3f7;border-radius:20px;white-space:nowrap}
.atlas .share-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.atlas .detail-body .section-title{margin-top:22px;padding:15px 0 9px;border-top:2px solid #dfe8ee}
.atlas .detail-body .section-title:first-child{margin-top:0}
.atlas .detail-body .insight{background:#edf3f8;border-left:3px solid #61859d}
.atlas .map-popover .label-toggle{display:flex;align-items:center;gap:9px;min-height:36px;margin:3px 0;font-size:12px}
.atlas .map-popover .label-toggle input{flex:none;width:17px;height:17px;min-height:0;margin:0;accent-color:#ac2944}
.atlas .map-popover .opacity-control{font-size:11px;margin:8px 0 0}
.atlas .map-popover .opacity-control input{width:100%;min-height:28px;margin:0}
.atlas .map-popover .osm-attribution-note{font-size:9px;line-height:1.4;margin:5px 0 0}
.atlas .city-districts{padding:12px;background:#edf3f8;border:1px solid #d9e5ed;border-radius:10px;margin-bottom:16px}
.atlas .city-districts select{width:100%;margin:8px 0;font-size:13px}
.atlas .city-districts button{min-height:36px;font-size:12px;padding:7px 10px}
/* Kategorie a jednotlivá témata mají hustší, přehledný seznam. */
.atlas .theme-grid{gap:7px}
.atlas .theme-card{grid-template-columns:31px minmax(0,1fr);min-height:57px;padding:8px 9px;border-radius:9px;gap:1px 7px}
.atlas .theme-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#edf3f7;font-size:16px}
.atlas .theme-card b{font-size:12px}
.atlas .theme-card small{font-size:9px}
.atlas #theme-group-title{margin:8px 0;font-size:15px}
.atlas .theme-options{gap:4px}
.atlas .theme-option{position:relative;display:flex;align-items:center;gap:9px;min-height:37px;padding:7px 10px;border-radius:7px;font-size:11px;line-height:1.35}
.atlas .theme-option::before{content:"";flex:none;width:7px;height:7px;border-radius:50%;background:#c6d0d9}
.atlas .theme-option.active{border-color:#d3e3d5;background:#edf7ed;color:#174b34}
.atlas .theme-option.active::before{background:#288052;box-shadow:0 0 0 3px #d6ead9}
.atlas .theme-option.active::after{content:"✓";margin-left:auto;color:#288052;font-size:12px;font-weight:800}
.atlas .theme-back{min-height:36px;padding:7px 10px;font-size:11px;border-radius:7px}
.atlas .brand{gap:0}
.atlas .city-district-back{position:absolute;z-index:8;top:72px;left:18px;min-height:38px;padding:7px 11px;border:1px solid #cbd6e1;border-radius:8px;background:#fff;color:#19354b;box-shadow:0 4px 14px #1022372a;font-size:11px;font-weight:650}
.atlas .city-district-back[hidden]{display:none}
@media(max-width:900px){
 .atlas .map-popover{padding:10px 12px;max-height:calc(100dvh - 140px);overflow-y:auto;border-radius:10px}
 .atlas .map-popover>strong,.atlas .map-popover>label:not(.label-toggle):not(.opacity-control){font-size:12px;margin:0 42px 8px 0}
 .atlas .map-popover .popover-close{position:absolute;right:7px;top:5px;width:36px;min-height:36px;padding:0;font-size:20px}
 .atlas .search-popover>input{height:40px;min-height:40px;padding:7px 10px;font-size:16px}
 .atlas .detail-header{padding:12px 14px}
 .atlas .detail-header h2{font-size:21px;margin:4px 0}
 .atlas .detail-quick-stats{gap:4px;max-width:none}
 .atlas .detail-quick-stats>span{font-size:9px;padding:4px 6px}
 .atlas .detail-header>div:first-child{min-width:0;flex:1}
 .atlas .detail-actions{gap:3px}
 .atlas .detail-actions button{width:36px;min-width:36px;height:36px;min-height:36px}
 .atlas .city-district-back{top:124px;left:10px;min-height:40px}
}

.app-header .brand-mark,.home-header .brand-mark{display:none!important}

/* Stejné filtry a stránkování pro karty i tabulku kandidátů. */
.atlas .detail-candidate-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.atlas .detail-candidate-view{display:flex;gap:3px;padding:3px;border-radius:8px;background:#e6edf2}
.atlas .detail-candidate-view button{min-height:30px;padding:5px 10px;border:0;border-radius:6px;background:transparent;color:#415b6e;font-size:11px}
.atlas .detail-candidate-view button[aria-pressed=true]{background:#193d52;color:#fff;box-shadow:0 1px 4px #193d5220}
.atlas .detail-candidate-table-wrap{overflow-x:auto;max-width:100%;border:1px solid #dbe5ec;border-radius:9px;margin:10px 0;overscroll-behavior-x:contain}
.atlas .detail-candidate-table-wrap:focus-visible{outline:2px solid #246888;outline-offset:2px}
.atlas .detail-candidate-table{border-collapse:separate;border-spacing:0;min-width:790px;width:100%;font-size:11px;line-height:1.45;color:#294759}
.atlas .detail-candidate-table caption{text-align:left;padding:9px 11px;background:#f4f7fa;color:#476073;font-size:10px;font-weight:600}
.atlas .detail-candidate-table th,.atlas .detail-candidate-table td{padding:10px;border-bottom:1px solid #e3ebf0;text-align:left;vertical-align:top}
.atlas .detail-candidate-table thead th{background:#eaf0f5;color:#294759;font-size:10px;font-weight:650}
.atlas .detail-candidate-table tbody th{position:sticky;left:0;z-index:1;background:#fff;min-width:155px;max-width:180px;box-shadow:3px 0 5px #18384a08;font-weight:500}
.atlas .detail-candidate-table tbody th b{display:block;color:#17394e;font-size:12px}
.atlas .detail-candidate-table tbody th small{display:block;margin-top:4px;color:#627989;font-size:10px;font-weight:400}
.atlas .detail-candidate-table tbody tr:hover>th,.atlas .detail-candidate-table tbody tr:hover>td{background:#f3f7fa}
.atlas .detail-candidate-table .candidate-age{white-space:nowrap;font-variant-numeric:tabular-nums}
.atlas .detail-candidate-table .candidate-history-trigger{min-height:32px;padding:5px 8px;font-size:10px}
.atlas .detail-candidate-table .candidate-history-trigger svg{width:14px;height:14px}

/* Letošní registr a historické hlasování mají samostatné pohledy. */
.atlas .detail>.party-period-switch{position:static;flex:0 0 auto;display:flex;gap:4px;padding:6px 14px;margin:0;background:#fff;border:0;border-bottom:1px solid #dce6ed;border-radius:0;box-shadow:none}
.atlas .detail>.party-period-switch[hidden]{display:none}
.atlas .party-period-switch button{flex:1;min-width:0;min-height:37px;padding:7px 9px;font-size:11px;line-height:1.35;border:0;border-radius:6px;background:#eef3f7;color:#446173}
.atlas .party-period-switch button[aria-pressed=true]{background:#193d52;color:#fff;box-shadow:0 1px 5px #193d5225}
.atlas .party-period-panel[hidden]{display:none}
.atlas .party-period-heading{padding:0 0 13px;margin-bottom:14px;border-bottom:1px solid #dce6ed}
.atlas .party-period-heading h3{font-size:15px;color:#193d52;margin:8px 0 4px}
.atlas .party-period-heading p{font-size:11px;line-height:1.5;color:#587182;margin:0}
.atlas .period-badge{display:inline-block;padding:4px 7px;background:#e8f1f6;border-radius:5px;font-size:10px;font-weight:650;color:#24536f}
.atlas .period-badge.results-badge{background:#fbeef1;color:#9e2842}
.atlas .proposing-summary{margin:18px 0 0;padding:12px;background:#f5f8fa;border:1px solid #dce6ed;border-radius:8px;font-size:11px}
.atlas .proposing-summary summary{cursor:pointer;color:#294759;font-weight:600;line-height:1.5}
@media(max-width:900px){
 .atlas .detail-candidate-view button{min-height:38px;padding:7px 12px}
 .atlas .party-period-switch button{min-height:42px;font-size:12px}
 .atlas .detail-candidate-table .candidate-history-trigger{min-height:40px}
}

/* Tabulka kandidátů má vlastní prostor a samostatně rolovaný seznam. */
.atlas #candidate-table-dialog{width:min(1180px,calc(100vw - 40px));max-width:none;max-height:90dvh;height:min(86dvh,900px);overflow:hidden}
.atlas #candidate-table-dialog[open]{display:flex;flex-direction:column}
.atlas #candidate-table-dialog>header{position:static;flex:none;padding:14px 20px;align-items:center;background:#fff;border-bottom:1px solid #dce6ed}
.atlas #candidate-table-dialog header small{display:block;font-size:10px;color:#607a8c;margin-bottom:4px}
.atlas #candidate-table-dialog h2{font-size:20px;line-height:1.3}
.atlas #candidate-table-dialog .close{min-width:42px;min-height:42px;flex:none}
.atlas .candidate-table-body{display:flex;flex:1;min-height:0;overflow:hidden;padding:14px 20px 18px}
.atlas #candidate-table-dialog #candidate-content{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0}
.atlas #candidate-table-dialog .detail-candidate-filters{flex:none;grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin:0 0 12px;padding:10px 12px}
.atlas #candidate-table-dialog .detail-candidate-toolbar{grid-column:1/-1}
.atlas #candidate-table-dialog #candidate-results-detail{display:flex;flex:1;flex-direction:column;min-height:0}
.atlas #candidate-table-dialog .detail-candidate-table-wrap{flex:1;min-height:0;overflow:auto;margin:0}
.atlas #candidate-table-dialog .detail-candidate-table{min-width:790px;font-size:12px}
.atlas #candidate-table-dialog .detail-candidate-table th,.atlas #candidate-table-dialog .detail-candidate-table td{padding:11px 12px}
.atlas #candidate-table-dialog .detail-candidate-table thead th{position:sticky;top:0;z-index:2;font-size:11px;box-shadow:0 1px 0 #cbd9e3}
.atlas #candidate-table-dialog .detail-candidate-table thead th:first-child{left:0;z-index:3}
.atlas #candidate-table-dialog .detail-candidate-table tbody th{min-width:180px;max-width:230px}
.atlas #candidate-table-dialog .candidate-tools{flex:none;margin-top:12px}
@media(max-width:900px){
 .atlas #candidate-table-dialog{width:calc(100vw - 16px);height:94dvh;max-height:94dvh;border-radius:13px}
 .atlas #candidate-table-dialog>header{padding:11px 12px}
 .atlas #candidate-table-dialog h2{font-size:18px}
 .atlas .candidate-table-body{padding:10px 12px 12px}
 .atlas #candidate-table-dialog .detail-candidate-filters{grid-template-columns:1fr;gap:7px;padding:9px}
 .atlas #candidate-table-dialog .detail-candidate-table tbody th{min-width:155px;max-width:180px}
 .atlas #candidate-table-dialog .detail-candidate-table th,.atlas #candidate-table-dialog .detail-candidate-table td{padding:9px}
}

/* Mobilní detail obce zabere celý prostor pod hlavičkou; mapové plovoucí prvky se skryjí. */
@media(max-width:900px){
 .atlas.map-app:not(.candidate-app) .detail{
  position:absolute;inset:0;width:auto;height:auto;max-height:none;margin:0;
  border:0;border-radius:0;box-shadow:none;z-index:42;overflow:hidden
 }
 .atlas.map-app:not(.candidate-app) .detail::before{display:none}
 .atlas.map-app:not(.candidate-app) .map-workspace:has(.detail:not([hidden])) .map-legend,
 .atlas.map-app:not(.candidate-app) .map-workspace:has(.detail:not([hidden])) .mobile-toolbar{display:none!important}
 .atlas.map-app:not(.candidate-app) .map-workspace:has(.detail:not([hidden])) .map-top{visibility:hidden}
}
