:root {
  color-scheme: light;
  --bg-top: #fff4de;
  --bg-bottom: #d8ecf6;
  --panel: rgba(255, 250, 243, 0.78);
  --panel-strong: rgba(255, 248, 238, 0.92);
  --line: rgba(86, 92, 109, 0.12);
  --ink: #163244;
  --muted: #5c7180;
  --accent: #d36d3f;
  --accent-strong: #b84d24;
  --accent-soft: rgba(211, 109, 63, 0.12);
  --sky: #67a6c9;
  --rain: #3b82a6;
  --sun: #f2bf52;
  --wind: #5b6dc0;
  --shadow: 0 20px 50px rgba(30, 66, 99, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-display: "Avenir Next Condensed", "Avenir Next", "Trebuchet MS", sans-serif;
  --font-body: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-mono: "SF Mono", "Menlo", "Consolas", monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 216, 157, 0.75), transparent 34%),
    radial-gradient(circle at top right, rgba(104, 179, 214, 0.28), transparent 28%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.skywash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.6), transparent 15%),
    radial-gradient(circle at 72% 12%, rgba(255, 255, 255, 0.42), transparent 18%),
    radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.2), transparent 12%);
  filter: blur(8px);
  animation: sky-drift 16s ease-in-out infinite alternate;
}

.app-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-xl);
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 22px 24px;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.hero-brand-copy {
  min-width: 0;
}

.hero-brand > div {
  min-width: 0;
}

.hero-title-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.hero-mark {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.7), rgba(255, 243, 226, 0.56));
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.hero-mark img,
.hero-mark svg {
  width: 56px;
  height: 56px;
  display: block;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-info-button {
  min-height: 42px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.94rem;
}

.hero-settings {
  position: relative;
  display: flex;
  align-items: center;
}

.hero-settings-button {
  position: relative;
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}

.hero-settings-button.is-active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: white;
  border-color: rgba(184, 77, 36, 0.3);
  box-shadow: 0 10px 18px rgba(184, 77, 36, 0.18);
}

.hero-settings-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 26px;
  line-height: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-settings-icon svg {
  width: 26px;
  height: 26px;
  display: block;
  fill: currentColor;
}

.hero-info-link,
.panel-info-link,
.inline-info-link {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  border-radius: 999px;
  color: var(--accent-strong);
  border: 1px solid rgba(211, 109, 63, 0.2);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 18px rgba(30, 66, 99, 0.08);
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.hero-info-link {
  width: 34px;
  height: 34px;
  margin-top: 10px;
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.panel-with-info {
  position: relative;
}

.panel-with-info > .panel-head,
.panel-with-info > .chart-head {
  padding-right: 74px;
}

.panel-info-link {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 28px;
  height: 28px;
  font-size: 0.98rem;
  font-weight: 700;
}

.panel-with-info .panel-toggle-button,
.panel-with-info .history-toggle-button {
  position: absolute;
  top: 18px;
  right: 54px;
  z-index: 2;
}

.inline-kicker-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.inline-info-link {
  width: 22px;
  height: 22px;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-info-link:hover,
.hero-info-link:focus-visible,
.panel-info-link:hover,
.panel-info-link:focus-visible,
.inline-info-link:hover,
.inline-info-link:focus-visible {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(211, 109, 63, 0.34);
  transform: translateY(-1px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--accent-strong);
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

code {
  font-size: 0.95em;
}

pre {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(23, 50, 74, 0.08);
  overflow-x: auto;
}

pre code {
  font-size: 0.92rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 0.95;
}

h1 {
  font-size: clamp(3.1rem, 6vw, 5.8rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.5rem, 2.1vw, 2.1rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.2rem;
}

.muted-text,
.status-text,
.source-note,
.current-summary,
.app-footer {
  color: var(--muted);
}

.theme-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.theme-button,
.tag,
.metric-chip,
.favorite-chip,
.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.56);
}

.theme-button {
  border: 0;
  cursor: pointer;
  color: var(--ink);
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.theme-button.is-active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: white;
  box-shadow: 0 8px 16px rgba(184, 77, 36, 0.18);
}

.search-panel,
.source-panel,
.current-panel,
.settings-panel,
.insights-panel,
.chart-panel,
.radar-panel,
.station-panel,
.air-quality-panel,
.vitamin-d-panel,
.pollen-panel,
.history-panel,
.netatmo-panel {
  padding: 24px;
}

.panel-head,
.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 12px;
}

.panel-head-actions .muted-text {
  margin: 0;
}

.settings-panel {
  margin-top: 18px;
  padding: 24px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.settings-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.52);
}

.settings-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.settings-row-push {
  align-items: flex-start;
}

.settings-copy {
  display: grid;
  gap: 8px;
}

.settings-copy h3,
.push-copy h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.05;
}

.settings-copy .muted-text,
.push-copy .status-text,
.push-copy .muted-text {
  margin: 0;
}

.settings-card .theme-toggle {
  flex-shrink: 0;
}

.settings-divider {
  border-top: 1px solid rgba(32, 52, 67, 0.09);
}

.settings-subsection {
  display: grid;
  gap: 14px;
}

.settings-subsection-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.settings-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.settings-choice-chip {
  font-weight: 400;
}

.secondary-button,
.primary-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: white;
  box-shadow: 0 10px 18px rgba(184, 77, 36, 0.22);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.panel-toggle-button,
.history-toggle-button {
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  line-height: 0;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(211, 109, 63, 0.2);
  box-shadow: 0 10px 18px rgba(30, 66, 99, 0.08);
}

.panel-toggle-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
}

.panel-toggle-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-refresh-button {
  white-space: nowrap;
}

.primary-button:hover,
.secondary-button:hover,
.favorite-chip:hover,
.result-card:hover,
.source-option:not(.source-option-static):hover,
.ensemble-chip:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.location-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.1vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.current-head-stack {
  display: grid;
  gap: 12px;
}

.current-source-block {
  display: grid;
  justify-items: start;
}

.current-source-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.secondary-button-inline {
  padding: 8px 12px;
  font-size: 0.92rem;
}

.current-clock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.current-clock-line {
  min-width: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.current-clock-refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: color 160ms ease, transform 160ms ease;
}

.current-clock-refresh-button:hover,
.current-clock-refresh-button:focus-visible {
  color: var(--accent);
}

.current-clock-refresh-button:active {
  transform: rotate(-18deg);
}

.push-panel-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.push-copy {
  display: grid;
  gap: 8px;
}

.push-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.push-actions .secondary-button.is-active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: white;
  border-color: rgba(184, 77, 36, 0.24);
  box-shadow: 0 8px 16px rgba(184, 77, 36, 0.18);
}

.push-targets-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(32, 52, 67, 0.09);
}

.push-targets-head h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
}

.push-target-list {
  display: grid;
  gap: 14px;
}

.push-target-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.push-target-card.is-unavailable {
  opacity: 0.8;
}

.push-target-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.push-target-copy {
  display: grid;
  gap: 6px;
}

.push-target-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.push-target-label-row h4 {
  margin: 0;
  font-size: 1.02rem;
  color: var(--ink);
}

.push-target-kind {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(129, 148, 166, 0.16);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.push-target-note {
  margin-top: -2px;
}

.push-target-master {
  align-self: start;
  white-space: nowrap;
  font-weight: 400;
  background: rgba(250, 252, 253, 0.96);
  border-color: rgba(32, 52, 67, 0.14);
  box-shadow:
    0 10px 18px rgba(32, 52, 67, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.push-target-master.is-active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: white;
  border-color: rgba(184, 77, 36, 0.24);
  box-shadow: 0 8px 16px rgba(184, 77, 36, 0.18);
}

.push-target-type-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.push-type-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 400;
  cursor: pointer;
  transition:
    transform 140ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.push-type-chip:hover:not(:disabled) {
  transform: translateY(-1px);
}

.push-type-chip.is-active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  border-color: rgba(184, 77, 36, 0.24);
  color: white;
  box-shadow: 0 8px 16px rgba(184, 77, 36, 0.18);
}

.push-type-chip:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.inline-meta-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-weight: 700;
}

.inline-meta-toggle:disabled {
  cursor: wait;
  opacity: 0.72;
}

.location-toggle-caret {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--accent-strong);
  transition: transform 160ms ease;
}

.location-toggle[aria-expanded="true"] .location-toggle-caret {
  transform: rotate(180deg);
}

.inline-meta-toggle[aria-expanded="true"] .location-toggle-caret {
  transform: rotate(180deg);
}

.location-toggle:focus-visible,
.inline-meta-toggle:focus-visible,
.profile-chip:focus-visible {
  outline: 3px solid rgba(211, 109, 63, 0.24);
  outline-offset: 4px;
}

.inline-location-panel {
  margin-top: 20px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.inline-location-panel[hidden] {
  display: none !important;
}

.inline-source-panel {
  position: relative;
  display: grid;
  gap: 12px;
  padding-right: 54px;
}

.inline-source-info-link {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 24px;
  height: 24px;
  font-size: 0.86rem;
  z-index: 1;
}

.inline-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.source-picker-button {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.source-picker-button:hover {
  transform: translateY(-1px);
}

.source-picker-button.active {
  background: linear-gradient(135deg, rgba(211, 109, 63, 0.18), rgba(255, 255, 255, 0.72));
  border-color: rgba(211, 109, 63, 0.38);
  box-shadow: inset 0 0 0 1px rgba(211, 109, 63, 0.14);
}

.inline-location-head {
  margin-bottom: 14px;
}

.inline-selected-place {
  margin-top: 16px;
}

.search-field {
  display: block;
}

.search-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}

.search-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-field input:focus {
  border-color: rgba(211, 109, 63, 0.5);
  box-shadow: 0 0 0 4px rgba(211, 109, 63, 0.12);
}

.status-text {
  min-height: 1.2em;
  margin: 10px 0 0;
}

.search-results {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.result-card {
  text-align: left;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
}

.result-title {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
}

.result-meta {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.selected-place {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px;
  margin-top: 18px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 244, 231, 0.8) 100%);
}

.selected-place h3 {
  margin-bottom: 8px;
}

.selected-place-meta-line {
  display: block;
}

.selected-place-meta-line + .selected-place-meta-line {
  margin-top: 4px;
}

.favorites-list,
.ensemble-members,
.source-grid,
.metric-grid,
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.library-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.favorite-chip {
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.favorite-select,
.favorite-remove {
  border: 0;
  background: transparent;
  padding: 12px 14px;
  cursor: pointer;
  color: inherit;
}

.favorite-select {
  font-weight: 600;
}

.favorite-remove {
  border-left: 1px solid rgba(22, 50, 68, 0.08);
  color: var(--muted);
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.source-option,
.ensemble-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
  cursor: pointer;
}

.source-option-static {
  cursor: default;
}

.source-option input,
.ensemble-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.source-option.active,
.ensemble-chip.active {
  border-color: rgba(211, 109, 63, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 244, 231, 0.98), rgba(255, 255, 255, 0.74));
  box-shadow: inset 0 0 0 1px rgba(211, 109, 63, 0.16);
}

.source-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.source-title-row strong {
  font-size: 1.06rem;
}

.source-option small,
.source-note,
.metric-label {
  color: var(--muted);
  line-height: 1.4;
}

.source-card-detail {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.ensemble-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.5);
}

