:root {
  color-scheme: dark;
  --bg: #0d120f;
  --panel: #151c17;
  --panel-hi: #1a241d;
  --stroke: #27332b;
  --text: #f1f6f1;
  --muted: #94a49a;
  --accent: #00e887;
  --accent-dim: rgba(0, 232, 135, .11);
  --danger: #ff7878;
  --radius: 18px;
  --shadow: 0 22px 70px rgba(0,0,0,.22);
  --icon-well-bg: linear-gradient(145deg, #202d24, #172019);
  --icon-well-border: #35473a;
  --icon-well-shadow: inset 0 1px rgba(255,255,255,.045);
}

/* v18: the Dark theme is a clean, static Leet palette (orange + green), without photos or weather effects. */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #10110f;
  --panel: #191a17;
  --panel-hi: #22241f;
  --stroke: #37382f;
  --text: #f5f5ef;
  --muted: #aaa99b;
  --accent: #ff9a36;
  --accent-dim: rgba(255,154,54,.12);
  --danger: #ff7878;
  --shadow: 0 22px 70px rgba(0,0,0,.25);
  --icon-well-bg: linear-gradient(145deg,#292a23,#1d1e19);
  --icon-well-border: #424338;
  --icon-well-shadow: inset 0 1px rgba(255,255,255,.045);
}
html[data-theme="dark"] body { background: radial-gradient(ellipse at 82% -15%, rgba(255,154,54,.075), transparent 45%), var(--bg); }
html[data-theme="dark"] .live-dot { background: #00e887; box-shadow: 0 0 10px rgba(0,232,135,.28); }
html[data-theme="dark"] #leet-place-backdrop { opacity: 0 !important; background-image: none !important; }
html[data-theme="dark"] body::before, html[data-theme="dark"] body::after { display: none !important; animation: none !important; }

/* PWA action: visible only on phones, between the model label and theme selector. */
.mobile-install-button { display: none; align-items: center; justify-content: center; gap: 5px; min-height: 30px; padding: 5px 8px; border: 1px solid color-mix(in srgb, var(--accent) 52%, var(--stroke)); border-radius: 9px; background: var(--accent-dim); color: var(--text); font-size: 10px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.mobile-install-button svg { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mobile-install-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.install-modal-backdrop { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,.68); backdrop-filter: blur(8px); }
.install-modal-backdrop.hidden { display: none !important; }
.install-modal { position: relative; width: min(100%, 440px); max-height: min(88vh, 760px); overflow-y: auto; padding: 25px; border: 1px solid var(--stroke); border-radius: 18px; background: var(--panel); box-shadow: 0 26px 80px #0008; }
.install-modal-close { position: absolute; top: 12px; right: 12px; width: 31px; height: 31px; border: 1px solid var(--stroke); border-radius: 9px; background: var(--panel-hi); color: var(--muted); font-size: 20px; line-height: 1; }
.install-modal-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-weight: 800; letter-spacing: -.04em; }
.install-modal-brand img { width: 38px; height: 38px; border-radius: 10px; }
.install-modal h2 { margin: 0 38px 9px 0; font-size: 20px; }
.install-modal p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.install-url-row { display: flex; gap: 7px; margin: 14px 0; }
.install-url-row input { min-width: 0; flex: 1; padding: 10px; border: 1px solid var(--stroke); border-radius: 8px; background: var(--bg); color: var(--text); font-size: 10px; }
.install-url-row button, .install-pwa-action { border: 1px solid color-mix(in srgb, var(--accent) 52%, var(--stroke)); border-radius: 8px; padding: 9px 11px; background: var(--accent-dim); color: var(--text); font-size: 11px; font-weight: 700; white-space: nowrap; }
.install-pwa-action { width: 100%; padding: 11px; background: var(--accent); color: #17120c; border-color: var(--accent); }
.install-pwa-action.hidden { display: none !important; }
.install-instructions { margin-top: 15px; padding: 13px; border: 1px solid var(--stroke); border-radius: 11px; background: var(--panel-hi); }
.install-instructions strong { font-size: 12px; }
.install-instructions p { margin: 6px 0 0; }
.install-note { margin-bottom: 0; font-size: 10px !important; }
.direct-location-choices { margin: 0 0 20px; }

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 51% -15%, rgba(0,232,135,.09), transparent 44%), var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
#leet-place-backdrop { position: fixed; inset: 0 auto auto 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; opacity: 0; background-position: center top; background-size: cover; background-repeat: no-repeat; transition: opacity .45s ease; transform: translateZ(0); -webkit-transform: translateZ(0); backface-visibility: hidden; -webkit-backface-visibility: hidden; contain: paint; }
html[data-theme="leet"] #leet-place-backdrop.has-image { opacity: 1; background-image: linear-gradient(180deg, color-mix(in srgb, var(--bg) 71%, transparent) 0%, color-mix(in srgb, var(--bg) 83%, transparent) 100%), var(--leet-place-image); }
/* Aura night treatment: preserve luminance while gently reducing saturation and softly darkening only the top of the location photo. */
#leet-place-backdrop::after { content:""; position:absolute; inset:0; pointer-events:none; opacity:0; background:linear-gradient(180deg, rgba(0,0,0,.20) 0%, rgba(0,0,0,0) 25%); transition:opacity .8s ease; }
html[data-theme="leet"][data-night="true"] #leet-place-backdrop { filter:saturate(.5); }
html[data-theme="leet"][data-night="true"] #leet-place-backdrop.has-image::after { opacity:1; }
html[data-theme="leet"][data-night="true"] body { background:radial-gradient(ellipse at 80% -10%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 48%), var(--bg); }
html[data-theme="leet"][data-night="true"] .app-shell { filter:saturate(.5); }
html[data-theme="leet"][data-night="true"] .weather-effects-overlay { filter:saturate(.5); }
html[data-theme="dark"] #leet-place-backdrop, html[data-theme="light"] #leet-place-backdrop { opacity: 0 !important; background-image: none !important; }
.app-shell { position: relative; z-index: 1; width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.topbar { height: 78px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(148,164,154,.13); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -1px; white-space: nowrap; flex-shrink: 0; }
.brand > span:last-child { white-space: nowrap; }
.brand-dot, .footer-logo span { color: var(--accent); }
.brand-mark { width: 36px; height: 36px; flex: 0 0 36px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--text); }
.brand-mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.brand-axis { fill: none; stroke: currentColor; stroke-width: 34; stroke-linecap: round; stroke-linejoin: round; }
.brand-rays { fill: none; stroke: url(#brand-sun-ray); stroke-width: 30; stroke-linecap: round; }
.topbar-help-link { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 5px 10px; border: 1px solid color-mix(in srgb, var(--stroke) 88%, var(--muted)); border-radius: 9px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 650; letter-spacing: .01em; line-height: 1.2; white-space: nowrap; text-decoration: none; transition: color .15s, border-color .15s, background .15s; }
.topbar-help-link:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 62%, var(--stroke)); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.topbar-help-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.topbar-help-link.hidden { display: none !important; }
.search-screen { min-height: calc(100vh - 79px); display: flex; align-items: center; flex-direction: column; padding: max(74px, calc(13vh - 18px)) 0 30px; text-align: center; }
.hero-eyebrow { display: flex; align-items: center; gap: 11px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .2em; }
.eyebrow-line { width: 20px; height: 1px; background: rgba(0,232,135,.48); }
h1 { margin: 27px 0 12px; font-size: clamp(42px, 6.2vw, 68px); line-height: 1.06; letter-spacing: -.065em; font-weight: 700; }
h1 span { color: var(--accent); }
.hero-copy { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.7; }
.search-form { position: relative; display: flex; align-items: center; width: min(540px, 100%); min-height: 66px; margin-top: 32px; padding: 7px; border: 1px solid #344137; border-radius: 17px; background: linear-gradient(145deg, #171e19, #121813); box-shadow: 0 15px 45px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.025); transition: border-color .2s, box-shadow .2s; }
.search-form:focus-within { border-color: rgba(0,232,135,.65); box-shadow: 0 0 0 4px rgba(0,232,135,.07), 0 15px 45px rgba(0,0,0,.25); }
.search-icon, .compact-search > svg { width: 21px; height: 21px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; margin: 0 13px 0 14px; flex: 0 0 auto; }
.search-form input { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; color: var(--text); font-size: 15px; }
.search-form input::placeholder, .compact-search input::placeholder { color: #728078; }
.search-button { display: grid; place-items: center; flex: 0 0 50px; width: 50px; height: 50px; border: 0; border-radius: 12px; cursor: pointer; color: #082116; background: var(--accent); transition: filter .15s, transform .15s; }
.search-button:hover { filter: brightness(1.08); transform: translateX(1px); }
.search-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.search-hint { color: #65736a; font-size: 11px; margin-top: 14px; }
.hero-bottom { margin-top: auto; padding-top: 58px; color: #59655d; font-size: 10px; letter-spacing: .025em; }
.hidden { display: none !important; }
.progress-panel, .location-choices { text-align: left; width: min(540px, 100%); margin-top: 25px; padding: 18px; background: rgba(21,28,23,.94); border: 1px solid var(--stroke); border-radius: 15px; box-shadow: var(--shadow); }
.progress-heading { display: flex; align-items: center; gap: 11px; font-size: 12px; font-weight: 600; }
.spinner { display: inline-block; width: 15px; height: 15px; border: 2px solid #36463b; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.progress-track { height: 3px; border-radius: 99px; margin: 16px 0 13px; background: #26332a; overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .35s ease; }
.progress-steps { display: grid; gap: 11px; }
.progress-step { display: grid; grid-template-columns: 20px 1fr auto; gap: 9px; align-items: center; color: #69776d; font-size: 11px; }
.step-icon { display: grid; width: 20px; height: 20px; place-items: center; border: 1px solid #364238; border-radius: 7px; color: #7e8d82; font-size: 9px; }
.progress-step.active { color: var(--text); }
.progress-step.active .step-icon { color: var(--accent); border-color: rgba(0,232,135,.5); background: var(--accent-dim); }
.progress-step.done { color: #b6c5ba; }
.progress-step.done .step-icon { color: #061d11; border-color: var(--accent); background: var(--accent); }
.step-state { color: var(--accent); font-size: 10px; }
.choices-title { margin: 0 0 10px; font-size: 12px; font-weight: 700; }
.choices-list { display: grid; gap: 7px; }
.choice-button { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid #2b382f; background: #111812; text-align: left; cursor: pointer; }
.choice-button:hover { border-color: var(--accent); background: var(--accent-dim); }
.choice-name { display: block; color: var(--text); font-size: 12px; font-weight: 600; }
.choice-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.search-error { width: min(540px, 100%); padding: 12px 14px; border: 1px solid rgba(255,120,120,.25); border-radius: 10px; background: rgba(255,120,120,.06); color: #ffaaaa; text-align: left; font-size: 12px; line-height: 1.5; }
.dashboard { padding: 42px 0 25px; }
.dashboard-toolbar { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 27px; }
.place-kicker { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.place-title-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.place-heading h2 { margin: 10px 0 4px; font-size: clamp(27px, 4vw, 38px); letter-spacing: -.045em; }
.place-refresh-button { width: 34px; height: 34px; flex: 0 0 34px; display: inline-grid; place-items: center; padding: 0; margin-top: 5px; border-radius: 50%; border-color: var(--stroke); background: var(--panel); color: var(--muted); transition: color .18s ease, border-color .18s ease, background .18s ease; }
.place-refresh-button:hover { color: var(--accent); border-color: var(--accent); background: var(--panel-hover, var(--panel)); }
.place-refresh-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.place-refresh-button.is-refreshing svg { animation: place-refresh-spin .85s linear infinite; }
.place-refresh-button:disabled { opacity: .78; cursor: wait; }
@keyframes place-refresh-spin { to { transform: rotate(360deg); } }
.place-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.compact-search { width: min(320px, 44%); min-height: 44px; padding: 4px 5px; display: flex; align-items: center; border: 1px solid var(--stroke); border-radius: 12px; background: #141a15; }
.compact-search > svg { width: 17px; height: 17px; margin: 0 9px; }
.compact-search input { width: 100%; min-width: 0; border: 0; outline: none; color: var(--text); background: transparent; font-size: 11px; }
.compact-search button { flex: 0 0 auto; border: 0; border-radius: 8px; padding: 9px 12px; color: #061d11; background: var(--accent); font-weight: 700; font-size: 10px; cursor: pointer; }
.dashboard-error { margin: -10px 0 20px; padding: 12px 14px; border-radius: 10px; color: #ffaaaa; background: rgba(255,120,120,.07); border: 1px solid rgba(255,120,120,.22); }
.current-grid { display: grid; grid-template-columns: 1.13fr 1fr; gap: 14px; }
.panel { background: linear-gradient(145deg, rgba(24,33,27,.98), rgba(18,24,20,.98)); border: 1px solid var(--stroke); border-radius: var(--radius); }
.current-card { min-height: 272px; padding: 23px 25px 18px; position: relative; overflow: hidden; }
.current-card::after { content: ""; position: absolute; top: -75px; right: -45px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(0,232,135,.095), transparent 68%); pointer-events: none; }
.card-topline { display: flex; gap: 8px; justify-content: space-between; align-items: center; color: #9aaa9f; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.pill { border: 1px solid rgba(0,232,135,.25); border-radius: 7px; padding: 5px 7px; background: var(--accent-dim); color: var(--accent); font-size: 9px; letter-spacing: 0; white-space: nowrap; }
.temperature-row { display: flex; justify-content: space-between; align-items: center; padding: 22px 0 9px; gap: 14px; }
.temperature-block { flex: 1 1 auto; min-width: 0; }
.current-weather-summary { display: flex; flex: 0 0 124px; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 7px; text-align: center; position: relative; z-index: 1; }
.temperature { font-size: clamp(54px, 6vw, 75px); font-weight: 600; line-height: 1; letter-spacing: -.075em; }
.temperature > .animated-unit { font-size: .43em; color: #9cad9f; margin-left: 4px; vertical-align: top; }
.condition { max-width: 100%; margin-top: 0; color: #d1ddd4; font-size: 11px; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.weather-glyph { color: var(--accent); font-size: 54px; width: 76px; height: 76px; display: grid; place-items: center; border: 1px solid var(--icon-well-border); background: var(--icon-well-bg); box-shadow: var(--icon-well-shadow); border-radius: 24px; }
.range-note { padding: 8px 10px; display: inline-block; border: 1px solid #2a362d; border-radius: 7px; color: var(--muted); font-size: 10px; }
.current-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 18px; margin-top: 15px; border-top: 1px solid rgba(148,164,154,.12); color: #77877c; font-size: 9px; }
.metrics-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.metric-card { padding: 18px; min-height: 129px; }
.metric-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: var(--accent); background: var(--accent-dim); font-size: 18px; margin-bottom: 12px; }
.metric-label { color: var(--muted); font-size: 10px; }
.metric-value { margin-top: 7px; font-size: 24px; line-height: 1.15; font-weight: 600; letter-spacing: -.035em; }
.metric-unit { color: #637267; font-size: 9px; margin-top: 4px; }
.tabs-wrap { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 30px 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--stroke); }
.tabs { display: flex; gap: 5px; align-items: center; }
.tab { border: 1px solid color-mix(in srgb, var(--stroke) 88%, var(--muted)); background: color-mix(in srgb, var(--panel) 78%, transparent); border-radius: 10px; color: #a6b4aa; padding: 12px 16px; font-size: 12px; font-weight: 650; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.tab span { color: #87998d; font-size: 10px; font-weight: 600; margin-left: 4px; }
.tab:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 35%, var(--stroke)); }
.tab.active { border-color: color-mix(in srgb, var(--accent) 55%, var(--stroke)); background: var(--accent-dim); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent); }
.tab.active span { color: var(--accent); }
.updated-label { text-align: right; color: #758479; font-size: 10px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin: 0 0 17px; }
.section-heading h3 { margin: 0; font-size: 19px; letter-spacing: -.035em; }
.section-heading p { color: var(--muted); margin: 7px 0 0; font-size: 11px; line-height: 1.6; }
.section-mark { color: #5d6d62; font-size: 9px; letter-spacing: .13em; white-space: nowrap; }
.source-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.source-card { padding: 18px; min-width: 0; }
.source-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.source-provider { font-size: 12px; font-weight: 700; }
.source-badge { display: flex; align-items: center; gap: 5px; color: var(--accent); font-size: 9px; white-space: nowrap; }
.source-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.source-badge.failed { color: var(--danger); }
.source-model { margin-top: 5px; color: var(--muted); font-size: 10px; }
.source-temp { margin: 21px 0 8px; font-size: 33px; font-weight: 600; letter-spacing: -.05em; }
.source-temp span { color: var(--muted); font-size: .47em; vertical-align: top; margin-left: 3px; line-height: 1.2; }
.source-condition { min-height: 28px; font-size: 11px; color: #c5d2c8; }
.source-meta { display: flex; justify-content: space-between; gap: 6px; padding-top: 13px; margin-top: 13px; border-top: 1px solid rgba(148,164,154,.12); color: var(--muted); font-size: 9px; }
.source-error { margin-top: 10px; color: #ffaaaa; font-size: 10px; line-height: 1.5; }
.method-note { display: flex; gap: 12px; margin-top: 16px; padding: 15px; border: 1px solid rgba(0,232,135,.15); border-radius: 13px; background: rgba(0,232,135,.035); }
.method-icon { display: grid; place-items: center; flex: 0 0 22px; height: 22px; border: 1px solid rgba(0,232,135,.35); border-radius: 50%; color: var(--accent); font-size: 11px; font-weight: 700; }
.method-note strong { font-size: 11px; }
.method-note p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.hourly-scroll { overflow-x: auto; padding-bottom: 8px; scrollbar-color: #3b4a3f #172019; }
.hourly-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(98px,1fr); gap: 9px; min-width: max-content; }
.hour-card { width: 105px; border: 1px solid var(--stroke); border-radius: 14px; padding: 14px 11px; background: linear-gradient(145deg, #18211b, #131a15); text-align: center; }
.hour-card:first-child { border-color: rgba(0,232,135,.35); background: linear-gradient(145deg, rgba(0,232,135,.09), #131a15); }
.hour-time { color: var(--muted); font-size: 10px; }
.hour-glyph { font-size: 22px; margin: 13px 0; }
.hour-temp { font-size: 20px; font-weight: 600; letter-spacing: -.04em; }
.hour-rain { margin-top: 9px; color: #8bbcff; font-size: 10px; }
.hour-wind { margin-top: 5px; color: #728176; font-size: 9px; }
.daily-list { display: grid; gap: 8px; }
.day-row { display: grid; grid-template-columns: 1.15fr .6fr 1.6fr .72fr .55fr auto; align-items: center; gap: 15px; padding: 14px 17px; background: linear-gradient(100deg, #171f19, #131914); border: 1px solid var(--stroke); border-radius: 13px; }
.day-name { font-size: 11px; font-weight: 600; }
.day-date { margin-top: 4px; color: var(--muted); font-size: 9px; }
.day-weather { display: flex; align-items: center; gap: 8px; color: #c9d5cc; font-size: 10px; }
.day-glyph { font-size: 20px; }
.day-range { display: flex; align-items: center; gap: 9px; }
.day-min, .day-max { width: 36px; color: var(--muted); font-size: 10px; }
.day-max { text-align: right; color: var(--text); }
.range-track { height: 4px; flex: 1; min-width: 35px; border-radius: 99px; background: #2b382f; position: relative; overflow: hidden; }
.range-bar { display: block; height: 100%; min-width: 2px; border-radius: 99px; background: linear-gradient(90deg,#7fc1fe,var(--accent),#f3c86c); position: absolute; top: 0; }
.day-rain { color: #95c5ff; font-size: 10px; text-align: right; }
.day-wind { color: var(--muted); font-size: 10px; text-align: right; }
.section-footnote { color: #718075; font-size: 10px; line-height: 1.65; margin: 14px 0 0; }
.dashboard-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-top: 24px; margin-top: 32px; border-top: 1px solid var(--stroke); color: #718075; font-size: 9px; }
.dashboard-footer > div:first-child { display: flex; align-items: center; gap: 12px; }
.footer-logo { color: var(--text); font-size: 14px; font-weight: 800; letter-spacing: -.7px; }
.attribution { text-align: right; line-height: 1.7; }
.attribution a { text-decoration: none; color: #9caea1; }
.attribution a:hover { color: var(--accent); }
.place-image-credit { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px 12px; margin: 10px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; opacity: .82; }
.place-image-credit a { color: var(--muted); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--muted) 48%, transparent); text-underline-offset: 2px; }
.place-image-credit a:hover { color: var(--accent); }
.place-image-credit-label { color: var(--accent); font-weight: 700; letter-spacing: .035em; }
html:not([data-theme="leet"]) .place-image-credit { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 800px) {
  .app-shell { width: min(100% - 30px, 640px); }
  .current-grid { grid-template-columns: 1fr; }
  .current-card { min-height: 245px; }
  .metrics-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
  .metric-card { padding: 13px; min-height: 120px; }
  .metric-value { font-size: 20px; }
  .metric-icon { margin-bottom: 9px; }
  .source-grid { grid-template-columns: 1fr; }
  .source-card { padding: 15px 17px; }
  .source-temp { margin: 14px 0 5px; }
  .source-condition { min-height: 0; }
  .source-meta { margin-top: 9px; padding-top: 10px; }
}
@media (max-width: 560px) {
  #leet-place-backdrop { top: 0; left: 0; width: 100vw; height: 100lvh; min-height: 0; background-position: center top; background-size: cover; transition: none; transform: translateZ(0); -webkit-transform: translateZ(0); }
  .app-shell { width: calc(100% - 28px); }
  .topbar { height: 64px; }
  .topbar-note { font-size: 9px; }
  .search-screen { min-height: calc(100svh - 65px); padding-top: max(54px, calc(12vh - 18px)); }
  h1 { font-size: clamp(39px, 11vw, 55px); margin-top: 22px; }
  .hero-copy { font-size: 12px; max-width: 290px; }
  .search-form { min-height: 59px; margin-top: 27px; }
  .search-button { width: 45px; height: 45px; flex-basis: 45px; }
  .hero-bottom { max-width: 270px; line-height: 1.7; padding-top: 40px; }
  .dashboard { padding-top: 26px; }
  .dashboard-toolbar { align-items: stretch; flex-direction: column; gap: 16px; }
  .compact-search { width: 100%; min-height: 43px; }
  .metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-card { min-height: 124px; padding: 15px; }
  .current-card { padding: 19px; }
  .current-footer { align-items: start; flex-direction: column; gap: 5px; }
  .tabs-wrap { align-items: start; flex-direction: column; gap: 10px; margin-top: 23px; }
  .updated-label { text-align: left; }
  .tabs { width: 100%; }
  .tab { padding: 11px 10px; }
  .section-heading h3 { font-size: 17px; }
  .section-heading p { max-width: 290px; }
  .section-mark { display: none; }
  .day-row { grid-template-columns: 1fr auto; gap: 11px 14px; padding: 13px; }
  .day-name-block { grid-column: 1; grid-row: 1; }
  .day-weather { grid-column: 1; grid-row: 2; }
  .day-range { grid-column: 2; grid-row: 1; width: 145px; }
  .day-rain { grid-column: 2; grid-row: 2; text-align: right; }
  .day-wind { display: none; }
  .dashboard-footer { align-items: start; flex-direction: column; }
  .attribution { text-align: left; }
  .place-image-credit { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }


/* Additional small-screen refinements */
@media (max-width: 560px) {
  body { font-size: 13px; }
  .app-shell { width: calc(100% - 24px); }
  .topbar { gap: 10px; }
  .brand { gap: 7px; font-size: 18px; white-space: nowrap; }
  .topbar-help-link { max-width: 36%; padding: 5px 7px; font-size: 9px; }
  .search-screen { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
  .search-form input, .compact-search input { font-size: 16px; }
  .progress-panel, .location-choices { padding: 15px; }
  .progress-step { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 7px; font-size: 10px; }
  .dashboard-toolbar, .place-heading { min-width: 0; }
  .place-heading h2 { overflow-wrap: anywhere; }
  #place-meta { overflow-wrap: anywhere; }
  .current-card { min-width: 0; padding: 17px; }
  .card-topline { align-items: flex-start; font-size: 8px; letter-spacing: .09em; }
  .pill { font-size: 9px; }
  .temperature { font-size: clamp(48px, 16vw, 66px); }
  .weather-glyph { width: 64px; height: 64px; border-radius: 20px; font-size: 44px; flex: 0 0 auto; }
  .current-weather-summary { flex-basis: 104px; gap: 6px; }
  .current-weather-summary .condition { font-size: 10px; }
  .metric-card { min-width: 0; }
  .metric-label, .metric-unit { overflow-wrap: anywhere; }
  .tabs { gap: 3px; }
  .tab { flex: 1 1 auto; min-width: 0; padding: 11px 7px; font-size: 11px; border-radius: 9px; }
  .tab span { font-size: 9px; }
  .updated-label { font-size: 10px; }
  .section-heading { align-items: flex-start; }
  .section-heading p { max-width: none; }
  .hourly-scroll { margin-right: -2px; }
  .day-row { grid-template-columns: minmax(0, 1fr) minmax(112px, auto); gap: 10px 9px; padding: 12px 10px; }
  .day-range { width: auto; gap: 5px; }
  .day-min, .day-max { width: 29px; font-size: 10px; }
  .day-weather { min-width: 0; gap: 5px; font-size: 10px; }
  .day-weather span:last-child { overflow-wrap: anywhere; }
  .day-rain { font-size: 10px; }
  .dashboard-footer { overflow-wrap: anywhere; }
}
@media (max-width: 360px) {
  .app-shell { width: calc(100% - 20px); }
  .topbar-help-link { max-width: 34%; padding-inline: 5px; font-size: 8px; }
  .hero-eyebrow { gap: 6px; font-size: 8px; letter-spacing: .14em; }
  .eyebrow-line { width: 12px; }
  h1 { font-size: 39px; }
  .day-row { grid-template-columns: minmax(0, 1fr) 128px; }
  .day-min, .day-max { width: 25px; }
}

/* --------------------------------------------------------------------------
   v2: theme controls, compact vertical hourly rows, and custom SVG weather art
   -------------------------------------------------------------------------- */
.topbar-tools { display: flex; align-items: center; gap: 18px; }
.theme-switcher { display: inline-flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid var(--stroke); border-radius: 12px; background: var(--panel); }
.theme-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 30px; padding: 6px 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 650; cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.theme-button:hover { color: var(--text); }
.theme-button.active { color: var(--accent); background: var(--accent-dim); border-color: color-mix(in srgb, var(--accent) 24%, transparent); }
.theme-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Weather conditions use hand-built, licence-free vectors instead of OS emoji. */
.weather-icon { display: block; overflow: visible; width: 42px; height: 45px; flex: 0 0 auto; }
.current-weather-icon { width: 70px; height: 74px; }
.hourly-weather-icon { width: 38px; height: 41px; }
.daily-weather-icon { width: 37px; height: 39px; }
.source-weather-icon { width: 27px; height: 29px; }
.wi-sun-rays { stroke: #e9a91f; stroke-width: 3.2; stroke-linecap: round; }
.wi-sun-core { fill: #ffc74f; stroke: #d98c13; stroke-width: 1.5; }
.wi-moon-core { fill: #ffe08a; stroke: #b18025; stroke-width: 1.5; stroke-linejoin: round; }
.wi-cloud { fill: #eaf3fb; stroke: #809db5; stroke-width: 1.7; stroke-linejoin: round; }
.wi-cloud-small { stroke-width: 1.5; }
.wi-cloud-back { fill: #cbd8e4; stroke: #849bb0; stroke-width: 1.5; stroke-linejoin: round; }
.wi-cloud-back-right { fill: #bacbd9; }
.wi-snowflake { fill: none; stroke: #8de2ff; stroke-width: 2; stroke-linecap: round; }
.wi-snow-grains, .wi-hail { fill: #d5f4ff; stroke: #53b8ef; stroke-width: 1.1; }
.wi-rime-specks { fill: none; stroke: #b7f1ff; stroke-width: 1.8; stroke-linecap: round; }
.wi-variable-wind { fill: none; stroke: #8fa7bb; stroke-width: 2; stroke-linecap: round; }
.wi-lightning-extra { opacity: .9; }
.wi-rain-drops { stroke: #42adf8; stroke-width: 3.2; stroke-linecap: round; }
.wi-drizzle-drops { stroke: #76d5ff; stroke-width: 2.1; stroke-linecap: round; }
.wi-fog-lines { fill: none; stroke: #9caec3; stroke-width: 2.6; stroke-linecap: round; }
.wi-snowflakes { fill: none; stroke: #8de2ff; stroke-width: 2.1; stroke-linecap: round; }
.wi-lightning { fill: #ffd65a; stroke: #ffb629; stroke-width: 1; stroke-linejoin: round; }
.wi-ice-star { fill: none; stroke: #9beaff; stroke-width: 2; stroke-linecap: round; }
.source-condition { display: flex; align-items: center; gap: 8px; }
.source-condition > span:last-child { min-width: 0; }

/* Icon wells keep artwork optically centered and legible against each theme. */
.day-glyph, .hour-glyph { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 42px; width: 42px; height: 42px; margin: 0; border: 1px solid var(--icon-well-border); border-radius: 11px; background: var(--icon-well-bg); box-shadow: var(--icon-well-shadow); }
.source-glyph { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; margin: 0; border: 1px solid var(--icon-well-border); border-radius: 10px; background: var(--icon-well-bg); box-shadow: var(--icon-well-shadow); }

/* Hourly forecast is now a vertical, full-width list like the 7-day forecast. */
.hourly-list { display: grid; grid-auto-flow: row; grid-auto-columns: auto; gap: 8px; min-width: 0; }
.hour-row { display: grid; grid-template-columns: 1fr 1.25fr 1fr .85fr .7fr auto; align-items: center; gap: 15px; min-width: 0; padding: 12px 17px; border: 1px solid var(--stroke); border-radius: 13px; background: linear-gradient(100deg, var(--panel-hi), var(--panel)); }
.hour-row-current { border-color: color-mix(in srgb, var(--accent) 42%, var(--stroke)); background: linear-gradient(100deg, var(--accent-dim), var(--panel)); }
.hour-time { color: var(--text); font-size: 14px; font-weight: 700; letter-spacing: -.02em; }
.hour-date { margin-top: 4px; color: var(--muted); font-size: 9px; }
.hour-weather { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hour-condition { color: var(--text); font-size: 10px; line-height: 1.35; }
.hour-temperature { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.hour-temp { color: var(--text); font-size: 26px; font-weight: 700; line-height: 1.05; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.hour-temp-label, .hour-rain small, .hour-wind small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.hour-rain { display: flex; align-items: center; gap: 6px; margin-top: 0; color: #61b9ff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.hour-rain small { display: block; }
.hour-rain { flex-wrap: wrap; }
.hour-rain small { flex-basis: 100%; margin-left: 21px; margin-top: -2px; font-weight: 400; }
.rain-icon { display: inline-flex; align-items: center; color: #55baff; }
.drop-svg { width: 13px; height: 16px; display: block; }
.hour-wind { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin-top: 0; color: var(--muted); font-size: 11px; white-space: nowrap; }

.day-min, .day-max { width: 40px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.day-rain { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; }
.day-rain .drop-svg { width: 11px; height: 14px; }

/* Light palette. Explicit overrides neutralize legacy dark-only surfaces. */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f7fb;
  --panel: #ffffff;
  --panel-hi: #f7fbfe;
  --stroke: #d9e5ee;
  --text: #18231d;
  --muted: #5f7180;
  --accent: #287fbd;
  --accent-dim: rgba(40, 127, 189, .10);
  --danger: #c43d48;
  --shadow: 0 22px 55px rgba(29, 54, 75, .1);
  --icon-well-bg: linear-gradient(145deg, #f4f7fa, #e4eaf0);
  --icon-well-border: #b5c2ce;
  --icon-well-shadow: inset 0 1px #fff, 0 1px 3px rgba(38,83,119,.08);
}
html[data-theme="light"] body { background: radial-gradient(ellipse at 51% -15%, rgba(40,127,189,.09), transparent 46%), var(--bg); }
html[data-theme="light"] .topbar { border-bottom-color: var(--stroke); }
html[data-theme="light"] .topbar-note, html[data-theme="light"] .hero-copy,
html[data-theme="light"] .place-heading p, html[data-theme="light"] .metric-label,
html[data-theme="light"] .metric-unit, html[data-theme="light"] .updated-label,
html[data-theme="light"] .section-heading p, html[data-theme="light"] .method-note p,
html[data-theme="light"] .section-footnote, html[data-theme="light"] .dashboard-footer,
html[data-theme="light"] .source-model, html[data-theme="light"] .source-meta,
html[data-theme="light"] .day-date, html[data-theme="light"] .hour-date,
html[data-theme="light"] .hour-temp-label, html[data-theme="light"] .hour-rain small,
html[data-theme="light"] .hour-wind { color: var(--muted); }
html[data-theme="light"] .search-hint, html[data-theme="light"] .hero-bottom { color: #627583; }
html[data-theme="light"] .search-form, html[data-theme="light"] .compact-search,
html[data-theme="light"] .progress-panel, html[data-theme="light"] .location-choices,
html[data-theme="light"] .choice-button { background: #fff; border-color: var(--stroke); color: var(--text); }
html[data-theme="light"] .search-form { box-shadow: 0 15px 45px rgba(38,83,119,.08); }
html[data-theme="light"] .search-form:focus-within { border-color: rgba(40,127,189,.65); box-shadow: 0 0 0 4px rgba(40,127,189,.07), 0 15px 45px rgba(38,83,119,.08); }
html[data-theme="light"] .eyebrow-line { background: rgba(40,127,189,.48); }
html[data-theme="light"] .pill { border-color: rgba(40,127,189,.25); }
html[data-theme="light"] .hour-card:first-child { border-color: rgba(40,127,189,.35); background: linear-gradient(145deg, rgba(40,127,189,.09), #fff); }
html[data-theme="light"] .contact-captcha-block { background: rgba(40,127,189,.025); }
html[data-theme="light"] .choice-button:hover { background: var(--accent-dim); }
html[data-theme="light"] .progress-track { background: #e0edf5; }
html[data-theme="light"] .step-icon { border-color: #c9dce9; color: var(--muted); }
html[data-theme="light"] .progress-step, html[data-theme="light"] .progress-step.done { color: #627583; }
html[data-theme="light"] .panel { background: linear-gradient(145deg, #fff, #f7fbfe); border-color: var(--stroke); }
html[data-theme="light"] .weather-glyph,
html[data-theme="light"] .day-glyph, html[data-theme="light"] .hour-glyph,
html[data-theme="light"] .source-glyph { background: var(--icon-well-bg); border-color: var(--icon-well-border); box-shadow: var(--icon-well-shadow); }
html[data-theme="light"] .wi-sun-rays { stroke: #a96500; stroke-width: 3.4; }
html[data-theme="light"] .wi-sun-core { fill: #ffc53d; stroke: #9d5d00; stroke-width: 1.8; }
html[data-theme="light"] .wi-moon-core { fill: #ffd45b; stroke: #80520b; stroke-width: 1.8; }
html[data-theme="light"] .wi-cloud { fill: #f7fbff; stroke: #526d82; stroke-width: 2; }
html[data-theme="light"] .wi-cloud-back { fill: #d4e0ea; stroke: #526d82; stroke-width: 2; }
html[data-theme="light"] .wi-cloud-back-right { fill: #c6d6e3; }
html[data-theme="light"] .wi-snowflake { stroke: #087baa; stroke-width: 2.5; }
html[data-theme="light"] .wi-snow-grains, html[data-theme="light"] .wi-hail { fill: #bdeeff; stroke: #006da9; stroke-width: 1.4; }
html[data-theme="light"] .wi-rime-specks { stroke: #087baa; stroke-width: 2.7; }
html[data-theme="light"] .wi-variable-wind { stroke: #526d82; stroke-width: 2.5; }
html[data-theme="light"] .wi-rain-drops { stroke: #006db8; stroke-width: 3.6; }
html[data-theme="light"] .wi-drizzle-drops { stroke: #0066a9; stroke-width: 2.5; }
html[data-theme="light"] .wi-fog-lines { stroke: #647d92; stroke-width: 2.9; }
html[data-theme="light"] .wi-snowflakes { stroke: #087baa; stroke-width: 2.5; }
html[data-theme="light"] .wi-lightning { fill: #ffcf36; stroke: #905000; stroke-width: 1.6; }
html[data-theme="light"] .wi-ice-star { stroke: #087baa; stroke-width: 2.4; }
html[data-theme="light"] .current-card::after { background: radial-gradient(circle, rgba(40,127,189,.08), transparent 68%); }
html[data-theme="light"] .card-topline, html[data-theme="light"] .condition,
html[data-theme="light"] .source-condition, html[data-theme="light"] .day-weather,
html[data-theme="light"] .hour-condition { color: var(--text); }
html[data-theme="light"] .temperature > .animated-unit { color: #7b8d9b; }
html[data-theme="light"] .range-note { border-color: var(--stroke); color: var(--muted); }
html[data-theme="light"] .current-footer, html[data-theme="light"] .source-meta,
html[data-theme="light"] .dashboard-footer { border-color: var(--stroke); }
html[data-theme="light"] .tab { color: #5f7180; }
html[data-theme="light"] .tab.active { border-color: color-mix(in srgb, var(--accent) 24%, transparent); background: var(--accent-dim); color: var(--accent); }
html[data-theme="light"] .tab.active span { color: var(--accent); }
html[data-theme="light"] .section-mark { color: #627583; }
html[data-theme="light"] .source-condition, html[data-theme="light"] .source-provider { color: var(--text); }
html[data-theme="light"] .method-note { border-color: color-mix(in srgb, var(--accent) 20%, transparent); background: var(--accent-dim); }
html[data-theme="light"] .day-row, html[data-theme="light"] .hour-row { background: linear-gradient(100deg, #fff, #f7fbfe); border-color: var(--stroke); }
html[data-theme="light"] .hour-row-current { background: linear-gradient(100deg, var(--accent-dim), #fff); border-color: color-mix(in srgb, var(--accent) 38%, var(--stroke)); }
html[data-theme="light"] .range-track { background: #dfebf3; }
html[data-theme="light"] .day-max { color: var(--text); }
html[data-theme="light"] .attribution a { color: #526f85; }
html[data-theme="light"] .temperature-range, html[data-theme="light"] .pill { color: var(--accent); }

/* Leet theme: palette changes with the dominant current weather, with gentle ambient animation. */
html[data-theme="leet"] { color-scheme: dark; --bg: #0b1711; --panel: #142019; --panel-hi: #1a2a20; --stroke: #2b3e31; --text: #f4f8f3; --muted: #9bb0a1; --accent: #00e887; --accent-dim: rgba(0,232,135,.12); }
html[data-theme="leet"][data-weather="clear"] { --bg: #191408; --panel: #211b10; --panel-hi: #2b2110; --stroke: #4a3920; --accent: #ffc35b; --accent-dim: rgba(255,195,91,.13); }
html[data-theme="leet"][data-weather="cloud"] { --bg: #101820; --panel: #18232d; --panel-hi: #202d38; --stroke: #344858; --accent: #a9cbe5; --accent-dim: rgba(169,203,229,.12); }
html[data-theme="leet"][data-weather="fog"] { --bg: #151a20; --panel: #20272e; --panel-hi: #29323a; --stroke: #424f59; --accent: #bdcbd6; --accent-dim: rgba(189,203,214,.12); }
html[data-theme="leet"][data-weather="drizzle"], html[data-theme="leet"][data-weather="rain"], html[data-theme="leet"][data-weather="showers"] { --bg: #071522; --panel: #0e2030; --panel-hi: #142b3d; --stroke: #25445c; --accent: #5abaff; --accent-dim: rgba(90,186,255,.13); }
html[data-theme="leet"][data-weather="freezing"], html[data-theme="leet"][data-weather="snow"] { --bg: #0b1b26; --panel: #122936; --panel-hi: #193746; --stroke: #2d5264; --accent: #90e3ff; --accent-dim: rgba(144,227,255,.14); }
html[data-theme="leet"][data-weather="storm"] { --bg: #120f21; --panel: #1d1930; --panel-hi: #282140; --stroke: #43385f; --accent: #b7a2ff; --accent-dim: rgba(183,162,255,.14); }
html[data-theme="leet"][data-weather="unknown"] { --bg: #0d120f; --panel: #151c17; --panel-hi: #1a241d; --stroke: #27332b; --accent: #00e887; --accent-dim: rgba(0,232,135,.11); }
html[data-theme="leet"] {
  --icon-well-bg: linear-gradient(145deg, color-mix(in srgb, var(--accent) 17%, var(--panel-hi)), color-mix(in srgb, var(--accent) 7%, var(--panel)));
  --icon-well-border: color-mix(in srgb, var(--accent) 37%, var(--stroke));
  --icon-well-shadow: inset 0 1px rgba(255,255,255,.055), 0 1px 5px color-mix(in srgb, var(--accent) 10%, transparent);
}
html[data-theme="leet"] body { background: radial-gradient(ellipse at 80% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 48%), var(--bg); transition: background-color .6s ease; }
html[data-theme="leet"] .panel { background: linear-gradient(145deg, color-mix(in srgb, var(--panel-hi) 96%, transparent), color-mix(in srgb, var(--panel) 98%, transparent)); }
html[data-theme="leet"] .day-row, html[data-theme="leet"] .hour-row { background: linear-gradient(100deg, var(--panel-hi), var(--panel)); }
html[data-theme="leet"] .hour-row-current { border-color: color-mix(in srgb, var(--accent) 44%, var(--stroke)); background: linear-gradient(100deg, var(--accent-dim), var(--panel)); }
html[data-theme="leet"] .current-card::after { background: radial-gradient(circle, color-mix(in srgb, var(--accent) 15%, transparent), transparent 68%); }
/* Weather effects: native canvas particles with two-layer cross-fades; no jQuery or external libraries. */
html[data-theme="leet"] body::before, html[data-theme="leet"] body::after { content: none; }
.weather-effects-overlay { display: none; position: fixed; inset: -1vh -1vw; z-index: 1; pointer-events: none; overflow: hidden; }
html[data-theme="leet"] .weather-effects-overlay { display: block; }
.weather-effect-layer { position: absolute; inset: 0; opacity: 0; pointer-events: none; overflow: hidden; background-repeat: no-repeat; background-position: center; transition: opacity 1.15s cubic-bezier(.2,.65,.25,1), filter 1.15s ease; will-change: opacity, filter; transform: translate3d(0,0,0); }
.weather-effect-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; z-index:3; }
.weather-effect-canvas.weather-effect-lightning { z-index:1; }
.weather-effect-canvas.weather-effect-rain { z-index:3; }
.fogwrapper { z-index:2; }
.frozen-weather-overlay { position:absolute; inset:0; z-index:20; opacity:0; pointer-events:none; overflow:hidden; transition:opacity .65s ease; }
.frozen-weather-overlay::before { content:""; position:absolute; inset:0; background-image:url("img/frozen.png"); background-repeat:no-repeat; background-position:center center; background-size:cover; filter:blur(2px); }
@media (max-width:700px) {
  .frozen-weather-overlay::before { inset:auto; width:100vh; height:100vw; left:50%; top:50%; transform:translate(-50%,-50%) rotate(90deg); background-size:cover; }
}
@media (prefers-reduced-motion:reduce) { .frozen-weather-overlay { transition:none; } #leet-place-backdrop::after { transition:none; } }

.weather-effect-rain { background-image: linear-gradient(180deg, rgba(13,33,51,.05), rgba(4,16,28,.12)); }
.weather-effect-snow { background-image: linear-gradient(180deg, rgba(21,43,56,.02), rgba(11,28,39,.08)); }
.weather-effect-fog { background-image: linear-gradient(115deg, rgba(118,139,153,.07), rgba(211,222,231,.08)); background-size: cover; background-position: center; }
.weather-effect-clear { background-image: radial-gradient(ellipse at 85% 3%, rgba(255,194,84,.19), transparent 35%); }
.weather-effect-storm { background-image: radial-gradient(ellipse at 75% 0%, rgba(146,112,255,.18), transparent 44%), linear-gradient(180deg, rgba(18,15,33,.12), rgba(6,12,25,.12)); }
html[data-theme="leet"] .app-shell { position: relative; z-index: 2; }

@media (max-width: 800px) {
  .topbar-tools { gap: 10px; }
  .hour-row { grid-template-columns: .9fr 1.25fr .95fr .85fr .7fr auto; gap: 9px; }
}
@media (max-width: 560px) {
  .topbar { gap: 8px; }
  .topbar-tools { gap: 0; }
  .topbar-help-link { display: inline-flex; }
  .mobile-install-button { display: inline-flex; margin-left: auto; }
  .theme-switcher { gap: 1px; padding: 3px; border-radius: 10px; }
  .theme-button { gap: 3px; min-height: 28px; padding: 5px 6px; font-size: 9px; }
  .weather-icon.current-weather-icon { width: 60px; height: 64px; }
  .weather-icon.hourly-weather-icon { width: 34px; height: 36px; }
  .weather-icon.daily-weather-icon { width: 33px; height: 35px; }
  .day-glyph, .hour-glyph { flex-basis: 36px; width: 36px; height: 36px; border-radius: 10px; }
  .source-glyph { flex-basis: 32px; width: 32px; height: 32px; border-radius: 9px; }
  .hour-row { grid-template-columns: minmax(0,1fr) minmax(112px,auto); gap: 10px 9px; padding: 12px 10px; }
  .hour-time-block { grid-column: 1; grid-row: 1; }
  .hour-weather { grid-column: 1; grid-row: 2; gap: 5px; }
  .hour-condition { font-size: 10px; }
  .hour-temperature { grid-column: 2; grid-row: 1; align-items: flex-end; text-align: right; }
  .hour-temp { font-size: 28px; }
  .hour-temp-label { display: none; }
  .hour-rain { grid-column: 2; grid-row: 2; justify-content: flex-end; text-align: right; font-size: 11px; }
  .hour-rain small { display: none; }
  .hour-wind { display: none; }
  .day-min, .day-max { width: 32px; font-size: 13px; }
  .day-weather { gap: 5px; }
  .day-weather .weather-icon { width: 31px; height: 34px; }
}
@media (max-width: 360px) {
  .mobile-install-button { width: 30px; min-width: 30px; padding: 5px; }
  .mobile-install-button span { display: none; }
  .topbar-tools { gap: 5px; }
  .theme-button { padding: 5px 4px; gap: 2px; font-size: 8px; }
  .brand { font-size: 17px; }
  .hour-row { grid-template-columns: minmax(0,1fr) 108px; }
  .hour-temp { font-size: 26px; }
  .hour-weather .weather-icon { width: 29px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme="leet"] body::before, html[data-theme="leet"] body::after { animation: none !important; }
  #leet-place-backdrop { transition: none !important; }
}


/* 2026 feature additions: live geocoding suggestions, model detail mode, rejected-photo control. */
.search-screen { position: relative; }
.autocomplete-list { position: relative; z-index: 12; width: min(540px, 100%); margin: -18px 0 0; padding: 6px; border: 1px solid var(--stroke); border-radius: 0 0 14px 14px; background: rgba(15, 22, 17, .98); box-shadow: 0 18px 34px rgba(0,0,0,.28); text-align: left; }
.autocomplete-option { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 12px; border: 0; border-radius: 8px; color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.autocomplete-option:hover, .autocomplete-option:focus-visible { outline: 0; background: var(--accent-dim); }
.autocomplete-option strong { font-size: 12px; }
.autocomplete-option span { color: var(--muted); font-size: 10px; }
.dashboard-toolbar { position: relative; }
.autocomplete-list-compact { position: absolute; z-index: 15; top: calc(100% - 2px); right: 0; width: min(320px, 100%); margin: 0; }
.source-card.model-source-card { cursor: pointer; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.source-card.model-source-card:hover, .source-card.model-source-card:focus-visible { outline: none; border-color: color-mix(in srgb, var(--accent) 64%, var(--stroke)); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.14); }
.source-card.model-source-selected { border-color: color-mix(in srgb, var(--accent) 48%, var(--stroke)); cursor: default; }
.model-detail-toolbar { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin: -8px 0 22px; border: 1px solid var(--stroke); border-radius: 13px; background: var(--panel); }
.model-detail-toolbar > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.model-detail-toolbar strong { font-size: 13px; color: var(--text); }
.model-detail-toolbar span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.back-model-button { flex: 0 0 auto; border: 1px solid var(--stroke); border-radius: 9px; background: var(--panel-hi); color: var(--text); padding: 9px 12px; font-size: 11px; font-weight: 700; cursor: pointer; }
.back-model-button:hover { border-color: var(--accent); color: var(--accent); }
.single-source-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
.bad-photo-button { flex: 0 0 auto; border: 1px solid var(--stroke); border-radius: 5px; padding: 3px 6px; color: var(--muted); background: rgba(10,15,12,.6); font: inherit; font-size: 9px; cursor: pointer; opacity: .9; }
.bad-photo-button:hover { color: var(--accent); border-color: var(--accent); }
.bad-photo-button:disabled { cursor: wait; opacity: .6; }
.json-output-screen { margin: 0; min-height: 100vh; padding: 20px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: #00e887; background: #08110b; font: 12px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
html[data-theme="light"] .autocomplete-list { background: rgba(255,255,255,.99); }
html[data-theme="light"] .bad-photo-button { background: rgba(255,255,255,.88); }
@media (max-width: 560px) {
  .autocomplete-list { margin-top: -19px; }
  .autocomplete-list-compact { width: 100%; }
  .model-detail-toolbar { align-items: flex-start; flex-wrap: wrap; margin-top: -7px; }
  .model-detail-toolbar > div { flex: 1 1 100%; order: 2; }
  .back-model-button { order: 1; }
  .source-card.model-source-card:hover { transform: none; }
}


/* Responsive temperature units, clearer forecast tabs and a stable mobile photo layer. */
.temperature-unit-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--stroke); border-radius: 10px; background: var(--panel); flex: 0 0 auto; }
.temperature-unit-switch button { min-width: 37px; border: 1px solid transparent; border-radius: 7px; padding: 6px 8px; color: var(--muted); background: transparent; font-size: 11px; line-height: 1; font-weight: 700; cursor: pointer; }
.temperature-unit-switch button:hover { color: var(--text); }
.temperature-unit-switch button.active { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 38%, var(--stroke)); background: var(--accent-dim); }
html[data-theme="light"] .temperature-unit-switch { background: #fff; }
html[data-theme="light"] .temperature-unit-switch button.active { color: #287fbd; }
.temperature-row .temperature > .animated-unit { vertical-align: top; }
.source-temp span { vertical-align: top; }
@media (max-width: 800px) {
  .tabs-wrap { flex-wrap: wrap; row-gap: 10px; }
  .temperature-unit-switch { margin-left: auto; }
  .updated-label { flex-basis: 100%; }
}
@media (max-width: 560px) {
  /* Keep the background layer independent from the changing mobile browser chrome. */
  #leet-place-backdrop { position: fixed; inset: 0 auto auto 0; height: 100lvh; width: 100vw; background-position: center top; background-attachment: scroll; contain: paint; }
  .tabs-wrap { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; }
  .tabs { grid-column: 1 / -1; }
  .temperature-unit-switch { grid-column: 2; grid-row: 2; margin: 0; }
  .updated-label { grid-column: 1; grid-row: 2; flex-basis: auto; text-align: left; }
}


/* v3 polish: keyboard-accessible city suggestions and finer temperature typography. */
.autocomplete-option.active,
.autocomplete-option:hover,
.autocomplete-option:focus-visible {
  outline: none;
  background: var(--accent-dim);
}
.autocomplete-option.active {
  box-shadow: inset 3px 0 0 var(--accent);
}
.hour-temp { display: inline-flex; align-items: flex-start; gap: 0; }
.hour-temp-number { display: inline-block; }
.hour-temp .hour-temp-unit {
  display: inline-block;
  margin: 0 0 0 1px;
  position: relative;
  top: -.08em;
  color: color-mix(in srgb, var(--muted) 82%, transparent);
  font-size: .43em;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.015em;
  vertical-align: top;
}
.metric-value .metric-temp-unit {
  display: inline-block;
  margin: 0 0 0 2px;
  position: relative;
  top: -.02em;
  color: color-mix(in srgb, var(--muted) 82%, transparent);
  font-size: .47em;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.01em;
  vertical-align: top;
}
.day-min, .day-max { font-size: 16px; }
@media (max-width: 560px) {
  .day-min, .day-max { font-size: 14px; }
}
@media (max-width: 360px) {
  .day-min, .day-max { font-size: 13px; }
}

/* Model and aggregator shelves remain visually distinct without changing the existing card design. */
.source-section + .source-section{margin-top:24px}
.source-section .source-grid:empty{display:none}
.aggregator-section .section-mark{min-width:max-content}


/* v7 cosmetic polish: compact model/aggregator cards and unobtrusive per-period source counts. */
.source-card { padding: 12px 15px; }
.source-temp { margin: 11px 0 6px; font-size: 30px; }
.source-condition { min-height: 24px; }
.source-meta { padding-top: 8px; margin-top: 8px; }
.forecast-source-count {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-top: 5px;
  padding: 2px 6px;
  border: 1px solid color-mix(in srgb, var(--muted) 24%, transparent);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--panel-hi) 75%, transparent);
  font-size: 8px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .01em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) {
  .source-card { padding: 11px 13px; }
  .source-temp { margin: 10px 0 5px; font-size: 29px; }
  .source-meta { padding-top: 7px; margin-top: 7px; }
  .forecast-source-count { margin-top: 4px; font-size: 8px; }
}


/* v8: keep model weather glyph and temperature in one compact row. */
.source-temp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; margin: 9px 0 4px; }
.source-temp-row .source-temp { margin: 0; min-width: 0; }
.source-glyph-inline { flex: 0 0 34px; width: 34px; height: 34px; margin-left: auto; }
.source-glyph-inline .source-weather-icon { width: 28px; height: 30px; }
.source-temp-row + .source-condition { min-height: 18px; line-height: 1.4; }
@media (max-width: 560px) {
  .source-temp-row { min-height: 32px; margin: 7px 0 3px; }
  .source-glyph-inline { flex-basis: 32px; width: 32px; height: 32px; }
  .source-glyph-inline .source-weather-icon { width: 26px; height: 28px; }
}


/* v9: smooth live aggregation, calculating status and compact help page. */
.pill.calculating { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 46%, var(--stroke)); }
.calculating-spinner { display: inline-block; width: 10px; height: 10px; flex: 0 0 10px; border: 1.5px solid color-mix(in srgb, var(--accent) 25%, transparent); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.weather-icon { transform-origin: center; }
.weather-icon.icon-changed { animation: weather-icon-reveal .44s cubic-bezier(.2,.7,.25,1) both; }
@keyframes weather-icon-reveal { 0% { opacity: .38; filter: blur(3px); transform: translateY(2px) scale(.95); } 58% { opacity: 1; filter: blur(.45px); transform: translateY(0) scale(1.015); } 100% { opacity: 1; filter: blur(0); transform: scale(1); } }
.weather-text-reveal { animation: weather-text-reveal .24s ease-out both; }
@keyframes weather-text-reveal { from { opacity: .45; filter: blur(1px); transform: translateY(1px); } to { opacity: 1; filter: blur(0); transform: translateY(0); } }
.forecast-source-count-end { margin-top: 0; justify-self: end; }
.help-link { display: inline-flex; margin-left: 9px; color: var(--muted) !important; text-decoration: underline !important; text-decoration-color: color-mix(in srgb, var(--muted) 45%, transparent) !important; text-underline-offset: 3px; white-space: nowrap; }
.help-link:hover { color: var(--accent) !important; }
.help-page { padding: 48px 0 72px; max-width: 900px; margin: 0 auto; }
.help-eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.help-page h1 { margin: 0 0 12px; font-size: clamp(34px, 5vw, 52px); }
.help-page h1 span { color: var(--accent); }
.help-intro { max-width: 720px; margin: 0 0 28px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.help-section { margin-top: 18px; padding: 23px; border: 1px solid var(--stroke); border-radius: 16px; background: color-mix(in srgb, var(--panel) 92%, transparent); }
.help-section h2 { margin: 0 0 10px; font-size: 17px; }
.help-section p, .help-section li { color: var(--muted); font-size: 12px; line-height: 1.75; }
.help-section p { margin: 8px 0; }
.help-section ul { padding-left: 20px; margin: 8px 0; }
.help-code { display: block; overflow-x: auto; margin: 8px 0 13px; padding: 11px 13px; border: 1px solid var(--stroke); border-radius: 9px; background: var(--panel-hi); color: var(--text); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; line-height: 1.6; }
.help-back { border: 1px solid var(--stroke); border-radius: 9px; padding: 8px 11px; color: var(--text); text-decoration: none; font-size: 11px; font-weight: 600; }
.help-back:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 800px) { .hour-row { grid-template-columns: .9fr 1.25fr .95fr .85fr .7fr auto; } }
@media (max-width: 560px) {
  .forecast-source-count-end { grid-column: 2; grid-row: 3; justify-self: end; align-self: end; margin-top: 0; }
  .day-row .forecast-source-count-end { grid-column: 2; grid-row: 3; }
  .help-page { padding: 30px 0 48px; }
  .help-section { padding: 17px; }
  .help-link { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .weather-icon, .weather-text-reveal, .calculating-spinner { animation: none !important; }
}

@media (min-width: 561px) and (max-width: 800px) {
  .day-row { grid-template-columns: minmax(120px,1fr) minmax(145px,1.2fr) minmax(64px,.75fr) auto; gap: 10px; }
  .day-name-block { grid-column: 1; grid-row: 1; }
  .day-weather { grid-column: 2; grid-row: 1; }
  .day-range { grid-column: 1 / 3; grid-row: 2; }
  .day-rain { grid-column: 3; grid-row: 1; }
  .day-wind { grid-column: 3; grid-row: 2; text-align: right; }
  .day-row .forecast-source-count-end { grid-column: 4; grid-row: 2; align-self: end; }
}


/* v10 polish: animate weather icons only when their weather code/day-night state changes. */
.source-weather-stack { display: flex; flex: 0 0 94px; max-width: 42%; flex-direction: column; align-items: center; justify-content: center; gap: 0; margin-left: auto; min-width: 0; text-align: center; }
.source-weather-stack .source-glyph-inline { flex: 0 0 30px; width: 30px; height: 30px; margin-left: 0; }
.source-weather-stack .source-weather-icon { width: 27px; height: 29px; }
.source-weather-stack .source-condition { display: -webkit-box; min-height: 0; width: 100%; margin: 0; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.18; text-align: center; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
@media (max-width: 560px) {
  .source-weather-stack { flex-basis: 88px; }
  .source-weather-stack .source-condition { font-size: 8.5px; }
}


/* v12: mobile hourly forecast changes order only; retain all original forecast fields. */
.source-directory-search { display: block; box-sizing: border-box; width: 100%; margin: 14px 0 7px; padding: 12px 13px; border: 1px solid var(--stroke); border-radius: 10px; outline: none; background: var(--panel-hi); color: var(--text); font: inherit; font-size: 12px; }
.source-directory-search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.source-directory-count { margin: 4px 0 12px !important; font-size: 10px !important; }
.source-directory-group { margin-top: 20px; }
.source-directory-group h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 9px; font-size: 13px; }
.source-directory-group h3 span { color: var(--muted); font-size: 10px; font-weight: 500; }
.source-directory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.source-directory-entry { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; min-width: 0; padding: 11px 12px; border: 1px solid var(--stroke); border-radius: 10px; background: var(--panel-hi); }
.source-directory-copy { display: grid; gap: 3px; min-width: 0; }
.source-directory-copy strong { font-size: 10px; line-height: 1.4; }
.source-directory-copy > span:not(.source-directory-note) { color: var(--muted); font-size: 10px; line-height: 1.35; }
.source-directory-entry code { display: block; overflow-wrap: anywhere; width: fit-content; max-width: 100%; color: var(--accent); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; line-height: 1.4; }
.source-directory-note { display: inline-block; width: fit-content; margin-top: 2px; padding: 2px 5px; border: 1px solid color-mix(in srgb, var(--muted) 24%, transparent); border-radius: 5px; color: var(--muted); font-size: 8px; }
.source-directory-entry[hidden], .source-directory-group[hidden] { display: none !important; }
@media (max-width: 560px) {
  /* Keep the hour on its own first row. The second row retains the original
     weather, temperature, precipitation, wind and source-count fields. */
  .hour-row { grid-template-columns: minmax(0, 1.15fr) minmax(0, .92fr) minmax(0, .76fr) minmax(0, .72fr) max-content; grid-template-rows: auto auto; align-items: center; column-gap: 5px; row-gap: 7px; padding: 10px 8px; }
  .hour-time-block { grid-column: 1 / -1; grid-row: 1; }
  .hour-time { font-size: 13px; }
  .hour-date { display: none; }
  .hour-weather { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 100%; min-width: 0; }
  .hour-weather .hour-glyph { flex-basis: 29px; width: 29px; height: 30px; border-radius: 8px; }
  .hour-weather .weather-icon { width: 25px; height: 27px; }
  .hour-condition { min-width: 0; max-width: 100%; font-size: 8.5px; line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
  .hour-temperature { grid-column: 2; grid-row: 2; align-items: center; justify-self: stretch; min-width: 0; text-align: center; }
  .hour-temp { font-size: 21px; }
  .hour-temp-label { display: block; margin-top: 2px; font-size: 8px; text-align: center; }
  .hour-rain { grid-column: 3; grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px; min-width: 0; font-size: 9px; text-align: center; white-space: normal; }
  .hour-rain .rain-icon { flex: 0 0 auto; }
  .hour-rain .drop-svg { width: 10px; height: 13px; }
  .hour-rain small { display: block; flex-basis: 100%; margin: 0; font-size: 8px; line-height: 1.1; text-align: center; }
  .hour-wind { grid-column: 4; grid-row: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; font-size: 9px; white-space: normal; text-align: center; }
  .hour-wind small { margin-top: 2px; font-size: 8px; text-align: center; }
  .hour-row .forecast-source-count-end { grid-column: 5; grid-row: 2; justify-self: end; align-self: center; margin: 0; padding: 2px 4px; font-size: 8px; }
  .source-directory-grid { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .hour-row { grid-template-columns: minmax(0, 1.05fr) minmax(0, .85fr) minmax(0, .68fr) minmax(0, .68fr) max-content; column-gap: 3px; padding-right: 6px; padding-left: 6px; }
  .hour-temp { font-size: 19px; }
  .hour-rain { font-size: 8px; }
  .hour-wind { font-size: 8px; }
  .hour-row .forecast-source-count-end { padding: 2px 3px; font-size: 7px; }
}


/* v13: daily rows use the same two-line information hierarchy as the 24-hour view. */
.day-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  padding: 12px 15px;
}
.day-name-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
}
.day-name { font-size: 12px; }
.day-date { margin: 0; }
.day-details {
  display: grid;
  grid-template-columns: minmax(145px, 1.1fr) minmax(205px, 1.5fr) minmax(74px, .55fr) max-content;
  align-items: center;
  gap: 12px;
  min-width: 0;
  grid-column: 1;
  grid-row: 2;
}
.day-weather {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-width: 0;
  grid-column: auto;
  grid-row: auto;
}
.day-glyph { flex: 0 0 38px; width: 38px; height: 38px; }
.day-weather .daily-weather-icon { width: 32px; height: 34px; }
.day-condition { min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
.day-range {
  display: flex;
  align-items: center;
  gap: 7px;
  width: auto;
  min-width: 0;
  grid-column: auto;
  grid-row: auto;
}
.day-min, .day-max { flex: 0 0 35px; width: 35px; white-space: nowrap; font-size: 18px; }
.day-min { text-align: left; }
.day-max { text-align: right; }
.day-range .range-track { min-width: 24px; }
.day-rain {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-width: 0;
  margin: 0;
  text-align: left;
  white-space: nowrap;
  grid-column: auto;
  grid-row: auto;
}
.day-row .forecast-source-count-end {
  align-self: center;
  justify-self: end;
  grid-column: auto;
  grid-row: auto;
  margin: 0;
  white-space: nowrap;
}
.day-wind { display: none !important; }

@media (max-width: 800px) {
  .day-row { padding: 11px 12px; }
  .day-details { grid-template-columns: minmax(120px, 1.1fr) minmax(180px, 1.35fr) minmax(66px, .55fr) max-content; gap: 8px; }
  .day-glyph { flex-basis: 35px; width: 35px; height: 35px; }
  .day-weather { gap: 6px; }
  .day-range { gap: 5px; }
  .day-min, .day-max { flex-basis: 30px; width: 30px; font-size: 14px; }
}
@media (max-width: 560px) {
  .day-row { grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 10px 8px; }
  .day-name-block { grid-column: 1; grid-row: 1; gap: 8px; }
  .day-details {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, .62fr) max-content;
    grid-template-rows: auto;
    grid-column: 1;
    grid-row: 2;
    gap: 5px;
  }
  .day-weather { flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; text-align: center; }
  .day-glyph { flex: 0 0 29px; width: 29px; height: 30px; border-radius: 8px; }
  .day-weather .daily-weather-icon { width: 25px; height: 27px; }
  .day-condition { display: -webkit-box; width: 100%; font-size: 8.5px; line-height: 1.15; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .day-range { display: grid; grid-template-columns: max-content minmax(8px, 1fr) max-content; align-items: center; gap: 3px; }
  .day-min, .day-max { flex: 0 0 auto; width: auto; min-width: 20px; font-size: 12px; }
  .day-range .range-track { min-width: 8px; }
  .day-rain { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 3px; font-size: 9px; white-space: normal; text-align: center; }
  .day-rain .drop-svg { width: 10px; height: 13px; }
  .day-rain > span:last-child { white-space: nowrap; }
  .day-row .forecast-source-count-end { grid-column: auto; grid-row: auto; align-self: center; justify-self: end; padding: 2px 4px; font-size: 8px; }
}
@media (max-width: 360px) {
  .day-row { padding-right: 6px; padding-left: 6px; }
  .day-details { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr) minmax(0, .55fr) max-content; gap: 3px; }
  .day-min, .day-max { font-size: 11px; }
  .day-row .forecast-source-count-end { padding: 2px 3px; font-size: 7px; }
}


/* v14: lightweight browser-language override in the footer. */
.language-toggle { border: 0; padding: 0; margin: 0 0 0 8px; background: transparent; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--muted) 45%, transparent); text-underline-offset: 3px; white-space: nowrap; }
.language-toggle:hover, .language-toggle:focus-visible { color: var(--accent); outline: none; }
.hero-bottom .language-toggle { font-size: inherit; }
.attribution .language-toggle { color: #9caea1; }
.attribution .language-toggle:hover { color: var(--accent); }

.help-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.help-header-actions .language-toggle { margin-left: 0; font-size: 11px; }
@media (max-width: 520px) { .help-header-actions { gap: 7px; } .help-header-actions .help-back { font-size: 10px; } }


/* v16: compact unit selectors for temperature, wind and air pressure. */
.unit-switches { display: flex; align-items: center; justify-content: center; gap: 6px; flex: 0 1 auto; min-width: 0; flex-wrap: wrap; }
.unit-switches .temperature-unit-switch { margin: 0; }
.unit-switches .temperature-unit-switch button { min-width: 0; padding: 6px 7px; }
@media (max-width: 800px) {
  .unit-switches { margin-left: auto; justify-content: flex-end; gap: 5px; }
  .unit-switches .temperature-unit-switch { margin-left: 0; }
}
@media (max-width: 560px) {
  .tabs-wrap { grid-template-columns: 1fr; row-gap: 10px; }
  .unit-switches { grid-column: 1 / -1; grid-row: 2; width: 100%; justify-content: flex-start; gap: 5px; }
  .unit-switches .temperature-unit-switch { grid-column: auto; grid-row: auto; margin: 0; }
  .unit-switches .temperature-unit-switch button { padding: 6px 6px; font-size: 10px; }
  .updated-label { grid-column: 1 / -1; grid-row: 3; }
}


/* v17: compact display fixes — clearer model time and readable daily temperatures. */
.current-footer #current-time { font-size: 10px; }
#tab-daily-label { font-size: inherit; font-weight: 650; color: inherit; margin-left: 0; }
.tab span.tab-period-unit { font-size: inherit; font-weight: 750; margin-left: 2px; color: inherit; }

/* v20: keep provider identity and method explanation on separate lines. */
.model-detail-organization { white-space: pre-line; }
.mobile-install-button.hidden { display: none !important; }


/* v25: precipitation joins temperature and condition without shifting the card layout. */
.temperature-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(70px,124px) minmax(58px,max-content); align-items:center; gap:10px; }
.current-precipitation { display:inline-flex; align-items:center; justify-content:flex-end; gap:5px; min-width:58px; color:#72baff; font-size:23px; font-weight:650; line-height:1; font-variant-numeric:tabular-nums; position:relative; z-index:1; white-space:nowrap; }
.current-precipitation .drop-svg { width:13px; height:17px; flex:0 0 13px; }
.current-precipitation .animated-unit { align-self:flex-end; color:#72baff; font-size:.42em; font-weight:600; line-height:1; margin:0 0 1px 2px; vertical-align:baseline; transform:translateY(-2px); }
.source-temp-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(68px,94px) minmax(49px,max-content); align-items:center; gap:8px; }
.source-temp-row .source-weather-stack { flex:initial; width:100%; max-width:none; margin:0; }
.source-precipitation { display:inline-flex; align-items:center; justify-content:flex-end; gap:4px; min-width:50px; color:#8fc4ff; font-size:12px; line-height:1.2; font-weight:650; white-space:nowrap; font-variant-numeric:tabular-nums; }
.source-precipitation .rain-icon { display:inline-flex; flex:0 0 10px; width:10px; height:13px; }
.source-precipitation .drop-svg { display:block; width:10px; height:13px; }
.source-precipitation-value { display:inline-block; min-width:25px; text-align:right; }
.source-precipitation-unit { color:inherit; font-size:8px; font-weight:600; margin-left:1px; }
.source-meta-four { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; justify-content:initial; }
.source-meta-item { display:flex; min-width:0; flex-direction:column; gap:4px; }
.source-meta-label { color:var(--muted); font-size:9px; line-height:1.2; }
.source-meta-value { color:var(--text); font-size:10px; font-weight:600; line-height:1.3; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.good-photo-button { flex:0 0 auto; border:1px solid rgba(0,232,135,.25); border-radius:5px; padding:3px 6px; color:#8aebbd; background:rgba(10,30,18,.65); font:inherit; font-size:9px; cursor:pointer; opacity:.95; }
.good-photo-button:hover { border-color:#00e887; color:#00e887; }
.good-photo-button:disabled { cursor:wait; opacity:.6; }
html[data-theme="light"] .good-photo-button { background:rgba(255,255,255,.9); color:#287fbd; border-color:rgba(40,127,189,.25); }
html[data-theme="light"] .good-photo-button:hover { border-color:#287fbd; color:#287fbd; }
@media (max-width:560px) {
  .temperature-row { grid-template-columns:minmax(0,1fr) minmax(64px,82px) minmax(54px,max-content); gap:7px; padding-top:20px; }
  .current-weather-summary { flex:initial; width:auto; }
  .current-precipitation { font-size:20px; gap:3px; min-width:54px; }
  .current-precipitation .drop-svg { width:12px; height:16px; flex-basis:12px; }
  .source-temp-row { grid-template-columns:minmax(0,1fr) minmax(64px,82px) minmax(48px,max-content); gap:6px; }
  .source-meta-four { gap:5px; }
  .source-meta-label { font-size:8px; }
  .source-meta-value { font-size:9px; }
}


/* v26: keep footer help and language actions on a separate line. */
.hero-bottom-copy { line-height: 1.75; }
.hero-bottom-links { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 5px; }
.hero-bottom-links .help-link, .hero-bottom-links .language-toggle { margin-left: 0; }
.attribution-source { line-height: 1.7; }
.attribution-links { display: flex; justify-content: flex-end; align-items: center; gap: 7px; margin-top: 3px; }
.attribution-links .help-link, .attribution-links .language-toggle { margin-left: 0; }
@media (max-width: 700px) { .attribution-links { justify-content: flex-start; } }


/* v28: source progress shares the existing status pill, keeping the card height stable. */
#model-count-pill { display:inline-flex; align-items:center; gap:6px; flex:0 1 auto; min-width:0; max-width:62%; overflow:hidden; text-overflow:ellipsis; }
#temperature-label { min-width:0; white-space:nowrap; }
.geolocation-button { display:grid; place-items:center; flex:0 0 44px; width:44px; height:44px; margin-left:5px; border:1px solid rgba(0,232,135,.25); border-radius:10px; color:var(--accent); background:rgba(0,232,135,.055); cursor:pointer; transition:background .15s,border-color .15s,transform .15s; }
.search-form .geolocation-button { flex-basis:50px; width:50px; height:50px; border-radius:12px; }
.geolocation-button:hover { border-color:rgba(0,232,135,.6); background:rgba(0,232,135,.12); }
.geolocation-button:disabled { opacity:.55; cursor:wait; }
.geolocation-button svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.geolocation-button.is-locating svg { animation:spin .9s linear infinite; }
.compact-search .geolocation-button { flex:0 0 34px; width:34px; height:34px; margin-left:4px; padding:0; border:1px solid rgba(0,232,135,.23); color:var(--accent); background:rgba(0,232,135,.055); }
.compact-search .geolocation-button svg { width:17px; height:17px; }
html[data-theme="light"] .geolocation-button, html[data-theme="light"] .compact-search .geolocation-button { background:rgba(40,127,189,.045); border-color:rgba(40,127,189,.22); }
html[data-theme="light"] .geolocation-button:hover { background:rgba(40,127,189,.12); border-color:rgba(40,127,189,.6); }
@media (max-width:560px) {
  #model-count-pill { max-width:64%; padding-left:5px; padding-right:5px; font-size:8px; }
  .search-form .geolocation-button { flex-basis:45px; width:45px; height:45px; }
  .compact-search .geolocation-button { flex-basis:34px; width:34px; height:34px; }
}


/* v29: keep the three current-weather columns anchored while values and labels change. */
.temperature-row { grid-template-columns: minmax(0,1fr) 124px 78px; gap: 10px; align-items: center; }
.temperature-block { width: 100%; min-width: 0; }
.current-weather-summary { display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: 76px 2.7em; row-gap: 6px; align-content: center; align-items: center; justify-items: center; width: 124px; min-width: 124px; max-width: 124px; flex: none; }
.current-weather-summary .weather-glyph { width: 76px; height: 76px; min-width: 76px; min-height: 76px; }
.current-weather-summary .condition { display: -webkit-box; width: 100%; height: 2.7em; max-height: 2.7em; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; text-overflow: ellipsis; overflow-wrap: anywhere; align-self: start; }
.current-precipitation { width: 78px; min-width: 78px; max-width: 78px; gap: 3px; justify-content: flex-end; overflow: hidden; }
#current-precipitation > .animated-number { display: inline-block; flex: 0 0 3.2ch; width: 3.2ch; overflow: hidden; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .temperature-row { grid-template-columns: minmax(0,1fr) 78px 66px; gap: 7px; }
  .current-weather-summary { width: 78px; min-width: 78px; max-width: 78px; grid-template-rows: 64px 2.6em; row-gap: 6px; }
  .current-weather-summary .weather-glyph { width: 64px; height: 64px; min-width: 64px; min-height: 64px; border-radius: 20px; }
  .current-weather-summary .condition { height: 2.6em; max-height: 2.6em; font-size: 9px; line-height: 1.3; }
  .current-precipitation { width: 66px; min-width: 66px; max-width: 66px; font-size: 18px; gap: 3px; }
  .current-precipitation .drop-svg { width: 11px; height: 15px; flex-basis: 11px; }
  #current-precipitation > .animated-number { flex-basis: 3ch; width: 3ch; }
}
@media (prefers-reduced-motion: reduce) {
  .weather-effect-layer { transition-duration: .01ms !important; }
}


/* v30: give the precipitation glyph room and keep the last two columns clear of the card edge. */
.temperature-row { grid-template-columns: minmax(0,1fr) 124px 88px; gap: 10px; padding-right: 14px; box-sizing: border-box; }
.current-precipitation { width: 88px; min-width: 88px; max-width: 88px; overflow: visible; }
@media (max-width: 560px) {
  .temperature-row { grid-template-columns: minmax(0,1fr) 78px 76px; gap: 7px; padding-right: 10px; }
  .current-precipitation { width: 76px; min-width: 76px; max-width: 76px; }
}


/* v33: UV and precipitation share three aligned columns: icon, value, and compact unit label. */
.current-right-stack { display:flex; flex-direction:column; align-items:flex-end; justify-content:center; gap:4px; width:100%; min-width:0; overflow:visible; }
.current-uv-index, .current-precipitation { display:grid; grid-template-columns:13px minmax(3.2ch,1fr) 13px; align-items:baseline; justify-content:stretch; gap:3px; width:100%; min-width:0; white-space:nowrap; font-variant-numeric:tabular-nums; line-height:1; }
.current-uv-index { color:#f4b84b; font-size:23px; font-weight:650; min-height:1em; }
.current-uv-symbol { grid-column:1; justify-self:start; align-self:center; display:flex; align-items:center; justify-content:center; width:13px; height:17px; color:#f4a72f; line-height:1; }
.current-uv-symbol .sun-svg { display:block; width:15px; height:17px; flex:0 0 15px; color:#f4a72f; }
#current-uv-value { grid-column:2; justify-self:end; align-self:baseline; display:inline-block; min-width:3.2ch; text-align:right; font-size:1em; color:#f4b84b; font-variant-numeric:tabular-nums; }
.current-uv-label { grid-column:3; justify-self:end; align-self:baseline; color:#f4b84b; font-size:8px; font-weight:700; letter-spacing:.02em; line-height:1; text-transform:uppercase; }
.current-precipitation { color:#72baff; font-size:23px; font-weight:650; min-height:1em; overflow:visible; }
.current-precipitation .current-rain-icon { grid-column:1; justify-self:start; align-self:center; display:inline-flex; align-items:center; color:#72baff; width:13px; height:17px; }
.current-precipitation .drop-svg { display:block; width:13px; height:17px; flex:0 0 13px; }
#current-precipitation { display:contents; }
#current-precipitation > .animated-number { grid-column:2; justify-self:end; align-self:baseline; display:inline-block; min-width:3.2ch; width:3.2ch; text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
#current-precipitation > .animated-unit { grid-column:3; justify-self:end; align-self:baseline; color:#72baff; font-size:.42em; font-weight:600; line-height:1; margin:0 0 0 1px; vertical-align:baseline; transform:translateY(-3px); white-space:nowrap; }
@media (max-width:560px) {
  .current-right-stack { gap:4px; }
  .current-uv-index, .current-precipitation { font-size:18px; gap:3px; grid-template-columns:12px minmax(3ch,1fr) 12px; }
  .current-uv-symbol { width:12px; height:15px; }
  .current-uv-symbol .sun-svg { width:13px; height:15px; flex-basis:13px; }
  .current-uv-label { font-size:7px; }
  .current-precipitation .current-rain-icon { width:12px; height:15px; }
  .current-precipitation .drop-svg { width:12px; height:15px; flex-basis:12px; }
  #current-precipitation > .animated-number { width:3ch; min-width:3ch; }
}


/* OpenWeather attribution stays in the existing provider row, not in an extra card footer. */
.source-provider-openweather { display:inline-flex; align-items:center; gap:5px; min-width:0; color:var(--text); font-size:9px; line-height:1.25; text-decoration:none; font-weight:700; }
.source-provider-openweather:hover { text-decoration:underline; }
.source-provider-openweather > span { min-width:0; }
.source-provider-openweather img { display:block; flex:0 0 auto; width:48px; max-height:15px; height:auto; object-fit:contain; }


/* v35 cosmetic polish: smooth Leet palette changes, precise units and compact metrics. */
@property --bg { syntax: "<color>"; inherits: true; initial-value: #0b1711; }
@property --panel { syntax: "<color>"; inherits: true; initial-value: #142019; }
@property --panel-hi { syntax: "<color>"; inherits: true; initial-value: #1a2a20; }
@property --stroke { syntax: "<color>"; inherits: true; initial-value: #2b3e31; }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #00e887; }
@property --accent-dim { syntax: "<color>"; inherits: true; initial-value: rgba(0,232,135,.12); }
html[data-theme="leet"] {
  transition: --bg .95s ease-in-out, --panel .95s ease-in-out, --panel-hi .95s ease-in-out,
    --stroke .95s ease-in-out, --accent .95s ease-in-out, --accent-dim .95s ease-in-out;
}
html[data-theme="leet"] body { transition: background-color .95s ease-in-out, color .95s ease-in-out; }
.temperature > .animated-unit { letter-spacing: 0; white-space: nowrap; }
#current-uv-value { transform: translateX(-2px); }
#current-precipitation > .animated-number { transform: translateX(-2px); }

/* Desktop: keep each metric card's footprint unchanged, pin the icon top-left and center its values. */
@media (min-width: 561px) {
  .metric-card { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
  .metric-card .metric-icon { position:absolute; top:18px; left:18px; margin:0; }
  .metric-card .metric-label, .metric-card .metric-value, .metric-card .metric-unit { width:100%; text-align:center; }
  .metric-card .metric-label { margin-top:13px; }
}

/* Mobile: icon and information occupy the same row to reduce metric-card height. Keep existing type and icon sizes. */
@media (min-width: 561px) and (max-width: 800px) {
  .metric-card .metric-icon { top:13px; left:13px; }
}
@media (max-width: 560px) {
  .metric-card {
    display:grid;
    grid-template-columns:29px minmax(0,1fr);
    grid-template-rows:auto auto auto;
    align-content:center;
    align-items:center;
    column-gap:9px;
    row-gap:0;
    min-height:90px;
    padding:12px 10px;
    text-align:left;
  }
  .metric-card .metric-icon { position:static; grid-column:1; grid-row:1 / span 3; align-self:start; margin:0; }
  .metric-card .metric-label { grid-column:2; grid-row:1; width:100%; margin:0; text-align:left; }
  .metric-card .metric-value { grid-column:2; grid-row:2; width:100%; margin-top:3px; text-align:left; }
  .metric-card .metric-unit { grid-column:2; grid-row:3; width:100%; margin-top:2px; text-align:left; }
}

/* v36: required provider attributions remain in the existing source heading row. */
.source-provider-attributed { color: inherit; text-decoration: underline; text-decoration-color: var(--stroke, rgba(255,255,255,.25)); text-underline-offset: 2px; }
.source-provider-attributed:hover { text-decoration-color: currentColor; }


/* v38 regression fix: keep mobile metric values centered on the card, not the text column. */
@media (max-width: 560px) {
  .metric-card { position: relative; grid-template-columns: 29px minmax(0, 1fr); text-align: center; }
  .metric-card .metric-icon { position: absolute; top: 12px; left: 12px; grid-column: auto; grid-row: auto; align-self: auto; }
  .metric-card .metric-label, .metric-card .metric-value, .metric-card .metric-unit {
    grid-column: 2; width: 100%; position: relative; left: -19px; text-align: center;
  }
}

/* v38: reduce ambient weather movement slightly while preserving intensity tiers. */
.weather-effect-layer { transition-duration: 1.3s, 1.3s; }


/* v43: calculation-mode controls use restrained tier-coloured outlines. */
.calculation-mode-switch {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  width:min(540px, 100%);
  margin:22px auto 0;
}
.calculation-mode-button {
  appearance:none;
  min-width:94px;
  padding:9px 17px;
  border:1px solid var(--stroke, rgba(255,255,255,.16));
  border-radius:9px;
  background:transparent;
  color:var(--muted);
  font:600 12px/1.15 Inter,system-ui,sans-serif;
  letter-spacing:.01em;
  cursor:pointer;
  transition:color .16s,border-color .16s,background .16s,box-shadow .16s;
}
.calculation-mode-button:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
.calculation-mode-button.mode-quick:hover,
.calculation-mode-button.mode-quick.active { color:#71b8ff; border-color:rgba(113,184,255,.68); background:rgba(113,184,255,.065); }
.calculation-mode-button.mode-quick.active { box-shadow:inset 0 0 0 1px rgba(113,184,255,.13); }
.calculation-mode-button.mode-good:hover,
.calculation-mode-button.mode-good.active { color:var(--accent-green,#00e887); border-color:rgba(0,232,135,.64); background:rgba(0,232,135,.055); }
.calculation-mode-button.mode-good.active { box-shadow:inset 0 0 0 1px rgba(0,232,135,.12); }
.calculation-mode-button.mode-expert:hover,
.calculation-mode-button.mode-expert.active { color:#ff9a36; border-color:rgba(255,154,54,.7); background:rgba(255,154,54,.055); }
.calculation-mode-button.mode-expert.active { box-shadow:inset 0 0 0 1px rgba(255,154,54,.13); }
/* Home-page mode buttons sit a line lower and use compact padding; location controls stay unchanged. */
#home-calculation-mode { margin-top:36px; }
#home-calculation-mode .calculation-mode-button { padding:5px 12px; }
.search-screen .search-form { margin-top:15px; }
.location-mode-row { display:flex; align-items:center; gap:8px; min-width:0; margin-top:12px; flex-wrap:nowrap; }
.location-mode-row .calculation-mode-switch { width:auto; min-width:0; margin:0; justify-content:flex-start; gap:5px; }
.location-mode-row .calculation-mode-button { min-width:74px; padding:8px 12px; font-size:11px; }
.location-mode-row .place-refresh-button { margin-top:0; flex:0 0 auto; }
/* A larger status glyph stays inside the existing fixed-height pill, so card geometry is unchanged. */
#model-count-pill { height:24px; max-height:24px; line-height:1; font-size:10.5px; white-space:nowrap; padding-top:5px; padding-bottom:5px; overflow:hidden; text-overflow:ellipsis; }
/* Move the visual group only; grid columns remain unchanged and precipitation keeps its full slot. */
.current-weather-summary { transform:translateX(-5px); }
@media (max-width:700px) {
  .calculation-mode-switch { margin-top:18px; gap:6px; }
  .calculation-mode-button { flex:1 1 0; min-width:0; padding:9px 10px; }
  #home-calculation-mode { margin-top:32px; }
  #home-calculation-mode .calculation-mode-button { padding:5px 8px; }
}
@media (max-width:560px) {
  .location-mode-row { gap:6px; }
  .location-mode-row .calculation-mode-switch { gap:4px; }
  .location-mode-row .calculation-mode-button { min-width:0; padding:8px 8px; font-size:10px; }
  #model-count-pill { height:22px; max-height:22px; font-size:9.5px; padding:5px 5px; max-width:64%; }
  .current-weather-summary { transform:translateX(-4px); }
}

/* Current-observation-only source cards (METAR / reference proxies). */
.source-observation-note { margin-top: .35rem; font-size: 9px; line-height: 1.4; opacity: .78; }


/* v46: contact form uses text-only storage and a small weather arithmetic check. */
.footer-action-link { color:#9caea1!important; text-decoration:none; }
.footer-action-link:hover { color:var(--accent)!important; }
.donate-action-button { appearance:none; border:0; background:transparent; padding:0; margin:0; font:inherit; cursor:pointer; }
.donate-modal-backdrop { z-index:1101; }
.donate-modal #donate-content:empty { display:none; }
.footer-contact-button { appearance:none; border:0; background:transparent; color:#9caea1; padding:0; margin:0; font:inherit; cursor:pointer; }
.footer-contact-button:hover { color:var(--accent); }
.contact-modal-backdrop { position:fixed; z-index:1100; inset:0; display:grid; place-items:center; padding:18px; background:rgba(0,0,0,.72); backdrop-filter:blur(8px); }
.contact-modal-backdrop.hidden { display:none!important; }
.contact-modal { position:relative; width:min(100%,520px); max-height:min(90vh,820px); overflow-y:auto; padding:25px; border:1px solid var(--stroke); border-radius:18px; background:var(--panel); box-shadow:0 26px 80px #0008; }
.contact-modal-close { position:absolute; top:12px; right:12px; width:31px; height:31px; padding:0; border:1px solid var(--stroke); border-radius:9px; background:var(--panel-hi); color:var(--muted); font-size:20px; line-height:1; }
.contact-modal h2 { margin:0 38px 9px 0; font-size:20px; }
.contact-modal>p { color:var(--muted); font-size:12px; line-height:1.65; }
.contact-modal form label { display:block; margin:13px 0 6px; color:var(--muted); font-size:11px; }
.contact-modal input:not([type=checkbox]), .contact-modal textarea { display:block; width:100%; min-width:0; border:1px solid var(--stroke); border-radius:9px; padding:11px 12px; background:var(--panel-hi); color:var(--text); font:13px Inter,system-ui,sans-serif; outline:none; }
.contact-modal textarea { min-height:110px; resize:vertical; line-height:1.5; }
.contact-modal input:focus, .contact-modal textarea:focus { border-color:var(--accent); }
.contact-captcha-block { margin-top:12px; padding:11px 12px; border:1px solid var(--stroke); border-radius:10px; background:rgba(0,232,135,.025); }
.contact-captcha-block>label { margin-top:0!important; }
.contact-captcha-block p { margin:5px 0 9px; color:var(--text); font-size:12px; line-height:1.5; }
.contact-captcha-controls { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; }
.contact-captcha-controls button { padding:10px; font-size:10px; }
.contact-form-actions { display:flex; justify-content:flex-end; margin-top:14px; }
.contact-status { min-height:0; margin:9px 0 0; color:var(--muted); font-size:11px; line-height:1.5; overflow-wrap:anywhere; }
.contact-status:empty { display:none; }
.contact-honeypot { position:absolute!important; left:-10000px!important; top:auto!important; width:1px!important; height:1px!important; overflow:hidden!important; }
.contact-honeypot label { margin:0!important; }
.contact-honeypot input { width:1px!important; height:1px!important; }
@media(max-width:520px) { .contact-modal { padding:20px 16px; } .contact-captcha-controls { grid-template-columns:minmax(0,1fr); } .contact-captcha-controls button { justify-self:start; } }


/* v49 cosmetic refinements: constant-speed rain and seamless animated fog. */
.fogwrapper {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:hidden;
  pointer-events:none;
  filter:blur(1px) grayscale(.2) saturate(1.2) sepia(.2);
}
.foglayer {
  position:absolute;
  top:0;
  left:0;
  width:200%;
  height:100%;
  overflow:hidden;
  pointer-events:none;
  will-change:left,opacity;
}
.foglayer .image01,
.foglayer .image02 {
  float:left;
  width:50%;
  height:100%;
  background-position:center center, center center;
  background-size:cover, cover;
  background-repeat:no-repeat, no-repeat;
}
/* The local PNG textures are used when present. Gradient layers keep fog working
   if a deployment does not include those optional image assets. */
.foglayer-01 .image01,
.foglayer-01 .image02 {
  background-image:url("img/fog1.png"), radial-gradient(ellipse at 48% 56%, rgba(228,237,242,.34) 0%, rgba(196,211,221,.19) 36%, rgba(183,202,214,0) 74%);
}
.foglayer-02 .image01,
.foglayer-02 .image02,
.foglayer-03 .image01,
.foglayer-03 .image02 {
  background-image:url("img/fog2.png"), radial-gradient(ellipse at 58% 62%, rgba(215,228,236,.3) 0%, rgba(177,197,211,.16) 38%, rgba(177,197,211,0) 76%);
}
.foglayer-01 {
  animation:foglayer-01-opacity 14s linear infinite, foglayer-move 21s linear infinite;
}
.foglayer-02,
.foglayer-03 {
  animation:foglayer-02-opacity 28s linear infinite, foglayer-move 18s linear infinite;
}
.foglayer-03 { animation-delay:-13s, -8s; }
@keyframes foglayer-01-opacity {
  0% { opacity:.1; }
  22% { opacity:.5; }
  40% { opacity:.28; }
  58% { opacity:.4; }
  80% { opacity:.16; }
  100% { opacity:.1; }
}
@keyframes foglayer-02-opacity {
  0% { opacity:.5; }
  25% { opacity:.2; }
  50% { opacity:.1; }
  80% { opacity:.3; }
  100% { opacity:.5; }
}
@keyframes foglayer-move {
  0% { left:0; }
  100% { left:-100%; }
}

/* Slightly tighter main calculation cards; their grid and fixed minimum heights stay unchanged. */
.current-card { padding:21px 23px 16px; }
.metric-card { padding:16px; }
.current-weather-summary { transform:translateX(-8px); }
.temperature > .animated-unit { font-weight:400; letter-spacing:0; white-space:nowrap; }
@media (max-width:800px) {
  .metric-card { padding:12px; }
}
@media (max-width:560px) {
  .current-card { padding:15px; }
  .metric-card { padding:10px 8px; }
  .current-weather-summary { transform:translateX(-6px); }
}
@media (prefers-reduced-motion:reduce) {
  .foglayer { animation-duration:.01ms !important; animation-iteration-count:1 !important; }
}


/* v51: softly blur and fade fog texture edges so adjacent tiles blend without visible seams. */
.foglayer .image01,
.foglayer .image02 {
  filter: blur(3px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.42) 5%, #000 13%, #000 87%, rgba(0,0,0,.42) 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.42) 5%, #000 13%, #000 87%, rgba(0,0,0,.42) 95%, transparent 100%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}


/* v51: outline the source summary without adding a background fill. */
#updated-label {
  display: inline-block;
  box-sizing: border-box;
  max-width: 100%;
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--stroke) 88%, var(--muted));
  border-radius: 9px;
  background: transparent;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 560px) {
  .unit-switches {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    justify-self: center;
  }
  #updated-label {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    max-width: 100%;
    text-align: center;
  }
}

/* v51: two-column current UV/precipitation layout: right-aligned values + centered icon/label stacks. */
.current-right-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  overflow: visible;
}
.current-uv-index,
.current-precipitation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19px;
  align-items: center;
  justify-content: stretch;
  column-gap: 2px;
  width: 100%;
  min-width: 0;
  overflow: visible;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.current-uv-index { color: #f4b84b; font-size: 19px; font-weight: 650; }
#current-uv-value {
  grid-column: 1;
  justify-self: stretch;
  display: block;
  min-width: 0;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
#current-uv-value > .animated-number { display: inline-block; text-align: right; white-space: nowrap; }
.current-uv-label-stack,
.current-precipitation-label-stack {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 1px;
  width: 19px;
  min-width: 19px;
  text-align: center;
}
.current-uv-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 15px;
  color: #f4a72f;
}
.current-uv-symbol .sun-svg { display: block; width: 14px; height: 14px; flex: 0 0 14px; }
.current-uv-label { color: #f4b84b; font-size: 8px; font-weight: 750; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.current-precipitation { color: #72baff; font-size: 19px; font-weight: 650; }
#current-precipitation {
  grid-column: 1;
  justify-self: stretch;
  display: block;
  width: 6ch;
  min-width: 6ch;
  max-width: 6ch;
  margin-left: auto;
  overflow: visible;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
#current-precipitation > .animated-number {
  display: inline-block;
  width: 6ch;
  min-width: 6ch;
  max-width: none;
  overflow: visible;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.current-precipitation .current-rain-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 15px;
  color: #72baff;
}
.current-precipitation .drop-svg { display: block; width: 12px; height: 15px; flex: 0 0 12px; }
.current-precipitation-unit { color: #72baff; font-size: 8px; font-weight: 750; line-height: 1; text-transform: lowercase; }
@media (max-width: 560px) {
  .current-right-stack { gap: 6px; }
  .current-uv-index { font-size: 16px; }
  .current-precipitation { font-size: 16px; }
  .current-uv-label-stack,
  .current-precipitation-label-stack,
  .current-uv-symbol,
  .current-precipitation .current-rain-icon { width: 17px; min-width: 17px; }
  .current-uv-index,
  .current-precipitation { grid-template-columns: minmax(0, 1fr) 17px; column-gap: 2px; }
  .current-uv-symbol .sun-svg { width: 13px; height: 13px; flex-basis: 13px; }
  .current-uv-label, .current-precipitation-unit { font-size: 7px; }
  .current-precipitation .drop-svg { width: 11px; height: 14px; flex-basis: 11px; }
}


/* v51: compact, responsive comparison table for Quick / Good / Expert. */
.help-mode-table {
  width: 100%;
  table-layout: fixed;
  border: 1px solid var(--stroke);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  margin: 13px 0 14px;
  background: transparent;
}
.help-mode-table th,
.help-mode-table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--stroke);
  color: var(--muted);
  text-align: left;
  vertical-align: top;
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.help-mode-table thead th {
  color: var(--text);
  font-weight: 700;
  border-bottom-color: color-mix(in srgb, var(--stroke) 72%, var(--muted));
}
.help-mode-table tbody th {
  width: 82px;
  color: var(--text);
  font-weight: 700;
}
.help-mode-table tr:last-child th,
.help-mode-table tr:last-child td { border-bottom: 0; }
.help-mode-table code { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .help-mode-table th,
  .help-mode-table td { padding: 9px 8px; font-size: 10px; }
  .help-mode-table tbody th { width: 66px; }
}

/* v61: corrected approved sunrise mark and branded startup veil for installed PWA launches; native OS splash typography remains OS-controlled. */
.app-startup-splash { display: none; position: fixed; inset: 0; z-index: 20001; align-items: center; justify-content: center; padding: 24px; background: #10110f; color: #f5f5ef; opacity: 1; visibility: visible; }
html.pwa-standalone .app-startup-splash { display: flex; }
.app-startup-splash.is-dismissed { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .28s ease, visibility 0s linear .28s; }
.app-startup-brand { display: flex; flex-direction: column; align-items: center; gap: 13px; transform: translateY(-3vh); }
.app-startup-mark { display: block; width: 94px; height: 94px; object-fit: contain; }
.app-startup-wordmark { color: #f5f5ef; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 29px; font-weight: 800; letter-spacing: -1.45px; line-height: 1; white-space: nowrap; }
.app-startup-wordmark .brand-dot { color: var(--accent, #00e887); }
@media (prefers-reduced-motion: reduce) { .app-startup-splash.is-dismissed { transition: none; } }

/* v52: stable two-column alignment for current UV/precipitation and initial-location loading veil. */
.current-right-stack {
  align-items: stretch;
  gap: 7px;
}
.current-uv-index,
.current-precipitation {
  grid-template-columns: minmax(0, 1fr) 20px;
  column-gap: 3px;
  align-items: center;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
#current-uv-value {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  justify-self: stretch;
  text-align: right;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
}
#current-uv-value > .animated-number {
  display: block;
  width: 100%;
  min-width: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
}
#current-precipitation {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  justify-self: stretch;
  text-align: right;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
}
#current-precipitation > .animated-number {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  text-align: right;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
}
.current-uv-label-stack,
.current-precipitation-label-stack {
  width: 20px;
  min-width: 20px;
  justify-self: center;
  align-items: center;
  text-align: center;
}
.current-uv-symbol,
.current-precipitation .current-rain-icon {
  width: 20px;
  min-width: 20px;
  justify-content: center;
}
.current-uv-label,
.current-precipitation-unit {
  display: block;
  width: 100%;
  text-align: center;
}

.initial-location-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: rgba(5, 12, 8, .22);
  -webkit-backdrop-filter: blur(7px) saturate(.86);
  backdrop-filter: blur(7px) saturate(.86);
  cursor: progress;
}
.initial-location-loading-spinner {
  display: block;
  width: 48px;
  height: 48px;
  border: 4px solid rgba(148, 171, 155, .26);
  border-top-color: var(--accent, #00e887);
  border-right-color: color-mix(in srgb, var(--accent, #00e887) 62%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(0, 232, 135, .055), 0 12px 34px rgba(0, 0, 0, .16);
  animation: initial-location-spinner-rotate .78s linear infinite;
}
@keyframes initial-location-spinner-rotate {
  to { transform: rotate(360deg); }
}
html[data-theme="light"] .initial-location-loading-overlay {
  background: rgba(245, 250, 255, .24);
}
html[data-theme="light"] .initial-location-loading-spinner {
  border-color: rgba(74, 111, 139, .2);
  border-top-color: var(--accent, #287fbd);
  border-right-color: color-mix(in srgb, var(--accent, #287fbd) 62%, transparent);
  box-shadow: 0 0 0 5px rgba(40, 127, 189, .055), 0 12px 34px rgba(0, 0, 0, .16);
}
@media (prefers-reduced-motion: reduce) {
  .initial-location-loading-spinner { animation-duration: 2.4s; }
}

/* v54: give every weather-icon well a little more breathing room; SVG artwork stays the same size. */
.current-weather-summary { transform: translateX(-6px); }
.current-weather-summary { grid-template-rows: 78px 2.7em; }
.current-weather-summary .weather-glyph { width: 78px; height: 78px; min-width: 78px; min-height: 78px; }

.day-glyph,
.hour-glyph { flex-basis: 44px; width: 44px; height: 44px; }
.source-glyph,
.source-glyph-inline { flex-basis: 36px; width: 36px; height: 36px; }
.source-weather-stack .source-glyph-inline { flex-basis: 32px; width: 32px; height: 32px; }

@media (max-width: 800px) {
  .day-glyph,
  .hour-glyph { flex-basis: 38px; width: 38px; height: 38px; }
}
@media (max-width: 560px) {
  .current-weather-summary { transform: translateX(-4px); grid-template-rows: 68px 2.6em; }
  .current-weather-summary .weather-glyph { width: 68px; height: 68px; min-width: 68px; min-height: 68px; }
  .day-glyph { flex-basis: 31px; width: 31px; height: 32px; }
  .hour-glyph,
  .hour-weather .hour-glyph { flex-basis: 31px; width: 31px; height: 32px; }
  .source-glyph,
  .source-glyph-inline { flex-basis: 34px; width: 34px; height: 34px; }
  .source-weather-stack .source-glyph-inline { flex-basis: 32px; width: 32px; height: 32px; }
}
@media (max-width: 360px) {
  .hour-glyph,
  .hour-weather .hour-glyph { flex-basis: 33px; width: 33px; height: 36px; }
}

/* v56: keep the current UV and precipitation numeric columns aligned exactly, and give the weather group 2px more room toward the right metrics. */
.current-uv-index,
.current-precipitation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  column-gap: 3px;
  align-items: center;
  justify-content: stretch;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
}
#current-uv-value,
#current-precipitation {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  justify-self: stretch;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transform: none;
  box-sizing: border-box;
}
#current-uv-value > .animated-number,
#current-precipitation > .animated-number {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transform: none;
  box-sizing: border-box;
}
.current-uv-label-stack,
.current-precipitation-label-stack {
  grid-column: 2;
  grid-row: 1;
  width: 20px;
  min-width: 20px;
  justify-self: center;
  align-items: center;
  text-align: center;
}
.current-uv-symbol,
.current-precipitation .current-rain-icon {
  width: 20px;
  min-width: 20px;
  justify-content: center;
}
.current-uv-label,
.current-precipitation-unit {
  display: block;
  width: 100%;
  text-align: center;
}
.current-weather-summary { transform: translateX(-4px); }
@media (max-width: 560px) {
  .current-uv-index,
  .current-precipitation { grid-template-columns: minmax(0, 1fr) 20px; column-gap: 3px; }
  .current-uv-label-stack,
  .current-precipitation-label-stack,
  .current-uv-symbol,
  .current-precipitation .current-rain-icon { width: 20px; min-width: 20px; }
  .current-weather-summary { transform: translateX(-2px); }
}

/* v65: subtle 2px optical alignment for the UV sun + label stack. */
.current-uv-label-stack { transform: translateY(-2px); }

/* v69: compact forecast sharing controls and local story-card preview. */
.share-weather-button { display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;min-width:34px;min-height:34px;padding:7px;border:1px solid color-mix(in srgb,var(--accent) 48%,var(--stroke));border-radius:10px;background:var(--accent-dim);color:var(--text);cursor:pointer;transition:border-color .16s,background .16s,transform .16s; }
.share-weather-button svg,.share-actions svg { width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto; }
.share-weather-button:hover { border-color:var(--accent);background:color-mix(in srgb,var(--accent-dim) 70%,var(--panel)); }
.share-weather-button:focus-visible { outline:2px solid var(--accent);outline-offset:2px; }
.share-modal-backdrop { z-index:1102; }
.share-modal { width:min(100%,560px); }
.share-modal-brand { display:flex;align-items:center;gap:10px;margin-bottom:17px;font-size:16px;font-weight:800;letter-spacing:-.04em; }
.share-modal-brand img { width:34px;height:34px;border-radius:9px;background:#000; }
.share-modal-brand b { color:var(--accent); }
.share-link-field { display:flex;align-items:center;gap:9px;min-width:0;margin:15px 0 12px;padding:7px 7px 7px 12px;border:1px solid var(--stroke);border-radius:11px;background:var(--bg); }
.share-link-field span { flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:11px; }
.share-link-field button { flex:0 0 auto;padding:9px 11px;font-size:10px; }
.share-actions { display:grid;grid-template-columns:1fr 1fr;gap:9px; }
.share-actions button,.share-card-actions button { display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:10px 12px;font-size:11px; }
.share-status { min-height:0;margin:10px 0;color:var(--muted);font-size:11px;line-height:1.5;overflow-wrap:anywhere; }
.share-status:empty { display:none; }
.share-card-preview-wrap { margin-top:15px;padding-top:15px;border-top:1px solid var(--stroke); }
.share-preview-heading { display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px;font-size:12px; }
.share-preview-heading span { color:var(--muted);font-size:10px;white-space:nowrap; }
.share-card-preview-wrap>img { display:block;width:auto;max-width:100%;height:auto;max-height:350px;margin:0 auto;border:1px solid var(--stroke);border-radius:10px;background:#101510;object-fit:contain; }
.share-card-actions { display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px; }
.share-card-preview-wrap .share-image-note { margin-bottom:0;font-size:10px; }
@media(max-width:700px) {
  .location-mode-row .share-weather-button { width:32px;min-width:32px;flex-basis:32px;min-height:34px;padding:8px; }
  .location-mode-row .share-weather-button svg { width:15px;height:15px; }
}
@media(max-width:560px) {
  .location-mode-row .share-weather-button { padding:8px; }
  .share-modal { padding:20px 15px; }
  .share-actions { grid-template-columns:1fr; }
  .share-actions button { justify-content:flex-start; }
}
