:root {
  --brand: #173a5e;
  --accent: #2f78a8;
  --ink: #172331;
  --muted: #667485;
  --surface: #fff;
  --canvas: #eef2f5;
  --line: #d9e1e7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button { font: inherit; }
.app-shell { min-height: 100vh; }
.page { width: min(1420px, 100%); margin: 0 auto; padding: 24px; }
.masthead { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 2px 2px 20px; }
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 13px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .78rem; font-weight: 900; letter-spacing: -.03em; }
.brand-copy { min-width: 0; }
.header-logo { display: block; width: 82px; height: auto; margin-bottom: 3px; }
.product-name, .section-label { color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 2px 0 0; font-size: clamp(1.08rem, 2.2vw, 1.55rem); letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.masthead-actions { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; white-space: nowrap; }
.refresh-button { border: 1px solid var(--line); background: #fff; color: var(--brand); border-radius: 10px; padding: 9px 13px; cursor: pointer; font-weight: 800; }
.refresh-button:hover { border-color: #aab7c3; }
.refresh-button:focus-visible, .schools-toggle:focus-visible, .scenario-field select:focus-visible, .demo-actions button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 2px; }
.refresh-button:disabled { opacity: .55; cursor: wait; }

.demo-bar { position: sticky; top: 0; z-index: 30; border-bottom: 3px solid #f3b63f; background: #10283a; color: #fff; box-shadow: 0 4px 14px rgba(15,35,51,.2); }
.demo-bar-inner { width: min(1480px, 100%); margin: 0 auto; padding: 10px 24px; display: grid; grid-template-columns: auto minmax(260px, 390px) auto minmax(280px, 1fr); align-items: center; gap: 14px; }
.demo-identity { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.demo-identity > div { display: grid; gap: 1px; }
.demo-identity strong { font-size: .82rem; }
.demo-identity div span { color: #bed0dc; font-size: .69rem; }
.demo-badge { display: inline-flex; border-radius: 999px; padding: 5px 8px; background: #f3b63f; color: #352400; font-size: .62rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.scenario-field { display: grid; gap: 3px; color: #bed0dc; font-size: .62rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.scenario-field select { width: 100%; border: 1px solid #587185; border-radius: 8px; background: #fff; color: var(--ink); padding: 8px 32px 8px 10px; font: inherit; font-size: .78rem; font-weight: 760; letter-spacing: 0; text-transform: none; cursor: pointer; }
.demo-actions { display: flex; gap: 6px; }
.demo-actions button { border: 1px solid #60798b; border-radius: 8px; background: transparent; color: #fff; padding: 8px 10px; font-size: .72rem; font-weight: 800; cursor: pointer; }
.demo-actions button:hover { border-color: #f3b63f; color: #ffd985; }
.demo-context { min-width: 0; display: grid; gap: 2px; border-left: 1px solid #40586a; padding-left: 14px; color: #d4e0e7; font-size: .7rem; line-height: 1.35; }
.demo-context span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-context b { color: #fff; }

.status-hero { position: relative; overflow: hidden; background: var(--status-color, #16835c); color: #fff; border-radius: 17px; padding: 24px 30px; box-shadow: 0 10px 24px rgba(17,37,57,.10); }
.status-hero.is-green { border: 0; background: linear-gradient(110deg, #117652, #21946b); color: #fff; box-shadow: 0 8px 20px rgba(17,82,61,.15); }
.status-hero.is-yellow { background: linear-gradient(110deg, #d89408, #f4bd3d); color: #172331; }
.status-hero.is-orange { background: linear-gradient(110deg, #c95514, #e87a2e); }
.status-hero.is-red, .status-hero.is-purple { padding: clamp(30px, 3.5vw, 42px); }
.status-hero::after { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; right: -145px; top: -220px; background: rgba(255,255,255,.10); }
.status-hero.is-green::after { display: block; }
.status-title { position: relative; z-index: 1; margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: .95; max-width: 1000px; letter-spacing: -.05em; }
.status-hero.is-green .status-title { color: #fff; }
.status-hero.is-red .status-title, .status-hero.is-purple .status-title { font-size: clamp(2rem, 4.6vw, 3.55rem); }
.status-action { position: relative; z-index: 1; margin: 7px 0 0; font-size: clamp(1rem, 1.8vw, 1.22rem); font-weight: 720; line-height: 1.3; }
.status-context { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 17px; font-size: .78rem; line-height: 1.4; }
.status-context strong { font-weight: 850; }
.status-context span { opacity: .88; }
.status-updated { position: relative; z-index: 1; margin-top: 9px; font-size: .68rem; opacity: .76; }

.quality-ok, .quality-warning { margin: 14px 0 0; border-radius: 10px; padding: 11px 13px; font-size: .78rem; line-height: 1.45; }
.quality-ok { display: flex; align-items: center; gap: 8px; background: #e6f3ed; color: #146346; }
.quality-ok span { width: 8px; height: 8px; border-radius: 50%; background: #16835c; }
.quality-warning { background: #fff1cb; color: #6e4b05; }
.quality-warning.is-advisory { border: 1px solid #d8e3e8; background: #f3f7f8; color: #526675; }
.quality-footer { display: flex; align-items: center; gap: 8px; margin-top: 18px; border-top: 1px solid var(--line); padding: 15px 2px 0; color: var(--muted); font-size: .7rem; }
.quality-footer > span { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #16835c; }
.quality-footer strong { color: #356853; }
.quality-footer small { font-size: inherit; }
.quality-footer.is-warning > span { background: #b97c05; }
.quality-footer.is-warning strong { color: #76520b; }
.quality-footer.is-advisory > span { background: #708696; }
.quality-footer.is-advisory strong { color: #526675; }

.alert-clear-strip { margin-top: 14px; display: flex; align-items: center; gap: 8px; min-height: 42px; border: 1px solid #cae3d8; border-radius: 11px; background: #f7fbf9; color: #146346; padding: 9px 13px; font-size: .79rem; }
.alert-clear-strip > span { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #16835c; }
.alert-clear-strip small { color: var(--muted); font-size: .74rem; }
.alert-summary { margin-top: 14px; border: 1px solid color-mix(in srgb, #c9363b 30%, var(--line)); border-left: 6px solid #c9363b; border-radius: 16px; background: #fff; padding: 17px 19px; box-shadow: 0 5px 16px rgba(20,41,61,.06); }
.alert-summary-warning { border-left-color: #b97c05; background: #fffaf0; }
.alert-summary-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.alert-summary-label { color: #a5242b; font-size: .68rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.alert-summary h2 { margin: 3px 0 0; font-size: 1.08rem; }
.alert-summary p { margin: 6px 0 0; color: var(--muted); font-size: .79rem; line-height: 1.48; }
.alert-count { min-width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; background: #fbe9ea; color: #a5242b; font-size: .77rem; font-weight: 900; }
.alert-summary-list { display: grid; gap: 8px; margin-top: 12px; }
.alert-summary .alert-card { background: #f8fafb; border-radius: 9px; padding: 10px 12px; }
.alert-summary .alert-card + .alert-card { margin-top: 0; border-top: 0; }
.alert-advisory-strip { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #ead8ae; border-left: 5px solid #b97c05; border-radius: 13px; background: #fffcf5; padding: 12px 15px; box-shadow: 0 3px 10px rgba(20,41,61,.035); }
.alert-advisory-heading { display: flex; align-items: center; gap: 11px; min-width: 0; }
.alert-advisory-icon { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 50%; background: #fff0c9; color: #805500; font-size: .83rem; font-weight: 950; }
.alert-advisory-strip .alert-summary-label { color: #8a5b00; font-size: .62rem; }
.alert-advisory-strip h2 { margin: 2px 0 0; font-size: .94rem; }
.alert-advisory-details { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; }
.alert-advisory-item { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .7rem; }
.alert-advisory-item strong { color: var(--ink); }
.alert-advisory-item span { white-space: nowrap; }

.nowcast-panel { margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-left: 6px solid #d9960d; border-radius: 16px; background: var(--surface); box-shadow: 0 8px 22px rgba(20,41,61,.065); }
.nowcast-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px 9px; }
.nowcast-kicker { color: #997000; font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.nowcast-freshness { flex: 0 0 auto; border-radius: 999px; background: #fff2cb; color: #805a00; padding: 6px 9px; font-size: .61rem; font-weight: 850; }
.nowcast-tabs { display: flex; justify-content: flex-end; gap: 5px; padding: 0 18px 9px; }
.nowcast-tabs button { min-width: 78px; overflow: hidden; border: 1px solid transparent; border-radius: 8px; background: #edf1f5; color: var(--ink); padding: 7px 10px; font-size: .64rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.nowcast-tabs button[aria-selected="true"] { border-color: var(--brand); background: var(--brand); color: #fff; }
.nowcast-tabs button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 2px; }
.nowcast-scope { padding: 0 18px 14px; }
.nowcast-scope[hidden] { display: none; }
.nowcast-scope-heading strong { display: block; font-size: clamp(1.08rem, 2vw, 1.4rem); line-height: 1.15; }
.nowcast-scope-heading span { display: block; margin-top: 3px; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.nowcast-readout { display: grid; grid-template-columns: minmax(180px, .55fr) minmax(0, 1.45fr); align-items: end; gap: 20px; margin-top: 14px; }
.nowcast-onset strong { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1; letter-spacing: -.045em; }
.nowcast-onset span { display: block; margin-top: 5px; color: var(--muted); font-size: .7rem; }
.nowcast-timeline { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); overflow: hidden; border-radius: 999px; background: #e2eee9; }
.nowcast-timeline span { min-width: 0; height: 17px; }
.nowcast-timeline .is-dry, .nowcast-legend .is-dry::before { background: #dceee7; }
.nowcast-timeline .is-possible, .nowcast-legend .is-possible::before { background: #c4dfed; }
.nowcast-timeline .is-light, .nowcast-legend .is-light::before { background: #9bcce4; }
.nowcast-timeline .is-moderate, .nowcast-legend .is-moderate::before { background: #4d98c4; }
.nowcast-timeline .is-heavy, .nowcast-legend .is-heavy::before { background: #176b9d; }
.nowcast-time-labels { display: flex; justify-content: space-between; gap: 5px; margin-top: 5px; color: var(--muted); font-size: .55rem; }
.nowcast-legend { display: flex; flex-wrap: wrap; gap: 6px 13px; margin-top: 7px; color: var(--muted); font-size: .57rem; }
.nowcast-legend span::before { width: 7px; height: 7px; display: inline-block; margin-right: 4px; border-radius: 50%; content: ''; }
.nowcast-guidance { display: flex; align-items: flex-start; gap: 9px; margin-top: 13px; border-top: 1px solid var(--line); padding: 11px 1px 0; }
.nowcast-guidance > span { width: 18px; height: 18px; flex: 0 0 18px; display: grid; place-items: center; border-radius: 50%; background: #536176; color: #fff; font-size: .58rem; font-weight: 900; }
.nowcast-guidance p { margin: 1px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.42; }
.nowcast-guidance strong { color: var(--ink); }
.nowcast-source { display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); background: #f8fafb; padding: 9px 18px; color: var(--muted); font-size: .58rem; }
.nowcast-source strong { color: #355772; }

.precipitation-map-panel { margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 8px 22px rgba(20,41,61,.065); }
.precipitation-map-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 17px 12px; }
.precipitation-map-heading { min-width: 0; display: flex; align-items: center; gap: 12px; }
.precipitation-map-pulse { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: #16835c; box-shadow: 0 0 0 5px rgba(22,131,92,.12); }
.precipitation-map-kicker { display: block; color: #16835c; font-size: .62rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.precipitation-map-heading h2 { margin: 2px 0 1px; font-size: 1rem; }
.precipitation-map-heading p { margin: 0; color: var(--muted); font-size: .68rem; line-height: 1.4; }
.precipitation-map-toggle { flex: 0 0 auto; border: 0; background: transparent; color: var(--brand); padding: 7px 3px; font-size: .68rem; font-weight: 850; cursor: pointer; }
.precipitation-map-toggle:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 2px; }
.precipitation-map-stage { position: relative; height: 250px; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #e7edef; transition: height .2s ease; }
.precipitation-map-panel.is-expanded .precipitation-map-stage { height: min(56vw, 520px); min-height: 390px; }
.precipitation-google-map { position: absolute; inset: 0; }
.precipitation-demo-overlay { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.precipitation-demo-badge { position: absolute; z-index: 4; top: 12px; right: 12px; border: 1px solid rgba(255,255,255,.75); border-radius: 999px; background: rgba(20,41,61,.84); color: #fff; padding: 6px 9px; font-size: .55rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 3px 10px rgba(20,41,61,.18); }
.precipitation-map-state { position: absolute; z-index: 3; top: 12px; left: 12px; max-width: 290px; border-radius: 9px; background: rgba(255,255,255,.94); color: #2e4355; padding: 8px 10px; font-size: .61rem; font-weight: 780; line-height: 1.35; box-shadow: 0 4px 12px rgba(20,41,61,.14); }
.precipitation-map-loading, .precipitation-map-unavailable { position: absolute; z-index: 3; top: 12px; left: 12px; max-width: 255px; border-radius: 9px; background: rgba(255,255,255,.93); color: #42576a; padding: 8px 10px; font-size: .61rem; box-shadow: 0 4px 12px rgba(20,41,61,.14); }
.precipitation-map-loading { top: 50%; left: 50%; transform: translate(-50%,-50%); }
.precipitation-map-unavailable { top: 50%; left: 50%; display: grid; gap: 3px; width: min(290px,calc(100% - 30px)); max-width: none; transform: translate(-50%,-50%); text-align: center; }
.precipitation-map-unavailable strong { color: #24384a; font-size: .7rem; }
.precipitation-map-loading[hidden], .precipitation-map-unavailable[hidden] { display: none; }
.precipitation-map-legend { position: absolute; z-index: 3; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; border-radius: 8px; background: rgba(255,255,255,.93); color: #42576a; padding: 7px 9px; font-size: .52rem; box-shadow: 0 4px 12px rgba(20,41,61,.12); }
.precipitation-map-legend i { width: 88px; height: 7px; border-radius: 999px; background: linear-gradient(90deg,#78d77d,#35be66,#f3df47,#ff9130,#d93652); }
.precipitation-map-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 14px; color: var(--muted); font-size: .57rem; line-height: 1.4; }
.precipitation-map-footer a { flex: 0 0 auto; color: var(--brand); font-weight: 850; text-decoration: none; }
.precipitation-map-footer a:hover { text-decoration: underline; }

.current-section { margin-top: 24px; }
.current-summary { display: none; }

.planning-section { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 23px; }
.today-planning { margin-top: 18px; border-top: 0; padding-top: 0; }
.week-planning { margin-top: 28px; }
.planning-heading { align-items: flex-start; }
.planning-heading > span { max-width: 350px; text-align: right; line-height: 1.4; }
.planning-stack { min-width: 0; display: grid; gap: 14px; }
.planning-stack[hidden] { display: none; }
.planning-gate { display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #d7dde3; border-radius: 15px; background: #f8fafb; padding: 16px 18px; }
.planning-gate > div { display: grid; gap: 3px; }
.planning-gate span { color: #7046a1; font-size: .66rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.planning-gate strong { font-size: .94rem; }
.planning-gate p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.4; }
.planning-gate button { flex: 0 0 auto; border: 1px solid #bdc8d1; border-radius: 9px; background: #fff; color: var(--brand); padding: 9px 12px; font-size: .75rem; font-weight: 850; cursor: pointer; }
.planning-gate button:focus-visible, .current-summary:focus-visible, .support-details summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 2px; }

.forecast-panel { min-width: 0; max-width: 100%; --forecast-color: #16835c; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--forecast-color); border-radius: 16px; padding: 20px; box-shadow: 0 4px 14px rgba(20,41,61,.05); }
.forecast-header, .forecast-summary, .forecast-footer, .forecast-compact { display: flex; justify-content: space-between; gap: 18px; }
.forecast-header { align-items: flex-start; }
.forecast-header > div, .forecast-summary > div:first-child { min-width: 0; }
.forecast-header h2, .forecast-compact h2 { margin: 2px 0 0; font-size: 1.15rem; }
.forecast-kicker, .forecast-window { color: var(--forecast-color); font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.forecast-chip, .planning-label { flex: 0 0 auto; color: var(--ink); background: #edf1f4; border-radius: 999px; padding: 6px 10px; font-size: .68rem; font-weight: 850; }
.forecast-summary { align-items: flex-end; margin: 20px 0 16px; }
.forecast-summary h3 { margin: 6px 0 4px; font-size: clamp(1.15rem, 2vw, 1.45rem); }
.forecast-summary p, .forecast-compact p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.forecast-peak { flex: 0 0 auto; text-align: right; }
.forecast-peak strong { display: block; font-size: 2.5rem; line-height: .9; letter-spacing: -.06em; }
.forecast-peak span { color: var(--muted); font-size: .66rem; }
.forecast-timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 15px; }
.forecast-hour { background: #f3f6f8; border-radius: 10px; padding: 9px 7px; text-align: center; }
.forecast-hour.is-flagged { background: color-mix(in srgb, var(--forecast-color) 10%, white); }
.forecast-hour span { display: block; color: var(--muted); font-size: .65rem; }
.forecast-hour strong { display: block; margin-top: 3px; font-size: .92rem; }
.forecast-guidance { display: flex; gap: 12px; align-items: baseline; color: var(--forecast-color); background: color-mix(in srgb, var(--forecast-color) 8%, white); border-radius: 11px; padding: 11px 13px; font-size: .78rem; }
.forecast-guidance strong { flex: 0 0 auto; }
.forecast-guidance span { color: var(--ink); line-height: 1.45; }
.forecast-return { margin-top: 10px; color: var(--forecast-color); font-size: .72rem; font-weight: 820; }
.forecast-footer { justify-content: flex-end; margin-top: 13px; color: var(--muted); font-size: .7rem; }
.forecast-compact { align-items: center; padding-top: 17px; padding-bottom: 17px; }
.forecast-compact-copy { min-width: 0; }
.forecast-current-note { flex: 0 0 auto; font-size: .7rem; }
.hourly-explorer { margin: 3px 0 15px; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: #fff; }
.hourly-explorer-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.hourly-explorer-heading strong { font-size: .74rem; }
.hourly-explorer-heading span { color: var(--muted); font-size: .61rem; }
.hourly-scope-tabs { display: flex; justify-content: flex-end; gap: 5px; padding: 8px 10px 0; }
.hourly-scope-tabs button { min-width: 76px; overflow: hidden; border: 1px solid transparent; border-radius: 8px; background: #edf1f5; color: var(--ink); padding: 6px 10px; font-size: .61rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.hourly-scope-tabs button[aria-selected="true"] { border-color: var(--brand); background: var(--brand); color: #fff; }
.hourly-scope-tabs button:focus-visible, .outlook-detail-actions button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 2px; }
.hourly-scope-panels { padding: 8px 10px 10px; }
.hourly-scope-panel[hidden], .outlook-hourly-details[hidden] { display: none; }
.hourly-risk-grid { display: grid; grid-template-columns: repeat(var(--hour-count), minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.hourly-risk-card { min-width: 0; display: grid; align-content: start; justify-items: center; gap: 4px; border-right: 1px solid var(--line); background: #fff; padding: 9px 8px 8px; text-align: center; }
.hourly-risk-card:last-child { border-right: 0; }
.hourly-risk-card.is-flagged { background: color-mix(in srgb, var(--hour-color) 8%, white); }
.hourly-risk-time { width: 100%; min-height: 18px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.hourly-risk-time strong { font-size: .65rem; }
.hourly-risk-time span { border-radius: 999px; background: #ffd8c7; color: #a83b0a; padding: 2px 5px; font-size: .47rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.hourly-risk-symbol { min-height: 25px; color: var(--hour-color); font-size: 1.35rem; line-height: 1.1; }
.hourly-risk-condition { width: 100%; overflow: hidden; color: var(--muted); font-size: .55rem; text-overflow: ellipsis; white-space: nowrap; }
.hourly-risk-condition.is-operational { color: var(--ink); font-weight: 800; }
.hourly-risk-context { width: 100%; overflow: hidden; margin-top: -2px; color: var(--muted); font-size: .49rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.hourly-risk-card dl { width: 100%; margin: 2px 0 3px; }
.hourly-risk-card dl div { display: flex; justify-content: space-between; gap: 5px; border-top: 1px solid #dfe6eb; padding: 3px 1px; font-size: .56rem; }
.hourly-risk-card dt { color: var(--muted); }
.hourly-risk-card dd { margin: 0; font-weight: 850; }
.hourly-risk-level { width: calc(100% - 8px); border-radius: 999px; background: color-mix(in srgb, var(--hour-color) 14%, white); color: var(--hour-color); padding: 4px 5px; font-size: .49rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }

.week-panel { min-width: 0; max-width: 100%; --week-color: #16835c; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--week-color); border-radius: 16px; padding: 20px; box-shadow: 0 4px 14px rgba(20,41,61,.05); }
.week-header, .week-intro, .week-footer, .week-compact { display: flex; justify-content: space-between; gap: 18px; }
.week-header { align-items: flex-start; }
.week-header h2, .week-compact h2 { margin: 2px 0 0; font-size: 1.15rem; }
.week-kicker { color: var(--week-color); font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.week-chip { flex: 0 0 auto; color: var(--ink); background: #edf1f4; border-radius: 999px; padding: 6px 10px; font-size: .68rem; font-weight: 850; }
.week-intro { align-items: end; margin: 17px 0 14px; }
.week-intro h3 { margin: 0 0 4px; font-size: 1rem; }
.week-intro p, .week-compact p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.week-intro > strong { flex: 0 0 auto; color: var(--muted); font-size: .72rem; }
.week-mobile-overview, .week-mobile-collapse { display: none; }
.outlook-days { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 7px; }
.outlook-day { min-width: 0; display: grid; justify-items: center; gap: 3px; border: 1px solid var(--line); border-top: 4px solid var(--day-color); border-radius: 11px; background: #f6f8fa; color: var(--ink); padding: 9px 5px 8px; cursor: pointer; text-align: center; }
.outlook-day:hover { border-color: color-mix(in srgb, var(--day-color) 48%, var(--line)); }
.outlook-day:focus-visible { outline: 3px solid color-mix(in srgb, var(--day-color) 32%, transparent); outline-offset: 2px; }
.outlook-day.is-selected { border-color: var(--day-color); background: color-mix(in srgb, var(--day-color) 9%, white); box-shadow: 0 0 0 1px var(--day-color); }
.outlook-day.is-flagged { background: color-mix(in srgb, var(--day-color) 7%, white); }
.outlook-day.is-extended { border-bottom: 2px dotted #8995a1; }
.outlook-day-top, .outlook-day-bottom, .outlook-day-date { display: contents; }
.outlook-weekday { color: var(--muted); font-size: .57rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.outlook-date { font-size: .62rem; font-weight: 760; }
.outlook-symbol { min-height: 24px; font-size: 1.25rem; line-height: 1.2; }
.outlook-temps { font-size: .79rem; }
.outlook-temps span { color: var(--muted); font-weight: 650; }
.outlook-condition { width: 100%; overflow: hidden; color: var(--muted); font-size: .55rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.outlook-state { min-height: 20px; color: var(--day-color); font-size: .54rem; line-height: 1.15; }
.outlook-details { margin-top: 10px; }
.outlook-detail { border-left: 4px solid var(--day-color); border-radius: 12px; background: #f6f8fa; padding: 14px 15px; }
.outlook-detail[hidden] { display: none; }
.outlook-detail-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.outlook-detail-heading span { color: var(--day-color); font-size: .61rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.outlook-detail-heading h3 { margin: 2px 0; font-size: .96rem; }
.outlook-detail-heading p { margin: 0; color: var(--muted); font-size: .7rem; }
.outlook-detail-heading > b { flex: 0 0 auto; border-radius: 999px; background: #fff; color: var(--day-color); padding: 5px 8px; font-size: .62rem; }
.outlook-detail-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.outlook-detail-actions > b { border-radius: 999px; background: #fff; color: var(--day-color); padding: 5px 8px; font-size: .62rem; }
.outlook-detail-actions button { border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--brand); padding: 6px 9px; font-size: .61rem; font-weight: 850; cursor: pointer; }
.outlook-detail-actions button span { margin-left: 3px; color: inherit; font-size: .78rem; letter-spacing: 0; }
.outlook-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 12px; }
.outlook-detail-grid > div { border-radius: 9px; background: #fff; padding: 8px 9px; }
.outlook-detail-grid span { display: block; color: var(--muted); font-size: .56rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.outlook-detail-grid strong { display: block; margin-top: 3px; font-size: .73rem; }
.outlook-concerns { display: grid; gap: 8px; margin-top: 11px; }
.outlook-concern { display: grid; gap: 2px; border-radius: 9px; background: color-mix(in srgb, var(--day-color) 9%, white); padding: 9px 11px; }
.outlook-concern span { color: var(--day-color); font-size: .57rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.outlook-concern strong { font-size: .78rem; }
.outlook-concern p, .outlook-clear p { margin: 0; color: var(--muted); font-size: .64rem; line-height: 1.35; }
.outlook-clear { display: flex; align-items: center; gap: 9px; margin-top: 11px; border-radius: 9px; background: #edf7f2; color: #146346; padding: 9px 11px; }
.outlook-clear > span { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #16835c; }
.outlook-clear strong { font-size: .72rem; }
.outlook-source { margin-top: 9px; color: var(--muted); font-size: .58rem; text-align: right; }
.daypart-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.daypart-card { min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 10px; }
.daypart-symbol { color: var(--period-color); font-size: 1.65rem; text-align: center; }
.daypart-copy { min-width: 0; display: grid; gap: 2px; }
.daypart-copy > span { color: var(--muted); font-size: .52rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.daypart-copy > strong { overflow: hidden; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.daypart-copy > small { color: var(--muted); font-size: .58rem; }
.daypart-copy > b { display: flex; align-items: center; gap: 5px; overflow: hidden; color: var(--period-color); font-size: .55rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.daypart-copy > b i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--period-color); }
.outlook-guidance { display: flex; align-items: flex-start; gap: 9px; margin-top: 10px; border-top: 1px solid var(--line); padding: 9px 2px 0; }
.outlook-guidance > span { width: 18px; height: 18px; flex: 0 0 18px; display: grid; place-items: center; border-radius: 50%; background: #536176; color: #fff; font-size: .58rem; font-weight: 900; }
.outlook-guidance p { margin: 1px 0 0; color: var(--muted); font-size: .62rem; line-height: 1.4; }
.outlook-guidance strong { color: var(--ink); }
.outlook-hourly-details { margin-top: 11px; border-top: 1px solid var(--line); padding-top: 11px; }
.outlook-hourly-heading { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.outlook-hourly-heading strong { font-size: .67rem; }
.outlook-hourly-heading span { color: var(--muted); font-size: .57rem; }
.outlook-hourly-unavailable { margin-top: 10px; border-radius: 8px; background: #edf1f4; color: var(--muted); padding: 8px 10px; font-size: .6rem; }
.week-confidence { display: flex; gap: 12px; align-items: baseline; margin-top: 14px; border-radius: 10px; padding: 10px 12px; background: #f3f6f8; font-size: .7rem; }
.week-confidence strong { flex: 0 0 auto; color: var(--week-color); }
.week-confidence span { color: var(--muted); line-height: 1.4; }
.week-footer { justify-content: flex-end; margin-top: 11px; color: var(--muted); font-size: .68rem; }
.week-footer span:first-child { font-weight: 800; }
.week-compact { align-items: center; padding-top: 16px; padding-bottom: 16px; }
.week-compact-copy { min-width: 0; }
.week-compact-meta { flex: 0 0 auto; display: grid; justify-items: end; gap: 3px; color: var(--muted); font-size: .66rem; }
.week-compact-meta strong { color: var(--ink); font-size: .72rem; }

.section-heading { display: flex; justify-content: space-between; align-items: end; margin: 0 2px 12px; }
.section-heading h2 { margin: 2px 0 0; color: var(--muted); font-size: .72rem; font-weight: 900; letter-spacing: .14em; }
.section-heading > span { color: var(--muted); font-size: .76rem; }
.zone-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.zone-grid.zone-count-1 { grid-template-columns: minmax(0, 1fr); }
.zone-grid.zone-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zone-grid.zone-count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.zone-card { --card-color: #16835c; min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--card-color); border-radius: 14px; box-shadow: 0 3px 10px rgba(20,41,61,.035); }
.zone-card.is-green { border-left-width: 1px; }
.zone-content { flex: 1 1 auto; padding: 15px; }
.zone-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.zone-top h3 { min-width: 0; margin: 2px 0 0; font-size: .96rem; line-height: 1.2; }
.level-chip { flex: 0 0 auto; color: var(--card-color); background: color-mix(in srgb, var(--card-color) 9%, white); border-radius: 999px; padding: 5px 7px; font-size: .59rem; font-weight: 900; letter-spacing: .07em; }
.zone-glance { margin-top: 9px; color: var(--muted); font-size: .78rem; font-weight: 720; }
.zone-glance span { padding: 0 3px; color: #a1adb7; }
.zone-decision { display: grid; gap: 3px; margin-top: 13px; border-radius: 10px; background: color-mix(in srgb, var(--card-color) 8%, white); padding: 10px 11px; }
.zone-decision strong { color: var(--card-color); font-size: .78rem; line-height: 1.3; }
.zone-decision span { color: var(--ink); font-size: .7rem; font-weight: 750; }
.zone-weather-details { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 9px; }
.zone-weather-details summary { color: var(--muted); font-size: .64rem; font-weight: 800; cursor: pointer; }
.zone-weather-details[open] summary { margin-bottom: 10px; color: var(--brand); }
.conditions { margin: 0 0 9px; }
.condition-copy { min-width: 0; display: grid; gap: 2px; color: var(--muted); font-size: .68rem; line-height: 1.3; }
.condition-copy strong { overflow: hidden; color: var(--ink); font-size: .83rem; text-overflow: ellipsis; white-space: nowrap; }
.observation-source { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 0 0 10px; color: var(--muted); font-size: .54rem; line-height: 1.3; }
.observation-source > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.observation-source b { flex: 0 0 auto; border-radius: 999px; background: #edf1f4; color: #536373; padding: 4px 6px; font-size: .56rem; }
.observation-source .verification-conflict { background: #fff1cb; color: #7a5000; }
.observation-source .verification-difference_not_decision_relevant { background: #eef3f6; color: #4e6173; }
.observation-source .verification-reference_unavailable,
.observation-source .verification-nws_fallback, .observation-source .verification-not_configured,
.observation-source .verification-disabled { background: #f1edf7; color: #604187; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric { min-width: 0; padding: 9px 7px; }
.metric:first-child { padding-left: 0; }
.metric:last-child { padding-right: 0; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric-label { display: block; overflow: hidden; color: var(--muted); font-size: .54rem; font-weight: 800; letter-spacing: .04em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.metric-value { display: block; margin-top: 3px; font-size: .72rem; font-weight: 760; line-height: 1.25; }
.schools-toggle { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 14px; border: 0; border-top: 1px solid var(--line); background: #f7f9fb; color: var(--muted); font-size: .66rem; text-align: left; cursor: pointer; }
.schools-toggle:hover { background: #eef3f6; }
.schools-toggle-icon { flex: 0 0 auto; color: var(--brand); font-size: .9rem; line-height: 1; transition: transform .16s ease; }
.schools-toggle[aria-expanded="true"] .schools-toggle-icon { transform: rotate(180deg); }
.schools { margin: 0; padding: 10px 14px 12px 30px; border-top: 1px solid var(--line); background: #f7f9fb; color: var(--muted); font-size: .68rem; line-height: 1.55; }
.schools[hidden] { display: none; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel h2 { margin: 0; font-size: .92rem; }
.panel-heading span { color: var(--muted); font-size: .64rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.alert-card { border-left: 4px solid var(--alert-color); padding: 9px 0 9px 12px; }
.alert-card + .alert-card { margin-top: 8px; border-top: 1px solid var(--line); }
.alert-event { font-size: .82rem; font-weight: 820; }
.alert-meta, .alert-headline { margin-top: 3px; color: var(--muted); font-size: .68rem; line-height: 1.45; }
.empty-state, .warning-state, .source-list, .disclaimer-panel p { color: var(--muted); font-size: .74rem; line-height: 1.52; }
.warning-state { color: #76520b; background: #fff3d5; padding: 10px; border-radius: 9px; }
.source-list { display: grid; gap: 10px; }
.source-list strong { color: var(--ink); }
.disclaimer-panel { background: #f8fafb; }
.disclaimer-panel p { margin: 9px 0 0; }
.support-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 25px; }
.support-details details { border: 1px solid var(--line); border-radius: 12px; background: #f8fafb; overflow: hidden; }
.support-details summary { display: grid; gap: 2px; padding: 13px 15px; cursor: pointer; list-style-position: inside; }
.support-details summary span { font-size: .79rem; font-weight: 820; }
.support-details summary small { margin-left: 18px; color: var(--muted); font-size: .69rem; }
.support-details .source-list, .support-details details > p { margin: 0; border-top: 1px solid var(--line); padding: 14px 16px; }
.support-details details > p { color: var(--muted); font-size: .74rem; line-height: 1.52; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 2px 5px; color: var(--muted); font-size: .67rem; }
.footer a { color: inherit; font-weight: 800; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.powered-by { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.powered-by a { display: block; line-height: 0; }
.powered-by img { display: block; width: 88px; height: auto; }

.loading-screen, .error-screen { min-height: 100vh; display: grid; place-content: center; text-align: center; padding: 30px; color: var(--muted); }
.loading-mark { display: flex; justify-content: center; gap: 5px; }
.loading-mark span { width: 8px; height: 8px; background: var(--brand); border-radius: 50%; animation: pulse 1s infinite alternate; }
.loading-mark span:nth-child(2) { animation-delay: .2s; }
.loading-mark span:nth-child(3) { animation-delay: .4s; }
.error-card { max-width: 460px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.error-card .brand-mark { margin: 0 auto 18px; }
.error-card h1 { white-space: normal; }
@keyframes pulse { to { opacity: .25; transform: translateY(-5px); } }

@media (max-width: 1250px) {
  .zone-grid, .zone-grid.zone-count-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zone-grid.zone-count-1 { grid-template-columns: minmax(0, 1fr); }
  .zone-grid.zone-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .zone-grid, .zone-grid.zone-count-3, .zone-grid.zone-count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zone-grid.zone-count-1 { grid-template-columns: minmax(0, 1fr); }
  .hourly-risk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hourly-risk-card:nth-child(3n) { border-right: 0; }
  .hourly-risk-card:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 980px) { .demo-bar-inner { grid-template-columns: auto minmax(220px, 1fr) auto; } .demo-context { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #40586a; padding: 6px 0 0; } }
@media (max-width: 640px) {
  .page { padding: 12px; }
  .masthead { display: block; }
  .masthead h1 { white-space: normal; }
  .header-logo { width: 62px; }
  .masthead-actions { margin-top: 12px; justify-content: space-between; font-size: .72rem; }
  .demo-bar { position: relative; }
  .demo-bar-inner { padding: 9px 12px; grid-template-columns: 1fr auto; gap: 8px; }
  .demo-identity { grid-column: 1 / -1; }
  .scenario-field { min-width: 0; }
  .demo-context { display: none; }
  .zone-grid, .zone-grid.zone-count-1, .zone-grid.zone-count-2, .zone-grid.zone-count-3, .zone-grid.zone-count-4 { grid-template-columns: 1fr; }
  .zone-grid.is-mobile-collapsed { display: none; }
  .current-summary { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink); padding: 13px 14px; text-align: left; cursor: pointer; box-shadow: 0 3px 10px rgba(20,41,61,.04); }
  .current-summary > span { min-width: 0; display: grid; gap: 3px; }
  .current-summary strong { font-size: .78rem; }
  .current-summary small { color: var(--muted); font-size: .69rem; line-height: 1.35; }
  .current-summary b { flex: 0 0 auto; color: var(--brand); font-size: .7rem; }
  .current-summary + .zone-grid { margin-top: 10px; }
  .status-hero { border-radius: 16px; }
  .status-hero, .status-hero.is-red, .status-hero.is-purple { padding: 24px 21px; }
  .status-hero.is-green { padding: 20px 18px; }
  .status-context { display: grid; grid-template-columns: auto auto 1fr; gap: 4px; }
  .alert-clear-strip { flex-wrap: wrap; }
  .alert-clear-strip small { width: 100%; margin-left: 17px; }
  .alert-advisory-strip { align-items: flex-start; flex-direction: column; gap: 9px; }
  .alert-advisory-details { justify-content: flex-start; padding-left: 39px; }
  .nowcast-header { align-items: flex-start; padding: 13px 14px 8px; }
  .nowcast-freshness { margin-top: -2px; font-size: .55rem; }
  .nowcast-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 14px 10px; }
  .nowcast-tabs button { min-width: 0; min-height: 38px; }
  .nowcast-scope { padding: 0 14px 13px; }
  .nowcast-readout { grid-template-columns: 1fr; gap: 12px; }
  .nowcast-source { align-items: flex-start; flex-direction: column; gap: 2px; padding: 9px 14px; }
  .precipitation-map-header { align-items: flex-start; padding: 13px 14px 11px; }
  .precipitation-map-heading { align-items: flex-start; }
  .precipitation-map-heading p { max-width: 230px; }
  .precipitation-map-toggle { padding-top: 1px; }
  .precipitation-map-stage { height: 220px; }
  .precipitation-map-panel.is-expanded .precipitation-map-stage { height: 390px; min-height: 390px; }
  .precipitation-map-state { top: 8px; left: 8px; max-width: calc(100% - 86px); }
  .precipitation-demo-badge { top: auto; right: 8px; bottom: 37px; }
  .precipitation-map-legend { right: 8px; bottom: 8px; }
  .precipitation-map-legend i { width: 64px; }
  .precipitation-map-footer { align-items: flex-start; flex-direction: column; gap: 5px; padding: 9px 12px; }
  .planning-heading { display: block; }
  .planning-heading > span { display: block; margin-top: 5px; text-align: left; }
  .planning-gate { flex-direction: column; align-items: stretch; }
  .planning-gate button { width: 100%; }
  .forecast-panel { padding: 17px; border-radius: 15px; }
  .forecast-summary { align-items: flex-start; }
  .forecast-peak strong { font-size: 2rem; }
  .forecast-timeline { gap: 4px; }
  .forecast-hour { padding: 8px 2px; }
  .forecast-hour strong { font-size: .78rem; }
  .forecast-guidance, .forecast-footer, .forecast-compact { flex-direction: column; }
  .hourly-explorer-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
  .hourly-scope-tabs { justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
  .hourly-scope-tabs button { min-width: 68px; }
  .hourly-risk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hourly-risk-card, .hourly-risk-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .hourly-risk-card:nth-child(2n) { border-right: 0; }
  .hourly-risk-card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .forecast-compact.is-green { padding-top: 13px; padding-bottom: 13px; }
  .forecast-compact.is-green p { display: none; }
  .forecast-current-note { flex-basis: auto; }
  .week-panel { padding: 17px; border-radius: 15px; }
  .week-header { align-items: end; }
  .week-header h2 { font-size: 1.05rem; }
  .week-header .week-chip { display: none; }
  .week-mobile-overview { display: grid; gap: 9px; margin-top: 13px; }
  .week-mobile-summary { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); padding: 12px; text-align: left; cursor: pointer; box-shadow: 0 2px 5px rgba(20,41,61,.04); }
  .week-mobile-summary-copy { min-width: 0; display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .67rem; line-height: 1.25; }
  .week-mobile-summary-copy strong { color: var(--ink); }
  .week-mobile-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--week-color); }
  .week-mobile-dot.is-green { background: #16835c; }
  .week-mobile-dot.is-gray { background: #66717e; }
  .week-mobile-summary-action { flex: 0 0 auto; color: var(--brand); font-size: .62rem; font-weight: 850; white-space: nowrap; }
  .week-mobile-summary-action b { display: inline-block; margin-left: 2px; font-size: .9rem; }
  .week-mobile-concerns { display: grid; gap: 8px; }
  .week-mobile-concern { width: 100%; min-height: 72px; display: grid; grid-template-columns: 47px minmax(0,1fr) auto; align-items: center; gap: 9px; border: 1px solid var(--line); border-left: 4px solid var(--day-color); border-radius: 12px; background: #fff; color: var(--ink); padding: 9px 9px 9px 8px; text-align: left; cursor: pointer; }
  .week-mobile-date { min-height: 44px; display: grid; place-content: center; justify-items: center; gap: 2px; border-right: 1px solid #e3e9ee; }
  .week-mobile-date strong { font-size: .62rem; letter-spacing: .08em; }
  .week-mobile-date small { color: var(--muted); font-size: .56rem; font-weight: 800; }
  .week-mobile-concern-copy { min-width: 0; display: grid; gap: 3px; }
  .week-mobile-concern-copy strong { font-size: .7rem; line-height: 1.2; }
  .week-mobile-concern-copy small { color: var(--muted); font-size: .58rem; line-height: 1.3; }
  .week-mobile-level { align-self: start; border-radius: 999px; background: color-mix(in srgb, var(--day-color) 10%, white); color: var(--day-color); padding: 4px 6px; font-size: .51rem; font-weight: 900; letter-spacing: .05em; }
  .week-mobile-more { width: 100%; border: 1px dashed var(--line); border-radius: 10px; background: transparent; color: var(--brand); padding: 9px; font-size: .62rem; font-weight: 850; cursor: pointer; }
  .week-expanded { display: none; margin-top: 10px; }
  .week-panel.is-outlook-expanded .week-expanded { display: block; }
  .week-panel.is-outlook-expanded .week-mobile-concerns { display: none; }
  .week-expanded .week-intro { display: none; }
  .outlook-days { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; overflow: hidden; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 11px; }
  .outlook-day { min-height: 72px; justify-items: center; align-content: center; gap: 2px; border-width: 0 1px 3px 0; border-radius: 0; padding: 7px 2px 5px; text-align: center; }
  .outlook-day:nth-of-type(5n) { border-right: 0; }
  .outlook-day-top { width: auto; display: contents; }
  .outlook-day-bottom { display: none; }
  .outlook-day-date { display: grid; justify-items: center; gap: 1px; }
  .outlook-weekday { font-size: .53rem; }
  .outlook-date { font-size: .58rem; }
  .outlook-symbol { min-height: 19px; color: var(--day-color); font-size: .92rem; }
  .outlook-temps { display: none; }
  .outlook-days > .outlook-detail.is-mobile-inline { position: relative; grid-column: 1 / -1; margin: 0 0 2px; animation: outlook-detail-reveal .18s ease-out; }
  .outlook-days > .outlook-detail.is-mobile-inline::before { content: ''; position: absolute; top: -6px; left: var(--outlook-pointer-position, 10%); width: 11px; height: 11px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: #f6f8fa; transform: translateX(-50%) rotate(45deg); }
  .outlook-details { margin-top: 0; }
  .outlook-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outlook-detail-heading { flex-direction: column; gap: 8px; }
  .outlook-detail-actions { width: 100%; justify-content: space-between; }
  .daypart-grid { grid-template-columns: 1fr; }
  .daypart-card { grid-template-columns: 42px minmax(0, 1fr); }
  .outlook-hourly-heading { flex-direction: column; }
  .week-footer, .week-compact, .week-confidence { flex-direction: column; align-items: flex-start; }
  .week-mobile-collapse { display: block; width: 100%; margin-top: 10px; border: 0; border-radius: 10px; background: #edf2f5; color: var(--brand); padding: 10px; font-size: .63rem; font-weight: 850; cursor: pointer; }
  .week-compact-meta { flex-basis: auto; justify-items: start; }
  .support-details { grid-template-columns: 1fr; }
  .footer { align-items: flex-start; flex-direction: column; }
  .powered-by img { width: 74px; }
  .quality-footer { flex-wrap: wrap; }
  .quality-footer small { width: 100%; margin-left: 16px; }
}
@keyframes outlook-detail-reveal { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 350px) {
  .week-panel { padding: 13px; }
  .week-mobile-summary { align-items: flex-start; }
  .week-mobile-summary-copy { max-width: 165px; }
  .week-mobile-concern { position: relative; grid-template-columns: 43px minmax(0,1fr); }
  .week-mobile-concern-copy { padding-right: 49px; }
  .week-mobile-level { position: absolute; top: 8px; right: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation-duration: .01ms !important; } }
