/* Generated by scripts/build-css.py. Edit the component styles, then rebuild. */

/* === style.css === */
:root {
  color-scheme: dark;
  --bg: #080e1a;
  --surface: #111c2e;
  --surface-2: #172338;
  --text: #f1f5fc;
  --muted: #96a7bf;
  --line: #ffffff10;
  --accent: #80baff;
  --rain: #71d5f7;
  --warm: #ffc981;
  --nav: #0b1323f5;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --top: calc(56px + var(--safe-top));
  --bottom: calc(64px + var(--safe-bottom));
  --rail: 210px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #edf2f9;
  --surface: #fff;
  --surface-2: #e3eaf5;
  --text: #15253c;
  --muted: #54677f;
  --line: #11284414;
  --accent: #2466aa;
  --rain: #076e9c;
  --nav: #f4f7fcf5;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] {
    color-scheme: light;
    --bg: #edf2f9;
    --surface: #fff;
    --surface-2: #e3eaf5;
    --text: #15253c;
    --muted: #54677f;
    --line: #11284414;
    --accent: #2466aa;
    --rain: #076e9c;
    --nav: #f4f7fcf5;
  }
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body {
  height: 100dvh;
  overflow: hidden;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  touch-action: manipulation;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
button {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 11px;
  padding: 10px 14px;
  min-height: 44px;
}
button:hover {
  filter: brightness(1.13);
}
button:active {
  transform: scale(0.98);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 25px;
  letter-spacing: -0.7px;
  margin-bottom: 0;
  font-weight: 650;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
  font-weight: 600;
}
h3 {
  font-size: 16px;
  margin-bottom: 10px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: var(--muted);
  display: block;
  margin-bottom: 12px;
}
.fine,
.muted {
  color: var(--muted);
  line-height: 1.65;
}
.fine {
  font-size: 11px;
}
.muted {
  font-size: 13px;
}
.surface {
  background: linear-gradient(
    145deg,
    var(--surface),
    color-mix(in srgb, var(--surface), var(--bg) 25%)
  );
  border: 1px solid var(--line);
  border-radius: 16px;
}
.app-rail {
  width: var(--rail);
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--bg);
  border-right: 1px solid var(--line);
  padding: 30px 20px;
  z-index: 1100;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -1px;
  color: var(--text);
  text-decoration: none;
}
.brand img,
.mobile-brand img {
  border-radius: 10px;
}
.rail-caption {
  font-size: 7px;
  letter-spacing: 1.4px;
  display: block;
  margin-top: 20px;
  color: var(--muted);
}
.app-nav {
  display: grid;
  gap: 8px;
  margin-top: 45px;
}
.app-nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  padding: 14px 12px;
  border-radius: 12px;
  font-size: 13px;
  color: var(--muted);
}
.app-nav svg,
.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.app-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--surface);
}
.rail-edition {
  position: absolute;
  bottom: 30px;
  font-size: 10px;
  color: var(--muted);
}
.app-header {
  position: fixed;
  top: 0;
  left: var(--rail);
  right: 0;
  height: var(--top);
  padding: var(--safe-top) 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav);
  border-bottom: 1px solid var(--line);
  z-index: 1001;
  backdrop-filter: blur(24px);
}
.mobile-brand {
  display: none;
}
.location-trigger {
  display: flex;
  align-items: center;
  gap: 16px;
  background: none;
  border: 0;
  padding: 0;
  min-width: 0;
}
.location-overline {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: var(--accent);
}
.location-trigger > span:last-child {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}
.location-trigger strong {
  font-weight: 600;
  max-width: 250px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.icon-button {
  background: none;
  border: 0;
  padding: 10px;
  display: grid;
  place-items: center;
  min-width: 44px;
}
.app-header .icon-button {
  color: var(--muted);
}
.app-header .icon-button:disabled svg {
  animation: spin 1.4s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
main {
  position: absolute;
  left: var(--rail);
  right: 0;
  top: var(--top);
  bottom: 0;
  padding: 18px max(28px, calc((100vw - var(--rail) - 1000px) / 2));
  overflow: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-2) transparent;
}
.screen-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.connection-state {
  font-size: 9px;
  color: var(--muted);
}
#status {
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 12px;
}
body[data-screen="today"] .screen-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.offline-banner {
  font-size: 11px;
  line-height: 1.5;
  background: #ad711826;
  color: var(--warm);
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.today-screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 1000px;
  margin: auto;
}
.current-sky {
  grid-row: span 2;
  min-height: 305px;
  position: relative;
  padding: 16px 20px;
  overflow: hidden;
  border-radius: 20px;
  background: radial-gradient(ellipse at 80% 25%, #4771b730, transparent 70%);
}
.current-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 1;
}
#date {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
  min-width: 0;
}
.save-button {
  background: #a0b4dd10;
  border-color: #a0b4dd10;
  border-radius: 50%;
  font-size: 19px;
  color: var(--muted);
  padding: 0;
  width: 36px;
  min-height: 36px;
  flex-shrink: 0;
}
.save-button[aria-pressed="true"] {
  color: var(--warm);
}
.current-core {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 25px;
}
.temperature {
  font-size: 100px;
  font-weight: 200;
  letter-spacing: -7px;
  line-height: 1;
}
.current-core h2 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.3px;
  margin: 16px 0 10px;
}
.current-range {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0;
}
.current-range b {
  font-weight: 400;
  color: var(--text);
}
.weather-art {
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  filter: drop-shadow(0 15px 30px #0002);
}
.weather-art svg {
  width: 100%;
  height: 100%;
}
.data-badge {
  display: block;
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 16px;
}
.sky-noise {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 77% 18%, #c9deff80 0 1px, transparent 1.5px),
    radial-gradient(circle at 90% 42%, #c9deff60 0 1px, transparent 1.5px),
    radial-gradient(circle at 55% 7%, #c9deff60 0 1px, transparent 1.5px),
    radial-gradient(circle at 49% 55%, #c9deff40 0 1px, transparent 1.5px);
}
body[data-night="true"] .sky-noise {
  opacity: 1;
}
.weather-brief {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  min-height: 68px;
}
.weather-brief > span:nth-child(2) {
  flex: 1;
}
.brief-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #80baff12;
  color: var(--accent);
}
.weather-brief small {
  display: block;
  font-size: 7px;
  letter-spacing: 1.3px;
  color: var(--accent);
  margin-bottom: 5px;
}
.weather-brief strong {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  display: block;
}
.weather-brief > span:last-child {
  color: var(--muted);
  font-size: 20px;
}
.hour-preview {
  padding: 14px 14px 9px;
  min-width: 0;
}
.section-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}
.section-line a {
  font-size: 10px;
  letter-spacing: 0;
  text-decoration: none;
}
.preview-hours {
  display: flex;
  gap: 12px;
  overflow: auto;
  scrollbar-width: none;
}
.preview-hour {
  background: none;
  border: 0;
  padding: 0;
  flex: 0 0 43px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 65px;
}
.preview-hour small {
  font-size: 8px;
  color: var(--muted);
  white-space: nowrap;
}
.preview-hour svg {
  width: 34px;
  height: 28px;
  margin: 3px 0;
}
.preview-hour strong {
  font-size: 14px;
  font-weight: 500;
}
.preview-hour .rain-chance {
  font-size: 7px;
  color: var(--rain);
  margin-top: 4px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  grid-column: 1/-1;
}
.metric-grid button {
  min-height: 90px;
  text-align: left;
  border-radius: 15px;
  background: var(--surface);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}
.metric-grid button > span {
  display: block;
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 6px;
}
.metric-grid strong {
  display: block;
  font-size: 24px;
  font-weight: 550;
  letter-spacing: -0.5px;
}
.metric-grid small {
  display: block;
  font-size: 9px;
  margin-top: 4px;
  color: var(--muted);
  max-width: 85%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.metric-symbol {
  font-size: 26px;
  color: var(--accent);
  position: absolute;
  right: 17px;
  top: 32px;
  font-style: normal;
  opacity: 0.7;
}
.rain-symbol {
  color: var(--rain);
}
.sun-strip {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  padding: 12px 16px;
  min-height: 58px;
}
.sun-small {
  font-size: 24px;
  color: var(--warm);
}
.sun-strip > span:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 75px;
}
.sun-strip small {
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--muted);
}
.sun-strip strong {
  font-size: 13px;
  font-weight: 500;
}
.daylight-track {
  flex: 1;
  height: 3px;
  background: var(--line);
  border-radius: 5px;
  overflow: hidden;
}
.daylight-track i {
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #db864a, var(--warm));
  border-radius: 5px;
}
.sun-strip-end {
  font-size: 10px;
  color: var(--muted);
}
.today-actions {
  grid-column: 1/-1;
  display: flex;
  gap: 12px;
}
.today-actions button {
  flex: 1;
  min-height: 46px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.count-badge {
  min-width: 19px;
  height: 19px;
  border-radius: 6px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: 10px;
}
#show-alerts[data-has-alerts="true"] {
  border-color: #f9b46b55;
  color: var(--warm);
}
.segmented {
  display: flex;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  gap: 3px;
}
.segmented button {
  flex: 1;
  background: none;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  min-height: 36px;
  font-size: 12px;
  padding: 7px 12px;
}
.segmented button[aria-pressed="true"] {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: 0 2px 6px #0002;
}
.forecast-tabs {
  margin-bottom: 18px;
}
.forecast-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.metric-switch {
  display: flex;
  gap: 7px;
}
.metric-switch button {
  font-size: 11px;
  background: none;
  border: 0;
  padding: 9px 12px;
  color: var(--muted);
  min-height: 36px;
}
.metric-switch button[aria-pressed="true"] {
  color: var(--accent);
  background: #80baff12;
}
select {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 9px;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 12px;
  max-width: 100%;
}
input[type="range"] {
  accent-color: var(--accent);
  min-height: 36px;
  cursor: pointer;
}
.forecast-controls select {
  min-width: 92px;
}
.selected-forecast {
  margin: 24px 0 0;
}
.selected-forecast > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.selected-forecast > div {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.selected-forecast strong {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -2px;
}
.selected-forecast span {
  font-size: 14px;
  color: var(--muted);
}
.forecast-chart {
  margin-top: 15px;
}
.forecast-chart svg {
  width: 100%;
  height: 190px;
  display: block;
  overflow: visible;
}
.chart-grid {
  stroke: var(--line);
  stroke-dasharray: 3 5;
}
.chart-line {
  stroke: var(--warm);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-rain .chart-line {
  stroke: var(--rain);
}
.chart-wind .chart-line {
  stroke: #baa0ff;
}
.chart-cursor {
  stroke: var(--accent);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  opacity: 0.55;
}
.chart-axis {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  gap: 15px;
}
.chart-axis span {
  max-width: 33%;
  line-height: 1.5;
}
#forecast-scrub {
  width: 100%;
  margin: 16px 0 10px;
}
.hours {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-2) transparent;
  padding-bottom: 10px;
}
.hour {
  flex: 0 0 70px;
  min-width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border-color: transparent;
  background: none;
  padding: 12px 4px;
}
.hour[aria-pressed="true"] {
  background: var(--surface);
  border-color: var(--line);
}
.hour small {
  font-size: 9px;
  color: var(--muted);
}
.hour svg {
  width: 38px;
  height: 31px;
}
.hour strong {
  font-size: 13px;
  font-weight: 500;
}
.rain-chance {
  color: var(--rain) !important;
}
.hour-detail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 18px 2px;
  margin-top: 8px;
}
.hour-detail small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 8px;
}
.hour-detail strong {
  font-size: 14px;
  font-weight: 500;
}
.daily-legend {
  padding: 0 10px;
}
.days {
  padding: 0 16px;
}
.day {
  display: grid;
  grid-template-columns: 65px 32px 36px 1fr 36px 34px;
  gap: 12px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
  width: 100%;
  align-items: center;
  text-align: left;
  padding: 10px 0;
  min-height: 50px;
  font-size: 12px;
}
.day:first-child {
  border-top: 0;
}
.day svg {
  width: 32px;
  height: 28px;
}
.day strong {
  font-weight: 500;
}
.day small {
  font-size: 10px;
  text-align: right;
}
.day-low {
  color: var(--muted);
}
.temperature-bar {
  height: 4px;
  position: relative;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.temperature-bar i {
  position: absolute;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #8cabd5, #f4bd71);
}
.plan-heading {
  padding: 15px 0 10px;
}
.plan-heading h2 {
  font-size: 40px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -1px;
}
.plan-heading > p {
  font-size: 12px;
  color: var(--muted);
  max-width: 380px;
  line-height: 1.6;
}
.plan-inputs {
  display: flex;
  gap: 15px;
  padding: 16px;
  margin-bottom: 14px;
}
.plan-inputs label {
  flex: 1;
  font-size: 10px;
  color: var(--muted);
}
.plan-inputs select {
  display: block;
  width: 100%;
  margin-top: 8px;
  color: var(--text);
}
.window {
  padding: 24px;
  background:
    radial-gradient(ellipse at 90% 10%, #8cb8ed20, transparent), var(--surface);
  margin-bottom: 14px;
}
.window h2 {
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 10px;
}
.window p {
  font-size: 12px;
  margin: 0;
}
.alternative-window {
  padding: 16px 20px;
  margin-bottom: 10px;
}
.alternative-window h2 {
  font-size: 21px;
  font-weight: 400;
  margin-bottom: 7px;
}
.alternative-window .eyebrow {
  margin-bottom: 8px;
}
.alternative-window p {
  font-size: 11px;
  margin: 0;
}
.plan-criteria {
  padding: 16px;
  margin: 15px 0;
}
.full-button {
  width: 100%;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 18px;
}
.settings-title {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 12px 0 24px;
}
.settings-title img {
  border-radius: 12px;
}
.settings-title h2 {
  font-size: 23px;
  margin-bottom: 4px;
}
.settings-title p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.version-pill {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 5px 8px;
  border-radius: 6px;
}
.settings-group {
  padding: 18px;
  margin-bottom: 16px;
}
.settings-group h3 {
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--muted);
  margin-bottom: 8px;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 13px;
  min-height: 57px;
}
.setting-row:last-child {
  border: 0;
  padding-bottom: 0;
}
.setting-row select,
.setting-row button {
  min-width: 106px;
}
.setting-link {
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  border-radius: 0;
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  padding: 15px 0;
  font-size: 13px;
  min-height: 52px;
  text-align: left;
}
.setting-link span {
  color: var(--muted);
}
.settings-group .fine {
  margin: 0 0 10px;
}
.info-group {
  padding: 18px;
  margin-bottom: 16px;
}
summary {
  cursor: pointer;
  font-size: 12px;
  line-height: 1.5;
  min-height: 24px;
}
details[open] > summary {
  margin-bottom: 16px;
}
footer {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  text-align: center;
}
footer .brand {
  justify-content: center;
  font-size: 19px;
  margin-bottom: 12px;
}
footer p:last-child {
  font-size: 9px;
}
dialog {
  background: var(--surface);
  color: var(--text);
  border: 1px solid #a8c6fa19;
  border-radius: 24px;
  padding: 24px;
  width: calc(100% - 28px);
  max-width: 490px;
  max-height: calc(100dvh - var(--safe-top) - 28px);
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 30px 100px #0008;
}
dialog::backdrop {
  background: #0009;
  backdrop-filter: blur(7px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.dialog-heading h2 {
  font-size: 24px;
  margin: 0;
  font-weight: 500;
}
.dialog-heading .eyebrow {
  font-size: 8px;
  margin: 0 0 8px;
}
.dialog-heading .icon-button {
  background: var(--surface-2);
  border-radius: 50%;
  font-size: 14px;
  min-height: 34px;
  min-width: 34px;
  padding: 8px;
}
.sheet-handle {
  width: 30px;
  height: 4px;
  border-radius: 4px;
  background: #92a7c44d;
  margin: -10px auto 20px;
}
dialog p,
dialog li {
  font-size: 13px;
  line-height: 1.7;
}
dialog ol {
  padding-left: 21px;
}
dialog h3 {
  font-size: 14px;
  margin-top: 22px;
}
.detail-summary {
  font-size: 26px !important;
  line-height: 1.35 !important;
  color: var(--text);
  margin: 15px 0 22px;
}
.detail-facts {
  margin: 20px 0;
}
.detail-facts > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 49px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.detail-facts span {
  color: var(--muted);
}
.detail-facts strong {
  font-weight: 500;
  text-align: right;
}
.detail-facts > div:first-child {
  border: 0;
}
.uv-spectrum {
  height: 7px;
  border-radius: 5px;
  background: linear-gradient(
    90deg,
    #76c585,
    #c9d663,
    #e6b451,
    #e77455,
    #ab6aba
  );
  margin-bottom: 20px;
}
.warning-detail {
  border-left: 2px solid #faaf72;
  padding: 4px 0 4px 16px;
  margin: 20px 0;
}
.warning-detail h3 {
  font-size: 15px;
  line-height: 1.5;
  margin-top: 8px;
}
.warning-detail p {
  font-size: 12px;
  white-space: pre-line;
}
.warning-detail small {
  font-size: 10px;
  color: var(--muted);
}
.warning-list-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
#search {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 5px;
  margin: 20px 0 25px;
}
#city {
  border: 0;
  background: none;
  padding: 10px 6px;
  flex: 1;
  width: 85px;
  min-width: 0;
  font-size: 16px;
}
#search > button {
  border: 0;
  background: none;
  padding: 9px;
  font-size: 11px;
}
#results {
  width: 100%;
  max-height: 240px;
  overflow: auto;
}
#results button {
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  width: 100%;
  padding: 13px 8px;
  text-align: left;
  font-size: 12px;
}
#results p {
  font-size: 12px;
  padding: 10px;
  margin: 0;
}
#favorites {
  margin-bottom: 20px;
}
.saved-place {
  display: flex;
  border-bottom: 1px solid var(--line);
}
.saved-place > button:first-child {
  flex: 1;
  text-align: left;
  border: 0;
  background: none;
  padding: 14px 0;
}
.saved-label {
  font-size: 9px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* The map is a full app screen, with controls above the Home indicator. */
body[data-screen="map"] main {
  padding: 0;
  overflow: hidden;
}
body[data-screen="map"] .screen-heading,
body[data-screen="map"] #status {
  display: none;
}
body[data-screen="map"] .offline-banner {
  position: absolute;
  z-index: 700;
  top: 92px;
  left: 16px;
  right: 16px;
  margin: 0;
}
.map-screen {
  position: relative;
  height: 100%;
  min-height: 280px;
}
#map {
  position: absolute;
  inset: 0;
  background: #111a27;
  z-index: 0;
}
.dark-basemap {
  filter: brightness(0.78) invert(1) contrast(0.85) hue-rotate(175deg)
    saturate(0.55);
}
:root[data-theme="light"] .dark-basemap {
  filter: none;
}
.map-intro {
  padding: 40px;
  text-align: center;
  color: #9aafcb;
  margin-top: 160px;
  font-size: 13px;
}
.map-top {
  position: absolute;
  z-index: 500;
  top: 16px;
  left: 18px;
  right: 18px;
  pointer-events: none;
}
.map-layers {
  background: #0b1428eb;
  backdrop-filter: blur(24px);
  border-color: #9eb9e81f;
  max-width: 390px;
  margin: auto;
  pointer-events: auto;
}
.map-layers button {
  color: #98aac2;
}
.map-layers button[aria-pressed="true"] {
  background: #24344f;
  color: #edf4ff;
}
.map-meta {
  margin: 10px auto;
  max-width: 390px;
  padding: 0 5px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #e0eafd;
  text-shadow: 0 1px 4px #000;
}
.map-meta > span:first-child {
  font-size: 8px;
  letter-spacing: 1.2px;
}
.map-meta > span:last-child {
  font-size: 10px;
  color: #b8c8df;
}
.map-floats {
  position: absolute;
  right: 18px;
  top: 140px;
  z-index: 500;
  display: grid;
  gap: 8px;
}
.map-floats button {
  width: 40px;
  min-height: 40px;
  padding: 0;
  font-size: 20px;
  border-color: #9eb9e81f;
  background: #0b1428e8;
  color: #dfebfc;
  backdrop-filter: blur(18px);
}
.radar-console {
  position: absolute;
  bottom: 14px;
  left: 18px;
  right: 18px;
  z-index: 500;
  background: #0b1428ed;
  border: 1px solid #a6c3ef25;
  color: #eaf2ff;
  border-radius: 18px;
  padding: 15px 16px 12px;
  backdrop-filter: blur(24px);
  box-shadow: 0 8px 40px #0005;
  max-width: 700px;
  margin: auto;
}
.radar-console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.radar-console-top small {
  font-size: 7px;
  letter-spacing: 1.4px;
  color: #98acc9;
  display: block;
  margin-bottom: 4px;
}
.radar-console-top strong {
  font-size: 17px;
  font-weight: 500;
}
#radar-latest {
  font-size: 10px;
  border-color: #a3bee321;
  background: #17273f;
  color: #adc9ed;
  min-height: 34px;
  padding: 7px 10px;
}
.playback-row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 9px;
}
.playback-row input {
  flex: 1;
  min-width: 0;
  accent-color: #8cbcff;
}
.playback-row button {
  border: 0;
  background: #20314d;
  color: #e6efff;
  padding: 0;
  min-height: 34px;
  min-width: 34px;
  font-size: 12px;
}
.timeline-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 46px;
  font-size: 8px;
  color: #9eb0cb;
  margin-top: -3px;
}
.radar-legend {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 13px;
  color: #9eb0cb;
  font-size: 7px;
}
.radar-legend i {
  height: 4px;
  width: 80px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    #79cfc9,
    #418dcc,
    #9471bd,
    #efac4d,
    #db4656
  );
}
#radar-age {
  margin-left: auto;
  font-size: 9px;
  color: #b0c3dc;
}
.map-source {
  color: #8499b8;
  font-size: 7px;
  margin: 9px 0 0;
  line-height: 1.4;
}
.map-point {
  position: absolute;
  bottom: 224px;
  left: 18px;
  right: 18px;
  z-index: 500;
  padding: 12px 14px;
  background: #111f36ee;
  border: 1px solid #a6c3ef25;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #e9f3ff;
  backdrop-filter: blur(18px);
}
.map-point small {
  font-size: 7px;
  color: #94abc8;
  display: block;
  margin-bottom: 4px;
}
.map-point strong {
  font-size: 13px;
  font-weight: 500;
}
.map-point button {
  min-height: 34px;
  font-size: 10px;
  background: #20314d;
  color: #b8d6ff;
  border: 0;
}
.map-screen .leaflet-control-attribution {
  background: #081121ce !important;
  color: #a4b7d3 !important;
  font-size: 8px !important;
  line-height: 1.5 !important;
  max-width: calc(100vw - 95px);
  margin-left: 18px !important;
  margin-bottom: 214px !important;
  padding: 3px 5px !important;
  border-radius: 4px;
}
.map-screen .leaflet-control-attribution a {
  color: #c5d8f4 !important;
}
.map-screen .leaflet-popup-content-wrapper,
.map-screen .leaflet-popup-tip {
  background: #122039;
  color: #eef4fd;
}
.map-screen .leaflet-tooltip {
  font-size: 11px;
  background: #122039;
  color: #eef4fd;
  border: 1px solid #abc9f633;
}
#tracking-text {
  font-size: 11px;
  line-height: 1.6;
  color: #c2d0e5;
  margin: 10px 0;
}
.tracking-actions {
  display: flex;
  gap: 10px;
}
.tracking-actions button {
  min-height: 34px;
  background: #20314d;
  color: #bdd8fc;
  border: 0;
  flex: 1;
  font-size: 10px;
}
.setting-row input[type="range"] {
  width: 130px;
}
.setting-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
}
.setting-row output {
  font-size: 11px;
  color: var(--accent);
  margin-left: 10px;
}
@media (min-width: 1200px) {
  .today-screen .metric-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .current-sky {
    min-height: 290px;
  }
  .today-screen {
    gap: 18px;
  }
  .hour-preview {
    align-self: start;
  }
  .weather-brief {
    align-self: end;
  }
  .app-screen:not(.map-screen) {
    max-width: 1000px;
    margin: auto;
  }
  .plan-screen {
    max-width: 650px !important;
  }
  .settings-screen {
    max-width: 650px !important;
  }
}
@media (max-width: 760px), (max-height: 500px) and (pointer: coarse) {
  :root {
    --rail: 0px;
  }
  .app-rail {
    position: static;
    width: auto;
    padding: 0;
    border: 0;
  }
  .app-rail > .brand,
  .rail-caption,
  .rail-edition {
    display: none;
  }
  .app-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: start;
    gap: 0;
    padding: 6px max(8px, var(--safe-right)) var(--safe-bottom)
      max(8px, var(--safe-left));
    margin: 0;
    background: var(--nav);
    border-top: 1px solid var(--line);
    z-index: 1100;
    backdrop-filter: blur(30px);
  }
  .app-nav a {
    min-height: 49px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 5px 2px;
    font-size: 9px;
    border-radius: 0;
  }
  .app-nav svg {
    width: 21px;
    height: 21px;
    stroke-width: 1.7;
  }
  .app-nav a[aria-current="page"] {
    color: var(--accent);
    background: none;
  }
  .app-header {
    left: 0;
    height: var(--top);
    padding: var(--safe-top) max(16px, var(--safe-right)) 0
      max(16px, var(--safe-left));
    gap: 15px;
  }
  .mobile-brand {
    display: block;
    flex-shrink: 0;
  }
  .mobile-brand img {
    width: 29px;
    height: 29px;
    border-radius: 9px;
  }
  .location-trigger {
    flex: 1;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    min-height: 44px;
  }
  .location-overline {
    font-size: 7px;
    letter-spacing: 1.7px;
  }
  .location-trigger > span:last-child {
    font-size: 14px;
    gap: 8px;
  }
  .location-trigger strong {
    max-width: 210px;
  }
  .app-header .icon-button {
    padding: 8px;
    min-width: 36px;
  }
  .app-header .icon-button svg {
    width: 20px;
    height: 20px;
  }
  main {
    top: var(--top);
    bottom: var(--bottom);
    left: 0;
    padding: 10px max(16px, var(--safe-right)) 18px max(16px, var(--safe-left));
    -webkit-overflow-scrolling: touch;
  }
  .screen-heading {
    margin: 6px 0 9px;
  }
  .screen-heading h1 {
    font-size: 23px;
  }
  #status {
    font-size: 8px;
    line-height: 1.5;
    margin-bottom: 8px;
    height: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .today-screen {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .current-sky {
    grid-row: auto;
    min-height: 160px;
    padding: 2px 2px 4px;
    border-radius: 0;
    background: radial-gradient(ellipse at 83% 50%, #345eaa29, transparent 65%);
    margin-bottom: 0;
  }
  .current-top {
    gap: 8px;
    height: 30px;
  }
  #date {
    font-size: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .save-button {
    width: 30px;
    min-height: 30px;
    font-size: 18px;
    border-color: transparent;
    background: none;
  }
  .current-core {
    margin-top: 0;
    min-height: 113px;
  }
  .temperature {
    font-size: 83px;
    letter-spacing: -5px;
    line-height: 0.95;
    font-weight: 200;
  }
  .current-core h2 {
    font-size: 16px;
    letter-spacing: 0;
    margin: 8px 0 7px;
  }
  .current-range {
    font-size: 10px;
    gap: 12px;
  }
  .weather-art {
    width: 124px;
    height: 108px;
    margin-right: 12px;
    align-self: center;
  }
  .data-badge {
    font-size: 6px;
    letter-spacing: 1px;
    position: absolute;
    right: 12px;
    bottom: 6px;
    color: #7e94b4;
    margin: 0;
  }
  .weather-brief {
    padding: 9px 12px;
    gap: 9px;
    min-height: 44px;
    border-radius: 12px;
  }
  .brief-icon {
    width: 25px;
    height: 25px;
    font-size: 12px;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .weather-brief small {
    font-size: 6px;
    letter-spacing: 1px;
    margin-bottom: 3px;
  }
  .weather-brief strong {
    font-size: 10px;
    line-height: 1.4;
  }
  .weather-brief > span:last-child {
    font-size: 18px;
  }
  .hour-preview {
    padding: 10px 11px 7px;
    min-height: 94px;
    border-radius: 13px;
  }
  .section-line {
    font-size: 7px;
    margin-bottom: 5px;
  }
  .section-line a {
    font-size: 8px;
  }
  .preview-hours {
    gap: 10px;
  }
  .preview-hour {
    flex-basis: 39px;
    min-height: 61px;
  }
  .preview-hour small {
    font-size: 7px;
  }
  .preview-hour svg {
    width: 30px;
    height: 24px;
    margin: 2px 0;
  }
  .preview-hour strong {
    font-size: 12px;
  }
  .preview-hour .rain-chance {
    font-size: 7px;
    margin-top: 2px;
  }
  .metric-grid {
    grid-column: auto;
    gap: 8px;
  }
  .metric-grid button {
    padding: 10px 12px;
    min-height: 60px;
    border-radius: 12px;
  }
  .metric-grid button > span {
    font-size: 6.5px;
    letter-spacing: 0.7px;
    margin-bottom: 3px;
  }
  .metric-grid strong {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.3px;
  }
  .metric-grid small {
    font-size: 7px;
    margin-top: 2px;
    max-width: 92%;
  }
  .metric-symbol {
    font-size: 20px;
    right: 12px;
    top: 22px;
    opacity: 0.5;
  }
  .sun-strip {
    grid-column: auto;
    padding: 7px 12px;
    min-height: 42px;
    gap: 10px;
    border-radius: 12px;
  }
  .sun-small {
    font-size: 20px;
  }
  .sun-strip small {
    font-size: 6px;
    letter-spacing: 0.7px;
  }
  .sun-strip strong {
    font-size: 11px;
  }
  .sun-strip > span:nth-child(2) {
    min-width: 60px;
    gap: 2px;
  }
  .sun-strip-end {
    font-size: 8px;
    max-width: 62px;
  }
  .today-actions {
    grid-column: auto;
    gap: 8px;
  }
  .today-actions button {
    min-height: 38px;
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 10px;
  }
  .count-badge {
    font-size: 9px;
    min-width: 16px;
    height: 16px;
  }
  .forecast-tabs {
    margin-bottom: 12px;
  }
  .segmented button {
    font-size: 11px;
    min-height: 34px;
  }
  .forecast-controls {
    gap: 10px;
  }
  .metric-switch {
    gap: 2px;
  }
  .metric-switch button {
    font-size: 10px;
    min-height: 36px;
    padding: 8px 11px;
  }
  select {
    font-size: 16px;
    min-height: 40px;
    padding: 7px 10px;
  }
  .forecast-controls select {
    font-size: 12px;
    min-width: 90px;
  }
  .selected-forecast {
    margin-top: 17px;
  }
  .selected-forecast > p {
    font-size: 11px;
    margin-bottom: 7px;
  }
  .selected-forecast strong {
    font-size: 43px;
  }
  .selected-forecast span {
    font-size: 12px;
  }
  .forecast-chart {
    margin-top: 5px;
  }
  .forecast-chart svg {
    height: 160px;
  }
  .chart-axis {
    font-size: 8px;
  }
  .hour {
    min-width: 62px;
    flex-basis: 62px;
    padding: 10px 3px;
    gap: 4px;
  }
  .hour small {
    font-size: 8px;
  }
  .hour svg {
    width: 33px;
    height: 27px;
  }
  .hour strong {
    font-size: 11px;
  }
  .hour-detail {
    gap: 10px;
    padding: 14px 0;
  }
  .hour-detail small {
    font-size: 8px;
    margin-bottom: 5px;
  }
  .hour-detail strong {
    font-size: 11px;
  }
  .daily-legend {
    font-size: 7px;
    padding: 0 4px;
    margin: 12px 0;
  }
  .days {
    padding: 0 11px;
    border-radius: 14px;
  }
  .day {
    grid-template-columns: 48px 25px 27px 1fr 27px 28px;
    gap: 7px;
    font-size: 10px;
    min-height: 47px;
    padding: 8px 0;
  }
  .day svg {
    width: 25px;
    height: 24px;
  }
  .day small {
    font-size: 8px;
  }
  .plan-heading {
    padding-top: 7px;
  }
  .plan-heading h2 {
    font-size: 35px;
    line-height: 1.1;
    margin-bottom: 10px;
  }
  .plan-heading > p {
    font-size: 11px;
    margin-bottom: 5px;
  }
  .plan-inputs {
    padding: 13px;
    gap: 12px;
  }
  .plan-inputs label {
    font-size: 9px;
  }
  .plan-inputs select {
    font-size: 13px;
  }
  .window {
    padding: 21px;
  }
  .window h2 {
    font-size: 25px;
  }
  .window p {
    font-size: 10px;
  }
  .alternative-window {
    padding: 13px 17px;
  }
  .alternative-window h2 {
    font-size: 18px;
  }
  .alternative-window p {
    font-size: 10px;
  }
  .alternative-window .eyebrow {
    font-size: 7px;
  }
  .settings-title {
    margin: 10px 0 20px;
  }
  .setting-row {
    font-size: 12px;
    padding: 12px 0;
  }
  .settings-group {
    padding: 16px;
  }
  .setting-row select {
    font-size: 14px;
  }
  .setting-row button {
    font-size: 13px;
  }
  .info-group {
    padding: 16px;
  }
  dialog {
    margin: auto auto 10px;
    border-radius: 23px;
    width: calc(100% - 16px);
    padding: 24px 20px calc(22px + var(--safe-bottom));
    max-height: calc(100dvh - var(--safe-top) - 20px);
  }
  .dialog-heading {
    margin-bottom: 18px;
  }
  .dialog-heading h2 {
    font-size: 23px;
  }
  .detail-summary {
    font-size: 23px !important;
  }
  .detail-facts > div {
    min-height: 46px;
    font-size: 12px;
  }
  .detail-facts strong {
    max-width: 60%;
  }
  .map-top {
    top: 12px;
    left: max(12px, var(--safe-left));
    right: max(12px, var(--safe-right));
  }
  .map-layers {
    border-radius: 12px;
  }
  .map-layers button {
    min-height: 34px;
    font-size: 11px;
  }
  .map-meta {
    margin-top: 9px;
  }
  .map-meta > span:first-child {
    font-size: 7px;
  }
  .map-meta > span:last-child {
    font-size: 9px;
  }
  .map-floats {
    right: max(12px, var(--safe-right));
    top: 120px;
    gap: 6px;
  }
  .map-floats button {
    width: 38px;
    min-height: 38px;
    font-size: 19px;
  }
  .radar-console {
    left: max(10px, var(--safe-left));
    right: max(10px, var(--safe-right));
    bottom: 10px;
    border-radius: 16px;
    padding: 12px 14px 10px;
  }
  .radar-console-top strong {
    font-size: 16px;
  }
  .map-source {
    font-size: 6.5px;
  }
  .map-screen .leaflet-control-attribution {
    font-size: 7px !important;
    margin-left: 12px !important;
    margin-bottom: 195px !important;
  }
  .map-point {
    left: 12px;
    right: 12px;
    bottom: 214px;
    padding: 10px 12px;
  }
  .map-point strong {
    font-size: 11px;
  }
  #tracking-text {
    font-size: 10px;
    line-height: 1.5;
    margin: 8px 0;
  }
  .radar-legend {
    margin-top: 10px;
  }
  .setting-row input[type="range"] {
    width: 125px;
  }
}
@media (max-height: 650px) and (max-width: 760px) {
  .current-sky {
    min-height: 145px;
  }
  .temperature {
    font-size: 73px;
  }
  .current-core {
    min-height: 103px;
  }
  .weather-art {
    width: 110px;
    height: 95px;
  }
  .map-floats {
    top: 105px;
    gap: 4px;
  }
  .map-floats button {
    width: 33px;
    min-height: 33px;
  }
  .radar-console {
    padding-top: 10px;
  }
  .map-meta > span:first-child {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.brief-icon svg {
  width: 16px;
  height: 16px;
}
.metric-symbol svg {
  width: 24px;
  height: 24px;
}
.sun-small svg {
  width: 23px;
  height: 23px;
}
.metric-grid button[data-detail="uv"] .metric-symbol {
  color: var(--warm);
}
@media (max-width: 760px), (max-height: 500px) and (pointer: coarse) {
  .metric-symbol svg {
    width: 21px;
    height: 21px;
  }
  .brief-icon svg {
    width: 14px;
    height: 14px;
  }
  .sun-small svg {
    width: 20px;
    height: 20px;
  }
  .current-sky {
    min-height: 150px;
  }
  .current-core {
    min-height: 105px;
  }
  .temperature {
    font-size: 78px;
  }
  .current-core h2 {
    margin-top: 6px;
  }
  .metric-grid button {
    min-height: 58px;
  }
  .hour-preview {
    min-height: 91px;
  }
  .today-screen {
    gap: 7px;
  }
}
@media (max-height: 500px) {
  .map-floats {
    display: flex;
    top: 105px;
  }
  .map-floats #map-zoom-in,
  .map-floats #map-zoom-out {
    display: none;
  }
  .map-meta {
    display: none;
  }
  .radar-console {
    padding-top: 10px;
  }
  .radar-legend {
    margin-top: 5px;
  }
  .radar-console-top small {
    font-size: 6px;
  }
  .map-source {
    font-size: 6px;
  }
  .map-screen .leaflet-control-attribution {
    margin-bottom: 180px !important;
  }
}
.chart-unit {
  font-size: 9px;
  color: var(--muted);
  margin: 2px 0 7px;
}
.leaflet-weather-pane .leaflet-layer {
  transition: opacity 0.15s linear;
}
@media (max-width: 760px), (max-height: 500px) and (pointer: coarse) {
  .forecast-chart svg {
    height: 125px;
  }
  .selected-forecast {
    margin-top: 12px;
  }
  .forecast-chart {
    margin-top: 8px;
  }
  .hour-detail {
    margin-top: 3px;
  }
}
.selected-forecast {
  position: relative;
}
#compare-models {
  position: absolute;
  right: 0;
  top: -4px;
  min-height: 30px;
  font-size: 9px;
  padding: 5px 8px;
  color: var(--accent);
  background: var(--surface);
  border-color: var(--line);
}
.model-table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0 24px;
  font-size: 11px;
}
.model-table th,
.model-table td {
  text-align: right;
  padding: 13px 5px;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
.model-table th:first-child {
  text-align: left;
  color: var(--text);
}
.model-table thead th {
  font-size: 9px;
  color: var(--muted);
}
.model-table td {
  color: var(--accent);
}
@media (max-width: 380px) {
  .selected-forecast > p {
    font-size: 10px;
    max-width: 190px;
  }
  #compare-models {
    font-size: 8px;
    padding: 5px 7px;
  }
}

