html body #atlasModePeek.atlas-mode-peek.is-covered{visibility:hidden;pointer-events:none;opacity:0;}

html body #atlasModePeek.atlas-mode-peek{
  bottom:calc(var(--atlas-mode-peek-bottom, 160px));
  z-index:70!important;
}
html body[data-phone-tab="sea"] #harbourBrowser,
html body[data-phone-tab="roads"] #harbourBrowser,
html body[data-phone-tab="cameras"] #harbourBrowser,
html body[data-phone-tab="stations"] #stationBrowser{
  top:auto!important;max-height:30vh!important;height:auto!important;
}
html body[data-phone-tab="stations"] #stationBrowser{max-height:45vh!important;}
/* 9.19.36: Sea/Roads/Cameras are map-first modes. Lists are optional peeks, never full-screen. */
#atlasModePeek.atlas-mode-peek{
  display:block;position:fixed;left:0;right:0;z-index:45;
  bottom:calc(var(--phone-tab-height,52px) + env(safe-area-inset-bottom,0px));
  max-height:30vh;background:rgba(12,18,24,.92);color:#e8eef4;
  border-radius:16px 16px 0 0;box-shadow:0 -8px 24px rgba(0,0,0,.35);
  backdrop-filter:blur(12px);padding:0 12px 10px;box-sizing:border-box;
}
#atlasModePeek[hidden]{display:none!important}
#atlasModePeek .atlas-peek-handle{
  display:flex;justify-content:center;align-items:center;width:100%;height:22px;
  border:0;background:transparent;color:inherit;padding:8px 0 4px;
}
#atlasModePeek .atlas-peek-handle i{display:block;width:42px;height:4px;border-radius:4px;background:rgba(255,255,255,.35)}
#atlasModePeek.is-collapsed{max-height:28px;padding-bottom:0}
#atlasModePeek.is-collapsed .atlas-mode-peek-body{display:none}
.atlas-mode-peek-body{min-width:0}
.atlas-peek-lead{margin:4px 0 8px;font:600 13px/1.3 system-ui,sans-serif}
.atlas-peek-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.atlas-peek-list{appearance:none;border:0;background:#0b4f7c;color:#fff;border-radius:999px;padding:8px 12px;font:700 13px/1.1 system-ui,sans-serif;min-height:40px;text-decoration:none;display:inline-flex;align-items:center}
#atlasModePeek .sea-layers{margin:0 0 8px}
#atlasModePeek .sea-opacity{margin:0 0 4px}

/* Override full-bleed harbour/station browsers on phone tabs */
html.atlas-pro-phone body[data-phone-tab="sea"] #harbourBrowser,
html.atlas-pro-phone body[data-phone-tab="roads"] #harbourBrowser,
html.atlas-pro-phone body[data-phone-tab="cameras"] #harbourBrowser,
html.atlas-phone-shell body[data-phone-tab="sea"] #harbourBrowser,
html.atlas-phone-shell body[data-phone-tab="roads"] #harbourBrowser,
html.atlas-phone-shell body[data-phone-tab="cameras"] #harbourBrowser,
html.atlas-pro-phone body.v9-map-first[data-phone-tab="sea"] #harbourBrowser,
html.atlas-pro-phone body.v9-map-first[data-phone-tab="roads"] #harbourBrowser,
html.atlas-pro-phone body.v9-map-first[data-phone-tab="cameras"] #harbourBrowser,
html.atlas-phone-shell body.v9-map-first[data-phone-tab="sea"] #harbourBrowser#harbourBrowser,
html.atlas-phone-shell body.v9-map-first[data-phone-tab="roads"] #harbourBrowser#harbourBrowser,
html.atlas-phone-shell body.v9-map-first[data-phone-tab="cameras"] #harbourBrowser#harbourBrowser,
html.atlas-pro-phone body[data-phone-tab="stations"] #stationBrowser,
html.atlas-phone-shell body.v9-map-first[data-phone-tab="stations"] #stationBrowser#stationBrowser{
  position:fixed!important;left:0!important;right:0!important;width:auto!important;
  top:auto!important;
  bottom:calc(var(--phone-tab-height,52px) + env(safe-area-inset-bottom,0px))!important;
  height:auto!important;max-height:30vh!important;min-height:0!important;
  border-radius:16px 16px 0 0!important;z-index:50!important;
  background:#10161b!important;overflow:auto!important;
}
html.atlas-pro-phone body[data-phone-tab="stations"] #stationBrowser,
html.atlas-phone-shell body.v9-map-first[data-phone-tab="stations"] #stationBrowser#stationBrowser{
  max-height:45vh!important;
}
html.atlas-phone-shell body[data-phone-tab="sea"] #marineMap,
html.atlas-phone-shell body[data-phone-tab="roads"] #marineMap,
html.atlas-phone-shell body[data-phone-tab="cameras"] #marineMap,
html.atlas-phone-shell body[data-phone-tab="stations"] #marineMap,
html.atlas-phone-shell body[data-phone-tab="map"] #marineMap{
  visibility:visible!important;display:block!important;
}

/* Topic panel must not become a second full sheet; keep it as a compact peek if shown */
#phoneTopicPanel{
  position:fixed;left:0;right:0;z-index:44;
  bottom:calc(var(--phone-tab-height,52px) + env(safe-area-inset-bottom,0px));
  max-height:30vh;overflow:auto;background:rgba(12,18,24,.94);color:#e8eef4;
  border-radius:16px 16px 0 0;padding:10px 12px 12px;box-sizing:border-box;
}
#phoneTopicPanel[hidden]{display:none!important}