.ensemble-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.ensemble-chip {
  flex: 1 1 180px;
}

.source-note {
  margin-top: 18px;
  line-height: 1.5;
}

.source-note strong {
  color: var(--ink);
}

.netatmo-intro {
  margin: 0 0 18px;
}

.netatmo-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
}

.netatmo-config,
.netatmo-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  padding: 18px;
}

.netatmo-toggle-row,
.netatmo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.netatmo-storage-row {
  margin: 16px 0;
}

.toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--ink);
}

.toggle-chip input {
  accent-color: var(--accent-strong);
}

.netatmo-results {
  display: grid;
  gap: 18px;
}

.netatmo-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.netatmo-module {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.netatmo-module:first-child {
  padding-top: 0;
  border-top: 0;
}

.netatmo-module h3 {
  margin-bottom: 4px;
}

.netatmo-module-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

.netatmo-note {
  margin: 12px 0 0;
}

.current-layout {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 16px;
  align-items: center;
}

.current-copy {
  min-width: 0;
}

.current-headline {
  min-width: 0;
}

.weather-icon {
  width: 138px;
  aspect-ratio: 1;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 245, 228, 0.42));
  display: grid;
  place-items: center;
}

.weather-icon svg {
  width: 94%;
  height: 94%;
  display: block;
}

.temperature-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.current-temp {
  font-family: var(--font-display);
  font-size: clamp(3.3rem, 7vw, 5rem);
  line-height: 0.88;
}

.current-unit {
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 0.92;
}

.current-feels {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.current-feels-topline {
  display: inline-flex;
  align-items: flex-start;
  gap: 2px;
}

.current-feels-value {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.7vw, 1.9rem);
  line-height: 0.92;
  color: var(--ink);
}

.current-feels-unit {
  margin-top: 1px;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.7vw, 1.15rem);
  line-height: 0.95;
  color: var(--muted);
}

.current-feels-label {
  font-size: 0.94rem;
  line-height: 1.1;
  color: var(--muted);
}

.current-summary {
  margin: 12px 0 0;
  font-size: 1rem;
}

