/* ATLAS 9.19.56 — landscape phones only.
   Every rule sits inside one media query: a touch screen, wider than tall, short window.
   Portrait and desktop never match it, so they render exactly as 9.19.51.
   Only CSS: no script reads or changes anything here, so no existing handler or state is touched. */
@media (orientation: landscape) and (max-height: 520px) and (pointer: coarse) {

  /* ======================================================================
     VÍ-kort player (Lifandi kort is the live map further below)
     Layout: one slim top row, layer chips in a column on the left, the map
     in the middle, one slim playback row at the bottom. Controls stay put
     (no auto-hide) so nothing appears or disappears while you look.
     ====================================================================== */
  html #atlasQuick:not([hidden]):not(.aq-small){
    --aq-rail:calc(148px + env(safe-area-inset-left));
    --aq-top:46px;
    --aq-bar:56px;
  }
  /* 9.19.58: the player is a grid so the top row and the bottom row can never overlap, whatever the width or the safe areas:
     row 1 = tabs (they swipe sideways if they do not fit) + window buttons (always whole, at the right safe edge),
     row 2 = the map, row 3 = one bottom row that never wraps. */
  html #atlasQuick:not([hidden]):not(.aq-small){
    display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:var(--aq-top) minmax(0,1fr) var(--aq-bar);
  }
  html #atlasQuick:not(.aq-small) .aq-top{grid-column:1;grid-row:1}
  html #atlasQuick:not(.aq-small) .aq-heading{grid-column:2;grid-row:1}
  html #atlasQuick:not(.aq-small) .aq-stage{grid-column:1 / -1;grid-row:2}
  html #atlasQuick:not(.aq-small) .aq-bar{grid-column:1 / -1;grid-row:3}

  /* Window buttons: Minni / Stór gluggi / Fylla skjá / ✕ in their own cell at the right edge (inside the safe area). */
  html #atlasQuick:not(.aq-small) .aq-heading{
    position:static!important;z-index:60;margin:0;box-sizing:border-box;height:var(--aq-top);
    padding:max(1px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) 0 6px!important;
    background:none!important;align-items:center;justify-content:flex-end;gap:4px;
  }
  html #atlasQuick:not(.aq-small) .aq-window-sizes{gap:4px;flex:0 0 auto}
  html #atlasQuick:not(.aq-small) .aq-window-sizes button{min-height:36px;height:36px;padding:0 8px;font-size:12px;white-space:nowrap}
  html #atlasQuick:not(.aq-small) #atlasQuickClose{width:40px;min-width:40px;height:36px;border-radius:10px;flex:0 0 auto}
  /* Tabs, EN, Endurstilla, Lifandi kort: one row; swipe sideways when the window is too narrow for all of them. */
  html #atlasQuick:not(.aq-small) .aq-top{
    height:var(--aq-top);box-sizing:border-box;min-width:0;flex-wrap:nowrap;align-items:center;gap:6px;
    overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none;overscroll-behavior-x:contain;
    padding:max(1px,env(safe-area-inset-top)) 6px 0 max(8px,env(safe-area-inset-left))!important;
  }
  html #atlasQuick:not(.aq-small) .aq-top::-webkit-scrollbar{display:none}
  html #atlasQuick:not(.aq-small) .aq-top > *{flex:0 0 auto}
  html #atlasQuick:not(.aq-small) .aq-live{margin-left:0;margin-right:0;order:9}
  html #atlasQuick:not(.aq-small) .aq-seg button,
  html #atlasQuick:not(.aq-small) .aq-reset,
  html #atlasQuick:not(.aq-small) .aq-live{min-height:34px;padding:5px 10px;font-size:13px;white-space:nowrap}

  /* Map between the left chip column and the right edge. */
  html #atlasQuick:not(.aq-small) .aq-stage{min-height:0;margin-left:var(--aq-rail)}
  html #atlasQuick:not(.aq-small) .aq-title{left:8px;bottom:6px;top:auto}

  /* Bottom band (9.19.59): ONE row, vertically centred, whatever the width (the app's own max-width:768 rule turned .aq-track into a
     two-row grid, which put the time above the slider and Tímabil over the map edge). The track and the control group dissolve into
     the band's flex row so every item is ordered explicitly:
       [date + time] [slider, fills the middle] [Tímabil] [1×] [Núna] [‹] [▶] [›]
     The band ends at the bottom of the VISIBLE window (--atlas-vv-b is set from visualViewport by landscape-91956.js, 0 when the browser
     toolbar does not cover the page) and keeps the bottom safe area, so it is never hidden behind Safari's toolbar. */
  html.atlas-quick-open #atlasQuick#atlasQuick:not(.aq-small){
    inset:0 0 var(--atlas-vv-b,0px) 0;height:auto!important;max-height:none!important;
    --aq-bar:calc(58px + env(safe-area-inset-bottom,0px));
  }
  html #atlasQuick:not(.aq-small) .aq-bar{
    position:static;display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:8px;min-width:0;overflow:visible;
    height:var(--aq-bar);box-sizing:border-box;
    padding:0 max(10px,env(safe-area-inset-right)) env(safe-area-inset-bottom,0px) max(10px,env(safe-area-inset-left));
    background:#0b1220;
  }
  html #atlasQuick:not(.aq-small) .aq-track,
  html #atlasQuick:not(.aq-small) .aq-ctrl{display:contents}
  html #atlasQuick:not(.aq-small) .aq-bar :is(#atlasQuickTime,#atlasQuickRangeBtn,#atlasQuickSpeed,#atlasQuickNow,#atlasQuickPrev,#atlasQuickPlay,#atlasQuickNext){
    grid-column:auto;grid-row:auto;position:static;transform:none;left:auto;right:auto;top:auto;bottom:auto;margin:0;align-self:center;
  }
  html #atlasQuick:not(.aq-small) #atlasQuickTime{
    order:1;flex:0 0 auto;width:150px;min-width:0;font-size:12px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  html #atlasQuick:not(.aq-small) .aq-bar .aq-slider{order:2;flex:1 1 0;min-width:80px;padding:0;margin:0;position:relative;grid-column:auto;grid-row:auto;align-self:center}
  html #atlasQuick:not(.aq-small) #atlasQuickRange{flex:1 1 auto;min-width:40px}
  html #atlasQuick:not(.aq-small) .aq-days{display:none}
  html #atlasQuick:not(.aq-small) #atlasQuickRangeBtn{order:3;flex:0 0 auto;white-space:nowrap;height:38px;min-height:0;padding:0 12px;border-radius:999px}
  html #atlasQuick:not(.aq-small) #atlasQuickSpeed{order:4;flex:0 0 auto;width:auto;min-width:40px;height:38px;padding:0 10px;border-radius:999px}
  html #atlasQuick:not(.aq-small) #atlasQuickNow{order:5;flex:0 0 auto;width:auto;height:38px;padding:0 12px;border-radius:999px;margin-left:6px}
  html #atlasQuick:not(.aq-small) #atlasQuickPrev{order:6;flex:0 0 auto;width:40px;height:40px}
  html #atlasQuick:not(.aq-small) #atlasQuickPlay{order:7;flex:0 0 auto;width:44px;height:44px}
  html #atlasQuick:not(.aq-small) #atlasQuickNext{order:8;flex:0 0 auto;width:40px;height:40px}
  /* very narrow window: the date + time wraps to two small lines inside the band instead of squeezing the slider */
  @media (max-width:820px){
    html #atlasQuick:not(.aq-small) #atlasQuickTime{width:76px;white-space:normal;font-size:11px;line-height:1.15}
    html #atlasQuick:not(.aq-small) .aq-bar{gap:6px}
  }

  /* Tap the map: full-screen view with only the playback row. (landscape-91956.js toggles aq-immersive; tap again to come back.) */
  html #atlasQuick.aq-immersive:not(.aq-small){--aq-rail:0px;--aq-top:0px}
  html #atlasQuick.aq-immersive:not(.aq-small) :is(.aq-top,.aq-heading,#atlasQuickTypes,#atlasQuickSub,.aq-title){display:none!important}

  /* Layer chips: a scrolling column on the left. The first item is the "Fleiri lög" menu. */
  html #atlasQuick:not(.aq-small) #atlasQuickTypes{
    position:absolute;left:0;top:var(--aq-top);bottom:var(--aq-bar);width:var(--aq-rail);box-sizing:border-box;
    display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:5px;
    padding:4px 6px 4px max(6px,env(safe-area-inset-left));margin:0;border:0;
    overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;background:#0b1220;z-index:8;
  }
  html #atlasQuick:not(.aq-small) #atlasQuickTypes button{
    flex:0 0 auto!important;width:100%;min-height:34px;padding:6px 8px;text-align:left;font-size:13px;white-space:nowrap;
    overflow:hidden;text-overflow:ellipsis;
  }
  html #atlasQuick:not(.aq-small) #atlasQuickSpakort{order:-1;width:100%;max-width:100%;min-height:36px}
  /* Sub-layers and the date-range picker float over the map's lower edge instead of growing the bar. */
  html #atlasQuick:not(.aq-small) #atlasQuickSub:not([hidden]){
    position:absolute;left:calc(var(--aq-rail) + 6px);right:8px;top:calc(var(--aq-top) + 4px);z-index:12;
    justify-content:flex-start;padding:4px 6px;border-radius:12px;background:rgba(11,18,32,.86);
  }
  html #atlasQuick:not(.aq-small) #atlasQuickPeriod:not([hidden]){
    position:absolute;left:calc(var(--aq-rail) + 6px);right:8px;bottom:calc(var(--aq-bar) + 4px);z-index:12;
    padding:6px 10px;border-radius:12px;background:rgba(11,18,32,.94);gap:8px 12px;
  }

  /* Never auto-hide the controls (they used to fade out after a few seconds). */
  html #atlasQuick.aq-chrome-hidden .aq-top,
  html #atlasQuick.aq-chrome-hidden .aq-bar,
  html #atlasQuick.aq-chrome-hidden .aq-title{opacity:1!important;pointer-events:auto!important}

  /* "Fylla skjá" keeps its meaning: map only, playback row kept. The left column goes away with the chips. */
  html #atlasQuick.aq-fill:not(.aq-small) .aq-stage{margin-left:0}
  html #atlasQuick.aq-fill:not(.aq-small) #atlasQuickTypes{display:none}
  html #atlasQuick.aq-fill:not(.aq-small) .aq-heading{
    top:max(4px,env(safe-area-inset-top));height:auto;padding:3px 4px!important;border-radius:12px;background:rgba(11,18,32,.82)!important;
  }

  /* ======================================================================
     Lifandi kort (the live map)
     ====================================================================== */
  /* Sjór, Myndir and the other tab panels: a card at the lower left instead of a full-width band,
     so the map stays visible beside it. Its height is still set by the app (bottom edge = top of the time dock). */
  html.atlas-landscape-phone body #atlasModePeek#atlasModePeek{
    left:env(safe-area-inset-left,0px)!important;right:auto!important;width:min(390px,40vw)!important;
    max-height:calc(100dvh - 58px - var(--atlas-mode-peek-bottom,158px) - 6px);overflow-y:auto;border-radius:0 14px 0 0;
  }

  /* Tab bar: slimmer. Its height itself is set from landscape-91956.js (inline, so it can beat the app's inline value);
     here only the minimum heights that would keep it at 44px are lifted. */
  html.atlas-landscape-phone body.v9-map-first #phoneTabs#phoneTabs#phoneTabs{min-height:0!important;grid-template-rows:minmax(0,1fr)!important}
  html.atlas-landscape-phone body.v9-map-first #phoneTabs#phoneTabs#phoneTabs button{min-height:0!important;height:100%!important;padding-top:0;padding-bottom:0;font-size:13px}

  /* 9.19.58: the dock's grip no longer takes a 45px column of its own beside the time row; it sits in the dock's top-left corner. */
  html.atlas-landscape-phone body.v9-map-first.atlas-dock-slim #weatherGraphSystem[data-dock-mode="collapsed"] #graphDockHandle{
    position:absolute;left:max(9px,env(safe-area-inset-left));top:3px;z-index:3;
  }

  /* Pop-up windows (Stöðvar, graphs, camera, station, tools): the size toolbar was 81px tall, a quarter of the
     screen. Same three buttons and close button, just slimmer, and no drag grip (it cannot be reached by touch here). */
  html.atlas-landscape-phone body.v9-map-first .sized-panel.sized-panel .panel-size-controls .panel-size-grip{display:none!important}
  html.atlas-landscape-phone body.v9-map-first .sized-panel.sized-panel .panel-size-controls button[data-panel-size-choice]{height:36px!important;min-height:36px!important;padding-block:2px}
  html.atlas-landscape-phone body.v9-map-first .sized-panel.sized-panel .panel-size-controls{padding-bottom:4px;margin-bottom:4px;padding-right:46px}
  html.atlas-landscape-phone body.v9-map-first .panel-size-controls > .panel-size-close{inline-size:40px;block-size:36px;bottom:4px;font-size:20px}

  /* Camera window: details on the left, the picture on the right at the full height of the window. */
  html.atlas-landscape-phone body.v9-map-first .camera-sheet.sized-panel:not([data-panel-size="small"]) #inspectContent{
    display:grid!important;grid-template-columns:minmax(180px,32%) minmax(0,1fr);grid-template-rows:auto auto auto auto minmax(0,1fr);
    gap:4px 12px;align-content:stretch;overflow-y:auto!important;
  }
  html.atlas-landscape-phone body.v9-map-first .camera-sheet.sized-panel #inspectContent > .inspect-head{grid-column:1;grid-row:1}
  html.atlas-landscape-phone body.v9-map-first .camera-sheet.sized-panel #inspectContent > .metric-grid{grid-column:1;grid-row:2;grid-template-columns:1fr 1fr;gap:4px}
  html.atlas-landscape-phone body.v9-map-first .camera-sheet.sized-panel #inspectContent > .inspect-actions{grid-column:1;grid-row:4}
  html.atlas-landscape-phone body.v9-map-first .camera-sheet.sized-panel #inspectContent > .source-age{grid-column:1;grid-row:3;margin:0}
  html.atlas-landscape-phone body.v9-map-first .camera-sheet.sized-panel #inspectContent > #cameraStage{
    grid-column:2;grid-row:1 / -1;min-height:0;height:100%;max-height:100%;align-self:stretch;
  }
  html.atlas-landscape-phone body.v9-map-first .camera-sheet.sized-panel #cameraStage > img{width:100%;height:100%;max-height:100%;min-height:0;object-fit:contain}
  html.atlas-landscape-phone body.v9-map-first .camera-sheet.sized-panel #inspectContent > .metric-grid > div{padding:4px 8px}
  html.atlas-landscape-phone body.v9-map-first .camera-sheet.sized-panel #inspectContent > .inspect-head h2{font-size:18px;line-height:1.2}

  /* Map tabs (Kort, Sjór, Myndir): the map runs up behind the top buttons instead of starting below a solid 58px bar.
     The bar's own look is kept as small dark pills, so nothing becomes harder to read. Vegir (land mode) is left alone. */
  html.atlas-landscape-phone body.v9-map-first:not(.land-mode) header.topbar{
    position:absolute;left:0;right:0;top:0;height:58px;background:transparent!important;border-color:transparent!important;
    box-shadow:none!important;pointer-events:none;
  }
  /* 9.19.58: the Veður/Sjór/Land/Verkfæri pill is not shown (the app already hides it below 851px; the tab bar at the bottom has the same
     switches), so the top row can be: "VÍ-Static kort" | layer chips that swipe sideways | ⟲ Valmynd. */
  html.atlas-landscape-phone body.v9-map-first:not(.land-mode) header.topbar .nav{display:none!important}
  html.atlas-landscape-phone body.v9-map-first:not(.land-mode) header.topbar .brand{visibility:hidden;pointer-events:none}   /* it sat hidden behind the VÍ-Static button before; stays hidden */
  html.atlas-landscape-phone body.v9-map-first:not(.land-mode) #atlasPhoneTop{
    left:max(8px,env(safe-area-inset-left))!important;right:max(8px,env(safe-area-inset-right))!important;width:auto!important;
  }
  html.atlas-landscape-phone body.v9-map-first:not(.land-mode) #layerChips#layerChips{
    left:calc(max(8px,env(safe-area-inset-left)) + 116px)!important;
    right:calc(max(8px,env(safe-area-inset-right)) + 144px)!important;width:auto!important;
    flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none;
    overscroll-behavior-x:contain;touch-action:pan-x;
  }
  html.atlas-landscape-phone body.v9-map-first:not(.land-mode) #layerChips::-webkit-scrollbar{display:none}
  html.atlas-landscape-phone body.v9-map-first:not(.land-mode) #layerChips > *{flex:0 0 auto}
  html.atlas-landscape-phone body.v9-map-first:not(.land-mode) #surfaceFrameTrust{left:max(12px,calc(env(safe-area-inset-left) + 4px))}
  html.atlas-landscape-phone body.v9-map-first:not(.land-mode) #atlasMapPicker{left:max(10px,calc(env(safe-area-inset-left) + 2px))}
  html.atlas-landscape-phone body.v9-map-first:not(.land-mode) .c9-compass,
  html.atlas-landscape-phone body.v9-map-first:not(.land-mode) .c9-zoom{right:calc(10px + env(safe-area-inset-right))!important}
  html.atlas-landscape-phone body.v9-map-first:not(.land-mode) #marineMap > .maplibregl-control-container .maplibregl-ctrl-top-right{margin-top:50px;margin-right:env(safe-area-inset-right)}

  /* ======================================================================
     9.19.59 — the live map's three zones (set up by landscape-91956.js, html.atlas-lr):
       1. top strip     VÍ-Static kort | layer chips (swipe) or the Sjór / Myndir card | Landsspá | ⟲ | ⛶
       2. right column  ☰ Valmynd, compass, zoom + / −, location, base map — evenly spaced, nothing overlapping
       3. bottom band   date/time chip, Tímabil, …, the ruler, then Núna ‹ ▶ › at the right edge, and the tab bar
     Everything else is clean map. The label of the shown layer and the date chip over the map are not shown (the highlighted chip and the
     chip in the dock say the same); the map credit is a small ⓘ at the right end of the tab bar.
     ====================================================================== */
  html.atlas-lr body.v9-map-first:not(.land-mode) #surfaceFrameTrust,
  html.atlas-lr body.v9-map-first:not(.land-mode) #frameTrustHide{display:none!important}

  /* -- top strip -- */
  html.atlas-lr body.v9-map-first #atlasMapReset#atlasMapReset#atlasMapReset{
    position:fixed!important;left:var(--lr-reset-x)!important;right:auto!important;top:8px!important;margin:0!important;
    width:36px!important;height:36px!important;min-width:0!important;padding:0!important;z-index:140;
  }
  html.atlas-lr body.v9-map-first:not(.land-mode) #atlasMapPicker#atlasMapPicker#atlasMapPicker{left:var(--lr-amp-x)!important;right:auto!important;max-width:none!important;width:auto!important;top:8px!important;margin:0!important;z-index:140}
  html.atlas-lr body.v9-map-first:not(.land-mode) #atlasMapPicker .amp-btn{height:36px;min-height:0}
  html.atlas-lr body.v9-map-first:not(.land-mode) #layerChips#layerChips{
    left:var(--lr-mid-l)!important;right:auto!important;width:var(--lr-mid-w)!important;max-width:var(--lr-mid-w)!important;height:36px;align-items:center;
    padding:0;margin:0;
    overflow-x:auto!important;overflow-y:hidden!important;flex-wrap:nowrap;
  }
  html.atlas-lr body.v9-map-first:not(.land-mode) #layerChips > *{height:34px;min-height:0}
  #atlasLsFs{display:none}
  html.atlas-lr #atlasLsFs:not([hidden]){
    display:grid;place-items:center;position:fixed;z-index:210;left:var(--lr-fs-x,0);top:var(--lr-fs-y,8px);width:36px;height:36px;margin:0;padding:0;
    border-radius:12px;border:1px solid rgba(232,237,242,.22);background:rgba(24,30,36,.94);color:#e8edf2;font:600 20px/1 system-ui,-apple-system,sans-serif;
    cursor:pointer;-webkit-tap-highlight-color:transparent;
  }
  html.atlas-lr.atlas-ls-full #atlasLsFs:not([hidden]){width:40px;height:40px;border-radius:999px;font-size:18px}

  /* -- right column -- */
  html.atlas-lr body.v9-map-first #phoneMenuButton#phoneMenuButton#phoneMenuButton{
    position:fixed!important;left:auto!important;right:calc(8px + env(safe-area-inset-right,0px))!important;top:var(--lr-y-menu,8px)!important;
    width:44px!important;min-width:0!important;height:var(--lr-btn,34px)!important;min-height:0!important;margin:0!important;padding:0!important;
    display:grid;place-items:center;z-index:140;
    background:rgba(24,30,36,.92)!important;color:#e8edf2!important;border:1px solid rgba(232,237,242,.22)!important;border-radius:12px!important;
  }
  html.atlas-lr body.v9-map-first #phoneMenuButton .valmynd-text{display:none}
  html.atlas-lr body.v9-map-first:not(.land-mode) .c9-compass{
    left:auto!important;right:calc(8px + env(safe-area-inset-right,0px))!important;top:var(--lr-y-compass,8px)!important;
    transform:scale(var(--lr-cs,.6))!important;transform-origin:100% 0!important;
  }
  html.atlas-lr body.v9-map-first:not(.land-mode) .c9-zoom{
    left:auto!important;right:calc(8px + env(safe-area-inset-right,0px))!important;top:var(--lr-y-zoom,60px)!important;
  }
  html.atlas-lr body.v9-map-first:not(.land-mode) .c9-zoom button{width:42px;height:var(--lr-btn,34px);font-size:20px;padding:0}
  html.atlas-lr body.v9-map-first:not(.land-mode) #marineMap > .maplibregl-control-container .maplibregl-ctrl-top-right{
    position:fixed!important;left:auto!important;right:calc(8px + env(safe-area-inset-right,0px))!important;top:var(--lr-y-ml,120px)!important;bottom:auto!important;
    margin:0!important;width:44px!important;overflow:visible!important;z-index:30;
  }
  html.atlas-lr body.v9-map-first:not(.land-mode) .maplibregl-ctrl-top-right .maplibregl-ctrl-group:has(.maplibregl-ctrl-zoom-in){display:none!important}
  html.atlas-lr body.v9-map-first:not(.land-mode) .maplibregl-ctrl-top-right .maplibregl-ctrl{float:none!important;margin:0 0 var(--lr-gap,4px) 0!important;width:44px}
  html.atlas-lr body.v9-map-first:not(.land-mode) :is(#marineMap,#landMap) .maplibregl-ctrl-top-right .maplibregl-ctrl-group button{width:42px!important;min-width:0!important;height:var(--lr-btn,34px)!important;min-height:0!important}
  html.atlas-lr body.v9-map-first:not(.land-mode) .maplibregl-ctrl-top-right .maplibregl-ctrl:last-child{margin-bottom:0!important}
  /* map credit: a small ⓘ at the right end of the tab bar (it opens to the left when tapped) */
  html.atlas-lr body.v9-map-first :is(#marineMap,#landMap) > .maplibregl-control-container > .maplibregl-ctrl-bottom-right.maplibregl-ctrl-bottom-right.maplibregl-ctrl-bottom-right{
    position:fixed!important;left:auto!important;top:auto!important;right:env(safe-area-inset-right,0px)!important;
    bottom:calc(var(--atlas-vv-b,0px) + env(safe-area-inset-bottom,0px))!important;margin:0!important;z-index:260;
  }
  html.atlas-lr body.v9-map-first .maplibregl-ctrl-attrib:not(.atlas-attr-show) .maplibregl-ctrl-attrib-inner{display:none!important}
  html.atlas-lr body.v9-map-first .maplibregl-ctrl-attrib.atlas-attr-show .maplibregl-ctrl-attrib-inner a{color:#bfe3ff!important}
  html.atlas-lr body.v9-map-first .maplibregl-ctrl-attrib.atlas-attr-show .maplibregl-ctrl-attrib-inner{display:block!important;color:#e8edf2!important;max-width:min(520px,calc(100vw - 80px));background:rgba(11,18,32,.94);border-radius:10px;padding:4px 8px}
  html.atlas-lr body.v9-map-first .maplibregl-ctrl-bottom-right .maplibregl-ctrl-attrib{margin:0!important;min-height:30px;background:transparent}
  html.atlas-lr body.v9-map-first .maplibregl-ctrl-bottom-right .maplibregl-ctrl-attrib+.maplibregl-ctrl-attrib{display:none!important}
  html.atlas-lr body.v9-map-first .maplibregl-ctrl-bottom-right .maplibregl-ctrl-attrib.maplibregl-ctrl-attrib:not(.atlas-attr-show){width:30px!important;min-width:30px!important;background:transparent!important;box-shadow:none!important}
  html.atlas-lr body.v9-map-first .maplibregl-ctrl-bottom-right .maplibregl-ctrl-attrib.maplibregl-compact{min-width:30px!important;min-height:30px!important;height:30px!important}
  html.atlas-lr body.v9-map-first .maplibregl-ctrl-bottom-right .maplibregl-ctrl-attrib-button{width:30px;height:30px}
  html.atlas-lr body.v9-map-first #phoneTabs#phoneTabs#phoneTabs{padding-right:calc(env(safe-area-inset-right,0px) + 30px)}

  /* an open sheet (graphs, station, camera) sits above the strip and the right column instead of sharing the same pixels */
  html.atlas-lr.atlas-lr-over body.v9-map-first :is(#atlasPhoneTop,#layerChips#layerChips,#atlasMapPicker#atlasMapPicker#atlasMapPicker,#atlasMapReset#atlasMapReset#atlasMapReset,#atlasLsFs,#phoneMenuButton#phoneMenuButton#phoneMenuButton,.c9-compass,.c9-zoom,#atlasModePeek,.atlas-wave-legend-float){z-index:2!important}
  /* Tímabil panel: it sits above the dock and used to run off the top of a short screen; now it scrolls inside the free height */
  html.atlas-lr #loopPicker#loopPicker{max-height:calc(100dvh - var(--lr-pop-gap,112px) - 8px)!important;overflow-y:auto!important}
  /* -- bottom band: date/time chip at the left of the dock row -- */
  html.atlas-lr body.v9-map-first:not(.land-mode) .slider-bubble.time-box{
    position:fixed!important;left:var(--lr-chip-left,10px)!important;right:auto!important;top:auto!important;bottom:var(--lr-chip-bottom,13px)!important;
    transform:none!important;width:182px!important;max-width:182px!important;height:36px;box-sizing:border-box;margin:0;padding:0 10px!important;
    display:var(--lr-chip-disp,flex)!important;align-items:center;justify-content:space-between;gap:4px;border-radius:12px;z-index:60;
  }
  html.atlas-lr body.v9-map-first:not(.land-mode) .slider-bubble.time-box::after{display:none}
  html.atlas-lr body.v9-map-first:not(.land-mode) .slider-bubble.time-box b{font-size:13px;line-height:1;white-space:nowrap;display:flex;gap:3px}
  html.atlas-lr body.v9-map-first:not(.land-mode) .slider-bubble.time-box > span{display:none!important}
  html.atlas-lr body.v9-map-first:not(.land-mode) .slider-bubble.time-box .time-box-caret{font-size:11px;margin:0}
  /* playback buttons: proper touch targets, same height, even gaps */
  html.atlas-lr:not(.atlas-dev-phone) body.v9-map-first.atlas-dock-slim #timeDock :is(#timePrev,#timeNext){width:42px!important;min-width:42px!important;height:42px!important}
  html.atlas-lr:not(.atlas-dev-phone) body.v9-map-first.atlas-dock-slim #timeDock #timePlay{width:46px!important;min-width:46px!important;height:46px!important}
  html.atlas-lr:not(.atlas-dev-phone) body.v9-map-first.atlas-dock-slim #timeDock :is(#rowNow,#rowLoop,#rowMore){height:40px!important;min-height:0!important}

  /* -- Sjór / Myndir card becomes part of the top strip -- */
  html.atlas-lr body.v9-map-first:not(.land-mode) #atlasModePeek#atlasModePeek{
    position:fixed;left:var(--lr-mid-l)!important;top:8px!important;bottom:auto!important;right:auto!important;
    width:auto!important;max-width:calc(var(--lr-mid-w) - 150px)!important;height:36px!important;max-height:none!important;
    padding:0!important;margin:0!important;background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;overflow:visible!important;
    z-index:140;
  }
  html.atlas-lr body.v9-map-first:not(.land-mode) #atlasModePeek .atlas-peek-handle{display:none!important}
  html.atlas-lr body.v9-map-first:not(.land-mode) #atlasModePeekBody{
    display:flex!important;flex-direction:row;align-items:center;gap:6px;height:36px;padding:0!important;margin:0!important;overflow:visible;
  }
  html.atlas-lr body.v9-map-first:not(.land-mode) #atlasModePeek .atlas-slim-chips{display:flex!important;flex-direction:row;align-items:center;gap:6px;height:36px;padding:0;margin:0;overflow:visible}
  html.atlas-lr body.v9-map-first:not(.land-mode) #atlasModePeek :is(.atlas-vitar-button,.sea-forecast-menu > summary,.sea-chart-controls > summary,.atlas-peek-more,.atlas-peek-legend){
    height:36px!important;min-height:0!important;box-sizing:border-box;white-space:nowrap;
  }
  html.atlas-lr body.v9-map-first:not(.land-mode) #atlasModePeek .atlas-peek-more{width:36px;min-width:36px;padding:0}
  html.atlas-lr body.v9-map-first:not(.land-mode) #atlasModePeek :is(.sea-forecast-menu,.sea-chart-controls){position:relative;margin:0;padding:0;width:auto;flex:0 0 auto}
  html.atlas-lr body.v9-map-first:not(.land-mode) #atlasModePeek .sea-chart-controls > summary > span{display:none}
  html.atlas-lr body.v9-map-first:not(.land-mode) #atlasModePeek :is(.sea-forecast-options,.sea-chart-control-body){
    position:absolute;top:calc(100% + 6px);left:0;z-index:300;width:min(340px,calc(100vw - 120px));max-height:var(--lr-overlay-max,150px);overflow-y:auto;
    box-sizing:border-box;padding:8px;border-radius:12px;background:#0b1f28;border:1px solid rgba(232,237,242,.18);box-shadow:0 8px 24px rgba(0,0,0,.5);
  }
  html.atlas-lr body.v9-map-first:not(.land-mode) #atlasModePeek .sea-forecast-options{display:grid;grid-template-columns:1fr 1fr;gap:6px;width:min(300px,calc(100vw - 120px))}
  html.atlas-lr body.v9-map-first:not(.land-mode) #atlasModePeek .sea-forecast-options button{width:auto;min-height:36px}
  html.atlas-lr body.v9-map-first:not(.land-mode) #atlasModePeek .atlas-peek-extra{
    position:absolute;top:calc(100% + 6px);right:0;z-index:300;max-height:var(--lr-overlay-max,150px);overflow:auto;padding:8px;border-radius:12px;background:#0b1f28;border:1px solid rgba(232,237,242,.18);box-shadow:0 8px 24px rgba(0,0,0,.5);
  }
  html.atlas-lr body.v9-map-first:not(.land-mode) #atlasModePeek .atlas-slim-chips{min-width:0;flex:1 1 auto}
  html.atlas-lr body.v9-map-first:not(.land-mode) #atlasModePeek .atlas-peek-legend{
    color:#f4f7fb!important;background:#151e2e!important;opacity:1!important;border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:0 10px!important;font-weight:700;
    min-width:0;overflow:hidden;text-overflow:ellipsis;
  }
  html.atlas-lr body.v9-map-first:not(.land-mode) #atlasModePeek .atlas-peek-more{position:relative;z-index:2;flex:0 0 36px}
  html.atlas-lr body.v9-map-first:not(.land-mode) .atlas-wave-legend-float{
    position:fixed!important;left:var(--lr-legend-x,8px)!important;top:var(--lr-legend-y,14px)!important;right:auto!important;bottom:auto!important;margin:0!important;z-index:130;
  }
  /* Sjór only: one swipeable row, same idea as the Veður chips. The chart control used to drop onto a second grid row and cover Ölduspá. */
  html.atlas-lr body.v9-map-first.atlas-sea-mode #atlasModePeek#atlasModePeek{
    left:0!important;top:0!important;width:0!important;height:0!important;max-width:none!important;overflow:visible!important;pointer-events:none!important;background:none!important;
  }
  html.atlas-lr body.v9-map-first.atlas-sea-mode #atlasModePeek :is(.atlas-mode-peek-body,#atlasModePeekBody){
    display:flex!important;flex-flow:row nowrap!important;align-items:center!important;gap:6px!important;
    grid-template-columns:none!important;width:max-content!important;min-width:100%!important;max-width:none!important;height:36px!important;
    overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;touch-action:pan-x;
  }
  html.atlas-lr body.v9-map-first.atlas-sea-mode #atlasModePeek :is(.atlas-mode-peek-body,#atlasModePeekBody)::-webkit-scrollbar{display:none}
  html.atlas-lr body.v9-map-first.atlas-sea-mode #atlasModePeek :is(.atlas-slim-chips,.sea-forecast-menu,.sea-chart-controls,.atlas-peek-more,#openReferencePlayer){
    flex:0 0 auto!important;width:auto!important;max-width:none!important;min-width:max-content!important;grid-column:auto!important;position:relative!important;
  }
  html.atlas-lr body.v9-map-first.atlas-sea-mode #atlasModePeek .atlas-slim-chips{display:flex!important;flex-flow:row nowrap!important;overflow:visible!important;height:36px!important;order:1}
  html.atlas-lr body.v9-map-first.atlas-sea-mode #atlasModePeek .sea-chart-controls{order:2}
  html.atlas-lr body.v9-map-first.atlas-sea-mode #atlasModePeek .atlas-peek-more{order:3;width:34px!important;min-width:34px!important;height:34px!important}
  html.atlas-lr body.v9-map-first.atlas-sea-mode #atlasModePeek :is(.atlas-vitar-button,.sea-forecast-menu > summary,.sea-chart-controls > summary,#openReferencePlayer){
    height:34px!important;min-height:0!important;max-height:34px!important;padding:0 10px!important;font-size:13px!important;font-weight:700!important;line-height:1!important;
    white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;width:auto!important;max-width:none!important;
  }
  html.atlas-lr body.v9-map-first.atlas-sea-mode #atlasModePeek .sea-chart-controls > summary > b{font-size:13px!important;white-space:nowrap!important;overflow:visible!important}
  html.atlas-lr body.v9-map-first.atlas-sea-mode #atlasModePeek .sea-forecast-menu > summary{display:inline-flex!important;align-items:center;gap:4px;list-style:none}
  html.atlas-lr body.v9-map-first.atlas-sea-mode #atlasModePeek .sea-forecast-menu > summary::-webkit-details-marker{display:none}
  html.atlas-lr body.v9-map-first.atlas-sea-mode #atlasModePeek .sea-forecast-menu > summary::after{content:'▾';font-size:12px;line-height:1}
  html.atlas-lr body.v9-map-first.atlas-sea-mode #atlasModePeek .sea-forecast-menu[open]{width:auto!important}
  html.atlas-lr body.v9-map-first.atlas-sea-mode :is(#atlasModePeek,#atlasLandStrip) :is(.sea-forecast-options,.sea-chart-control-body,.atlas-peek-extra){position:fixed!important;top:48px!important;left:env(safe-area-inset-left,0px)!important;right:auto!important;pointer-events:auto!important}
  html.atlas-lr body.v9-map-first.atlas-sea-mode #atlasPhoneTop{width:0!important;height:0!important;overflow:visible!important;pointer-events:none!important}
  html.atlas-lr body.v9-map-first.atlas-sea-mode .atlas-wave-legend-float{height:26px;padding:0 6px!important;font-size:10px!important;gap:4px!important}
  html.atlas-lr body.v9-map-first.atlas-sea-mode .atlas-wave-legend-float i{width:44px!important;height:6px!important}

  /* -- Vegir (land mode): same three zones. Færðin / Vegleið / Verkfæri stack in a narrow left column with the time chip and Skýringar
        at its bottom; ⌂ ◎ ◫, Fullur skjár and the zoom buttons share the right column with Valmynd. -- */
  html.atlas-landscape-phone body.v9-map-first.land-mode header.topbar{
    position:absolute;left:0;right:0;top:0;height:58px;background:transparent!important;border-color:transparent!important;box-shadow:none!important;pointer-events:none;
  }
  html.atlas-landscape-phone body.v9-map-first.land-mode header.topbar :is(.nav,.brand){display:none!important}
  html.atlas-lr body.v9-map-first.land-mode #atlasPhoneTop{left:env(safe-area-inset-left,0px)!important;right:auto!important;width:0!important;height:0!important;overflow:visible!important;pointer-events:none!important}
  html.atlas-lr body.v9-map-first #openReferencePlayer#openReferencePlayer{flex:0 0 auto;white-space:nowrap;width:auto;min-width:0}
  html.atlas-lr body.v9-map-first #openReferencePlayer .vi-label-full{white-space:nowrap}
  html.atlas-lr body.v9-map-first:is(.land-mode,.atlas-sea-mode) #atlasLandStrip{
    position:fixed;left:env(safe-area-inset-left,0px);top:8px;z-index:140;display:flex;flex-flow:row nowrap;align-items:center;gap:6px;
    width:var(--lr-land-strip-w,calc(100vw - 64px));height:36px;margin:0;padding:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;
    -webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;touch-action:pan-x;
  }
  html.atlas-lr body.v9-map-first.land-mode #atlasLandStrip::-webkit-scrollbar{display:none}
  html.atlas-lr body.v9-map-first:is(.land-mode,.atlas-sea-mode) #atlasLandStrip #openReferencePlayer{
    position:static!important;left:auto!important;top:auto!important;right:auto!important;bottom:auto!important;transform:none!important;
    display:inline-flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;
    width:auto!important;min-width:max-content!important;height:34px!important;min-height:0!important;padding:0 10px!important;font-size:13px!important;
  }
  html.atlas-lr body.v9-map-first:is(.land-mode,.atlas-sea-mode) #atlasPhoneTop #openReferencePlayer{display:none!important;pointer-events:none!important}
  html.atlas-lr body.v9-map-first.atlas-sea-mode #atlasLandStrip :is(.atlas-vitar-button,.sea-forecast-menu,.sea-chart-controls){
    position:static!important;flex:0 0 auto!important;width:auto!important;max-width:none!important;min-width:max-content!important;pointer-events:auto!important;
  }
  html.atlas-lr body.v9-map-first.atlas-sea-mode #atlasLandStrip :is(.atlas-vitar-button,.sea-forecast-menu > summary,.sea-chart-controls > summary){
    height:34px!important;min-height:0!important;padding:0 10px!important;font-size:13px!important;white-space:nowrap!important;width:auto!important;max-width:none!important;
  }
  html.atlas-lr body.v9-map-first.atlas-sea-mode #atlasLandStrip .sea-chart-controls > summary > span{display:none!important}
  html.atlas-lr body.v9-map-first.land-mode #atlasLandStrip #landOverviewTools#landOverviewTools{
    position:static!important;left:auto!important;top:auto!important;right:auto!important;bottom:auto!important;
    width:auto!important;display:flex!important;visibility:visible!important;flex-direction:row!important;align-items:center;gap:6px!important;margin:0!important;padding:0!important;z-index:auto;
  }
  html.atlas-lr body.v9-map-first.land-mode #atlasLandStrip :is(#landOverviewConditions,#landOverviewRoute,#landOverviewOptions,#landRoadLegend){
    width:auto!important;height:34px!important;min-height:0!important;padding:0 10px!important;margin:0!important;font-size:13px;white-space:nowrap;
    display:inline-flex!important;visibility:visible!important;align-items:center;justify-content:center;flex:0 0 auto;
  }
  html.atlas-lr body.v9-map-first.land-mode #landRoadUpdated{display:none!important}
  html.atlas-lr body.v9-map-first.land-mode #landUi .land-overview-legend{display:none!important}
  html.atlas-lr body.v9-map-first.land-mode #landOverviewRoadMenu:not([hidden]){
    position:fixed!important;left:env(safe-area-inset-left,0px)!important;top:48px!important;right:auto!important;bottom:auto!important;
    width:min(240px,calc(100vw - 72px))!important;max-height:var(--lr-overlay-max,150px)!important;overflow-y:auto;
    display:grid!important;grid-template-columns:1fr!important;background:#f7fbfb!important;border:1px solid #8faaa9!important;border-radius:10px!important;
    box-shadow:0 10px 28px rgba(0,0,0,.4);z-index:220;padding:6px!important;
  }
  html.atlas-lr body.v9-map-first.land-mode #landOverviewRoadMenu > button{background:transparent!important;border:0!important;border-radius:6px;width:100%}
  html.atlas-lr body.v9-map-first.land-mode #landSheet > .panel-size-controls{
    position:absolute!important;left:0!important;top:0!important;width:0!important;height:0!important;max-height:0!important;
    margin:0!important;padding:0!important;border:0!important;overflow:hidden!important;visibility:hidden!important;
    pointer-events:none!important;clip:rect(0,0,0,0)!important;
  }
  html.atlas-lr body.v9-map-first.land-mode #landSheet#landSheet,
  html.atlas-lr body.v9-map-first.land-mode #landSheet#landSheet.road-details-open,
  html.atlas-lr body.v9-map-first.land-mode #landSheet#landSheet[data-panel-size="full"]{
    position:fixed!important;top:env(safe-area-inset-top,0px)!important;bottom:var(--road-tab-bottom,44px)!important;
    left:env(safe-area-inset-left,0px)!important;right:env(safe-area-inset-right,0px)!important;width:auto!important;height:auto!important;max-height:none!important;
    overflow:hidden!important;z-index:1200!important;
  }
  html.atlas-lr body.v9-map-first.land-mode #landSheet :is(#atlasRoadsPanel,#landContent,#atlasRoadDetails,.land-modes){
    min-height:0;
  }
  html.atlas-lr body.v9-map-first.land-mode #landSheet #atlasRoadsPanel{flex:1 1 auto!important;overflow:hidden!important}
  html.atlas-lr body.v9-map-first.land-mode #landSheet :is(#atlasRoadDetails,#landContent){overflow:auto!important;flex:1 1 auto}
  html.atlas-lr body.v9-map-first.land-mode #landUi .land-overview-legend{display:none!important}
  html.atlas-lr body.v9-map-first.land-mode #landUi .land-map-tools{
    position:fixed!important;left:auto!important;right:calc(8px + env(safe-area-inset-right,0px))!important;top:var(--lr-y-ltools,60px)!important;bottom:auto!important;
    display:flex!important;flex-direction:column!important;gap:var(--lr-gap,4px)!important;width:44px!important;margin:0!important;padding:0!important;z-index:120;
  }
  html.atlas-lr body.v9-map-first.land-mode #landUi .land-map-tools > button{width:44px!important;height:var(--lr-btn,34px)!important;min-height:0!important;min-width:0!important;padding:0!important;font-size:18px}
  html.atlas-lr body.v9-map-first.land-mode #landUi .land-map-tools #landStyleMenu{right:calc(100% + 6px)!important;left:auto!important;top:0!important}
  html.atlas-lr body.v9-map-first.land-mode #landUi #landHideUi#landHideUi{
    position:fixed!important;left:auto!important;right:calc(8px + env(safe-area-inset-right,0px))!important;top:var(--lr-y-lfull,200px)!important;bottom:auto!important;
    width:44px!important;min-width:0!important;height:var(--lr-btn,34px)!important;min-height:0!important;margin:0!important;padding:0!important;display:grid!important;place-items:center;z-index:120;
  }
  html.atlas-lr body.v9-map-first.land-mode #landUi #landHideUi > span{display:none}
  html.atlas-lr body.v9-map-first.land-mode #landMap > .maplibregl-control-container .maplibregl-ctrl-top-right{
    position:fixed!important;left:auto!important;right:calc(8px + env(safe-area-inset-right,0px))!important;top:var(--lr-y-lctl,240px)!important;bottom:auto!important;
    margin:0!important;width:44px!important;z-index:30;
  }
  html.atlas-lr body.v9-map-first.land-mode #landMap .maplibregl-ctrl-top-right .maplibregl-ctrl{float:none!important;margin:0!important;width:44px}
  html.atlas-lr body.v9-map-first.land-mode #landMap .maplibregl-ctrl-top-right .maplibregl-ctrl-group button{width:42px!important;height:var(--lr-btn,34px)!important}
  html.atlas-lr body.v9-map-first.land-mode #landMap .maplibregl-ctrl-top-right .maplibregl-ctrl-group{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;width:44px!important;height:auto!important;margin:0 0 var(--lr-gap,4px)!important}

  /* -- full-screen view (⛶): only the compass, the date/time chip and the playback buttons stay over the map -- */
  html.atlas-lr.atlas-ls-full body.v9-map-first:not(.land-mode) :is(
    #atlasPhoneTop,#layerChips,#atlasMapPicker,#atlasModePeek,.atlas-wave-legend-float,.c9-zoom,#phoneTabs,#graphDockHandle,
    #mapLegend,#legendPeek,#isoLegendChip,#isoLegendPop,.layer-rail,
    #marineMap > .maplibregl-control-container .maplibregl-ctrl-top-right,
    #marineMap > .maplibregl-control-container .maplibregl-ctrl-bottom-right
  ){visibility:hidden!important;pointer-events:none!important}
  /* 9.19.75b: full-screen keeps the whole time slider (date, ticks, Núna, play) */



  html.atlas-lr:not(.atlas-dev-phone).atlas-ls-full body.v9-map-first:not(.land-mode) #weatherGraphSystem :is(#rowNow,#timePrev,#timePlay,#timeNext){
    pointer-events:auto!important;background:rgba(24,30,36,.92)!important;
  }
  html.atlas-lr:not(.atlas-dev-phone).atlas-ls-full body.v9-map-first:not(.land-mode) #timePlay{background:#e8edf2!important}


  html.atlas-lr:not(.atlas-dev-phone).atlas-ls-full body.v9-map-first:not(.land-mode) #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem #timeDock#timeDock#timeDock :is(#rowNow,#timePrev,#timePlay,#timeNext){visibility:visible!important;pointer-events:auto!important;background:rgba(24,30,36,.92)!important;color:#e8edf2!important;border:1px solid rgba(232,237,242,.28)!important}
  html.atlas-lr:not(.atlas-dev-phone).atlas-ls-full body.v9-map-first:not(.land-mode) #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem #timeDock#timeDock#timeDock #timePlay{background:#e8edf2!important;color:#14181c!important}
  html.atlas-lr.atlas-ls-full body.v9-map-first :is(#marineMap,#landMap) > .maplibregl-control-container > .maplibregl-ctrl-bottom-right.maplibregl-ctrl-bottom-right.maplibregl-ctrl-bottom-right.maplibregl-ctrl-bottom-right, html.atlas-lr.atlas-ls-full body.v9-map-first :is(#marineMap,#landMap) > .maplibregl-control-container > .maplibregl-ctrl-bottom-right.maplibregl-ctrl-bottom-right.maplibregl-ctrl-bottom-right.maplibregl-ctrl-bottom-right *{visibility:hidden!important;pointer-events:none!important}
  html.atlas-lr body.v9-map-first:not(.land-mode) .slider-bubble.time-box .time-box-time{display:inline!important}
  html.atlas-lr.atlas-ls-full body.v9-map-first:not(.land-mode) .slider-bubble.time-box{z-index:80}

  /* Station list and the enlarged camera picture already had a side-by-side layout for very short windows (320px).
     Same layout, now for every short landscape phone, so the list shows several rows instead of one. */

  html.atlas-landscape-phone body.v9-map-first #stationBrowser.sized-panel.sized-panel:not([hidden]):not([data-panel-size="small"]) {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    grid-template-rows: 52px auto minmax(0,1fr);
    gap: 5px 8px;
  }
  html.atlas-landscape-phone body.v9-map-first #stationBrowser.sized-panel > header { display: none !important; }
  html.atlas-landscape-phone body.v9-map-first #stationBrowser.sized-panel > :is(.panel-size-controls,.station-list) { grid-column: 1 / -1; }
  html.atlas-landscape-phone body.v9-map-first #stationBrowser.sized-panel > :is(.harbour-search,.station-tools) { margin-block: 0; align-self: center; }
  html.atlas-landscape-phone body.v9-map-first #stationBrowser.sized-panel > .station-tools label { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 5px; }
  html.atlas-landscape-phone body.v9-map-first #mediaDialog.sized-panel[open]:not([data-panel-size="small"]) {
    display: grid !important;
    grid-template-columns: minmax(120px,24%) minmax(0,1fr);
    grid-template-rows: 48px auto minmax(0,1fr);
    gap: 6px 10px;
  }
  html.atlas-landscape-phone body.v9-map-first #mediaDialog.sized-panel > .panel-size-controls { grid-column: 1 / -1; }
  html.atlas-landscape-phone body.v9-map-first #mediaDialog.sized-panel #mediaStage {
    grid-column: 2;
    grid-row: 2 / -1;
    min-height: 0;
    aspect-ratio: auto;
    margin: 0;
  }
  html.atlas-landscape-phone body.v9-map-first #mediaDialog.sized-panel #mediaStage > :is(img,video,iframe) { min-height: 0; }
  html.atlas-landscape-phone body.v9-map-first #mediaDialog.sized-panel > #mediaSource { grid-row: 3; margin: 0; }
}

html.atlas-lr:not(.atlas-dev-phone) body.v9-map-first.atlas-fs #timeDock #rowLoop,
html.atlas-lr:not(.atlas-dev-phone) body.v9-map-first.atlas-fs #timeDock #loopToggle,
html.atlas-lr:not(.atlas-dev-phone) body.v9-map-first.atlas-fs #timeDock #loopSpeed{height:28px!important;min-height:28px!important;min-width:0!important;padding:0 6px!important;font-size:11px!important}
html.atlas-lr:not(.atlas-dev-phone) body.v9-map-first.atlas-fs #timeDock #loopSpeed{width:28px!important;flex:0 0 28px!important}
