:root {
  color-scheme: light;
  --ink: #102b49;
  --muted: #67819c;
  --blue: #1677df;
  --blue-dark: #0755ad;
  --cyan: #38bdf8;
  --card: rgba(255, 255, 255, .76);
  --card-line: rgba(255, 255, 255, .9);
  --shadow: 0 24px 70px rgba(28, 92, 150, .16);
  --scroll-track: rgba(194, 226, 248, .5);
  --scroll-thumb: #258fdc;
  --scroll-thumb-hover: #1172c5;
}

* { box-sizing: border-box; }
html {
  min-width: 360px;
  background: #eaf6ff;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}
html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: var(--scroll-track); }
html::-webkit-scrollbar-thumb {
  min-height: 48px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, #49bdf2, var(--scroll-thumb)) padding-box;
}
html::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #64cdf7, var(--scroll-thumb-hover)) padding-box;
}
html:has(body.night) {
  --scroll-track: rgba(5, 25, 52, .72);
  --scroll-thumb: #268dd4;
  --scroll-thumb-hover: #51b9f4;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(circle at 82% -10%, rgba(255,255,255,.98) 0 17%, transparent 43%),
    linear-gradient(145deg, #d9efff 0%, #f7fbff 42%, #e5f4ff 100%);
  transition: background 1.2s ease, color .6s ease;
  overflow-x: hidden;
}

body.night {
  color-scheme: dark;
  --ink: #f4f9ff;
  --muted: #a8c1db;
  --blue: #65b8ff;
  --blue-dark: #d8edff;
  --card: rgba(10, 35, 69, .69);
  --card-line: rgba(144, 201, 255, .15);
  --shadow: 0 26px 80px rgba(0, 9, 35, .42);
  background:
    radial-gradient(circle at 80% -10%, rgba(77, 136, 209, .22), transparent 36%),
    linear-gradient(145deg, #06152c 0%, #0a2850 48%, #123e6a 100%);
}

button, input { font: inherit; }
.sky { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .5; animation: drift 16s ease-in-out infinite alternate; }
.glow-one { width: 440px; height: 440px; right: -140px; top: 18%; background: rgba(81, 191, 255, .22); }
.glow-two { width: 360px; height: 360px; left: -160px; bottom: -80px; background: rgba(255,255,255,.72); animation-delay: -8s; }
.night .glow-two { background: rgba(36, 112, 197, .2); }
.star-field { opacity: 0; position: absolute; inset: 0; transition: opacity 1s ease; }
.night .star-field { opacity: .38; }
.star { position: absolute; width: var(--star-size); height: var(--star-size); border-radius: 50%; background: rgba(235,247,255,var(--star-opacity)); box-shadow: 0 0 calc(var(--star-size) * 2.5) rgba(150,211,255,.28); animation: twinkle var(--star-speed) ease-in-out var(--star-delay) infinite alternate; }

.app-shell { position: relative; z-index: 1; width: min(1400px, 100%); margin: 0 auto; padding: 26px clamp(22px, 4vw, 58px) 46px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.brand-mark { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 15px; color: white; background: linear-gradient(145deg, #58c7ff, #0870d6); box-shadow: 0 10px 25px rgba(19,113,202,.25); }
.brand-mark svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark svg .weather-dot { fill: #69e3c8; stroke: none; }
.brand strong { display: block; font-size: 17px; letter-spacing: -.2px; }
.brand span { display: block; margin-top: 1px; color: var(--muted); font-size: 11px; }

.header-actions { width: min(660px, 66%); display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.search { min-width: 0; flex: 1; min-height: 49px; padding: 5px 5px 5px 15px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.8); border-radius: 18px; background: rgba(255,255,255,.72); box-shadow: 0 12px 34px rgba(37,102,158,.11); backdrop-filter: blur(18px); }
.night .search { background: rgba(9,31,62,.66); border-color: rgba(153,207,255,.15); }
.search svg { width: 19px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search input::placeholder { color: var(--muted); }
.search button { border: 0; border-radius: 13px; padding: 10px 18px; color: white; font-weight: 700; cursor: pointer; background: linear-gradient(135deg, #208df2, #0963c5); box-shadow: 0 8px 18px rgba(4,96,190,.23); transition: transform .2s, filter .2s; }
.search button:hover { transform: translateY(-1px); filter: brightness(1.06); }
.search button:disabled { opacity: .6; cursor: wait; transform: none; }
.language-switch { flex: 0 0 auto; display: flex; gap: 3px; padding: 4px; border: 1px solid rgba(255,255,255,.72); border-radius: 14px; background: rgba(255,255,255,.52); backdrop-filter: blur(16px); }
.night .language-switch { background: rgba(9,31,62,.6); border-color: rgba(153,207,255,.15); }
.language-switch button { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; transition: color .2s, background .2s, box-shadow .2s; }
.language-switch button.active { color: white; background: linear-gradient(145deg, #0b67c7, #248de8); box-shadow: inset 0 2px 5px rgba(0,43,94,.42), inset 0 -1px 1px rgba(255,255,255,.22); transform: translateY(1px); }
.dev-location-sweep { align-items: center; gap: 6px; padding: 5px 8px; border: 1px dashed rgba(22,119,223,.42); border-radius: 14px; color: var(--muted); background: rgba(88,181,250,.08); font-size: 10px; }
.dev-location-sweep:not([hidden]) { display: flex; }
.dev-location-sweep button { border: 0; border-radius: 9px; padding: 7px 9px; color: var(--blue-dark); background: rgba(88,181,250,.16); font-size: 10px; font-weight: 750; cursor: pointer; }
.dev-location-sweep button:hover { background: rgba(88,181,250,.27); }
.dev-location-sweep button:disabled { cursor: wait; opacity: .55; }
.night .dev-location-sweep { border-color: rgba(138,207,255,.38); background: rgba(88,181,250,.11); }

.message { min-height: 0; height: 0; opacity: 0; overflow: hidden; text-align: center; color: var(--muted); transition: all .25s; }
.message.visible { min-height: 28px; height: auto; opacity: 1; }
.message.error { color: #c0395b; }
.location-picker[hidden] { display: none; }
.location-picker { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(4, 20, 43, .42); backdrop-filter: blur(5px); }
.location-picker-panel { display: flex; flex-direction: column; width: min(440px, 100%); max-height: calc(100dvh - 44px); padding: 22px; border: 1px solid var(--card-line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.location-picker-panel h2 { flex: 0 0 auto; margin-bottom: 14px; }
#location-picker-options { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 5px; margin-right: -5px; scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
#location-picker-options::-webkit-scrollbar { width: 8px; }
#location-picker-options::-webkit-scrollbar-thumb { border-radius: 999px; background: var(--scroll-thumb); }
#location-picker-options::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); }
.location-picker-option { width: 100%; margin: 0 0 8px; padding: 12px 14px; border: 1px solid rgba(56, 145, 220, .22); border-radius: 14px; color: var(--ink); text-align: left; cursor: pointer; background: rgba(95, 180, 240, .1); }
.location-picker-option:hover { background: rgba(95, 180, 240, .2); }
.location-picker-option small { display: block; margin-top: 3px; color: var(--muted); }
#location-picker-cancel { flex: 0 0 auto; align-self: end; margin-top: 6px; border: 0; color: var(--blue); font-weight: 700; cursor: pointer; background: transparent; }
.dashboard { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(390px, .94fr); gap: 20px; opacity: 1; transition: opacity .3s; }
.dashboard > * { min-width: 0; }
body.loading .dashboard { opacity: .63; }
.card { border: 1px solid var(--card-line); border-radius: 28px; background: var(--card); box-shadow: var(--shadow); backdrop-filter: blur(24px) saturate(1.15); }
.hero-card { padding: 28px; overflow: hidden; }
.hero-topline, .section-heading, .verdict-row, .map-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.eyebrow { display: block; margin-bottom: 5px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: 1.35px; text-transform: uppercase; }
h1, h2, p { margin: 0; }
h1 { font-size: 26px; letter-spacing: -.7px; }
h2 { font-size: 20px; letter-spacing: -.45px; }
.mode-pill { padding: 7px 11px; border-radius: 999px; color: var(--blue-dark); font-size: 11px; font-weight: 700; background: rgba(107,190,255,.14); border: 1px solid rgba(50,150,234,.14); }

.hero-weather { min-height: 190px; display: grid; grid-template-columns: 145px 1fr 125px; align-items: center; gap: 8px; }
.temperature-block > div { display: flex; align-items: flex-start; }
.temperature { font-size: clamp(62px, 6vw, 86px); line-height: .9; font-weight: 250; letter-spacing: -6px; }
.temperature-block sup { margin: 2px 0 0 8px; color: var(--blue); font-size: 27px; }
.condition { display: block; margin-top: 10px; font-size: 16px; font-weight: 750; }
.muted { color: var(--muted); font-size: 12px; }
.temperature-block .muted { display: block; margin-top: 3px; }

.score-ring { --score: 0; width: 112px; height: 112px; padding: 8px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--blue) calc(var(--score) * 1%), rgba(72,146,211,.13) 0); box-shadow: 0 13px 30px rgba(19,102,184,.12); transition: background 1s ease; }
.score-ring::before { content: ""; grid-area: 1/1; width: 94px; height: 94px; border-radius: 50%; background: color-mix(in srgb, var(--card) 92%, white); }
.score-ring div { z-index: 1; grid-area: 1/1; text-align: center; }
.score-ring strong { display: block; font-size: 32px; line-height: 1; }
.score-ring span { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; }
.verdict-row { padding: 17px 0 19px; border-top: 1px solid rgba(110,162,205,.14); }
.verdict-row p { max-width: 235px; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: right; }
.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.metric { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 11px 9px; border-radius: 16px; background: rgba(107,179,235,.08); }
.metric-icon { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: var(--blue); background: rgba(88,181,250,.13); font-size: 15px; font-weight: 800; }
.wind-arrow { transition: transform .65s cubic-bezier(.2,.8,.2,1); }
.metric-copy { min-width: 0; }
.metric small, .metric strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric small { color: var(--muted); font-size: 9px; }
.metric strong { margin-top: 2px; font-size: 11px; }
.metric-provenance { display: block; width: fit-content; max-width: 100%; margin-top: 3px; padding: 2px 5px; overflow: hidden; border-radius: 999px; color: color-mix(in srgb, var(--muted) 90%, var(--ink)); background: rgba(88,181,250,.13); font-size: 8px; font-weight: 700; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.metric-provenance[hidden] { display: none; }

.map-card { padding: 23px; }
.section-heading { margin-bottom: 15px; }
.map-heading-actions { display: flex; align-items: center; gap: 10px; }
.map-fullscreen-search { min-width: 0; flex: 1; min-height: 46px; padding: 4px 5px 4px 14px; display: none; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.88); border-radius: 16px; background: rgba(247,252,255,.94); box-shadow: 0 10px 28px rgba(21,75,120,.14); }
.map-fullscreen-search > svg { width: 19px; flex: 0 0 auto; fill: none; stroke: #68829b; stroke-width: 1.8; }
.map-fullscreen-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: #102b49; background: transparent; }
.map-fullscreen-search input::placeholder { color: #68829b; }
.map-fullscreen-search button { width: 37px; height: 37px; flex: 0 0 auto; padding: 0; display: grid; place-items: center; border: 0; border-radius: 12px; color: white; background: linear-gradient(145deg, #1689ec, #0864c6); box-shadow: 0 6px 16px rgba(4,96,190,.23); cursor: pointer; transition: transform .18s, filter .18s; }
.map-fullscreen-search button:hover { transform: translateY(-1px); filter: brightness(1.06); }
.map-fullscreen-search button:active { transform: translateY(1px) scale(.96); }
.map-fullscreen-search button:disabled { opacity: .68; cursor: wait; transform: none; }
.map-fullscreen-search button svg { grid-area: 1 / 1; width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.map-search-spinner { grid-area: 1 / 1; width: 17px; height: 17px; display: none; border: 2px solid rgba(255,255,255,.38); border-top-color: white; border-radius: 50%; animation: spin .8s linear infinite; }
.map-fullscreen-search button.loading svg { visibility: hidden; }
.map-fullscreen-search button.loading .map-search-spinner { display: block; }
.night .map-fullscreen-search { border-color: rgba(153,207,255,.18); background: rgba(9,31,62,.94); }
.night .map-fullscreen-search input { color: #f4f9ff; }
.night .map-fullscreen-search input::placeholder { color: #a8c1db; }
.map-legend { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; }
.map-legend b { font-weight: 500; }
.map-legend span { width: 8px; height: 8px; margin-left: 4px; border-radius: 50%; }
.map-legend .dry { background: #50d6bf; }.map-legend .damp { background: #38b6e9; }.map-legend .wet { background: #0c59b5; }
.map-wrap { position: relative; height: 315px; overflow: hidden; border-radius: 20px; background: linear-gradient(145deg, #cbe8fa, #edf8ff); }
#map { width: 100%; height: 100%; z-index: 1; background: #dceefa; }
.map-loading { position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #1d537f; background: linear-gradient(145deg, rgba(217,241,255,.93), rgba(248,252,255,.9)); transition: opacity .35s, visibility .35s; }
.map-loading.hidden { opacity: 0; visibility: hidden; }
.map-loading.refreshing { inset: 12px auto auto 52px; width: auto; height: auto; padding: 8px 11px; flex-direction: row; gap: 7px; border-radius: 12px; background: rgba(247,252,255,.93); box-shadow: 0 6px 18px rgba(21,75,120,.14); }
.map-loading.refreshing .spinner { width: 16px; height: 16px; border-width: 2px; }
.map-loading.refreshing strong { margin: 0; font-size: 10px; }
.map-loading.refreshing small { display: none; }
.map-loading strong { margin-top: 12px; font-size: 13px; }.map-loading small { margin-top: 3px; opacity: .68; }
.spinner { width: 28px; height: 28px; border: 3px solid rgba(22,119,223,.18); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
.map-note { position: absolute; z-index: 2; left: 12px; bottom: 12px; padding: 7px 10px; border-radius: 10px; color: #2b638e; background: rgba(255,255,255,.84); box-shadow: 0 5px 16px rgba(21,75,120,.12); backdrop-filter: blur(8px); font-size: 9px; font-weight: 650; pointer-events: none; }
.map-footer { padding-top: 13px; color: var(--muted); font-size: 10px; }
.sample-badge { display: flex; align-items: center; gap: 6px; white-space: nowrap; }.sample-badge i { width: 6px; height: 6px; border-radius: 50%; background: #3cb8ed; box-shadow: 0 0 0 4px rgba(60,184,237,.12); }
.map-expand { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 1px solid rgba(55,145,218,.18); border-radius: 11px; color: var(--blue); background: rgba(92,181,242,.11); cursor: pointer; transition: transform .2s, background .2s; }
.map-expand:hover { transform: translateY(-1px); background: rgba(92,181,242,.2); }
.map-expand.active { color: white; background: linear-gradient(145deg, #0b67c7, #248de8); }
.map-expand svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.use-map-centre { display: none; align-items: center; gap: 6px; min-height: 34px; padding: 0 11px; border: 1px solid rgba(55,145,218,.24); border-radius: 11px; color: #176db8; background: rgba(255,255,255,.88); box-shadow: 0 4px 12px rgba(21,75,120,.1); font-size: 11px; font-weight: 750; cursor: pointer; }
.use-map-centre:hover { background: white; transform: translateY(-1px); }
.use-map-centre:disabled { opacity: .7; cursor: wait; transform: none; }
.use-map-centre svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.use-map-centre:not([hidden]) { display: inline-flex; }
.night .use-map-centre { color: #a8d8ff; border-color: rgba(138,207,255,.25); background: rgba(14,52,96,.85); }
.map-place-attribution { position: absolute; z-index: 2; right: 8px; bottom: 4px; color: #4b6480; background: rgba(255,255,255,.76); font-size: 8px; pointer-events: none; }
.night .map-place-attribution { color: #c0d8ed; background: rgba(8,29,58,.72); }
.map-location-pin { --pin-color: #168ee5; width: 22px; height: 22px; display: block; border: 4px solid white; border-radius: 50%; background: var(--pin-color); box-shadow: 0 5px 18px rgba(16,64,110,.32); }
body.map-open { overflow: hidden; }
.map-card.map-expanded { position: fixed; z-index: 100; inset: 12px; padding: 20px; display: flex; flex-direction: column; border-radius: 24px; background: rgba(241,249,255,.97); }
.night .map-card.map-expanded { background: rgba(8,29,58,.98); }
.map-card.map-expanded .section-heading { gap: 12px; }
.map-card.map-expanded .map-title { display: none; }
.map-card.map-expanded .map-fullscreen-search { display: flex; }
.map-card.map-expanded .map-wrap { flex: 1; height: auto; min-height: 0; }
.map-card.map-expanded .map-note { font-size: 11px; }
.maplibregl-ctrl-group { overflow: hidden; border: 0 !important; border-radius: 12px !important; box-shadow: 0 5px 18px rgba(21,75,120,.18) !important; }
.maplibregl-ctrl button { width: 34px !important; height: 34px !important; }
.maplibregl-ctrl-attrib { font-size: 9px !important; background: rgba(255,255,255,.82) !important; }

.trail-card { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 15px 20px; }
.trail-symbol { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: rgba(88,181,250,.13); font-size: 20px; }
.trail-copy { min-width: 0; flex: 1; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline; }
.trail-copy .eyebrow { grid-column: 1 / -1; }
.trail-copy h2 { font-size: 17px; }
.trail-copy > strong { font-size: 13px; }
.trail-copy small { grid-column: 1 / -1; margin-top: 3px; color: var(--muted); font-size: 10px; }
.trail-wetness { color: var(--blue); font-size: 20px; }
.hourly-card { grid-column: 1 / -1; padding: 23px 25px 20px; }
.ride-window { display: flex; align-items: center; gap: 10px; margin: -2px 0 14px; padding: 9px 13px; border: 1px solid transparent; border-radius: 14px; background: rgba(70,152,220,.08); }
.ride-window .window-signal { font-size: 12px; }.ride-window strong, .ride-window small { display: block; }.ride-window strong { font-size: 11px; }.ride-window small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.ride-window.green { color: #178b79; background: rgba(54,203,168,.10); border-color: rgba(54,203,168,.16); }
.night .ride-window.green { color: #7ce5c9; }
.ride-window.amber { color: #a87514; background: rgba(241,184,66,.10); border-color: rgba(241,184,66,.16); }
.night .ride-window.amber { color: #f2cb76; }
.ride-window.blue { color: var(--blue); border-color: rgba(70,152,220,.12); }
.hourly-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(100px, 1fr); gap: 10px; overflow-x: auto; padding: 2px 1px 7px; cursor: grab; scrollbar-width: none; -ms-overflow-style: none; }
.hourly-strip::-webkit-scrollbar { display: none; width: 0; height: 0; }
.hourly-strip.dragging { cursor: grabbing; user-select: none; }
.hour-card { position: relative; min-width: 100px; padding: 13px 10px; border-radius: 18px; text-align: center; background: rgba(105,178,232,.075); border: 1px solid rgba(89,164,222,.08); box-shadow: inset 0 3px transparent; transition: transform .2s, background .2s; }
.hour-card.green { background: rgba(58,203,167,.075); border-color: rgba(58,203,167,.14); box-shadow: inset 0 3px #55d4b5; }
.hour-card.amber { background: rgba(239,184,70,.07); border-color: rgba(239,184,70,.13); box-shadow: inset 0 3px #e8b64f; }
.hour-card.blue { box-shadow: inset 0 3px #4a9fe5; }
.hour-card.recommended { transform: translateY(-2px); }
.best-tag { position: absolute; top: 7px; right: 7px; padding: 2px 5px; border-radius: 6px; color: #12806e !important; background: rgba(89,218,185,.16); font-size: 7px !important; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.night .best-tag { color: #8bf0d6 !important; }
.hour-card time { color: var(--muted); font-size: 10px; font-weight: 700; }
.hour-card .mini-icon { width: 54px; height: 50px; margin: 4px auto; }
.hour-card strong { display: block; font-size: 18px; }.hour-card span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }

.weather-icon { position: relative; display: grid; place-items: center; }
.weather-icon-large { width: 145px; height: 145px; }
.weather-svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 12px 16px rgba(34,102,163,.14)); }
.sun-core { transform-origin: 50% 50%; animation: sun-pulse 3s ease-in-out infinite; }
.sun-rays { transform-origin: 50% 50%; animation: sun-spin 28s linear infinite; }
.moon-glow { animation: moon-pulse 4s ease-in-out infinite; }
.cloud-shape { animation: cloud-float 4s ease-in-out infinite; }
.cloud-back { animation-delay: -2s; }
.rain-drop { animation: rain-fall 1.25s ease-in infinite; }.rain-drop:nth-of-type(2) { animation-delay: -.4s; }.rain-drop:nth-of-type(3) { animation-delay: -.8s; }
.snow-dot { animation: snow-fall 2.4s ease-in-out infinite; }.snow-dot:nth-of-type(2) { animation-delay: -.8s; }.snow-dot:nth-of-type(3) { animation-delay: -1.6s; }
.fog-line { animation: fog-slide 3s ease-in-out infinite alternate; }.fog-line:nth-of-type(2) { animation-delay: -1.4s; }
.bolt { animation: bolt-flash 2.2s steps(1) infinite; }

@keyframes drift { to { transform: translate3d(30px,-25px,0) scale(1.08); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sun-spin { to { transform: rotate(360deg); } }
@keyframes sun-pulse { 50% { transform: scale(1.06); opacity: .88; } }
@keyframes moon-pulse { 50% { opacity: .78; transform: scale(.97); } }
@keyframes cloud-float { 50% { transform: translateX(4px) translateY(-2px); } }
@keyframes rain-fall { 0% { transform: translateY(-3px); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }
@keyframes snow-fall { 0% { transform: translate(0,-3px); opacity: 0; } 30% { opacity: 1; } 70% { transform: translate(4px,7px); } 100% { transform: translate(-2px,13px); opacity: 0; } }
@keyframes fog-slide { to { transform: translateX(7px); opacity: .65; } }
@keyframes bolt-flash { 0%, 14%, 100% { opacity: .2; } 5%, 10% { opacity: 1; } }
@keyframes twinkle { from { opacity: .3; transform: scale(.78); } to { opacity: 1; transform: scale(1.12); } }

@media (min-width: 1200px) {
  .hourly-strip { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-columns: unset; }
  .hour-card { min-width: 0; padding-inline: 6px; }
}

@media (max-width: 980px) {
  .dashboard { grid-template-columns: minmax(0, 1fr); }
  .hourly-card { grid-column: 1; }
  .header-actions { width: 64%; }
  .dev-location-sweep { width: 100%; justify-content: flex-end; }
}

@media (max-width: 760px) {
  .app-shell { padding: 18px; }
  .topbar { align-items: stretch; flex-direction: column; }
  .header-actions { width: 100%; }
  .hero-weather { grid-template-columns: 120px 1fr 104px; }
  .weather-icon-large { width: 120px; height: 120px; }
  .score-ring { width: 98px; height: 98px; }.score-ring::before { width: 82px; height: 82px; }
  .metric-row { grid-template-columns: 1fr 1fr; }
  .map-card.map-expanded .map-legend { display: none; }
  .map-card.map-expanded .use-map-centre span { display: none; }
  .map-card.map-expanded .use-map-centre { width: 34px; padding: 0; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
