/* ATLAS 9.17.0 — the Pro page on phones (html.atlas-pro-phone). Layout only: same map, layers, markers and features as desktop.
   Monochrome chrome, more map, a compact thumb-reachable dock. Desktop never matches these selectors. */
html.atlas-pro-phone{--pp-bg:rgba(12,16,20,.86);--pp-line:rgba(255,255,255,.13);--pp-fg:#eef2f4;--pp-dim:rgba(238,242,244,.62);--pp-r:12px;}
html.atlas-pro-phone body #mSwitch#mSwitch{display:none!important;}
/* top bar: two compact buttons + one-line source strip */
html.atlas-pro-phone body #openReferencePlayer#openReferencePlayer,html.atlas-pro-phone body #phoneMenuButton#phoneMenuButton{top:calc(8px + env(safe-area-inset-top))!important;height:36px!important;min-height:36px!important;padding:0 12px!important;font-size:13px!important;font-weight:700!important;border-radius:10px!important;background:var(--pp-bg)!important;border:1px solid var(--pp-line)!important;color:var(--pp-fg)!important;box-shadow:0 2px 10px rgba(0,0,0,.25)!important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);}
html.atlas-pro-phone body #openReferencePlayer#openReferencePlayer{left:8px!important;}
html.atlas-pro-phone body #phoneMenuButton#phoneMenuButton{left:auto!important;right:auto!important;left:calc(8px + var(--pp-ref-w,128px) + 8px)!important;}
html.atlas-pro-phone body #openReferencePlayer#openReferencePlayer svg,html.atlas-pro-phone body #openReferencePlayer#openReferencePlayer img{width:18px!important;height:18px!important;}
html.atlas-pro-phone body #surfaceFrameTrust#surfaceFrameTrust{top:calc(48px + env(safe-area-inset-top))!important;left:8px!important;right:96px!important;max-width:none!important;height:20px!important;max-height:20px!important;padding:3px 22px 3px 8px!important;font-size:11px!important;line-height:14px!important;border-radius:7px!important;background:rgba(12,16,20,.72)!important;border:0!important;color:var(--pp-fg)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
html.atlas-pro-phone body #frameTrustHide{color:var(--pp-fg);font-size:14px!important;}
/* right controls: pinch replaces +/−; compact locate, compass and basemap */
html.atlas-pro-phone body .maplibregl-ctrl-top-right{top:calc(env(safe-area-inset-top))!important;}
html.atlas-pro-phone body .maplibregl-ctrl-top-right .maplibregl-ctrl-group:has(.maplibregl-ctrl-zoom-in){display:none!important;}
html.atlas-pro-phone body .maplibregl-ctrl-top-right .maplibregl-ctrl{margin:8px 8px 0 0!important;}
html.atlas-pro-phone body .maplibregl-ctrl-group{background:var(--pp-bg)!important;border:1px solid var(--pp-line)!important;border-radius:10px!important;box-shadow:none!important;}
html.atlas-pro-phone body .maplibregl-ctrl-group button{width:36px!important;height:36px!important;}
html.atlas-pro-phone body .maplibregl-ctrl-group button .maplibregl-ctrl-icon{filter:grayscale(1) brightness(1.6);}
html.atlas-pro-phone body .atlas-compass-btn{width:36px!important;height:36px!important;}
html.atlas-pro-phone body .maplibregl-ctrl-top-right{width:72px!important;overflow:hidden;}
html.atlas-pro-phone body .atlas-compass-read{font-size:10px!important;padding:2px 4px!important;max-width:64px!important;box-sizing:border-box!important;overflow:hidden;}
html.atlas-pro-phone body .atlas-compass-read span,html.atlas-pro-phone body .atlas-compass-read small{white-space:normal!important;max-width:56px;}
/* attribution: just the (i) until tapped */
html.atlas-pro-phone body .maplibregl-ctrl-attrib.maplibregl-compact:not([open]) .maplibregl-ctrl-attrib-inner{display:none!important;}
html.atlas-pro-phone body .maplibregl-ctrl-attrib.maplibregl-compact{min-height:22px!important;background:rgba(12,16,20,.5)!important;}
html.atlas-pro-phone body .maplibregl-ctrl-bottom-right{bottom:calc(var(--pp-dock,150px) + 4px)!important;}
html.atlas-pro-phone body .maplibregl-ctrl-bottom-right details+details{display:none!important;}
/* legend: closed until the user opens it. The peek is the only bottom control besides the time dock. */
html.atlas-pro-phone body #mapLegend#mapLegend[hidden]{display:none!important}
html.atlas-pro-phone body #mapLegend#mapLegend:not([hidden]){left:8px!important;right:auto!important;width:min(220px,calc(100% - 120px))!important;bottom:calc(var(--pp-dock,150px) + 6px)!important;top:auto!important;padding:5px 8px 4px!important;border-radius:9px!important;background:var(--pp-bg)!important;border:1px solid var(--pp-line)!important;box-shadow:none!important;}
html.atlas-pro-phone body #legendPeek{left:8px;bottom:calc(var(--pp-dock,150px) + 8px);}
html.atlas-pro-phone body #mapLegend#mapLegend #expandDetailedLegend,html.atlas-pro-phone body #mapLegend#mapLegend #closeDetailedLegend{width:26px!important;height:26px!important;min-height:26px!important;font-size:13px!important;}
html.atlas-pro-phone body #mapLegend#mapLegend #legendTitle{font-size:12px!important;}
/* dock: thin handle, one header row (time · Núna · Gröf · ▶), slim track */
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem{left:6px!important;right:6px!important;width:auto!important;max-width:none!important;transform:none!important;margin:0!important;border-radius:14px!important;background:var(--pp-bg)!important;border:1px solid var(--pp-line)!important;box-shadow:0 -2px 18px rgba(0,0,0,.28)!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);}
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem #graphDockHandle#graphDockHandle{height:14px!important;min-height:14px!important;flex:0 0 14px!important;font-size:0!important;padding:0!important;}
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem #graphDockHandle#graphDockHandle::after{content:'';display:block;width:36px;height:4px;border-radius:2px;margin:5px auto;background:rgba(255,255,255,.28);}
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem #graphDockHandle#graphDockHandle *{display:none!important;}
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem #timeDock#timeDock{background:transparent!important;border:0!important;padding:2px 6px 6px!important;}
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem #timeDock#timeDock .timeline-head{display:flex!important;flex-wrap:nowrap!important;flex-direction:row!important;grid-template-columns:none!important;align-items:center;gap:6px;height:auto!important;min-height:0!important;}
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem #timeDock#timeDock .timeline-live-label{flex:1 1 auto!important;min-width:0!important;background:transparent!important;border:0!important;padding:0 2px!important;min-height:0!important;height:auto!important;}
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem #timeLabel#timeLabel{display:block!important;width:auto!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px!important;line-height:19px!important;color:var(--pp-fg)!important;}
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem #timelineMeta#timelineMeta{font-size:10px!important;line-height:13px!important;color:var(--pp-dim)!important;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem #timeDock#timeDock .timeline-actions{display:flex!important;gap:6px!important;margin:0!important;width:auto!important;flex:0 0 auto!important;height:32px!important;}
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem #timeNow#timeNow,html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem #graphDockToggle#graphDockToggle{width:auto!important;min-width:0!important;height:32px!important;min-height:32px!important;padding:0 8px!important;font-size:12px!important;border-radius:9px!important;background:rgba(255,255,255,.06)!important;border:1px solid var(--pp-line)!important;color:var(--pp-fg)!important;flex:0 0 58px!important;width:58px!important;}
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem #timePlay#timePlay{flex:0 0 44px!important;width:44px!important;height:32px!important;min-height:32px!important;border-radius:9px!important;background:rgba(255,255,255,.16)!important;color:#fff!important;border:1px solid rgba(255,255,255,.34)!important;}
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem #timelineTouch#timelineTouch{height:42px!important;min-height:42px!important;flex:0 0 42px!important;}
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem .time-step{width:48px!important;height:48px!important;min-height:48px!important;flex:0 0 48px!important;border-radius:9px!important;background:rgba(255,255,255,.05)!important;border:1px solid var(--pp-line)!important;color:var(--pp-fg)!important;}
/* bottom tabs: slim, monochrome */
html.atlas-pro-phone body #phoneTabs#phoneTabs{height:calc(44px + env(safe-area-inset-bottom))!important;background:rgba(10,13,16,.94)!important;border-top:1px solid var(--pp-line)!important;}
html.atlas-pro-phone body #phoneTabs#phoneTabs button{font-size:12.5px!important;color:var(--pp-dim)!important;background:transparent!important;}
html.atlas-pro-phone body #phoneTabs#phoneTabs button.active{color:var(--pp-fg)!important;box-shadow:inset 0 2px 0 var(--pp-fg)!important;}
html.atlas-pro-phone body.v9-map-first #weatherGraphSystem.graphs-collapsed[data-dock-mode]{height:auto!important;}
html.atlas-pro-phone body:has(#weatherGraphSystem:not(.graphs-collapsed)) .maplibregl-ctrl-bottom-right{display:none!important;}

/* 9.17.2: compass — the round button only appears when the map is rotated (tap = norður upp); the box is labelled wind at map centre. Monochrome. */
html.atlas-pro-phone body .atlas-compass-ctrl:not(.rotated) .atlas-compass-btn{display:none!important;}
html.atlas-pro-phone body .atlas-compass-btn .needle .n{fill:#fff!important;}html.atlas-pro-phone body .atlas-compass-btn .needle .s{fill:#6f7a80!important;}
html.atlas-pro-phone body .atlas-compass-ctrl.rotated .atlas-compass-btn{border-color:#fff!important;box-shadow:0 0 0 3px rgba(255,255,255,.18)!important;}
html.atlas-pro-phone body .atlas-compass-ctrl:not(.rotated) .atlas-compass-read b{display:none!important;}
html.atlas-pro-phone body .atlas-compass-read b{color:#fff!important;}
html.atlas-pro-phone body .atlas-compass-read i{color:#fff!important;}
html.atlas-pro-phone body .atlas-compass-read small{display:block;font-size:9px;font-weight:600;color:rgba(232,238,241,.7);}
/* 9.17.2: the 48px step buttons sit at the strip ends; keep the strip clear of them */
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem #timelineTouch#timelineTouch{margin-left:52px!important;margin-right:52px!important;width:auto!important;}
html.atlas-pro-phone body #openReferencePlayer#openReferencePlayer{min-width:72px!important;justify-content:center;}
html.atlas-pro-phone body[data-phone-tab="stations"] #weatherGraphSystem,html.atlas-pro-phone body[data-phone-tab="sea"] #weatherGraphSystem,html.atlas-pro-phone body[data-phone-tab="roads"] #weatherGraphSystem,html.atlas-pro-phone body[data-phone-tab="cameras"] #weatherGraphSystem{display:none!important;}
html.atlas-pro-phone body[data-phone-tab="stations"] #stationBrowser,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{position:fixed!important;z-index:60!important;left:0!important;right:0!important;top:0!important;bottom:calc(44px + env(safe-area-inset-bottom))!important;width:auto!important;max-height:none!important;border-radius:0!important;background:#10161b!important;}
html.atlas-pro-phone .phone-sheet-link{display:block;margin:0 0 8px;padding:12px;border-radius:10px;background:#243038;color:#f4f7f8;font-weight:700;text-decoration:none;}
/* 9.18.3: first open is only the time line. Tabs, readout and graph wait for a raise. */
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem[data-dock-mode="collapsed"]{height:auto!important;max-height:22vh!important;max-height:22dvh!important;overflow:hidden!important;}
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem.dock-dragging{height:var(--graph-dock-height)!important;max-height:none!important;overflow:hidden!important;}
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem[data-dock-mode="collapsed"] :is(#timelineMeta,#timeKind,#timeNow,#graphDockToggle,#dockColorToggle,.timeline-day-select,#timePrev,#timeNext,.forecast-ribbon-wrap,#pastMeasureHint,.timeline-foot,#timelineInsight,#dockLead,#graphPanel,#graphSelectedValues,#mapLayoutBar,#layoutStationPanel,#officialInsight){display:none!important;}
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem[data-dock-mode="collapsed"] #timeDock#timeDock{display:block!important;height:auto!important;min-height:0!important;flex:0 0 auto!important;padding:0 8px 8px!important;}
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem[data-dock-mode="collapsed"] .timeline-main{display:flex!important;flex-direction:column!important;gap:2px!important;height:auto!important;min-height:0!important;grid-template-rows:none!important;}
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem[data-dock-mode="collapsed"] .timeline-head{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important;height:auto!important;min-height:0!important;padding:0!important;}
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem[data-dock-mode="collapsed"] .timeline-live-label{display:block!important;width:auto!important;flex:1 1 auto!important;padding:0!important;background:transparent!important;min-height:0!important;}
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem[data-dock-mode="collapsed"] .timeline-actions{display:flex!important;width:auto!important;height:36px!important;flex:0 0 auto!important;margin:0!important;gap:0!important;}
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem[data-dock-mode="collapsed"] #timePlay#timePlay{display:inline-flex!important;width:44px!important;height:36px!important;min-height:36px!important;flex:0 0 44px!important;}
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem[data-dock-mode="collapsed"] #timeLabel#timeLabel{font-size:15px!important;line-height:20px!important;}
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem[data-dock-mode="collapsed"] #timelineTouch#timelineTouch{height:36px!important;min-height:36px!important;flex:0 0 36px!important;margin:0!important;width:auto!important;}
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem:is([data-dock-mode="half"],[data-dock-mode="full"]){display:flex!important;flex-direction:column!important;height:var(--graph-dock-height)!important;max-height:none!important;overflow:auto!important;}
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem:is([data-dock-mode="half"],[data-dock-mode="full"]) #layoutStationPanel,
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem:is([data-dock-mode="half"],[data-dock-mode="full"]) #officialInsight{display:block!important;order:2;flex:0 0 auto!important;}
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem:is([data-dock-mode="half"],[data-dock-mode="full"]) #timeDock{order:3;flex:0 0 auto!important;height:auto!important;min-height:0!important;}
html.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem:is([data-dock-mode="half"],[data-dock-mode="full"]) #graphPanel{order:4;flex:1 1 160px!important;min-height:140px!important;}