.integrated-range {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.metric-section .integrated-range {
  margin-top: 0;
  margin-bottom: 14px;
}

.current-alerts {
  margin-top: 16px;
}

.current-alerts-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.current-alerts-head p {
  margin: 0;
}

.current-alert-list {
  display: grid;
  gap: 10px;
}

.weather-alert {
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.weather-alert--minor {
  box-shadow: inset 0 0 0 1px rgba(78, 146, 180, 0.14);
}

.weather-alert--moderate {
  box-shadow: inset 0 0 0 1px rgba(214, 159, 54, 0.18);
}

.weather-alert--severe {
  box-shadow: inset 0 0 0 1px rgba(211, 109, 63, 0.22);
}

.weather-alert--extreme {
  box-shadow: inset 0 0 0 1px rgba(177, 67, 49, 0.24);
}

.weather-alert-summary {
  display: grid;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
}

.weather-alert-summary::-webkit-details-marker {
  display: none;
}

.weather-alert-summary-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.weather-alert-title {
  min-width: 0;
  line-height: 1.25;
}

.weather-alert-range {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.weather-alert-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.weather-alert-chip--info,
.weather-alert-chip--minor {
  background: rgba(78, 146, 180, 0.16);
  color: #2b6c89;
}

.weather-alert-chip--moderate {
  background: rgba(214, 159, 54, 0.18);
  color: #996a12;
}

.weather-alert-chip--severe {
  background: rgba(211, 109, 63, 0.18);
  color: #b14b26;
}

.weather-alert-chip--extreme {
  background: rgba(177, 67, 49, 0.2);
  color: #8e281a;
}

.weather-alert-details {
  padding: 0 16px 16px;
  color: var(--muted);
  line-height: 1.5;
}

.weather-alert-details p {
  margin: 0;
}

.weather-alert-details p + p {
  margin-top: 10px;
}

.metric-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric-grid.metric-grid-standard {
  display: block;
}

.metric-chip {
  min-height: 78px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.metric-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.precip-type-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
  margin-left: 0.34rem;
  vertical-align: -0.08em;
}

.precip-type-marker svg {
  display: block;
  width: 100%;
  height: 100%;
}

.precip-type-marker-snow {
  color: #5d96ce;
}

.precip-type-marker-mixed {
  color: rgba(93, 150, 206, 0.72);
}

.metric-section {
  padding: 14px 16px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.metric-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.metric-section-head .section-kicker {
  margin-bottom: 0;
}

.metric-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.metric-chip-compact {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.metric-copy {
  min-width: 0;
}

.metric-chip-compact .metric-label {
  display: block;
  font-size: 0.76rem;
  line-height: 1.1;
  color: var(--muted);
}

.metric-chip-compact .metric-value {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  line-height: 1.15;
}

.metric-featured-chip {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.metric-featured-copy {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.metric-featured-copy .metric-label {
  flex-basis: 100%;
  display: block;
  font-size: 0.76rem;
  line-height: 1.1;
  color: var(--muted);
}

.metric-featured-copy .metric-value {
  display: inline-block;
  font-size: 1rem;
  line-height: 1.15;
}

.metric-featured-note {
  display: inline-block;
  font-size: 0.82rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.metric-featured-stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.metric-featured-stack .metric-featured-chip {
  margin-top: 0;
}

.metric-featured-extra {
  flex-basis: 100%;
  display: block;
  font-size: 0.8rem;
  line-height: 1.15;
  color: var(--muted);
}

.metric-featured-chip-air-good {
  background: rgba(80, 204, 170, 0.16);
  border-color: rgba(80, 204, 170, 0.28);
}

.metric-featured-chip-air-good .metric-featured-note {
  color: #2e8b73;
}

.metric-featured-chip-air-fair {
  background: rgba(126, 180, 99, 0.16);
  border-color: rgba(126, 180, 99, 0.28);
}

.metric-featured-chip-air-fair .metric-featured-note {
  color: #4f7f35;
}

.metric-featured-chip-air-moderate {
  background: rgba(242, 191, 82, 0.2);
  border-color: rgba(242, 191, 82, 0.3);
}

.metric-featured-chip-air-moderate .metric-featured-note {
  color: #996a12;
}

.metric-featured-chip-air-poor {
  background: rgba(232, 131, 76, 0.2);
  border-color: rgba(232, 131, 76, 0.3);
}

.metric-featured-chip-air-poor .metric-featured-note {
  color: #b35a23;
}

.metric-featured-chip-air-very-poor {
  background: rgba(208, 83, 94, 0.2);
  border-color: rgba(208, 83, 94, 0.3);
}

.metric-featured-chip-air-very-poor .metric-featured-note {
  color: #a43745;
}

.metric-featured-chip-air-extremely-poor {
  background: rgba(127, 95, 175, 0.2);
  border-color: rgba(127, 95, 175, 0.3);
}

.metric-featured-chip-air-extremely-poor .metric-featured-note {
  color: #6f56a8;
}

.metric-featured-chip-vitamin-unlikely {
  background: rgba(124, 151, 175, 0.18);
  border-color: rgba(124, 151, 175, 0.28);
}

.metric-featured-chip-vitamin-unlikely .metric-featured-note {
  color: #5e7489;
}

.metric-featured-chip-vitamin-possible {
  background: rgba(244, 210, 110, 0.18);
  border-color: rgba(244, 210, 110, 0.3);
}

.metric-featured-chip-vitamin-possible .metric-featured-note {
  color: #9d7420;
}

.metric-featured-chip-vitamin-good {
  background: rgba(230, 171, 71, 0.18);
  border-color: rgba(230, 171, 71, 0.3);
}

.metric-featured-chip-vitamin-good .metric-featured-note {
  color: #a86416;
}

.metric-featured-chip-vitamin-high-uv {
  background: rgba(232, 131, 76, 0.2);
  border-color: rgba(232, 131, 76, 0.3);
}

.metric-featured-chip-vitamin-high-uv .metric-featured-note {
  color: #b35a23;
}

.metric-featured-chip-pollen-low {
  background: rgba(146, 198, 118, 0.18);
  border-color: rgba(146, 198, 118, 0.28);
}

.metric-featured-chip-pollen-low .metric-featured-note {
  color: #4f7f38;
}

.metric-featured-chip-pollen-medium {
  background: rgba(242, 191, 82, 0.2);
  border-color: rgba(242, 191, 82, 0.3);
}

.metric-featured-chip-pollen-medium .metric-featured-note {
  color: #996a12;
}

.metric-featured-chip-pollen-high {
  background: rgba(232, 131, 76, 0.2);
  border-color: rgba(232, 131, 76, 0.3);
}

.metric-featured-chip-pollen-high .metric-featured-note {
  color: #b35a23;
}

.metric-featured-chip-pollen-plain {
  background: rgba(255, 255, 255, 0.46);
  border-color: rgba(255, 255, 255, 0.54);
}

.metric-section-days {
  overflow: hidden;
}

.metric-carousel-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.metric-carousel-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.metric-carousel-button:hover {
  transform: translateY(-1px);
}

.metric-day-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0 -2px -6px;
  padding: 0 2px 6px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.metric-day-scroll::-webkit-scrollbar {
  display: none;
}

.metric-day-track {
  display: flex;
  gap: 12px;
  width: max-content;
  min-width: 100%;
}

.metric-day-card {
  flex: 0 0 clamp(224px, 26vw, 248px);
  min-width: 0;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.62);
  scroll-snap-align: start;
}

.metric-day-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.metric-day-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.metric-day-weather {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.metric-day-weather svg {
  width: 42px;
  height: 42px;
  display: block;
}

.metric-day-card-head h3 {
  font-size: 1.06rem;
  line-height: 1.02;
  text-transform: capitalize;
}

.metric-day-card-head p {
  margin: 0;
  white-space: nowrap;
  padding-top: 2px;
}

.metric-day-summary {
  margin: -2px 0 10px;
  font-size: 0.82rem;
  line-height: 1.28;
  color: var(--muted);
  min-height: 2.1em;
}

.metric-day-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0;
}

.metric-day-confidence-row {
  margin: -2px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-day-confidence {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.metric-day-target {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.metric-day-target-svg {
  width: 32px;
  height: 32px;
  display: block;
}

.metric-day-confidence--very-stable {
  background: rgba(88, 167, 173, 0.16);
  border-color: rgba(88, 167, 173, 0.2);
  color: #276f73;
}

.metric-day-confidence--stable {
  background: rgba(126, 180, 99, 0.16);
  border-color: rgba(126, 180, 99, 0.2);
  color: #4f7f35;
}

.metric-day-confidence--mixed {
  background: rgba(242, 191, 82, 0.18);
  border-color: rgba(242, 191, 82, 0.22);
  color: #966a18;
}

.metric-day-confidence--uncertain {
  background: rgba(211, 109, 63, 0.16);
  border-color: rgba(211, 109, 63, 0.2);
  color: #ad542d;
}

.metric-day-values dt {
  font-size: 0.72rem;
  line-height: 1.1;
  color: var(--muted);
}

.metric-day-values dd {
  margin: 4px 0 0;
  font-size: 0.96rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--ink);
}

.metric-day-more {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.metric-day-extra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.metric-day-mini-card {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.56);
}

.metric-day-mini-label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  line-height: 1.1;
  color: var(--muted);
}

.metric-day-mini-chart {
  display: block;
  width: 100%;
  height: auto;
}

.metric-day-mini-axis {
  stroke: var(--line);
  stroke-width: 1.1;
}

.standard-day-section {
  margin-top: 6px;
}

.standard-day-scroll {
  margin: 0;
  padding: 0 0 4px;
}

.standard-day-track {
  display: flex;
  gap: 12px;
  width: max-content;
  min-width: 100%;
}

.standard-day-card {
  flex: 0 0 clamp(264px, 34vw, 320px);
  min-width: 0;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.62);
  scroll-snap-align: start;
}

.standard-day-card.is-today {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.72) 100%);
  border-color: rgba(211, 109, 63, 0.2);
  box-shadow: 0 10px 22px rgba(211, 109, 63, 0.08);
}

.standard-day-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.standard-day-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.standard-day-title-copy {
  min-width: 0;
  flex: 1;
}

.standard-day-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.standard-day-title-row h3 {
  font-size: 1.08rem;
  line-height: 1.02;
  text-transform: capitalize;
}

.standard-day-title-row .muted-text {
  margin: 0;
  white-space: nowrap;
}

.standard-day-summary {
  margin: 6px 0 0;
  font-size: 0.82rem;
  line-height: 1.28;
  color: var(--muted);
}

.standard-day-head-meta {
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

.standard-day-head-meta .metric-day-confidence-row {
  margin: 0;
}

.standard-day-uncertainty {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.standard-day-uncertainty .metric-day-confidence-row {
  margin: 0;
}

.standard-day-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(211, 109, 63, 0.14);
  border: 1px solid rgba(211, 109, 63, 0.2);
  color: var(--accent-strong);
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.standard-day-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.standard-day-mini-card {
  min-width: 0;
  padding: 12px 14px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.standard-day-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.standard-day-mini-label {
  margin: 0 0 6px;
  font-size: 0.78rem;
  line-height: 1.1;
  color: var(--muted);
}

.standard-day-mini-head .standard-day-mini-label {
  margin-bottom: 0;
}

.standard-day-mini-note {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
}

.standard-day-section.is-compact .standard-day-chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.standard-day-section.is-compact .standard-day-mini-card {
  padding: 10px 12px 12px;
}

.standard-day-section.is-compact .standard-day-mini-label {
  font-size: 0.72rem;
}

.standard-day-section.is-compact .standard-day-mini-note {
  font-size: 0.72rem;
}

.standard-day-mini-chart {
  display: block;
  width: 100%;
  height: auto;
}

.standard-day-axis-line {
  stroke: rgba(74, 97, 114, 0.16);
  stroke-width: 1;
}

.standard-day-zero-line {
  stroke: rgba(122, 174, 212, 0.28);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.standard-day-temp-area {
  opacity: 0.18;
}

.standard-day-temp-line {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.standard-day-now-line {
  stroke: rgba(211, 109, 63, 0.26);
  stroke-width: 1.3;
  stroke-dasharray: 4 4;
}

.standard-day-now-badge {
  fill: rgba(211, 109, 63, 0.24);
  stroke: rgba(211, 109, 63, 0.3);
  stroke-width: 0.9;
}

.standard-day-now-badge-text {
  fill: var(--accent-strong);
  font-size: 11.2px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.standard-day-mini-current {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.standard-day-mini-current-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(211, 109, 63, 0.24);
  border: 1px solid rgba(211, 109, 63, 0.3);
  color: var(--accent-strong);
  font-size: 0.88rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.standard-day-now-dot {
  fill: white;
  stroke: var(--trend-dot-color, var(--accent));
  stroke-width: 2.5;
}

.standard-day-wind-line {
  fill: none;
  stroke: rgba(82, 121, 163, 0.9);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.standard-day-pollen-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.standard-day-pollen-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.54);
}

.standard-day-pollen-chip-name {
  color: var(--muted);
}

.standard-day-pollen-chip-value {
  color: var(--ink);
}

.standard-day-pollen-chip-low {
  background: rgba(146, 198, 118, 0.18);
  border-color: rgba(146, 198, 118, 0.28);
}

.standard-day-pollen-chip-medium {
  background: rgba(242, 191, 82, 0.2);
  border-color: rgba(242, 191, 82, 0.3);
}

.standard-day-pollen-chip-high {
  background: rgba(232, 131, 76, 0.2);
  border-color: rgba(232, 131, 76, 0.3);
}

.metric-icon-air {
  color: #5f9ec1;
}

.metric-icon-vitamin {
  color: #d59a42;
}

.air-quality-overview-wrap {
  margin-top: 10px;
}

.air-quality-overview {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.air-quality-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.air-quality-overview-title {
  font-size: 1.45rem;
  line-height: 1;
}

.air-quality-overview-copy {
  margin: 8px 0 0;
}

.air-quality-overview-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.air-quality-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.air-quality-pollutant-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.air-quality-pollutant-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.air-quality-pollutant-head h3 {
  font-size: 1rem;
  line-height: 1;
}

.air-quality-pollutant-aqi {
  font-size: 0.76rem;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
}

.air-quality-pollutant-value {
  font-size: 1.05rem;
  line-height: 1.1;
  color: var(--ink);
}

.air-quality-pollutant-level {
  margin: 0;
}

.air-quality-overview-good,
.air-quality-pollutant-card-good {
  background: rgba(80, 204, 170, 0.14);
  border-color: rgba(80, 204, 170, 0.26);
}

.air-quality-overview-fair,
.air-quality-pollutant-card-fair {
  background: rgba(126, 180, 99, 0.14);
  border-color: rgba(126, 180, 99, 0.26);
}

.air-quality-overview-moderate,
.air-quality-pollutant-card-moderate {
  background: rgba(242, 191, 82, 0.16);
  border-color: rgba(242, 191, 82, 0.28);
}

.air-quality-overview-poor,
.air-quality-pollutant-card-poor {
  background: rgba(232, 131, 76, 0.16);
  border-color: rgba(232, 131, 76, 0.28);
}

.air-quality-overview-very-poor,
.air-quality-pollutant-card-very-poor {
  background: rgba(208, 83, 94, 0.16);
  border-color: rgba(208, 83, 94, 0.28);
}

.air-quality-overview-extremely-poor,
.air-quality-pollutant-card-extremely-poor {
  background: rgba(127, 95, 175, 0.16);
  border-color: rgba(127, 95, 175, 0.28);
}

.vitamin-d-overview-wrap,
.vitamin-d-chart-wrap {
  margin-top: 10px;
}

.vitamin-d-overview,
.vitamin-d-timeline {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.vitamin-d-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.vitamin-d-overview-title {
  font-size: 1.45rem;
  line-height: 1;
}

.vitamin-d-overview-copy {
  margin: 8px 0 0;
}

.vitamin-d-overview-badge,
.vitamin-d-overview-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  line-height: 1;
  white-space: nowrap;
}

.vitamin-d-overview-badge {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.vitamin-d-overview-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.vitamin-d-overview-pill {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.64);
  color: var(--ink);
}

.vitamin-d-overview-pill-muted {
  color: var(--muted);
}

.vitamin-d-window {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.35;
}

.vitamin-d-overview-unlikely {
  background: rgba(124, 151, 175, 0.12);
  border-color: rgba(124, 151, 175, 0.24);
}

.vitamin-d-overview-possible {
  background: rgba(244, 210, 110, 0.14);
  border-color: rgba(244, 210, 110, 0.26);
}

.vitamin-d-overview-good {
  background: rgba(230, 171, 71, 0.14);
  border-color: rgba(230, 171, 71, 0.26);
}

.vitamin-d-overview-high-uv {
  background: rgba(232, 131, 76, 0.16);
  border-color: rgba(232, 131, 76, 0.28);
}

.vitamin-d-timeline {
  display: grid;
  gap: 12px;
}

.vitamin-d-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.vitamin-d-row-label {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1;
}

.vitamin-d-track {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 4px;
}

.vitamin-d-segment {
  display: block;
  min-width: 0;
  height: 16px;
  border-radius: 999px;
  background: rgba(124, 151, 175, 0.1);
  border: 1px solid transparent;
}

.vitamin-d-segment-empty {
  background: rgba(124, 151, 175, 0.08);
}

.vitamin-d-segment-unlikely {
  background: rgba(124, 151, 175, 0.22);
}

.vitamin-d-segment-possible {
  background: rgba(244, 210, 110, 0.34);
}

.vitamin-d-segment-good {
  background: rgba(230, 171, 71, 0.42);
}

.vitamin-d-segment-high-uv {
  background: rgba(232, 131, 76, 0.5);
}

.vitamin-d-segment-current {
  box-shadow: 0 0 0 1.5px rgba(184, 77, 36, 0.34);
  transform: translateY(-1px);
}

.vitamin-d-axis {
  margin-left: 80px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1;
}

.metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.metric-icon svg {
  width: 16px;
  height: 16px;
}

.metric-icon-rain,
.metric-icon-umbrella {
  color: var(--rain);
}

.metric-icon-wind {
  color: var(--wind);
}

.metric-icon-humidity {
  color: #4b92b4;
}

.metric-icon-pressure {
  color: var(--accent-strong);
}

.metric-icon-sun,
.metric-icon-sunrise,
.metric-icon-sunset {
  color: var(--sun);
}

.station-card {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.station-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.station-card-head p {
  margin: 0;
}

.station-carousel-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.station-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0 -2px -6px;
  padding: 0 2px 6px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.station-scroll::-webkit-scrollbar {
  display: none;
}

.station-track {
  display: flex;
  gap: 12px;
  width: max-content;
  min-width: 100%;
}

.station-summary-card {
  flex: 0 0 clamp(264px, 30vw, 328px);
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.6);
  scroll-snap-align: start;
}

.station-summary-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.station-summary-head h3 {
  margin-bottom: 6px;
}

.station-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
}

.station-metric {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.station-metric .metric-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.76rem;
  line-height: 1.1;
  color: var(--muted);
}

.station-fallback-note {
  margin: 12px 0 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--muted);
}

.station-metric .metric-value {
  display: block;
  font-size: 1rem;
  line-height: 1.15;
}

.radar-view {
  margin-top: 12px;
}

.radar-insight {
  margin-top: 12px;
}

.radar-shell {
  display: grid;
  gap: 12px;
}

.radar-insight-card {
  padding: 14px 16px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.radar-insight-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.radar-insight-head p {
  margin: 0;
}

.radar-insight-title {
  display: block;
  font-size: 1.05rem;
  line-height: 1.2;
}

.radar-insight-summary {
  margin: 6px 0 0;
  color: var(--muted);
}

.radar-insight-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.radar-insight-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  line-height: 1.1;
  color: var(--ink);
}

.radar-insight-card-wet {
  box-shadow: inset 0 0 0 1px rgba(72, 128, 186, 0.16);
}

.radar-insight-card-watch,
.radar-insight-card-forecast {
  box-shadow: inset 0 0 0 1px rgba(214, 159, 54, 0.16);
}

.radar-insight-card-dry {
  box-shadow: inset 0 0 0 1px rgba(96, 146, 114, 0.14);
}

.radar-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.radar-range-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.radar-range-chip {
  padding-inline: 12px;
}

.radar-range-note {
  font-size: 0.82rem;
  color: var(--muted);
}

.radar-toolbar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.radar-frame-time {
  font-size: 0.9rem;
  white-space: nowrap;
}

.radar-play-button {
  min-width: 74px;
  font-size: 0.95rem;
}

.radar-map-wrap {
  position: relative;
  overflow: hidden;
  width: min(100%, 920px);
  margin-inline: auto;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(11, 25, 37, 0.92), rgba(17, 39, 56, 0.96));
}

.radar-map {
  display: block;
  width: 100%;
  height: clamp(300px, 44vw, 560px);
}

.radar-source-canvas {
  position: absolute;
  inset: -9999px auto auto -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.radar-map-wrap .maplibregl-map,
.radar-map-wrap .maplibregl-canvas,
.radar-map-wrap .maplibregl-canvas-container {
  border-radius: inherit;
}

.radar-map-wrap .maplibregl-ctrl-bottom-left,
.radar-map-wrap .maplibregl-ctrl-bottom-right {
  margin-bottom: 10px;
}

.radar-map-wrap .maplibregl-ctrl-scale {
  border: none;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(8, 20, 29, 0.82);
  color: rgba(245, 249, 252, 0.96);
  font-size: 0.78rem;
  line-height: 1.1;
  backdrop-filter: blur(8px);
}

.radar-map-wrap .maplibregl-ctrl-attrib {
  border-radius: 14px 0 0 0;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-size: 0.72rem;
}

.radar-map-wrap .maplibregl-ctrl-attrib a {
  color: inherit;
}

.radar-location-marker {
  display: grid;
  justify-items: center;
  gap: 6px;
  pointer-events: none;
}

.radar-location-pin {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.radar-location-label {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(8, 20, 29, 0.82);
  color: rgba(245, 249, 252, 0.98);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.radar-location-label.is-forecast {
  background: rgba(211, 109, 63, 0.9);
  color: rgba(255, 249, 245, 0.98);
  box-shadow: 0 6px 16px rgba(184, 77, 36, 0.26);
}

.radar-placeholder {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.52);
  color: var(--muted);
  text-align: center;
}

.radar-legend {
  display: grid;
  width: min(100%, 920px);
  margin-inline: auto;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.radar-legend-bar {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgb(92, 171, 255) 0%,
    rgb(68, 214, 199) 35%,
    rgb(161, 223, 92) 58%,
    rgb(247, 198, 72) 80%,
    rgb(227, 103, 64) 100%
  );
}

.radar-legend-scale {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--muted);
}

.range-values {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
}

.range-value-block {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.range-value-block-current {
  justify-items: center;
  text-align: center;
}

.range-value-caption {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.range-extreme,
.range-current {
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.range-current {
  color: var(--accent-strong);
}

.temp-trend {
  display: grid;
  gap: 0;
}

.temp-trend-svg {
  width: 100%;
  height: auto;
  display: block;
}

.temp-trend-baseline {
  stroke: rgba(92, 113, 128, 0.24);
  stroke-width: 1.5;
}

.temp-trend-zero-line {
  stroke: rgba(103, 166, 201, 0.22);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
}

.temp-trend-area {
  opacity: 0.2;
}

.temp-trend-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.temp-trend-now-line {
  stroke: rgba(211, 109, 63, 0.22);
  stroke-width: 2;
  stroke-dasharray: 4 5;
}

.temp-trend-dot {
  fill: white;
  stroke: var(--trend-dot-color, var(--accent-strong));
  stroke-width: 4.5;
  filter: drop-shadow(0 6px 12px rgba(22, 50, 68, 0.14));
}

.temp-trend-extrema {
  fill: rgba(255, 255, 255, 0.95);
  stroke-width: 1.8;
}

.temp-trend-extrema-min {
  stroke: rgba(103, 166, 201, 0.9);
}

.temp-trend-extrema-max {
  stroke: rgba(211, 109, 63, 0.9);
}

.temp-trend-extrema-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.temp-trend-extrema-label-min {
  fill: rgba(91, 132, 173, 0.95);
}

.temp-trend-extrema-label-max {
  fill: rgba(175, 84, 44, 0.95);
}

.temp-trend-times {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: -8px;
}

.temp-trend-placeholder {
  margin: 2px 0 4px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.rain-nowcast-range {
  margin-top: 12px;
}

.rain-nowcast-times {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.rain-nowcast-times span:nth-child(2) {
  color: var(--ink);
  min-width: 5.8rem;
  text-align: center;
  font-size: 0.86rem;
}

.rain-nowcast-track {
  position: relative;
  margin: 0 0 12px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(118, 145, 165, 0.08) 0%, rgba(118, 145, 165, 0.02) 100%);
  overflow: hidden;
}

.rain-nowcast-now-marker {
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: 50%;
  width: 2px;
  border-radius: 999px;
  background: rgba(211, 109, 63, 0.38);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}

.rain-nowcast-track-fill {
  position: absolute;
  display: block;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.rain-nowcast-summary {
  margin: 0;
}

.insights-head {
  align-items: flex-start;
}

.profile-picker {
  min-width: min(100%, 420px);
}

.profile-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.profile-chip {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.profile-chip:hover {
  transform: translateY(-1px);
}

.profile-chip.active {
  background: linear-gradient(135deg, rgba(211, 109, 63, 0.18), rgba(255, 255, 255, 0.72));
  border-color: rgba(211, 109, 63, 0.38);
  box-shadow: inset 0 0 0 1px rgba(211, 109, 63, 0.14);
}

.profile-description {
  margin: 10px 0 0;
  max-width: 34ch;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.decision-card {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.62);
  min-height: 146px;
}

.decision-card h3 {
  margin-top: 2px;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.02;
}

.decision-detail {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.insight-block {
  margin-top: 18px;
}

.context-hints {
  display: grid;
  gap: 12px;
}

.context-hint {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.48);
}

.context-hint strong {
  display: block;
  font-size: 1rem;
}

.context-hint p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.42;
}

.context-hint-calm {
  background: rgba(146, 198, 118, 0.16);
  border-color: rgba(146, 198, 118, 0.24);
}

.context-hint-note {
  background: rgba(242, 191, 82, 0.16);
  border-color: rgba(242, 191, 82, 0.26);
}

.context-hint-watch {
  background: rgba(232, 131, 76, 0.16);
  border-color: rgba(232, 131, 76, 0.28);
}

.chart-legend {
  justify-content: flex-start;
  gap: 12px 16px;
}

.chart-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px 16px;
  margin-top: 4px;
}

.chart-toggle-button {
  padding: 8px 12px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.chart-rotate-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.chart-rotate-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.56);
  color: var(--accent-strong);
  font-size: 0.98rem;
  font-weight: 700;
  animation: chart-rotate-nudge 2.6s ease-in-out infinite;
  flex-shrink: 0;
}

.legend-chip {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.legend-chip.temp {
  background: linear-gradient(
    90deg,
    rgba(87, 148, 210, 0.9) 0%,
    rgba(122, 174, 212, 0.92) 32%,
    rgba(240, 188, 89, 0.92) 66%,
    rgba(221, 102, 58, 0.94) 100%
  );
}

.legend-chip.apparent {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.98) 0 45%, rgba(22, 50, 68, 0.88) 46% 100%);
}

.legend-chip.precip {
  background: rgba(59, 130, 166, 0.86);
}

.legend-chip.spread {
  width: 16px;
  height: 2px;
  border-radius: 0;
  background: rgba(211, 109, 63, 0.92);
  box-shadow:
    -4px 0 0 rgba(211, 109, 63, 0.92),
    4px 0 0 rgba(211, 109, 63, 0.92);
}

.legend-chip.probability {
  width: 18px;
  height: 2px;
  border-radius: 0;
  background: rgba(44, 112, 152, 0.96);
  box-shadow: 0 0 0 3px rgba(44, 112, 152, 0.14);
}

.legend-chip.wind {
  background: rgba(91, 109, 192, 0.76);
}

.legend-chip.gust {
  width: 12px;
  height: 12px;
  border-radius: 4px 4px 999px 999px;
  background: linear-gradient(180deg, rgba(132, 147, 219, 0.42) 0%, rgba(132, 147, 219, 0.78) 100%);
}

.legend-chip.pressure {
  width: 18px;
  height: 2px;
  border-radius: 0;
  background: rgba(99, 118, 138, 0.96);
  box-shadow: 0 0 0 3px rgba(99, 118, 138, 0.14);
}

.legend-chip.humidity {
  background: rgba(88, 167, 173, 0.72);
}

.legend-chip.sun {
  background: linear-gradient(90deg, rgba(148, 198, 91, 0.92) 0%, rgba(242, 191, 82, 0.92) 40%, rgba(232, 131, 76, 0.94) 72%, rgba(132, 91, 176, 0.96) 100%);
}

.legend-chip.uv {
  width: 18px;
  height: 2px;
  border-radius: 0;
  background: rgba(95, 66, 146, 0.98);
  box-shadow: 0 0 0 3px rgba(95, 66, 146, 0.12);
}

.chart-scroll {
  overflow-x: auto;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.56);
}

.hourly-chart {
  min-height: 900px;
}

.hourly-chart svg {
  display: block;
  width: auto;
  max-width: none;
  height: auto;
  border-radius: 24px;
  background: transparent;
  border: 0;
}

.app-footer {
  margin-top: 18px;
  padding: 8px 4px 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.app-footer p {
  margin: 0 0 10px;
}

.app-footer a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.footer-legal {
  color: var(--ink);
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: 8px;
}

.legal-shell {
  width: min(920px, calc(100% - 28px));
}

.legal-panel {
  margin-top: 18px;
  padding: 28px;
}

.legal-shell .hero h1 {
  max-width: 100%;
  line-height: 1;
  overflow-wrap: break-word;
  word-break: normal;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.legal-intro {
  font-size: 1.02rem;
  color: var(--muted);
}

.legal-nav-button {
  align-self: center;
  text-decoration: none;
}

.legal-sections {
  display: grid;
  gap: 16px;
}

.legal-section {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.legal-section h2 {
  margin-bottom: 10px;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
}

.legal-section p,
.legal-section li {
  color: var(--muted);
}

.legal-section p {
  margin: 0;
}

.legal-section ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.legal-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--accent-strong);
  text-decoration: none;
}

.legal-section address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.6;
}

.help-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.help-nav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.56);
  text-decoration: none;
}

.help-install-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.help-install-card {
  display: grid;
  gap: 12px;
  padding: 16px 16px 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.help-install-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.help-install-card p {
  margin: 0;
}

.help-install-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 112px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 205, 134, 0.26), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(245, 239, 229, 0.46));
  border: 1px solid rgba(255, 255, 255, 0.62);
  overflow: hidden;
}

.help-install-device {
  position: relative;
  width: 62px;
  height: 98px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(28, 47, 62, 0.98), rgba(54, 72, 86, 0.95));
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.08),
    0 14px 24px rgba(25, 34, 46, 0.18);
}

.help-install-device-android {
  border-radius: 16px;
}

.help-install-screen {
  position: absolute;
  inset: 10px 8px 18px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(140, 198, 230, 0.9), rgba(249, 221, 146, 0.74));
}

.help-install-home {
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 22px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.help-install-browser-bar {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  gap: 5px;
}

.help-install-browser-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(211, 109, 63, 0.38);
}

.help-install-window {
  width: min(170px, 72%);
  aspect-ratio: 1.35;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(19, 41, 58, 0.92), rgba(46, 67, 83, 0.88));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 16px 30px rgba(25, 34, 46, 0.16);
  display: grid;
  place-items: center;
}

.help-install-window img {
  width: 54px;
  height: 54px;
}

.help-install-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.64);
  color: var(--accent-strong);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.help-steps {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.help-steps li + li {
  margin-top: 8px;
}

.help-section {
  scroll-margin-top: 24px;
}

.help-section p + p,
.help-section p + ul,
.help-section ul + p {
  margin-top: 12px;
}

.help-subsection {
  margin-top: 18px;
}

.help-subsection h3 {
  margin-bottom: 12px;
}

.help-uncertainty-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 16px 18px;
  margin-top: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.help-uncertainty-demo {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
}

.help-target-svg {
  width: 72px;
  height: 72px;
  display: block;
}

.help-uncertainty-copy p {
  margin: 0;
}

.current-panel,
.insights-panel,
.chart-panel,
.radar-panel,
.station-panel,
.air-quality-panel,
.vitamin-d-panel,
.pollen-panel,
.history-panel,
.search-panel,
.source-panel {
  margin-top: 18px;
}

.pollen-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 12px;
}

.pollen-day-card,
.pollen-species-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.pollen-day-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 12px;
}

.pollen-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.pollen-day-values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 8px;
}

