.mapped-scene-panel{position:fixed;z-index:8;left:calc(var(--sidebar,300px) + 38px);bottom:22px;width:310px;max-width:calc(100vw - 30px);padding:14px 16px;background:#fffef8f5;border:1px solid #dce3d9;border-radius:10px;box-shadow:0 4px 22px #193b2420;color:#263e34;font:12px/1.5 system-ui,sans-serif;max-height:42vh;overflow:auto}.mapped-scene-panel[hidden]{display:none}.mapped-scene-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.mapped-scene-heading strong{font-size:14px}.mapped-scene-panel button{font:inherit;cursor:pointer;border:1px solid #cdd9cf;background:#f7faf4;color:#23563f;border-radius:6px;padding:7px 9px;min-height:36px}.mapped-scene-panel button:hover,.mapped-scene-panel button[aria-pressed=true]{background:#e0ebdf;border-color:#70947d}.mapped-scene-status{margin:8px 0;font-size:11px}.mapped-scene-actions{display:flex;gap:8px;margin:8px 0}.mapped-scene-note{font-size:10px;color:#647067;margin:6px 0}.mapped-scene-detail{border-top:1px solid #dce3d9;margin-top:10px;padding-top:9px;font-size:11px}.mapped-scene-detail p{margin:5px 0}.mapped-scene-detail p:last-child{font-size:10px;color:#647067}@media(max-width:1000px){.mapped-scene-panel{left:calc(var(--sidebar,272px) + 28px);width:270px}}@media(max-width:640px){.mapped-scene-panel{left:10px;bottom:65px;width:calc(100vw - 75px);padding:11px 13px;max-height:32dvh}.mapped-scene-panel button{min-height:42px}.mapped-scene-heading strong{font-size:13px}}@media(prefers-reduced-motion:reduce){.mapped-scene-panel{scroll-behavior:auto}}

.mapped-scene-actions{flex-wrap:wrap}.mapped-simulation-status{font-size:11px;font-weight:600;color:#754223;border-left:3px solid #bd743b;padding:5px 8px;background:#fff5e9;margin:8px 0}.mapped-simulation-status[hidden]{display:none}

.mapped-scene-forecast{font-size:10px;line-height:1.5;color:#5e685f;margin:6px 0}.mapped-scene-forecast[hidden]{display:none}

.mapped-ground-detail{border-top:1px solid #dce3d9;margin-top:10px;padding-top:9px}.mapped-ground-detail button{margin-right:6px}.mapped-ground-detail button:disabled{opacity:.55;cursor:default}.mapped-ground-detail p{font-size:10px;line-height:1.5;color:#647067;margin:6px 0}.mapped-ground-detail [hidden]{display:none}

/* The header never scrolls away. Closing only hides controls, not the scene. */
.mapped-scene-panel{display:flex;flex-direction:column;padding:0;overflow:hidden}
.mapped-scene-heading{flex:0 0 auto;padding:5px 6px;gap:4px;background:#fffef8}
.mapped-scene-panel .mapped-scene-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:1;min-width:0;min-height:44px;text-align:left;background:none;border:0;padding:6px 8px}
.mapped-scene-panel .mapped-scene-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;border:0;background:none;font-size:25px;line-height:1}
.mapped-scene-panel .mapped-scene-close:hover,.mapped-scene-panel .mapped-scene-toggle:hover{background:#e9f0e5}
.mapped-scene-content{min-height:0;padding:0 16px 12px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.mapped-scene-panel.is-collapsed{width:max-content;max-width:calc(100vw - 80px)}
.mapped-scene-panel.is-collapsed .mapped-scene-heading strong{font-size:12px}
@media(max-width:900px),(max-height:500px) and (pointer:coarse){
 .mapped-scene-panel{left:max(10px,env(safe-area-inset-left));bottom:max(52px,calc(env(safe-area-inset-bottom) + 12px));width:min(340px,calc(100vw - 76px));max-height:min(44dvh,360px);padding:0}
 .mapped-scene-content{padding:0 12px 12px}
 .mapped-scene-heading{padding:3px 4px}
 .mapped-scene-panel button{min-height:44px}
 body .inspection{max-height:min(55dvh,460px)}
 body .inspection-top{position:sticky;top:-14px;z-index:2;background:#fff;margin:-14px -14px 10px;padding:12px 14px;border-bottom:1px solid #e0e7e1}
 body .inspection-top .icon-button{width:44px!important;height:44px!important;min-height:44px}
 body .inspection:not([hidden])~.fire-summary{display:none}
}
@media(max-height:500px) and (pointer:coarse){
 .mapped-scene-panel{max-height:calc(100dvh - 126px)}
 body .inspection{left:auto;right:max(9px,env(safe-area-inset-right));top:64px;width:min(340px,55vw);max-height:calc(100dvh - 82px);padding:14px}
}
@media(max-width:640px),(max-height:500px) and (pointer:coarse){
 body:not(.sidebar-hidden) #inspection,
 body:has(.assistant-global-panel:not([hidden])) #inspection{visibility:hidden;pointer-events:none}
 body:has(#inspection:not([hidden])) #sidebar-peek,
 body:has(.assistant-global-panel:not([hidden])) #sidebar-peek{visibility:hidden;pointer-events:none}
}
.maplibregl-ctrl-group .mapped-scene-start{width:auto;min-width:76px;min-height:44px;padding:0 10px;font:600 12px/1.2 system-ui,sans-serif;color:#173d35;background:#fff}
.maplibregl-ctrl-group .mapped-scene-start[aria-pressed=true]{background:#e0eee7}
.maplibregl-ctrl-group .mapped-scene-start:focus-visible{outline:2px solid #173d35;outline-offset:-3px}

.scene-quality{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:12px;margin:8px 0}.scene-quality select{min-height:44px;padding:8px 28px 8px 10px;border:1px solid #ccdacf;border-radius:7px;background:#fff;color:#194d3f;font:inherit}.scene-quality span{font-size:11px}.scene-quality select:focus-visible{outline:3px solid #79b7a0;outline-offset:2px}
