/* Research desktop workspace. */
#dataset-bar{position:fixed;top:0;left:0;right:0;height:76px;z-index:900;background:#fff;border-bottom:1px solid #cbd9df;display:flex;align-items:center;justify-content:space-between;padding:10px 20px;gap:20px}#dataset-bar strong,#dataset-scope,#dataset-dates{display:block}#dataset-scope,#dataset-dates{font-size:13px;color:#445f6b}.dataset-actions{display:flex;gap:7px}.dataset-actions button{font-size:12px}#panel,#explore-drawer{top:88px;max-height:calc(100dvh - 110px);height:calc(100dvh - 110px)}#panel{width:300px}#panel header .count-line,#panel #selection-detail,#panel #coverage-line{display:none}#panel h1{font-size:19px}#selection-scope{padding:12px 0;border-block:1px solid #dce5e8;flex:none}#selected-title{font-size:18px}#selected-dates{font-size:12px;margin:5px 0}#selection-scope #filter-summary{max-height:96px;overflow:auto}#controls{padding-top:12px}#panel #map-key{font-size:13px;padding:10px}#panel .category-key-row,#panel #point-legend-help,#panel #map-key small,#panel #category-key>.small{font-size:12px!important;line-height:1.5}#category-key{grid-template-columns:1fr}#panel #more-filters{margin-top:10px}#panel label{font-size:13px}#panel select,#panel input{font-size:13px}#explore-drawer{width:440px;resize:horizontal;min-width:380px;max-width:calc(100vw - 360px);overflow:auto}.drawer-open .map-actions{right:472px;top:160px}.drawer-open .leaflet-top.leaflet-right{right:456px}.leaflet-top{top:88px}.workspace-expanded #explore-drawer{width:calc(100vw - 360px)}.table-scroll{overflow:auto}.table-scroll th,.table-scroll td{padding:8px;border-bottom:1px solid #dae2e5}.table-scroll button{min-width:50px}#workspace-expand{font-size:12px;margin-left:auto;margin-right:8px}#records-table table{font-size:13px}.drawer-nav button{font-size:13px}#presentation{margin-top:16px}.drawer-body{font-size:14px}
#explore-drawer .drawer-nav{grid-template-columns:repeat(4,1fr)}#county-links{display:block;overflow:auto}#county-links table{width:100%;font-size:12px;border-collapse:collapse}#county-links th,#county-links td{padding:7px;border-bottom:1px solid #dae2e5;text-align:left}#county-links td button{margin:3px;white-space:nowrap}#county-links caption{font-size:12px;margin-bottom:10px;text-align:left}.selection-picker{margin-top:8px}.choice-list{max-height:190px;overflow:auto}.choice-list .check{padding:5px 0;margin:0!important}.choice-list input{width:16px;height:16px}.choice-list button{margin:5px 0}.selection-picker summary{font-size:13px}.selection-picker summary span{font-weight:400}.area-actions{display:flex;flex-wrap:wrap;gap:5px}.drawer-open .map-actions{right:calc(var(--workspace-width,440px) + 32px)}#map .leaflet-top{top:88px!important}.drawer-open #map .leaflet-top.leaflet-right{right:calc(var(--workspace-width,440px) + 16px)}#patterns-context,#patterns-filters{display:none}#controls>.filter-grid:empty{display:none}#panel header{min-height:40px}#panel h1{margin:4px 35px 8px 0}#controls>#more-filters{margin-top:0}#more-filters>.date-grid{margin-top:6px}#geography-choices .check{margin-top:5px!important}.mode-switch label{width:33.333%}.mode-switch span{font-size:11px!important}#legend-grid .grid-gradient{height:10px;background:linear-gradient(to right,#7f0000,#d7301f,#fc8d28,#fdbb2d,#ffff66);margin-top:9px}.workspace-expanded .map-actions,.workspace-expanded #map-summary,.workspace-expanded #map .leaflet-control-zoom{display:none}#legend-grid select{font-size:12px}

#records-table{overflow:auto}#records-table table{min-width:850px;width:100%;border-collapse:collapse}#records-table th{position:sticky;top:0;background:#eef4f6;z-index:1}#records-table th button{border:0;background:transparent;font-weight:700;padding:6px;text-align:left;white-space:nowrap}#records-table td{vertical-align:top;padding:10px 8px}#records-table td:first-child{white-space:nowrap}#records-table details{min-width:95px}#records-table details[open]{min-width:210px}.source-fields{display:grid;grid-template-columns:minmax(80px,1fr) 2fr;gap:5px;font-size:12px;max-height:300px;overflow:auto}.source-fields dt{font-weight:700}.source-fields dd{margin:0;overflow-wrap:anywhere}#view-records>.area-actions{margin:10px 0 16px}

#research-timeline{position:fixed;bottom:20px;left:340px;right:20px;background:#fffffff5;border:1px solid #c9d7dd;border-radius:8px;padding:10px 14px;z-index:700;box-shadow:0 2px 10px #0001}.drawer-open #research-timeline{right:calc(var(--workspace-width,440px) + 32px)}.workspace-expanded #research-timeline{display:none}.timeline-heading{display:flex;align-items:center;gap:8px;font-size:13px}.timeline-heading strong{margin-right:auto}.timeline-heading button{font-size:11px;min-height:28px;padding:3px 7px}#timeline-status{font-size:12px;margin:4px 0}#timeline-track{display:flex;height:65px;gap:1px;touch-action:none;user-select:none;border-bottom:1px solid #a6b9c1}#timeline-track button{position:relative;flex:1;min-width:0;padding:0;border:0;border-radius:0;background:transparent;height:100%}#timeline-track i{position:absolute;bottom:0;left:0;right:0;pointer-events:none}.timeline-context{background:#bcc9cf}.timeline-selected{background:#21778a}#timeline-track button.brushed{background:#ffce8580}#timeline-years{display:flex;font-size:11px;margin-top:3px}#timeline-years span{border-left:1px solid #bacbd1;padding-left:3px}.timeline-help{font-size:11px;margin:4px 0 0;color:#425b66}#map-summary{bottom:210px!important}#research-timeline:has(#timeline-content[hidden])~#map-summary{bottom:75px!important}
#view-records .pagination{display:flex;align-items:center;gap:10px;margin:10px 0}#view-records .page-jump{margin:0 0 0 auto;font-size:12px;display:flex;align-items:center;gap:6px}#view-records .page-jump input{width:65px;min-height:30px}#view-records>.filter-grid{margin-top:7px}#view-records #record-search-context{margin:6px 0}#view-records>.area-actions{margin:7px 0}#records-table th button{font-size:12px}#records-table th{padding:8px}#records-table details{border:0;margin:0;padding:0}#month-year-matrix button{min-width:34px;font-size:12px;padding:4px}#month-year-matrix th,#month-year-matrix td{padding:4px}#month-year-matrix th{font-size:12px}

#chart-export{font-size:12px;margin:8px 0 0}#quality-audit table{width:100%;border-collapse:collapse}#quality-audit th,#quality-audit td{text-align:left;padding:7px;border-bottom:1px solid #dce5e8}#quality-audit details{max-height:300px;overflow:auto}#quality-audit .source-digest{overflow-wrap:anywhere;font:12px monospace}#map-methods{margin-top:20px}#overview-summary{font-size:16px;line-height:1.5}