.pollen-entry,
.pollen-empty {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  padding: 10px 12px;
  border-radius: 14px;
}

.pollen-entry {
  border: 1px solid transparent;
}

.pollen-name,
.pollen-value {
  font-weight: 700;
}

.pollen-level {
  grid-column: 1 / -1;
  font-size: 0.86rem;
  color: var(--muted);
}

.pollen-day-value {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
}

.pollen-day-label {
  font-size: 0.82rem;
  color: var(--muted);
}

.pollen-day-value strong {
  font-size: 0.95rem;
}

.pollen-day-value-low {
  background: rgba(146, 198, 118, 0.18);
  border-color: rgba(146, 198, 118, 0.28);
}

.pollen-day-value-medium {
  background: rgba(242, 191, 82, 0.2);
  border-color: rgba(242, 191, 82, 0.3);
}

.pollen-day-value-high {
  background: rgba(232, 131, 76, 0.2);
  border-color: rgba(232, 131, 76, 0.3);
}

.pollen-day-value-none {
  background: rgba(255, 255, 255, 0.36);
  border-color: rgba(255, 255, 255, 0.42);
}

.pollen-entry-low {
  background: rgba(146, 198, 118, 0.18);
  border-color: rgba(146, 198, 118, 0.28);
}

.pollen-entry-medium {
  background: rgba(242, 191, 82, 0.2);
  border-color: rgba(242, 191, 82, 0.3);
}

