/* Forecast experience: one readable dock, not boxes inside boxes.
   Kept separate from legacy map styles so the layout contract is explicit. */
.timeline:has(#timeline-forecast) {
 --forecast-low:#88caff; --forecast-high:#ffbd85;
 left:350px; right:88px; bottom:26px; transform:none;
 width:auto; max-width:none; padding:8px 12px;
 border:1px solid #9fc4d33b; border-radius:18px;
 background:linear-gradient(120deg,#152d3bf8,#102332fa);
 box-shadow:0 12px 38px #020e1e55; font-variant-numeric:tabular-nums;backdrop-filter:none;
}
html[data-widget-view=hidden] .timeline:has(#timeline-forecast) {
 left:max(24px,calc((100vw - 1260px)/2)); right:max(88px,calc((100vw - 1260px)/2));
}
.timeline:has(#timeline-forecast) .timeline-controls .timeline-heading {
 display:flex; align-items:center; gap:6px; min-height:38px; margin:0;
}
.timeline:has(#timeline-forecast) .timeline-heading>div:first-child {
 display:flex; align-items:center; flex:1; gap:12px; min-width:0;
}
.timeline:has(#timeline-forecast) #forecast-bar-place {
 display:block; font-size:13px; font-weight:700; min-height:36px;
 max-width:260px; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
 color:#ecf7fa; padding:0; text-align:left;
}
.timeline:has(#timeline-forecast) #forecast-bar-place>span { color:#91c9d4; margin-left:5px; }
.timeline:has(#timeline-forecast) #time-display {font-size:11px;color:#a8c3d3;font-weight:500;}
.timeline:has(#timeline-forecast) #time-display:before { content:'Map · ';font-size:inherit; }
/* Override the legacy 13px rule: this secondary stamp must fit beside the
   controls. The full weekday/date is in the selected forecast reading. */
body #atlas .timeline:has(#timeline-forecast) #time-display {font-size:11px;line-height:1.4;}
.timeline:has(#timeline-forecast) .timeline-controls :is(.now-button,#level,#forecast-bar-collapse) {
 min-height:34px; height:34px; font-size:11px; width:auto; margin:0; border-radius:9px;
}
.timeline:has(#timeline-forecast) .timeline-controls .now-button { min-width:48px; padding:0 10px; box-shadow:none; }
.timeline:has(#timeline-forecast) .timeline-controls .now-button:before { display:none; }
.timeline:has(#timeline-forecast) .timeline-controls #level {
 min-width:90px; max-width:110px; padding:0 22px 0 9px;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='m3 4 3 3 3-3' fill='none' stroke='%23bedbd7'/%3E%3C/svg%3E");
 background-size:12px; background-position:right 7px center;
}
.timeline:has(#timeline-forecast) .timeline-heading #forecast-bar-collapse { padding:0 10px; }
.timeline:has(#timeline-forecast) .timeline-controls input#time-range { margin:2px 0 3px; height:9px; display:block; }
.timeline:has(#timeline-forecast) .forecast-bar-title {display:none;}
.forecast-tab-nav {display:flex;align-items:center;gap:5px;border-bottom:1px solid #a5c9d21b;}
.timeline:has(#timeline-forecast) .forecast-report-tabs {
 flex:1; min-width:0; margin:0; padding:0; gap:1px;
 scrollbar-width:none; mask-image:linear-gradient(90deg,#000 calc(100% - 18px),transparent);
}
.timeline:has(#timeline-forecast) .forecast-report-tabs button {
 min-height:36px; padding:6px 10px; font-size:12px; gap:5px;
 border:0; border-bottom:2px solid transparent; border-radius:7px 7px 0 0;
 background:none; color:#b1c9d6; box-shadow:none;
}
.timeline:has(#timeline-forecast) .forecast-report-tabs button[aria-selected=true] {
 background:#95e5d40e; border-bottom-color:#91e5ca; color:#b7f3dd;
}
.timeline:has(#timeline-forecast) .forecast-report-tabs i {font-size:16px;color:inherit;}
#forecast-report-toggle {
 display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;
 margin:7px 0 2px;padding:0 15px;border:1px solid #9bd8ca4d;border-radius:12px;
 background:linear-gradient(135deg,#a5ead719,#7dcfc30c);color:#d9f4eb;font-size:12px;font-weight:750;text-align:left;
}
#forecast-report-toggle:hover {background:linear-gradient(135deg,#a5ead729,#7dcfc318);color:#f1fff9;border-color:#a9ead78c;}
#forecast-report-toggle b {display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#b6ead51a;color:#b9eadb;font-size:15px;}
#forecast-report-toggle:focus-visible {outline:2px solid #b4efdb;outline-offset:3px;}
#forecast-report-details[hidden] {display:none;}
.report-all-label {position:relative;display:flex;align-items:center;gap:6px;font-size:11px;color:#c8dbe4;min-height:36px;padding:0 6px;border-left:1px solid #a5c9d226;}
.report-all-label select {position:absolute;inset:0;opacity:0;width:100%;cursor:pointer;font-size:16px;}
.report-all-label:focus-within {outline:2px solid #b5f3dc;outline-offset:-2px;border-radius:6px;}
.report-all-label option {background:#142e3e;color:#eff6fa;}
.timeline:has(#timeline-forecast) .forecast-range {
 display:flex;align-items:center;overflow:visible;gap:8px;margin:5px 0 0;min-height:32px;
}
.forecast-range label {display:flex;align-items:center;gap:4px;min-width:0;}
.forecast-range select {
 color:#e0edf4; border:1px solid #accdd32b; background:#102636;
 border-radius:7px; padding:4px 7px; height:30px; max-width:100%; font-size:11px;
}
.report-step>span {font-size:10px;color:#a9c5d3;}
.report-scroll-actions {display:flex;gap:3px;margin-left:auto;}
.timeline:has(#timeline-forecast) .report-scroll-actions button {
 width:34px; height:30px; min-height:30px; padding:0; border-radius:7px;
 font-size:18px; background:#a4d6eb0a; border:1px solid #9fc9dc2a; color:#d4e9f0;
}
.timeline:has(#timeline-forecast) .report-scroll-actions button:disabled {opacity:.3;cursor:default;}
.agreement-ribbon {margin:4px 0 2px;border:0;color:#c7dce7;}
.agreement-ribbon summary {display:grid;grid-template-columns:auto minmax(120px,1fr) auto;align-items:center;gap:10px;min-height:30px;list-style:none;cursor:pointer;}
.agreement-ribbon summary::-webkit-details-marker {display:none;}
.agreement-ribbon summary>span:first-child {display:flex;align-items:baseline;gap:7px;white-space:nowrap;}
.agreement-ribbon summary strong {font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#d9e9ef;}
.agreement-ribbon summary small {font-size:9px;color:#91afbf;}
.agreement-ribbon summary>b {font-size:9px;font-weight:550;color:#a8c5d3;white-space:nowrap;}
.agreement-track {position:relative;display:block;height:9px;overflow:hidden;border:1px solid #b5ced929;border-radius:999px;background:#788d982b;box-shadow:inset 0 1px 2px #020b12a6;}
.agreement-segment {position:absolute;top:0;bottom:0;min-width:2px;border-right:1px solid #0d23335c;}
.agreement-close {background:#4fc6a0;}.agreement-mixed {background:#e6bd60;}.agreement-low {background:#e47c78;}
.agreement-unavailable {background:repeating-linear-gradient(135deg,#69808c 0 4px,#4f6570 4px 8px);}
.agreement-explanation {padding:6px 9px 7px;margin:1px 0 4px;border-radius:8px;background:#0c202e99;border:1px solid #9bbeca1d;font-size:10px;line-height:1.45;color:#b7ceda;}
.agreement-explanation p {margin:0 0 4px;}.agreement-explanation p:last-of-type {margin-bottom:6px;}
.agreement-legend {display:flex;flex-wrap:wrap;gap:5px 14px;}
.agreement-legend span {display:flex;align-items:center;gap:5px;}
.agreement-legend i {width:18px;height:6px;border-radius:999px;}
.timeline:has(#timeline-forecast) #weather-report-panel {
 max-height:none; overflow:visible; padding:0; scrollbar-gutter:auto;
}
@media(min-width:651px) {
 #timeline-forecast[data-report="summary"] #weather-report-panel {max-height:min(460px,55dvh);overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;padding-right:4px;}
}
.timeline:has(#timeline-forecast) .report-heading {
 display:grid;grid-template-columns:1fr auto;align-items:center;gap:0 8px;margin:5px 0 4px;
}
.report-selected {display:contents;}
.timeline:has(#timeline-forecast) .report-selected>strong {
 grid-column:1;grid-row:1;font-size:24px;letter-spacing:-.7px;line-height:1.25;
}
.timeline:has(#timeline-forecast) .report-selected>span {
 grid-column:1/-1;grid-row:2;font-size:11px;line-height:1.5;color:#bad1df;
}
.report-extremes {display:flex;gap:16px;grid-row:1;grid-column:2;}
.report-glance {display:none;}
#timeline-forecast[data-report="pressure"] .report-glance {display:none;}
.report-pressure-trend{display:flex;align-items:center;gap:8px;grid-column:1/-1;grid-row:3;padding:4px 0}.report-pressure-trend>span{font-size:24px;color:#a8d7ff}.report-pressure-trend strong,.report-pressure-trend small{display:block}.report-pressure-trend strong{font-size:11px}.report-pressure-trend small{font-size:9px;color:#abc4d1;margin-top:2px}.report-pressure-trend.pressure-rising>span{color:#9ee6c4}.report-pressure-trend.pressure-falling>span{color:#ffc09f}.report-pressure-trend.pressure-steady>span{color:#b9cbd1}
.report-extreme {text-align:left;min-height:34px;padding:0;}
.timeline:has(#timeline-forecast) .report-extreme span {font-size:11px;color:inherit;line-height:1.3;}
.timeline:has(#timeline-forecast) .report-extreme b {display:inline;font-size:12px;color:inherit;}
.report-extreme small {display:block;font-size:10px;color:#b3cad8;line-height:1.4;}
.report-low {color:var(--forecast-low);}.report-high {color:var(--forecast-high);}
.report-low:hover {color:var(--forecast-low);}.report-high:hover {color:var(--forecast-high);}
.timeline:has(#timeline-forecast) .report-chart {margin:0;padding:0;border:0;border-radius:0;background:none;}
.report-chart-scroll {overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#61899e #142a3a;overscroll-behavior-x:contain;touch-action:pan-x pan-y;}
.report-chart-scroll {display:flex;}
.report-chart-scroll::before,.report-chart-scroll::after {content:"";flex:0 0 max(0px,calc(50% - 29px));}
.report-chart-scroll>.report-chart-track {flex-shrink:0;}
.report-chart-scroll:focus-visible {outline-offset:-2px;}
.report-chart-track {position:relative;width:max(100%,var(--chart-width));height:126px;}
.timeline:has(#timeline-forecast) .report-chart svg {position:absolute;inset:0;width:100%;height:126px;min-height:0;overflow:hidden;pointer-events:none;z-index:1;}
.chart-grid {stroke:#b6d1df16;stroke-dasharray:2 5;stroke-width:1;fill:none;}
.chart-line {fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;}
.chart-area {opacity:.10;}
.report-chart-columns {position:relative;height:126px;}
.chart-hour {position:absolute;top:0;bottom:0;transform:translateX(-50%);padding:0;min-width:0;text-align:center;border-radius:6px;background:transparent;border:0;border-right:1px solid #9dc4d30c;}
.chart-hour.chart-night {background:#050f1e22;}
.chart-hour:hover {background:#a2d1e40b;}
.chart-hour[aria-pressed=true] {background:#aadce413;box-shadow:inset 0 0 0 1px #a6d9e04d;}
.chart-hour:focus-visible {outline-offset:-2px;z-index:2;}
.chart-hour:disabled {opacity:1;cursor:default;}
.chart-hour>span,.chart-hour>strong {position:absolute;left:0;right:0;display:block;}
.chart-date {top:1px;white-space:nowrap;font-size:10px;font-weight:550;color:#acc6d8;}
.chart-time {top:16px;white-space:nowrap;font-size:12px;line-height:1.4;font-weight:650;color:#d3e2ed;}
.chart-time small {font-size:10px;font-weight:500;}
.chart-value {top:35px;font-size:15px;font-weight:700;color:var(--point-colour);line-height:1.3;}
.chart-value sup {font-size:8px;vertical-align:super;margin-left:1px;}
.chart-hour-note {bottom:2px;font-size:9px;color:#aecbd7;line-height:1.3;}
.chart-low {color:var(--forecast-low);font-size:9px;font-weight:600;}.chart-high {color:var(--forecast-high);font-size:9px;font-weight:600;}
.timeline:has(#timeline-forecast) .report-chart figcaption {
 font-size:10px;line-height:1.5;color:#abc3d2;display:flex;justify-content:space-between;gap:8px;margin-top:3px;
}
/* Units are in the selected reading; date/timezone in its timestamp. Avoid a
   second caption row repeating both. The accessible SVG retains full context. */
body #atlas .timeline:has(#timeline-forecast) .report-chart figcaption {display:none;}
body #atlas .timeline:has(#timeline-forecast) .report-chart-track,
body #atlas .timeline:has(#timeline-forecast) .report-chart svg,
body #atlas .timeline:has(#timeline-forecast) .report-chart-columns {height:116px;}
.report-map-hour {font-size:10px;line-height:1.5;vertical-align:middle;letter-spacing:0;color:#aed6e5;padding:5px 6px;margin-left:5px;border:1px solid #9fc7d32b;border-radius:6px;}
@media(min-width:1101px) and (min-height:651px) {
 html[data-widget-view=dock] body #atlas #widget-board {
  top:210px;bottom:auto;height:auto;max-height:calc(100% - 235px)!important;
 }
 html[data-widget-view=dock] body #atlas #widget-board .widget-grid {flex:0 1 auto;}
}
@media(min-width:1280px) {
 .timeline:has(#timeline-forecast) .timeline-heading>div:first-child {max-width:calc(100% - 535px);overflow:hidden;gap:8px;}
 body #atlas .timeline:has(#timeline-forecast) .timeline-controls #now {margin-left:auto;}
 .timeline:has(#timeline-forecast) .forecast-range {position:absolute;right:242px;top:8px;margin:0;}
 .timeline:has(#timeline-forecast) .report-heading {grid-template-columns:auto 1fr auto;}
 .timeline:has(#timeline-forecast) .report-extremes {grid-column:3;}
 .report-glance {display:flex;align-items:center;gap:25px;padding:0 20px;grid-column:2;grid-row:1;}
 .report-pressure-trend {grid-column:2;grid-row:1;padding:0 20px;}
 .report-glance small {display:block;font-size:10px;color:#a9c4d4;}
 .report-glance b {display:block;font-size:12px;font-weight:550;color:#dbe8f0;}
}
.report-footbar {display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:24px;border-top:1px solid #aac7db17;margin-top:4px;font-size:10px;color:#9ebccd;}
.report-footbar button {font-size:11px;min-height:24px;padding:0;color:#b1e9da;white-space:nowrap;}
.report-quick-metrics {display:none;}
.report-footbar .report-quick-metrics {font-size:11px;color:#c2d7e5;}
@media(max-width:1279px){.report-technical-note{display:none;}.report-quick-metrics{display:inline;}}
.summary-period {display:flex;align-items:baseline;gap:8px;min-height:31px;padding:4px 2px;color:#d7e9f0;}
.summary-period span {font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#8fceb9;}
.summary-period strong {font-size:12px;font-weight:600;}
.daily-summary-hero {display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:14px;padding:13px 15px;border:1px solid #9fd7c837;border-radius:15px;background:radial-gradient(circle at 10% 15%,#88d9c51c,transparent 35%),linear-gradient(130deg,#193c47,#142d3c);}
.daily-summary-icon {display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:#d9fff018;color:#f8d98b;font-size:30px;box-shadow:inset 0 0 0 1px #d5fff01c;}
.daily-summary-hero>div:nth-child(2)>span {font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#91c4c8;}
.daily-summary-hero h3 {margin:2px 0 3px;font-size:18px;line-height:1.25;color:#f3faf7;}
.daily-summary-hero p {margin:0;max-width:690px;font-size:11px;line-height:1.5;color:#bcd2dc;}
.daily-summary-temperature {text-align:right;min-width:72px;}
.daily-summary-temperature strong {display:block;font-size:27px;line-height:1;color:#ffd09c;}
.daily-summary-temperature span,.daily-summary-temperature small {display:block;font-size:9px;color:#a9c3cf;margin-top:4px;}
.summary-chart {margin-top:9px;padding:11px 12px 8px;border:1px solid #9fcbd42c;border-radius:14px;background:linear-gradient(160deg,#102b3a,#0d2230);overflow:hidden;}
.summary-chart-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:4px;}
.summary-chart-heading span {font-size:9px;color:#8db7c5;}.summary-chart-heading h3 {margin:2px 0 0;font-size:13px;color:#e7f4f3;}
.summary-chart-legend {display:flex;justify-content:flex-end;flex-wrap:wrap;gap:5px 11px;max-width:500px;}
.summary-chart-legend span {display:flex;align-items:center;gap:5px;font-size:8px;color:#b7ccd5;white-space:nowrap;}
.summary-chart-legend span:before {content:'';display:block;width:12px;height:3px;border-radius:2px;background:#ffd085;}
.summary-chart-legend .legend-rain:before {height:7px;background:#66bdf1;}.summary-chart-legend .legend-wind:before {background:#74dfc1;}.summary-chart-legend .legend-gust:before {height:0;border-top:2px dashed #f2ae80;background:none;}.summary-chart-legend .legend-cloud:before {height:7px;background:#9eb4ce99;}.summary-chart-legend .legend-humidity:before {width:6px;height:6px;border-radius:50%;background:#b2f2dc;}
.summary-chart-scroll {overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;overscroll-behavior-x:contain;touch-action:pan-x;}
.summary-chart svg {display:block;width:100%;min-width:720px;height:auto;font-family:inherit;}
.summary-chart-grid path {fill:none;stroke:#b8d6df18;stroke-width:1;}.summary-chart-time path {stroke:#b8d6df0e;}.summary-chart-time text,.summary-chart-labels text {fill:#93afbb;font-size:9px;}.summary-chart-time text {text-anchor:middle;}.summary-chart-labels>text:nth-child(-n+4) {fill:#b9d2d6;font-size:9px;font-weight:750;letter-spacing:.08em;}
.summary-chart-temperature,.summary-chart-wind,.summary-chart-gust {fill:none;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round;}
.summary-chart-temperature {stroke:#ffd085;stroke-width:3;}.summary-chart-wind {stroke:#74dfc1;stroke-width:2.5;}.summary-chart-gust {stroke:#f2ae80;stroke-width:2;stroke-dasharray:5 4;}.summary-chart-rain {fill:#66bdf1;}.summary-chart-cloud {fill:#9eb4ce;}.summary-chart-humidity {fill:#b2f2dc;stroke:#12303a;stroke-width:1;}
.summary-chart-hit {fill:transparent;outline:none;}.summary-chart-hit:hover,.summary-chart-hit:focus {fill:#dff9ff0a;stroke:#c8edf15c;stroke-width:1;}
.summary-chart-help {margin:3px 0 0;font-size:8px;line-height:1.45;color:#87a7b3;}
.daily-summary-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:8px;}
.summary-metric {display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px;align-items:center;min-height:68px;padding:9px 10px;border:1px solid #a3c8d224;border-radius:12px;background:#d5edf508;}
.summary-metric>span {display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#8fcbd414;color:#aee6df;font-size:17px;}
.summary-metric small {display:block;font-size:9px;color:#9fbfca;}
.summary-metric strong {display:block;margin:2px 0;font-size:14px;line-height:1.2;color:#e7f3f2;}
.summary-metric p {margin:0;font-size:9px;line-height:1.35;color:#a9c4d0;}
.summary-rain>span {color:#91caff;}
.summary-dayparts {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:7px;}
.summary-daypart {display:grid;grid-template-columns:24px 1fr;gap:6px;padding:7px 8px;border-top:1px solid #a8cbd21f;}
.summary-daypart>span {font-size:17px;color:#eacb8c;}
.summary-daypart strong,.summary-daypart small {display:block;}
.summary-daypart strong {font-size:10px;color:#dce9ed;}.summary-daypart small {font-size:9px;color:#9ebac7;margin-top:2px;}
.summary-daypart p {grid-column:1/-1;margin:0;font-size:8px;line-height:1.35;color:#91aebb;}
.daily-summary-note {margin:5px 2px 0;font-size:9px;color:#87a8b8;}
.report-coverage,.report-rain-total {font-size:10px;line-height:1.5;color:#c8d6e3;margin:2px 0;}
.report-coverage {color:#ebce92;}
/* Loading detail must not cover search, town names or the forecast itself. */
body #atlas #map-loading {
 top:auto;bottom:calc(var(--forecast-bar-height,320px) + 36px);left:350px;right:auto;
 transform:none;padding:5px 8px;gap:7px;border-radius:8px;font-size:10px;
 background:#132c3def;border-color:#aacbd435;color:#d3e4ed;
}
body #atlas #map-loading .map-loading-ring {width:14px;height:14px;flex-shrink:0;border-width:2px;}
html[data-widget-view=hidden] body #atlas #map-loading {left:24px;}
@media(max-width:1100px){body #atlas #map-loading,html[data-widget-view=hidden] body #atlas #map-loading{left:18px;}}
@media(max-width:650px){body #atlas #map-loading,html[data-widget-view=hidden] body #atlas #map-loading{left:14px;max-width:calc(50% - 20px);bottom:calc(var(--forecast-bar-height,350px) + 32px);}}
.report-colour-key {display:flex;flex-wrap:wrap;gap:7px 15px;margin:12px 0;font-size:11px;color:#cbdeeb;}
.report-colour-key span {display:flex;align-items:center;gap:5px;}
.report-colour-key i {display:block;width:9px;height:9px;border-radius:50%;}
.timeline:has(#timeline-forecast) #forecast-bar-detail {border-radius:16px;background:#112735fc;border-color:#84b0c03d;}
body #atlas .timeline:has(#forecast-bar-detail:not([hidden])) {z-index:50;}
.report-detail-tools {position:sticky;top:-16px;z-index:2;display:flex;justify-content:flex-end;background:#112735fc;margin:-8px -4px 5px;padding:3px;}
.report-detail-close {font-size:12px;min-height:32px;padding:5px 10px;border:1px solid #9fc7d33b;border-radius:8px;color:#cce9e6;background:#96dcd511;}
body:has(#forecast-bar-detail:not([hidden])) #member-chat-launch {display:none;}
.timeline:has(#timeline-forecast) #forecast-bar-detail .forecast-bar-hours {margin:10px 0;}
.timeline:has(#timeline-forecast) #forecast-bar-detail .forecast-hour {min-width:94px;min-height:76px;padding:8px;}
.timeline:has(#timeline-forecast)[data-collapsed=true] #forecast-bar-place {max-width:220px;}
.timeline:has(#timeline-forecast)[data-collapsed=true] .timeline-controls input#time-range {display:none;}
.timeline:has(#timeline-forecast)[data-collapsed=true] .level-label {display:flex;}
/* Tides retain their own source/height semantics and scroll when necessary. */
.timeline:has(#timeline-forecast[data-report=tide]) #weather-report-panel {max-height:32dvh;overflow-y:auto;}
@media(max-width:1100px) {
 .timeline:has(#timeline-forecast),html[data-widget-view=hidden] .timeline:has(#timeline-forecast) {left:18px;right:82px;}
 .timeline:has(#timeline-forecast) .timeline-heading>div:first-child {display:block;}
 .timeline:has(#timeline-forecast) #forecast-bar-place {min-height:20px;line-height:1.4;}
 .timeline:has(#timeline-forecast) #time-display {display:block;font-size:9px;line-height:1.4;}
}
@media(max-width:650px) {
 body #atlas .timeline:has(#timeline-forecast) {
  position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;
  padding:calc(8px + env(safe-area-inset-top,0px))
          calc(10px + env(safe-area-inset-right,0px))
          calc(12px + env(safe-area-inset-bottom,0px))
          calc(10px + env(safe-area-inset-left,0px));
  border:0;border-radius:0;overflow-x:hidden;overflow-y:auto;
  overscroll-behavior:contain;z-index:70;
 }
 body #atlas .timeline:has(#timeline-forecast[data-details-open=false]) {
  inset:auto 8px calc(20px + env(safe-area-inset-bottom,0px));width:auto;height:auto;max-height:min(74dvh,620px);
  padding:10px;border:1px solid #8db9bf3d;border-radius:18px;overflow-y:auto;box-shadow:0 18px 55px #020a1099;
 }
 body #atlas .timeline:has(#timeline-forecast) #forecast-bar-detail {position:fixed;top:128px;bottom:calc(70px + env(safe-area-inset-bottom));left:8px;right:8px;max-height:none;height:auto;z-index:55;}
 .timeline:has(#timeline-forecast),html[data-widget-view=hidden] .timeline:has(#timeline-forecast) {
  left:0;right:0;top:0;bottom:0;
 }
 .timeline:has(#timeline-forecast) .timeline-controls .timeline-heading {display:flex;gap:5px;min-height:40px;margin:0;}
 .timeline:has(#timeline-forecast) .timeline-heading>div:first-child {display:block;flex:1;min-width:0;}
 .timeline:has(#timeline-forecast) #forecast-bar-place {max-width:140px;font-size:12px;}
 .timeline:has(#timeline-forecast) #forecast-bar-place>span {display:none;}
 .timeline:has(#timeline-forecast) .timeline-controls :is(.now-button,#level,#forecast-bar-collapse) {min-height:36px;height:36px;max-width:none;width:auto;font-size:10px;}
 .timeline:has(#timeline-forecast) .timeline-controls #level {min-width:73px;max-width:90px;padding-left:7px;padding-right:18px;}
 .timeline:has(#timeline-forecast) .timeline-controls .now-button {min-width:38px;padding:0 7px;}
 .timeline:has(#timeline-forecast) .timeline-heading #forecast-bar-collapse {padding:0 7px;}
 .timeline:has(#timeline-forecast) .timeline-heading #forecast-bar-collapse {
  position:sticky;top:env(safe-area-inset-top,0px);z-index:3;
  border-color:#a9d8d0;background:#173b46;color:#effff9;
 }
 .timeline:has(#timeline-forecast) .forecast-report-tabs button {font-size:12px;padding:6px 8px;min-height:36px;}
 .summary-period {min-height:35px;padding:5px 2px;}
 .daily-summary-hero {grid-template-columns:44px minmax(0,1fr) auto;gap:9px;padding:11px 10px;}
 .daily-summary-icon {width:42px;height:42px;border-radius:13px;font-size:24px;}
 .daily-summary-hero h3 {font-size:16px;}.daily-summary-hero p {font-size:10px;}
 .daily-summary-temperature {min-width:58px;}.daily-summary-temperature strong {font-size:23px;}
 .summary-chart {padding:9px 7px 7px;}.summary-chart-heading {display:block;}.summary-chart-heading h3 {font-size:12px;}.summary-chart-legend {justify-content:flex-start;margin-top:7px;gap:4px 9px;}.summary-chart svg {min-width:760px;}.summary-chart-help {font-size:8px;}
 .daily-summary-grid {grid-template-columns:1fr 1fr;gap:6px;}
 .summary-metric {min-height:74px;padding:9px 8px;}
 .summary-metric strong {font-size:13px;}.summary-metric p {font-size:8px;}
 .summary-dayparts {grid-template-columns:1fr 1fr;gap:2px 6px;}
 .summary-daypart {padding:7px 5px;}
 .timeline:has(#timeline-forecast) .forecast-range {gap:5px;}
 .forecast-range select {font-size:11px;padding-inline:5px;}
 .agreement-ribbon summary {grid-template-columns:auto minmax(72px,1fr) auto;gap:6px;}
 .agreement-ribbon summary>span:first-child {display:block;line-height:1.1;}
 .agreement-ribbon summary small {display:block;margin-top:2px;}
 .agreement-ribbon summary>b {font-size:0;}.agreement-ribbon summary>b:after {content:'⌄';font-size:11px;}
 .report-step>span {display:none;}
 .report-extremes {gap:10px;}
 .timeline:has(#timeline-forecast) .report-extreme span {font-size:10px;}
 .timeline:has(#timeline-forecast) .report-extreme b {font-size:11px;}
 .timeline:has(#timeline-forecast) .report-selected>strong {font-size:22px;}
 .timeline:has(#timeline-forecast) .report-selected>span {font-size:11px;}
 .timeline:has(#timeline-forecast) .report-chart figcaption {font-size:9px;}
 .report-chart figcaption>span:last-child {font-size:0;}
 .report-chart figcaption>span:last-child:after {content:'Swipe for more →';font-size:9px;}
 .report-footbar {font-size:9px;}
 .report-footbar button {font-size:10px;}
 .timeline:has(#timeline-forecast)[data-collapsed=true] .level-label {display:none;}
 #atlas:has(#timeline-forecast) .map-tools {bottom:calc(var(--forecast-bar-height,320px) + 32px);}
 #member-chat-launch {bottom:calc(var(--forecast-bar-height,320px) + 94px + env(safe-area-inset-bottom));}
}
@media(max-height:500px) and (min-width:651px) {
 body #atlas .timeline:has(#timeline-forecast) #forecast-bar-detail {position:fixed;top:8px;bottom:70px;left:8px;right:8px;max-height:none;height:auto;z-index:55;}
 body #atlas .timeline:has(#timeline-forecast) {position:fixed;left:12px;right:12px;bottom:auto;top:8px;max-height:calc(100dvh - 76px);overflow-y:auto;z-index:45;padding:6px 10px;}
 body #atlas .timeline:has(#timeline-forecast)[data-collapsed=true] {top:auto;bottom:80px;}
 body #atlas .timeline:has(#timeline-forecast) .report-chart-track,
 body #atlas .timeline:has(#timeline-forecast) .report-chart svg,
 body #atlas .timeline:has(#timeline-forecast) .report-chart-columns {height:90px;}
 body #atlas .timeline:has(#timeline-forecast) .timeline-controls input#time-range {display:none;}
 .chart-hour-note {display:none;}
 .timeline:has(#timeline-forecast) .report-chart svg :is(.chart-grid,.chart-area,.chart-line,circle,rect) {transform:translateY(18px);}
}
/* Keep the assistant available without covering the price/upgrade action. */
@media(min-width:651px) and (max-width:1100px) {
 #member-chat #member-chat-launch {width:44px;min-height:44px;padding:0;justify-content:center;border-radius:14px;right:14px;bottom:12px;}
 #member-chat-launch .member-chat-launch-label {display:none;}
}
/* On short phones the open forecast is the primary weather navigation.
   Secondary map layers/sky controls return when it is collapsed. */
@media(max-width:650px) and (max-height:720px) {
 body #atlas:has(.timeline[data-collapsed=false]) :is(#sky-tools,#layer-rail,#layer-scroll) {display:none!important;}
 body #atlas:has(#timeline-forecast[data-collapsed=false]) .map-tools {bottom:calc(var(--forecast-bar-height,350px) + 26px);height:34px;padding:0;}
 body #atlas:has(#timeline-forecast[data-collapsed=false]) .map-tools button {height:32px;min-height:32px;}
 body #atlas:has(#timeline-forecast[data-collapsed=false]) .map-tools #map-gps {height:32px;min-height:32px;}
}
@media(prefers-reduced-motion:reduce){.report-chart-scroll{scroll-behavior:auto;}}
