/* Ground / Motion v1.1 map-first mobile layout. Overrides v100.css. */
@media(max-width:760px){
 :root{--gm-bottom:env(safe-area-inset-bottom,0px);--gm-player:calc(68px + var(--gm-bottom))}
 .topbar{height:54px!important;padding:0 10px!important}
 .workspace{top:54px!important;bottom:0!important}
 .top-right .segmented button{min-height:38px}
 .story-card{max-height:25dvh!important;overflow:auto}
 .gm-mobile-tools{display:flex!important;top:9px!important;right:9px!important;bottom:auto!important;flex-direction:column;z-index:22!important}
 .gm-mobile-tools button{min-width:82px!important;min-height:40px!important;padding:8px 10px!important;font-size:12px!important}
 .gm-layer-sheet{bottom:var(--gm-player)!important;max-height:56dvh!important;z-index:35!important}
 .timeline-panel{height:var(--gm-player)!important;min-height:0!important;padding:8px 12px calc(6px + var(--gm-bottom))!important;box-sizing:border-box;z-index:30!important}
 .timeline-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:7px!important}
 .timeline-head>div:first-child{min-width:0!important;flex:1!important}
 .timeline-head .eyebrow{display:none!important}
 .timeline-head strong{display:block;font-size:12px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .timeline-head .player{display:flex!important;gap:4px!important;flex:0 0 auto}
 .player button{min-width:31px!important;min-height:38px!important;padding:5px 8px!important}
 .player #play{min-width:68px!important}
 .gm-timeline-toggle{display:block;border:1px solid #d4e4e5;border-radius:10px;background:#fff;color:#244953;min-height:36px;padding:5px 8px;font-size:12px;font-weight:700}
 .timeline-panel #timeSlider,.timeline-panel .timeline-labels{display:none!important}
 .timeline-panel.gm-timeline-open{height:calc(120px + var(--gm-bottom))!important}
 .timeline-panel.gm-timeline-open #timeSlider{display:block!important;min-height:22px;margin:5px 0 0!important}
 .timeline-panel.gm-timeline-open .timeline-labels{display:flex!important;font-size:10px!important}
 .guided-story{bottom:var(--gm-player)!important;max-height:162px!important;height:auto!important;overflow:hidden!important;padding:9px 15px 8px!important;border-radius:18px 18px 0 0!important;box-sizing:border-box;z-index:26!important}
 .guided-story .gm-story-handle{display:block!important;min-height:30px!important;padding:0 0 3px!important;font-size:12px!important;color:#087c7a!important}
 .guided-story .gm-story-handle:before{width:37px;height:4px;margin:0 auto 4px}
 .guided-story .guided-head,.guided-story .guided-progress,.guided-story [data-story-prose],.guided-story [data-story-action],.guided-story [data-story-hint],.guided-story .radar-explainer,.guided-story .guided-wave-button,.guided-story .guided-play-button,.guided-story .guided-caution{display:none!important}
 .guided-story .guided-index{font-size:10px!important;margin:0!important}
 .guided-story h2{font-size:16px!important;line-height:1.2!important;margin:3px 0!important;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
 .guided-story .gm-story-teaser{font-size:11px!important;line-height:1.3!important;color:#5a747d!important;margin:3px 0 5px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .guided-story .guided-buttons{display:flex!important;position:static!important;gap:6px!important;padding:0!important;margin:0!important}
 .guided-story .guided-buttons button{min-height:34px!important;padding:5px 8px!important;font-size:11px!important}
 .guided-story[data-gm-story-state="half"]{height:36dvh!important;max-height:36dvh!important;overflow-y:auto!important}
 .guided-story[data-gm-story-state="full"]{height:calc(100dvh - 54px - var(--gm-player))!important;max-height:calc(100dvh - 54px - var(--gm-player))!important;overflow-y:auto!important}
 .guided-story[data-gm-story-state="half"] .guided-head,.guided-story[data-gm-story-state="full"] .guided-head{display:flex!important}
 .guided-story[data-gm-story-state="half"] .guided-progress,.guided-story[data-gm-story-state="full"] .guided-progress{display:block!important}
 .guided-story[data-gm-story-state="half"] [data-story-prose],.guided-story[data-gm-story-state="full"] [data-story-prose],.guided-story[data-gm-story-state="half"] [data-story-hint],.guided-story[data-gm-story-state="full"] [data-story-hint],.guided-story[data-gm-story-state="full"] [data-story-action]{display:block!important}
 .guided-story[data-gm-story-state="half"] .gm-story-teaser,.guided-story[data-gm-story-state="full"] .gm-story-teaser{display:none!important}
 .guided-story[data-gm-story-state="full"] .radar-explainer:not([hidden]),.guided-story[data-gm-story-state="full"] .guided-play-button:not([hidden]),.guided-story[data-gm-story-state="full"] .guided-wave-button:not([hidden]){display:block!important}
 .guided-story[data-gm-story-state="half"] h2,.guided-story[data-gm-story-state="full"] h2{font-size:21px!important;-webkit-line-clamp:unset;overflow:visible}
 .guided-story[data-gm-story-state="half"] [data-story-prose],.guided-story[data-gm-story-state="full"] [data-story-prose]{font-size:13px!important;line-height:1.45!important}
 .guided-story[data-gm-story-state="half"] .guided-buttons,.guided-story[data-gm-story-state="full"] .guided-buttons{position:sticky!important;bottom:0!important;background:#fff!important;padding:8px 0!important}
 .workspace:has(.guided-story:not([hidden])) .story-card{display:none!important}
 .workspace:has(.point-panel:not([hidden])) .guided-story,.workspace:has(#buildingPanel:not([hidden])) .guided-story{visibility:hidden!important;pointer-events:none!important}
 .point-panel{bottom:var(--gm-player)!important;max-height:55dvh!important;overflow-y:auto!important}
 .colour-legend{bottom:calc(var(--gm-player) + 12px)!important;width:min(160px,43vw)!important;opacity:.94}
 .workspace:has(.guided-story:not([hidden])) .colour-legend{display:none!important}
 .map-zoom,.map-tools,.building-status{display:none!important}
 .motion-notice,.toast{bottom:calc(var(--gm-player) + 8px)!important}
 .gm-install{top:56px!important;right:10px!important}
}
@media(max-width:380px){.guided-story{max-height:155px!important}.gm-mobile-tools button{min-width:73px!important}}
@media(prefers-reduced-motion:reduce){.guided-story{transition:none!important}}