.pollen-entry-high {
  background: rgba(232, 131, 76, 0.2);
  border-color: rgba(232, 131, 76, 0.3);
}

.pollen-empty {
  background: rgba(255, 255, 255, 0.42);
  color: var(--muted);
}

.pollen-scale {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pollen-scale-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.36);
  font-size: 0.84rem;
  color: var(--muted);
}

.pollen-scale-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.pollen-scale-dot-low {
  background: rgba(146, 198, 118, 0.8);
}

.pollen-scale-dot-medium {
  background: rgba(242, 191, 82, 0.84);
}

.pollen-scale-dot-high {
  background: rgba(232, 131, 76, 0.84);
}

.pollen-scale-note {
  font-size: 0.82rem;
  color: var(--muted);
}

.history-range {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.history-chart {
  margin-top: 12px;
}

.history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.history-chart-card {
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.history-chart-scroll {
  overflow-x: auto;
  padding-bottom: 8px;
}

.history-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.history-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.history-legend-chip {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-block;
}

.history-legend-chip.tmin {
  background: rgba(102, 152, 195, 0.88);
}

.history-legend-chip.tmax {
  background: rgba(216, 104, 57, 0.94);
}

.history-legend-chip.rain-days {
  background: rgba(91, 109, 192, 0.82);
}

.history-legend-chip.rain-sum {
  background: rgba(59, 130, 166, 0.86);
}

.history-chart-svg {
  display: block;
  width: min(1000px, max(860px, 100%));
  max-width: none;
  height: auto;
}

.history-grid-line {
  stroke: rgba(22, 50, 68, 0.11);
  stroke-width: 1;
}

.history-grid-line-vertical {
  stroke: rgba(22, 50, 68, 0.07);
}

.history-axis-label {
  fill: var(--muted);
  font-size: 15px;
  font-family: var(--font-body);
}

.history-axis-title {
  fill: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.history-axis-month {
  fill: var(--muted);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-body);
}

.history-temp-band {
  fill: rgba(214, 147, 92, 0.18);
}

.history-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.history-line-min {
  stroke: rgba(102, 152, 195, 0.96);
}

.history-line-max {
  stroke: rgba(216, 104, 57, 0.98);
}

.history-point {
  stroke-width: 2;
}

.history-point-min {
  fill: rgba(102, 152, 195, 1);
  stroke: rgba(255, 255, 255, 0.94);
}

.history-point-max {
  fill: rgba(216, 104, 57, 1);
  stroke: rgba(255, 255, 255, 0.94);
}

.history-value-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.history-value-label-min {
  fill: rgba(86, 123, 160, 0.96);
}

.history-value-label-max {
  fill: rgba(186, 92, 50, 0.98);
}

.history-value-label-bar {
  fill: rgba(255, 255, 255, 0.96);
}

.history-details-toggle {
  margin-top: 0;
}

.history-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.panel-toggle-button.active,
.history-toggle-button.active,
.history-details-toggle.active {
  background: linear-gradient(135deg, rgba(211, 109, 63, 0.18), rgba(255, 255, 255, 0.72));
  border-color: rgba(211, 109, 63, 0.38);
  box-shadow: inset 0 0 0 1px rgba(211, 109, 63, 0.14);
}

.history-details-panel {
  margin-top: 14px;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}

.history-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.history-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 12px;
}

.history-values {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.history-values dt {
  font-size: 0.82rem;
  color: var(--muted);
}

.history-values dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.is-loading {
  opacity: 0.72;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-top: #08141d;
  --bg-bottom: #132736;
  --panel: rgba(14, 28, 39, 0.82);
  --panel-strong: rgba(19, 36, 49, 0.9);
  --line: rgba(191, 219, 237, 0.14);
  --ink: #edf5fb;
  --muted: #a8c0d0;
  --accent: #ff9a64;
  --accent-strong: #f07b40;
  --accent-soft: rgba(255, 154, 100, 0.14);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(255, 153, 92, 0.14), transparent 36%),
    radial-gradient(circle at top right, rgba(91, 139, 180, 0.18), transparent 30%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .selected-place,
:root[data-theme="dark"] .source-option,
:root[data-theme="dark"] .ensemble-panel,
:root[data-theme="dark"] .ensemble-chip,
:root[data-theme="dark"] .netatmo-config,
:root[data-theme="dark"] .netatmo-card,
:root[data-theme="dark"] .integrated-range,
:root[data-theme="dark"] .weather-icon,
:root[data-theme="dark"] .theme-toggle,
:root[data-theme="dark"] .search-field input,
:root[data-theme="dark"] .result-card,
:root[data-theme="dark"] .favorite-chip {
  background-color: rgba(18, 33, 45, 0.78);
  border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .theme-button {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(237, 245, 251, 0.82);
}

:root[data-theme="dark"] .temp-trend-baseline {
  stroke: rgba(255, 255, 255, 0.14);
}

:root[data-theme="dark"] .temp-trend-zero-line {
  stroke: rgba(129, 184, 220, 0.24);
}

:root[data-theme="dark"] .temp-trend-area {
  opacity: 0.24;
}

:root[data-theme="dark"] .temp-trend-now-line {
  stroke: rgba(255, 154, 100, 0.26);
}

:root[data-theme="dark"] .temp-trend-dot {
  fill: rgba(18, 33, 45, 0.96);
}

:root[data-theme="dark"] .temp-trend-extrema {
  fill: rgba(18, 33, 45, 0.94);
}

:root[data-theme="dark"] .temp-trend-extrema-label-min {
  fill: rgba(156, 198, 231, 0.94);
}

:root[data-theme="dark"] .temp-trend-extrema-label-max {
  fill: rgba(255, 179, 138, 0.96);
}

:root[data-theme="dark"] .temp-trend-placeholder {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .help-uncertainty-card,
:root[data-theme="dark"] .help-uncertainty-demo,
:root[data-theme="dark"] .help-install-card {
  background: rgba(16, 31, 44, 0.72);
  border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .help-install-visual {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 154, 100, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(12, 25, 36, 0.94), rgba(21, 37, 50, 0.88));
  border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .help-install-screen {
  background:
    linear-gradient(180deg, rgba(109, 167, 202, 0.94), rgba(212, 196, 126, 0.82));
}

:root[data-theme="dark"] .help-install-badge {
  background: rgba(8, 20, 29, 0.82);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 189, 143, 0.94);
}

:root[data-theme="dark"] .legal-section {
  background: rgba(9, 21, 31, 0.84);
  border-color: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .legal-section p,
:root[data-theme="dark"] .legal-section li,
:root[data-theme="dark"] .legal-section address,
:root[data-theme="dark"] .legal-intro {
  color: rgba(226, 236, 244, 0.84);
}

:root[data-theme="dark"] pre {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .theme-button.is-active {
  background: linear-gradient(135deg, rgba(255, 154, 100, 0.98) 0%, rgba(240, 123, 64, 0.98) 100%);
  color: #08141d;
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(255, 154, 100, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

:root[data-theme="dark"] .pollen-day-card,
:root[data-theme="dark"] .pollen-species-card,
:root[data-theme="dark"] .history-card,
:root[data-theme="dark"] .decision-card,
:root[data-theme="dark"] .settings-card,
:root[data-theme="dark"] .context-hint,
:root[data-theme="dark"] .pollen-empty,
:root[data-theme="dark"] .pollen-day-value-none,
:root[data-theme="dark"] .pollen-scale-chip,
:root[data-theme="dark"] .metric-section,
:root[data-theme="dark"] .metric-chip-compact,
:root[data-theme="dark"] .metric-featured-chip,
:root[data-theme="dark"] .metric-day-card,
:root[data-theme="dark"] .standard-day-card,
:root[data-theme="dark"] .standard-day-mini-card,
:root[data-theme="dark"] .standard-day-pollen-chip,
:root[data-theme="dark"] .radar-insight-card,
:root[data-theme="dark"] .radar-legend,
:root[data-theme="dark"] .radar-placeholder,
:root[data-theme="dark"] .weather-alert,
:root[data-theme="dark"] .station-summary-card,
:root[data-theme="dark"] .station-metric,
:root[data-theme="dark"] .history-chart-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .hero-settings-button.is-active {
  background: linear-gradient(135deg, rgba(255, 154, 100, 0.98) 0%, rgba(240, 123, 64, 0.98) 100%);
  color: #08141d;
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(255, 154, 100, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

:root[data-theme="dark"] .radar-map-wrap .maplibregl-ctrl-attrib {
  background: rgba(8, 20, 29, 0.82);
  color: rgba(237, 245, 251, 0.72);
}

:root[data-theme="dark"] .precip-type-marker-snow {
  color: #8ab8e2;
}

:root[data-theme="dark"] .precip-type-marker-mixed {
  color: rgba(138, 184, 226, 0.82);
}

:root[data-theme="dark"] .secondary-button,
:root[data-theme="dark"] .theme-button,
:root[data-theme="dark"] .profile-chip,
:root[data-theme="dark"] .source-picker-button,
:root[data-theme="dark"] .tag,
:root[data-theme="dark"] .metric-chip,
:root[data-theme="dark"] .metric-carousel-button,
:root[data-theme="dark"] .source-badge,
:root[data-theme="dark"] .toggle-chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .metric-icon {
  background: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .radar-insight-chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(237, 245, 251, 0.9);
}

:root[data-theme="dark"] .rain-nowcast-track {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
}

:root[data-theme="dark"] .rain-nowcast-now-marker {
  background: rgba(255, 154, 100, 0.42);
}

:root[data-theme="dark"] .rain-nowcast-track-fill {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .metric-featured-chip-pollen-low {
  background: rgba(146, 198, 118, 0.12);
  border-color: rgba(146, 198, 118, 0.24);
}

:root[data-theme="dark"] .metric-featured-chip-pollen-medium {
  background: rgba(242, 191, 82, 0.12);
  border-color: rgba(242, 191, 82, 0.24);
}

:root[data-theme="dark"] .metric-featured-chip-pollen-high {
  background: rgba(232, 131, 76, 0.12);
  border-color: rgba(232, 131, 76, 0.24);
}

:root[data-theme="dark"] .metric-featured-chip-pollen-plain {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .metric-featured-chip-pollen-low .metric-featured-note {
  color: rgba(182, 221, 146, 0.96);
}

:root[data-theme="dark"] .metric-featured-chip-pollen-medium .metric-featured-note {
  color: rgba(248, 206, 112, 0.96);
}

:root[data-theme="dark"] .metric-featured-chip-pollen-high .metric-featured-note {
  color: rgba(244, 165, 116, 0.96);
}

:root[data-theme="dark"] .metric-featured-chip-air-good {
  background: rgba(80, 204, 170, 0.12);
  border-color: rgba(80, 204, 170, 0.24);
}

:root[data-theme="dark"] .metric-featured-chip-air-good .metric-featured-note {
  color: rgba(164, 235, 214, 0.96);
}

:root[data-theme="dark"] .metric-featured-chip-air-fair {
  background: rgba(126, 180, 99, 0.12);
  border-color: rgba(126, 180, 99, 0.24);
}

:root[data-theme="dark"] .metric-featured-chip-air-fair .metric-featured-note {
  color: rgba(204, 234, 167, 0.96);
}

:root[data-theme="dark"] .metric-featured-chip-air-moderate {
  background: rgba(242, 191, 82, 0.12);
  border-color: rgba(242, 191, 82, 0.24);
}

:root[data-theme="dark"] .metric-featured-chip-air-moderate .metric-featured-note {
  color: rgba(255, 223, 150, 0.96);
}

:root[data-theme="dark"] .metric-featured-chip-air-poor {
  background: rgba(232, 131, 76, 0.12);
  border-color: rgba(232, 131, 76, 0.24);
}

:root[data-theme="dark"] .metric-featured-chip-air-poor .metric-featured-note {
  color: rgba(255, 201, 170, 0.98);
}

:root[data-theme="dark"] .metric-featured-chip-air-very-poor {
  background: rgba(208, 83, 94, 0.14);
  border-color: rgba(208, 83, 94, 0.26);
}

:root[data-theme="dark"] .metric-featured-chip-air-very-poor .metric-featured-note {
  color: rgba(255, 196, 203, 0.98);
}

:root[data-theme="dark"] .metric-featured-chip-air-extremely-poor {
  background: rgba(127, 95, 175, 0.16);
  border-color: rgba(127, 95, 175, 0.26);
}

:root[data-theme="dark"] .metric-featured-chip-air-extremely-poor .metric-featured-note {
  color: rgba(221, 205, 245, 0.98);
}

:root[data-theme="dark"] .metric-featured-chip-vitamin-unlikely {
  background: rgba(124, 151, 175, 0.12);
  border-color: rgba(124, 151, 175, 0.24);
}

:root[data-theme="dark"] .metric-featured-chip-vitamin-unlikely .metric-featured-note {
  color: rgba(190, 212, 229, 0.92);
}

:root[data-theme="dark"] .metric-featured-chip-vitamin-possible {
  background: rgba(244, 210, 110, 0.12);
  border-color: rgba(244, 210, 110, 0.24);
}

:root[data-theme="dark"] .metric-featured-chip-vitamin-possible .metric-featured-note {
  color: rgba(248, 225, 150, 0.96);
}

:root[data-theme="dark"] .metric-featured-chip-vitamin-good {
  background: rgba(230, 171, 71, 0.14);
  border-color: rgba(230, 171, 71, 0.26);
}

:root[data-theme="dark"] .metric-featured-chip-vitamin-good .metric-featured-note {
  color: rgba(255, 218, 164, 0.98);
}

:root[data-theme="dark"] .metric-featured-chip-vitamin-high-uv {
  background: rgba(232, 131, 76, 0.12);
  border-color: rgba(232, 131, 76, 0.24);
}

:root[data-theme="dark"] .metric-featured-chip-vitamin-high-uv .metric-featured-note {
  color: rgba(255, 201, 170, 0.98);
}

:root[data-theme="dark"] .pollen-scale-note {
  color: rgba(226, 236, 244, 0.72);
}

:root[data-theme="dark"] .air-quality-overview,
:root[data-theme="dark"] .air-quality-pollutant-card {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .air-quality-overview-badge {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(236, 245, 252, 0.96);
}

:root[data-theme="dark"] .vitamin-d-overview,
:root[data-theme="dark"] .vitamin-d-timeline {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .vitamin-d-overview-badge,
:root[data-theme="dark"] .vitamin-d-overview-pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .vitamin-d-overview-badge {
  color: rgba(236, 245, 252, 0.96);
}

:root[data-theme="dark"] .vitamin-d-overview-unlikely {
  background: rgba(124, 151, 175, 0.12);
  border-color: rgba(124, 151, 175, 0.24);
}

:root[data-theme="dark"] .vitamin-d-overview-possible {
  background: rgba(244, 210, 110, 0.12);
  border-color: rgba(244, 210, 110, 0.24);
}

:root[data-theme="dark"] .vitamin-d-overview-good {
  background: rgba(230, 171, 71, 0.14);
  border-color: rgba(230, 171, 71, 0.24);
}

:root[data-theme="dark"] .vitamin-d-overview-high-uv {
  background: rgba(232, 131, 76, 0.14);
  border-color: rgba(232, 131, 76, 0.24);
}

:root[data-theme="dark"] .vitamin-d-segment-empty {
  background: rgba(124, 151, 175, 0.08);
}

:root[data-theme="dark"] .vitamin-d-segment-unlikely {
  background: rgba(124, 151, 175, 0.24);
}

:root[data-theme="dark"] .vitamin-d-segment-possible {
  background: rgba(244, 210, 110, 0.34);
}

:root[data-theme="dark"] .vitamin-d-segment-good {
  background: rgba(230, 171, 71, 0.42);
}

:root[data-theme="dark"] .vitamin-d-segment-high-uv {
  background: rgba(232, 131, 76, 0.56);
}

:root[data-theme="dark"] .vitamin-d-segment-current {
  box-shadow: 0 0 0 1.5px rgba(255, 154, 100, 0.32);
}

:root[data-theme="dark"] .air-quality-overview-good,
:root[data-theme="dark"] .air-quality-pollutant-card-good {
  background: rgba(80, 204, 170, 0.12);
  border-color: rgba(80, 204, 170, 0.24);
}

:root[data-theme="dark"] .air-quality-overview-fair,
:root[data-theme="dark"] .air-quality-pollutant-card-fair {
  background: rgba(126, 180, 99, 0.12);
  border-color: rgba(126, 180, 99, 0.24);
}

:root[data-theme="dark"] .air-quality-overview-moderate,
:root[data-theme="dark"] .air-quality-pollutant-card-moderate {
  background: rgba(242, 191, 82, 0.12);
  border-color: rgba(242, 191, 82, 0.24);
}

:root[data-theme="dark"] .air-quality-overview-poor,
:root[data-theme="dark"] .air-quality-pollutant-card-poor {
  background: rgba(232, 131, 76, 0.12);
  border-color: rgba(232, 131, 76, 0.24);
}

:root[data-theme="dark"] .air-quality-overview-very-poor,
:root[data-theme="dark"] .air-quality-pollutant-card-very-poor {
  background: rgba(208, 83, 94, 0.14);
  border-color: rgba(208, 83, 94, 0.26);
}

:root[data-theme="dark"] .air-quality-overview-extremely-poor,
:root[data-theme="dark"] .air-quality-pollutant-card-extremely-poor {
  background: rgba(127, 95, 175, 0.16);
  border-color: rgba(127, 95, 175, 0.28);
}

:root[data-theme="dark"] .metric-day-mini-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .standard-day-card {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .standard-day-card.is-today {
  background: linear-gradient(180deg, rgba(255, 154, 100, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-color: rgba(255, 154, 100, 0.18);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

:root[data-theme="dark"] .standard-day-mini-card {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .standard-day-status {
  background: rgba(255, 154, 100, 0.14);
  border-color: rgba(255, 154, 100, 0.22);
  color: rgba(255, 199, 167, 0.96);
}

:root[data-theme="dark"] .standard-day-axis-line {
  stroke: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .standard-day-zero-line {
  stroke: rgba(129, 184, 220, 0.22);
}

:root[data-theme="dark"] .standard-day-temp-area {
  opacity: 0.22;
}

:root[data-theme="dark"] .standard-day-now-line {
  stroke: rgba(255, 154, 100, 0.28);
}

:root[data-theme="dark"] .standard-day-now-badge {
  fill: rgba(255, 154, 100, 0.24);
  stroke: rgba(255, 154, 100, 0.34);
}

:root[data-theme="dark"] .standard-day-now-badge-text {
  fill: rgba(255, 199, 167, 0.96);
}

:root[data-theme="dark"] .standard-day-mini-current-pill {
  background: rgba(255, 154, 100, 0.24);
  border-color: rgba(255, 154, 100, 0.34);
  color: rgba(255, 199, 167, 0.96);
}

:root[data-theme="dark"] .standard-day-now-dot {
  fill: rgba(18, 33, 45, 0.96);
}

:root[data-theme="dark"] .standard-day-wind-line {
  stroke: rgba(137, 183, 230, 0.92);
}

:root[data-theme="dark"] .standard-day-pollen-chip-low {
  background: rgba(146, 198, 118, 0.12);
  border-color: rgba(146, 198, 118, 0.24);
}

:root[data-theme="dark"] .standard-day-pollen-chip-medium {
  background: rgba(242, 191, 82, 0.12);
  border-color: rgba(242, 191, 82, 0.24);
}

:root[data-theme="dark"] .standard-day-pollen-chip-high {
  background: rgba(232, 131, 76, 0.12);
  border-color: rgba(232, 131, 76, 0.24);
}

:root[data-theme="dark"] .metric-day-confidence--very-stable {
  background: rgba(104, 191, 196, 0.18);
  border-color: rgba(104, 191, 196, 0.24);
  color: rgba(187, 244, 247, 0.96);
}

:root[data-theme="dark"] .metric-day-confidence--stable {
  background: rgba(148, 198, 91, 0.16);
  border-color: rgba(148, 198, 91, 0.22);
  color: rgba(213, 239, 171, 0.96);
}

:root[data-theme="dark"] .metric-day-confidence--mixed {
  background: rgba(242, 191, 82, 0.16);
  border-color: rgba(242, 191, 82, 0.22);
  color: rgba(255, 223, 150, 0.96);
}

:root[data-theme="dark"] .metric-day-confidence--uncertain {
  background: rgba(255, 154, 100, 0.18);
  border-color: rgba(255, 154, 100, 0.24);
  color: rgba(255, 212, 190, 0.98);
}

:root[data-theme="dark"] .weather-alert-chip--info,
:root[data-theme="dark"] .weather-alert-chip--minor {
  background: rgba(90, 168, 206, 0.18);
  color: rgba(185, 227, 245, 0.98);
}

:root[data-theme="dark"] .weather-alert-chip--moderate {
  background: rgba(242, 191, 82, 0.18);
  color: rgba(255, 223, 150, 0.98);
}

:root[data-theme="dark"] .weather-alert-chip--severe {
  background: rgba(255, 154, 100, 0.22);
  color: rgba(255, 208, 182, 0.98);
}

:root[data-theme="dark"] .weather-alert-chip--extreme {
  background: rgba(255, 111, 97, 0.22);
  color: rgba(255, 204, 198, 0.98);
}

:root[data-theme="dark"] .chart-rotate-icon {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}

:root[data-theme="dark"] .chart-scroll {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .history-grid-line {
  stroke: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .history-grid-line-vertical {
  stroke: rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .history-temp-band {
  fill: rgba(214, 147, 92, 0.16);
}

:root[data-theme="dark"] .history-point-min {
  stroke: rgba(9, 21, 31, 0.94);
}

:root[data-theme="dark"] .history-point-max {
  stroke: rgba(9, 21, 31, 0.94);
}

:root[data-theme="dark"] .history-value-label-min {
  fill: rgba(170, 202, 232, 0.96);
}

:root[data-theme="dark"] .history-value-label-max {
  fill: rgba(246, 178, 138, 0.98);
}

:root[data-theme="dark"] .history-value-label-bar {
  fill: rgba(248, 251, 253, 0.96);
}

:root[data-theme="dark"] .secondary-button {
  color: var(--ink);
}

:root[data-theme="dark"] .push-actions .secondary-button.is-active {
  background: linear-gradient(135deg, rgba(255, 154, 100, 0.98) 0%, rgba(240, 123, 64, 0.98) 100%);
  color: #08141d;
  border-color: rgba(255, 154, 100, 0.34);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(255, 154, 100, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .push-targets-panel {
  border-top-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .push-target-card {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .push-target-kind {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(214, 225, 233, 0.84);
}

:root[data-theme="dark"] .push-target-master {
  color: rgba(236, 245, 252, 0.98);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .push-target-master.is-active {
  background: linear-gradient(135deg, rgba(255, 154, 100, 0.98) 0%, rgba(240, 123, 64, 0.98) 100%);
  color: #08141d;
  border-color: rgba(255, 154, 100, 0.34);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 154, 100, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .push-type-chip {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(214, 225, 233, 0.82);
}

:root[data-theme="dark"] .push-type-chip.is-active {
  background: linear-gradient(135deg, rgba(255, 154, 100, 0.98) 0%, rgba(240, 123, 64, 0.98) 100%);
  border-color: rgba(255, 154, 100, 0.34);
  color: #08141d;
  box-shadow:
    0 10px 16px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 154, 100, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .hero-mark {
  background:
    linear-gradient(160deg, rgba(255, 154, 100, 0.2), rgba(84, 133, 168, 0.18)),
    rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .hero-info-link,
:root[data-theme="dark"] .panel-info-link,
:root[data-theme="dark"] .inline-info-link,
:root[data-theme="dark"] .help-nav a {
  background: rgba(16, 31, 44, 0.72);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 189, 143, 0.94);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

:root[data-theme="dark"] .hero-info-link:hover,
:root[data-theme="dark"] .hero-info-link:focus-visible,
:root[data-theme="dark"] .panel-info-link:hover,
:root[data-theme="dark"] .panel-info-link:focus-visible,
:root[data-theme="dark"] .inline-info-link:hover,
:root[data-theme="dark"] .inline-info-link:focus-visible,
:root[data-theme="dark"] .help-nav a:hover,
:root[data-theme="dark"] .help-nav a:focus-visible {
  background: rgba(22, 43, 61, 0.9);
  border-color: rgba(255, 255, 255, 0.18);
}

:root[data-theme="dark"] .source-option.active {
  background:
    linear-gradient(145deg, rgba(255, 154, 100, 0.18), rgba(24, 44, 58, 0.92));
  border-color: rgba(255, 154, 100, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(255, 154, 100, 0.12),
    0 12px 22px rgba(0, 0, 0, 0.16);
}

:root[data-theme="dark"] .source-option.active .source-card-detail,
:root[data-theme="dark"] .source-option.active small {
  color: rgba(237, 245, 251, 0.82);
}

:root[data-theme="dark"] .source-option.active .source-badge {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .profile-chip.active {
  background: linear-gradient(135deg, rgba(255, 154, 100, 0.22), rgba(255, 255, 255, 0.06));
  border-color: rgba(255, 154, 100, 0.34);
}

:root[data-theme="dark"] .panel-toggle-button.active,
:root[data-theme="dark"] .history-toggle-button.active,
:root[data-theme="dark"] .history-details-toggle.active {
  background: linear-gradient(135deg, rgba(255, 154, 100, 0.22), rgba(255, 255, 255, 0.06));
  border-color: rgba(255, 154, 100, 0.34);
}

:root[data-theme="dark"] .panel-toggle-button,
:root[data-theme="dark"] .history-toggle-button {
  color: var(--accent);
}

:root[data-theme="dark"] .inline-location-panel {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .selected-place {
  background:
    linear-gradient(145deg, rgba(24, 44, 58, 0.92), rgba(18, 33, 45, 0.84));
  border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .context-hint-calm {
  background: rgba(146, 198, 118, 0.14);
  border-color: rgba(146, 198, 118, 0.22);
}

:root[data-theme="dark"] .context-hint-note {
  background: rgba(242, 191, 82, 0.12);
  border-color: rgba(242, 191, 82, 0.2);
}

:root[data-theme="dark"] .context-hint-watch {
  background: rgba(232, 131, 76, 0.14);
  border-color: rgba(232, 131, 76, 0.22);
}

@keyframes sky-drift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(0, 8px, 0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chart-rotate-nudge {
  0%,
  100% {
    transform: rotate(0deg);
  }

  20% {
    transform: rotate(-18deg);
  }

  40% {
    transform: rotate(14deg);
  }

  60% {
    transform: rotate(-10deg);
  }
}

.panel,
.favorite-chip,
.result-card,
.source-option {
  animation: rise-in 420ms ease both;
}

@media (max-width: 980px) {
  .source-grid {
    grid-template-columns: 1fr;
  }

  .history-grid,
  .decision-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .netatmo-layout {
    grid-template-columns: 1fr;
  }

  .air-quality-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  .hero,
  .search-panel,
  .source-panel,
  .current-panel,
  .insights-panel,
  .chart-panel,
  .radar-panel,
  .station-panel,
  .air-quality-panel,
  .vitamin-d-panel,
  .pollen-panel,
  .history-panel,
  .netatmo-panel {
    padding: 20px;
    border-radius: 24px;
  }

  .panel-head,
  .chart-head,
  .insights-head,
  .selected-place,
  .ensemble-header,
  .hero {
    flex-direction: column;
    align-items: stretch;
  }

  .current-layout {
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: start;
  }

  .weather-icon {
    width: 104px;
    border-radius: 24px;
  }

  .current-copy {
    display: contents;
  }

  .current-headline {
    grid-column: 2;
    align-self: center;
    min-width: 0;
  }

  .temperature-line,
  .current-summary {
    grid-column: auto;
  }

  .current-summary {
    margin-top: 4px;
  }

  .current-layout .integrated-range {
    grid-column: 1 / -1;
    margin-top: 14px;
  }

  .range-values {
    gap: 10px;
  }

  .range-extreme,
  .range-current {
    font-size: 1.5rem;
  }

  .range-value-caption {
    font-size: 0.7rem;
  }

  .current-alerts-head {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .weather-alert-summary-main {
    flex-wrap: wrap;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-carousel-controls {
    display: none;
  }

  .metric-day-card {
    flex-basis: min(84vw, 248px);
  }

  .standard-day-card {
    flex-basis: min(88vw, 320px);
  }

  .standard-day-title-row {
    flex-wrap: wrap;
    gap: 4px 8px;
  }

  .standard-day-chart-grid {
    gap: 8px;
  }

  .air-quality-overview-head {
    flex-direction: column;
    align-items: stretch;
  }

  .air-quality-overview-badge {
    align-self: flex-start;
  }

  .vitamin-d-overview-head {
    flex-direction: column;
    align-items: stretch;
  }

  .vitamin-d-overview-badge {
    align-self: flex-start;
  }

  .vitamin-d-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .vitamin-d-axis {
    margin-left: 0;
  }

  .air-quality-grid {
    grid-template-columns: 1fr;
  }

  .history-grid,
  .decision-grid {
    grid-template-columns: 1fr;
  }

  .history-chart-card {
    padding: 14px;
  }

  .station-summary-head {
    flex-direction: column;
  }

  .station-carousel-controls {
    display: none;
  }

  .station-summary-card {
    flex-basis: min(86vw, 328px);
  }

  .station-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .radar-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .radar-range-group,
  .radar-toolbar-meta {
    width: 100%;
  }

  .radar-toolbar-meta {
    justify-content: space-between;
  }

  .radar-frame-time {
    white-space: normal;
  }

  .radar-map {
    height: clamp(260px, 70vw, 420px);
  }

  .profile-options {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .profile-chip {
    white-space: nowrap;
  }

  .chart-legend {
    justify-content: flex-start;
  }

  .chart-tools {
    justify-content: flex-start;
  }

  .chart-rotate-hint {
    font-size: 0.88rem;
  }

  .hero-actions {
    margin-left: auto;
  }

  .hero-brand {
    gap: 14px;
  }

  .legal-shell .hero-brand {
    align-items: flex-start;
  }

  .legal-shell .hero h1 {
    font-size: clamp(2.2rem, 9vw, 4rem);
  }

  .hero-title-row {
    gap: 10px;
    align-items: center;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-row {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-subsection-head {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-card .theme-toggle {
    justify-content: flex-end;
  }

  .push-actions {
    justify-content: flex-start;
  }

  .push-target-head {
    flex-direction: column;
    align-items: stretch;
  }

  .push-target-master {
    align-self: stretch;
    text-align: center;
  }

  .history-chart-svg {
    width: 820px;
  }

  .hero-mark {
    width: 60px;
    height: 60px;
    border-radius: 20px;
  }

  .hero-mark img,
  .hero-mark svg {
    width: 48px;
    height: 48px;
  }

  .hero-settings-button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .panel-info-link {
    top: 16px;
    right: 16px;
  }

  .panel-with-info > .panel-head,
  .panel-with-info > .chart-head {
    padding-right: 70px;
  }

  .panel-with-info .panel-toggle-button,
  .panel-with-info .history-toggle-button {
    top: 16px;
    right: 52px;
  }

  .help-nav {
    gap: 8px;
  }

  .help-nav a {
    padding: 9px 12px;
  }

  .help-uncertainty-card {
    grid-template-columns: 1fr;
  }

  .help-install-grid {
    grid-template-columns: 1fr;
  }
}

@media (pointer: coarse) {
  .metric-carousel-controls {
    display: none;
  }

  .station-carousel-controls {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chart-rotate-icon {
    animation: none;
  }
}
