/* pws-watch: dashboard panels, chart, map, and legends. */

.weather-brief {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  margin: -4px 0 16px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 95, 112, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(15, 122, 90, 0.1), rgba(39, 100, 201, 0.08)),
    rgba(255, 255, 255, 0.64);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.brief-kicker {
  display: inline-grid;
  min-height: 22px;
  padding: 0 9px;
  place-items: center;
  border-radius: 999px;
  background: rgba(23, 32, 42, 0.88);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.weather-warning-pill {
  display: none;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: min(100%, 620px);
  margin: 0 auto;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--warning-color, var(--amber)), transparent 55%);
  border-radius: 14px;
  background: color-mix(in srgb, var(--warning-color, var(--amber)), white 88%);
  color: var(--ink);
  box-shadow: 0 12px 22px rgba(23, 32, 42, 0.1);
}

.weather-warning-pill.visible {
  display: grid;
}

.weather-warning-level {
  min-width: 58px;
  padding: 5px 7px;
  border-radius: 999px;
  background: var(--warning-color, var(--amber));
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.weather-warning-copy {
  min-width: 0;
}

.weather-warning-copy strong {
  display: block;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.15;
}

.weather-warning-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.metrics {
  gap: 8px;
}

.user-stations {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
}

.user-stations[hidden] {
  display: none;
}

.user-stations-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.station-tabs {
  display: inline-flex;
  width: fit-content;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
}

.station-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.station-tabs button.active {
  background: rgba(0, 147, 168, 0.14);
  color: var(--ink);
}

.station-tabs strong {
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--blue);
}

.current-station-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 147, 168, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(0, 147, 168, 0.12), rgba(39, 100, 201, 0.08)),
    rgba(255, 255, 255, 0.78);
}

.current-station-card strong {
  display: inline-block;
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

#currentStationStatus {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-left: 8px;
}

.station-actions,
.station-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
}

.user-stations-list {
  display: grid;
  gap: 8px;
  align-content: start;
}

.user-station-row {
  display: grid;
  grid-template-columns: minmax(150px, 280px) minmax(180px, 1fr) auto;
  align-items: center;
  align-self: start;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
}

.user-station-row.current {
  border-color: rgba(0, 147, 168, 0.38);
}

.user-station-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-row-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.station-row-actions {
  align-self: center;
}

.station-row-actions button,
.station-row-viewing {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid rgba(23, 32, 42, 0.12);
  border-radius: 7px;
  padding: 0;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.station-icon-button {
  display: inline-grid;
  place-items: center;
}

.station-icon-button.danger:hover {
  color: var(--warning-color);
  border-color: color-mix(in srgb, var(--warning-color), transparent 50%);
}

.station-row-actions button:hover {
  color: var(--ink);
  border-color: rgba(0, 147, 168, 0.34);
}

.user-station-claim {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(0, 147, 168, 0.12);
  color: var(--cyan);
  font-size: 10px;
  text-transform: uppercase;
}

.user-station-claim button {
  display: inline-grid;
  width: 18px;
  min-height: 18px;
  padding: 0;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 147, 168, 0.14);
  color: inherit;
  font-size: 11px;
  line-height: 1;
}

.user-station-current {
  display: inline-grid;
  min-height: 20px;
  padding: 0 7px;
  place-items: center;
  border-radius: 999px;
  background: rgba(39, 100, 201, 0.13);
  color: var(--blue);
  font-size: 10px;
  text-transform: uppercase;
}

