:root {
  --bg-desktop: #0e1624;
  --bg-app: #ffffff;
  --bg-auth: #f3f6fb;
  --surface: #ffffff;
  --surface-muted: #f5f7fa;
  --border: #e5e8ee;
  --border-strong: #cdd7e6;
  --text: #1c1f26;
  --text-secondary: #526077;
  --text-muted: #7b889e;
  --brand: #007aff;
  --brand-dark: #005ecb;
  --brand-soft: #e8f2ff;
  --precip-blue: #4a90e2;
  --range-pill-bg: #eceef2;
  --range-pill-border: #e0e3ea;
  --hourly-line: #e4e7ee;
  --hourly-pill-bg: #f6f7f9;
  --hourly-pill-border: #e2e5ec;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-card: 0 2px 10px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-modal: 0 24px 60px rgba(15, 23, 42, 0.28);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-desktop); color: var(--text); -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
#app-shell {
  width: 100%; max-width: 440px; min-height: 100dvh; margin: 0 auto;
  background-color: var(--bg-app); position: relative; display: flex; flex-direction: column;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.45); overflow: clip; isolation: isolate;
}
@media (max-width: 480px) {
  body { background: var(--bg-app); }
  #app-shell { max-width: 100%; box-shadow: none; }
}
.view { flex: 1; display: flex; flex-direction: column; }

