/* v8 map-native story. The map is the evidence stage; source boards are opt-in. */
#process-explorer{grid-template-columns:minmax(0,1fr);width:100%;max-width:100vw;min-width:0}#process-explorer>*{min-width:0;max-width:100%}.px-workspace{grid-template-columns:255px minmax(0,1fr)!important;min-width:0}.px-map-area,.px-story,.px-map-pair,.px-map,.px-header,.px-tabs{min-width:0}.px-header{width:100%;box-sizing:border-box}.px-map-toolbar{max-width:100%;overflow-x:auto!important;flex-wrap:nowrap!important;scrollbar-width:thin}.px-map-toolbar>*{flex-shrink:0}.story-stage-nav{width:0;flex:1 1 0;min-width:0}.px-tabs{overflow:hidden}.px-header>div{min-width:0}.px-header .px-actions{overflow-x:auto;flex-shrink:1}#native-spatial-tools{display:flex;gap:5px;align-items:center;border-left:1px solid #a7bec9;padding-left:8px;font-size:11px}#native-spatial-tools b{color:#286b68;white-space:nowrap}#native-mode{max-width:150px}#native-spatial-caption{position:absolute;bottom:66px;left:12px;right:12px;z-index:4;pointer-events:none;background:#f6fbf2ee;border:1px solid #91af93;border-left:4px solid #427e64;border-radius:5px;padding:7px 10px;color:#244b43;font:12px/1.6 system-ui;max-height:70px;overflow:hidden}#process-explorer[data-board-open=true] #native-spatial-caption{right:390px}.px-story .story-summary{font-size:13px}.px-map-title{z-index:5}.px-map-pair{overflow:hidden}@media(max-width:760px){.px-workspace{grid-template-columns:minmax(0,1fr)!important}#native-spatial-caption{bottom:54px;left:5px;right:5px!important;font-size:10px;line-height:1.5;padding:4px 6px;max-height:48px}#native-spatial-tools{font-size:10px}#native-spatial-tools b{display:none}.px-header{overflow:hidden}.px-header>div{flex-shrink:1;overflow:auto}.px-map-toolbar{touch-action:pan-x}}
#native-extra{display:inline-flex;gap:5px;align-items:center}#native-extra select{max-width:155px}.px-map-area{box-sizing:border-box;width:100%;max-width:100%}.px-canvases{min-width:0;max-width:100%}.px-canvases>section{min-width:0}.px-header-actions{min-width:0;overflow-x:auto}.px-story{overflow-x:hidden}
/* Primary chapter controls stay visible, independent from the secondary scrolling tool row. */
#process-explorer .px-map-area{grid-template-rows:auto auto minmax(0,1fr) auto auto auto}
#native-spatial-tools{min-width:0;max-width:100%;display:flex;flex-wrap:wrap;gap:5px 8px;align-items:center;border:1px solid #a8c1c5;border-radius:6px;background:#f4faf8;padding:5px 8px;overflow:visible}
#native-spatial-tools select{padding:4px 6px;font-size:12px;max-width:190px}#native-spatial-tools button{padding:4px 9px;font-size:12px}#native-history-play{background:#196d68!important;color:white!important;border-color:#196d68!important}#native-focus{max-width:210px!important}#native-extra{flex-wrap:wrap}#native-spatial-tools b{font-size:12px}
@media(max-width:760px){#native-spatial-tools{padding:3px 5px;gap:3px 5px}#native-spatial-tools b{display:none}#native-spatial-tools select{font-size:11px;max-width:160px}#native-focus{max-width:170px!important}#native-spatial-tools button{font-size:11px;padding:4px 7px}}

/* Audit: reserve the bottom navigation band; captions must not veil map tools. */
#native-spatial-caption{bottom:112px;max-width:680px}
@media(max-width:760px){#native-spatial-caption{bottom:104px;max-height:40px}}

#native-extra{display:inline-flex;gap:8px;align-items:center;min-width:0}.native-play-hint{font-size:11px;color:#415761;white-space:nowrap}#native-history-year{min-width:122px;padding:5px}#native-dsm[aria-pressed=true]{background:#735125;color:#fff}@media(max-width:760px){.native-play-hint{display:none}}

@media(max-width:760px){
 #native-spatial-caption{display:none!important}
 #native-spatial-tools{flex-wrap:nowrap;overflow-x:auto;min-height:30px}
 #native-spatial-tools>*{flex-shrink:0}
 #process-explorer .px-map-toolbar #px-animate{order:-2;position:sticky;left:0;z-index:8;background:#164f65;color:#fff;border-color:#164f65}
 #process-explorer:not([data-theme=shore]){grid-template-rows:44px 40px minmax(0,1fr) 38px}
 #process-explorer:not([data-theme=shore]) .px-timebar{display:block;padding:3px 6px;overflow:hidden}
 #process-explorer:not([data-theme=shore]) .px-time-foot{display:none}
 #process-explorer:not([data-theme=shore]) .px-time-head{height:31px;align-items:center}
 #process-explorer .px-map-key{max-height:25px;overflow:auto;min-height:18px;font-size:10px;line-height:1.25}
 #process-explorer .px-map-title,#process-explorer .px-map-title span{font-size:10px;flex-basis:24px;padding:3px 6px}
 #process-explorer .px-render-note{font-size:9px;max-height:24px;padding:2px 4px}
 #process-explorer #px-time-options select:not([hidden]){display:block}
}

/* Regional comparisons: keep both lake anchors clear; full explanation remains in the sidebar and source dialog. */
#process-explorer[data-story=context] #native-spatial-caption{display:none}