.reported-place-label{color:#000;text-align:center;font:700 12px/22px system-ui;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}.reported-place-label span{background:#fffffff0;border-radius:3px;padding:2px 4px;text-shadow:0 1px white}

#place-concordance form{display:grid;grid-template-columns:1fr 1fr;gap:10px}#place-concordance label:last-of-type{grid-column:1/-1}#place-concordance input{display:block;width:100%;min-height:36px;border:1px solid #bacfd3;padding:8px;border-radius:5px}#place-concordance button{margin-top:6px}#place-concordance #alias-status{grid-column:1/-1}

.area-label-leader{position:absolute;left:50%;width:0;border-left:1px dotted #526771;pointer-events:none}.county-label,.study-label{overflow:visible}

#filters-heading{font-size:16px;margin:0 0 12px;font-weight:700;color:#233e4b}

#timeline-colour-key{display:flex;align-items:center;gap:6px;font-size:11px;margin-top:5px;color:#425b66}#timeline-colour-key i{display:block;width:95px;height:8px;background:linear-gradient(to right,#c7e9b4,#7fcdbb,#41b6c4,#2c7fb8,#253494)}
#selection-scope>.mode-switch{margin:12px 0 8px}#presentation{border-top:1px solid var(--line);padding-top:12px}#theme-toggle{white-space:nowrap}
html[data-theme=dark]{--ink:#e3edf1;--muted:#b6cad3;--line:#405561;--accent:#70bfd2;--soft:#253b47;color:#e3edf1;background:#14232d}
[data-theme=dark] #dataset-bar,[data-theme=dark] #panel,[data-theme=dark] #explore-drawer,[data-theme=dark] #info-dialog,[data-theme=dark] #research-timeline{background:#192d38;color:#e3edf1;border-color:#405561}
[data-theme=dark] button,[data-theme=dark] input,[data-theme=dark] select{background:#253e4c;color:#e3edf1;border-color:#526a78}
[data-theme=dark] button:hover{background:#345665}[data-theme=dark] button:disabled{opacity:.5}
[data-theme=dark] a{color:#8cd5e6}[data-theme=dark] summary,[data-theme=dark] label,[data-theme=dark] #filters-heading,[data-theme=dark] h1,[data-theme=dark] h2,[data-theme=dark] h3,[data-theme=dark] h4{color:#e3edf1}
[data-theme=dark] #dataset-scope,[data-theme=dark] #dataset-dates,[data-theme=dark] .timeline-help,[data-theme=dark] #timeline-colour-key,[data-theme=dark] .small,[data-theme=dark] .muted{color:#b6cad3}
[data-theme=dark] .mode-switch,[data-theme=dark] #panel #map-key,[data-theme=dark] .record-card,[data-theme=dark] .quality-note{background:#223c49;color:#e3edf1;border-color:#405561}
[data-theme=dark] .mode-switch input:checked+span,[data-theme=dark] .drawer-nav button[aria-pressed=true],[data-theme=dark] #pattern-tabs button[aria-pressed=true]{background:#387d90;color:#fff;border-color:#74bdcf}
[data-theme=dark] .mode-switch span{color:#e3edf1}[data-theme=dark] .chip{background:#2e5364;color:#e3edf1;border-color:#658a9c}
[data-theme=dark] #records-table th,[data-theme=dark] .table-scroll th,[data-theme=dark] .time-table th{background:#223c49;color:#e3edf1}[data-theme=dark] td,[data-theme=dark] th,[data-theme=dark] details,[data-theme=dark] .drawer-head,[data-theme=dark] .drawer-nav{border-color:#405561}
[data-theme=dark] .bar-track{background:#304752}[data-theme=dark] .bar-fill{background:#6cb8cd}
[data-theme=dark] #map,[data-theme=dark] .leaflet-container{background:#172833}[data-theme=dark] .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg) brightness(.8) saturate(.6)!important;opacity:1!important}
[data-theme=dark] .leaflet-popup-content-wrapper,[data-theme=dark] .leaflet-popup-tip{background:#192d38;color:#e3edf1}[data-theme=dark] .leaflet-control-attribution{background:#192d38dd;color:#b6cad3}
[data-theme=dark] .leaflet-control-zoom a{background:#253e4c;color:#e3edf1;border-color:#526a78}[data-theme=dark] .area-label-leader{border-color:#afc7d2}
[data-theme=dark] #overview-summary,[data-theme=dark] .overview-summary{color:#e3edf1}[data-theme=dark] #pattern-tabs{background:#192d38;border-color:#405561}[data-theme=dark] .timeline-selected{filter:brightness(1.6) saturate(.85)}

#research-timeline{container-type:inline-size}#timeline-months{display:flex;font-size:10px;color:var(--muted);height:16px;margin-top:2px}#timeline-months span{flex:1;min-width:0;text-align:center;white-space:nowrap}#timeline-months .other-month{color:transparent}#timeline-years{margin-top:1px}.drawer-open #show-statistics{display:none}#show-statistics{white-space:nowrap}@container(min-width:1000px){#timeline-months .other-month{color:var(--muted)}}

#selection-scope>#presentation{margin-top:6px;padding-top:0;border-top:0}#selection-scope>#presentation>label{margin-top:6px}#selection-scope>#presentation #map-key{margin-bottom:8px}
#explore-shortcuts{position:fixed;top:215px;right:16px;z-index:750;display:grid;grid-template-columns:1fr;gap:7px;width:155px;background:transparent}#explore-shortcuts button{background:#fff;border:1px solid #b7cdd3;border-radius:7px;text-decoration:none;font-size:12px;font-weight:650;min-height:40px;box-shadow:0 2px 6px #0001}.drawer-open #explore-shortcuts{display:none}#explore-shortcuts button[hidden]{display:none!important}
#timeline-colour-key i{background:linear-gradient(to right,hsl(270,85%,52%),hsl(240,85%,52%),hsl(180,85%,52%),hsl(120,85%,52%),hsl(60,85%,52%),hsl(0,85%,52%))}
html[data-theme=dark]{--ink:#eee;--muted:#bdbdbd;--line:#444;--accent:#ccc;--soft:#242424;color:#eee;background:#000}
[data-theme=dark] #dataset-bar,[data-theme=dark] #panel,[data-theme=dark] #explore-drawer,[data-theme=dark] #info-dialog,[data-theme=dark] #research-timeline,[data-theme=dark] #pattern-tabs{background:#111;color:#eee;border-color:#444}
[data-theme=dark] button,[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] #explore-shortcuts button{background:#262626;color:#eee;border-color:#555}
[data-theme=dark] button:hover{background:#3a3a3a}
[data-theme=dark] .mode-switch,[data-theme=dark] #panel #map-key,[data-theme=dark] .record-card,[data-theme=dark] .quality-note,[data-theme=dark] #records-table th,[data-theme=dark] .table-scroll th,[data-theme=dark] .time-table th{background:#202020;color:#eee;border-color:#444}
[data-theme=dark] .mode-switch input:checked+span,[data-theme=dark] .drawer-nav button[aria-pressed=true],[data-theme=dark] #pattern-tabs button[aria-pressed=true]{background:#555;color:#fff;border-color:#aaa}
[data-theme=dark] .chip{background:#333;color:#eee;border-color:#777}[data-theme=dark] .bar-track{background:#333}[data-theme=dark] .bar-fill{background:#aaa}
[data-theme=dark] #dataset-scope,[data-theme=dark] #dataset-dates,[data-theme=dark] .timeline-help,[data-theme=dark] #timeline-colour-key,[data-theme=dark] .small,[data-theme=dark] .muted{color:#bdbdbd}[data-theme=dark] a{color:#ddd}
[data-theme=dark] #map,[data-theme=dark] .leaflet-container{background:#000}[data-theme=dark] .leaflet-tile-pane{filter:grayscale(1) invert(1) brightness(.7)!important}[data-theme=dark] .timeline-selected{filter:none}
[data-theme=dark] .leaflet-popup-content-wrapper,[data-theme=dark] .leaflet-popup-tip{background:#171717;color:#eee}[data-theme=dark] .leaflet-control-attribution{background:#111d;color:#ccc}[data-theme=dark] .leaflet-control-zoom a{background:#222;color:#eee;border-color:#555}
[data-theme=dark] #panel #point-legend-help,[data-theme=dark] #panel #boundary-key,[data-theme=dark] #panel #basemap-key,[data-theme=dark] #panel #category-key .small{color:#bdbdbd}[data-theme=dark] .report-cluster{background:#414141;box-shadow:0 0 0 4px #ffffff22}[data-theme=dark] .report-cluster:hover{background:#555}

/* Keep zoom and extent actions in the same Leaflet control stack. */
#map .map-actions{position:relative;inset:auto;float:right;clear:both;margin:10px 10px 0 0;display:block}#map .map-actions button{min-height:36px;white-space:nowrap}.workspace-expanded #map .map-actions{display:none}

#panel.is-collapsed{height:auto!important;max-height:none!important;overflow:hidden;padding-bottom:12px}#panel.is-collapsed header>:not(#title):not(#collapse){display:none!important}#panel.is-collapsed header{min-height:34px}#panel.is-collapsed #title{margin-bottom:0}
#panel #boundary-key{color:#354f59;font-size:12px;text-align:left;line-height:1.5}html[data-theme=dark] #panel #boundary-key{color:#e2e2e2!important}#map-key p:has(.study-swatch){display:flex;align-items:center;gap:8px;font-size:13px;margin:8px 0}#panel #map-key .study-swatch{display:inline-block;flex:none;width:23px;height:17px;border-width:3px;border-style:solid;box-shadow:none;background:transparent}#panel #map-key .study-swatch.east{border-color:#b14a13;background:#b14a1340}#panel #map-key .study-swatch.west{border-color:#7044af;background:#7044af40}html[data-theme=dark] #panel #map-key .study-swatch.east{border-color:#ffad66;background:#ffad6660}html[data-theme=dark] #panel #map-key .study-swatch.west{border-color:#c4a4ff;background:#c4a4ff60}
#county-legend{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.county-legend-swatch{display:inline-block;width:23px;height:16px;border:2px dotted #52656c;background:#b9b2a112}[data-theme=dark] .county-legend-swatch{border-color:#d3d3d3;background:#8a8a8a20}
[data-theme=dark] #boundary-key .boundary-swatch{border-color:#c1c1c1}
#panel #map-key>p:has(.study-swatch){display:flex;align-items:center;gap:9px;font-size:13px!important;line-height:1.5;margin:9px 0}#panel #map-key #boundary-key{font-size:12px!important}#panel #map-key #county-legend{font-size:12px!important}

#cell-summary{border-bottom:1px solid var(--line);padding:0 0 16px;margin-bottom:16px}#cell-summary>p{margin-bottom:8px}.cell-breakdowns{display:grid;grid-template-columns:1fr;gap:14px;margin:14px 0}.workspace-expanded .cell-breakdowns{grid-template-columns:1fr 1fr}.cell-breakdowns h4{margin:0 0 5px}.cell-breakdowns ul{list-style:none;margin:0;padding:0}.cell-breakdowns li{display:flex;justify-content:space-between;gap:12px;padding:4px 0;border-bottom:1px solid var(--line)}

#map-style-toggle{white-space:nowrap}html[data-map-style=dark] .leaflet-tile-pane{filter:grayscale(1) invert(1) brightness(.7)!important;opacity:1!important}html[data-map-style=light] .leaflet-tile-pane{filter:grayscale(1) contrast(1.15)!important;opacity:1!important}html[data-map-style=colour] .leaflet-tile-pane{filter:none!important;opacity:1!important}html[data-map-style=light] #map,html[data-map-style=colour] #map{background:#e6eeeb}html[data-map-style=dark] #map{background:#000}

#dataset-scope{white-space:nowrap}

#info-dialog .dialog-head{align-items:center;padding:18px 24px}#info-dialog .dialog-head h2{margin:0;font-size:22px;line-height:1.3}#info-dialog .dialog-body{padding:20px 24px 28px}#info-dialog table{width:100%;border-collapse:collapse;font-size:13px}#info-dialog th,#info-dialog td{text-align:left;padding:10px 8px;line-height:1.5;border-bottom:1px solid var(--line)}#info-dialog th{font-weight:700}#info-dialog #coverage-content>.lead{margin:0 0 14px}#info-dialog .quality-note{margin:0 0 16px;padding:12px 14px}
html[data-theme=dark] #info-dialog .dialog-head{background:#181818;color:#eee;border-color:#444}html[data-theme=dark] #info-dialog .dialog-head h2{color:#eee}html[data-theme=dark] #info-dialog th{color:#e5e5e5;background:#1d1d1d}html[data-theme=dark] #info-dialog td{color:#ddd}html[data-theme=dark] #info-dialog::backdrop{background:#0009}

[data-theme=dark] #view-records .pagination{background:#111;color:#eee;border-color:#444}[data-theme=dark] #page-info{color:#ddd}

#coverage-content .method-notes{padding-left:20px;font-size:13px;line-height:1.6;margin:8px 0 20px}#coverage-content .method-notes li{margin:6px 0}#coverage-content .source-list{margin-bottom:0}#info-dialog #coverage-content>h3{margin-top:20px}

#reset{background:#faeeee;border:1px solid #d5a6a6;color:#8d3333;border-radius:5px;padding:5px 8px;text-decoration:none;font-size:12px}#reset:hover{background:#f3dddd}html[data-theme=dark] #reset{background:#3a2323;border-color:#805252;color:#f2b3b3}html[data-theme=dark] #reset:hover{background:#4b2929}

#explore-drawer .drawer-nav{grid-template-columns:repeat(3,1fr)}

#dataset-bar>div:first-child>strong{font-size:21px;line-height:1.25;font-weight:750;letter-spacing:-.2px}#dataset-scope{margin-top:3px}

/* Compact chart navigation with one consistent gap between sections. */
#explore-drawer .drawer-body{padding:12px 16px 16px}
#pattern-tabs{margin:0 0 12px;padding:0 0 10px;top:-12px}
#explore-drawer .chart-card{margin-top:0}
#explore-drawer .chart-card>h3:first-child{margin-top:0}

#county-links th{color:var(--ink)}
#county-links .area-filter[aria-pressed=true]{background:#dcefe1;border-color:#519665;color:#165c2c}
html[data-theme=dark] #county-links .area-filter[aria-pressed=true]{background:#22683c;border-color:#7bd399;color:#fff}
#county-links .area-filter[aria-pressed=true]:hover{filter:brightness(1.12)}

/* Boundary visibility belongs beside its legend symbols. */
#map-key .boundary-toggle{display:flex;align-items:center;gap:8px;margin:9px 0;font-size:13px;line-height:1.4}
#map-key .boundary-toggle input{flex:none;width:14px;height:14px;margin:0}
#map-key .boundary-toggle>span{display:flex;align-items:center;gap:8px}
#map-key .boundary-toggle .boundary-swatch{width:23px;height:17px;flex:none;border-color:#52656c!important}
html[data-theme=dark] #map-key .boundary-toggle .boundary-swatch{border-color:#c1c1c1!important}
#panel #map-key #boundary-key{display:block;margin-top:12px;color:var(--muted);font-size:11px!important;font-weight:400}
#map-key .park-controls{margin-top:10px}
#explore-drawer .bar-fill{background:#777}
html[data-theme=dark] #explore-drawer .bar-fill{background:#aaa}

#legend-heat .gradient{background:linear-gradient(to right,#3b78c4 10%,#3298bd 35%,#f4c65d 55%,#ef7b32 75%,#d83b2d 100%)}

/* Phone and compact landscape layouts. Desktop geometry stays unchanged. */
@media(max-width:1100px){
 html,body{width:100%;max-width:100%;overflow:hidden}
 #dataset-bar{height:auto;min-height:100px;display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:10px 12px;padding-top:max(10px,env(safe-area-inset-top));z-index:900}
 #dataset-bar>div:first-child{min-width:0}
 #dataset-bar>div:first-child>strong{font-size:16px;line-height:1.25;letter-spacing:-.15px;overflow-wrap:break-word}
 #dataset-scope{font-size:11px;line-height:1.4;white-space:normal;margin-top:3px}
 .dataset-actions{gap:8px;justify-content:flex-start}
 .dataset-actions button{min-height:44px;padding:7px 14px;font-size:12px;flex:1}
 #panel{inset:calc(var(--header-height,108px) + 8px) 8px calc(68px + env(safe-area-inset-bottom));width:auto;max-width:none;height:auto;max-height:none;padding:12px 14px;overflow:auto;overscroll-behavior:contain;z-index:840;border-radius:12px}
 #panel.is-collapsed{inset:calc(var(--header-height,108px) + 8px) auto auto 8px;width:145px;padding:10px 12px!important;height:auto!important;max-height:none!important}
 #panel.is-collapsed #title{margin:0 46px 0 0;font-size:17px;line-height:44px}
 #panel header{position:sticky;top:-12px;z-index:3;background:inherit;min-height:44px}
 #panel #title{font-size:19px;margin:2px 48px 8px 0;line-height:40px}
 #panel #collapse{right:0;top:0;min-width:44px;min-height:44px;font-size:23px}
 #panel.is-collapsed header{min-height:44px}
 #panel #map-key{position:static!important;inset:auto!important;width:auto!important;max-width:none!important;display:block!important}
 #panel #selected-title{font-size:18px}
 #panel input:not([type=checkbox]):not([type=radio]),#panel select,#explore-drawer input:not([type=checkbox]):not([type=radio]),#explore-drawer select{font-size:16px;min-height:44px;min-width:0;max-width:100%}
 #panel label,#panel summary{font-size:14px}
 #panel details>summary{min-height:44px;display:flex;align-items:center;gap:5px}
 #panel .choice-list .check,#map-key .boundary-toggle,#view-areas .check{min-height:44px;font-size:14px}
 #panel .choice-list input,#panel #map-key .boundary-toggle input,#view-areas .check input{width:20px;height:20px;flex:none}
 #panel .choice-list{max-height:240px}
 #panel .mode-switch span{min-height:44px;display:flex;align-items:center;justify-content:center;font-size:12px!important}
 #reset,.chip{min-height:40px}
 #selection-scope #filter-summary{max-height:130px}
 #explore-shortcuts,.drawer-open #explore-shortcuts{inset:auto 8px max(8px,env(safe-area-inset-bottom));width:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;z-index:950;margin:0;padding:0}
 #explore-shortcuts button{font-size:11px;line-height:1.25;min-width:0;min-height:48px;padding:5px 3px;text-decoration:none;border:1px solid var(--line);background:#fff;font-weight:650}
 #explore-shortcuts button[aria-expanded=true]{box-shadow:inset 0 -3px #888}
 #research-timeline,.drawer-open #research-timeline{left:8px;right:8px;bottom:calc(68px + env(safe-area-inset-bottom));padding:7px 10px;max-width:none}
 .timeline-heading{gap:6px;font-size:12px}
 .timeline-heading button{font-size:11px;min-height:40px;padding:5px 7px}
 #timeline-track{height:60px}
 #timeline-status{font-size:11px;line-height:1.35}
 #timeline-months{font-size:8px}
 #timeline-years{font-size:10px}
 #timeline-colour-key{font-size:10px}
 .filters-open #research-timeline,.drawer-open #research-timeline,.workspace-expanded #research-timeline{display:none}
 .filters-open #map .leaflet-top.leaflet-right{display:none}
 #map .leaflet-top{top:calc(var(--header-height,108px) + 8px)!important}
 #map .leaflet-top.leaflet-right,.drawer-open #map .leaflet-top.leaflet-right{right:0}
 #map .leaflet-control-zoom a{width:40px;height:40px;line-height:40px}
 #map .map-actions button{min-height:44px;font-size:12px}
 #explore-drawer,.workspace-expanded #explore-drawer{inset:calc(var(--header-height,108px) + 8px) 8px calc(68px + env(safe-area-inset-bottom));width:auto;min-width:0;max-width:none;height:auto;max-height:none;resize:none;overflow:hidden;border-radius:12px}
 .drawer-open #panel{display:none}
 #explore-drawer .drawer-head{padding:10px 12px;gap:8px}
 #explore-drawer .drawer-head h2{font-size:18px;line-height:1.3;min-width:0}
 #explore-drawer .icon-button{min-width:44px;min-height:44px;font-size:22px}
 #workspace-expand{display:none}
 #explore-drawer .drawer-nav{padding:0 12px 10px;gap:6px}
 #explore-drawer .drawer-nav button{font-size:13px;min-height:44px;padding:5px}
 #explore-drawer .drawer-body{padding:12px;overscroll-behavior:contain}
 #pattern-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;top:-12px;margin:0 0 12px;padding:0 0 10px}
 #pattern-tabs button{font-size:11px;min-width:0;min-height:40px;padding:5px 3px}
 #explore-drawer .bar-row{min-height:48px;font-size:12px}
 .bar-label{align-items:flex-start}
 .bar-label>span{overflow-wrap:anywhere;text-align:left}
 #view-records .pagination{flex-wrap:wrap;gap:6px;font-size:11px}
 #view-records .pagination button{min-height:44px;padding:6px 9px}
 #view-records .page-jump{margin-left:auto;gap:5px}
 #view-records .page-jump input{width:55px}
 #records-table{max-width:100%;overscroll-behavior-x:contain}
 #records-body .record-card{font-size:14px}
 #records-body .record-card button{min-height:44px}
 #county-links table{table-layout:fixed;width:100%;font-size:12px}
 #county-links th,#county-links td{padding:8px 4px;overflow-wrap:anywhere}
 #county-links th:first-child{width:34%}
 #county-links thead th:nth-child(2),#county-links thead th:nth-child(3){width:18%;font-size:10px}
 #county-links thead th:last-child{width:30%;font-size:10px}
 #county-links td:last-child button{display:block;min-height:44px;width:100%;min-width:0;margin:3px 0;font-size:12px}
 #view-areas #place-tools{display:block!important;max-height:none!important;width:auto}
 #view-areas .check{font-size:14px}
 #info-dialog{width:calc(100vw - 16px);max-width:none;max-height:calc(100dvh - 24px);padding:0}
 #info-dialog .dialog-head{padding:12px 14px;gap:8px}
 #info-dialog .dialog-head h2{font-size:20px}
 #info-dialog .dialog-head button{min-width:44px;min-height:44px}
 #info-dialog .dialog-body{padding:14px}
 #info-dialog .source-list{padding-left:18px;overflow-wrap:anywhere}
 #info-dialog .source-list li{padding:5px 0}
 #model-notice{left:8px;right:8px;bottom:calc(126px + env(safe-area-inset-bottom));max-width:none;font-size:11px}
 .drawer-open #model-notice,.filters-open #model-notice{display:none}
 .leaflet-popup-content-wrapper{max-width:calc(100vw - 32px)}
 .leaflet-popup-content{max-width:calc(100vw - 66px);max-height:40dvh;overflow:auto}
}
@media(max-width:1000px) and (max-height:500px){
 #dataset-bar{min-height:64px;display:flex;gap:12px;padding:8px 12px}
 #dataset-bar>div:first-child{flex:1}
 #dataset-bar>div:first-child>strong{font-size:15px}
 .dataset-actions{flex:none}
 .dataset-actions button{padding:5px 9px;min-height:40px}
 #explore-drawer .drawer-head{padding:6px 12px}
 #explore-drawer .drawer-head h2{font-size:16px}
 #explore-drawer .drawer-nav{padding-bottom:6px}
 #explore-drawer .drawer-nav button{min-height:36px}
 #pattern-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:5px}
 #pattern-tabs button{flex:0 0 auto;min-height:36px;padding:4px 9px}
 #research-timeline{padding:4px 10px}
 .timeline-heading button{min-height:36px}
 #timeline-track{height:45px}
}

@media(max-width:1100px){#info-dialog .dialog-head{position:sticky;top:0;z-index:2;background:inherit}}
@media(max-width:1100px){
 #panel details>summary::before{content:'▸';flex:none}
 #panel details[open]>summary::before{content:'▾'}
 #panel summary::-webkit-details-marker{display:none}
 .leaflet-container a.leaflet-popup-close-button{width:40px;height:40px;line-height:40px;font-size:24px}
 #interaction-matrix,#county-links{overscroll-behavior-x:contain}
}

@media(max-width:1100px){
 .popup-open #map .leaflet-top.leaflet-right,.popup-open #panel.is-collapsed{display:none}
 .leaflet-popup-content{max-height:min(40dvh,max(64px,calc(100dvh - var(--header-height,108px) - 230px)))}
}
@media(max-width:1100px){
 #pattern-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;overscroll-behavior-x:contain;gap:6px}
 #pattern-tabs button{flex:0 0 auto;min-height:44px;padding:6px 11px;font-size:12px}
 button,summary,label,a{-webkit-tap-highlight-color:rgba(128,128,128,.25)}
}
@media(max-width:1000px) and (max-height:500px){
 .drawer-open #dataset-bar,.filters-open #dataset-bar{visibility:hidden}
 #explore-drawer,.workspace-expanded #explore-drawer,#panel:not(.is-collapsed){top:8px}
}
/* v35: evidence and analysis as separate, independently switchable layers */
.layer-switch{margin:12px 0 10px;padding:8px 10px 10px;border:1px solid var(--line);border-radius:8px;background:#edf3f4}
.layer-switch .check{margin-top:4px}
.layer-switch .small{margin:3px 0 0 23px}
.layer-switch #zone-key{margin-left:23px}
.layer-group-title{margin:6px 0 0;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.layer-group-title:not(:first-of-type){margin-top:12px;padding-top:8px;border-top:1px solid var(--line)}
.layer-group-title span{font-weight:500;text-transform:none;letter-spacing:0;color:var(--muted)}
.source-fields dd.empty-value{color:var(--muted);font-style:italic}
.popup-record details{margin-top:4px}
.popup-record summary{cursor:pointer;font-size:11.5px}
.popup-record .source-fields{max-height:none;margin:6px 0 0}
[data-theme=dark] .layer-switch{background:#202020;color:#eee;border-color:#444}
/* v36: climate context (external data) */
.climate-select{display:block;margin-top:6px;font-size:12px}
.climate-select select{display:block;width:100%;margin-top:3px}
.pattern-defs{position:absolute;width:0;height:0;overflow:hidden}
.leaflet-image-layer.climate-image{image-rendering:crisp-edges;image-rendering:pixelated}
#legend-climate{margin:2px 0 10px}
#legend-climate>strong{display:block;font-size:12px;margin-bottom:2px}
#legend-climate .small{margin:2px 0}
#legend-climate button{min-height:30px;padding:3px 8px;margin-top:4px}
#climate-section #legend-climate{margin:10px 0 0;padding:10px 0 2px;border-top:1px solid var(--line)}
#climate-section #legend-climate>strong{margin-bottom:6px;line-height:1.4}
#climate-section .climate-key-row{min-height:18px}
.climate-key-row{display:flex;align-items:center;gap:7px;margin:3px 0;font-size:11.5px}
.climate-key-row i{width:16px;height:11px;border-radius:2px;flex:none;box-shadow:inset 0 0 0 1px #0000001f}
.dry-swatch,.climate-cell.dry i,#timeline-climate span.dry{background:repeating-linear-gradient(45deg,#898781 0 1.5px,transparent 1.5px 5px)}
#timeline-climate{display:flex;gap:1px;height:9px;margin-top:3px}
#timeline-climate span{flex:1;min-width:0;background:#00000010}
#timeline-climate-label{font-size:11px;margin:4px 0 0;color:#425b66}
.climate-controls{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:flex-end;margin-bottom:4px}
.climate-controls label{font-size:12px}
#climate-window{border:0;padding:0;margin:0;display:flex;gap:4px 12px;flex-wrap:wrap}
#climate-window legend{font-size:12px;padding:0;margin-bottom:2px}
#climate-window .check{margin-top:0}
.climate-chart{display:grid;grid-template-columns:46px minmax(0,1fr);column-gap:6px;--climate-bar:#2d6879}
.climate-row-title{font-size:11px;color:#3c626e;margin:10px 0 3px}
.climate-scale{display:flex;flex-direction:column;justify-content:space-between;font-size:10px;color:#526c75;text-align:right;font-variant-numeric:tabular-nums;line-height:1}
.climate-cols{display:flex;gap:2px;height:84px}
.climate-reports{border-bottom:1px solid #a6b9c1}
.climate-col{flex:1;min-width:0;min-height:0;padding:0;border:0;border-radius:0;background:transparent;display:flex;align-items:flex-end;justify-content:center;cursor:pointer}
.climate-col i{display:block;width:100%;max-width:24px;background:var(--climate-bar);border-radius:4px 4px 0 0}
.climate-col:hover i,.climate-col:focus-visible i{filter:brightness(1.2)}
.climate-col[aria-pressed=true] i{background:#c5743d}
.climate-anomaly{position:relative}
.climate-anomaly::before{content:'';position:absolute;left:0;right:0;top:50%;border-top:1px solid #a6b9c1}
.climate-cell{flex:1;min-width:0;position:relative}
.climate-cell i{position:absolute;left:0;right:0;margin:0 auto;max-width:24px}
.climate-cell i.up{bottom:50%;border-radius:4px 4px 0 0}
.climate-cell i.down{top:50%;border-radius:0 0 4px 4px}
.climate-cell.dry i{top:calc(50% - 4px);height:8px}
.climate-chart .time-labels{min-width:0}
.climate-methods p{font-size:12px;margin:5px 0}
[data-theme=dark] .climate-chart{--climate-bar:#74bdcf}
[data-theme=dark] .climate-row-title,[data-theme=dark] .climate-scale,[data-theme=dark] #timeline-climate-label{color:#b6cad3}
[data-theme=dark] #timeline-climate span{background:#ffffff14}
[data-theme=dark] .climate-key-row i{box-shadow:inset 0 0 0 1px #ffffff26}
/* v36: visible "Map layers" heading inside the layer box */
.layer-switch>legend{float:left;width:100%;padding:0;margin:0 0 2px;font-size:13px;font-weight:700}
.layer-switch>legend+*{clear:both}

/* v38: layer controls use the same disclosure rows as the filters. */
#map-layers-section .layer-switch{margin:6px 0 10px;padding:0;border:0;background:transparent}
#climate-section .small{margin-top:6px}
.control-selection,.control-source{font-weight:400;color:var(--muted)}
.control-source{font-size:.85em}

/* v40: task-focused controls and a map legend above the scale. */
#panel #presentation{margin:0;padding:0}
#presentation>label{display:block;margin:8px 0}
#map-layers-section .park-controls{margin:6px 0}
#map-layers-section .boundary-toggle{display:flex;align-items:center;gap:7px;margin:7px 0}
#floating-legend{position:fixed;left:16px;bottom:40px;width:300px;max-width:calc(100vw - 32px);z-index:810;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:8px 12px;box-shadow:0 2px 10px #0002}
#floating-legend>summary{font-weight:650;font-size:13px;cursor:pointer;min-height:28px;line-height:28px}
#floating-legend #map-key{position:static!important;inset:auto!important;display:block!important;width:auto;max-width:none;max-height:min(25dvh,220px);overflow:auto;overscroll-behavior:contain;border:0;border-radius:0;box-shadow:none;background:transparent;color:inherit;margin:4px 0 0;padding:0 4px 0 0;font-size:12px}
#floating-legend #category-key{display:grid;grid-template-columns:1fr;gap:3px}
#floating-legend #map-key .small,#floating-legend #map-key small{font-size:11px;color:var(--muted)}
#floating-legend #boundary-key{font-size:11px;color:var(--muted)}
#reference-key p{display:flex;align-items:center;gap:8px;font-size:12px;margin:6px 0}
#reference-key p[hidden]{display:none}
#reference-key .study-swatch{width:18px;height:12px;box-shadow:none}
#reference-key .boundary-swatch{width:18px;height:12px;flex:none;border-color:var(--muted)}
[data-theme=dark] #floating-legend{background:#181818;color:#eee;border-color:#444}
[data-theme=dark] #reference-key .study-swatch.east{border-color:#ffad66}
[data-theme=dark] #reference-key .study-swatch.west{border-color:#c4a4ff}
.workspace-expanded #floating-legend{display:none}
@media(min-width:1101px){
 #panel{height:auto;max-height:calc(100dvh - 152px - var(--legend-height,230px))}
 #panel.is-collapsed{max-height:calc(100dvh - 110px)}
}
@media(max-width:1100px){
 #floating-legend{left:8px;bottom:calc(76px + env(safe-area-inset-bottom) + var(--timeline-height,56px));width:230px;max-width:calc(100vw - 16px);padding:6px 10px}
 #floating-legend>summary{min-height:44px;line-height:44px;font-size:14px}
 #floating-legend #map-key{max-height:25dvh}
 .filters-open #floating-legend,.drawer-open #floating-legend{display:none}
 #presentation select{min-height:44px}
}
/* v41: viewer-oriented hierarchy and compact keys. */
.control-group-heading{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin:10px 0 3px}
#selection-scope{padding:8px 0;border-bottom:0}
#cluster-help{font-size:11px;line-height:1.4;margin:5px 0 0;color:var(--muted)}
#controls{padding-top:0}
#panel .control-group>details{margin:0;padding:0;border-top:0;border-bottom:1px solid var(--line)}
#panel .control-group>details>summary{min-height:32px;padding:6px 0;font-size:13px;line-height:1.4}
#mobile-selection{display:none}
#legend-active{font-weight:400;color:var(--muted);font-size:11px}
#floating-legend>summary{line-height:1.4}
#floating-legend #map-key{max-height:min(25dvh,200px)}
#floating-legend .category-key-row{font-size:11px;line-height:1.4}
#floating-legend #reference-key{display:grid;grid-template-columns:1fr 1fr;gap:2px 8px}
#floating-legend #reference-key p{font-size:11px;margin:3px 0}
#legend-details{font-size:11px;margin-top:8px}
#legend-details summary{cursor:pointer}
#timeline-coverage{font-size:10px;line-height:1.4;margin:4px 0 0}
#clear-dates{font-size:11px;min-height:28px;padding:2px 6px}
#timeline-track .timeline-context{background:#a9b9c2}
[data-theme=dark] #timeline-track .timeline-context{background:#555}
#county-links{max-width:100%;overflow:auto}
#county-links th[colspan]{background:var(--soft);font-size:12px}
[data-theme=dark] #county-links th[colspan]{background:#292929}
@media(min-width:1101px) and (max-height:850px){#floating-legend #map-key{max-height:96px}}
@media(max-width:1100px){
 #panel:not(.is-collapsed){bottom:auto;height:auto;max-height:calc(100dvh - var(--header-height,108px) - 84px)}
 #panel:not(.is-collapsed) #controls{overflow:auto;min-height:0}
 #panel .control-group>details>summary{min-height:44px;font-size:14px}
 #panel.is-collapsed{width:210px!important}
 #panel.is-collapsed #mobile-selection{display:block;font-size:11px;margin:4px 0 0;color:var(--muted)}
 #panel:not(.is-collapsed) header{position:static;flex:none}
 #clear-dates{min-height:44px}
 .timeline-heading{flex-wrap:wrap}
 #timeline-details{max-width:140px}
}
@media(min-width:1101px) and (max-height:850px){
 #panel .control-group>details>summary{min-height:28px;padding:4px 0}
 .control-group-heading{margin:6px 0 2px}
 #cluster-help{font-size:10px;margin:3px 0 0}
}
/* The zone caveat now accompanies its key; avoid a duplicate floating badge. */
#model-notice{display:none}

@media(max-width:1100px){#panel.is-collapsed header>#mobile-selection{display:block!important}}
@media(max-width:1100px){
 #floating-legend:not([open]){left:auto;right:8px;width:150px;bottom:min(calc(76px + env(safe-area-inset-bottom) + var(--timeline-height,56px)),calc(100dvh - var(--header-height,108px) - 120px))}
 #floating-legend:not([open])>summary{line-height:1.4;min-height:44px}
}
@media(max-width:1100px){#panel.is-collapsed header>#mobile-selection:not(#title):not(#collapse){display:block!important}}
@media(max-width:1100px) and (max-height:500px){
 #floating-legend[open]{left:240px;width:230px;max-width:calc(100vw - 320px)}
 #floating-legend[open] #map-key{max-height:20dvh}
}

@media(max-width:1100px) and (min-height:501px){#floating-legend[open]{max-height:max(80px,calc(100dvh - var(--header-height,108px) - 232px));overflow:auto}}

/* A single sidebar, ordered by the viewer's task. */
#panel{height:auto;max-height:calc(100dvh - 110px);padding:12px 14px;width:300px}
#panel header{min-height:32px}#panel #title{font-size:18px;margin:2px 40px 7px 0}
#panel #collapse{width:30px;min-width:30px;min-height:30px;height:30px;padding:2px}
#panel #selection-scope{padding:4px 0 9px;border:0}
#panel #selected-title{font-size:14px;font-weight:600;line-height:1.4}
#panel #filter-summary:empty{display:none}#panel #filter-summary{margin:5px 0 0}
#panel .control-group-heading{font-size:10px;letter-spacing:.08em;margin:10px 0 4px;padding-top:8px;border-top:1px solid var(--line)}
#panel .control-group-heading:first-child{margin-top:0;padding-top:0;border:0}
#panel .control-group{margin:0 0 10px;padding:9px 10px 3px;border:1px solid #9aafb7;border-radius:8px;background:#f5f8f9}
[data-theme=dark] #panel .control-group{border-color:#65757b;background:#1b2022}
#panel .control-group:last-of-type{margin-bottom:0}
#panel .control-group>details:last-child,#panel .control-group>.climate-heading-row:last-child{border-bottom:0}
#panel .control-group>details,#panel .climate-heading-row{margin:0;padding:0;border:0;border-bottom:1px solid var(--line)}
#panel .control-group>details>summary,#panel #climate-section>summary{display:list-item;min-height:34px;line-height:1.5;padding:7px 0;font-size:12px;font-weight:600}
#panel #climate-section{margin:0;padding:0;border:0}#panel #climate-section>summary{padding-right:30px}
#panel .climate-heading-row>button.source-info{top:6px;right:1px;width:20px;height:20px;min-height:20px;min-width:20px}
#panel .control-selection,#panel #species-picked,#panel #conflict-picked{font-size:11px;font-weight:400;color:var(--muted)}
#panel .layer-group-title{font-size:10px;letter-spacing:.04em;margin:8px 0 3px}
#panel .layer-switch{padding:0 0 7px;margin:0;border:0}
#panel label.check{font-size:12px;min-height:28px;margin:0;gap:7px;align-items:center}
#panel label.check input{width:16px;height:16px;flex:none;margin:0}
#panel .park-controls{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:6px 0}
#panel .layer-option{display:flex;align-items:center;gap:8px;margin:2px 0 8px 23px;font-size:11px;font-weight:400}
#panel .layer-option[hidden]{display:none}#panel .layer-option select{flex:1;width:auto;min-height:30px;margin:0;font-size:11px;padding:3px 6px}
#panel .proposed-zone-control{padding-top:8px;margin-top:6px}
#panel #reference-layers{padding-bottom:4px}
#panel #floating-legend{position:static!important;inset:auto!important;display:block!important;width:auto!important;max-width:none!important;max-height:none!important;overflow:visible!important;margin:12px 0 0;padding:8px 10px;border:1px solid var(--line);border-radius:7px;box-shadow:none;background:var(--soft);color:var(--ink)}
#panel #floating-legend>summary{font-size:12px;min-height:24px;line-height:1.5;padding:0}
#panel #floating-legend #map-key{max-height:none;overflow:visible;padding:0;margin:8px 0 0;font-size:11px}
#panel #floating-legend #map-key>div:not([hidden]){margin-bottom:10px}
#panel #floating-legend #map-key strong{font-size:11px;line-height:1.4}
#panel #floating-legend #category-key{gap:4px;grid-template-columns:1fr}
#panel #floating-legend #reference-key{display:flex;flex-wrap:wrap;gap:5px 12px;margin:5px 0}
#panel #floating-legend #reference-key p{font-size:10px;margin:0;display:flex;align-items:center;gap:5px}
#panel #floating-legend #reference-key p[hidden]{display:none}
#panel .legend-section-title{display:block;padding-top:8px;margin-top:8px;border-top:1px solid var(--line)}
#panel .legend-section-title[hidden]{display:none}
#panel .legend-scale-labels{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-top:3px}
#panel #legend-details{margin-top:8px;padding-top:6px;border-top:1px solid var(--line);font-size:10px}
#panel #legend-details summary{font-size:10px;min-height:24px}
[data-theme=dark] #panel #floating-legend{background:#1b1b1b;color:#e4ebed}
.timeline-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:5px 0}
#timeline-status{margin:0;font-size:11px}
.timeline-count-key{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted)}
.timeline-count-key i{display:block;width:92px;height:7px;border-radius:3px;background:linear-gradient(to right,#ffffb2,#fecc5c,#fd8d3c,#f03b20,#bd0026)}
#timeline-track .timeline-selected{border-radius:2px 2px 0 0}
#timeline-track button.brushed{background:#ffffff25;outline:2px solid var(--accent);outline-offset:-2px}
#timeline-content .timeline-help:has(#clear-dates[hidden]){display:none}
#timeline-coverage{max-width:100%;font-size:10px;line-height:1.4}
@media(max-width:1100px){
 #panel:not(.is-collapsed){width:auto;max-height:calc(100dvh - var(--header-height,108px) - 84px);padding:10px 12px}
 #panel .control-group>details>summary,#panel #climate-section>summary{min-height:40px;padding:9px 0;font-size:13px}
 #panel .climate-heading-row>button.source-info{top:9px}
 #panel label.check{min-height:36px;font-size:13px}
 #panel .layer-option select{min-height:36px;font-size:12px}
 #panel #floating-legend>summary{min-height:30px}
}

#panel #floating-legend #reference-key{display:grid;grid-template-columns:1fr;gap:0}
#panel #floating-legend #reference-key label.check{font-size:11px;min-height:30px;gap:7px}
#panel #floating-legend #reference-key .source-info{display:none}
@media(max-width:1100px){#panel #floating-legend #reference-key label.check{min-height:36px;font-size:12px}}

#panel details>summary::before{content:none!important}
#panel .control-group>details>summary,#panel #climate-section>summary{list-style:disclosure-closed inside}
#panel .control-group>details[open]>summary,#panel #climate-section[open]>summary{list-style-type:disclosure-open}
#panel #floating-legend>summary{display:list-item;list-style:disclosure-closed inside}
#panel #floating-legend[open]>summary{list-style-type:disclosure-open}
#panel #floating-legend .county-legend-swatch{display:inline-block;width:18px;height:12px;flex:none;border:2px dotted var(--muted)}
@media(max-width:1100px){#panel:not(.is-collapsed)>header{position:relative;min-height:32px}#panel #collapse{top:0;right:0}}

#panel .report-heading-row{position:relative;border-bottom:1px solid var(--line)}
#panel #map-layers-section{margin:0;padding:0;border:0}
#panel #map-layers-section>summary{display:list-item;list-style:disclosure-closed inside;min-height:34px;line-height:1.5;padding:7px 0;font-size:12px;font-weight:600}
#panel #map-layers-section[open]>summary{list-style-type:disclosure-open}
#panel .climate-select{font-size:11px;font-weight:400;margin:2px 0 9px}
#panel .climate-select select{min-height:32px;margin-top:3px;padding:4px 7px;font-size:12px}
#panel .layer-switch{padding-bottom:7px}
@media(max-width:1100px){
 #panel #map-layers-section>summary{min-height:40px;padding:9px 0;font-size:13px}
 #panel .climate-select select{min-height:36px}
}

#panel #floating-legend #category-key{grid-template-columns:1fr 1fr;gap:5px 8px}
#panel #floating-legend #category-key .category-key-row:has(.mixed-swatch){grid-column:1/-1}
#panel #floating-legend #category-key .category-key-row{font-size:10px;align-items:flex-start}
#panel #floating-legend #category-key .category-key-row i{margin-top:2px}

#panel #climate-section[open]>summary .control-selection,#panel #map-layers-section[open] #map-layers-picked{display:none}
#panel .climate-select{margin-top:0}
@media(min-width:1101px){#timeline-track{height:50px}.timeline-meta{margin:3px 0}#research-timeline{padding-top:8px;padding-bottom:8px}}

/* Climate audit: honest axes and readable exploration controls. */
.climate-anomaly::before{top:auto;bottom:var(--baseline,50%)}
.climate-cell i.up{bottom:var(--baseline,50%)}
.climate-cell i.down{top:calc(100% - var(--baseline,50%))}
.climate-cell.dry i{top:calc(100% - var(--baseline,50%) - 4px)}
.climate-value-scale{position:relative;display:block}
.climate-value-scale span{position:absolute;right:0;transform:translateY(50%);white-space:nowrap}
.climate-value-scale span:first-child{transform:translateY(100%)}
.climate-value-scale span:last-child{transform:none}
#panel .control-group-heading{color:#1b6874;font-weight:800;letter-spacing:.07em}
[data-theme=dark] #panel .control-group-heading{color:#89d7dc}
.time-readout{color:#235b69}
[data-theme=dark] .time-readout{color:#a5dce7}
#panel .control-selection,#panel #species-picked,#panel #conflict-picked{color:#4a5960}
[data-theme=dark] #panel .control-selection,[data-theme=dark] #panel #species-picked,[data-theme=dark] #panel #conflict-picked{color:#d0d8dc}
.chart-choice{display:flex;align-items:center;gap:12px;font-size:12px;margin:0 0 14px}
.chart-choice select{flex:1;min-width:0;max-width:100%;margin:0}
.climate-current{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:12px;max-width:100%}
.climate-current button{min-height:30px;padding:4px 8px;font-size:11px}
.report-provenance p{margin:5px 0 10px}

.report-view-choice{font-size:11px}
#panel #report-view{font-size:12px;min-height:34px}
#research-timeline .timeline-series{display:grid;grid-template-columns:70px minmax(0,1fr);align-items:center;gap:6px}
#research-timeline .timeline-row-label{font-size:10px;color:var(--ink);font-weight:650;overflow-wrap:anywhere}
#research-timeline #timeline-climate-row{border-top:1px solid var(--line);padding-top:6px;margin-top:5px}
#research-timeline #timeline-climate{height:12px;margin:0;cursor:help;outline-offset:3px}
#research-timeline #timeline-climate:focus-visible{outline:2px solid var(--accent)}
#research-timeline #timeline-climate-tooltip{position:fixed;z-index:2000}
#research-timeline #timeline-months,#research-timeline #timeline-years{margin-left:76px}
@media(max-width:600px){#research-timeline .timeline-series{grid-template-columns:58px minmax(0,1fr);gap:5px}#research-timeline #timeline-months,#research-timeline #timeline-years{margin-left:63px}}

/* Map actions at top right, with the three boundary switches directly below. */
#dataset-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;height:auto;min-height:88px;gap:20px;align-items:start;padding-top:8px;padding-bottom:8px}
#dataset-bar>div:first-child{min-width:0;padding-top:4px}
#dataset-bar .dataset-actions{display:grid;grid-template-columns:repeat(4,max-content);align-items:center;gap:6px 7px;min-width:0;max-width:100%;justify-self:end;align-self:start}
#dataset-bar .header-zoom{float:none;margin:0;box-shadow:none;display:flex;border:1px solid var(--line);border-radius:7px;overflow:hidden;flex:none}
#dataset-bar .header-zoom a{width:32px;height:36px;line-height:36px;background:var(--soft);color:var(--ink);border:0;box-shadow:none;font-size:21px;border-radius:0}
#dataset-bar .header-zoom a+a{border-left:1px solid var(--line)}
#dataset-bar .header-map-actions{position:static;display:block;inset:auto;margin:0;box-shadow:none;flex:none}
#dataset-bar .header-map-actions button{background:var(--soft);color:var(--ink);border:1px solid var(--line);box-shadow:none;white-space:nowrap;min-height:38px}
#boundary-controls{grid-column:1/-1;border:0;margin:0;padding:0;justify-self:stretch}
#boundary-controls #reference-key{display:flex;align-items:center;justify-content:space-between;gap:6px;background:transparent;color:var(--ink)}
#boundary-controls label.check{display:flex;align-items:center;gap:6px;margin:0;min-height:24px;font-size:12px;white-space:nowrap}
#boundary-controls input{width:15px;height:15px;min-height:0;margin:0;flex:none}
#boundary-controls .study-swatch,#boundary-controls .county-legend-swatch{display:inline-block;width:18px;height:12px;flex:none}
#boundary-controls .county-legend-swatch{border:2px dotted var(--muted)}
@media(min-width:1101px){
 #panel,#explore-drawer{top:calc(var(--header-height,88px) + 12px);max-height:calc(100dvh - var(--header-height,88px) - 34px)}
 #explore-drawer{height:calc(100dvh - var(--header-height,88px) - 34px)}
}
@media(max-width:1100px){
 #dataset-bar{gap:12px}
 #dataset-bar .dataset-actions{gap:6px}
 #dataset-bar .dataset-actions>button{min-height:36px;padding:6px 8px;font-size:11px}
 #dataset-bar .header-map-actions button{min-height:36px;padding:6px 8px;font-size:11px}
 #dataset-bar .header-zoom a{width:28px;height:34px;line-height:34px}
 #boundary-controls label.check{min-height:26px;font-size:11px;gap:5px}
}
@media(max-width:600px){
 #dataset-bar{grid-template-columns:minmax(0,1fr);gap:8px}
 #dataset-bar>div:first-child{padding-top:0}
 #dataset-bar .dataset-actions{width:100%;max-width:none;justify-content:space-between}
 #dataset-bar .dataset-actions>button,#dataset-bar .header-map-actions button{padding:6px 5px;min-width:0;width:100%;font-size:11px;white-space:nowrap}
 #dataset-bar .header-zoom a{width:26px}
 #boundary-controls label.check{min-height:28px;gap:4px}
}

/* One compact Results panel, aligned with Filters. */
#explore-shortcuts{top:calc(var(--header-height,76px) + 12px);width:220px;right:16px;display:block;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 5px 18px #0002}
#explore-shortcuts #explore-toggle{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;min-height:55px;padding:11px 14px;border:0;border-radius:12px;box-shadow:none;background:transparent;color:var(--ink);font-size:18px;font-weight:650;text-align:left}
#explore-shortcuts .explore-plus{display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:7px;width:30px;height:30px;font-size:18px;font-weight:400;background:var(--soft)}
[data-theme=dark] #explore-shortcuts{background:#111}
.drawer-open #explore-shortcuts{display:none!important}
#explore-drawer .drawer-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.9fr);gap:6px;padding-bottom:12px}
#explore-drawer .drawer-nav [role=tab]{min-width:0;min-height:36px;padding:6px 5px;font-size:12px;line-height:1.25;border:1px solid var(--line);border-radius:6px;white-space:normal}
#explore-drawer .drawer-nav [role=tab][aria-selected=true]{background:#dcecef;color:#123e49;border-color:#467a86;box-shadow:inset 0 -2px #467a86;font-weight:700}
[data-theme=dark] #explore-drawer .drawer-nav [role=tab][aria-selected=true]{background:#375259;color:#fff;border-color:#87cbd6;box-shadow:inset 0 -2px #87cbd6}
#explore-drawer .drawer-nav [role=tab]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:1100px){#explore-drawer .drawer-nav [role=tab]{min-height:44px;font-size:11px;padding:6px 3px}}
#overview-years{margin-bottom:22px}
#overview-years h3{margin-top:0}
.yearly-reports{width:100%;border-collapse:collapse;font-size:12px;font-variant-numeric:tabular-nums}
.yearly-reports th,.yearly-reports td{padding:7px 9px;border-bottom:1px solid var(--line);line-height:1.4;color:var(--ink);text-align:left}
.yearly-reports thead th{background:var(--soft);font-weight:700}
.yearly-reports tbody th{font-weight:600}
.yearly-reports th:last-child,.yearly-reports td:last-child{text-align:right}
#view-coverage .lead{font-size:14px;line-height:1.5;margin:0 0 14px}
#view-coverage .report-provenance p{line-height:1.5}
#view-coverage .source-list{padding-left:18px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
#view-coverage .source-list li{margin:8px 0}
#view-coverage .source-description{display:block;margin-bottom:2px;line-height:1.4;font-weight:700}
#view-coverage>table{width:100%}
@media(max-width:1100px){
 #explore-shortcuts{inset:auto 8px max(8px,env(safe-area-inset-bottom));width:auto;display:block;z-index:950}
 #explore-shortcuts #explore-toggle{min-height:48px;font-size:16px;padding:7px 12px}
 #explore-drawer{bottom:8px;max-height:calc(100dvh - var(--header-height,108px) - 24px)}
}

/* The location key stays visible while the representation is Locations. */
#location-key{margin:1px 0 7px;padding:8px 9px;border:1px solid var(--line);border-radius:7px;background:var(--soft);font-size:10px}
#location-key[hidden]{display:none}
#location-key-title{display:block;font-size:11px;margin-bottom:7px}
#location-key #category-key{display:grid;grid-template-columns:1fr 1fr;gap:6px 8px}
#location-key .category-key-row{display:flex;align-items:center;gap:6px;font-size:10px;line-height:1.35}
#location-key .category-key-row i{width:10px;height:10px;border-radius:50%;flex:none;border:1px solid #fff}
#location-key .category-key-row:has(.mixed-swatch){grid-column:1/-1}
#location-key .location-cluster-key{display:flex;align-items:center;gap:7px;margin-top:7px}
#location-key .location-cluster-key i{display:flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;border:1px solid #fff;background:#444;color:#fff;font:600 9px system-ui}
#panel #floating-legend[hidden]{display:none!important}
#panel #map-layers-section #map-key{position:static!important;inset:auto!important;width:auto!important;max-width:none!important;max-height:none;overflow:visible;margin:7px 0;padding:8px 9px;border:1px solid var(--line);border-radius:7px;background:var(--soft);color:var(--ink);box-shadow:none;font-size:11px}
#panel #map-layers-section #map-key[hidden]{display:none!important}
#panel #map-layers-section #map-key strong{font-size:11px;line-height:1.4}
#panel #map-layers-section #map-key>div:not([hidden])+div:not([hidden]){margin-top:10px}
body:not(.leaflet-dragging) #map.climate-cell-hover{cursor:pointer}
.climate-cell-popup{font-size:12px;line-height:1.45}
.climate-cell-heading{display:flex;align-items:flex-start;gap:8px;margin:0 0 8px;padding-right:14px}
.climate-cell-heading h3{flex:1;margin:0;font-size:15px;line-height:1.35}
.climate-cell-heading .source-info{flex:none;width:24px;height:24px;min-width:24px;min-height:24px;padding:0;border-radius:50%;font:600 15px Georgia,serif;line-height:22px}
.climate-cell-popup .climate-cell-value{font-size:22px;font-weight:700;line-height:1.25;margin:5px 0}
.climate-cell-popup .climate-cell-context,.climate-cell-popup .small{margin:3px 0;font-size:11px}
.climate-cell-popup .climate-cell-period{margin:0;font-size:11px;font-weight:400;line-height:1.45}
.climate-cell-popup .climate-cell-coordinate,.climate-cell-popup .climate-cell-source{margin:3px 0;color:var(--muted);font-size:10px}
.climate-cell-help{position:fixed;z-index:2000;max-width:min(290px,calc(100vw - 16px));padding:10px 12px;background:var(--soft);color:var(--ink);border:1px solid var(--line);border-radius:7px;box-shadow:0 3px 14px #0003;font-size:12px;line-height:1.5}
.climate-cell-help[hidden]{display:none}
@media(max-width:1100px){.climate-cell-heading{padding-right:28px}.climate-cell-heading .source-info{width:32px;height:32px;min-width:32px;min-height:32px;line-height:30px}}
/* Dense area rows with explicit counts and one map action. */
#view-areas #county-links{display:block;margin:0}
#county-links .area-table{width:100%;border-collapse:separate;border-spacing:0;font-size:12px}
#county-links .area-table th,#county-links .area-table td{padding:9px 8px;border-bottom:1px solid var(--line);vertical-align:middle;text-align:left;line-height:1.35}
#county-links .area-table thead th{position:sticky;top:0;background:var(--soft);z-index:1;font-size:11px}
#county-links .area-table thead th:nth-child(2){text-align:right}
#county-links .area-table .area-group th{background:#e6f0f2;color:#225b67;font-size:12px;font-weight:750;padding:7px 8px}
[data-theme=dark] #county-links .area-table .area-group th{background:#26393d;color:#a5e2e7}
#county-links .area-table tr:not(.area-group):nth-child(odd){background:#f5f7f8}
[data-theme=dark] #county-links .area-table tr:not(.area-group):nth-child(odd){background:#1e1e1e}
#county-links .area-table .area-count{min-width:64px;text-align:right;font-variant-numeric:tabular-nums}
#county-links .area-table .area-count strong{font-size:14px;color:var(--ink)}
#county-links .area-table .area-count small{display:block;font-size:10px;color:var(--muted)}
#county-links .area-table td:last-child{width:64px;text-align:right}
#view-areas #county-links .area-table button{min-height:32px;margin:0;padding:4px 8px;font-size:11px}
.popup-record>.popup-place{font-size:11px;margin:3px 0 7px;color:var(--muted)}
.popup-record>strong{display:block;margin-bottom:3px}
.popup-record details{padding-top:6px;margin-top:6px}
.popup-record .source-fields{grid-template-columns:minmax(90px,1fr) 1.5fr;gap:5px 10px}
/* Short views use the space their content needs; long views still scroll. */
#explore-drawer{bottom:auto;height:auto;max-height:calc(100dvh - var(--header-height,76px) - 34px)}
@media(max-width:1100px){#explore-drawer{max-height:calc(100dvh - var(--header-height,108px) - 24px)}}

/* Report values stay visible; only the independent climate context can fold. */
.popup-record>.popup-date,.popup-record>.popup-place,.popup-record>.popup-impact,.popup-record>.popup-provenance,.popup-record>.popup-version{margin:4px 0;font-size:11px;line-height:1.45;overflow-wrap:anywhere}
.popup-record>.popup-impact{color:var(--ink)}
.popup-record>.popup-provenance{margin-top:7px;color:var(--muted)}
.popup-record>.popup-version{font-size:10px;color:var(--muted)}

/* Event presets belong to Results, alongside reports and areas. */
#explore-drawer .drawer-nav{grid-template-columns:repeat(5,minmax(0,1fr))}
.event-card{padding:12px 0;border-bottom:1px solid var(--line)}
.event-card>button{width:100%;text-align:left;min-height:44px}
.event-card>button[aria-pressed=true]{border-color:var(--accent);box-shadow:inset 3px 0 var(--accent);font-weight:700}
.event-card p{margin:6px 0}.event-card .source-list{font-size:12px;margin:6px 0;padding-left:18px}
@media(max-width:400px){#explore-drawer .drawer-nav{gap:3px}#explore-drawer .drawer-nav [role=tab]{padding-inline:2px;font-size:10px}}

/* Compact report summaries and a prominent dataset summary. */
#dataset-bar #dataset-scope{font-size:14px;font-weight:650;color:var(--ink);margin-top:5px;line-height:1.4}
#records-body .record-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px 12px}
#records-body .record-summary{min-width:0;overflow-wrap:anywhere}
#records-body .record-summary strong{display:block}
#records-body .record-summary p{margin:4px 0 0}
#records-body .record-card>button{margin:0;white-space:nowrap;align-self:center}
[data-theme=light] #timeline-track .timeline-selected,[data-theme=light] .bar-fill,[data-theme=light] .month-bar i{box-shadow:inset 0 0 0 1px #93400070}
@media(max-width:1100px){#dataset-bar #dataset-scope{font-size:12px}#records-body .record-card{gap:8px;padding:10px}#records-body .record-card>button{font-size:11px;padding:6px 8px}}

/* Touch layouts retain readable controls and an unobstructed map workspace. */
@media (max-width:1100px), (pointer:coarse){
 #dataset-bar .dataset-actions>button,#dataset-bar .header-map-actions button{min-height:44px}
 #dataset-bar .header-zoom a{width:44px;height:42px;line-height:42px}
 #boundary-controls label.check{min-height:36px}
 #panel #collapse,#explore-drawer #drawer-close{min-width:44px;min-height:44px}
 #panel .climate-heading-row>button.source-info{top:1px;right:0;width:44px;height:44px;min-width:44px;min-height:44px;border:0;background:transparent}
 #panel .climate-heading-row>button.source-info::before{content:'';position:absolute;inset:8px;border:1px solid currentColor;border-radius:50%}
 #panel .climate-heading-row summary{padding-right:45px}
 #panel input:not([type=checkbox]):not([type=radio]),#panel select,#explore-drawer input:not([type=checkbox]):not([type=radio]),#explore-drawer select{font-size:16px;min-height:44px}
 #panel details>summary,#panel .choice-list .check,#geography-choices .check{min-height:44px}
 #view-areas #county-links .area-table button{min-height:44px;min-width:44px}
 #explore-drawer .drawer-nav [role=tab],#records-body .record-card>button{min-height:44px}
 .climate-cell-heading .source-info{width:44px;height:44px;min-width:44px;min-height:44px;line-height:42px}
 .climate-cell-heading{padding-right:30px}
 #research-timeline #timeline-climate{height:24px;touch-action:pan-y}
 #timeline-climate span{border-block:6px solid transparent;background-clip:padding-box}
}
@media (max-width:1100px){
 #panel.is-collapsed{width:210px!important;padding:8px 12px!important}
 #panel.is-collapsed header{min-height:44px}
 #panel.is-collapsed #title{line-height:44px;margin-block:0}
 .popup-open #research-timeline{display:none}
 .leaflet-popup-content{max-height:max(80px,var(--map-popup-max-height,40dvh));overscroll-behavior:contain}
 #research-timeline .timeline-series{grid-template-columns:76px minmax(0,1fr);gap:6px}
 #research-timeline .timeline-row-label{overflow-wrap:normal;white-space:nowrap}
 #research-timeline #timeline-months,#research-timeline #timeline-years{margin-left:82px}
}
@media (max-width:600px){
 #dataset-bar{padding-inline:max(8px,env(safe-area-inset-left)) max(8px,env(safe-area-inset-right));gap:5px}
 #dataset-bar .dataset-actions{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) 90px minmax(0,1fr);gap:4px}
 #dataset-bar .dataset-actions>button,#dataset-bar .header-map-actions button{white-space:normal;padding:4px;line-height:1.15}
 #dataset-bar .header-zoom a{width:44px}
 #boundary-controls label.check{font-size:11px}
 #boundary-controls #reference-key{gap:4px}
 #research-timeline{padding-inline:8px}
 .timeline-heading{gap:4px;font-size:11px}
 .timeline-heading button{font-size:10px;padding-inline:5px}
 #timeline-track{height:44px}
 .timeline-meta{gap:2px;margin:3px 0}
 .timeline-count-key{font-size:10px}
 #timeline-years{font-size:10px}
 #timeline-years span:last-child{transform:translateX(-8px)}
 #records-body .record-card>button{max-width:98px;white-space:normal}
}
@container (max-width:420px){#research-timeline #timeline-months{display:none}}
@media (max-width:1100px) and (max-height:500px){
 #panel.is-collapsed{width:150px!important;padding:2px 10px!important}
 #panel.is-collapsed header>#mobile-selection:not(#title):not(#collapse){display:none!important}
 #panel.is-collapsed #title{font-size:15px}
 #research-timeline{padding-block:4px}
 .timeline-heading button{min-height:32px}
 #timeline-track{height:30px}
 .timeline-meta{margin:2px 0}
 #timeline-status{margin:0}
 #research-timeline #timeline-climate-row{padding-top:3px;margin-top:3px}
 #research-timeline .timeline-help{margin:0}
 .drawer-open #dataset-bar,.filters-open #dataset-bar{visibility:hidden}
 #explore-drawer,.workspace-expanded #explore-drawer,#panel:not(.is-collapsed){top:8px;max-height:calc(100dvh - 24px)}
 #panel:not(.is-collapsed){max-height:calc(100dvh - 76px)}
}
#timeline-climate span.inspected{outline:2px solid var(--ink);outline-offset:-1px}
@media (max-width:1100px){
 #dataset-bar{padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}
 #panel,#explore-drawer,#explore-shortcuts,#research-timeline{left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right))}
 #panel.is-collapsed{right:auto}
 #explore-drawer{max-height:calc(100dvh - var(--header-height,108px) - max(24px,env(safe-area-inset-bottom)))}
}
@media (max-width:1100px) and (max-height:500px){#explore-drawer{max-height:calc(100dvh - max(24px,env(safe-area-inset-bottom)))}}
@media (max-width:1100px){
 #research-timeline{max-height:max(64px,calc(100dvh - var(--header-height,108px) - 176px));overflow-y:auto;overscroll-behavior:contain}
 #research-timeline .timeline-heading{position:sticky;top:-7px;z-index:2;background:inherit}
}
@media (max-width:1100px) and (max-height:500px){
 #dataset-bar{grid-template-columns:minmax(0,1fr) minmax(0,320px);gap:8px}
 #dataset-bar>div:first-child>strong{font-size:14px}
 #dataset-bar #dataset-scope{font-size:11px}
 #research-timeline{max-height:max(64px,calc(100dvh - var(--header-height,108px) - 140px))}
 #research-timeline .timeline-heading{top:-4px}
}
#timeline-track button{min-height:0}
@media (max-width:1100px) and (max-height:500px){
 #dataset-bar{grid-template-columns:minmax(0,1fr) minmax(0,360px)}
 #dataset-bar .dataset-actions{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) 90px minmax(0,1fr);width:100%;gap:4px}
 #dataset-bar .dataset-actions>button,#dataset-bar .header-map-actions button{white-space:normal;padding:4px;line-height:1.15}
}
@media (max-width:1100px), (pointer:coarse){
 #panel #controls select,#panel #controls input:not([type=checkbox]):not([type=radio]),#explore-drawer .drawer-body select,#explore-drawer .drawer-body input:not([type=checkbox]):not([type=radio]){font-size:16px;min-height:44px}
}
@media (max-width:1100px){
 #research-timeline{display:flex;flex-direction:column;overflow:hidden}
 #research-timeline .timeline-heading{position:static;flex:none}
 #timeline-content{min-height:0;overflow-y:auto;overscroll-behavior:contain}
 .filters-open #research-timeline,.drawer-open #research-timeline,.workspace-expanded #research-timeline,.popup-open #research-timeline{display:none}
}
@media (max-width:500px) and (max-height:500px){#dataset-bar{grid-template-columns:minmax(0,1fr)}}
