/* pws-watch: Atlas/Horizon preview; all changes stay inside /dashboard-wip. */
html:has(body.wip-dashboard), body.wip-dashboard { background:#041725 !important; }
body.wip-dashboard { --ink:#e9f5ff; --muted:#a8c3d9; --line:#21465b; --panel:#082335; --cyan:#5cddff; color:var(--ink); font-family:system-ui,-apple-system,sans-serif; }
body.wip-dashboard::before, body.wip-dashboard::after { display:none; }
body.wip-dashboard .shell { width:min(1480px,calc(100% - 32px)); max-width:1480px; }
body.wip-dashboard .panel { border-color:var(--line); background:#061d2e; box-shadow:none; }
body.wip-dashboard header { display:flex; flex-wrap:wrap; gap:12px; background:transparent; border:0; border-bottom:1px solid var(--line); border-radius:0; box-shadow:none; }
body.wip-dashboard header h1 { font:800 30px/1.1 system-ui,sans-serif; }
body.wip-dashboard .subhead { color:var(--muted); font-size:12px; }
.wip-banner { display:flex; justify-content:space-between; gap:12px; padding:6px 0; font-size:11px; color:var(--muted); }
.wip-banner a { color:var(--cyan); }
.wip-navigation { display:flex; gap:24px; align-items:center; margin-left:auto; }
.wip-navigation a { color:var(--ink); font-size:14px; text-decoration:none; padding:10px 0; }
.wip-navigation a:hover, .wip-navigation a:focus-visible { color:var(--cyan); text-decoration:underline; text-underline-offset:6px; }
.wip-settings { margin:0 0 8px; }
.wip-settings summary { cursor:pointer; color:var(--muted); font-size:12px; padding:8px 0; }
body.wip-dashboard #currentPanel { display:block; padding:0; border:0; border-radius:0; min-height:0; overflow:visible; background:transparent; }
body.wip-dashboard #currentPanel::before, body.wip-dashboard #currentPanel::after { display:none; }
body.wip-dashboard #currentPanel .dial-module { display:none; }
body.wip-dashboard .wip-weather-header { position:relative; height:320px; background:#08283c; isolation:isolate; }
body.wip-dashboard .wip-weather-header .map-panel { position:absolute; inset:0; padding:0; border:0; border-radius:0; margin:0; background:#08283c; }
body.wip-dashboard .wip-weather-header #stationMap { height:320px; min-height:320px; border-radius:0; }
body.wip-dashboard .map-head { position:absolute; top:10px; right:10px; left:10px; z-index:450; pointer-events:none; align-items:flex-start; }
body.wip-dashboard .map-head > div { pointer-events:auto; background:#061b2eee; border-radius:5px; padding:5px 8px; }
body.wip-dashboard .map-head .mini-title { display:none; }
body.wip-dashboard .map-meta { font-size:11px; }
body.wip-dashboard .map-actions { margin-left:auto; }
body.wip-dashboard .map-button { background:#082335; color:#e9f5ff; border-color:#355b72; }
body.wip-dashboard .map-button.active { color:#5cddff; border-color:#5cddff; }
body.wip-dashboard .atlas-conditions { position:absolute; z-index:430; left:50%; top:55%; transform:translate(-50%,-50%); width:min(480px,58%); padding:12px 22px; background:#041725e8; border-radius:8px; text-align:center; pointer-events:none; }
body.wip-dashboard #currentPanel .current-top { display:flex; justify-content:center; gap:14px; margin:0 0 4px; width:100%; }
body.wip-dashboard #currentPanel .station { text-align:center; }
body.wip-dashboard #currentPanel .station-name { font-size:17px; letter-spacing:.04em; }
body.wip-dashboard #currentPanel .station-meta { font-size:12px; color:var(--muted); }
body.wip-dashboard #currentPanel .freshness { position:absolute; top:-42px; right:-10px; color:#baff96; background:#102e30; border-color:#446859; }
body.wip-dashboard #currentPanel .temp-stack { display:block; width:100%; }
body.wip-dashboard #currentPanel .temp-row { display:flex; justify-content:center; width:100%; }
body.wip-dashboard #currentPanel .temp { display:block; font:800 68px/1.05 system-ui,sans-serif; letter-spacing:-3px; }
body.wip-dashboard #currentPanel .temp-decimal { font-size:.5em; vertical-align:baseline; margin:0; }
body.wip-dashboard #currentPanel .temp small { font-size:30px; vertical-align:super; }
body.wip-dashboard #currentPanel .weather-visual { display:none; }
body.wip-dashboard #currentPanel .weather-brief { display:block; margin:8px auto 0; padding:0; border:0; background:transparent; border-radius:0; font:15px/1.45 system-ui,sans-serif; color:#e9f5ff; }
body.wip-dashboard #currentPanel .brief-kicker { display:none; }
.wip-changes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:16px 0; border-bottom:1px solid var(--line); }
.wip-changes h2 { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.wip-change { margin:0; padding:0 24px; border-right:1px solid var(--line); }
.wip-change:last-child { border-right:0; }
.wip-change strong { display:block; text-transform:uppercase; letter-spacing:.12em; color:var(--muted); font-size:11px; margin-bottom:8px; }
.wip-change > span { display:block; font:700 20px/1.35 system-ui,sans-serif; color:var(--cyan); }
#wipTemperature { color:#ffad51; }
body.wip-dashboard .forecast-section { padding:14px 0; margin:0; border:0; border-radius:0; background:transparent; }
body.wip-dashboard .forecast-section h2 { font-size:23px; }
body.wip-dashboard #forecastOutlook { font-size:13px; color:var(--muted); margin:6px 0 12px; }
.atlas-forecast-scroll { overflow-x:auto; border:1px solid var(--line); }
.atlas-forecast-scroll:focus-visible { outline:2px solid var(--cyan); outline-offset:3px; }
.atlas-forecast-plot { position:relative; min-width:calc(var(--atlas-hours,12) * 76px); }
body.wip-dashboard #forecastHours { display:grid; grid-template-columns:repeat(var(--atlas-hours,12),minmax(0,1fr)); overflow:visible; gap:0; padding:0; margin:0; }
body.wip-dashboard #forecastHours li { display:grid; grid-template-rows:20px 30px 26px 104px 22px; gap:0; padding:8px 2px; background:transparent; border:0; border-right:1px solid var(--line); border-radius:0; }
body.wip-dashboard #forecastHours li:last-child { border:0; }
body.wip-dashboard .forecast-time { grid-row:1; font-size:12px; }
body.wip-dashboard .forecast-icon { grid-row:2; font-size:24px; }
body.wip-dashboard .forecast-temperature { grid-row:3; font-size:18px; }
body.wip-dashboard .forecast-rain { grid-row:5; color:var(--cyan); font-size:12px; }
.atlas-forecast-curve { position:absolute; top:84px; height:100px; left:0; right:0; pointer-events:none; }
.atlas-forecast-curve svg { width:100%; height:100%; display:block; overflow:visible; }
.atlas-chart-rule { stroke:#294c60; stroke-width:.5; }
.atlas-chart-line { fill:none; stroke:#ffad32; stroke-width:3; vector-effect:non-scaling-stroke; }
.atlas-chart-dot { fill:#fff1cc; stroke:#ffad32; stroke-width:2; vector-effect:non-scaling-stroke; }
.atlas-instruments { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; margin:0 0 20px; }
body.wip-dashboard .atlas-instruments .metric { position:relative; min-height:98px; padding:15px 20px; border:0; border-top:1px solid var(--line); border-radius:0; background:transparent; box-shadow:none; }
body.wip-dashboard .atlas-instruments .metric:not(:nth-child(4n)) { border-right:1px solid var(--line); }
body.wip-dashboard .atlas-instruments .metric-value { font:750 27px/1.3 system-ui,sans-serif; }
body.wip-dashboard .atlas-instruments .metric-label { font-size:11px; letter-spacing:.1em; }
body.wip-dashboard .provider-card { grid-column:1/-1; }
body.wip-dashboard .expanded-map-dialog .map-panel { position:relative; }
body.wip-dashboard .expanded-map-dialog .map-head { position:static; }
body.wip-dashboard .atlas-instruments .wip-wind-card { position:relative; padding-right:92px; }
.wip-wind-compass { position:absolute; right:14px; top:50%; transform:translateY(-50%); width:58px; height:58px; border:1px solid var(--line); border-radius:50%; color:var(--muted); font-size:9px; font-weight:700; }
.wip-wind-compass > span:not(.wip-wind-arrow) { position:absolute; }
.wip-compass-n { top:1px; left:50%; transform:translateX(-50%); }
.wip-compass-s { bottom:1px; left:50%; transform:translateX(-50%); }
.wip-compass-e { right:3px; top:50%; transform:translateY(-50%); }
.wip-compass-w { left:3px; top:50%; transform:translateY(-50%); }
.wip-wind-arrow { position:absolute; inset:14px 27px; background:var(--cyan); transform-origin:center; }
.wip-wind-arrow::before { content:""; position:absolute; top:-3px; left:-4px; border-left:5px solid transparent; border-right:5px solid transparent; border-bottom:8px solid var(--cyan); }
.wip-wind-arrow[hidden] { display:none; }
@media(max-width:760px) {
 body.wip-dashboard .shell { width:calc(100% - 24px); }
 .wip-banner { flex-wrap:wrap; }
 .wip-navigation { width:100%; justify-content:space-between; margin:0; }
 body.wip-dashboard .wip-weather-header, body.wip-dashboard .wip-weather-header #stationMap { height:370px; min-height:370px; }
 body.wip-dashboard .atlas-conditions { width:80%; top:57%; padding:12px; }
 body.wip-dashboard .map-head { flex-wrap:wrap; gap:6px; }
 body.wip-dashboard .map-head > div:first-child { max-width:55%; }
 body.wip-dashboard .map-meta { font-size:10px; }
 body.wip-dashboard .map-actions { gap:4px; }
 body.wip-dashboard .map-button { padding:6px; font-size:11px; }
 .wip-changes { grid-template-columns:1fr; padding:0; }
 .wip-change { padding:14px 4px; border-right:0; border-bottom:1px solid var(--line); }
 .wip-change strong { margin-bottom:4px; }
 .wip-change > span { font-size:18px; }
 .atlas-instruments { grid-template-columns:repeat(2,minmax(0,1fr)); }
 body.wip-dashboard .atlas-instruments .metric { padding:12px 8px; }
 body.wip-dashboard .atlas-instruments .metric:nth-child(2n) { border-right:0; }
 body.wip-dashboard .atlas-instruments .metric-value { font-size:23px; }
 body.wip-dashboard .atlas-instruments .wip-wind-card { padding-right:65px; }
 .wip-wind-compass { width:44px; height:44px; right:6px; }
 .wip-wind-arrow { inset:11px 20px; }
}
body.wip-dashboard .wip-weather-header .map-panel { min-height:0; height:100%; overflow:hidden; }
body.wip-dashboard .wip-weather-header { z-index:0; }
.wip-changes { position:relative; z-index:1; background:#041c2c; }
.atlas-osm-basemap { filter:invert(1) hue-rotate(180deg) brightness(.65) saturate(.7); }
.wip-change { position:relative; padding-left:72px; }
.atlas-signal-icon { position:absolute; left:22px; top:10px; width:32px; height:40px; color:var(--cyan); }
.wip-change:first-of-type .atlas-signal-icon { color:#ffad51; }
.wip-change > span { font-size:12px; font-weight:400; color:var(--muted); }
.wip-change > .atlas-signal-title { font-size:23px; font-weight:750; line-height:1.25; color:var(--cyan); margin-bottom:5px; }
.wip-change:first-of-type > .atlas-signal-title { color:#ffad51; }
#wipTemperature { color:var(--muted); }
.atlas-osm-basemap { filter:invert(1) grayscale(1) sepia(1) saturate(3) hue-rotate(150deg) brightness(1.15); }
body.wip-dashboard .wip-weather-header .leaflet-control-zoom { margin-top:55px; }
@media(max-width:760px) {
 .wip-change { padding-left:52px; }
 .atlas-signal-icon { left:7px; width:28px; }
 .wip-change > .atlas-signal-title { font-size:21px; }
 .wip-change > span { font-size:12px; }
}
@media(max-width:760px) {
 body.wip-dashboard .wip-weather-header .map-head { display:block; }
 body.wip-dashboard .wip-weather-header .map-head > div:first-child { position:absolute; top:306px; left:0; max-width:100%; padding:3px 5px; }
 body.wip-dashboard .wip-weather-header .map-actions { float:right; }
}
@media(max-width:760px) {
 body.wip-dashboard .wip-weather-header .map-head > div:first-child { top:0; max-width:43%; }
}
body.wip-dashboard #currentPanel .freshness { color:#c8d7e3; background:#132936; border-color:#587082; }
body.wip-dashboard #currentPanel .freshness.fresh { color:#baff96; background:#102e30; border-color:#446859; }
body.wip-dashboard #currentPanel .freshness.stale { color:#ffda8b; background:#362b17; }
body.wip-dashboard #currentPanel .freshness.expired,
body.wip-dashboard #currentPanel .freshness.unavailable { color:#ffb4a8; background:#3a2023; }
body.wip-dashboard #stationMap { background:#06283c; }
.atlas-basemap { mix-blend-mode:screen; }
.atlas-carto-basemap { filter:sepia(1) saturate(4) hue-rotate(145deg) brightness(1.5); }
body.wip-dashboard .atlas-conditions { background:#041725c9; border-radius:0; }
body.wip-dashboard .forecast-section { position:relative; }
.atlas-forecast-heading { display:flex; gap:20px; justify-content:space-between; align-items:baseline; padding-right:180px; margin-bottom:12px; }
body.wip-dashboard #forecastAttribution { margin:0; font-size:11px; color:var(--muted); }
body.wip-dashboard #forecastOutlook { display:none; }
body.wip-dashboard:not(.review-dashboard) #forecastMore > summary { position:absolute; right:0; top:19px; padding:0; color:var(--cyan); font-size:12px; }
body.wip-dashboard .atlas-instruments .metric { min-height:90px; padding-top:12px; padding-bottom:12px; }
@media(max-width:760px) {
 .atlas-forecast-heading { display:block; padding-right:90px; }
 body.wip-dashboard #forecastAttribution { margin-top:6px; font-size:10px; }
 body.wip-dashboard:not(.review-dashboard) #forecastMore > summary { width:80px; }
}
/* Restore both themes, using the shared persisted theme control. */
body.wip-dashboard { --atlas-page:#041725; --atlas-panel:#061d2e; --atlas-map-bg:#06283c; --atlas-accent:#ffad51; }
html:has(body.wip-dashboard), body.wip-dashboard { background:var(--atlas-page,#041725) !important; }
body.wip-dashboard .panel, .wip-changes { background:var(--atlas-panel); }
body.wip-dashboard #stationMap { background:var(--atlas-map-bg); }
body.wip-dashboard .map-head > div, body.wip-dashboard .map-button { background:var(--atlas-panel); color:var(--ink); border-color:var(--line); }
body.wip-dashboard .map-meta { color:var(--muted); }
body.wip-dashboard .atlas-conditions { top:auto; bottom:28px; transform:translateX(-50%); width:min(520px,68%); padding:0; background:none; border:0; box-shadow:none; color:#e9f5ff; text-shadow:0 1px 4px #041725,0 0 12px #041725; }
body.wip-dashboard #currentPanel .atlas-conditions .temp { font-size:44px; letter-spacing:-1.5px; }
body.wip-dashboard #currentPanel .atlas-conditions .temp small { font-size:22px; }
body.wip-dashboard #currentPanel .atlas-conditions .weather-brief { font-size:14px; line-height:1.35; color:inherit; max-width:480px; margin-top:4px; }
.atlas-station-header { display:flex; align-items:center; gap:16px; margin:0 0 0 12px; width:auto; }
.atlas-station-header .station-name { font-size:15px; font-weight:750; }
.atlas-station-header .station-meta { color:var(--muted); font-size:12px; }
.atlas-station-header .freshness { position:static; font-size:10px; }
.wip-change:first-of-type .atlas-signal-icon,
.wip-change:first-of-type > .atlas-signal-title { color:var(--atlas-accent); }
.atlas-chart-line { stroke:var(--atlas-accent); }
.atlas-chart-dot { stroke:var(--atlas-accent); }
.atlas-chart-rule { stroke:var(--line); }
.atlas-forecast-curve text { fill:var(--muted); }
html[data-theme="light"]:has(body.wip-dashboard) { background:#edf5fa !important; }
[data-theme="light"] body.wip-dashboard { --atlas-page:#edf5fa; --atlas-panel:#fff; --atlas-map-bg:#e5eff4; --atlas-accent:#a94600; --ink:#122d40; --muted:#49647b; --line:#b8cfdd; --panel:#fff; --cyan:#006c88; }
[data-theme="light"] body.wip-dashboard .atlas-basemap { filter:none; mix-blend-mode:normal; }
[data-theme="light"] body.wip-dashboard .atlas-conditions { color:#102e43; text-shadow:0 1px 3px #fff,0 0 10px #fff,0 0 16px #fff; }
[data-theme="light"] body.wip-dashboard .wip-weather-header .map-panel { background:var(--atlas-map-bg); }
[data-theme="light"] body.wip-dashboard .atlas-instruments .metric-value { color:var(--ink); }
[data-theme="light"] body.wip-dashboard #currentPanel .weather-brief { color:inherit; }
@media(max-width:760px) {
 .atlas-station-header { width:100%; justify-content:space-between; margin:0; }
 body.wip-dashboard .atlas-conditions { width:84%; bottom:40px; }
 body.wip-dashboard #currentPanel .atlas-conditions .temp { font-size:40px; }
 body.wip-dashboard #currentPanel .atlas-conditions .weather-brief { font-size:13px; }
}
[data-theme="light"] body.wip-dashboard .map-button.active { color:var(--cyan); border-color:var(--cyan); }
@media(max-width:760px) {
 body.wip-dashboard .atlas-conditions { bottom:76px; }
}
body.wip-dashboard .provider-card { padding:0; }
body.wip-dashboard .provider-card .atlas-provider-toggle { display:flex; justify-content:space-between; align-items:center; gap:16px; width:100%; min-height:60px; padding:16px 20px; border:0; border-radius:0; background:transparent; box-shadow:none; color:var(--ink); text-align:left; cursor:pointer; }
body.wip-dashboard .atlas-provider-title { font-size:20px; font-weight:800; }
body.wip-dashboard .atlas-provider-toggle #providerCatalogStatus { font-size:13px; font-weight:750; color:var(--muted); }
body.wip-dashboard .atlas-provider-toggle:focus-visible { outline:2px solid var(--cyan); outline-offset:-4px; }
body.wip-dashboard .provider-card #providerPopover { margin:0; padding:0 20px 20px; }
body.wip-dashboard .provider-card #providerPopover[hidden] { display:none !important; }
/* Keep forecast heading content clear of the section edges. */
body.wip-dashboard .atlas-forecast-heading { margin-left:20px; margin-right:20px; }
body.wip-dashboard:not(.review-dashboard) #forecastMore > summary { right:20px; }
@media(max-width:760px) {
 body.wip-dashboard .atlas-forecast-heading { margin-left:12px; margin-right:12px; }
 body.wip-dashboard:not(.review-dashboard) #forecastMore > summary { right:12px; }
}
/* Give map text a quiet readable surface without restoring the oversized overlay. */
body.wip-dashboard .atlas-conditions { width:min(520px,68%); padding:10px 16px; border:1px solid #6b9bb545; border-radius:8px; background:rgba(4,23,37,.50); backdrop-filter:blur(5px); -webkit-backdrop-filter:blur(5px); text-shadow:none; }
[data-theme="light"] body.wip-dashboard .atlas-conditions { background:rgba(255,255,255,.58); border-color:#8baabd70; color:#102e43; text-shadow:none; }
@media(max-width:760px) {
 body.wip-dashboard .atlas-conditions { width:84%; padding:8px 12px; }
}
body.wip-dashboard .atlas-provider-toggle #providerCatalogStatus { margin-left:auto; }
body.wip-dashboard .atlas-provider-indicator { flex:0 0 18px; width:18px; height:18px; color:var(--muted); transition:transform .15s ease; }
body.wip-dashboard .atlas-provider-toggle[aria-expanded="true"] .atlas-provider-indicator { transform:rotate(180deg); }
@media(prefers-reduced-motion:reduce) {
 body.wip-dashboard .atlas-provider-indicator { transition:none; }
}

/* Layout review: leave breathing room and let long values wrap within their cards. */
body.wip-dashboard header { padding:8px 0 16px; align-items:center; }
body.wip-dashboard .brand-mark { display:block; object-fit:contain; }
body.wip-dashboard .brand { min-width:0; }
body.wip-dashboard .toolbar { flex-wrap:wrap; }
body.wip-dashboard .fact { display:flex; gap:12px; align-items:flex-start; }
body.wip-dashboard .fact > span:first-child { flex:0 0 auto; }
body.wip-dashboard .fact > span:last-child { min-width:0; overflow-wrap:anywhere; }
body.wip-dashboard .calibration-facts .fact { flex-wrap:wrap; }
body.wip-dashboard #calibrationProvider { display:flex; flex-wrap:wrap; gap:4px 6px; justify-content:flex-end; }
body.wip-dashboard .atlas-instruments .metric-value { overflow-wrap:anywhere; }
body.wip-dashboard .history-strip:nth-child(3) { --history-color:#7894aa !important; }
[data-theme="light"] body.wip-dashboard .history-strip:nth-child(3) { --history-color:#476478 !important; }
body.wip-dashboard .analysis-head { gap:16px; }
@media(max-width:1000px) {
 body.wip-dashboard .atlas-forecast-heading { flex-wrap:wrap; gap:6px; }
}
@media(max-width:760px) {
 body.wip-dashboard .atlas-instruments .wip-wind-card { padding-right:8px; padding-bottom:58px; }
 body.wip-dashboard .wip-wind-compass { top:auto; bottom:8px; left:8px; right:auto; transform:none; }
 body.wip-dashboard .calibration-facts .fact { flex-direction:column; gap:6px; }
 body.wip-dashboard #calibrationProvider { justify-content:flex-start; text-align:left; }
 body.wip-dashboard .provider-card .atlas-provider-toggle { padding:16px 12px; gap:10px; }
 body.wip-dashboard .atlas-provider-toggle #providerCatalogStatus { font-size:12px; }
 body.wip-dashboard .map-head > div { max-width:100%; }
}
@media(max-width:360px) {
 body.wip-dashboard .atlas-instruments { grid-template-columns:1fr; }
 body.wip-dashboard .atlas-instruments .metric { border-right:0; }
 body.wip-dashboard .atlas-instruments .wip-wind-card { padding-right:68px; padding-bottom:12px; }
 body.wip-dashboard .wip-wind-compass { left:auto; right:8px; top:50%; bottom:auto; transform:translateY(-50%); }
 body.wip-dashboard .atlas-provider-title { font-size:18px; }
 body.wip-dashboard .wip-weather-header .map-head > div:first-child { max-width:36%; }
}
/* Tablet cards need the same space as phone cards rather than narrow desktop columns. */
@media(min-width:761px) and (max-width:1100px) {
 body.wip-dashboard .atlas-instruments { grid-template-columns:repeat(2,minmax(0,1fr)); }
 body.wip-dashboard .atlas-instruments .metric:nth-child(2n) { border-right:0; }
 body.wip-dashboard .lower-grid { grid-template-columns:1fr; }
 body.wip-dashboard .atlas-conditions { bottom:64px; }
}
body.wip-dashboard .radar-legend { color:#314c60; }
body.wip-dashboard .radar-legend .legend-item { color:#314c60; }
body.wip-dashboard .calibration-deltas strong { white-space:normal; overflow:visible; overflow-wrap:anywhere; text-overflow:clip; }
@media(max-width:360px) {
 body.wip-dashboard .wip-weather-header .map-head { display:flex; flex-direction:column; gap:6px; }
 body.wip-dashboard .wip-weather-header .map-head > div:first-child { position:static; max-width:100%; }
 body.wip-dashboard .wip-weather-header .map-actions { float:none; margin-left:auto; }
 body.wip-dashboard .wip-weather-header .leaflet-control-zoom { margin-top:40px; }
 body.wip-dashboard .atlas-conditions { bottom:88px; }
}

/* Smooth reported direction changes, without continuous decorative spinning. */
body.wip-dashboard .wip-wind-arrow {
 transition:transform 900ms cubic-bezier(.22,.61,.36,1);
}
@media(prefers-reduced-motion:reduce) {
 body.wip-dashboard .wip-wind-arrow { transition:none; }
}
/* Leave an open center above the caption for the station marker and ring labels. */
body.wip-dashboard .wip-weather-header,
body.wip-dashboard .wip-weather-header #stationMap { height:420px; min-height:420px; }
body.wip-dashboard .atlas-conditions { bottom:16px; }
@media(min-width:761px) and (max-width:1100px) {
 body.wip-dashboard .atlas-conditions { bottom:64px; }
}
@media(max-width:760px) {
 body.wip-dashboard .wip-weather-header,
 body.wip-dashboard .wip-weather-header #stationMap { height:500px; min-height:500px; }
 body.wip-dashboard .atlas-conditions { bottom:76px; }
}
@media(max-width:360px) {
 body.wip-dashboard .wip-weather-header,
 body.wip-dashboard .wip-weather-header #stationMap { height:560px; min-height:560px; }
 body.wip-dashboard .atlas-conditions { bottom:88px; }
}
body.wip-dashboard .atlas-analysis-disclosure { padding:0; min-width:0; }
body.wip-dashboard .atlas-analysis-summary {
 display:flex; align-items:center; justify-content:space-between; gap:16px;
 min-height:60px; padding:16px 20px; cursor:pointer; list-style:none;
}
body.wip-dashboard .atlas-analysis-summary::-webkit-details-marker { display:none; }
body.wip-dashboard .atlas-analysis-summary .mini-title { font-size:20px; margin:0; }
body.wip-dashboard .atlas-analysis-summary .map-meta { margin-top:4px; font-size:12px; }
body.wip-dashboard .atlas-analysis-summary:focus-visible {
 outline:2px solid var(--cyan); outline-offset:-4px;
}
body.wip-dashboard .atlas-analysis-disclosure[open] > summary .atlas-provider-indicator {
 transform:rotate(180deg);
}
body.wip-dashboard .atlas-analysis-content { display:grid; gap:12px; padding:0 20px 20px; min-width:0; }
body.wip-dashboard .atlas-analysis-content .analysis-tabs { justify-self:start; max-width:100%; }
@media(max-width:760px) {
 body.wip-dashboard .atlas-analysis-summary { padding:16px 12px; }
 body.wip-dashboard .atlas-analysis-content { padding:0 12px 12px; }
}
/* Inset header content from its surface edges, including the logo and section links. */
body.wip-dashboard header { padding:16px 24px; }
@media(max-width:760px) {
 body.wip-dashboard header { padding:16px; }
}

/* Give the dark compass a distinct needle rather than a thin, low-weight line. */
[data-theme="dark"] body.wip-dashboard .wip-wind-arrow {
 left:50%; right:auto; width:3px; margin-left:-1.5px;
 background:#f5fbff; filter:drop-shadow(0 0 2px #5cddff80);
}
[data-theme="dark"] body.wip-dashboard .wip-wind-arrow::before {
 border-bottom-color:#5cddff;
}
body.wip-dashboard .wip-wind-compass > .wip-wind-status {
 inset:0; display:grid; place-items:center; font-size:9px; color:var(--muted);
}
body.wip-dashboard .wip-wind-status[hidden] { display:none; }

/* Atlas shares its responsive layout across browsers and native WebViews. */
body.wip-dashboard.surface-app .ios-tabbar { display: none; }

/* Station switching is anchored to the identity it changes. */
.wip-dashboard .atlas-station-picker-trigger {
  display: flex; align-items: center; gap: 8px; text-align: left;
  background: transparent; color: inherit; border: 0; padding: 4px 0;
  min-height: 44px; cursor: pointer; font: inherit;
}
.wip-dashboard .atlas-station-picker-trigger .station-name { font: inherit; font-weight: 800; }
.atlas-station-picker {
  position: fixed; margin: 0; left: var(--picker-left, 12px); top: max(12px, var(--picker-top, 80px));
  width: min(360px, calc(100vw - 24px)); max-height: min(520px, calc(100dvh - 24px));
  box-sizing: border-box; padding: 20px; overflow-y: auto;
  color: var(--ink); background: var(--panel, var(--surface));
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 16px 48px #0005;
}
.atlas-station-picker::backdrop { background: #0005; }
.station-picker-heading, .station-picker-actions, .station-picker-entry {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.station-picker-heading h2 { margin: 0; font-size: 20px; }
.atlas-station-picker label { display: block; margin: 18px 0 8px; }
.station-picker-entry input { min-width: 0; width: 100%; text-transform: uppercase; }
.atlas-station-picker button, .atlas-station-picker input { min-height: 44px; }
.atlas-station-picker p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.station-picker-favorites { display: grid; gap: 8px; margin-top: 10px; }
.station-picker-favorites button { text-align: left; }
.atlas-station-picker :focus-visible, .atlas-station-picker-trigger:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 3px;
}
@media (max-width: 600px) {
  .atlas-station-picker {
    inset: auto 0 0; width: 100%; max-height: 75dvh; border-radius: 20px 20px 0 0;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
}
.atlas-station-picker button {
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); padding: 8px 12px;
  font: inherit; cursor: pointer;
}
.atlas-station-picker button:disabled { opacity: .6; cursor: default; }
.atlas-station-picker .primary-button { background: var(--blue); color: #fff; }
.atlas-station-picker [data-picker-close] { width: 44px; font-size: 22px; }
@media (max-width: 600px) {
  .atlas-station-picker { max-width: 100%; }
}

/* Preserve header styling while making the brand a keyboard-accessible home link. */
body.wip-dashboard a.brand { color: inherit; text-decoration: none; }
body.wip-dashboard a.brand:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 8px;
}

.station-delay-note {
  margin: 6px 0 0; max-width: 42ch; color: var(--ink);
  font-size: 12px; font-weight: 400; line-height: 1.5;
}