@media (min-width: 761px) and (max-width: 1199px) and (min-height: 501px) {
  .today-screen {
    grid-template-columns: 1fr;
  }
  .current-sky {
    grid-row: auto;
    min-height: 220px;
  }
  .current-core {
    margin-top: 5px;
  }
}
@media (max-width: 760px), (max-height: 500px) and (pointer: coarse) {
  .location-trigger strong {
    max-width: min(210px, calc(100vw - 175px));
  }
}
.map-point {
  right: 64px;
}
.map-screen {
  min-height: 0;
}
@media (max-height: 500px) {
  .radar-console {
    left: auto;
    right: max(12px, var(--safe-right));
    width: min(330px, calc(100% - var(--safe-left) - var(--safe-right) - 32px));
    margin: 0;
  }
  .map-floats {
    left: max(12px, var(--safe-left));
    right: auto;
    top: 78px;
  }
  .map-point {
    left: max(12px, var(--safe-left));
    right: auto;
    bottom: 65px;
    width: 280px;
    max-width: calc(100% - var(--safe-left) - var(--safe-right) - 375px);
  }
  .map-screen .leaflet-control-attribution {
    margin-bottom: 12px !important;
    margin-left: max(12px, var(--safe-left)) !important;
    max-width: calc(100vw - var(--safe-left) - var(--safe-right) - 380px);
  }
}
#play {
  display: grid;
  place-items: center;
}
.play-icon {
  display: block;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
  margin-left: 2px;
}
.pause-icon {
  display: block;
  width: 9px;
  height: 12px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.official-period {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.official-period h3 {
  margin: 0 0 9px;
  font-size: 16px;
}
.official-period p {
  line-height: 1.65;
}
.source-warning {
  color: var(--warm, #ffd180);
  line-height: 1.6;
}
#status {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}


/* === atmosphere.css === */
/* TrueCast Atmosphere: one weather surface with a deeper, luminous hierarchy. */
:root {
  --bg: #080c18;
  --surface: #111b2d;
  --surface-2: #192640;
  --accent: #9bbdff;
  --rain: #76ddf3;
  --muted: #9aaecb;
  --line: #bbd1ff12;
  --nav: #090f1ef2;
}
body {
  background:
    radial-gradient(ellipse at 88% 0, #263c7920, transparent 50%), var(--bg);
}
.surface,
.metric-grid button,
.today-actions button {
  background: linear-gradient(135deg, #1a294580, #101a2deb), var(--surface);
  border-color: #a9c5ff14;
  box-shadow: inset 0 1px #e6eeff04;
}
.app-header {
  background: linear-gradient(180deg, #101b2beb, #0a1122dd);
  border-bottom-color: #b9d0ff0b;
}
.app-nav {
  background: linear-gradient(180deg, #0e172bec, #0a1120f7);
}
.app-nav a[aria-current="page"] {
  background: linear-gradient(135deg, #526fa638, #3b50851c);
  box-shadow: inset 0 1px #cbdfff13;
}
.current-sky {
  isolation: isolate;
  background: linear-gradient(125deg, #172641, #1a2441 48%, #283a60);
  border: 1px solid #d1e0ff1a;
  border-radius: 26px;
  padding: 20px 24px;
  min-height: 330px;
  box-shadow:
    inset 0 1px #eff6ff0d,
    0 15px 60px #050a1430;
}
.sky-aura {
  position: absolute;
  inset: -30%;
  z-index: -1;
  background:
    radial-gradient(ellipse at 76% 35%, #ffc78830, transparent 34%),
    radial-gradient(ellipse at 75% 65%, #729bff30, transparent 40%);
  filter: blur(8px);
  pointer-events: none;
}
body[data-night="true"] .current-sky {
  background: linear-gradient(125deg, #13203a, #1d2344 58%, #323859);
}
body[data-night="true"] .sky-aura {
  background:
    radial-gradient(ellipse at 74% 40%, #a9a0ff31, transparent 34%),
    radial-gradient(ellipse at 76% 70%, #729bff3a, transparent 40%);
}
body[data-weather="wet"] .current-sky {
  background: linear-gradient(135deg, #162d3c, #222947 60%, #283c51);
}
.sky-contours {
  position: absolute;
  left: 0;
  bottom: 36px;
  width: 100%;
  height: 200px;
  fill: none;
  stroke: #b9cfff10;
  stroke-width: 0.9;
  pointer-events: none;
  z-index: -1;
}
.sky-contours .horizon-glint {
  stroke: #bfd5ff38;
  stroke-width: 1.2;
}
.current-top {
  align-items: center;
}
.current-core {
  margin-top: 8px;
  min-height: 190px;
}
.temperature {
  font-size: 116px;
  font-weight: 220;
  letter-spacing: -7px;
  text-shadow: 0 4px 35px #050f291c;
}
.current-core h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 9px 0 10px;
}
.weather-art {
  width: 190px;
  height: 175px;
  margin-right: 0;
  filter: drop-shadow(0 14px 18px #060b2235);
  animation: weather-breathe 12s ease-in-out infinite;
}
.hero-links {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
  border-top: 1px solid #b9d1ff20;
  padding-top: 14px;
}
.hero-links a {
  text-decoration: none;
  display: grid;
  gap: 5px;
  min-height: 38px;
  color: #e2edff;
}
.hero-links span {
  font-size: 10px;
  color: #a4b5d1;
}
.hero-links b {
  font-size: 12px;
  font-weight: 550;
}
.hero-links a:last-child {
  padding-left: 18px;
  border-left: 1px solid #c6d8ff17;
}
.hero-links a:last-child b {
  color: #add4ff;
}
.data-badge {
  font-size: 7px;
  color: #a9b8d8;
  letter-spacing: 1.1px;
  position: absolute;
  right: 22px;
  bottom: 80px;
  margin: 0;
}
.weather-brief {
  background: linear-gradient(105deg, #23355690, #131f33);
  border-color: #a9c5ff17;
}
.brief-icon {
  background: linear-gradient(135deg, #3c628f70, #1b2a46);
  color: #aacdff;
}
.hour-preview {
  background: linear-gradient(135deg, #1b2944b8, #101a2ee8);
}
.preview-hour strong {
  font-weight: 550;
}
.preview-hour svg {
  filter: drop-shadow(0 4px 5px #010a1d40);
}
.metric-grid button {
  overflow: hidden;
}
.metric-grid button[data-detail="rain"] {
  background:
    radial-gradient(ellipse at 100% 0, #3d95b522, transparent 80%),
    var(--surface);
}
.metric-grid button[data-detail="wind"] {
  background:
    radial-gradient(ellipse at 100% 0, #8397ca20, transparent 80%),
    var(--surface);
}
.metric-grid button[data-detail="aqi"] {
  background:
    radial-gradient(ellipse at 100% 0, #4e9d8622, transparent 80%),
    var(--surface);
}
.metric-grid button[data-detail="uv"] {
  background:
    radial-gradient(ellipse at 100% 0, #bd885322, transparent 80%),
    var(--surface);
}
.forecast-intro,
.outlook-intro {
  margin: 22px 0;
}
.forecast-intro h2,
.outlook-intro h2 {
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -1.2px;
  margin-bottom: 9px;
}
.forecast-intro p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.forecast-intro .eyebrow,
.outlook-intro .eyebrow {
  color: #b0bde0;
  margin-bottom: 9px;
}
.selected-forecast {
  background: radial-gradient(ellipse at 85% 50%, #546cb430, transparent 75%);
  border-radius: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
}
.forecast-chart {
  margin-top: 18px;
}
.chart-line {
  filter: drop-shadow(0 3px 5px #79b9ff25);
}
.hours .hour[aria-pressed="true"] {
  background: linear-gradient(160deg, #526caa5e, #213655);
  border-color: #afceff54;
  box-shadow: inset 0 1px #dfedff13;
}
.days {
  padding: 8px 14px;
  background: linear-gradient(125deg, #19264090, #111c2e);
}
.day {
  border-radius: 0;
}
.temperature-bar i {
  background: linear-gradient(90deg, #8ab9dc, #e7c595, #ed9d7e);
}
.map-layers {
  display: flex;
  overflow-x: auto;
  max-width: 590px;
  scrollbar-width: none;
  justify-content: flex-start;
  padding: 4px;
  gap: 3px;
}
.map-layers::-webkit-scrollbar {
  display: none;
}
.map-layers button {
  flex: 0 0 auto;
  min-width: 72px;
  font-size: 11px;
  padding: 8px 12px;
}
.map-layers button[data-layer="forecast"] {
  color: #add6ff;
}
.map-layers button[data-layer="lightning"] {
  color: #e1c391;
}
.weather-console {
  position: absolute;
  bottom: 14px;
  left: 18px;
  right: 18px;
  z-index: 500;
  max-width: 700px;
  margin: auto;
  border: 1px solid #b5cfff27;
  border-radius: 20px;
  padding: 14px 16px 13px;
  color: #eff5ff;
  background: linear-gradient(135deg, #172944ef, #0c1628f2);
  backdrop-filter: blur(28px);
  box-shadow: 0 14px 45px #0006;
}
.forecast-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 3px;
  background: #081326b8;
  border: 1px solid #bed6ff11;
  border-radius: 10px;
  margin-bottom: 13px;
}
.forecast-products button {
  border: 0;
  background: transparent;
  min-height: 33px;
  border-radius: 7px;
  padding: 6px;
  font-size: 11px;
  color: #94aaca;
}
.forecast-products button[aria-pressed="true"] {
  background: #304c73;
  color: #e7f1ff;
  box-shadow: inset 0 1px #e1efff14;
}
.weather-console-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.weather-console-heading > div {
  min-width: 0;
}
.weather-console-heading small {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #a2badb;
  display: block;
  margin-bottom: 5px;
}
.weather-console-heading strong {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.4px;
}
.weather-console-heading > button {
  border: 1px solid #b3ceff1b;
  background: #203652;
  color: #bed7ff;
  font-size: 20px;
  min-width: 34px;
  min-height: 34px;
  padding: 2px;
}
.weather-run {
  font-size: 9px;
  color: #a3b6d1;
  margin: 6px 0 10px;
  line-height: 1.5;
}
.weather-playback {
  display: flex;
  gap: 12px;
  align-items: center;
}
.weather-playback input {
  width: 100%;
  min-width: 0;
  accent-color: #a4c8ff;
}
.weather-playback button {
  min-width: 34px;
  min-height: 34px;
  border: 0;
  background: #233958;
  color: #d4e6ff;
  padding: 5px;
  font-size: 15px;
}
.weather-playback #weather-map-info {
  background: transparent;
  font-size: 20px;
}
.weather-timeline-labels {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 4px 0 12px;
  font-size: 8px;
  color: #b1c4dd;
}
.weather-legend small {
  font-size: 7px;
  letter-spacing: 0.9px;
  color: #b6c8e2;
}
.weather-legend > i {
  display: block;
  height: 4px;
  border-radius: 4px;
  margin: 6px 0;
}
.map-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #bacce5;
}
.weather-legend .fine {
  font-size: 9px;
  margin: 0;
  color: #aec3dd;
}
.weather-console .map-source {
  font-size: 8px;
  margin-top: 10px;
  color: #9aafd0;
}
.map-palette {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
.map-palette > div {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 11px;
}
.map-palette i {
  display: block;
  width: 22px;
  height: 16px;
  border-radius: 4px;
  flex-shrink: 0;
}
.source-legend {
  max-width: 100%;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  margin: 12px 0;
}
body[data-map-layer="forecast"] .map-point {
  bottom: 295px;
}
body[data-map-layer="forecast"] .leaflet-control-attribution {
  margin-bottom: 290px !important;
}
body[data-map-layer="lightning"] .leaflet-control-attribution,
body[data-map-layer="satellite"] .leaflet-control-attribution {
  margin-bottom: 220px !important;
}
@keyframes weather-breathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
@media (max-width: 760px) {
  .current-sky {
    min-height: 223px;
    padding: 11px 15px 12px;
    border-radius: 22px;
    margin: 0;
    background: linear-gradient(125deg, #182943, #202c49 62%, #293956);
  }
  .current-top {
    height: 25px;
  }
  #date {
    font-size: 8px;
  }
  .current-core {
    min-height: 116px;
    margin-top: 0;
  }
  .temperature {
    font-size: 88px;
    font-weight: 230;
    letter-spacing: -5px;
  }
  .current-core h2 {
    font-size: 17px;
    margin: 3px 0 6px;
  }
  .current-range {
    font-size: 10px;
    gap: 11px;
  }
  .weather-art {
    width: 132px;
    height: 125px;
    margin: 0 -4px 0 0;
  }
  .data-badge {
    bottom: 68px;
    right: 16px;
    font-size: 6px;
  }
  .hero-links {
    margin-top: 7px;
    padding-top: 9px;
    gap: 10px;
  }
  .hero-links span {
    font-size: 8px;
  }
  .hero-links b {
    font-size: 10px;
  }
  .hero-links a {
    gap: 4px;
    min-height: 30px;
  }
  .hero-links a:last-child {
    padding-left: 13px;
  }
  .sky-contours {
    bottom: 28px;
    height: 140px;
  }
  .today-screen {
    gap: 8px;
  }
  .weather-brief {
    min-height: 43px;
    border-radius: 13px;
  }
  .hour-preview {
    border-radius: 17px;
    padding: 11px 12px 8px;
    min-height: 95px;
  }
  .metric-grid button {
    border-radius: 15px;
    min-height: 61px;
  }
  .metric-grid strong {
    font-weight: 480;
    font-size: 22px;
  }
  .metric-grid button > span {
    font-size: 7px;
  }
  .metric-grid small {
    font-size: 8px;
  }
  .preview-hour svg {
    width: 32px;
    height: 27px;
  }
  .preview-hour small {
    font-size: 8px;
  }
  .section-line {
    font-size: 8px;
  }
  .section-line a {
    font-size: 9px;
  }
  .today-actions button {
    min-height: 40px;
    font-size: 11px;
  }
  .sun-strip {
    border-radius: 14px;
  }
  .sun-strip strong {
    font-size: 12px;
  }
  .forecast-intro,
  .outlook-intro {
    margin: 18px 0;
  }
  .forecast-intro h2,
  .outlook-intro h2 {
    font-size: 27px;
  }
  .forecast-intro p {
    font-size: 12px;
  }
  .selected-forecast {
    padding: 16px;
    border-radius: 18px;
  }
  .map-layers {
    max-width: 100%;
  }
  .map-layers button {
    min-width: 65px;
    padding: 7px 11px;
    font-size: 10px;
  }
  .weather-console {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px 13px;
  }
  .map-meta {
    margin-top: 9px;
  }
  .map-floats {
    right: 12px;
  }
}
@media (min-width: 761px) {
  .hero-links b {
    font-size: 13px;
  }
  .current-sky {
    grid-row: span 2;
  }
  .today-screen {
    gap: 17px;
  }
  .weather-brief {
    align-self: end;
  }
  .weather-console-heading strong {
    font-size: 21px;
  }
}
@media (max-height: 650px) and (max-width: 760px) {
  .current-sky {
    min-height: 203px;
  }
  .current-core {
    min-height: 103px;
  }
  .temperature {
    font-size: 76px;
  }
  .weather-art {
    width: 115px;
    height: 108px;
  }
  .hero-links {
    margin-top: 4px;
  }
  .data-badge {
    bottom: 64px;
  }
}
@media (max-height: 500px) {
  .weather-console {
    left: auto;
    right: max(12px, var(--safe-right));
    max-width: 390px;
    width: calc((100% - var(--safe-left) - var(--safe-right)) * 0.47);
    padding: 10px 12px;
  }
  .forecast-products {
    margin-bottom: 7px;
  }
  .weather-console-heading strong {
    font-size: 14px;
  }
  .weather-run {
    font-size: 8px;
    margin: 4px 0;
  }
  .weather-legend {
    display: none;
  }
  .weather-timeline-labels {
    margin-bottom: 4px;
  }
  .weather-console .map-source {
    font-size: 7px;
    margin-top: 5px;
  }
  .map-floats {
    top: 100px;
  }
  body[data-map-layer="forecast"] .leaflet-control-attribution {
    margin-bottom: 8px !important;
    max-width: 40%;
  }
}
:root[data-theme="light"] .current-sky {
  color: #f3f6ff;
}
:root[data-theme="light"] .current-range,
:root[data-theme="light"] #date {
  color: #c1d1e6;
}
:root[data-theme="light"] .surface,
:root[data-theme="light"] .metric-grid button,
:root[data-theme="light"] .today-actions button {
  background: #fff;
}
:root[data-theme="light"] .app-header,
:root[data-theme="light"] .app-nav {
  background: #eef3faf5;
}
@media (prefers-reduced-motion: reduce) {
  .weather-art {
    animation: none;
  }
}
.hero-links b {
  display: flex;
  align-items: center;
  gap: 7px;
}
.section-line a svg {
  vertical-align: -1px;
  margin-left: 3px;
}
.hero-links svg {
  flex-shrink: 0;
}
#weather-play .play-icon {
  display: block;
  margin: auto;
  border-left-color: #d4e6ff;
}
#weather-play .pause-icon {
  display: block;
  margin: auto;
}
.air-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 28px;
}
.air-hero strong {
  font-size: 74px;
  font-weight: 250;
  line-height: 1.1;
  letter-spacing: -4px;
}
.air-hero p {
  font-size: 19px;
  margin: 6px 0 10px;
}
.air-hero small {
  font-size: 11px;
  color: var(--muted);
}
.air-orbit {
  --aq-color: #8bceb5;
  position: relative;
  width: 115px;
  height: 115px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--aq-color);
  color: var(--aq-color);
  box-shadow:
    inset 0 0 40px color-mix(in srgb, var(--aq-color) 15%, transparent),
    0 0 45px color-mix(in srgb, var(--aq-color) 12%, transparent);
  font-size: 25px;
  font-weight: 300;
  letter-spacing: 3px;
}
.air-orbit:before,
.air-orbit:after {
  content: "";
  position: absolute;
  border: 1px solid var(--aq-color);
  border-radius: 50%;
  opacity: 0.2;
  inset: 10px;
}
.air-orbit:after {
  inset: 23px;
  opacity: 0.12;
}
.air-bars {
  height: 100px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  margin: 14px 0 7px;
}
.air-bars i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  min-width: 2px;
  opacity: 0.65;
}
.air-bars i[data-selected="true"] {
  opacity: 1;
  outline: 1px solid var(--text);
  outline-offset: 2px;
}
.air-axis {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 20px;
}
#air-hour {
  width: 100%;
  margin: 6px 0 26px;
  accent-color: var(--accent);
}
.environment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0 27px;
}
.environment-grid > div {
  padding: 13px 10px;
  background: var(--surface-2);
  border-radius: 13px;
  display: grid;
  gap: 7px;
}
.environment-grid small {
  font-size: 10px;
  color: var(--muted);
}
.environment-grid strong {
  font-size: 19px;
  font-weight: 500;
}
.pollen-list {
  margin: 16px 0 24px;
}
.pollen-list > div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  gap: 15px;
}
.pollen-list > div > span {
  color: var(--muted);
  font-size: 13px;
}
.pollen-list strong {
  font-size: 12px;
  font-weight: 500;
}
@media (max-width: 760px) {
  .app-nav a[aria-current="page"] {
    border-radius: 16px;
    background: linear-gradient(160deg, #45639545, #23375e20);
  }
  .preview-hour {
    flex-basis: 43px;
  }
  .preview-hour small {
    font-size: 9px;
  }
  .preview-hour strong {
    font-size: 13px;
  }
  .preview-hour .rain-chance {
    font-size: 8px;
  }
  .weather-brief strong {
    font-size: 11px;
  }
  .metric-grid button > span {
    font-size: 8px;
  }
  .metric-grid small {
    font-size: 8px;
  }
}
.plan-screen .sun-strip {
  margin: 0 0 20px;
  width: 100%;
}
:root[data-theme="light"] .weather-brief {
  background: linear-gradient(120deg, #dce8f6, #f1f5fb);
}
:root[data-theme="light"] .current-range b {
  color: #f3f6ff;
}
:root[data-theme="light"] .forecast-intro .eyebrow,
:root[data-theme="light"] .outlook-intro .eyebrow {
  color: var(--muted);
}
:root[data-theme="light"] .air-hero p {
  color: #3f6268 !important;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] .current-sky {
    color: #f3f6ff;
  }
  :root[data-theme="system"] .current-range,
  :root[data-theme="system"] #date {
    color: #c1d1e6;
  }
  :root[data-theme="system"] .current-range b {
    color: #f3f6ff;
  }
  :root[data-theme="system"] .surface,
  :root[data-theme="system"] .metric-grid button,
  :root[data-theme="system"] .today-actions button {
    background: #fff;
  }
  :root[data-theme="system"] .app-header,
  :root[data-theme="system"] .app-nav {
    background: #eef3faf5;
  }
  :root[data-theme="system"] .weather-brief {
    background: #e2ebf8;
  }
  :root[data-theme="system"] .forecast-intro .eyebrow,
  :root[data-theme="system"] .outlook-intro .eyebrow {
    color: var(--muted);
  }
}

.hero-links b span {
  font: inherit;
  color: inherit;
}
@media (max-width: 760px) {
  .today-screen {
    gap: 7px;
  }
  .current-sky {
    min-height: 220px;
  }
}
body[data-weather="wet"] .sky-noise,
body[data-weather="cloudy"] .sky-noise {
  opacity: 0.12;
}
.current-sky .save-button {
  color: #b8c9e2;
}
.current-sky .save-button[aria-pressed="true"] {
  color: #ffc981;
}
@media (max-height: 500px) {
  .map-top {
    left: max(12px, var(--safe-left));
    right: auto;
    width: calc((100% - var(--safe-left) - var(--safe-right)) * 0.44);
  }
  .map-screen .leaflet-control-attribution {
    max-width: calc(43vw - 80px) !important;
  }
}
.radar-window {
  display: flex;
  gap: 3px;
  background: #081326b8;
  border-radius: 9px;
  padding: 3px;
  margin-bottom: 10px;
}
.radar-window button {
  min-height: 29px;
  flex: 1;
  border: 0;
  background: transparent;
  padding: 5px 10px;
  color: #9eb5d4;
  font-size: 10px;
  border-radius: 6px;
}
.radar-window button[aria-pressed="true"] {
  background: #304c73;
  color: #edf5ff;
}
.radar-range-track {
  position: relative;
  flex: 1;
  min-width: 0;
}
.radar-range-track input {
  display: block;
  width: 100%;
  margin: 0;
  height: 28px;
}
.radar-range-track > i {
  position: absolute;
  top: -9px;
  transform: translateX(-50%);
  font-size: 6px;
  font-style: normal;
  letter-spacing: 0.6px;
  color: #e3d6ff;
  pointer-events: none;
  z-index: 2;
}
.radar-range-track > i:after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: 13px;
  top: 9px;
  background: #dccbff69;
}
#radar-console[data-frame-type="forecast"] {
  border-color: #c1b5ff45;
}
#radar-console[data-frame-type="forecast"] #radar-time-kind {
  color: #cfbfff;
}
#radar-availability,
#radar-blend-note {
  font-size: 8px;
  color: #a5bad7;
  line-height: 1.4;
  margin: 7px 0 0;
}
.leaflet-weather-pane > .leaflet-layer {
  will-change: opacity;
}
#hours {
  scroll-behavior: auto;
  scroll-snap-type: none;
}
.hour {
  scroll-snap-align: center;
}
body[data-map-layer="radar"] .map-point {
  bottom: 285px;
}
body[data-map-layer="radar"] .leaflet-control-attribution {
  margin-bottom: 280px !important;
}
@media (max-height: 500px) {
  body[data-map-layer="radar"] .radar-console {
    left: auto;
    right: max(12px, var(--safe-right));
    width: calc((100% - var(--safe-left) - var(--safe-right)) * 0.47);
    max-width: 390px;
    margin: 0;
    padding: 10px 12px;
  }
  #radar-availability,
  #radar-blend-note {
    font-size: 7px;
    margin-top: 4px;
  }
  .radar-window {
    margin-bottom: 6px;
  }
  .radar-window button {
    min-height: 25px;
  }
  .radar-console .radar-legend {
    display: none;
  }
  body[data-map-layer="radar"] .map-point {
    bottom: 65px;
  }
  body[data-map-layer="radar"] .leaflet-control-attribution {
    margin-bottom: 8px !important;
  }
}
@media (max-width: 760px) and (max-height: 740px) {
  body[data-map-layer="radar"] .map-floats {
    display: grid;
    grid-template-columns: repeat(2, 38px);
    gap: 6px;
    top: 106px;
  }
}


/* === observatory.css === */
/* TrueCast Observatory: focused lightning and grouped conditions. */
.conditions-intro {
  padding: 12px 0 20px;
  border-bottom: 1px solid var(--line);
}
.conditions-intro h3 {
  font-size: 26px;
  letter-spacing: -0.8px;
  margin: 7px 0;
}
.conditions-intro p {
  margin: 5px 0;
}
.condition-section {
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}
.condition-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.condition-heading h3 {
  font-size: 12px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}
.condition-link {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 11px;
  min-height: 32px;
  padding: 5px;
}
.hazard-row {
  display: flex;
  gap: 16px;
  align-items: center;
}
.hazard-row strong {
  font-size: 17px;
  font-weight: 550;
  line-height: 1.4;
  display: block;
}
.hazard-row p {
  margin: 6px 0;
  line-height: 1.5;
}
.condition-emblem {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
}
.condition-emblem svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.lightning-emblem {
  background: #b8a0f025;
  color: #d3c0ff;
}
.fire-emblem {
  background: #efa86b20;
  color: #ffc68e;
}
.condition-wind {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 135px;
  padding: 5px 6px;
}
.condition-wind > div:last-child {
  min-width: 0;
}
.condition-wind strong {
  font-size: 20px;
  font-weight: 500;
}
.condition-wind p {
  margin: 8px 0;
}
.wind-compass {
  position: relative;
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle, #1d324c80, transparent 68%);
}
.wind-compass > i {
  position: absolute;
  width: 1px;
  height: 5px;
  left: 50%;
  top: 6px;
  background: var(--muted);
  transform-origin: 0 50px;
  transform: rotate(var(--a));
  opacity: 0.5;
}
.wind-compass > i.major {
  height: 8px;
  background: var(--text);
  opacity: 0.9;
}
.compass-point {
  position: absolute;
  inset: 16px;
  text-align: center;
  font-size: 8px;
  color: var(--muted);
  transform: rotate(var(--a));
}
.compass-needle {
  position: absolute;
  inset: 20px;
  transition: transform 0.4s;
}
.compass-needle:before {
  content: "";
  position: absolute;
  left: calc(50% - 5px);
  top: -2px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 15px solid #efaa95;
}
.compass-speed {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}
.wind-spectrum {
  height: 5px;
  border-radius: 5px;
  position: relative;
  background: linear-gradient(
    90deg,
    #a8d0e6,
    #a8d8b7,
    #e1d891,
    #edac7e,
    #d97991
  );
  margin: 13px 7px;
}
.wind-spectrum > i {
  position: absolute;
  top: 7px;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid var(--text);
}
.wind-scale-labels {
  font-size: 9px;
  color: var(--muted);
  white-space: pre;
  display: flex;
  justify-content: space-between;
  margin: 12px 6px 0;
}
.observations-table > div:nth-child(even) {
  background: #8caace06;
}
.observations-table > div {
  padding: 12px 8px;
  gap: 12px;
}
.observations-table strong {
  text-align: right;
}
.sun-moon-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
  text-align: center;
  align-items: end;
  padding: 8px 0;
}
.sun-moon-grid p {
  font-size: 12px;
  margin: 10px 0 5px;
}
.sun-moon-grid small {
  font-size: 9px;
}
.solar-arc {
  height: 74px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 100px 100px 0 0;
  border-bottom-style: dashed;
  overflow: visible;
  margin: 0 6px;
}
.solar-arc:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #ffc67b10, transparent);
  border-radius: inherit;
}
.solar-arc > i {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #f8d390;
  box-shadow: 0 0 18px #ffce813b;
  transform: translate(-50%, 50%);
}
.moon-disc {
  width: 74px;
  height: 74px;
  margin: auto;
  border-radius: 50%;
  box-shadow: 0 0 30px #c0d4ff08;
}
.moon-disc svg {
  display: block;
  width: 100%;
  height: 100%;
}
.layer-search {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 8px 0 14px;
  background: var(--surface);
}
.layer-search input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 14px;
}
.catalog-heading {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 18px 0 7px;
}
.catalog-layer {
  width: 100%;
  display: grid;
  grid-template-columns: 30px 1fr 22px;
  gap: 12px;
  text-align: left;
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 13px 6px;
  color: var(--text);
  border-radius: 0;
  min-height: 60px;
}
.catalog-symbol {
  color: #adc8ed;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: #a1c6f112;
  border-radius: 9px;
  font-size: 23px;
  line-height: 1;
}
.catalog-layer strong,
.catalog-layer small {
  display: block;
}
.catalog-layer strong {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}
.catalog-layer small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}
.catalog-check {
  font-size: 16px;
  color: var(--muted);
}
.catalog-layer[aria-pressed="true"] {
  background: #a5caff0b;
}
.catalog-layer[aria-pressed="true"] .catalog-symbol {
  color: #d2dfff;
  background: #96bdf234;
}
.catalog-layer[aria-pressed="true"] .catalog-check:after {
  content: " •";
  color: #abcaff;
}
#map-dialog .dialog-heading {
  margin-bottom: 4px;
}
#map-dialog .setting-row {
  margin-top: 12px;
}
.atlas-focus {
  position: absolute;
  top: 111px;
  left: max(12px, var(--safe-left));
  max-width: min(300px, calc(100% - 88px));
  z-index: 600;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 32px 13px 13px;
  background: #0c1729ec;
  border: 1px solid #b6caff2c;
  border-radius: 16px;
  box-shadow: 0 10px 35px #050b1645;
  backdrop-filter: blur(15px);
  color: #edf3ff;
}
.atlas-focus > div {
  min-width: 0;
}
.atlas-focus small {
  font-size: 7px;
  letter-spacing: 1.1px;
  color: #acbddd;
  display: block;
  line-height: 1.5;
}
.atlas-focus strong {
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
  display: block;
  margin-top: 4px;
}
.atlas-focus p {
  font-size: 9px;
  line-height: 1.5;
  color: #b8c7e1;
  margin: 5px 0 0;
}
.atlas-focus .atlas-caveat {
  font-size: 8px;
  letter-spacing: 0;
  margin-top: 6px;
  color: #b0bed2;
}
.atlas-emblem {
  width: 30px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.atlas-emblem svg {
  width: 19px;
  height: 25px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linejoin: round;
}
.atlas-info {
  position: absolute;
  right: 7px;
  top: 8px;
  width: 26px;
  height: 26px;
  background: #a8bde11a;
  border: 1px solid #d5e3fc30;
  color: #dfe9ff;
  border-radius: 50%;
  font-size: 12px;
}
.distance-ring-label span {
  display: block;
  background: #101d31db;
  color: #e7e8ff;
  font-size: 10px;
  text-align: center;
  border-radius: 10px;
  padding: 3px 5px;
  border: 1px solid #d8ccff33;
  white-space: nowrap;
}
.saved-map-pin span {
  display: block;
  width: 15px;
  height: 19px;
  transform: rotate(-45deg);
  border-radius: 50% 50% 50% 0;
  background: #c0acf7;
  border: 2px solid #e3dcfa;
  box-shadow: 0 2px 8px #0007;
}
.saved-place-meta {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.saved-place button[aria-pressed="true"] {
  color: var(--accent);
}
.lightning-history,
.daily-display {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}
.lightning-history > span,
.daily-display > span {
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-right: auto;
}
.lightning-history button,
.daily-display button {
  font-size: 10px;
  padding: 6px 10px;
  min-height: 30px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}
.lightning-history button[aria-pressed="true"],
.daily-display button[aria-pressed="true"] {
  background: #779bd333;
  color: var(--text);
  border-color: #9cbff045;
}
.daily-display {
  margin: 18px 0 12px;
}
.day-condition {
  grid-column: 2 / -1;
  font-size: 10px;
  color: var(--muted);
  text-align: left;
  margin-top: -5px;
}
.day-expanded {
  display: none;
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  padding: 6px 0 2px;
  text-align: left;
}
body[data-daily-mode="details"] .day-expanded {
  display: block;
}
.today-actions #all-conditions {
  font-size: 11px;
}
@media (max-width: 760px) {
  .condition-wind {
    gap: 22px;
  }
  .atlas-focus {
    top: 106px;
    max-width: min(260px, calc(100% - 85px));
    padding: 11px 29px 11px 11px;
  }
  .atlas-focus strong {
    font-size: 12px;
  }
  body[data-map-layer="lightning"] .map-floats,
  body[data-map-layer="fire"] .map-floats,
  body[data-map-layer="storm"] .map-floats {
    top: 115px;
  }
  body[data-map-layer="lightning"] .map-point {
    bottom: 250px;
  }
  .day-condition {
    font-size: 9px;
  }
}
@media (max-height: 740px) and (max-width: 760px) {
  .atlas-focus {
    top: 94px;
    padding: 8px 26px 8px 10px;
    max-width: calc(100% - 92px);
  }
  .atlas-focus strong {
    font-size: 10px;
  }
  .atlas-focus p,
  .atlas-focus .atlas-caveat {
    font-size: 7px;
  }
  body[data-map-layer="lightning"] .map-floats,
  body[data-map-layer="fire"] .map-floats,
  body[data-map-layer="storm"] .map-floats {
    top: 95px;
    gap: 4px;
  }
  body[data-map-layer="lightning"] .weather-console {
    padding: 10px 12px;
  }
  body[data-map-layer="lightning"] .weather-legend {
    display: none;
  }
}
@media (max-height: 500px) {
  .atlas-focus {
    top: 130px;
    left: max(12px, var(--safe-left));
    width: calc((100% - var(--safe-left) - var(--safe-right)) * 0.43);
    max-width: 310px;
    padding: 8px 24px 8px 10px;
  }
  .atlas-focus .atlas-emblem {
    display: none;
  }
  .atlas-focus strong {
    font-size: 11px;
  }
  .atlas-focus p {
    font-size: 8px;
  }
  .atlas-focus .atlas-caveat {
    font-size: 7px;
  }
  .lightning-history {
    margin-bottom: 5px;
  }
  body[data-map-layer="lightning"] .map-floats,
  body[data-map-layer="fire"] .map-floats,
  body[data-map-layer="storm"] .map-floats {
    top: 75px;
    display: flex;
    flex-direction: row;
  }
  .lightning-history > span {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .compass-needle {
    transition: none;
  }
}
.condition-link svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  margin-left: 6px;
  vertical-align: middle;
}
.compass-point b {
  display: inline-block;
  font-weight: 500;
  transform: rotate(calc(-1 * var(--a)));
}
.atlas-info {
  min-height: 30px;
  width: 30px;
  height: 30px;
  padding: 0;
}
.catalog-check:before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
#detail-dialog > .dialog-heading,
#map-dialog > .dialog-heading {
  position: sticky;
  top: 0;
  z-index: 8;
  background: var(--surface);
  box-shadow: 0 -12px 0 12px var(--surface);
}
#map-dialog .layer-search {
  top: 44px;
  z-index: 6;
}
.layer-catalog {
  max-height: min(330px, 38dvh);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #7189aa transparent;
  padding-right: 4px;
}


/* === horizon.css === */
/* TrueCast 5.0 — a cohesive instrument for reading the sky. */
:root {
  --bg: #090f18;
  --surface: #111c2a;
  --surface-2: #1a293b;
  --text: #eef3f8;
  --muted: #a3b1c3;
  --line: #a9c2dc19;
  --accent: #aed5ed;
  --rain: #8accea;
  --warm: #e8bf8f;
  --nav: #0b131ff2;
  --radius: 22px;
  --map-deck: 188px;
}
:root[data-theme="light"] {
  --bg: #edf2f6;
  --surface: #fbfdff;
  --surface-2: #e0e9f1;
  --text: #172839;
  --muted: #506579;
  --line: #203f5a1c;
  --accent: #1d6185;
  --rain: #236d91;
  --warm: #985c24;
  --nav: #eff5faf5;
}
html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
body {
  background:
    radial-gradient(ellipse at 90% 0%, #23354b20, transparent 50%), var(--bg);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
button {
  transition:
    background 0.18s,
    border-color 0.18s,
    color 0.18s,
    transform 0.18s;
}
button:active {
  transform: scale(0.985);
}
.surface {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, #a8c9ed06, transparent 60%), var(--surface);
  box-shadow: inset 0 1px #e3efff04;
}
.app-header {
  background: #0c1421e8;
  backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--line);
}
.location-overline {
  font-size: 7px;
  letter-spacing: 3.2px;
  color: #a9bfd4;
}
.location-trigger strong {
  font-weight: 580;
  letter-spacing: -0.35px;
}
.app-header .mobile-brand img {
  border-radius: 12px;
  opacity: 0.9;
}
.app-rail {
  background: #0c1522;
  border-right: 1px solid var(--line);
}
.app-nav a {
  font-weight: 450;
  border-radius: 16px;
  letter-spacing: 0.1px;
}
.app-nav a[aria-current="page"] {
  color: var(--text);
  background: #9dbce01a;
  box-shadow: inset 0 1px #e4f3ff09;
}
.app-nav a[aria-current="page"]:before {
  display: none;
}
.app-nav svg {
  stroke-width: 1.45;
}
#status {
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.screen-heading h1 {
  font-weight: 550;
  letter-spacing: -1px;
}
.eyebrow,
.section-line {
  color: var(--muted);
  letter-spacing: 1.65px;
  font-weight: 500;
}
.current-sky {
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #bad2e829;
  border-radius: 26px;
  padding: 18px 19px 14px;
  background:
    radial-gradient(ellipse at 94% 12%, #b1a6bf38, transparent 62%),
    linear-gradient(145deg, #142a36, #122130 60%, #1c2e41);
  box-shadow:
    inset 0 1px #e3f3ff0c,
    0 10px 40px #00000015;
}
body[data-night="true"] .current-sky {
  background:
    radial-gradient(ellipse at 95% 15%, #667ca14a, transparent 58%),
    linear-gradient(145deg, #132432, #101d2d 60%, #29384a);
}
body[data-weather="wet"] .current-sky {
  background:
    radial-gradient(ellipse at 95% 20%, #778eaa45, transparent 62%),
    linear-gradient(140deg, #142a37, #1a2939 65%, #344550);
}
.current-top {
  height: 26px;
  position: relative;
  z-index: 3;
}
#date {
  font-size: 10px;
  color: #bccbdc;
  letter-spacing: 0.1px;
}
.current-core {
  margin: 5px 0 0;
  align-items: center;
  position: relative;
  z-index: 2;
}
.temperature {
  font-size: 112px;
  line-height: 1.06;
  font-weight: 250;
  letter-spacing: -8px;
  font-variant-numeric: tabular-nums;
}
#condition {
  font-size: 17px;
  font-weight: 450;
  letter-spacing: -0.3px;
  margin: 4px 0 8px;
}
.current-range {
  font-size: 11px;
  color: #b7c7d8;
  gap: 14px;
  line-height: 1.6;
}
.current-range b {
  font-weight: 500;
  color: #e7edf6;
}
.weather-art {
  width: 124px;
  height: 124px;
  position: relative;
  filter: drop-shadow(0 12px 28px #0002);
}
.weather-art > svg {
  width: 100%;
  height: 100%;
}
.current-sky .save-button {
  color: #ced9e7;
  min-height: 36px;
  width: 36px;
  font-size: 22px;
  z-index: 4;
  background: #d7e6f208;
  border-radius: 50%;
}
.current-sky .data-badge {
  color: #c4d2e3;
  font-size: 7px;
  letter-spacing: 1.6px;
  bottom: 68px;
  right: 18px;
}
.hero-links {
  position: relative;
  z-index: 3;
  border-top: 1px solid #d2dfed21;
  padding-top: 10px;
  margin-top: 14px;
  gap: 12px;
}
.hero-links a {
  min-height: 35px;
  text-decoration: none;
  color: #e4edf6;
}
.hero-links a:last-child {
  border-left-color: #c5d8ea1b;
  padding-left: 16px;
}
.hero-links span {
  font-size: 9px;
  line-height: 1.5;
  color: #b2c4d5;
}
.hero-links b {
  font-size: 11px;
  font-weight: 500;
}
.sky-contours {
  height: 130px;
  bottom: 29px;
  opacity: 0.75;
}
body[data-night="true"] .sky-noise {
  opacity: 0.55;
  animation: sky-drift 35s linear infinite alternate;
}
@keyframes sky-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-5px, 6px, 0);
  }
}
.weather-brief {
  border-radius: 17px;
  border: 1px solid var(--line);
  background: #a7c8e807;
  gap: 11px;
  min-height: 50px;
  padding: 9px 11px;
}
.brief-icon {
  border-radius: 11px;
  background: #d8e5f00b;
  width: 30px;
  height: 30px;
  color: var(--accent);
}
.weather-brief small {
  font-size: 8px;
  letter-spacing: 1.4px;
  color: var(--muted);
}
#change-brief {
  font-size: 12px;
  font-weight: 450;
  line-height: 1.5;
  color: var(--text);
}
.hour-preview {
  padding: 12px 13px 10px;
}
.hour-preview .section-line {
  font-size: 8px;
  letter-spacing: 1.4px;
  margin-bottom: 10px;
}
.hour-preview .section-line a {
  font-size: 10px;
  letter-spacing: 0;
  color: var(--accent);
}
.preview-hour small {
  font-size: 9px;
}
.preview-hour strong {
  font-size: 14px;
  font-weight: 500;
}
.preview-hour svg {
  width: 30px;
  height: 29px;
}
.metric-grid {
  gap: 9px;
}
.metric-grid button {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, #a6c7e70b, transparent 70%), var(--surface);
  padding: 12px 13px;
  border-radius: 18px;
  min-height: 75px;
  box-shadow: none;
}
.metric-grid button > span {
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
}
.metric-grid strong {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.6px;
  line-height: 1.3;
}
.metric-grid small {
  font-size: 9px;
  line-height: 1.4;
  color: var(--muted);
}
.metric-symbol {
  opacity: 0.65;
  right: 12px;
  bottom: 16px;
}
.today-actions {
  gap: 9px;
}
.today-actions button {
  background: #162334;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: #c7d7e6;
  font-size: 11px;
  min-height: 39px;
}
.forecast-tabs {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 3px;
  background: #0c1522;
}
.forecast-tabs button {
  font-size: 12px;
  min-height: 35px;
  border-radius: 10px;
}
.forecast-tabs button[aria-pressed="true"] {
  background: #26394f;
  color: #f1f5fa;
  box-shadow: none;
}
.forecast-intro {
  margin: 18px 0 14px;
}
.forecast-intro h2 {
  font-size: 29px;
  line-height: 1.15;
  letter-spacing: -1.1px;
  font-weight: 450;
  margin: 7px 0;
}
.forecast-intro .eyebrow {
  font-size: 9px;
}
#forecast-story {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 650px;
}
.forecast-controls {
  margin: 14px 0 0;
  gap: 10px;
}
.metric-switch {
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0c1522;
}
.metric-switch button {
  font-size: 11px;
  min-height: 32px;
  border-radius: 9px;
  padding: 7px 13px;
  color: var(--muted);
}
.metric-switch button[aria-pressed="true"] {
  background: #2a3b50;
  color: var(--text);
}
.forecast-controls select {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 12px;
  min-height: 40px;
}
.selected-forecast {
  position: relative;
  margin-top: 14px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 100% 0%, #adbbd11a, transparent 70%), #101b29;
}
#selected-date {
  font-size: 11px;
  color: #afc1d4;
  margin: 0 0 7px;
  max-width: calc(100% - 95px);
  line-height: 1.5;
}
#selected-value {
  font-size: 43px;
  font-weight: 300;
  letter-spacing: -1.8px;
  line-height: 1.05;
}
#selected-condition {
  font-size: 12px;
  color: #b7c7d7;
  padding-left: 12px;
}
#compare-models {
  position: absolute;
  right: 12px;
  top: 12px;
  border: 1px solid var(--line);
  background: #d0e1f208;
  border-radius: 10px;
  min-height: 30px;
  padding: 6px 9px;
  font-size: 9px;
  color: var(--accent);
}
.forecast-chart {
  padding: 12px 0 0;
  margin-top: 9px;
  position: relative;
}
.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.chart-header .chart-unit {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}
.chart-hint {
  font-size: 8px;
  color: var(--muted);
  white-space: nowrap;
}
.forecast-chart .weather-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  touch-action: pan-y;
  user-select: none;
  cursor: crosshair;
}
.weather-chart .chart-night {
  fill: #b8cce710;
}
.weather-chart .chart-grid {
  stroke: #c6d9ee18;
  stroke-width: 1;
  stroke-dasharray: 3 5;
}
.weather-chart .chart-tick {
  font-size: 11px;
  fill: #93a9c0;
  font-family: inherit;
}
.weather-chart .chart-time {
  font-size: 10px;
  fill: #aabbd0;
}
.weather-chart .chart-cursor {
  stroke: #d6e5f0;
  stroke-width: 1;
  stroke-dasharray: 3 3;
  opacity: 0.65;
}
.weather-chart .chart-selected-dot {
  filter: drop-shadow(0 0 4px #ffffff30);
}
.weather-chart .chart-line {
  stroke-width: 2.6;
  filter: none;
}
#forecast-scrub {
  height: 26px;
  margin: 0 0 12px;
  accent-color: #bdcedb;
}
.hours {
  gap: 7px;
  padding: 2px 0 8px;
}
.hour {
  min-width: 60px;
  padding: 10px 7px;
  border-radius: 15px;
  border: 1px solid transparent;
  background: #9db5d707;
}
.hours .hour[aria-pressed="true"] {
  background: var(--hour-selected);
  border-color: #adc8e655;
  box-shadow: inset 0 1px #d9e8f00b;
}
.hour > small:first-child {
  font-size: 10px;
  color: var(--muted);
}
.hour > strong {
  font-size: 17px;
  font-weight: 450;
  letter-spacing: -0.4px;
}
.hour svg {
  width: 31px;
  height: 28px;
  margin: 6px 0 4px;
}
.hour .rain-chance {
  font-size: 10px;
  color: var(--rain);
}
.hour-detail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  margin-top: 10px;
}
.hour-detail > div {
  padding: 12px 10px;
  background: var(--surface);
  min-width: 0;
}
.hour-detail small {
  font-size: 9px;
  color: var(--muted);
  display: block;
  line-height: 1.4;
}
.hour-detail strong {
  font-size: 13px;
  font-weight: 450;
  display: block;
  margin-top: 4px;
}
.forecast-signals {
  margin: 24px 0 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.forecast-signals .section-line {
  font-size: 8px;
  letter-spacing: 1.1px;
  gap: 8px;
}
.forecast-signals .section-line span:last-child {
  letter-spacing: 0;
  font-size: 9px;
}
.weather-signals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.weather-signal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-height: 100px;
  text-align: left;
  padding: 12px;
  background: #0b15236b;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
}
.weather-signal small {
  font-size: 10px;
  color: var(--muted);
}
.weather-signal strong {
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -0.6px;
}
.weather-signal > span {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.5;
}
.model-spread {
  padding: 18px;
  margin: 16px 0;
  border-radius: 16px;
  background: #c1b7ec0d;
  border: 1px solid #b4b2dc25;
}
.model-spread small {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.model-spread strong {
  display: block;
  font-size: 32px;
  font-weight: 350;
  letter-spacing: -1px;
  margin: 9px 0;
}
.model-spread p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.outlook-intro h2 {
  font-weight: 450;
  letter-spacing: -1px;
  font-size: 31px;
}
.outlook-intro p {
  font-size: 12px;
  line-height: 1.6;
}
.days {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 2px 13px;
}
.day {
  padding: 15px 2px;
  row-gap: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.day strong {
  font-size: 16px;
  font-weight: 450;
}
.day > span:first-child {
  font-size: 11px;
}
.day .day-low {
  color: var(--muted);
  font-size: 14px;
}
.day-condition {
  font-size: 10px;
  letter-spacing: 0.1px;
}
.day-expanded {
  font-size: 11px;
  line-height: 1.65;
  padding: 7px 0;
}
.temperature-bar {
  height: 4px;
  background: #a5bdd314;
}
.temperature-bar i {
  height: 4px;
  background: linear-gradient(90deg, #819fb9, #b8c8cb, #e5bc8e);
}
.map-top {
  z-index: 601;
}
.map-layers {
  border-radius: 14px;
  border: 1px solid #bdcfe52c;
  background: #0d1829ed;
  padding: 4px;
  box-shadow: 0 8px 25px #0002;
  backdrop-filter: blur(18px);
}
.map-layers button {
  font-size: 11px;
  color: #b4c5d8;
  min-height: 35px;
  padding: 9px 14px;
  border-radius: 10px;
}
.map-layers button[aria-pressed="true"] {
  background: #314961;
  color: #edf4fc;
}
.map-meta {
  max-width: min(500px, calc(100% - 70px));
  text-shadow:
    0 1px 7px #000,
    0 0 12px #000;
}
.map-meta > span:first-child {
  font-size: 8px;
  letter-spacing: 1.6px;
  color: #e0e9f3;
}
.map-meta > span:last-child {
  font-size: 10px;
  line-height: 1.4;
  max-width: 430px;
  color: #d2dce8;
}
.radar-console,
.weather-console {
  background: #101c2ded;
  border: 1px solid #b5cce634;
  border-radius: 22px;
  box-shadow: 0 16px 50px #0003;
  backdrop-filter: blur(22px);
  padding: 13px 15px;
}
.radar-window {
  background: #07111e85;
  border: 1px solid #ceddec0b;
  padding: 3px;
  border-radius: 10px;
  margin-bottom: 10px;
}
.radar-window button {
  min-height: 28px;
  font-size: 11px;
  border-radius: 7px;
  padding: 5px 10px;
}
.radar-window button[aria-pressed="true"] {
  background: #314962;
  color: #edf4fa;
}
.radar-console-top {
  margin-bottom: 9px;
}
#radar-time-kind,
#weather-time-kind {
  font-size: 8px;
  letter-spacing: 1.35px;
}
#radar-time,
#weather-time {
  font-size: 17px;
  letter-spacing: -0.25px;
  font-weight: 450;
}
#radar-latest,
#weather-refresh {
  min-height: 32px;
  border-radius: 10px;
  background: #acc8e410;
  border: 1px solid #c7dae21a;
  font-size: 10px;
}
#play,
#weather-play {
  border-radius: 11px;
  background: #2b425e;
  min-width: 36px;
  width: 36px;
  height: 36px;
  min-height: 36px;
  border: 1px solid #bdd4ef16;
}
#speed,
#weather-map-info {
  min-height: 34px;
  height: 34px;
  min-width: 30px;
  font-size: 12px;
  background: #acc8e410;
  border-radius: 10px;
}
.timeline-labels,
.weather-timeline-labels {
  font-size: 8px;
  color: #aabdce;
  margin-top: 4px;
}
.radar-legend {
  margin: 9px 0 0;
  font-size: 8px;
  gap: 7px;
}
.radar-legend i {
  height: 4px;
}
.map-context {
  margin-top: 9px;
  border-top: 1px solid #c1d5e619;
  padding-top: 8px;
  color: #aec1d6;
}
.map-context > summary {
  font-size: 9px;
  letter-spacing: 0.1px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 22px;
}
.map-context > summary:after {
  content: "+";
  font-size: 15px;
  color: #c7d9e9;
}
.map-context[open] > summary:after {
  content: "−";
}
.map-context .map-source,
.map-context .weather-run {
  font-size: 9px;
  line-height: 1.6;
  margin: 8px 0;
}
.weather-legend {
  margin-top: 9px;
}
.weather-legend .fine {
  font-size: 9px;
  line-height: 1.4;
  margin: 4px 0;
}
.weather-legend .map-gradient {
  height: 5px;
}
.forecast-products {
  margin-bottom: 9px;
  gap: 4px;
}
.forecast-products button {
  font-size: 10px;
  min-height: 28px;
  border-radius: 8px;
}
.forecast-products button[aria-pressed="true"] {
  background: #33475f;
  color: #e9f2fa;
}
body[data-map-layer="radar"] .leaflet-control-attribution {
  margin-bottom: 205px !important;
}
body[data-map-layer="radar"] .map-point {
  bottom: 210px;
}
body[data-map-layer="lightning"] .map-point {
  bottom: 230px;
}
.atlas-focus {
  background: #111d2dee;
  border-color: #bdcde835;
  box-shadow: 0 8px 30px #0002;
}
.atlas-focus strong {
  font-weight: 500;
  font-size: 13px;
}
.atlas-focus small {
  font-size: 8px;
}
.atlas-focus .atlas-caveat {
  font-size: 8px;
}
.layer-search input {
  background: #0b1422;
  border-color: var(--line);
  min-height: 45px;
}
.catalog-layer {
  padding: 12px 7px;
  min-height: 60px;
  border-color: var(--line);
  border-radius: 10px;
}
.catalog-layer[aria-pressed="true"] {
  background: #abc5e717;
}
.catalog-symbol {
  background: #abc5e70d;
  color: #b7d1e8;
}
.catalog-heading {
  font-size: 9px;
  letter-spacing: 1.8px;
}
.plan-heading {
  margin: 6px 0 22px;
}
.plan-heading h2 {
  font-size: 44px;
  line-height: 1.02;
  font-weight: 350;
  letter-spacing: -2.1px;
  margin: 13px 0;
}
.plan-heading > p {
  font-size: 13px;
  line-height: 1.65;
  max-width: 440px;
  color: var(--muted);
}
.sun-strip {
  border-radius: 15px;
  border: 1px solid var(--line);
  background: #a2c2db08;
  min-height: 50px;
}
.plan-inputs {
  gap: 12px;
  border-radius: 19px;
  padding: 16px;
  margin: 15px 0;
}
.plan-inputs label,
.plan-priority > span {
  font-size: 10px;
  color: var(--muted);
}
.plan-inputs select,
.plan-priority select {
  margin-top: 8px;
  width: 100%;
  background: #0a1422;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 10px;
  color: var(--text);
  font-size: 13px;
  min-height: 43px;
}
.plan-priority {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0 16px;
}
.plan-priority select {
  margin: 0;
  width: auto;
  min-width: 130px;
}
.window {
  border-radius: 24px;
  padding: 24px;
  background:
    radial-gradient(ellipse at 100% 0%, #acbdb823, transparent 70%),
    linear-gradient(140deg, #162c37, #172436);
  border: 1px solid #b8d5cf29;
  box-shadow: none;
}
.window h2 {
  font-size: 34px;
  letter-spacing: -1.3px;
  font-weight: 350;
  line-height: 1.2;
  margin: 12px 0 6px;
}
.window .eyebrow {
  color: #b8d8d2;
  font-size: 9px;
  letter-spacing: 1.7px;
}
.window-day {
  font-size: 13px;
  color: #bacada;
  margin: 5px 0 20px;
}
.window-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid #c2ddd81c;
  padding-top: 16px;
}
.window-stats small {
  font-size: 9px;
  color: #a4bacc;
  display: block;
}
.window-stats strong {
  font-size: 16px;
  font-weight: 450;
  color: #e3eef5;
  display: block;
  margin-top: 6px;
  line-height: 1.4;
}
.window-actions {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}
.window-actions button {
  flex: 1;
  border: 1px solid #c9ded829;
  border-radius: 11px;
  min-height: 40px;
  background: #d0e8dd0c;
  color: #d8eae7;
  font-size: 11px;
  padding: 10px;
}
.window-actions button:first-child {
  background: #b2d5ce;
  color: #142e34;
  border-color: transparent;
}
.alternative-window {
  padding: 20px;
  border-radius: 20px;
  margin-top: 12px;
}
.alternative-window h2 {
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -0.75px;
  margin: 10px 0 5px;
}
.alternative-window .eyebrow {
  font-size: 8px;
  letter-spacing: 1.5px;
}
.alternative-window .window-stats strong {
  font-size: 14px;
  color: var(--text);
}
.alternative-window .window-day {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 15px;
}
.alternative-window .window-actions button:first-child {
  background: #aac5db;
  color: #132b3e;
}
.plan-criteria {
  border-radius: 17px;
  margin-top: 18px;
}
.settings-title {
  padding: 14px 0 24px;
  margin-bottom: 4px;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}
.settings-title h2 {
  font-weight: 450;
  font-size: 29px;
  letter-spacing: -0.9px;
}
.settings-title p {
  font-size: 12px;
  color: var(--muted);
}
.version-pill {
  background: #aec8dd16;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #a7bfd3;
  padding: 5px 8px;
  font-size: 10px;
}
.settings-group {
  border-radius: 22px;
  padding: 18px;
  margin-top: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.settings-group h3 {
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.setting-row {
  font-size: 13px;
  border-color: var(--line);
  min-height: 54px;
}
.setting-row select {
  background: #0c1725;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 12px;
  padding: 8px 10px;
  min-height: 36px;
}
.setting-link {
  font-size: 13px;
  min-height: 50px;
  color: var(--text);
}
.info-group {
  border-radius: 20px;
  margin-top: 15px;
  border: 1px solid var(--line);
}
dialog {
  background: var(--surface);
  border-color: #adc5df25;
  border-radius: 25px;
}
#detail-dialog > .dialog-heading,
#map-dialog > .dialog-heading {
  box-shadow: 0 -12px 0 12px var(--surface);
}
.dialog-heading h2 {
  font-size: 24px;
  font-weight: 450;
  letter-spacing: -0.65px;
}
.condition-heading h3 {
  font-size: 11px;
  letter-spacing: 1.5px;
}
.condition-section {
  padding: 21px 0;
}
.detail-facts > div {
  font-size: 12px;
  line-height: 1.5;
}
.hazard-row strong {
  font-size: 17px;
  font-weight: 500;
}
:root[data-theme="light"] .app-header,
:root[data-theme="light"] .app-rail {
  background: #eff5faf2;
}
:root[data-theme="light"] .forecast-tabs,
:root[data-theme="light"] .metric-switch,
:root[data-theme="light"] .selected-forecast,
:root[data-theme="light"] .setting-row select,
:root[data-theme="light"] .plan-inputs select,
:root[data-theme="light"] .plan-priority select,
:root[data-theme="light"] .layer-search input {
  background: var(--surface);
}
:root[data-theme="light"] .forecast-tabs button[aria-pressed="true"],
:root[data-theme="light"] .metric-switch button[aria-pressed="true"] {
  background: #d9e7f0;
  color: var(--text);
}
:root[data-theme="light"] .weather-signal {
  background: #e5edf5;
}
:root[data-theme="light"] .today-actions button {
  background: #e4edf4;
  color: var(--text);
}
:root[data-theme="light"] .weather-chart .chart-night {
  fill: #789cb016;
}
:root[data-theme="light"] .weather-chart .chart-tick {
  fill: #526a7f;
}
:root[data-theme="light"] .weather-chart .chart-grid {
  stroke: #54758e26;
}
body[data-motion="reduced"] *,
body[data-motion="reduced"] *:before,
body[data-motion="reduced"] *:after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
body[data-reading-size="larger"] #detail-content,
body[data-reading-size="larger"] .fine {
  font-size: 14px;
  line-height: 1.7;
}
body[data-reading-size="larger"] .detail-facts > div,
body[data-reading-size="larger"] .condition-heading h3 {
  font-size: 14px;
}
@media (min-width: 1200px) {
  .today-screen {
    column-gap: 22px;
    row-gap: 16px;
  }
  .current-sky {
    padding: 30px;
    min-height: 410px;
  }
  .temperature {
    font-size: 154px;
  }
  .current-core {
    margin-top: 25px;
  }
  .weather-art {
    width: 175px;
    height: 175px;
  }
  .hero-links {
    margin-top: 32px;
    padding-top: 20px;
  }
  .hero-links span {
    font-size: 11px;
  }
  .hero-links b {
    font-size: 14px;
  }
  .current-sky .data-badge {
    bottom: 110px;
    font-size: 9px;
    right: 30px;
  }
  .metric-grid button {
    min-height: 108px;
    padding: 19px;
  }
  .metric-grid strong {
    font-size: 32px;
  }
  .metric-grid button > span {
    font-size: 10px;
  }
  .metric-grid small {
    font-size: 11px;
  }
  .weather-brief {
    min-height: 70px;
    padding: 15px;
  }
  .hour-preview {
    padding: 18px;
  }
  .preview-hour strong {
    font-size: 17px;
  }
  .preview-hour small {
    font-size: 11px;
  }
  .forecast-intro h2 {
    font-size: 37px;
  }
  .forecast-chart .weather-chart {
    max-height: 320px;
  }
  .weather-signals {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .settings-screen {
    max-width: 800px;
  }
}
@media (max-width: 760px), (max-height: 500px) and (pointer: coarse) {
  :root {
    --top: calc(56px + var(--safe-top));
    --bottom: calc(64px + var(--safe-bottom));
  }
  main {
    padding: 10px max(16px, var(--safe-right)) 18px max(16px, var(--safe-left));
  }
  .app-nav {
    padding: 6px max(8px, var(--safe-right)) var(--safe-bottom)
      max(8px, var(--safe-left));
    border-top: 1px solid var(--line);
    background: var(--nav);
    backdrop-filter: blur(22px);
  }
  .app-nav a {
    border-radius: 18px;
    font-size: 9px;
    padding: 7px 9px;
    min-height: 48px;
    gap: 5px;
  }
  .app-nav svg {
    width: 22px;
    height: 22px;
  }
  .app-nav a[aria-current="page"] {
    background: #adc9e218;
    border: 1px solid #d7e6f00b;
  }
  .app-header .location-trigger strong {
    font-size: 17px;
  }
  body[data-screen="today"] .screen-heading,
  body[data-screen="forecast"] .screen-heading,
  body[data-screen="map"] .screen-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    margin: 0;
    padding: 0;
  }
  #status {
    font-size: 8px;
    height: 12px;
    line-height: 12px;
    margin: 0 0 8px;
  }
  .today-screen {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .current-sky {
    min-height: 211px;
    padding: 12px 15px 11px;
    margin: 0;
    border-radius: 25px;
  }
  .current-top {
    height: 23px;
  }
  #date {
    font-size: 9px;
  }
  .current-core {
    margin-top: 0;
  }
  .temperature {
    font-size: 91px;
    letter-spacing: -6.5px;
    line-height: 1;
  }
  #condition {
    font-size: 16px;
    margin: 4px 0 7px;
  }
  .current-range {
    font-size: 10px;
    gap: 11px;
  }
  .weather-art {
    width: 103px;
    height: 103px;
    margin-right: 2px;
  }
  .current-sky .data-badge {
    bottom: 64px;
    font-size: 6px;
    right: 16px;
  }
  .hero-links {
    margin-top: 11px;
    padding-top: 8px;
    gap: 12px;
  }
  .hero-links a {
    min-height: 30px;
  }
  .hero-links span {
    font-size: 8px;
  }
  .hero-links b {
    font-size: 10px;
  }
  .current-sky .save-button {
    min-height: 30px;
    width: 30px;
    font-size: 20px;
  }
  .weather-brief {
    min-height: 47px;
    padding: 8px 11px;
  }
  #change-brief {
    font-size: 11px;
  }
  .hour-preview {
    padding: 11px 12px 9px;
    min-height: 107px;
  }
  .hour-preview .section-line {
    margin-bottom: 7px;
  }
  .preview-hour svg {
    width: 29px;
    height: 26px;
  }
  .preview-hour strong {
    font-size: 13px;
  }
  .preview-hour small {
    font-size: 8px;
  }
  .metric-grid button {
    min-height: 71px;
    padding: 10px 12px;
  }
  .metric-grid strong {
    font-size: 24px;
  }
  .metric-grid small {
    font-size: 8px;
  }
  .metric-grid button > span {
    font-size: 8px;
  }
  .metric-symbol {
    right: 12px;
    bottom: 14px;
  }
  .today-actions button {
    min-height: 39px;
    font-size: 11px;
  }
  .forecast-tabs {
    margin: 1px 0 13px;
  }
  .forecast-controls {
    margin-top: 10px;
  }
  .forecast-intro {
    margin: 15px 0 12px;
  }
  .forecast-intro h2 {
    font-size: 25px;
    letter-spacing: -0.8px;
  }
  .forecast-intro .eyebrow {
    font-size: 8px;
  }
  #forecast-story {
    font-size: 11px;
    margin-top: 7px;
    line-height: 1.45;
  }
  .selected-forecast {
    margin-top: 10px;
    padding: 13px 14px;
    min-height: 86px;
  }
  #selected-date {
    font-size: 10px;
  }
  #selected-value {
    font-size: 37px;
  }
  #selected-condition {
    font-size: 11px;
    padding-left: 9px;
  }
  .forecast-chart {
    margin-top: 8px;
    padding-top: 6px;
  }
  .chart-header .chart-unit {
    font-size: 9px;
  }
  .chart-hint {
    font-size: 7px;
  }
  .hour-detail {
    margin-top: 8px;
  }
  .hour-detail > div {
    padding: 10px 8px;
  }
  .hour-detail small {
    font-size: 8px;
  }
  .hour-detail strong {
    font-size: 12px;
  }
  .forecasts-signals {
    padding: 14px;
  }
  .map-layers button {
    font-size: 10px;
    padding: 8px 12px;
    min-height: 32px;
  }
  .map-meta > span:first-child {
    font-size: 7px;
  }
  .map-meta > span:last-child {
    font-size: 9px;
  }
  .map-floats button {
    width: 36px;
    height: 36px;
    min-height: 36px;
    font-size: 23px;
  }
  .radar-console,
  .weather-console {
    left: max(10px, var(--safe-left));
    right: max(10px, var(--safe-right));
    bottom: 12px;
    padding: 11px 13px;
    border-radius: 20px;
  }
  .radar-console-top {
    margin-bottom: 7px;
  }
  #radar-time,
  #weather-time {
    font-size: 16px;
  }
  #radar-time-kind,
  #weather-time-kind {
    font-size: 7px;
  }
  .radar-window {
    margin-bottom: 8px;
  }
  .radar-window button {
    min-height: 27px;
    font-size: 10px;
  }
  .map-context {
    margin-top: 7px;
    padding-top: 6px;
  }
  .map-context summary {
    font-size: 8px;
    min-height: 20px;
  }
  .weather-legend {
    margin-top: 7px;
  }
  .atlas-focus {
    top: 100px;
    max-width: min(255px, calc(100% - 87px));
    padding: 11px 30px 11px 11px;
    border-radius: 17px;
  }
  .atlas-focus strong {
    font-size: 12px;
  }
  .plan-heading {
    margin: 5px 0 20px;
  }
  .plan-heading h2 {
    font-size: 40px;
    letter-spacing: -1.8px;
  }
  .plan-heading > p {
    font-size: 12px;
    line-height: 1.65;
  }
  .window {
    padding: 21px;
  }
  .window h2 {
    font-size: 29px;
    letter-spacing: -0.9px;
  }
  .window-stats strong {
    font-size: 14px;
  }
  .window-actions button {
    font-size: 10px;
    min-height: 42px;
  }
  .settings-title {
    margin-top: 1px;
    padding-top: 8px;
  }
  .setting-row {
    font-size: 12px;
  }
  .settings-group {
    padding: 17px;
  }
  .settings-title h2 {
    font-size: 28px;
  }
  .settings-title p {
    font-size: 11px;
  }
}
@media (max-width: 380px) {
  .current-sky {
    padding: 11px 13px;
  }
  .temperature {
    font-size: 84px;
  }
  .weather-art {
    width: 92px;
    height: 92px;
  }
  .current-range {
    font-size: 9px;
  }
  .hero-links span {
    font-size: 7px;
  }
  .hour-preview {
    padding: 10px;
  }
  .metric-grid button {
    padding: 9px 10px;
    min-height: 70px;
  }
  .metric-grid strong {
    font-size: 23px;
  }
  .chart-hint {
    display: none;
  }
  .window h2 {
    font-size: 26px;
  }
  .window-actions {
    flex-direction: column;
  }
  .hour-detail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-height: 740px) and (max-width: 760px) {
  .current-sky {
    min-height: 188px;
    padding-top: 10px;
  }
  .temperature {
    font-size: 78px;
  }
  .weather-art {
    width: 84px;
    height: 84px;
  }
  .current-sky .data-badge {
    bottom: 59px;
  }
  .hero-links {
    margin-top: 8px;
  }
  .hour-preview {
    min-height: 99px;
  }
  .metric-grid button {
    min-height: 64px;
  }
  .metric-grid strong {
    font-size: 21px;
  }
  .today-screen {
    gap: 7px;
  }
  .atlas-focus {
    top: 92px;
  }
  .atlas-focus strong {
    font-size: 10px;
  }
  .atlas-focus .atlas-caveat,
  .atlas-focus p {
    font-size: 7px;
  }
  body[data-map-layer="lightning"] .weather-legend {
    display: none;
  }
}
@media (max-height: 500px) {
  .current-sky {
    min-height: 190px;
  }
  .forecast-intro h2 {
    font-size: 27px;
  }
  .plan-heading h2 {
    font-size: 35px;
  }
  .weather-chart {
    max-height: 200px;
  }
  .map-top {
    left: max(12px, var(--safe-left));
    width: calc((100% - var(--safe-left) - var(--safe-right)) * 0.44);
    right: auto;
  }
  .weather-console,
  body[data-map-layer="radar"] .radar-console {
    left: auto;
    right: max(12px, var(--safe-right));
    width: calc((100% - var(--safe-left) - var(--safe-right)) * 0.47);
    max-width: 390px;
    padding: 10px 12px;
    bottom: 12px;
  }
  .radar-legend,
  .weather-legend {
    display: none;
  }
  .map-context {
    margin-top: 5px;
    padding-top: 3px;
  }
  .map-context summary {
    min-height: 18px;
  }
  .radar-window {
    margin-bottom: 6px;
  }
  .radar-window button {
    min-height: 25px;
  }
  .atlas-focus {
    top: 125px;
    left: max(12px, var(--safe-left));
    width: calc((100% - var(--safe-left) - var(--safe-right)) * 0.43);
    max-width: 310px;
  }
  body[data-map-layer="radar"] .leaflet-control-attribution {
    margin-bottom: 8px !important;
  }
  body[data-map-layer="radar"] .map-point {
    bottom: 65px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 760px) and (min-height: 741px) {
  .current-sky {
    padding-top: 11px;
    padding-bottom: 10px;
  }
  .temperature {
    font-size: 84px;
  }
  #condition {
    margin-top: 3px;
    margin-bottom: 6px;
  }
  .hero-links {
    margin-top: 7px;
  }
  .metric-grid button {
    padding-top: 9px;
    padding-bottom: 9px;
    min-height: 68px;
  }
  .metric-grid strong {
    font-size: 23px;
    line-height: 1.1;
  }
  .preview-hour svg {
    height: 24px;
  }
  .preview-hour strong {
    line-height: 1.3;
  }
  .hour-preview .section-line {
    margin-bottom: 6px;
  }
}
.weather-chart .chart-tick {
  font-size: 16px;
}
.weather-chart .chart-time {
  font-size: 15px;
}
@media (max-width: 760px) {
  body[data-screen="today"] main {
    padding-bottom: 12px;
  }
}
.window-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 14px;
}
@media (min-width: 768px) {
  .window-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.sky-landscape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}
