#mobileReadoutB045{display:none}
html body #mapWorkspace .primary-actions .mobile-action-caption{display:none!important}
#mobileSecondaryB045[hidden]{display:none!important}
#compassHelpB045{margin-top:12px}#compassStatus{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
/* B046: narrow portrait through 720px; <=600px stays compact with keyboard/short viewports. */
@media(max-width:600px), (max-width:720px) and (orientation:portrait){
 html[data-phone-layout=bottom],body[data-phone-layout=bottom]{overflow:hidden}
 html body #mapWorkspace{position:fixed!important;inset:0!important;width:100%!important;height:var(--map-vh,100dvh)!important;margin:0!important;z-index:900}
 html body #mapWorkspace .map-stage{height:100%!important;min-height:0!important}
 html body #mapWorkspace #map{height:100%!important;min-height:0!important}
 #mapWorkspace{--b045-nav-height:60px;--b045-bottom:calc(var(--map-hidden-bottom,0px) + max(8px,env(safe-area-inset-bottom)) + max(20px,var(--position-attribution-height,20px)));--b045-top:calc(var(--map-visible-top,0px) + max(8px,env(safe-area-inset-top)))}
 html body #mapWorkspace .map-stage nav.primary-actions[aria-label]{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;position:absolute!important;left:max(8px,env(safe-area-inset-left))!important;right:max(8px,env(safe-area-inset-right))!important;top:auto!important;bottom:var(--b045-bottom)!important;width:auto!important;max-width:none!important;height:var(--b045-nav-height)!important;max-height:none!important;margin:0!important;overflow:visible;z-index:820}
 html body #mapWorkspace .map-stage nav.primary-actions[aria-label]>button{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%!important;min-width:0!important;max-width:none!important;min-height:44px!important;height:var(--b045-nav-height)!important;padding:4px!important;border-radius:12px!important;font-size:12px!important;line-height:1.15}
 html body #mapWorkspace .primary-actions .map-action-label{display:none!important}
 html body #mapWorkspace .primary-actions .mobile-action-caption{display:block!important;font-size:11px;line-height:1.2;white-space:nowrap;margin:0}
 #mapWorkspace #mapLeftStack{display:contents!important}
 #mapWorkspace #mapLeftStack #crosshairCoordinateBar{display:none!important}
 #mobileReadoutB045{display:block;position:absolute;z-index:810;left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));top:var(--b045-top);padding:6px 8px;min-height:46px;max-height:60px;border:1px solid #789083;border-radius:8px;background:#fffffff2;color:#203b34;box-sizing:border-box;font-size:12px;line-height:1.45;pointer-events:none}
 #mobileCoordinateB045{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:600}
 #mobilePositionB045{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 html[data-theme=dark] #mobileReadoutB045{background:#22282ef5;color:#edf1f4;border-color:#697984}
 #mobileSecondaryB045{position:absolute;z-index:815;left:max(8px,env(safe-area-inset-left));bottom:calc(var(--b045-bottom) + var(--b045-nav-height) + 8px);display:flex;gap:6px;align-items:center;max-width:calc(100% - 76px)}
 #mobileSecondaryB045 #developerToolsOpen,#mobileSecondaryB045 .map-top-actions{position:static!important;inset:auto!important;margin:0!important;transform:none!important;max-width:none}
 #mobileSecondaryB045 #developerToolsOpen{width:auto;min-height:44px;max-width:114px;font-size:12px;padding:6px 9px;line-height:1.3}
 #mobileSecondaryB045 .map-top-actions button{width:44px;height:44px;min-height:44px;font-size:0;padding:9px}
 #mobileSecondaryB045 .map-top-actions button svg{width:24px;height:24px}
 html body #mapWorkspace #reportOpen{bottom:calc(var(--b045-bottom) + var(--b045-nav-height) + 8px)!important;right:max(8px,env(safe-area-inset-right));width:44px;height:44px;min-height:44px}
 html body #mapWorkspace .leaflet-top{top:calc(var(--b045-top) + 54px)!important}
 html body #mapWorkspace .choice-panel,html body #mapWorkspace #displayMenu{top:auto!important;bottom:calc(var(--b045-bottom) + var(--b045-nav-height) + 8px)!important;max-height:calc(100% - var(--b045-top) - var(--b045-bottom) - var(--b045-nav-height) - 16px)!important;width:calc(100% - 16px);border-radius:14px 14px 8px 8px!important;overflow:hidden;display:flex;flex-direction:column;overscroll-behavior:contain}
 html body #mapWorkspace .choice-panel[hidden]{display:none!important}
 #mapWorkspace .choice-panel .panel-heading{flex:0 0 auto;min-height:60px}
 #mapWorkspace .choice-panel .panel-content{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:max(8px,env(safe-area-inset-bottom))}
 #mapWorkspace .selection-sheet{top:auto!important;bottom:calc(var(--b045-bottom) + var(--b045-nav-height) + 8px)!important;max-height:calc(100% - var(--b045-top) - var(--b045-bottom) - var(--b045-nav-height) - 70px)!important}
 #mapWorkspace.clean-map-only #mobileReadoutB045{display:none!important}
}
@media(max-width:600px) and (max-height:480px){#mapWorkspace{--b045-nav-height:44px}#mobileReadoutB045{padding-top:3px;padding-bottom:3px;min-height:40px;font-size:11px}html body #mapWorkspace .primary-actions .ticket-icon{width:20px;height:20px}html body #mapWorkspace .primary-actions .mobile-action-caption{font-size:10px}#mobileSecondaryB045 #developerToolsOpen{max-width:96px}}

html body #mapWorkspace .map-stage nav.primary-actions[aria-label]>button[hidden]{display:none!important}
#simulationFeedbackB046{position:absolute;z-index:825;left:8px;bottom:112px;max-width:min(480px,calc(100% - 16px));margin:0;padding:10px 12px;box-sizing:border-box;border:1px solid #9b772d;border-radius:8px;background:#fff3d5;color:#49360f;font-size:13px;line-height:1.5;pointer-events:none}
html[data-theme=dark] #simulationFeedbackB046{background:#493b1f;color:#fff0c8;border-color:#ad9253}
#simulationFeedbackB046[hidden]{display:none!important}
@media(max-width:600px), (max-width:720px) and (orientation:portrait){#simulationFeedbackB046{bottom:calc(var(--b045-bottom) + var(--b045-nav-height) + 64px)}html body #mapWorkspace .primary-actions .mobile-action-caption{font-size:11px}}
