:root{--bg:#06141b;--panel:rgba(7,28,36,.96);--panel-solid:#0a2029;--panel-soft:rgba(11,43,53,.92);--ink:#effafa;--muted:#9ab0b5;--line:rgba(172,214,217,.18);--accent:#43d6cf;--accent-soft:rgba(67,214,207,.13);--danger:#ff7769;--shadow:0 16px 44px rgba(0,0,0,.32);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color-scheme:dark}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden;background:var(--bg);color:var(--ink)}body{font-size:14px}button,input,select{font:inherit;color:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}[hidden]{display:none!important}a{color:inherit;text-decoration:none}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.app-shell{height:100%;display:flex;flex-direction:column}.topbar{position:relative;z-index:50;height:58px;flex:0 0 58px;display:flex;align-items:center;gap:24px;padding:0 16px;border-bottom:1px solid var(--line);background:#061820}.brand{display:flex;align-items:center;gap:10px;font-weight:900;letter-spacing:.08em}.brand img{width:34px;height:34px}.brand span{display:grid}.brand small{font-size:10px;color:var(--muted);letter-spacing:.12em}.nav{display:flex;align-items:center;gap:5px}.nav a{min-height:40px;display:flex;align-items:center;padding:0 14px;border-radius:10px;color:var(--muted);font-size:13px;font-weight:750}.nav a:hover,.nav a.active{background:var(--accent-soft);color:var(--ink)}.top-status{margin-left:auto;display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}.status-dot{width:8px;height:8px;border-radius:50%;background:#d3a64e}.status-dot.live{background:#4fd48a}.status-dot.warn{background:#ffb34d}.round-button{width:40px;height:40px;border:1px solid var(--line);border-radius:11px;background:transparent}.bottom-nav{display:none}
.marine-stage{position:relative;flex:1;min-height:0;isolation:isolate;background:#14313b;--panel:rgba(7,28,36,.96);--panel-solid:#0a2029;--ink:#effafa;--muted:#9ab0b5;--line:rgba(172,214,217,.18)}.marine-stage.day{--panel:rgba(247,252,251,.97);--panel-solid:#f7fcfb;--panel-soft:rgba(238,248,247,.97);--ink:#102b32;--muted:#536d72;--line:rgba(32,79,87,.2);--shadow:0 16px 44px rgba(15,51,56,.2)}#marineMap,#particleCanvas{position:absolute;inset:0;width:100%;height:100%}#particleCanvas{z-index:2;pointer-events:none;contain:strict}.maplibregl-canvas{outline:0}.maplibregl-ctrl-top-right{top:12px;right:10px}.maplibregl-ctrl-group{overflow:hidden;border:1px solid var(--line)!important;border-radius:12px!important;background:var(--panel-solid)!important;box-shadow:var(--shadow)!important}.maplibregl-ctrl-group button{width:40px!important;height:40px!important}.maplibregl-ctrl-attrib{font-size:10px!important;background:rgba(4,17,22,.78)!important;color:#b9cacc}.maplibregl-ctrl-attrib a{color:#eaf5f5}
.map-fallback{position:absolute;z-index:20;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(440px,calc(100% - 32px));padding:22px;border:1px solid var(--line);border-radius:18px;background:var(--panel-solid);box-shadow:var(--shadow);text-align:center}.map-fallback strong{font-size:18px}.map-fallback p{color:var(--muted);line-height:1.5}.fallback-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.fallback-actions button{min-height:44px;border:1px solid var(--line);border-radius:10px;background:var(--accent-soft);padding:0 14px}
.marine-stage.day .map-fallback{color:#102b32}.marine-stage.day .map-fallback p{color:#465f65}.marine-stage.day .fallback-actions button{border-color:#6a8f95;background:#d8f3f0;color:#102b32;font-weight:750}
.harbour-marker{width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;padding:0}.harbour-pin{width:29px;height:29px;display:grid;place-items:center;border:1px solid rgba(224,250,250,.72);border-radius:50% 50% 50% 8px;transform:rotate(-45deg);background:rgba(4,38,47,.92);box-shadow:0 5px 13px rgba(0,0,0,.35);font-size:14px}.harbour-pin::first-letter{transform:rotate(45deg)}.camera-marker{width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:50%;background:rgba(4,38,47,.92);box-shadow:0 5px 13px rgba(0,0,0,.35);font-size:18px}.station-mini-popup .maplibregl-popup-content{min-width:150px;padding:0;border:1px solid var(--line);border-radius:11px;background:var(--panel-solid);color:var(--ink);box-shadow:var(--shadow)}.station-pop{display:grid;gap:3px;padding:9px}.station-pop b{font-size:11px}.station-pop strong{font-size:16px}.station-pop small,.station-pop span{color:var(--muted);font-size:10px}.station-pop button{min-height:36px;margin-top:4px;border:1px solid var(--line);border-radius:8px;background:var(--accent-soft);font-size:11px}.saved-route{display:grid;gap:6px;padding:10px 0;border-bottom:1px solid var(--line)}.saved-route b,.saved-route small{display:block}.saved-route b{font-size:12px}.saved-route small{color:var(--muted);font-size:10px}.saved-route div{display:flex;gap:6px}.saved-route button{min-height:38px;border:1px solid var(--line);border-radius:8px;background:transparent;padding:0 10px;font-size:11px}
.layer-rail{position:absolute;z-index:18;left:12px;top:12px;display:flex;align-items:stretch;gap:8px;max-width:calc(100% - 118px);padding:6px;border:1px solid var(--line);border-radius:15px;background:var(--panel);box-shadow:var(--shadow);overflow-x:auto;scrollbar-width:none}.layer-rail::-webkit-scrollbar{display:none}.layer-group{display:flex;gap:3px;flex:0 0 auto}.layer-group+.layer-group{padding-left:8px;border-left:1px solid var(--line)}.layer-rail button{position:relative;min-width:58px;height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:0 8px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--muted)}.layer-rail button span{font-size:16px;line-height:1}.layer-rail button b{font-size:11px;font-weight:780;white-space:nowrap}.layer-rail button:hover{background:rgba(145,185,190,.09);color:var(--ink)}.layer-rail button.active,.layer-rail button.option-active{border-color:rgba(67,214,207,.42);background:var(--accent-soft);color:var(--ink)}.layer-utility button{min-width:56px;color:var(--muted)}.layer-rail button:disabled{opacity:.45;cursor:not-allowed}
.marine-hud{position:absolute;z-index:12;left:12px;top:80px;width:min(300px,calc(100% - 24px));max-height:min(58vh,540px);border:1px solid var(--line);border-radius:15px;background:var(--panel);box-shadow:var(--shadow);overflow:hidden}.overview-panel-scroll{height:100%;max-height:inherit;overflow:auto;overscroll-behavior:contain;padding:13px;scrollbar-width:thin}.hud-kicker{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;font-weight:850;letter-spacing:.08em}.hud-kicker i{flex:1;height:1px;background:var(--line)}.overview-filter{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:10px}.overview-filter button{min-height:34px;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--muted);font-size:11px}.overview-filter button.active{border-color:rgba(67,214,207,.45);background:var(--accent-soft);color:var(--ink)}.hud-values{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.hud-values>div{min-width:0;padding:10px;border:1px solid var(--line);border-radius:11px;background:rgba(120,160,168,.06)}.hud-values small,.hud-values span,.hud-values em{display:block}.hud-values small{color:var(--muted);font-size:11px}.hud-values strong{display:block;margin-top:4px;font-size:18px}.hud-values span,.hud-values em{margin-top:3px;color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hud-values em{font-style:normal}.hud-trend{margin-top:10px;padding:10px;border-top:1px solid var(--line)}.hud-trend small,.hud-trend strong,.hud-trend span{display:block}.hud-trend small{color:var(--accent);font-size:10px;font-weight:800}.hud-trend strong{margin-top:4px;font-size:13px}.hud-trend span{margin-top:3px;color:var(--muted);font-size:11px}.overview-highlights{margin-top:10px;border-top:1px solid var(--line);padding-top:10px}.overview-highlights>header{display:flex;align-items:end;justify-content:space-between;gap:8px}.overview-highlights header small,.overview-highlights header b{display:block}.overview-highlights header small{color:var(--accent);font-size:10px}.overview-highlights header b{margin-top:2px;font-size:12px}.overview-highlights header span{color:var(--muted);font-size:10px}.overview-highlights details{margin-top:6px;border:1px solid var(--line);border-radius:10px;overflow:hidden}.overview-highlights summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;padding:8px 10px;cursor:pointer}.overview-highlights summary::-webkit-details-marker{display:none}.overview-highlights summary span b,.overview-highlights summary span small,.overview-highlights summary em,.overview-highlights summary em small{display:block}.overview-highlights summary span b{font-size:12px}.overview-highlights summary span small,.overview-highlights summary em small{color:var(--muted);font-size:10px}.overview-highlights summary em{font-style:normal;text-align:right;font-size:11px}.overview-rank-list{border-top:1px solid var(--line)}.overview-rank-row{display:grid;grid-template-columns:24px 1fr auto;gap:7px;align-items:center;padding:8px 9px;border-bottom:1px solid rgba(160,200,204,.09)}.overview-rank-row>span{min-width:0}.overview-rank-row strong,.overview-rank-row small{display:block}.overview-rank-row strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.overview-rank-row small{margin-top:2px;color:var(--muted);font-size:10px}.overview-rank-row em{font-style:normal;text-align:right;font-size:11px}.overview-empty,#hudSource{color:var(--muted);font-size:11px;line-height:1.45}
.map-legend{position:absolute;z-index:12;right:12px;bottom:138px;width:200px;padding:11px 12px;border:1px solid var(--line);border-radius:13px;background:var(--panel);box-shadow:var(--shadow)}.map-legend header{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.map-legend header b{font-size:13px;letter-spacing:.04em}.map-legend header span{color:var(--accent);font-size:13px;font-weight:850}.map-legend>i{display:block;height:8px;margin-top:9px;border-radius:99px}.map-legend>div{display:flex;justify-content:space-between;margin-top:5px;color:var(--muted);font-size:11px}.legend-ticks,.legend-model-note{margin:7px 0 0;color:var(--muted);font-size:10px;line-height:1.35}.legend-model-note{padding-top:7px;border-top:1px solid var(--line)}body.weather-layer-off .map-legend,body.weather-layer-off .marine-hud,body.weather-layer-off .time-dock{display:none}
.time-dock{position:absolute;z-index:13;left:50%;bottom:12px;transform:translateX(-50%);width:min(760px,calc(100% - 260px));min-height:112px;display:grid;grid-template-columns:42px 1fr 42px;align-items:center;gap:8px;padding:9px 10px;border:1px solid var(--line);border-radius:15px;background:var(--panel);box-shadow:var(--shadow)}.time-dock>button{width:42px;height:42px;border:1px solid var(--line);border-radius:11px;background:transparent;font-size:20px}.timeline-main{min-width:0;display:grid;grid-template-rows:24px 24px 27px 22px 15px;gap:2px}.timeline-head{display:flex;align-items:center;gap:8px}.timeline-head b{font-size:12px}.timeline-head span{color:var(--accent);font-size:10px;font-weight:850}.timeline-head button{margin-left:auto;width:32px;height:28px;border:1px solid var(--line);border-radius:8px;background:var(--accent-soft)}.timeline-days{display:flex;min-width:0}.timeline-days button{flex:var(--hours,1);min-width:0;border:0;border-bottom:2px solid var(--line);background:transparent;color:var(--muted);font-size:10px}.timeline-days button.active{border-color:var(--accent);color:var(--ink)}.timeline-range{position:relative;min-width:0}.timeline-range input{position:absolute;z-index:2;inset:0;width:100%;height:27px;margin:0;opacity:.01;cursor:ew-resize}.time-ticks{height:100%;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:10px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.forecast-ribbon-wrap{position:relative;overflow:hidden;border-radius:6px}#forecastRibbon{width:100%;height:22px;display:block}.forecast-ribbon-wrap>i{position:absolute;top:0;bottom:0;width:2px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.35)}.timeline-foot{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:10px}.measured-key,.forecast-key{display:inline-block;width:10px;height:3px;margin:0 3px 2px 6px;background:#fff}.forecast-key{background:var(--accent)}
.time-dock>.time-prev{grid-column:1;grid-row:1}.time-dock>.timeline-main{grid-column:2;grid-row:1;min-width:0}.time-dock>.time-next{grid-column:3;grid-row:1}
.route-tools{position:absolute;z-index:20;left:12px;top:12px;display:flex;align-items:center;gap:6px;padding:6px;border:1px solid var(--line);border-radius:14px;background:var(--panel);box-shadow:var(--shadow)}.route-tools button{min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:10px;background:transparent;padding:0 11px;font-size:12px}.route-tools button:disabled{opacity:.4}.route-toolbar-summary{padding:0 6px;color:var(--muted);font-size:12px;font-weight:750}.route-more-trigger{font-weight:900}.route-more-menu{position:absolute;z-index:24;left:12px;top:70px;width:230px;padding:8px;border:1px solid var(--line);border-radius:13px;background:var(--panel-solid);box-shadow:var(--shadow)}.route-more-menu button,.route-more-speed{width:100%;min-height:44px;display:flex;align-items:center;gap:8px;padding:0 11px;border:0;border-radius:9px;background:transparent;text-align:left}.route-more-menu button:hover{background:var(--accent-soft)}.route-more-menu .danger{color:var(--danger)}.route-more-speed input{margin-left:auto;width:64px}.route-empty-hint{position:absolute;z-index:8;left:50%;top:82px;transform:translateX(-50%);margin:0;padding:8px 12px;border:1px solid var(--line);border-radius:99px;background:var(--panel);color:var(--muted);font-size:12px}.route-readout{position:absolute;z-index:15;left:50%;bottom:12px;transform:translateX(-50%);display:flex;align-items:center;gap:13px;padding:8px 10px;border:1px solid var(--line);border-radius:13px;background:var(--panel);box-shadow:var(--shadow)}.route-readout>span{font-weight:850}.route-readout>div{padding-left:12px;border-left:1px solid var(--line)}.route-readout small,.route-readout b{display:block}.route-readout small{color:var(--muted);font-size:10px}.route-readout b{margin-top:2px;font-size:12px}.route-readout label{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:11px}.route-readout input{width:58px}.route-point{width:38px;height:38px;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;padding:0;touch-action:none}.route-point span{width:12px;height:12px;display:grid;place-items:center;border:2px solid #f5ffff;border-radius:50%;background:#0d7c7b;color:transparent;box-shadow:0 2px 7px rgba(0,0,0,.6)}.route-point.start span{background:#42d395}.route-point.end span{background:#f4c65e}.route-point:hover span,.route-point:focus-visible span{transform:scale(1.35)}.leg-marker{padding:3px 6px;border:1px solid rgba(226,250,249,.55);border-radius:7px;background:rgba(3,22,28,.82);color:#f3ffff;font-size:10px;font-weight:850;white-space:nowrap}.route-crosshair,.route-target-bar,.route-bearing-popover{display:none!important}.leg-table{display:none}.route-layer-drawer,.pro-drawer{position:absolute;z-index:23;left:12px;top:70px;width:310px;max-height:calc(100% - 90px);overflow:auto;padding:13px;border:1px solid var(--line);border-radius:15px;background:var(--panel-solid);box-shadow:var(--shadow)}.pro-drawer>header,.route-layer-drawer>header{display:flex;justify-content:space-between;align-items:start}.pro-drawer header small,.pro-drawer header h2{display:block;margin:0}.pro-drawer header small{color:var(--accent);font-size:10px}.pro-drawer header h2{font-size:16px}.pro-drawer header button{width:40px;height:40px;border:0;border-radius:9px;background:rgba(130,170,177,.1)}.route-layer-list{display:grid;gap:5px}.route-layer-list label{min-height:44px;display:flex;align-items:center;gap:9px;padding:0 9px;border:1px solid var(--line);border-radius:9px}.nav-note,.route-layer-note{color:var(--muted);font-size:11px;line-height:1.5}
.route-insert{width:42px;height:42px;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;padding:0;touch-action:none}.route-insert span{width:24px;height:24px;display:grid;place-items:center;border:1px solid rgba(230,255,255,.8);border-radius:50%;background:rgba(3,35,43,.9);color:#efffff;font-size:16px;box-shadow:0 3px 9px rgba(0,0,0,.45)}
.route-crosshair:not([hidden]){position:absolute;z-index:19;width:30px;height:30px;display:block!important;transform:translate(-50%,-50%);pointer-events:none}.route-crosshair::before,.route-crosshair::after{content:'';position:absolute;left:50%;top:50%;background:#f5ffff;box-shadow:0 0 0 1px rgba(0,0,0,.5)}.route-crosshair::before{width:30px;height:2px;transform:translate(-50%,-50%)}.route-crosshair::after{width:2px;height:30px;transform:translate(-50%,-50%)}.route-target-bar:not([hidden]){position:absolute;z-index:21;bottom:auto;display:flex!important;transform:translate(-50%,-100%);gap:5px;padding:5px;border:1px solid var(--line);border-radius:12px;background:var(--panel-solid);box-shadow:var(--shadow)}.route-bearing-button,.route-add-point{min-height:44px;border:1px solid var(--line);border-radius:9px;background:var(--accent-soft);padding:5px 10px}.route-bearing-button b,.route-bearing-button span,.route-bearing-button em{display:block}.route-bearing-button b{font-size:13px}.route-bearing-button span,.route-bearing-button em{color:var(--muted);font-size:9px;font-style:normal}.route-bearing-popover:not([hidden]){position:absolute;z-index:25;left:12px;top:70px;width:min(340px,calc(100% - 24px));display:grid!important;grid-template-columns:1fr auto auto;gap:6px;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--panel-solid);box-shadow:var(--shadow)}.route-bearing-popover label span{display:block;color:var(--muted);font-size:10px}.route-bearing-popover input{width:100%;height:34px;border:1px solid var(--line);border-radius:8px;background:rgba(120,160,168,.08);padding:0 8px}.route-bearing-popover button{min-width:58px;min-height:44px;border:1px solid var(--line);border-radius:8px;background:var(--accent-soft)}
@media(pointer:coarse){.route-insert{width:50px;height:50px}.route-point{width:44px;height:44px}}
@media(pointer:coarse){.maplibregl-ctrl-group button{width:44px!important;height:44px!important}}
.inspect-sheet{position:absolute;z-index:25;top:72px;right:12px;bottom:12px;left:auto;transform:none;width:360px;max-width:calc(100% - 24px);max-height:none;overflow:auto;overscroll-behavior:contain;padding:18px 15px 15px;border:1px solid var(--line);border-radius:17px;background:var(--panel-solid);box-shadow:0 24px 70px rgba(0,0,0,.45);display:flex;flex-direction:column;pointer-events:auto}.inspect-sheet .sheet-peek{display:none}.inspect-sheet #inspectContent{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}.inspect-sheet.sheet-expanded{/* desktop ignores */}.sheet-close{position:sticky;z-index:3;float:right;top:0;width:42px;height:42px;border:0;border-radius:10px;background:rgba(130,170,177,.12);font-size:20px}.inspect-head{padding-right:48px}.inspect-head small{color:var(--accent);font-size:10px;font-weight:850;letter-spacing:.08em}.inspect-head h2{margin:4px 0 2px;font-size:21px}.inspect-head p{margin:0;color:var(--muted);font-size:12px}.metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:7px;margin-top:12px}.metric-grid>div{padding:10px;border:1px solid var(--line);border-radius:10px;background:rgba(120,160,168,.06)}.metric-grid small,.metric-grid b{display:block}.metric-grid small{color:var(--muted);font-size:10px;text-transform:uppercase}.metric-grid b{margin-top:4px;font-size:13px}.source-age{margin:10px 0 0;color:var(--muted);font-size:11px;line-height:1.45}.inspect-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.inspect-actions button,.inspect-actions a{min-height:44px;display:flex;align-items:center;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:rgba(120,160,168,.07);font-size:12px;font-weight:800}.inspect-actions .primary{border-color:rgba(67,214,207,.5);background:var(--accent-soft)}
.station-chart{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}.station-chart>header{display:flex;align-items:end;justify-content:space-between;gap:10px}.station-chart header small,.station-chart header b{display:block}.station-chart header small{color:var(--accent);font-size:10px}.station-chart header b{margin-top:2px;font-size:13px}.station-chart header>span{color:var(--muted);font-size:10px}.station-chart-tabs{display:flex;gap:5px;margin-top:9px;overflow:auto}.station-chart-tabs button{min-height:38px;padding:0 13px;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--muted);font-size:11px}.station-chart-tabs button.active{border-color:rgba(67,214,207,.55);background:var(--accent-soft);color:var(--ink)}.station-chart-canvas{height:190px;margin-top:8px;border:1px solid var(--line);border-radius:11px;background:rgba(3,18,24,.34);overflow:hidden;touch-action:none}.station-chart-canvas svg{width:100%;height:100%;display:block}.chart-grid line{stroke:rgba(170,210,214,.13);stroke-width:1}.chart-grid text,.chart-time-start,.chart-time-end,.chart-now-label{fill:var(--muted);font-size:10px}.chart-time-end{text-anchor:end}.chart-now-label{text-anchor:middle}.chart-measure,.chart-forecast{fill:none;stroke-linecap:round;stroke-linejoin:round}.chart-measure{stroke:#fff;stroke-width:3}.chart-forecast{stroke:var(--accent);stroke-width:2.5}.measure-dot{fill:#fff}.forecast-dot{fill:var(--accent)}.measure-bar{fill:#fff}.forecast-bar{fill:var(--accent);opacity:.85}.chart-now{stroke:rgba(255,255,255,.55);stroke-dasharray:4 4}.chart-selected{stroke:#f5c85e;stroke-width:2}.station-chart-tooltip{min-height:32px;display:flex;align-items:center;margin-top:6px;padding:0 10px;border-radius:8px;background:var(--accent-soft);font-size:11px}
.camera-tabs{display:flex;gap:5px;margin:12px 0 7px;overflow:auto}.camera-tabs button{min-height:42px;flex:0 0 auto;padding:0 12px;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--muted);font-size:11px}.camera-tabs button.active{border-color:rgba(67,214,207,.55);background:var(--accent-soft);color:var(--ink)}.camera-tabs button:disabled{opacity:.45}.camera-stage{position:relative;width:100%;aspect-ratio:16/9;display:grid;place-items:center;overflow:hidden;border-radius:12px;background:#020b0f}.camera-stage video,.camera-stage iframe,.camera-stage img{width:100%;height:100%;border:0;object-fit:cover}.camera-stage>span,.camera-stage>a{color:#c0d4d7;font-size:12px}.camera-stage.loading::before{content:"Tengist…";position:absolute;z-index:2;inset:0;display:grid;place-items:center;background:rgba(2,11,15,.6);color:#dceeee}.camera-poster{position:relative;width:100%;height:100%;padding:0;border:0;background:#020b0f}.camera-poster img{opacity:.82}.camera-poster span{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);min-height:40px;display:flex;align-items:center;padding:0 14px;border:1px solid rgba(238,255,255,.6);border-radius:99px;background:rgba(3,22,29,.9);white-space:nowrap}.media-expand{position:absolute;z-index:4;right:8px;top:8px;min-height:36px;border:1px solid rgba(230,255,255,.5);border-radius:8px;background:rgba(3,22,29,.86);padding:0 10px}.station-camera-context{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}.station-camera-context>header{display:flex;justify-content:space-between;align-items:end}.station-camera-context header small,.station-camera-context header b{display:block}.station-camera-context header small{color:var(--accent);font-size:10px}.station-camera-context header b{font-size:12px}.station-camera-context header>span{color:var(--muted);font-size:10px}.camera-context-list{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:8px}.camera-context-list>button{min-width:0;overflow:hidden;padding:0;border:1px solid var(--line);border-radius:10px;background:rgba(120,160,168,.06);text-align:left}.camera-context-list img{width:100%;height:64px;object-fit:cover}.camera-context-list>button>span{display:block;padding:7px}.camera-context-list em,.camera-context-list b,.camera-context-list small{display:block}.camera-context-list em{color:var(--accent);font-size:10px;font-style:normal}.camera-context-list b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.camera-context-list small,.camera-context-meta{color:var(--muted);font-size:10px;line-height:1.4}
.harbour-browser,.station-browser{position:absolute;z-index:22;left:12px;top:80px;width:min(360px,calc(100% - 24px));max-height:calc(100% - 104px);display:flex;flex-direction:column;overflow:hidden;padding:12px;border:1px solid var(--line);border-radius:15px;background:var(--panel-solid);box-shadow:var(--shadow)}.harbour-browser>header,.station-browser>header{display:flex;align-items:center;justify-content:space-between}.harbour-browser header small,.harbour-browser header b,.station-browser header small,.station-browser header b{display:block}.harbour-browser header small,.station-browser header small{color:var(--accent);font-size:10px}.harbour-browser header b,.station-browser header b{font-size:12px}.browser-close{width:42px;height:42px;border:0;border-radius:9px;background:rgba(130,170,177,.1);font-size:20px}.browser-tabs,.camera-filters{display:flex;gap:5px;margin-top:9px}.browser-tabs button,.camera-filters button{min-height:40px;flex:1;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--muted);font-size:11px}.browser-tabs button.active,.camera-filters button.active{background:var(--accent-soft);color:var(--ink)}.harbour-search{display:block;margin-top:8px}.harbour-search input{width:100%;height:42px;padding:0 11px;border:1px solid var(--line);border-radius:9px;background:rgba(120,160,168,.06)}.station-tools{display:grid;grid-template-columns:1fr auto;gap:7px;margin-top:7px}.station-tools label span{display:block;color:var(--muted);font-size:10px}.station-tools select,.station-tools button{height:40px;border:1px solid var(--line);border-radius:8px;background:rgba(120,160,168,.06);padding:0 9px}.harbour-list,.station-list{min-height:0;overflow:auto;overscroll-behavior:contain;margin-top:8px}.harbour-list>button,.station-list>button{width:100%;min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 9px;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left}.harbour-list>button:hover,.station-list>button:hover{background:var(--accent-soft)}.harbour-list b,.harbour-list small,.station-list b,.station-list small{display:block}.harbour-list b,.station-list b{font-size:12px}.harbour-list small,.station-list small{margin-top:3px;color:var(--muted);font-size:10px}.harbour-list em,.station-list em{font-style:normal;font-size:11px}.list-more{width:100%;min-height:46px;border:1px solid var(--line);border-radius:9px;background:var(--accent-soft)}
.inspect-sheet,.appearance-panel,.harbour-browser,.station-browser,.pro-drawer,.route-layer-drawer{resize:none}.appearance-panel{position:absolute;z-index:24;left:12px;top:80px;width:310px;max-height:calc(100% - 96px);overflow:auto;padding:13px;border:1px solid var(--line);border-radius:15px;background:var(--panel-solid);box-shadow:var(--shadow)}.appearance-panel>header{display:flex;align-items:center;justify-content:space-between}.appearance-panel header small,.appearance-panel header b{display:block}.appearance-panel header small{color:var(--accent);font-size:10px}.appearance-panel header b{font-size:13px}.appearance-header-actions{display:flex;gap:4px}.appearance-header-actions button{width:40px;height:40px;border:0;border-radius:9px;background:rgba(130,170,177,.1)}.appearance-presets{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:10px}.appearance-presets button{min-height:40px;border:1px solid var(--line);border-radius:9px;background:transparent;font-size:11px}.appearance-presets button:hover{background:var(--accent-soft)}.contrast-toggle{min-height:52px;display:flex;align-items:center;gap:9px;margin-top:8px;padding:7px 9px;border:1px solid var(--line);border-radius:10px}.contrast-toggle b,.contrast-toggle small{display:block}.contrast-toggle b{font-size:12px}.contrast-toggle small{margin-top:2px;color:var(--muted);font-size:10px}.appearance-sliders{display:grid;gap:8px;margin-top:10px}.appearance-sliders label>span{display:flex;justify-content:space-between;color:var(--muted);font-size:11px}.appearance-sliders output{color:var(--ink)}.appearance-sliders input{width:100%;height:28px;accent-color:var(--accent)}.appearance-actions{margin-top:8px}.appearance-actions button{width:100%;min-height:42px;border:1px solid var(--line);border-radius:9px;background:transparent}.appearance-note{display:block;margin-top:8px;color:var(--muted);font-size:10px}.appearance-panel.minimized>*:not(header){display:none}.appearance-panel.minimized{height:auto!important;min-height:0!important}
.managed-panel{position:absolute}.panel-grip{position:absolute;z-index:8;left:50%;top:2px;transform:translateX(-50%);width:58px;height:10px;border:0;border-radius:99px;background:rgba(150,190,194,.23);cursor:grab}.panel-resizer{position:absolute;z-index:8;right:1px;bottom:1px;width:28px;height:28px;border:0;background:linear-gradient(135deg,transparent 53%,rgba(170,210,214,.55) 54%,rgba(170,210,214,.55) 60%,transparent 61%);cursor:nwse-resize}.panel-resize-bottom{position:absolute;z-index:8;left:50%;bottom:1px;transform:translateX(-50%);width:64px;height:10px;border:0;border-radius:99px;background:rgba(150,190,194,.2);cursor:ns-resize}.panel-interacting{user-select:none}.overview-panel-scroll{touch-action:pan-y}
.toast{position:fixed;z-index:100;left:50%;bottom:22px;transform:translateX(-50%);max-width:calc(100% - 24px);padding:10px 14px;border:1px solid var(--line);border-radius:99px;background:#09232c;box-shadow:var(--shadow);font-size:12px}.restore-ui{position:absolute;z-index:80;left:12px;top:12px;min-height:44px;border:1px solid var(--line);border-radius:10px;background:var(--panel-solid);padding:0 13px}.dialog,.media-dialog{width:min(680px,calc(100% - 24px));max-height:calc(100% - 24px);overflow:auto;border:1px solid var(--line);border-radius:16px;background:var(--panel-solid);color:var(--ink);box-shadow:var(--shadow)}.dialog::backdrop,.media-dialog::backdrop{background:rgba(0,8,12,.72)}.dialog form label,.dialog form input{display:block}.dialog form input{width:100%;height:44px;margin-top:6px;padding:0 10px;border:1px solid var(--line);border-radius:9px;background:rgba(120,160,168,.08)}.dialog form>div{display:flex;justify-content:flex-end;gap:7px;margin-top:12px}.dialog button{min-height:44px;border:1px solid var(--line);border-radius:9px;background:transparent;padding:0 13px}.dialog button.primary{background:var(--accent-soft)}.media-dialog{padding:13px}.media-close{float:right;width:44px;height:44px;border:0;border-radius:9px;background:rgba(130,170,177,.1)}.media-dialog header small,.media-dialog header b{display:block}.media-dialog header small{color:var(--accent);font-size:10px}.media-stage{margin-top:10px}.media-dialog p{color:var(--muted);font-size:11px}body.ui-hidden .topbar,body.ui-hidden .marine-hud,body.ui-hidden .layer-rail,body.ui-hidden .appearance-panel,body.ui-hidden .map-legend,body.ui-hidden .time-dock,body.ui-hidden .bottom-nav,body.ui-hidden .maplibregl-ctrl-top-right,body.ui-hidden .maplibregl-ctrl-bottom-right,body.ui-hidden .route-tools,body.ui-hidden .route-readout,body.ui-hidden .route-empty-hint,body.ui-hidden .harbour-browser,body.ui-hidden .station-browser{display:none!important}
body.route-mode .marine-hud,body.route-mode .time-dock,body.route-mode .layer-rail,body.route-mode .map-legend,body.route-mode #particleCanvas{display:none}body.route-mode.route-weather-open #particleCanvas{display:block}body.harbours-mode .marine-hud,body.harbours-mode .time-dock,body.harbours-mode .map-legend{display:none}
@media(max-width:850px){.topbar{height:54px;flex-basis:54px;padding:0 9px}.brand img{width:30px;height:30px}.brand small,.nav,.top-status span{display:none}.top-status{margin-left:auto}.round-button{width:40px;height:40px}.bottom-nav{position:absolute;z-index:55;left:0;right:0;bottom:0;height:calc(62px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,1fr);padding-bottom:env(safe-area-inset-bottom);border-top:1px solid var(--line);background:#061820}.bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#829ba0;font-size:11px;font-weight:750}.bottom-nav a i{font-size:17px;font-style:normal}.bottom-nav a.active{color:var(--accent)}.marine-stage{padding-bottom:calc(62px + env(safe-area-inset-bottom))}.maplibregl-ctrl-top-right{top:66px;right:6px}.maplibregl-ctrl-group button{width:36px!important;height:36px!important}.layer-rail{left:6px;right:6px;top:6px;max-width:none;padding:4px;border-radius:13px;gap:4px}.layer-group+.layer-group{padding-left:4px}.layer-rail button{min-width:52px;height:44px;padding:0 6px}.layer-rail button span{font-size:14px}.layer-rail button b{font-size:10px}.marine-hud{left:6px;top:61px;width:218px;max-height:38vh}.overview-panel-scroll{padding:10px}.hud-values{grid-template-columns:1fr}.hud-values>div:nth-child(2),.hud-trend,.overview-highlights,#hudSource{display:none}.hud-values strong{font-size:16px}.map-legend{right:6px;bottom:172px;width:160px;padding:9px}.time-dock{left:6px;right:6px;bottom:calc(68px + env(safe-area-inset-bottom));transform:none;width:auto;min-height:94px;grid-template-columns:36px 1fr 36px;padding:6px;gap:5px}.time-dock>button{width:36px;height:36px}.timeline-main{grid-template-rows:22px 21px 24px 18px}.timeline-head b{font-size:11px}.timeline-days button,.time-ticks{font-size:9px}.timeline-foot{display:none}#forecastRibbon{height:18px}.inspect-sheet{left:0;right:0;top:auto;bottom:calc(62px + env(safe-area-inset-bottom));transform:none;width:auto;height:48vh;max-height:calc(100% - 72px - env(safe-area-inset-bottom));padding:20px 12px 12px;border-radius:18px 18px 0 0;box-shadow:0 -18px 50px rgba(0,0,0,.42)}.inspect-sheet.sheet-expanded{height:calc(100% - 72px - env(safe-area-inset-bottom));max-height:calc(100% - 72px - env(safe-area-inset-bottom))}.inspect-sheet .sheet-peek{display:flex;align-items:center;justify-content:center;position:absolute;left:0;right:0;top:0;height:22px;z-index:9;cursor:grab;touch-action:none}.inspect-sheet .sheet-peek i{display:block;width:44px;height:4px;border-radius:99px;background:rgba(150,190,194,.5)}.inspect-sheet>.panel-grip{top:4px;width:70px;height:12px;opacity:.01}.metric-grid{grid-template-columns:1fr 1fr}.station-chart-canvas{height:170px}.camera-context-list{display:flex;overflow:auto}.camera-context-list>button{flex:0 0 70%}.camera-context-list img{height:72px}.harbour-browser,.station-browser,.appearance-panel,.pro-drawer,.route-layer-drawer{left:6px;right:6px;top:58px;width:auto;max-height:calc(100% - 132px - env(safe-area-inset-bottom))}.appearance-panel{top:auto;bottom:calc(68px + env(safe-area-inset-bottom));max-height:min(66vh,540px);border-radius:17px}.appearance-presets button,.contrast-toggle{min-height:44px}.route-tools{left:6px;right:6px;top:6px;justify-content:flex-start}.route-tools button{min-width:44px}.route-toolbar-summary{margin-left:auto}.route-empty-hint{top:64px;max-width:calc(100% - 16px);white-space:nowrap}.route-readout{left:6px;right:6px;bottom:calc(68px + env(safe-area-inset-bottom));transform:none;justify-content:center}.route-readout>div,.route-readout label{display:none}.route-point{width:44px;height:44px}.route-point span{width:11px;height:11px}.leg-marker{font-size:10px}.panel-resizer{display:none}.panel-grip{width:70px;height:11px}.toast{bottom:calc(72px + env(safe-area-inset-bottom))}}
@media(max-width:520px){.layer-secondary button b{max-width:46px;overflow:hidden;text-overflow:ellipsis}.layer-rail button{min-width:50px}.layer-utility button{min-width:46px}.map-legend{width:148px}.station-chart>header>span{display:none}.camera-stage{aspect-ratio:16/10}.inspect-head h2{font-size:18px}.metric-grid small{font-size:10px}.route-more-menu{left:6px;top:58px}.route-readout{padding:7px}.route-empty-hint{font-size:11px}.overview-highlights header span{display:none}}
@media(max-height:560px) and (max-width:950px){.marine-hud{display:none}.time-dock{min-height:72px}.timeline-days,#forecastRibbon{display:none}.timeline-main{grid-template-rows:24px 24px}.map-legend{bottom:144px}.inspect-sheet{bottom:calc(62px + env(safe-area-inset-bottom));height:48vh;max-height:calc(100% - 72px - env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Pointer hardening shared by compact iPhone and coarse-pointer tablets. */
.managed-panel>.panel-grip{touch-action:none}
#forecastCursor{will-change:left}
body.rain-focus-mode .harbour-marker,body.rain-focus-mode .camera-marker{display:none!important}
@media(max-width:599px){.managed-panel>.panel-resizer{display:none}.appearance-panel{bottom:calc(68px + env(safe-area-inset-bottom))}}
@media (pointer:coarse) and (min-width:600px){.managed-panel>.panel-resizer{display:block;width:44px;height:44px}.appearance-sliders{grid-template-columns:1fr 1fr}}

/* v8.12.1 hardening: visible keyboard focus and collision-safe information panels. */
.maplibregl-canvas:focus-visible{outline:3px solid #6ff7ed;outline-offset:-4px;box-shadow:inset 0 0 0 5px rgba(3,28,35,.72)}
.marine-stage.day .maplibregl-canvas:focus-visible{outline-color:#006b73;box-shadow:inset 0 0 0 5px rgba(255,255,255,.82)}
.marine-hud{max-height:min(58vh,calc(100% - 220px));overflow:hidden}
.overview-panel-scroll{height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.layer-rail{max-width:calc(100% - 24px);overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin}
.layer-group{flex:0 0 auto}
.station-chart-tabs{overflow-x:auto;scrollbar-width:thin;padding-bottom:3px}
.station-chart-tabs button{flex:0 0 auto}
.station-chart-tabs button:disabled{opacity:.42;cursor:not-allowed}
.camera-stage.loading::after{content:'Tengist við streymi…';position:absolute;left:50%;bottom:12px;transform:translateX(-50%);padding:6px 10px;border-radius:99px;background:rgba(4,20,27,.82);color:#eaffff;font-size:11px;white-space:nowrap}
.camera-retry{min-height:44px;border:1px solid var(--line);border-radius:9px;background:var(--accent-soft);padding:0 14px}
@media(max-width:850px){
  .marine-hud{width:min(270px,calc(100% - 12px));max-height:calc(100% - 228px - env(safe-area-inset-bottom));overflow:hidden}
  .hud-values{grid-template-columns:1fr 1fr}
  .hud-values>div:nth-child(2),.hud-trend,.overview-highlights,#hudSource{display:block}
  .overview-highlights{margin-top:9px}
  .layer-rail{overflow-x:auto}
}
@media(max-height:560px) and (max-width:950px){.marine-hud{display:block;max-height:calc(100% - 156px - env(safe-area-inset-bottom))}}

/* v8.12.2 iPhone chrome: more map, one-tap hide and compact timeline. */
.mobile-hide-ui,.overview-collapse-toggle{display:none}
body.ui-hidden .inspect-sheet,body.ui-hidden .pro-drawer,body.ui-hidden .route-layer-drawer,body.ui-hidden .route-more-menu,body.ui-hidden .route-bearing-popover,body.ui-hidden .route-target-bar,body.ui-hidden .route-crosshair,body.ui-hidden .mobile-hide-ui{display:none!important}
@media(max-width:599px){
  .topbar{gap:8px}
  .mobile-hide-ui{display:grid;place-items:center;flex:0 0 40px;font-size:19px}
  .overview-collapse-toggle{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;margin:-7px -6px -7px 0;border:1px solid var(--line);border-radius:9px;background:var(--accent-soft);font-size:15px}
  .marine-hud{width:min(270px,calc(100% - 12px));max-height:min(46vh,380px)}
  .marine-hud.mobile-collapsed{width:min(226px,calc(100% - 86px))!important;height:48px!important;min-height:48px!important;max-height:48px!important;overflow:hidden}
  .marine-hud.mobile-collapsed .overview-panel-scroll{height:48px;overflow:hidden;padding:0 10px}
  .marine-hud.mobile-collapsed .hud-kicker{height:48px}
  .marine-hud.mobile-collapsed .overview-filter,
  .marine-hud.mobile-collapsed .hud-values,
  .marine-hud.mobile-collapsed .hud-trend,
  .marine-hud.mobile-collapsed .overview-highlights,
  .marine-hud.mobile-collapsed #hudSource,
  .marine-hud.mobile-collapsed .panel-grip,
  .marine-hud.mobile-collapsed .panel-resizer,
  .marine-hud.mobile-collapsed .panel-resize-bottom{display:none!important}
  .time-dock{bottom:calc(68px + env(safe-area-inset-bottom));height:76px;min-height:76px;padding:4px 6px;grid-template-columns:44px 1fr 44px;gap:5px;border-radius:13px}
  .time-dock>button{width:44px;height:44px;border-radius:9px;font-size:18px}
  .timeline-main{grid-template-rows:40px 28px;gap:0}
  .timeline-days,.forecast-ribbon-wrap,.timeline-foot{display:none!important}
  .timeline-head{gap:5px;min-width:0}
  .timeline-head b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}
  .timeline-head span{flex:0 0 auto;font-size:9px}
  .timeline-head button{flex:0 0 44px;width:44px;height:44px;font-size:12px}
  .timeline-range,.timeline-range input{height:28px}
  .time-ticks{font-size:8px}
  .map-legend{bottom:calc(152px + env(safe-area-inset-bottom));width:148px;padding:8px}
  .restore-ui{left:8px;top:calc(8px + env(safe-area-inset-top));min-height:42px;border-radius:99px;padding:0 14px}
}
.leg-weather b,.leg-weather small{display:block}

/* v8.13.0 ATLAS LAND — isolated, lazy-loaded land map and touch-first tools. */
#landMap{position:absolute;inset:0;z-index:2;background:#dfe8e5}
#landMap[hidden],.land-ui[hidden]{display:none!important}
.land-ui{position:absolute;z-index:40;inset:0;pointer-events:none}
.land-ui button,.land-ui input,.land-sheet{pointer-events:auto}
body.land-mode #marineMap,body.land-mode #particleCanvas,body.land-mode .map-fallback,body.land-mode .marine-hud,body.land-mode .layer-rail,body.land-mode .appearance-panel,body.land-mode .map-legend,body.land-mode .time-dock,body.land-mode .route-tools,body.land-mode .route-readout,body.land-mode .route-empty-hint,body.land-mode .route-target-bar,body.land-mode .route-crosshair,body.land-mode .harbour-browser,body.land-mode .station-browser{display:none!important}
body.land-mode .marine-stage{background:#dfe8e5}
body.ui-hidden .land-ui{display:none!important}
body.land-mode .topbar{background:rgba(5,23,29,.96)}
body.land-mode .brand small{color:#8fb2b5}
.land-search{position:absolute;left:16px;top:16px;width:min(440px,calc(100% - 112px));display:grid;grid-template-columns:1fr 48px 48px;gap:7px;padding:7px;border:1px solid rgba(20,76,79,.24);border-radius:16px;background:rgba(249,253,251,.97);box-shadow:0 12px 38px rgba(7,29,34,.2);color:#12333a;pointer-events:auto}
.land-search label{min-width:0}.land-search input{width:100%;height:48px;padding:0 12px;border:0;outline:0;background:transparent;color:#12333a;font:600 14px/1.2 system-ui}.land-search input::placeholder{color:#688185}.land-search>button{width:48px;height:48px;border:0;border-radius:11px;background:#e5f1ef;color:#123b41;font-size:20px}.land-search>button:first-of-type{background:#0b746f;color:#fff;font-size:24px}.land-search>button:active{transform:scale(.97)}
.land-search-results{position:absolute;left:0;right:0;top:70px;max-height:min(56vh,440px);overflow:auto;padding:7px;border:1px solid rgba(20,76,79,.2);border-radius:14px;background:#f8fcfa;box-shadow:0 18px 46px rgba(6,26,31,.25)}.land-search-results>button{width:100%;min-height:58px;display:block;padding:9px 11px;border:0;border-bottom:1px solid rgba(20,76,79,.12);background:transparent;color:#12333a;text-align:left}.land-search-results>button:hover,.land-search-results>button:focus-visible{background:#e2f2ef}.land-search-results b,.land-search-results small{display:block}.land-search-results b{font-size:13px}.land-search-results small{margin-top:4px;color:#607a7e;font-size:10px;line-height:1.35}.land-search-results p{margin:10px;color:#607a7e;font-size:12px}
.land-map-tools{position:absolute;right:16px;top:16px;display:grid;gap:7px;pointer-events:auto}.land-map-tools>button{width:48px;height:48px;border:1px solid rgba(20,76,79,.24);border-radius:13px;background:rgba(249,253,251,.97);box-shadow:0 8px 24px rgba(7,29,34,.16);color:#12333a;font-weight:850}.land-map-tools>button[aria-pressed=true]{background:#0b746f;color:#fff}.land-style-menu{position:absolute;right:56px;top:110px;width:130px;padding:6px;border:1px solid rgba(20,76,79,.22);border-radius:12px;background:#f8fcfa;box-shadow:0 12px 34px rgba(7,29,34,.23)}.land-style-menu button{width:100%;min-height:42px;border:0;border-radius:8px;background:transparent;color:#16383e;text-align:left;padding:0 11px}.land-style-menu button:hover{background:#e2f2ef}
.land-sheet{position:absolute;left:16px;bottom:16px;width:min(420px,calc(100% - 32px));max-height:calc(100% - 104px);display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(127,180,181,.28);border-radius:18px;background:rgba(5,27,34,.96);box-shadow:0 18px 60px rgba(0,12,17,.38);color:#efffff}.land-sheet-grip{height:27px;display:grid;place-items:center;flex:0 0 27px;border:0;background:transparent}.land-sheet-grip i{width:52px;height:5px;border-radius:99px;background:rgba(175,213,214,.3)}.land-sheet>header{display:flex;align-items:end;justify-content:space-between;gap:12px;padding:15px 16px 11px;border-bottom:1px solid rgba(145,194,195,.15)}.land-sheet>header small,.land-sheet>header b{display:block}.land-sheet>header small{color:#53dcd2;font-size:10px;letter-spacing:.12em}.land-sheet>header b{margin-top:3px;font-size:15px}.land-sheet>header>span{color:#96afb2;font-size:10px;text-align:right}.land-sheet>header>span[data-kind=loading]{color:#f4c85b}.land-sheet>header>span[data-kind=warning],.land-sheet>header>span[data-kind=error]{color:#ff987f}
.land-modes{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;padding:9px 10px}.land-modes button{min-width:0;height:53px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:1px solid rgba(145,194,195,.16);border-radius:10px;background:rgba(140,180,184,.04);color:#8fa9ad;font-size:10px;font-weight:750}.land-modes button i{font-size:17px;font-style:normal}.land-modes button.active{border-color:rgba(83,220,210,.58);background:rgba(83,220,210,.13);color:#efffff}
.land-content{min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 12px 12px}.land-help{margin:2px 1px 10px;color:#9db4b7;font-size:11px;line-height:1.45}.land-place-card,.land-pending-mark,.land-route-summary,.land-measure-summary{padding:13px;border:1px solid rgba(145,194,195,.18);border-radius:12px;background:rgba(155,198,201,.055)}.land-place-card small,.land-place-card b,.land-place-card span,.land-place-card em,.land-pending-mark strong,.land-pending-mark span,.land-route-summary strong,.land-route-summary span,.land-measure-summary strong,.land-measure-summary span{display:block}.land-place-card small{color:#53dcd2;font-size:9px;letter-spacing:.1em}.land-place-card b,.land-pending-mark strong,.land-route-summary strong,.land-measure-summary strong{margin-top:3px;font-size:16px}.land-place-card span,.land-place-card em,.land-pending-mark span,.land-route-summary span,.land-measure-summary span{margin-top:4px;color:#9db4b7;font-size:10px;font-style:normal;line-height:1.45}.land-place-card em{color:#68d7d0}.land-favourites{margin-top:12px}.land-favourites>header{display:flex;align-items:center;justify-content:space-between}.land-favourites>header b{font-size:11px}.land-favourites>header button{min-height:36px;border:0;background:transparent;color:#9db4b7;font-size:10px}.land-favourites article{display:grid;grid-template-columns:1fr 42px;border-bottom:1px solid rgba(145,194,195,.13)}.land-favourites article>button{min-width:0;min-height:48px;border:0;background:transparent;color:#efffff;text-align:left}.land-favourites article>button:last-child{text-align:center;font-size:18px;color:#9db4b7}.land-favourites b,.land-favourites small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.land-favourites b{font-size:11px}.land-favourites small,.land-favourites p{color:#8fa9ad;font-size:9px}.land-actions{display:flex;gap:6px;margin-top:10px}.land-actions button{min-height:44px;flex:1;border:1px solid rgba(145,194,195,.22);border-radius:9px;background:rgba(145,194,195,.06);color:#efffff;font-size:11px}.land-actions button:disabled{opacity:.35}.land-actions button:not(:disabled):active{background:rgba(83,220,210,.18)}
.land-featured{margin:0 0 10px}.land-featured>header{display:flex;justify-content:space-between;align-items:center;margin:0 1px 6px}.land-featured>header b{font-size:11px}.land-featured>header span{color:#7f9b9e;font-size:9px}.land-featured>div{display:flex;gap:6px;overflow-x:auto;padding-bottom:3px;scrollbar-width:thin}.land-featured button{flex:0 0 auto;min-height:44px;padding:6px 10px;border:1px solid rgba(145,194,195,.18);border-radius:9px;background:rgba(145,194,195,.05);color:#efffff;text-align:left}.land-featured button b,.land-featured button small{display:block}.land-featured button b{font-size:10px}.land-featured button small{margin-top:2px;color:#8fa9ad;font-size:8px}.land-featured button:active{background:rgba(83,220,210,.15)}.land-saved-routes{padding-top:10px;border-top:1px solid rgba(145,194,195,.13)}
.land-route-weather{margin-top:9px;padding:10px;border-left:3px solid #53dcd2;background:rgba(83,220,210,.07)}.land-route-weather small,.land-route-weather span,.land-route-weather em{display:block}.land-route-weather small{color:#53dcd2;font-size:9px}.land-route-weather span{margin-top:6px;color:#dceced;font-size:10px;line-height:1.4}.land-route-weather span b{display:inline-block;min-width:38px;color:#fff}.land-route-weather em{margin-top:8px;color:#9db4b7;font-size:9px;line-height:1.4}.land-sheet>footer{display:flex;justify-content:space-between;gap:8px;padding:8px 12px;border-top:1px solid rgba(145,194,195,.12);color:#718e92;font-size:8px}.land-sheet canvas{display:block;width:100%;height:110px;margin-top:8px;border-radius:10px;background:rgba(0,10,14,.25)}
.land-sheet.collapsed{height:78px;min-height:78px;max-height:78px}.land-sheet.collapsed>header,.land-sheet.collapsed .land-content,.land-sheet.collapsed>footer{display:none}.land-sheet.collapsed .land-modes{padding-top:0}.land-sheet.collapsed .land-modes button{height:44px;flex-direction:row}.land-sheet.collapsed .land-modes button i{font-size:15px}
.land-marker{display:grid;place-items:center;width:34px;height:34px;border:2px solid rgba(255,255,255,.94);border-radius:50%;box-shadow:0 3px 12px rgba(0,14,20,.4);font:800 11px/1 system-ui;cursor:pointer}.land-route-marker{background:#08746f;color:#fff}.land-measure-marker{background:#f4c85b;color:#17343a}.land-place-marker{width:28px;height:28px;background:#153f48;color:#5ce1d7}.land-selection-marker{width:38px;height:38px;background:#fff;color:#08746f;font-size:17px}.land-marker:focus-visible{outline:3px solid #102f37;outline-offset:2px}
.land-mark-dialog p{color:var(--muted);font-size:11px}.land-mark-dialog form>label+label{margin-top:10px}
body.land-mode #landMap .maplibregl-ctrl-top-right{top:16px;right:76px}body.land-mode #landMap .maplibregl-ctrl-bottom-right{bottom:14px;right:14px}body.land-mode #landMap .maplibregl-canvas:focus-visible{outline:3px solid #08746f;outline-offset:-4px}

@media(max-width:850px){
  .bottom-nav{grid-template-columns:repeat(5,1fr)}
  body.land-mode #landMap .maplibregl-ctrl-top-right{top:76px;right:7px}
  body.land-mode #landMap .maplibregl-ctrl-bottom-right{bottom:calc(66px + env(safe-area-inset-bottom));right:6px}
  .land-search{left:7px;top:7px;width:calc(100% - 70px);grid-template-columns:1fr 44px;padding:5px;border-radius:13px}.land-search input{height:44px}.land-search>button{width:44px;height:44px}.land-search #landHideUi{position:fixed;right:7px;top:7px;background:rgba(249,253,251,.97);color:#12333a}
  .land-map-tools{right:7px;top:65px}.land-map-tools>button{width:44px;height:44px}.land-style-menu{right:50px;top:101px}
  .land-sheet{left:7px;right:7px;bottom:calc(69px + env(safe-area-inset-bottom));width:auto;max-height:min(54vh,470px);border-radius:18px 18px 13px 13px}.land-sheet-grip{height:27px;display:grid;place-items:center;flex:0 0 27px;border:0;background:transparent}.land-sheet-grip i{width:52px;height:5px;border-radius:99px;background:rgba(175,213,214,.3)}.land-sheet>header{padding:3px 13px 8px}.land-sheet>header b{font-size:13px}.land-modes{padding:7px}.land-modes button{height:48px}.land-content{padding:0 9px 9px}.land-sheet>footer{display:none}
  .land-sheet.collapsed{height:78px;min-height:78px}.land-sheet.collapsed>header,.land-sheet.collapsed .land-content{display:none}.land-sheet.collapsed .land-modes{padding-top:0}.land-sheet.collapsed .land-modes button{height:44px;flex-direction:row}.land-sheet.collapsed .land-modes button i{font-size:15px}
}
@media(max-width:380px){.land-modes button{font-size:9px}.land-modes button i{font-size:15px}.land-sheet.collapsed .land-modes button{gap:1px}.land-search input{font-size:12px}}
@media(max-height:600px) and (max-width:850px){.land-sheet{max-height:46vh}.land-sheet:not(.collapsed)>header{display:none}.land-content{max-height:calc(46vh - 62px)}}

/* v8.15.0: six-day forecast chooser and terrain-map refinements. */
.timeline-day-select{display:none}
.timeline-day-select select{height:32px;max-width:120px;border:1px solid var(--line);border-radius:8px;background:var(--panel-solid);padding:0 7px;color:var(--ink);font-size:10px;font-weight:800}
.overview-highlights header>button{min-height:34px;border:1px solid var(--line);border-radius:8px;background:transparent;padding:0 9px;color:var(--muted);font-size:10px}.overview-highlights header>button[aria-pressed=true]{border-color:rgba(67,214,207,.45);background:var(--accent-soft);color:var(--ink)}
.layer-more-toggle button{min-width:58px}
.station-sun-summary{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:10px 0}.station-sun-summary>div{padding:10px;border:1px solid var(--line);border-radius:10px;background:rgba(242,190,73,.07)}.station-sun-summary small,.station-sun-summary b{display:block}.station-sun-summary small{color:var(--muted);font-size:8px;letter-spacing:.05em}.station-sun-summary b{margin-top:4px;font-size:15px}
.land-style-menu{top:165px;width:168px}
.land-terrain-badge{position:absolute;left:50%;top:16px;transform:translateX(-50%);pointer-events:none;padding:6px 10px;border:1px solid rgba(20,76,79,.2);border-radius:999px;background:rgba(249,253,251,.9);box-shadow:0 6px 20px rgba(7,29,34,.12);color:#31575d;font-size:9px;font-weight:800;letter-spacing:.04em}
@media(max-width:599px){
  .layer-more-toggle button{min-width:52px}
  .timeline-head b{display:none}
  .timeline-day-select{display:block;min-width:0;margin-left:auto}
  .timeline-day-select select{display:block;width:100%;max-width:116px;height:36px}
  .land-style-menu{right:50px;top:148px}
  .land-terrain-badge{display:none}
  .station-sun-summary{grid-template-columns:1fr 1fr;margin:8px 0}.station-sun-summary>div{padding:8px}
}

/* v8.15.0: simple-first interface. Advanced data stays available behind one menu. */
.layer-rail{overflow:visible;max-width:calc(100% - 118px)}
.layer-information{position:fixed;z-index:70;left:12px;top:132px;width:min(460px,calc(100vw - 24px));max-height:calc(100vh - 160px);overflow:auto;padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--panel-solid);box-shadow:0 22px 68px rgba(0,0,0,.46)}
.layer-information>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.layer-information>header small,.layer-information>header b{display:block}.layer-information>header small{color:var(--accent);font-size:9px;letter-spacing:.1em}.layer-information>header b{margin-top:2px;font-size:14px}
.layer-information>header>button{min-width:40px!important;width:40px;height:40px!important;border-radius:10px!important;background:rgba(130,170,177,.1)!important;font-size:20px}
.layer-information section+section{margin-top:12px}.layer-information section>strong{display:block;margin:0 0 6px;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.06em}
.layer-information section>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.layer-information section button{min-width:0;height:58px;border:1px solid var(--line);background:rgba(130,170,177,.04)}
.layer-information section button:hover{background:var(--accent-soft)}
.marine-hud.overview-collapsed{width:244px;height:auto!important;min-height:0!important;max-height:none!important;overflow:hidden}
.marine-hud.overview-collapsed .overview-panel-scroll{height:auto;overflow:hidden;padding:10px}
.marine-hud.overview-collapsed .overview-filter,.marine-hud.overview-collapsed .hud-values>div:nth-child(2),.marine-hud.overview-collapsed .hud-trend,.marine-hud.overview-collapsed .overview-highlights,.marine-hud.overview-collapsed #hudSource,.marine-hud.overview-collapsed .panel-grip,.marine-hud.overview-collapsed .panel-resizer,.marine-hud.overview-collapsed .panel-resize-bottom{display:none!important}
.marine-hud.overview-collapsed .hud-values{display:block;margin-top:7px}.marine-hud.overview-collapsed .hud-values>div:first-child{padding:8px 10px}.marine-hud.overview-collapsed .hud-values strong{font-size:17px}

@media(max-width:850px){
  .layer-rail{max-width:none;right:auto;width:auto;overflow:visible}
  .layer-information{left:6px;right:6px;top:116px;width:auto;max-height:calc(100vh - 200px);padding:11px}
  .layer-information section>div{grid-template-columns:repeat(3,minmax(0,1fr))}
  .marine-hud.overview-collapsed{top:58px;width:194px!important;height:auto!important;min-height:0!important;max-height:none!important}
  .marine-hud.overview-collapsed .overview-panel-scroll{height:auto!important;padding:8px}
  .marine-hud.overview-collapsed .hud-kicker{height:auto!important;min-height:32px}
  .marine-hud.overview-collapsed .hud-values{display:block!important;margin-top:4px}
  .marine-hud.overview-collapsed .hud-values>div:first-child{display:block!important;padding:6px 8px}
  .marine-hud.overview-collapsed .hud-values small{font-size:9px}.marine-hud.overview-collapsed .hud-values strong{font-size:15px}.marine-hud.overview-collapsed .hud-values span,.marine-hud.overview-collapsed .hud-values em{font-size:9px}
}

@media(max-width:599px){
  .topbar{height:50px;flex-basis:50px}.brand img{width:28px;height:28px}.brand{gap:7px}.round-button{width:38px;height:38px}
  .layer-rail{top:5px;left:5px;padding:3px;gap:2px;border-radius:12px}.layer-rail button{min-width:52px;height:42px;padding:0 5px}.layer-rail button span{font-size:13px}.layer-rail button b{font-size:9px}.layer-group+.layer-group{padding-left:2px}
  .layer-information{top:105px;max-height:calc(100vh - 184px)}
  .time-dock{left:5px;right:5px;bottom:calc(66px + env(safe-area-inset-bottom));height:58px;min-height:58px;padding:3px 5px;grid-template-columns:40px 1fr 40px;gap:4px;border-radius:12px}
  .time-dock>button{width:40px;height:40px;font-size:17px}.timeline-main{grid-template-rows:26px 18px;gap:0}.timeline-head{gap:4px}.timeline-head b{display:block;flex:1;font-size:9px}.timeline-head>span{display:none}.timeline-head button{display:none}.timeline-day-select{margin-left:0}.timeline-day-select select{width:94px;max-width:94px;height:25px;padding:0 4px;font-size:8px}.timeline-range,.timeline-range input{height:18px}.time-ticks{font-size:7px}
  .map-legend{right:5px;bottom:calc(130px + env(safe-area-inset-bottom));width:126px;padding:7px 8px;border-radius:11px}.map-legend header b,.map-legend header span{font-size:10px}.map-legend>i{height:6px;margin-top:5px}.map-legend>div{font-size:8px;margin-top:3px}.legend-ticks,.legend-model-note{display:none!important}
  .bottom-nav{height:calc(60px + env(safe-area-inset-bottom))}.marine-stage{padding-bottom:calc(60px + env(safe-area-inset-bottom))}
}

@media(max-width:360px){.layer-rail button{min-width:49px}.layer-information section>div{grid-template-columns:repeat(2,minmax(0,1fr))}.marine-hud.overview-collapsed{width:182px!important}}

/* v8.16.0: one-row controls, reserved map zones and regional overview. */
.build-version{padding:3px 6px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:9px;font-weight:800;white-space:nowrap}
.layer-rail{right:auto;width:max-content;max-width:calc(100% - 118px);overflow:visible}
.marine-hud:not(.panel-custom){top:80px;bottom:auto;max-height:min(52vh,calc(100% - 228px))}
.time-dock{width:min(700px,calc(100% - 540px));min-width:420px}
.layer-information:not([hidden]){display:block}
@media(max-width:1050px) and (min-width:851px){
  .time-dock{width:min(620px,calc(100% - 390px));min-width:360px}
  .map-legend{width:174px}
  .marine-hud:not(.panel-custom){width:270px}
}
@media(max-width:850px){
  .build-version{display:none}
  .layer-rail{right:6px;width:auto;max-width:none;overflow-x:auto}
  .marine-hud:not(.panel-custom){top:61px;bottom:auto;max-height:min(42vh,calc(100% - 238px - env(safe-area-inset-bottom)))}
  .time-dock{width:auto;min-width:0}
}
@media(max-width:599px){
  .marine-hud:not(.panel-custom){top:54px;bottom:auto;max-height:min(36vh,calc(100% - 190px - env(safe-area-inset-bottom)))}
  .marine-hud.overview-collapsed{bottom:auto}
  .layer-information{top:102px;bottom:calc(130px + env(safe-area-inset-bottom));max-height:none}
}

/* v8.17.0: fixed safe zones. The primary map panels no longer compete for the same pixels. */
.layer-information{bottom:136px;max-height:none}
@media(max-width:1300px) and (min-width:851px){
  .time-dock{left:290px;right:220px;transform:none;width:auto;min-width:0}
}
@media(max-width:850px){.layer-information{bottom:calc(168px + env(safe-area-inset-bottom))}}
@media(max-width:599px){.layer-information{bottom:calc(130px + env(safe-area-inset-bottom))}}

/* v8.18.0: one continuous history/now/forecast control and deterministic layer selection. */
.timeline-head .timeline-now{width:auto;min-width:48px;margin-left:auto;padding:0 9px;color:var(--ink);font-size:10px;font-weight:850}
.timeline-head #timePlay{margin-left:0}
.timeline-head .timeline-now:disabled{border-color:rgba(67,214,207,.4);background:var(--accent-soft);color:var(--accent);opacity:1;cursor:default}
#timeKind[data-phase="history"]{color:#b8c7ca}#timeKind[data-phase="forecast"]{color:#56e0d8}
.timeline-days button[data-phase="history"]{border-color:rgba(184,199,202,.28)}.timeline-days button[data-phase="now"]{font-weight:900}.timeline-days button[data-phase="forecast"]{border-color:rgba(67,214,207,.28)}
.timeline-days button.active[data-phase="history"]{border-color:#c2d0d2}.timeline-days button.active[data-phase="now"],.timeline-days button.active[data-phase="forecast"]{border-color:var(--accent)}
.timeline-range{--now-pct:33.33%;--selected-pct:33.33%;border-radius:7px;background:linear-gradient(90deg,rgba(174,191,194,.14) 0,var(--now-pct),rgba(67,214,207,.12) var(--now-pct),rgba(67,214,207,.12) 100%)}
.timeline-range::before{content:"";position:absolute;z-index:1;top:0;bottom:0;left:var(--now-pct);width:2px;transform:translateX(-1px);background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.35);pointer-events:none}
.timeline-range::after{content:"";position:absolute;z-index:2;left:var(--selected-pct);top:50%;width:11px;height:11px;transform:translate(-50%,-50%);border:2px solid #fff;border-radius:50%;background:#087e7a;box-shadow:0 2px 8px rgba(0,0,0,.42);pointer-events:none}
.timeline-range input{z-index:3}.time-ticks{position:relative;z-index:1;padding:0 4px;pointer-events:none}.time-ticks span{white-space:nowrap}
.history-key{display:inline-block;width:10px;height:3px;margin:0 3px 2px 6px;background:#aebfc2}
body.info-layers-open .marine-hud{visibility:hidden}
.camera-filters{flex:0 0 auto;min-height:40px}.harbour-list{overflow-x:hidden}.camera-tabs{min-width:0;scrollbar-width:none}
.station-list>.list-more,.harbour-list>.list-more{width:100%;min-height:46px}
#overviewPanel .overview-panel-scroll{max-height:inherit;overflow-y:auto!important;overflow-x:hidden}
#overviewPanel .overview-highlights{max-height:none!important;overflow:visible!important}
#overviewPanel .overview-rank-list{touch-action:pan-y!important}

@media(max-width:599px){
  .layer-rail button{min-width:48px;padding:0 4px}.layer-more-toggle button{min-width:46px}.layer-rail button b{font-size:8.5px}
  .time-dock{height:54px;min-height:54px;grid-template-columns:36px 1fr 36px;padding:3px 4px}
  .time-dock>button{width:36px;height:36px}
  .timeline-main{grid-template-rows:25px 19px}
  .timeline-head b,.timeline-head>span,.timeline-head #timePlay{display:none}
  .timeline-head .timeline-now{display:block;order:2;min-width:42px;width:42px;height:25px;margin-left:auto;padding:0 3px;font-size:8px}
  .timeline-day-select{display:block;order:1;flex:1;margin:0;min-width:0}
  .timeline-day-select select{width:100%;max-width:none;height:25px;padding:0 5px;font-size:8px}
  .timeline-days,.forecast-ribbon-wrap,.timeline-foot{display:none!important}
  .timeline-range,.timeline-range input{height:19px}.time-ticks{font-size:7px}
  .map-legend{bottom:calc(122px + env(safe-area-inset-bottom))}
  .layer-information{bottom:calc(124px + env(safe-area-inset-bottom))}
  body.info-layers-open .map-legend,body.overview-expanded .map-legend{visibility:hidden}
}

@media(max-width:350px){
  .layer-rail button{min-width:45px}.layer-rail button span{font-size:12px}.layer-rail button b{font-size:8px}
  .timeline-head .timeline-now{min-width:38px;width:38px}.timeline-day-select select{font-size:7.5px}
}

/* PR2: fit 6 primary layers + Meira on compact phones */
@media(max-width:390px){.layer-rail button{min-width:44px;padding:0 3px}.layer-rail button b{font-size:8px}.layer-more-toggle button{min-width:42px}.bottom-nav a{font-size:10px}}


/* PR3: collapsed forecast timeline by default — keep full power when expanded. */
.timeline-expand{flex:0 0 auto;width:32px;height:28px;min-width:28px;min-height:28px;margin-left:0;border:1px solid var(--line);border-radius:8px;background:var(--accent-soft);font-size:14px;line-height:1;position:relative;z-index:5;pointer-events:auto}
.time-dock.timeline-collapsed{height:56px;min-height:56px;max-height:64px;padding:6px 8px;align-items:center}
.time-dock.timeline-collapsed .timeline-main{grid-template-rows:28px 14px;gap:2px}
.time-dock.timeline-collapsed .timeline-head{min-width:0;gap:6px}
.time-dock.timeline-collapsed .timeline-head b,
.time-dock.timeline-collapsed .timeline-head>span,
.time-dock.timeline-collapsed .timeline-day-select,
.time-dock.timeline-collapsed #timePlay,
.time-dock.timeline-collapsed .timeline-days,
.time-dock.timeline-collapsed .forecast-ribbon-wrap,
.time-dock.timeline-collapsed .timeline-foot{display:none!important}
.time-dock.timeline-collapsed .timeline-head .timeline-now{display:block;order:1;margin-left:0;min-width:48px;height:26px;padding:0 8px;font-size:10px}
.time-dock.timeline-collapsed .timeline-expand{display:grid!important;place-items:center;order:2;margin-left:auto;width:32px;height:28px;min-width:28px;min-height:28px;font-size:13px;position:relative;z-index:5;pointer-events:auto}
.time-dock.timeline-collapsed .timeline-range,.time-dock.timeline-collapsed .timeline-range input{height:14px}
.time-dock.timeline-collapsed .time-ticks{font-size:0;border:0;opacity:0}
.time-dock.timeline-collapsed .timeline-range::after{width:9px;height:9px}
.time-dock.timeline-collapsed .timeline-range{border-radius:99px}
.time-dock.timeline-expanded{height:auto;min-height:112px;max-height:none}
.time-dock.timeline-expanded .timeline-main{grid-template-rows:24px 24px 27px 22px 15px;gap:2px}
.time-dock.timeline-expanded .timeline-days{display:flex!important}
.time-dock.timeline-expanded .forecast-ribbon-wrap{display:block!important}
.time-dock.timeline-expanded .timeline-foot{display:flex!important}
.time-dock.timeline-expanded .timeline-head b,.time-dock.timeline-expanded .timeline-head>span{display:initial}
.time-dock.timeline-expanded .timeline-head #timePlay{display:inline-flex!important;align-items:center;justify-content:center}
.time-dock.timeline-expanded .timeline-expand{display:grid!important;place-items:center;min-width:28px;min-height:28px;pointer-events:auto;position:relative;z-index:5}
body.timeline-chrome-expanded .map-legend{bottom:138px}
@media(max-width:850px){
  .time-dock.timeline-collapsed{height:56px;min-height:56px;max-height:64px;padding:4px 6px}
  .time-dock.timeline-collapsed .timeline-main{grid-template-rows:28px 14px;gap:2px}
  .time-dock.timeline-collapsed .timeline-range,.time-dock.timeline-collapsed .timeline-range input{height:12px}
  .time-dock.timeline-expanded{min-height:118px;height:auto;max-height:none;padding:6px}
  .time-dock.timeline-expanded .timeline-main{grid-template-rows:22px 21px 24px 18px 0;gap:2px}
  .time-dock.timeline-expanded .timeline-foot{display:none!important}
  .time-dock.timeline-expanded #forecastRibbon{height:18px}
  body.timeline-chrome-expanded .map-legend{bottom:196px}
}
@media(max-width:599px){
  .time-dock.timeline-collapsed{height:56px;min-height:56px;max-height:64px;padding:3px 4px;grid-template-columns:36px 1fr 36px}
  .time-dock.timeline-collapsed .timeline-main{grid-template-rows:28px 14px;gap:1px}
  .time-dock.timeline-collapsed .timeline-head .timeline-now{display:block!important;min-width:40px;width:auto;height:28px;padding:0 6px;font-size:9px}
  .time-dock.timeline-collapsed .timeline-expand{display:grid!important;place-items:center;width:32px;height:28px;min-width:28px;min-height:28px;font-size:12px;pointer-events:auto;z-index:5}
  .time-dock.timeline-collapsed .timeline-day-select,.time-dock.timeline-collapsed .timeline-head b,.time-dock.timeline-collapsed .timeline-head>span,.time-dock.timeline-collapsed #timePlay{display:none!important}
  .timeline-head>.timeline-expand,#timelineExpand{display:grid!important;pointer-events:auto!important;min-width:28px;min-height:28px}
  .time-dock.timeline-collapsed .timeline-range,.time-dock.timeline-collapsed .timeline-range input{height:12px}
  .time-dock.timeline-expanded{height:auto;min-height:132px;max-height:none;padding:5px;grid-template-columns:36px 1fr 36px}
  .time-dock.timeline-expanded .timeline-main{grid-template-rows:24px 22px 22px 18px;gap:2px}
  .time-dock.timeline-expanded .timeline-head{flex-wrap:wrap;gap:4px}
  .time-dock.timeline-expanded .timeline-head b{display:none}
  .time-dock.timeline-expanded .timeline-head>span{display:none}
  .time-dock.timeline-expanded .timeline-day-select{display:block!important;order:1;flex:1;margin:0;min-width:0}
  .time-dock.timeline-expanded .timeline-day-select select{width:100%;max-width:none;height:24px}
  .time-dock.timeline-expanded .timeline-head .timeline-now{display:block!important;order:2;min-width:42px;height:24px}
  .time-dock.timeline-expanded .timeline-head #timePlay{display:inline-flex!important;order:3;width:32px;height:24px}
  .time-dock.timeline-expanded .timeline-expand{display:grid!important;place-items:center;order:4;width:32px;height:28px;min-width:28px;min-height:28px;pointer-events:auto}
  .time-dock.timeline-expanded .timeline-days{display:flex!important}
  .time-dock.timeline-expanded .forecast-ribbon-wrap{display:block!important}
  .time-dock.timeline-expanded .timeline-foot{display:none!important}
  .time-dock.timeline-expanded .timeline-range,.time-dock.timeline-expanded .timeline-range input{height:20px}
  .time-dock.timeline-expanded .time-ticks{font-size:7px;opacity:1;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
  body.timeline-chrome-expanded .map-legend{bottom:calc(198px + env(safe-area-inset-bottom))}
}

/* PR4: always-visible Mælt | Líkan | Spá chip on Kort — keep full timeline power. */
.mode-chip{display:inline-flex;flex:1 1 auto;align-items:stretch;min-width:0;max-width:220px;height:26px;margin:0;padding:2px;gap:2px;border:1px solid var(--line);border-radius:99px;background:rgba(6,22,28,.42);position:relative;z-index:4}
.mode-chip button,.timeline-head .mode-chip button{flex:1 1 0;min-width:0;width:auto;height:auto;margin:0;padding:0 5px;border:0;border-radius:99px;background:transparent;color:var(--muted);font-size:10px;font-weight:850;line-height:1;letter-spacing:.01em}
.mode-chip button.active,.timeline-head .mode-chip button.active{background:var(--accent-soft);color:var(--accent)}
.mode-chip button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.time-dock .mode-chip,.time-dock.timeline-collapsed .mode-chip,.time-dock.timeline-expanded .mode-chip{display:inline-flex!important}
.time-dock.timeline-collapsed .mode-chip{order:1;flex:1 1 auto;max-width:none;height:26px;min-height:24px}
.time-dock.timeline-collapsed .timeline-head .timeline-now{order:2;margin-left:0}
.time-dock.timeline-collapsed .timeline-expand{order:3;margin-left:0}
@media(max-width:850px){
  .mode-chip{max-width:none;height:26px}
  .mode-chip button,.timeline-head .mode-chip button{font-size:9px;padding:0 4px}
}
@media(max-width:599px){
  .mode-chip,.time-dock.timeline-collapsed .mode-chip,.time-dock.timeline-expanded .mode-chip{display:inline-flex!important;height:24px;min-height:22px}
  .time-dock.timeline-collapsed .mode-chip{order:1;flex:1 1 auto;min-width:0;max-width:none}
  .time-dock.timeline-expanded .mode-chip{order:0;flex:1 1 100%;max-width:none}
  .timeline-head .mode-chip button{font-size:9px;padding:0 3px}
}


/* PR5: station detail as right/bottom sheet — map stays interactive and mostly visible. */
body.inspect-open .map-legend{right:384px}
@media(max-width:850px){
  body.inspect-open .map-legend{right:6px;bottom:calc(52vh + 72px + env(safe-area-inset-bottom))}
  body.inspect-open.timeline-chrome-expanded .map-legend{bottom:calc(52vh + 72px + env(safe-area-inset-bottom))}
}
@media(min-width:851px){
  .inspect-sheet{width:360px}
  body.inspect-open .inspect-sheet{/* ~360px leaves ≥40% map on typical desktops */}
}