.user-station-tracked {
  display: inline-grid;
  min-height: 20px;
  padding: 0 7px;
  place-items: center;
  border-radius: 999px;
  background: rgba(91, 184, 147, 0.13);
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.user-station-claim.claimed {
  background: rgba(178, 103, 18, 0.13);
  color: var(--amber);
}

.user-stations-empty {
  margin: 0;
  padding: 8px 2px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.radar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.legend-item {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  white-space: nowrap;
}

.legend-swatch {
  width: 18px;
  height: 7px;
  border-radius: 999px;
  background: var(--line);
}

.legend-swatch.good {
  background: linear-gradient(90deg, #0f7a5a, #2ea36f);
}

.legend-swatch.watch {
  background: linear-gradient(90deg, #2f80ed, #22b8cf);
}

.legend-swatch.caution {
  background: linear-gradient(90deg, #f5a524, #eab308);
}

.legend-swatch.alert {
  background: linear-gradient(90deg, #e5484d, #b8322a);
}

.legend-swatch.neutral {
  background: linear-gradient(90deg, #7c5cff, #2f80ed);
}

.metric {
  min-height: 66px;
  padding: 10px;
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(244, 248, 248, 0.64)),
    rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 22px rgba(23, 32, 42, 0.06);
}

.metric-name {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.metric-value {
  font-size: clamp(18px, 2.2vw, 26px);
}

.hero-grid {
  grid-template-columns: 1fr;
  gap: 22px;
}

#currentPanel {
  display: grid;
  grid-template-columns:
    minmax(170px, 0.7fr)
    minmax(210px, 0.85fr)
    minmax(170px, 0.62fr)
    minmax(260px, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 0;
  padding: 16px 18px;
}

#currentPanel[data-weather-renderer-active="glance"] {
  grid-template-columns:
    minmax(170px, 0.7fr)
    minmax(210px, 0.85fr)
    minmax(356px, auto);
}

#currentPanel[data-weather-renderer-active="glance"] .metrics {
  display: none;
}

#currentPanel::before {
  width: 7px;
  background: linear-gradient(180deg, var(--green), var(--cyan), var(--amber), var(--red));
}

.current-top {
  display: grid;
  gap: 10px;
  align-self: stretch;
  align-content: center;
  padding-left: 4px;
}

.temp-stack,
.dial-module {
  position: relative;
  z-index: 1;
}

.dial-module {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 0;
}

.dial-module .weather-warning-pill {
  justify-self: center;
}

.station-name {
  font-size: clamp(18px, 2vw, 24px);
}

.freshness {
  justify-self: start;
}

.temp {
  font-size: clamp(56px, 6vw, 86px);
  line-height: 0.86;
}

.temp small {
  margin-top: 5px;
  font-size: 26px;
}

.temp-stack {
  display: grid;
  gap: 10px;
}

.weather-brief {
  grid-template-columns: 1fr;
  gap: 7px;
  align-items: start;
  margin: 0;
  padding: 9px 10px;
  font-size: 12px;
  line-height: 1.28;
}

.brief-kicker {
  justify-self: start;
}

.atmo-dial {
  width: min(100%, 178px);
  justify-self: center;
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.64),
    inset 0 0 26px rgba(0, 147, 168, 0.1),
    0 14px 24px rgba(23, 32, 42, 0.1);
}

.dial-ring.temperature-ring {
  inset: 9px;
}

.dial-ring.humidity-ring {
  inset: 25px;
}

.dial-ring.pressure-ring {
  inset: 41px;
}

.dial-ring.uv-ring {
  inset: 57px;
}

.dial-center {
  width: 64px;
  min-height: 64px;
  padding: 8px;
}

.dial-center strong {
  font-size: 15px;
}

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

.metric {
  min-height: 58px;
  padding: 9px;
}

.metric-value {
  font-size: clamp(16px, 1.8vw, 22px);
}

.chart-panel {
  --chart-height: clamp(380px, 48vh, 520px);
  min-height: min(64vh, 580px);
  padding: 16px;
  grid-template-rows: auto var(--chart-height) auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 250, 250, 0.82)),
    rgba(255, 255, 255, 0.88);
}

.chart-head {
  align-items: start;
}

.chart-title {
  font-size: 18px;
  font-weight: 900;
}

.chart-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.telemetry-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.telemetry-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.telemetry-legend span::before {
  content: "";
  width: 18px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.telemetry-legend .temp-line {
  color: #f5a524;
}

.telemetry-legend .humidity-band {
  color: #22b8cf;
}

.telemetry-legend .pressure-line {
  color: #7c5cff;
}

.telemetry-legend .wind-ticks {
  color: #6b7280;
}

.telemetry-legend .rain-rate {
  color: #2f80ed;
}

.telemetry-legend .rain-total {
  color: #0f5f70;
}

.telemetry-legend .uv-line {
  color: #c8d400;
}

.telemetry-legend .solar-line {
  color: #eab308;
}

.analysis-grid {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.analysis-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.analysis-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(23, 32, 42, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.analysis-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.analysis-tabs button.active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(23, 32, 42, 0.08),
    0 8px 16px rgba(23, 32, 42, 0.08);
}

.analysis-view[hidden] {
  display: none !important;
}

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

.history-panel {
  display: grid;
  gap: 20px;
  padding: 16px;
}

.history-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

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

.history-help {
  width: 22px;
  height: 22px;
  color: var(--cyan, #007e9a);
}

.history-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.history-actions .map-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.history-date-control {
  display: grid;
  gap: 5px;
  min-width: 150px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.history-date-control input {
  min-height: 34px;
}

.history-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.history-kpi {
  display: grid;
  gap: 3px;
  min-height: 76px;
  align-content: center;
  padding: 10px;
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(244, 248, 248, 0.7)),
    rgba(255, 255, 255, 0.7);
}

.history-kpi span,
.history-kpi small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-kpi strong {
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 950;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-events {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  min-height: 30px;
}

.history-events span,
.history-empty {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(0, 147, 168, 0.18);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(0, 147, 168, 0.08);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.history-empty {
  border-radius: 8px;
  justify-content: center;
  min-height: 72px;
  width: 100%;
  color: var(--muted);
}

.history-empty.compact {
  justify-content: flex-start;
  min-height: 30px;
  width: auto;
}

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

.history-strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(112px, 0.42fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 4px 10px;
  min-height: 82px;
  padding: 10px;
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--history-color, #2f80ed), transparent 92%), transparent),
    rgba(255, 255, 255, 0.68);
  overflow: hidden;
}

.history-strip::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--history-color, #2f80ed);
}

.history-strip-label {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
}

.history-strip-label strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.history-strip-label span {
  color: var(--history-color, var(--blue));
  font-size: 18px;
  font-weight: 950;
  line-height: 1.05;
}

.history-strip-chart {
  width: 100%;
  height: 54px;
  align-self: stretch;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(23, 32, 42, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 32, 42, 0.05) 1px, transparent 1px);
  background-size: 18px 100%, 100% 18px;
}

.history-strip-chart polyline {
  fill: none;
  stroke: var(--history-color, #2f80ed);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
}

.history-strip-range {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.history-strip.empty {
  opacity: 0.72;
}

.history-strip.empty .history-strip-chart {
  background:
    repeating-linear-gradient(90deg, rgba(102, 114, 127, 0.08) 0 10px, transparent 10px 20px),
    rgba(102, 114, 127, 0.04);
}

.history-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.history-table th,
.history-table td {
  border-bottom: 1px solid rgba(23, 32, 42, 0.08);
  padding: 10px 12px;
  text-align: right;
  white-space: nowrap;
}

.history-table th:first-child,
.history-table td:first-child {
  text-align: left;
}

.history-table thead th {
  background: rgba(238, 243, 242, 0.9);
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.history-table tbody th {
  color: var(--ink);
  font-weight: 900;
}

.history-table tbody tr:last-child th,
.history-table tbody tr:last-child td {
  border-bottom: 0;
}

.segments {
  background: rgba(238, 243, 242, 0.9);
  box-shadow: inset 0 1px 2px rgba(23, 32, 42, 0.1);
}

.segments::before {
  content: "Focus";
  display: inline-grid;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 9px;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.segments button {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 34px;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

canvas {
  display: block;
  height: var(--chart-height, 420px);
  min-height: 0;
  border: 1px solid rgba(23, 32, 42, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(23, 32, 42, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 32, 42, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 248, 248, 0.75));
  background-size: 44px 44px, 44px 44px, auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 28px rgba(23, 32, 42, 0.06);
}

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

.mini-panel {
  min-height: 210px;
  padding: 14px 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(238, 245, 245, 0.76)),
    rgba(255, 255, 255, 0.86);
}

.provider-card {
  display: grid;
  grid-column: span 2;
  align-content: start;
  gap: 14px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: auto;
  overflow: hidden;
}

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

.provider-card-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.provider-card .provider-info-button {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.provider-card .provider-setting {
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.mini-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), transparent 72%);
}

.mini-title {
  color: #1c2833;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.facts {
  gap: 0;
}

.fact {
  min-height: 34px;
  align-items: center;
  padding: 8px 0;
  border-color: rgba(23, 32, 42, 0.09);
}

.fact span:first-child {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-weight: 700;
}

.fact span:last-child {
  font-variant-numeric: tabular-nums;
}

.calibration-panel {
  display: grid;
  align-content: start;
  gap: 10px;
}

.calibration-copy {
  min-height: 38px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

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

.calibration-deltas span {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 9px 8px;
  border: 1px solid rgba(23, 32, 42, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.calibration-deltas strong {
  overflow: hidden;
  color: var(--cyan);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calibration-deltas small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calibration-facts {
  margin-top: 2px;
}

.calibration-facts #calibrationProvider {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  column-gap: 6px;
  row-gap: 2px;
  min-width: 0;
}

.calibration-source {
  overflow-wrap: anywhere;
}

.calibration-source-separator {
  color: var(--muted);
  font-size: 0.82em;
  font-weight: 900;
  text-transform: uppercase;
}

.status-line {
  margin-top: 14px;
  font-weight: 800;
}

.station-map {
  position: relative;
}

.radar-legend {
  position: absolute;
  z-index: 500;
  right: 10px;
  bottom: 10px;
  max-width: min(420px, calc(100% - 20px));
  padding: 8px 10px;
  border: 1px solid rgba(23, 32, 42, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 20px rgba(23, 32, 42, 0.12);
  backdrop-filter: blur(12px);
}

.radar-legend[hidden] {
  display: none;
}

.legend-swatch.rain-light {
  background: #5ec962;
}

.legend-swatch.rain-moderate {
  background: #2b8cbe;
}

.legend-swatch.rain-heavy {
  background: #fdae2b;
}

.legend-swatch.rain-extreme {
  background: #d7191c;
}

.page-footer {
  border-color: rgba(23, 32, 42, 0.13);
  font-weight: 700;
}
