/* ATLAS 9.19.31 — phone inspect/list sheets + hide map chrome while a sheet is open.
   html.atlas-phone-shell is set in JS for max-width 899px OR short landscape phones
   (including 430 CSS-px devices rotated to 932px, which skip max-width:899px). */
html.atlas-phone-shell{
  --cam-sheet-bottom:0px;
  --cam-sheet-max:calc(100dvh - env(safe-area-inset-top,0px) - 8px);
}
html.atlas-phone-shell.atlas-sheet-open .c9-compass,
html.atlas-phone-shell.atlas-sheet-open .c9-zoom,
html.atlas-phone-shell.atlas-sheet-open .c9-cross,
html.atlas-phone-shell.atlas-sheet-open .slider-bubble,
html.atlas-phone-shell.atlas-sheet-open .time-box,
html.atlas-phone-shell.atlas-sheet-open #timelineBubble,
html.atlas-phone-shell.atlas-sheet-open #surfaceFrameTrust,
html.atlas-phone-shell.atlas-sheet-open #viImageStatus,
html.atlas-phone-shell.atlas-sheet-open .atlas-compass-ctrl,
html.atlas-phone-shell.atlas-sheet-open .maplibregl-ctrl-top-right,
html.atlas-phone-shell.atlas-sheet-open .maplibregl-ctrl-bottom-right .maplibregl-ctrl-group{
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
}

html.atlas-phone-shell body #inspectSheet:not([hidden]):not(.sized-panel),
html.atlas-phone-shell body.v9-map-first #inspectSheet#inspectSheet:not([hidden]):not(.sized-panel),
html.atlas-phone-shell body.v9-map-first #inspectSheet#inspectSheet.camera-sheet:not([hidden]):not(.sized-panel),
html.atlas-phone-shell body.v9-map-first #inspectSheet#inspectSheet.camera-sheet:not([hidden]):not(.sized-panel):not(.station-sheet):not(.forecast-sheet):not(.point-sheet),
html.atlas-phone-shell body.atlas-card-open #inspectSheet#inspectSheet.inspect-sheet.managed-panel:not([hidden]):not(.sized-panel),
html.atlas-phone-shell body.v9-map-first #inspectSheet.station-card-sheet:not([hidden]):not(.sized-panel),
html.atlas-phone-shell body #inspectSheet.station-card-sheet:not([hidden]):not(.sized-panel),
html.atlas-phone-shell body #stationBrowser:not([hidden]):not(.sized-panel),
html.atlas-phone-shell body.v9-map-first #stationBrowser:not([hidden]):not(.sized-panel),
html.atlas-phone-shell body #harbourBrowser:not([hidden]):not(.sized-panel),
html.atlas-phone-shell body.v9-map-first #harbourBrowser:not([hidden]):not(.sized-panel){
  position:fixed !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  top:auto !important;
  bottom:0 !important;
  height:auto !important;
  max-height:calc(100dvh - env(safe-area-inset-top,0px) - 8px) !important;
  min-height:min(70dvh, calc(100dvh - env(safe-area-inset-top,0px) - 56px)) !important;
  z-index:200 !important;
  border-radius:18px 18px 0 0 !important;
  transform:none !important;
  margin:0 !important;
  padding-bottom:calc(var(--atlas-tabs-h, 54px) + env(safe-area-inset-bottom, 0px) + 8px) !important;
  overflow:auto !important;
  box-shadow:0 -12px 40px rgba(0,0,0,.45) !important;
}

html.atlas-phone-shell.atlas-sheet-open #phoneTabs{z-index:210 !important;}

html.atlas-phone-shell.atlas-landscape-phone body #inspectSheet:not([hidden]):not(.sized-panel),
html.atlas-phone-shell.atlas-landscape-phone body #stationBrowser:not([hidden]):not(.sized-panel),
html.atlas-phone-shell.atlas-landscape-phone body #harbourBrowser:not([hidden]):not(.sized-panel){
  min-height:calc(100dvh - 44px) !important;
  max-height:calc(100dvh - 8px) !important;
  padding-bottom:calc(36px + env(safe-area-inset-bottom,0px)) !important;
}

/* Beat html.atlas-pro-phone body #inspectSheet#inspectSheet#inspectSheet (3 IDs) in basemap-picker.css */
html.atlas-phone-shell.atlas-pro-phone body #inspectSheet#inspectSheet#inspectSheet:not([hidden]):not(.sized-panel),
html.atlas-phone-shell body #inspectSheet#inspectSheet#inspectSheet:not([hidden]):not(.sized-panel),
html.atlas-phone-shell body #stationBrowser#stationBrowser#stationBrowser:not([hidden]):not(.sized-panel),
html.atlas-phone-shell body #harbourBrowser#harbourBrowser#harbourBrowser:not([hidden]):not(.sized-panel){
  position:fixed !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  top:auto !important;
  bottom:0 !important;
  height:auto !important;
  max-height:calc(100dvh - env(safe-area-inset-top,0px) - 8px) !important;
  min-height:min(70dvh, calc(100dvh - env(safe-area-inset-top,0px) - 56px)) !important;
  z-index:200 !important;
  margin:0 !important;
  transform:none !important;
}
