/* ==========================================================================
   Supersää Lite — flat, high-contrast weather UI.
   Palette and proportions follow the original IS Supersää web app:
   #FFEC47 header, #FAFAF8 paper, #191919 ink, #0289B0 accent,
   #C8E5EE / #AADAE9→#E1EEF2 weather panels, #F3F3F3 table heads.
   ========================================================================== */

@font-face {
  font-family: "Source Sans Pro";
  src: url("/fonts/source-sans-pro-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("/fonts/source-sans-pro-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Graphik Condensed";
  src: url("/fonts/graphik-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Graphik Condensed";
  src: url("/fonts/graphik-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root,
html[data-theme="light"] {
  --bg: #fafaf8;
  --surface: #ffffff;
  --surface-2: #f3f3f3;
  --surface-3: #e9e9e6;
  --text: #191919;
  --text-2: #6f6f6f;
  --text-3: #8c8c8c;
  --line: #d8d8d8;
  --line-soft: #ececea;
  --accent: #0289b0;
  --accent-deep: #026e8c;
  --accent-soft: #e6f4f8;
  --yellow: #ffec47;
  --red: #e2001a;
  --sky-1: #aadae9;
  --sky-2: #e1eef2;
  --light-blue: #c8e5ee;
  --black: #191919;
  --warn: #ffec47;
  --warn-soft: #fff9cf;
  --danger: #c0392b;
  --font-body: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Graphik Condensed", "Arial Narrow", system-ui, sans-serif;
  --max: 1180px;
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #191919;
  --surface: #242424;
  --surface-2: #2e2e2e;
  --surface-3: #383838;
  --text: #fafaf8;
  --text-2: #b8b8b8;
  --text-3: #8f8f8f;
  --line: #3a3a3a;
  --line-soft: #303030;
  --accent: #4cc4e8;
  --accent-deep: #7bd7f2;
  --accent-soft: #17323a;
  --yellow: #ffec47;
  --red: #ff4b5c;
  --sky-1: #1c3d48;
  --sky-2: #202b30;
  --light-blue: #17323a;
  --black: #fafaf8;
  --warn-soft: #332f12;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #191919;
    --surface: #242424;
    --surface-2: #2e2e2e;
    --surface-3: #383838;
    --text: #fafaf8;
    --text-2: #b8b8b8;
    --text-3: #8f8f8f;
    --line: #3a3a3a;
    --line-soft: #303030;
    --accent: #4cc4e8;
    --accent-deep: #7bd7f2;
    --accent-soft: #17323a;
    --yellow: #ffec47;
    --red: #ff4b5c;
    --sky-1: #1c3d48;
    --sky-2: #202b30;
    --light-blue: #17323a;
    --black: #fafaf8;
    --warn-soft: #332f12;
    color-scheme: dark;
  }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.4 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; padding: 0; }
code { font: .92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); padding: .1em .35em; }
[hidden] { display: none !important; }
::selection { background: var(--yellow); color: #191919; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:disabled { opacity: .55; cursor: not-allowed; }
html:has(dialog[open]) { overflow: hidden; }

.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; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--text); color: var(--bg); padding: 10px 14px; }
.skip-link:focus { top: 10px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.ic.spin, .icon-btn.loading .ic { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- header ---------- */
.topbar { background: var(--yellow); color: #191919; padding-top: var(--safe-t); }
.topbar-inner {
  max-width: var(--max); margin: 0 auto; min-height: 64px; padding: 0 16px;
  display: flex; align-items: center; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 8px; color: #191919; text-decoration: none; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 36px; height: 36px; }
.brand-text { font: 700 32px/1 var(--font-display); color: var(--red); letter-spacing: .005em; }
.brand-lite { background: #191919; color: var(--yellow); font: 700 9px/1 var(--font-body); letter-spacing: .1em; padding: 4px 4px 3px; margin-left: 1px; }
.top-nav { display: flex; gap: 2px; margin-left: auto; }
.top-nav a {
  font: 600 15.5px/1 var(--font-body); color: #191919; padding: 12px;
  display: inline-flex; align-items: center; gap: 6px;
}
.top-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.top-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.top-actions { display: flex; align-items: center; gap: 2px; }
.nav-action {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 10px; color: #191919; font: 600 15px/1 var(--font-body); white-space: nowrap;
}
.nav-action:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-action .ic { width: 22px; height: 22px; }
.count {
  position: absolute; top: 2px; right: 2px; min-width: 15px; height: 15px;
  background: #191919; color: var(--yellow); font: 700 9px/15px var(--font-body);
  text-align: center; padding: 0 3px;
}
.mobile-nav { display: none; }

/* ---------- location bar ---------- */
.location-bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.location-inner {
  max-width: var(--max); margin: 0 auto; min-height: 76px; padding: 10px 16px;
  display: flex; align-items: center; gap: 14px;
}
.location-inner h1 { font: 600 36px/1.1 var(--font-display); letter-spacing: -.01em; min-width: 0; }
.location-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; color: var(--text); }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.small { width: 32px; height: 32px; }
.icon-btn.small .ic { width: 17px; height: 17px; }
.locate-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 13px;
  border: 1px solid var(--text); background: transparent; color: var(--text);
  font: 600 16px/1 var(--font-display); text-transform: uppercase; letter-spacing: .03em;
}
.locate-btn:hover { background: var(--text); color: var(--surface); }
.locate-btn .ic { width: 18px; height: 18px; transform: rotate(45deg); }

/* ---------- current conditions ---------- */
.current-block {
  background: linear-gradient(-180deg, var(--sky-1) 0%, var(--sky-2) 100%);
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.current-inner {
  width: calc(100% - 28px);
  max-width: 1000px; margin-left: max(14px, calc((100vw - 1180px) / 2 + 16px)); margin-right: auto;
  padding: 22px 0 34px;
  display: grid; grid-template-columns: minmax(0, 1fr) 308px; gap: 30px; align-items: stretch;
}
.current-main { min-width: 0; }
.current-date { font: 600 21px/1.15 var(--font-display); letter-spacing: .005em; }
.current-date time { font-variant-numeric: tabular-nums; }
.sun-times { display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin-top: 5px; font: 400 14px/1 var(--font-body); }
.sun-times-ic { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.current-providers { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-top: 20px; }
.provider { min-width: 0; }
.provider-now { display: flex; align-items: center; gap: 10px; min-height: 96px; }
.provider-icon { width: 118px; height: 118px; flex: 0 0 auto; margin-left: -10px; }
.provider-temp { font: 600 48px/0.95 var(--font-display); letter-spacing: -.015em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wind-badge {
  width: 27px; height: 27px; border: 1.6px solid var(--text); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 12px/1 var(--font-body); margin-left: 4px; flex: 0 0 auto;
}
.wind-badge.small { width: 22px; height: 22px; font-size: 10.5px; border-width: 1.4px; margin-left: 2px; }
.wind-unit { font: 400 11.5px/1 var(--font-body); color: var(--text-2); }
.provider-head { font: 700 14px/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .015em; margin-top: 4px; }
.provider-mini { margin-top: 10px; display: grid; gap: 3px; max-width: 255px; }
.provider-mini li { display: flex; justify-content: space-between; gap: 12px; font: 400 14px/1.45 var(--font-body); }
.provider-mini b { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }

.install-card {
  background: var(--surface); color: var(--text); padding: 20px 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  border: 1px solid rgba(25, 25, 25, .06);
}
.install-logo { width: 50px; height: 50px; }
.install-card h3 { font: 600 27px/1.05 var(--font-display); margin: 8px 0 6px; }
.install-card p { font-size: 14px; line-height: 1.35; margin-bottom: 14px; }
.install-card .btn { width: 100%; margin-top: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 8px 14px; border: 1px solid var(--text);
  background: var(--surface); color: var(--text); text-decoration: none;
  font: 600 14px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .02em;
}
.btn .ic { width: 17px; height: 17px; }
.btn:hover { background: var(--text); color: var(--surface); text-decoration: none; }
.btn.black { background: var(--text); color: var(--surface); border-color: var(--text); }
.btn.black:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.outline { background: transparent; }
.btn.outline:hover { background: var(--text); color: var(--surface); }
.btn.wide { width: 100%; }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: #fff; }
.text-btn { color: var(--text); font: 600 15px/1 var(--font-body); text-decoration: underline; text-underline-offset: 3px; padding: 8px 2px; }

/* ---------- content ---------- */
.shell { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.content-shell { padding-top: 26px; padding-bottom: 48px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 308px; gap: 40px; max-width: 1000px; align-items: start; }
.main-col { min-width: 0; }
.side-col { display: grid; gap: 18px; align-content: start; }
.section { margin-bottom: 30px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.section-head h2 { font: 600 24px/1.1 var(--font-display); letter-spacing: -.005em; }
.eyebrow { font: 700 10.5px/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .07em; color: var(--text-2); margin-bottom: 4px; }
.error-text { margin-top: 10px; max-width: 60ch; color: var(--text-2); }
.chip { font: 700 12px/1.2 var(--font-body); letter-spacing: .02em; color: var(--text); white-space: nowrap; }
.chip.accent { color: var(--accent); }
.empty { padding: 22px; text-align: center; color: var(--text-2); font-size: 14px; }
.muted { color: var(--text-2); }
.small { font-size: 12px; }

/* ---------- weather tables ---------- */
.wx-table { width: 100%; border-collapse: collapse; table-layout: fixed; background: var(--surface); border-bottom: 1px solid var(--line); }
.wx-table th {
  background: var(--surface-2); color: var(--text); text-align: left;
  font: 700 11px/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .015em;
  padding: 9px 8px; border-bottom: 1px solid var(--line);
}
.wx-table td { padding: 8px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.wx-table tr:last-child td { border-bottom: 0; }
.hours-table th:first-child { width: 58px; }
.hours-table th.time-head { color: var(--accent); }
.hours-table th:nth-child(2), .hours-table th:nth-child(3) { width: auto; }
.wx-row { cursor: pointer; }
.wx-row:hover, .wx-row:focus-visible { background: var(--surface-2); }
.wx-row.now .wx-time { font-weight: 700; }
.wx-time { font: 400 16px/1.2 var(--font-body); font-variant-numeric: tabular-nums; color: var(--text); }
.wx-cell { display: flex; align-items: center; gap: 3px; min-width: 0; }
.wx-ic { width: 38px; height: 38px; flex: 0 0 auto; }
.wx-temp { font: 600 22px/1 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell-sub { display: flex; align-items: center; gap: 4px; margin-left: 41px; margin-top: 1px; font: 400 11.5px/1.2 var(--font-body); color: var(--text-2); white-space: nowrap; }
.cell-sub .drop-ic { width: 11px; height: 11px; stroke-width: 2.2; color: var(--text-2); }
.cell-sub .sep { color: var(--line); }

.days-table th:first-child { width: 62px; }
.days-table th:last-child { width: 62px; }
.days-table td { padding-top: 9px; padding-bottom: 9px; }
.day-date { display: flex; flex-direction: column; gap: 1px; }
.day-date b { font: 700 11px/1 var(--font-body); text-transform: uppercase; letter-spacing: .03em; }
.day-date span { font: 400 11px/1 var(--font-body); color: var(--text-2); }
.day-cell { gap: 2px; }
.day-temps { display: flex; flex-direction: column; line-height: 1.05; }
.day-temps b { font: 600 21px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.day-temps span { font: 400 11px/1 var(--font-body); color: var(--text-2); font-variant-numeric: tabular-nums; }
.day-rain { text-align: right; font: 400 10.5px/1.2 var(--font-body); color: var(--text-2); }
.day-rain .bar { display: block; height: 3px; background: var(--surface-3); margin-bottom: 3px; overflow: hidden; }
.day-rain .bar i { display: block; height: 100%; background: var(--accent); }
.rain-head { text-align: right !important; }

/* ---------- extra metrics ---------- */
.extra-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mini-card { background: var(--surface); padding: 14px 14px 13px; }
.mini-card h3 { font: 700 10.5px/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); margin-bottom: 7px; }
.mini-card .big { font: 600 31px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.mini-card .sub { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.metric-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 2px 0; }
.metric-row span { color: var(--text-2); }
.metric-row b { font-weight: 700; font-variant-numeric: tabular-nums; }
.wind-arrow { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; }

/* ---------- sidebar panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
  padding: 9px 12px; font: 700 11.5px/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .03em;
}
.panel-meta { font: 400 11px/1.2 var(--font-body); color: var(--text-2); text-transform: none; letter-spacing: 0; }
.panel-body { padding: 12px; }
.panel-body p { font-size: 12.5px; }
.panel-body p + p { margin-top: 6px; }

.radar-preview .preview-map, .preview-map { position: relative; aspect-ratio: 3 / 2; background: #d7e6ec; overflow: hidden; }
.preview-map img.tile { position: absolute; width: 33.333%; height: 50%; object-fit: cover; }
.preview-map img.tile.radar { mix-blend-mode: multiply; }
html[data-theme="dark"] .preview-map img.tile.radar { mix-blend-mode: screen; opacity: .9; }
html[data-theme="dark"] .preview-map img.tile:not(.radar) { filter: brightness(.82); }
.preview-map .marker { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 0 0 3px rgb(2 137 176 / 22%); transform: translate(-50%, -50%); }
.preview-body { display: flex; align-items: center; gap: 8px; padding: 9px 12px 10px; }
.preview-body p { font-size: 11.5px; color: var(--text-2); }
.preview-body .btn { min-height: 34px; padding: 6px 10px; font-size: 12px; flex: 0 0 auto; }

.sun-card { padding: 10px 10px 8px; }
.sun-arc { width: 100%; height: auto; }
.sun-pair { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-2); }
.sun-pair b { display: block; color: var(--text); font: 600 18px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.pollen-list { display: grid; gap: 6px; }
.pollen-item { display: grid; grid-template-columns: 62px 1fr 18px; align-items: center; gap: 7px; font-size: 12px; }
.pollen-dots { display: flex; gap: 3px; }
.pollen-dots i { flex: 1; height: 6px; background: var(--surface-3); }
.pollen-dots i.on { background: #4caf50; }
.pollen-dots i.mid { background: #f2b705; }
.pollen-dots i.high { background: var(--danger); }
.pollen-item b { text-align: right; font-weight: 700; }
.install-side { background: var(--light-blue); padding: 18px 16px; text-align: center; }
.install-side .install-logo { margin: 0 auto 4px; }
.install-side h3 { font: 600 24px/1 var(--font-display); }
.install-side p { font-size: 12.5px; margin: 5px 0 12px; }

/* ---------- warnings ---------- */
.warning {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--warn-soft); border: 1px solid var(--yellow); border-left: 6px solid var(--yellow);
  padding: 12px 14px; margin: 18px 0 0;
}
.warning .ic { color: #191919; margin-top: 1px; }
.warning strong { display: block; font: 700 14px/1.3 var(--font-body); }
.warning p { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.warning details { margin-top: 6px; }
.warning summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.warning .warning-body { white-space: pre-line; font-size: 12.5px; color: var(--text-2); margin-top: 5px; }
.warning.red { background: #fdecea; border-color: #c0392b; border-left-color: #c0392b; }

/* ---------- radar page ---------- */
.page-head { align-items: flex-start; margin: 8px 0 14px; }
.page-head h1 { font: 600 38px/1.05 var(--font-display); margin-top: 2px; }
.lead { color: var(--text-2); margin-top: 6px; max-width: 62ch; font-size: 15px; }
.radar-shell { border: 1px solid var(--line); background: var(--surface); }
.radar-map { position: relative; height: min(62vh, 620px); min-height: 380px; background: #b8d3e2; overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.radar-map.dragging { cursor: grabbing; }
.radar-map .tile { position: absolute; width: 256px; height: 256px; pointer-events: none; user-select: none; }
.radar-map .tile.radar { mix-blend-mode: multiply; }
html[data-theme="dark"] .radar-map .tile.radar { mix-blend-mode: screen; opacity: .9; }
html[data-theme="dark"] .radar-map .tile:not(.radar) { filter: brightness(.82); }
.radar-map .marker { position: absolute; z-index: 5; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 4px rgb(2 137 176 / 25%); transform: translate(-50%, -50%); pointer-events: none; }
.radar-map .marker::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgb(2 137 176 / 45%); }
.radar-controls { position: absolute; top: 10px; right: 10px; z-index: 6; display: grid; gap: 4px; }
.radar-controls button { width: 38px; height: 38px; border: 1px solid var(--text); background: var(--surface); color: var(--text); display: grid; place-items: center; }
.radar-controls button:hover { background: var(--text); color: var(--surface); }
.radar-controls .ic { width: 18px; height: 18px; }
.radar-legend { position: absolute; left: 10px; bottom: 62px; z-index: 6; background: var(--surface); border: 1px solid var(--line); padding: 6px 8px; font-size: 9.5px; color: var(--text-2); display: flex; gap: 5px; align-items: center; flex-wrap: wrap; max-width: calc(100% - 20px); }
.radar-legend i { width: 14px; height: 7px; }
.radar-legend span { display: inline-flex; align-items: center; gap: 3px; }
.radar-timeline { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.radar-timeline .play { width: 38px; height: 38px; background: var(--text); color: var(--surface); display: grid; place-items: center; flex: 0 0 auto; }
.radar-timeline .play .ic { width: 18px; height: 18px; }
.radar-timeline input[type="range"] { flex: 1; accent-color: var(--accent); min-width: 0; }
.radar-time { font: 600 13px/1.2 var(--font-body); font-variant-numeric: tabular-nums; min-width: 84px; text-align: right; }
.radar-time small { display: block; color: var(--text-3); font-size: 10px; font-weight: 400; }
.radar-note { padding: 10px 14px 12px; color: var(--text-3); font-size: 11px; }
.radar-error { padding: 26px; text-align: center; color: var(--text-2); border: 1px solid var(--line); background: var(--surface); }

/* ---------- about ---------- */
.about { max-width: 900px; margin: 18px auto 36px; padding: 0 16px; }
.about h1 { font: 600 42px/1.05 var(--font-display); margin-bottom: 10px; }
.about h2 { font: 600 21px/1.15 var(--font-display); margin-bottom: 8px; }
.about .lead { font-size: 17px; margin-bottom: 18px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
.card { background: var(--surface); border: 1px solid var(--line); }
.card.pad, .about-block { padding: 20px; }
.about-block { margin: 12px 0; }
.about-block p { color: var(--text-2); font-size: 14px; margin: 6px 0; }
.checklist li { position: relative; padding-left: 23px; margin: 6px 0; font-size: 14px; color: var(--text-2); }
.checklist li::before { content: "✓"; position: absolute; left: 2px; color: #1f8a5b; font-weight: 800; }
.checklist.cross li::before { content: "×"; color: var(--danger); font-size: 17px; top: -1px; }
.privacy-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.privacy-facts div { background: var(--surface-2); padding: 12px 6px; text-align: center; }
.privacy-facts b { display: block; font: 600 32px/1 var(--font-display); color: var(--accent); }
.privacy-facts span { display: block; font-size: 10.5px; color: var(--text-2); margin-top: 3px; line-height: 1.25; }
.disclaimer { font-size: 11.5px; color: var(--text-3); margin-top: 18px; line-height: 1.5; }
.text-link { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; }
.text-link .ic { width: 14px; height: 14px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 20px; padding: 22px 0 28px; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 16px; display: flex; gap: 18px; justify-content: space-between; align-items: flex-start; color: var(--text-2); font-size: 12px; }
.footer strong { color: var(--text); font: 700 18px/1 var(--font-display); }
.footer p { margin-top: 4px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--accent); }

/* ---------- dialogs ---------- */
dialog.sheet {
  padding: 0; border: 1px solid var(--text); background: var(--surface); color: var(--text);
  width: min(560px, calc(100vw - 24px)); max-height: min(86vh, 760px); overflow: hidden;
}
dialog.sheet::backdrop { background: rgb(25 25 25 / 52%); }
dialog.sheet[open] { animation: pop .16s ease both; }
@keyframes pop { from { opacity: .5; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 2; }
.sheet-head h2 { font: 600 22px/1.1 var(--font-display); }
.sheet-head > .text-btn { margin-left: auto; }
.sheet-body { padding: 13px; overflow: auto; max-height: calc(86vh - 60px); overscroll-behavior: contain; }
.search-field { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; background: var(--surface); border: 1px solid var(--text); height: 44px; padding: 0 8px 0 10px; }
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.search-field .ic { width: 19px; height: 19px; color: var(--text-2); }
.search-field input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; font-size: 16px; height: 100%; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.sheet-label { font: 700 10.5px/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin: 3px 2px 7px; }
.result-list { display: grid; gap: 1px; }
.result { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; padding: 9px 7px; color: var(--text); }
.result:hover, .result[aria-selected="true"] { background: var(--surface-2); }
.result .pin { width: 30px; height: 30px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: 0 0 auto; }
.result .pin .ic { width: 16px; height: 16px; }
.result b { display: block; font: 600 14.5px/1.2 var(--font-body); }
.result small { display: block; color: var(--text-2); font-size: 11.5px; }
.result .chev { margin-left: auto; color: var(--text-3); width: 15px; height: 15px; }
.empty { text-align: center; color: var(--text-2); font-size: 13px; padding: 24px 10px; }
.fav-list { display: grid; gap: 6px; margin-bottom: 8px; }
.fav-item { display: flex; align-items: center; gap: 7px; padding: 8px; background: var(--surface-2); }
.fav-open { flex: 1; text-align: left; min-width: 0; padding: 2px; }
.fav-open b { display: block; font-size: 14.5px; }
.fav-open small { color: var(--text-2); font-size: 11.5px; }
.fav-temp { font: 600 21px/1 var(--font-display); color: var(--accent); margin-right: 3px; }
.settings fieldset { border: 0; padding: 0; margin: 0 0 15px; }
.settings legend { font: 700 10.5px/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin-bottom: 5px; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.segmented button { padding: 9px 6px; font: 600 12.5px/1.2 var(--font-body); color: var(--text-2); background: var(--surface); }
.segmented button[aria-pressed="true"] { background: var(--text); color: var(--surface); }
.settings-row { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); }
.settings-row strong { font-size: 14px; }
.settings-row .muted { margin-top: 1px; }
.hour-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hour-detail-grid .provider { border: 1px solid var(--line); padding: 12px; }
.hour-detail-grid .provider-icon { width: 86px; height: 86px; }
.hour-detail-grid .provider-temp { font-size: 38px; }
.hour-detail-grid .provider-mini { max-width: none; }
@media (max-width: 420px) { .hour-detail-grid { grid-template-columns: 1fr; } }

/* ---------- report ---------- */
.report-top { background: var(--yellow); color: #191919; }
.report-top-inner { max-width: 900px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.report { max-width: 860px; margin: 0 auto; padding: 30px 16px 60px; }
.report h1 { font: 600 42px/1.06 var(--font-display); margin: 4px 0 12px; letter-spacing: -.01em; }
.report h2 { font: 600 26px/1.1 var(--font-display); margin: 34px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--text); }
.report p { font-size: 15.5px; line-height: 1.55; color: var(--text-2); margin: 9px 0; }
.report .lead { font-size: 18px; color: var(--text); }
.report code { background: var(--surface-2); color: var(--text); padding: .08em .3em; font-size: .9em; }
.report-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 20px 0; }
.report-summary div { background: var(--surface); padding: 14px 10px; text-align: center; }
.report-summary b { display: block; font: 600 34px/1 var(--font-display); color: var(--accent); }
.report-summary span { display: block; font-size: 10.5px; color: var(--text-2); margin-top: 4px; line-height: 1.25; }
.report-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13.5px; }
.report-table th { background: var(--surface-2); text-align: left; padding: 8px; font: 700 11px/1.2 var(--font-body); text-transform: uppercase; border: 1px solid var(--line); }
.report-table td { padding: 8px; border: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.report-list { margin: 10px 0; }
.report-list li { position: relative; padding-left: 16px; margin: 5px 0; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.report-list li::before { content: "•"; position: absolute; left: 1px; color: var(--accent); font-weight: 700; }
.report-code { background: #191919; color: #fafaf8; padding: 12px 14px; overflow-x: auto; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; margin: 12px 0; }
.report .note { background: var(--surface-2); border-left: 4px solid var(--accent); padding: 10px 12px; font-size: 13.5px; }
.report .disclaimer { font-size: 11.5px; color: var(--text-3); margin-top: 26px; }
@media (max-width: 700px) {
  .report h1 { font-size: 32px; }
  .report-summary { grid-template-columns: 1fr 1fr; }
  .report-table { display: block; overflow-x: auto; }
  .report-top-inner .btn { display: none; }
}

/* ---------- toast / offline ---------- */
.toast {
  position: fixed; left: 50%; bottom: 18px; z-index: 120; transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--surface); padding: 10px 15px; font-size: 12.5px; font-weight: 600;
  transition: .18s; max-width: calc(100vw - 30px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.offline { display: flex; align-items: center; gap: 8px; justify-content: center; background: var(--yellow); color: #191919; padding: 7px 14px; font-size: 12px; font-weight: 600; }
.offline .ic { width: 16px; height: 16px; }

/* ---------- skeleton ---------- */
.sk { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.sk-line { height: 12px; }
.sk-title { height: 34px; width: 58%; }
.sk-panel { height: 170px; }
.sk-provider { height: 190px; }
.sk-chart { height: 170px; }
.sk-row { height: 58px; margin: 6px 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1099px) {
  .current-providers { gap: 24px; }
  .provider-icon { width: 100px; height: 100px; }
  .provider-temp { font-size: 42px; }
  .layout { gap: 24px; }
}

@media (max-width: 899px) {
  .topbar-inner { min-height: 58px; gap: 10px; }
  .brand-logo { width: 30px; height: 30px; }
  .brand-text { font-size: 27px; }
  .top-nav { display: none; }
  .nav-action { padding: 9px; }
  .nav-action span:not(.count) { display: none; }
  .nav-action .ic { width: 23px; height: 23px; }
  .mobile-nav {
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: #191919; color: #fff; height: 46px;
  }
  .mobile-nav a {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    color: #fff; font: 700 11px/1 var(--font-body); text-transform: uppercase; letter-spacing: .06em;
    border-bottom: 3px solid transparent; padding-top: 2px;
  }
  .mobile-nav a:hover { text-decoration: none; }
  .mobile-nav a[aria-current="page"] { color: var(--yellow); border-bottom-color: var(--yellow); }
  .mobile-nav .ic { width: 17px; height: 17px; }
  .location-inner { min-height: 62px; padding: 8px 14px; gap: 8px; }
  .location-inner h1 { font-size: 31px; }
  .locate-btn { height: 40px; font-size: 14px; padding: 0 11px; }
  .locate-btn .ic { width: 15px; height: 15px; }
  .location-actions .icon-btn { width: 36px; height: 36px; }
  .location-actions .icon-btn .ic { width: 20px; height: 20px; }
  .current-inner { grid-template-columns: 1fr; width: auto; margin-left: 0; margin-right: 0; padding: 15px 14px 24px; }
  .install-card { display: none; }
  .current-providers { gap: 10px; margin-top: 16px; }
  .provider-icon { width: 88px; height: 88px; margin-left: -5px; }
  .provider-temp { font-size: 42px; }
  .provider-now { min-height: 76px; gap: 5px; }
  .wind-badge { width: 23px; height: 23px; font-size: 10.5px; }
  .wind-unit { font-size: 10.5px; }
  .provider-head { font-size: 12px; }
  .provider-mini { max-width: none; gap: 2px; }
  .provider-mini li { font-size: 12px; }
  .content-shell { padding: 20px 14px 34px; }
  .layout { grid-template-columns: 1fr; gap: 24px; }
  .side-col { gap: 14px; }
  .section { margin-bottom: 24px; }
  .section-head h2 { font-size: 21px; }
  .wx-table th { padding: 8px 5px; }
  .wx-table td { padding: 7px 5px; }
  .hours-table th:first-child { width: 50px; }
  .wx-time { font-size: 14px; }
  .wx-ic { width: 33px; height: 33px; }
  .wx-temp { font-size: 20px; }
  .cell-sub { margin-left: 36px; font-size: 10.5px; }
  .wind-badge.small { width: 20px; height: 20px; font-size: 9.5px; }
  .days-table th:first-child { width: 50px; }
  .days-table th:last-child { width: 52px; }
  .day-temps b { font-size: 19px; }
  .footer-inner { flex-direction: column; gap: 12px; }
  .radar-map { height: min(52vh, 520px); min-height: 320px; }
  .about { padding: 0 14px; }
  .about-grid { grid-template-columns: 1fr; }
  .about h1 { font-size: 34px; }
  .privacy-facts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 400px) {
  .brand-text { font-size: 26px; }
  .brand-lite { font-size: 8px; }
  .brand-logo { width: 29px; height: 29px; }
  .provider-icon { width: 82px; height: 82px; }
  .provider-temp { font-size: 42px; }
  .provider-mini li { font-size: 12.5px; }
  .wind-badge { width: 21px; height: 21px; font-size: 10px; }
  .provider-now .wind-unit { display: none; }
  .location-inner h1 { font-size: 31px; }
  .locate-btn { font-size: 14px; padding: 0 9px; }
  .location-actions .icon-btn { width: 32px; height: 32px; }
  .wx-ic { width: 29px; height: 29px; }
  .wx-temp { font-size: 18px; }
  .cell-sub { margin-left: 31px; }
}

/* Mobile bottom sheet */
@media (max-width: 360px) {
  .topbar-inner { padding: 0 10px; gap: 6px; }
  .brand-text { font-size: 22px; }
  .brand-logo { width: 26px; height: 26px; }
  .brand-lite { display: none; }
  .nav-action { padding: 8px 7px; }
  .nav-action .ic { width: 21px; height: 21px; }
  .location-inner { padding: 8px 10px; }
  .location-inner h1 { font-size: 24px; }
  .locate-btn { font-size: 12px; padding: 0 7px; }
  .location-actions .icon-btn { width: 30px; height: 30px; }
  .current-inner { padding: 13px 10px 22px; }
  .current-providers { gap: 8px; }
  .provider-icon { width: 70px; height: 70px; }
  .provider-temp { font-size: 34px; }
  .provider-now { gap: 3px; }
  .provider-mini li { font-size: 11px; }
  .wind-badge { width: 20px; height: 20px; font-size: 9.5px; }
  .content-shell { padding-left: 10px; padding-right: 10px; }
}

@media (max-width: 600px) {
  dialog.sheet { width: 100%; max-width: none; max-height: 88dvh; margin: auto 0 0; border-left: 0; border-right: 0; border-bottom: 0; }
  .sheet-body { max-height: calc(88dvh - 60px); }
}

@media print {
  .topbar, .mobile-nav, .location-actions, .footer, .skip-link, .toast, .offline, .btn, .install-card { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .panel { border-color: #ccc; }
}