#auth-view { background: var(--bg-auth); position: relative; }
#auth-view::before {
  content: ""; position: absolute; inset: -40%; z-index: 0; pointer-events: none;
  transform: rotate(-35deg); background-repeat: repeat; background-size: 160px 160px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160' fill='none' stroke='%23007aff' stroke-opacity='0.065' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(18,16)'%3E%3Ccircle cx='20' cy='20' r='8'/%3E%3Cpath d='M20 5v4M20 31v4M5 20h4M31 20h4M9.4 9.4l2.8 2.8M27.8 27.8l2.8 2.8M30.6 9.4l-2.8 2.8M12.2 27.8l-2.8 2.8'/%3E%3C/g%3E%3Cg transform='translate(92,22)'%3E%3Cpath d='M12 28h24a8 8 0 0 0 1-15.9A10 10 0 0 0 17.5 11 7.5 7.5 0 0 0 12 28z'/%3E%3C/g%3E%3Cg transform='translate(16,96)'%3E%3Cpath d='M10 20h26M14 28h20M18 12h14'/%3E%3C/g%3E%3Cg transform='translate(98,94)'%3E%3Cpath d='M18 8c-5 8-9 12-9 17a9 9 0 0 0 18 0c0-5-4-9-9-17z'/%3E%3C/g%3E%3C/svg%3E");
}
.auth-container {
  position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column;
  justify-content: center; padding: 36px 24px 28px; gap: 22px;
}
.brand-mark { display: flex; flex-direction: column; align-items: center; text-align: center; }
.brand-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 68px; height: 68px; border-radius: 20px;
  background: linear-gradient(155deg, #0c5fd6 0%, #38bdf8 100%);
  box-shadow: 0 10px 26px rgba(0, 122, 255, 0.28); margin-bottom: 16px;
}
.brand-mark h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.brand-sub { margin: 4px 0 0; font-size: 16px; font-weight: 700; color: var(--brand); letter-spacing: -0.01em; }
.brand-domain { margin: 4px 0 0; font-size: 11.5px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.01em; }
.auth-tagline { margin: 0 auto; max-width: 300px; text-align: center; font-size: 15px; line-height: 1.45; color: var(--text-secondary); }
.auth-providers { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.provider-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; height: 52px; border-radius: 14px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: transform 0.12s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid var(--border-strong);
}
.provider-btn:active { transform: scale(0.985); }
.provider-btn.google { background: #ffffff; color: #1f2937; box-shadow: var(--shadow-card); }
.provider-btn.github { background: #24292f; color: #ffffff; border-color: #24292f; box-shadow: var(--shadow-card); }
.provider-icon { width: 20px; height: 20px; flex-shrink: 0; }
.guest-try-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.guest-try-btn {
  width: 100%; height: 46px; border-radius: 14px; border: 1.5px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.guest-try-btn:hover { background: var(--surface-muted); border-color: var(--brand); }
.guest-try-btn:active { transform: scale(0.985); }
.guest-try-note { margin: 0; font-size: 12px; color: var(--text-muted); text-align: center; }
.auth-install-row { display: flex; align-items: center; gap: 10px; width: 100%; }
.secondary-install-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  flex: 1; height: 46px; border-radius: 14px; border: 1.5px solid rgba(0, 122, 255, 0.28);
  background: var(--brand-soft); color: var(--brand-dark); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background 0.15s ease, transform 0.12s ease;
}
.secondary-install-btn:active { transform: scale(0.985); }
.auth-theme-circle-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--border-strong);
  background: var(--surface); color: var(--text); display: inline-flex; align-items: center;
  justify-content: center; font-size: 18px; cursor: pointer; flex-shrink: 0;
  box-shadow: var(--shadow-card); transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.auth-theme-circle-btn:hover { border-color: var(--brand); background: var(--brand-soft); }
.auth-theme-circle-btn:active { transform: scale(0.95); }
.theme-icon-slot { line-height: 1; font-size: 14px; }
.auth-theme-circle-btn .theme-icon-slot { font-size: 18px; }
.auth-env-note { margin: 4px 0 0; text-align: center; font-size: 12px; color: var(--text-muted); }
.app-footer {
  position: relative; z-index: 1; margin-top: auto;
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  text-align: center; font-size: 11.5px; font-weight: 500; color: var(--text-muted);
}

.weather-header {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center;
  justify-content: space-between; gap: 10px; padding: 12px 14px 10px;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.header-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.circle-icon-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid #8a94a6;
  background: transparent; color: #3c4554; display: inline-flex; align-items: center;
  justify-content: center; cursor: pointer; flex-shrink: 0;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.circle-icon-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.circle-icon-btn:active { transform: scale(0.94); }
.location-title-btn {
  border: none; background: transparent; padding: 2px 4px; display: flex;
  align-items: baseline; gap: 7px; min-width: 0; cursor: pointer; text-align: left;
}
.header-town { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-day-badge { font-size: 12.5px; font-weight: 600; color: var(--brand); white-space: nowrap; }

.install-banner {
  display: flex; align-items: center; gap: 10px; margin: 10px 14px 2px; padding: 10px 12px;
  border-radius: 14px; background: var(--brand-soft); border: 1px solid rgba(0, 122, 255, 0.2);
}
.install-banner-icon { border-radius: 9px; flex-shrink: 0; }
.install-banner-text { flex: 1; min-width: 0; }
.install-banner-title { font-size: 13px; font-weight: 700; color: var(--text); }
.install-banner-sub { font-size: 11.5px; color: var(--text-secondary); }
.install-action-btn { border: none; border-radius: 999px; background: var(--brand); color: #ffffff; font-size: 12px; font-weight: 700; padding: 6px 12px; cursor: pointer; }
.install-dismiss-btn { border: none; background: transparent; color: var(--text-muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 4px; }

.metric-pill-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px 8px; overflow-x: auto; scrollbar-width: none; }
.metric-pill-bar::-webkit-scrollbar { display: none; }
.metric-pill {
  flex-shrink: 0; padding: 6px 12px; border-radius: 999px; border: 1.25px solid #5aa4f8;
  background: transparent; color: #2b83ee; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.02em; text-transform: uppercase; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.metric-pill:active { transform: scale(0.96); }
.metric-pill.active { background: var(--brand); border-color: var(--brand); color: #ffffff; }

.incognito-strip {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 14px 4px; padding: 6px 10px; border-radius: 9px;
  background: var(--surface-muted); border: 1px solid var(--border);
  font-size: 11.5px; color: var(--text-secondary);
}
.inline-link-btn { border: none; background: transparent; color: var(--brand); font-size: 11.5px; font-weight: 700; cursor: pointer; padding: 0 2px; }

.weather-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 64px 20px; color: var(--text-secondary); font-size: 14px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.weather-error { margin: 18px 16px; padding: 12px 14px; border-radius: 12px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 13.5px; font-weight: 600; text-align: center; }

.forecast-main { flex: 1; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.sun-countdown { text-align: center; font-size: 13.5px; font-weight: 500; color: var(--text); padding: 10px 14px 14px; }
.daily-list { display: flex; flex-direction: column; padding: 0 14px; }
.day-row {
  display: grid; grid-template-columns: 62px 44px 1fr; align-items: center; gap: 8px;
  padding: 11px 6px; border-radius: 12px; border: none; background: transparent;
  width: 100%; text-align: left; cursor: pointer; transition: background 0.14s ease, transform 0.1s ease;
}
.day-row:hover { background: var(--surface-muted); }
.day-row:active { transform: scale(0.99); }
.day-label-col { display: flex; flex-direction: column; gap: 3px; }
.day-name { font-size: 13.5px; font-weight: 800; letter-spacing: 0.01em; color: var(--text); line-height: 1.1; }
.day-precip { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--precip-blue); line-height: 1.1; }
.day-icon-col { display: flex; align-items: center; justify-content: center; }
.wx-icon { width: 34px; height: 34px; display: block; }
.range-track-wrap { height: 32px; display: flex; align-items: center; padding: 0 38px; }
.range-track-inner { position: relative; width: 100%; height: 100%; }
.range-segment { position: absolute; top: 50%; transform: translateY(-50%); height: 26px; display: flex; align-items: center; }
.range-val { position: absolute; top: 50%; transform: translateY(-50%); font-size: 13.5px; font-weight: 700; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.range-val.low { right: calc(100% + 6px); }
.range-val.high { left: calc(100% + 6px); }
.range-pill { width: 100%; min-width: 18px; height: 24px; border-radius: 999px; background: var(--range-pill-bg); border: 1px solid var(--range-pill-border); transition: background 0.15s ease; }
.range-pill.precip-mode { background: rgba(74, 144, 226, 0.22); border-color: rgba(74, 144, 226, 0.35); }
.tap-hint { margin: 14px 0 4px; text-align: center; font-size: 12px; color: var(--text-muted); }

.hourly-view { padding: 4px 14px 12px; }
.hourly-day-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding: 0 2px; }
.hourly-back-pill { border: none; background: var(--brand-soft); color: var(--brand-dark); font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.hourly-day-heading { font-size: 13.5px; font-weight: 700; color: var(--text-secondary); }
.hourly-chart { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: stretch; padding: 2px 2px 6px; }
.hourly-sky-bar { width: 22px; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; background: #a4a8b0; }
.sky-seg { flex: 1; min-height: 36px; }
.sky-clear { background: #dceeff; }
.sky-partly { background: #c5cdd8; }
.sky-cloudy { background: #a7acb5; }
.sky-overcast { background: #8c919b; }
.sky-rain { background: #5f83a8; }
.sky-storm { background: #475d7a; }
.sky-snow { background: #b7d3ec; }
.hourly-rows { display: flex; flex-direction: column; }
.hourly-row { display: grid; grid-template-columns: 52px 1fr; align-items: center; min-height: 40px; gap: 6px; }
.hourly-time { font-size: 13px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hourly-track { position: relative; height: 32px; display: flex; align-items: center; }
.hourly-cond-label {
  position: relative; z-index: 2; font-size: 12.5px; font-style: italic; font-weight: 500;
  color: var(--text-secondary); background: var(--bg-app); padding-right: 8px;
  white-space: nowrap; max-width: 118px; overflow: hidden; text-overflow: ellipsis;
}
.hourly-leader { position: absolute; left: 0; top: 50%; height: 1px; background: var(--hourly-line); z-index: 1; }
.hourly-val-pill {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  min-width: 44px; height: 27px; padding: 0 9px; border-radius: 999px;
  background: var(--hourly-pill-bg); border: 1px solid var(--hourly-pill-border);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13.5px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.hourly-val-pill.precip-mode { background: rgba(74, 144, 226, 0.16); border-color: rgba(74, 144, 226, 0.35); color: var(--brand-dark); }
.hourly-footer { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); text-align: center; display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: var(--text); }
.hourly-footer-sub { font-size: 13px; color: var(--text-secondary); }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(10, 16, 28, 0.56); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; padding: 12px; }
@media (min-width: 481px) { .modal-backdrop { align-items: center; } }
.modal-sheet { width: 100%; max-width: 420px; max-height: 90dvh; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-modal); display: flex; flex-direction: column; overflow: hidden; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 12px; border-bottom: 1px solid var(--border); }
.modal-header h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--text); }
.close-btn { width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--surface-muted); color: var(--text-secondary); font-size: 20px; line-height: 1; cursor: pointer; }
.modal-body { padding: 16px 18px 20px; overflow-y: auto; }
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 700; color: var(--text); }
.field input[type="text"], .field input[type="email"] {
  width: 100%; height: 46px; padding: 0 13px; border-radius: 12px;
  border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-size: 15px; font-weight: 500; outline: none; transition: border-color 0.15s ease;
}
.field input:focus { border-color: var(--brand); }
.zip-preview { font-size: 12.5px; font-weight: 600; color: #15803d; }
.zip-preview.error { color: #b91c1c; }
.units-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.unit-card {
  display: flex; align-items: flex-start; gap: 8px; padding: 11px;
  border: 1.5px solid var(--border-strong); border-radius: 13px; background: var(--surface);
  cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.unit-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.unit-card input { margin-top: 2px; accent-color: var(--brand); }
.unit-card-body { display: flex; flex-direction: column; gap: 2px; }
.unit-title { font-size: 13.5px; font-weight: 700; color: var(--text); }
.unit-sub { font-size: 11.5px; color: var(--text-secondary); }
.incognito-modal-note { padding: 9px 11px; border-radius: 10px; background: var(--surface-muted); border: 1px solid var(--border); font-size: 12px; color: var(--text-secondary); }
.primary-btn { width: 100%; height: 48px; border: none; border-radius: 14px; background: var(--brand); color: #ffffff; font-size: 15px; font-weight: 700; cursor: pointer; transition: background 0.15s ease, transform 0.12s ease; }
.primary-btn:hover { background: var(--brand-dark); }
.primary-btn:active { transform: scale(0.985); }
.primary-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.form-error { padding: 10px 12px; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 13px; font-weight: 600; }
.oauth-desc { margin: 0 0 14px; font-size: 14px; line-height: 1.45; color: var(--text-secondary); }

.settings-account-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: 13px; background: var(--surface-muted); border: 1px solid var(--border); margin-bottom: 14px; }
.settings-account-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.settings-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #ffffff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.account-name { font-size: 13.5px; font-weight: 700; color: var(--text); }
.account-email { font-size: 12px; color: var(--text-muted); }
.account-provider-pill { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); text-transform: capitalize; flex-shrink: 0; }
.settings-extra-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.settings-divider { height: 1px; background: var(--border); margin: 2px 0 6px; }
.settings-action-row { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-muted); color: var(--text); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.settings-action-value { font-size: 12.5px; color: var(--text-secondary); }
.settings-logout-btn { width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid rgba(220, 38, 38, 0.25); background: transparent; color: #dc2626; font-size: 13.5px; font-weight: 700; cursor: pointer; }

.install-guide-body { display: flex; flex-direction: column; gap: 16px; }
.install-hero { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: var(--surface-muted); border: 1px solid var(--border); }
.install-hero-icon { border-radius: 14px; flex-shrink: 0; }
.install-hero-name { font-size: 15px; font-weight: 800; color: var(--text); }
.install-hero-sub { font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; }
.install-steps { display: flex; flex-direction: column; gap: 6px; }
.install-step-heading { font-size: 13px; font-weight: 700; color: var(--text); }
.steps-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.45; color: var(--text-secondary); }
.ios-share-pill { display: inline-block; padding: 1px 6px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: 12px; }

html[data-theme="dark"] {
  --bg-desktop: #060a12; --bg-app: #0d1422; --bg-auth: #0b1220; --surface: #131c2e; --surface-muted: #19243a;
  --border: #23314c; --border-strong: #324568; --text: #f1f5f9; --text-secondary: #a8b7ce; --text-muted: #788ba8;
  --brand: #2589ff; --brand-dark: #60a5fa; --brand-soft: rgba(37, 137, 255, 0.16); --precip-blue: #60a5fa;
  --range-pill-bg: #22304a; --range-pill-border: #314364; --hourly-line: #263552;
  --hourly-pill-bg: #1c283f; --hourly-pill-border: #314364;
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.32); --shadow-modal: 0 24px 64px rgba(0, 0, 0, 0.65); color-scheme: dark;
}
html[data-theme="dark"] .weather-header { background: rgba(13, 20, 34, 0.92); }
html[data-theme="dark"] .circle-icon-btn { border-color: #4b5e7e; color: #cbd5e1; }
html[data-theme="dark"] .provider-btn.google { background: #1b273e; color: #f8fafc; border-color: var(--border-strong); }
html[data-theme="dark"] .provider-btn.github { background: #1f2937; border-color: var(--border-strong); }
html[data-theme="dark"] .metric-pill { border-color: #3b82f6; color: #60a5fa; }
html[data-theme="dark"] .metric-pill.active { background: var(--brand); border-color: var(--brand); color: #ffffff; }
html[data-theme="dark"] .settings-logout-btn { color: #f87171; border-color: rgba(248, 113, 113, 0.35); }
html[data-theme="dark"] .form-error, html[data-theme="dark"] .weather-error { background: rgba(185, 28, 28, 0.18); border-color: rgba(248, 113, 113, 0.35); color: #fca5a5; }
html[data-theme="dark"] .zip-preview { color: #4ade80; }
html[data-theme="dark"] .zip-preview.error { color: #fca5a5; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg-desktop: #060a12; --bg-app: #0d1422; --bg-auth: #0b1220; --surface: #131c2e; --surface-muted: #19243a;
    --border: #23314c; --border-strong: #324568; --text: #f1f5f9; --text-secondary: #a8b7ce; --text-muted: #788ba8;
    --brand: #2589ff; --brand-dark: #60a5fa; --brand-soft: rgba(37, 137, 255, 0.16); --precip-blue: #60a5fa;
    --range-pill-bg: #22304a; --range-pill-border: #314364; --hourly-line: #263552;
    --hourly-pill-bg: #1c283f; --hourly-pill-border: #314364;
    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.32); --shadow-modal: 0 24px 64px rgba(0, 0, 0, 0.65); color-scheme: dark;
  }
}