.ridge-far {
  fill: #44657728;
  stroke: #b6d6e218;
  stroke-width: 0.7;
}
.ridge-mid {
  fill: #1c34454a;
  stroke: #d3e3e610;
  stroke-width: 0.5;
}
.ridge-near {
  fill: #0c1d2d52;
}
.current-sky .weather-art {
  z-index: 2;
}
body[data-weather="wet"] .sky-landscape {
  opacity: 0.45;
}
:root {
  --wind: #c2b1ed;
  --hour-selected: #31465f;
}
:root[data-theme="light"] {
  --wind: #735ba3;
  --hour-selected: #d5e4ee;
}
.weather-chart.chart-temperature {
  --chart-color: var(--warm);
}
.weather-chart.chart-wind {
  --chart-color: var(--wind);
}
.weather-chart.chart-rain {
  --chart-color: var(--rain);
}
.weather-chart .chart-line {
  stroke: var(--chart-color);
}
.priority-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
  padding: 12px 15px;
  text-align: left;
  background: #b866391b;
  border: 1px solid #e8ae6f51;
  border-radius: 16px;
  color: #f4cfaa;
}
.priority-alert small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.4px;
  margin-bottom: 5px;
}
.priority-alert strong {
  display: block;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
}
.current-sky {
  color: #eef4fb;
}
:root[data-theme="light"] .selected-forecast #selected-date,
:root[data-theme="light"] #selected-condition {
  color: var(--muted);
}
:root[data-theme="light"] .window {
  background: linear-gradient(140deg, #e6f0ed, #dce8e8);
  color: var(--text);
}
:root[data-theme="light"] .window .eyebrow,
:root[data-theme="light"] .window-day,
:root[data-theme="light"] .window-stats small {
  color: #4d716b;
}
:root[data-theme="light"] .window-stats strong {
  color: var(--text);
}
:root[data-theme="light"] .window-actions button {
  background: #d5e9e4;
  color: #264d48;
  border-color: #759b9029;
}
:root[data-theme="light"] .priority-alert {
  color: #80532c;
  background: #f7e9d6;
  border-color: #d2ad7a;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] {
    --bg: #edf2f6;
    --surface: #fbfdff;
    --surface-2: #e0e9f1;
    --text: #172839;
    --muted: #506579;
    --line: #203f5a1c;
    --accent: #1d6185;
    --rain: #236d91;
    --warm: #985c24;
    --wind: #735ba3;
    --hour-selected: #d5e4ee;
    --nav: #eff5faf5;
  }
  :root[data-theme="system"] .app-header,
  :root[data-theme="system"] .app-rail {
    background: #eff5faf2;
  }
  :root[data-theme="system"] .forecast-tabs,
  :root[data-theme="system"] .metric-switch,
  :root[data-theme="system"] .selected-forecast,
  :root[data-theme="system"] .setting-row select,
  :root[data-theme="system"] .plan-inputs select,
  :root[data-theme="system"] .plan-priority select,
  :root[data-theme="system"] .layer-search input {
    background: var(--surface);
  }
  :root[data-theme="system"] .forecast-tabs button[aria-pressed="true"],
  :root[data-theme="system"] .metric-switch button[aria-pressed="true"] {
    background: #d9e7f0;
    color: var(--text);
  }
  :root[data-theme="system"] .weather-signal,
  :root[data-theme="system"] .today-actions button {
    background: #e4edf4;
    color: var(--text);
  }
  :root[data-theme="system"] .weather-chart .chart-tick {
    fill: #526a7f;
  }
  :root[data-theme="system"] .weather-chart .chart-grid {
    stroke: #54758e26;
  }
  :root[data-theme="system"] .window {
    background: linear-gradient(140deg, #e6f0ed, #dce8e8);
    color: var(--text);
  }
  :root[data-theme="system"] .window-stats strong {
    color: var(--text);
  }
  :root[data-theme="system"] .window-actions button {
    background: #d5e9e4;
    color: #264d48;
    border-color: #759b9029;
  }
}
body[data-reading-size="larger"] #change-brief {
  font-size: 14px;
}
body[data-reading-size="larger"] .current-range {
  font-size: 12px;
}
body[data-reading-size="larger"] .metric-grid button > span,
body[data-reading-size="larger"] .metric-grid small {
  font-size: 10px;
}
body[data-reading-size="larger"] .hour > small {
  font-size: 12px;
}
body[data-reading-size="larger"] .hour-detail small,
body[data-reading-size="larger"] #selected-date {
  font-size: 12px;
}
body[data-reading-size="larger"] .hour-detail strong {
  font-size: 15px;
}
body[data-reading-size="larger"] .weather-chart .chart-tick {
  font-size: 18px;
}
body[data-reading-size="larger"] .map-context summary {
  font-size: 11px;
}

