.explore-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 10px;
}

.explore-title {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  line-height: 1.25;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 10px 0;
  margin: 0;
}

/* Exploration header bar */
.explore-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}
.explore-back-link { font-size: 13px; color: var(--brand-blue); text-decoration: none; }
.explore-back-link:hover { text-decoration: underline; }
.explore-save-status { font-size: 12px; color: var(--fg-muted); }
/* Status colours kept literal in light; dark gets brighter values so they read on near-black bg */
.explore-save-status.saving { color: #D97706; }
.explore-save-status.saved { color: #059669; }
.explore-save-status.unsaved { color: #DC2626; }
:root.dark .explore-save-status.saving { color: #FBBF24; }
:root.dark .explore-save-status.saved { color: #34D399; }
:root.dark .explore-save-status.unsaved { color: #FCA5A5; }
.explore-shared-banner { font-size: 13px; color: var(--brand-blue-hover); background: var(--bg-accent-tint-hover); padding: 4px 12px; border-radius: 4px; }
.beta-badge { display: inline-block; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; background: var(--warn-bg); color: var(--fg-strong); border: 1px solid var(--warn-border); padding: 1px 6px; border-radius: 3px; margin-left: 8px; vertical-align: middle; }

.explore-title-bar { margin-bottom: 8px; }
.explore-title-input {
  width: 100%;
  font-size: 20px;
  font-weight: bold;
  border: 1px solid transparent;
  background: transparent;
  padding: 4px 8px;
  border-radius: 4px;
  outline: none;
}
.explore-title-input:hover, .explore-title-input:focus { border-color: var(--border-strong); background: var(--bg-card); }
.explore-description-input {
  width: 100%;
  font-size: 13px;
  color: var(--fg-muted);
  border: 1px solid transparent;
  background: transparent;
  padding: 3px 8px;
  border-radius: 4px;
  outline: none;
}
.explore-description-input:hover, .explore-description-input:focus { border-color: var(--border-strong); background: var(--bg-card); }
.explore-description-display { font-size: 13px; color: var(--fg-muted); margin: 0; padding: 0 8px; }
.explore-title-actions { display: flex; gap: 8px; align-items: center; padding: 4px 8px; }
.explore-btn-sm { font-size: 12px; padding: 3px 10px; }
.explore-btn-shared { background: var(--bg-accent-tint-hover); color: var(--brand-blue-hover); border-color: var(--bg-accent-tint-hover); }
.explore-share-url {
  font-size: 11px;
  padding: 3px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  background: var(--bg-muted);
  color: var(--fg-text);
  width: 300px;
  cursor: pointer;
}

/* Parameter panel */
.explore-parameters {
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 10px;
}

.explore-parameters-hidden {
  display: none;
}

.explore-readonly-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 16px;
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 10px;
}

.explore-readonly-summary-item {
  min-width: 0;
}

.explore-readonly-summary-label {
  display: block;
  color: var(--fg-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.explore-readonly-summary-value {
  display: block;
  color: var(--fg-text);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .explore-title {
    font-size: 20px;
    max-width: calc(100vw - 32px);
    margin-left: auto;
    margin-right: auto;
  }

  .explore-readonly-summary {
    grid-template-columns: 1fr;
  }
}

.param-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.param-row-options {
  margin-top: 10px;
  align-items: flex-end;
}

.param-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.param-group > label {
  font-weight: 600;
  font-size: 13px;
  color: var(--fg-text);
}

.param-group-area {
  flex: 1;
  min-width: 280px;
}

.param-group-time {
  flex: 0 0 auto;
  min-width: 360px;
}

.tz-label {
  font-weight: normal;
  font-size: 11px;
  color: var(--fg-muted);
}

.param-actions {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin-left: auto;
}

.explore-input {
  padding: 6px 10px;
  border: 1px solid var(--border-default);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-card);
}

.explore-input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.explore-input-narrow {
  width: 100px;
}

.explore-input-datetime {
  width: 170px;
}

.explore-btn {
  padding: 7px 16px;
  border: 1px solid var(--border-default);
  border-radius: 4px;
  background: var(--bg-card);
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.explore-btn:hover {
  background: var(--border-soft);
}

.explore-btn-primary {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}

.explore-btn-primary:hover {
  background: var(--brand-blue-hover);
}

/* Date/time inputs */
.time-inputs {
  display: flex;
  gap: 12px;
}

.time-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.time-field > label {
  font-size: 11px;
  color: var(--fg-muted);
  min-height: 20px;
  display: flex;
  align-items: center;
}

/* Time mode toggle (To / + Duration) */
.time-end-header {
  display: flex;
  gap: 0;
  min-height: 20px;
  align-items: center;
}

.time-mode-btn {
  padding: 2px 10px;
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  font-size: 11px;
  cursor: pointer;
  color: var(--fg-soft);
}

.time-mode-btn:first-child {
  border-radius: 3px 0 0 3px;
}

.time-mode-btn:last-child {
  border-radius: 0 3px 3px 0;
  border-left: none;
}

.time-mode-btn.active {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}

.time-mode-btn:not(.active):hover {
  background: var(--border-soft);
}

/* Duration inputs */
.duration-group {
  display: flex;
  gap: 2px;
  align-items: center;
}

.explore-input-dur {
  width: 48px;
  padding: 6px 2px;
  border: 1px solid var(--border-default);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-card);
  text-align: center;
  -moz-appearance: textfield;
}

.explore-input-dur::-webkit-outer-spin-button,
.explore-input-dur::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.explore-input-dur:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.dur-unit {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-muted);
  margin-right: 6px;
}

.dur-unit:last-child {
  margin-right: 0;
}

/* Date validation error — keep red literal in light; dark gets lighter red for contrast */
.time-error {
  font-size: 11px;
  color: #DC2626;
  margin-top: 2px;
}
:root.dark .time-error { color: #FCA5A5; }

.input-error {
  border-color: #DC2626 !important;
}
:root.dark .input-error { border-color: #FCA5A5 !important; }

/* Area selector */
.area-selector {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.area-mode-tabs {
  display: flex;
  gap: 0;
}

.area-mode-tab {
  padding: 5px 10px;
  border: 1px solid var(--border-default);
  border-right: none;
  background: var(--bg-muted);
  font-size: 12px;
  cursor: pointer;
  color: var(--fg-soft);
  white-space: nowrap;
}

.area-mode-tab:first-child {
  border-radius: 3px 0 0 3px;
}

.area-mode-tab:last-child {
  border-radius: 0 3px 3px 0;
  border-right: 1px solid var(--border-default);
}

.area-mode-tab:hover {
  background: var(--bg-muted-hover);
}

.area-mode-tab.active {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}

/* Indicator dot for tabs with saved/remembered state */
.area-mode-tab.has-state::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-blue);
  margin-left: 5px;
  vertical-align: middle;
}
.area-mode-tab.active.has-state::after {
  background: rgba(255, 255, 255, 0.8);
}

.area-tool-btn {
  padding: 4px 10px;
  border: 1px solid var(--border-default);
  border-radius: 3px;
  background: var(--bg-card);
  font-size: 12px;
  cursor: pointer;
}

.area-tool-btn:hover {
  background: var(--bg-muted-hover);
}

.area-tool-btn.active {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}

.area-bb-row {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.area-bb-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-muted);
  min-width: 12px;
  text-align: right;
}

.area-bb-input {
  width: 80px;
  padding: 4px 6px;
  border: 1px solid var(--border-default);
  border-radius: 3px;
  font-size: 12px;
  font-family: inherit;
}

.area-bb-input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* Hide number input spinners for cleaner look */
.area-bb-input::-webkit-outer-spin-button,
.area-bb-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.area-bb-input[type=number] {
  -moz-appearance: textfield;
}

.area-selection-info {
  font-size: 12px;
  color: var(--fg-text);
  background: var(--bg-accent-tint);
  padding: 4px 8px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.area-selection-redraw {
  font-size: 11px;
  color: var(--brand-blue);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  font-family: inherit;
  margin-left: auto;
}
.area-selection-redraw:hover {
  color: var(--brand-blue-hover);
}

.area-selection-clear {
  cursor: pointer;
  color: var(--fg-faint);
  font-weight: bold;
}

.area-selection-clear:hover {
  color: #C00;
}
:root.dark .area-selection-clear:hover { color: #FCA5A5; }

/* Area browser modal */
.area-browser-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.area-browser-content {
  background: var(--bg-card);
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.area-browser-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.area-browser-header h3 {
  margin: 0;
  font-size: 18px;
}

.area-browser-close {
  font-size: 24px;
  cursor: pointer;
  color: var(--fg-faint);
  line-height: 1;
}

.area-browser-close:hover {
  color: var(--fg-text);
}

.area-browser-filter {
  padding: 8px 16px;
  border-bottom: 1px solid var(--bg-muted);
}

.area-browser-filter-row {
  display: flex;
  gap: 8px;
}

.area-browser-search {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid var(--border-default);
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  min-width: 0;
}

.area-browser-search:focus {
  outline: none;
  border-color: var(--brand-blue);
}

.area-browser-state-select {
  padding: 6px 8px;
  border: 1px solid var(--border-default);
  border-radius: 4px;
  font-size: 13px;
  background: var(--bg-card);
  cursor: pointer;
}

.area-browser-state-select:focus {
  outline: none;
  border-color: var(--brand-blue);
}

.area-browser-list {
  overflow-y: auto;
  flex: 1;
}

.area-browser-type {
  border-bottom: 1px solid var(--bg-muted);
}

.area-browser-type-header {
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.area-browser-type-header:hover {
  background: var(--bg-muted);
}

.area-browser-type-arrow {
  font-size: 8px;
  display: inline-block;
  transition: transform 0.15s;
  color: var(--fg-faint);
}

.area-browser-type.expanded .area-browser-type-arrow {
  transform: rotate(90deg);
}

.area-browser-type-name {
  font-weight: 500;
}

.area-browser-type-count {
  font-size: 11px;
  color: var(--fg-faint);
  margin-left: auto;
}

.area-browser-areas {
  background: var(--bg-muted);
  max-height: 300px;
  overflow-y: auto;
}

.area-browser-area-item {
  padding: 5px 12px 5px 28px;
  cursor: pointer;
  font-size: 12px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

.area-browser-area-item:hover {
  background: var(--bg-accent-tint);
}

.area-browser-area-name {
  flex: 1;
}

.area-browser-area-state {
  font-size: 10px;
  color: var(--fg-muted);
  background: var(--bg-muted-hover);
  padding: 1px 4px;
  border-radius: 2px;
}

.area-browser-loading {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.area-browser-empty {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--fg-faint);
  font-style: italic;
}

.area-browser-error {
  padding: 12px 16px;
  font-size: 12px;
  color: #C00;
}
:root.dark .area-browser-error { color: #FCA5A5; }

/* Map */
.explore-map-container {
  position: relative;
  margin-bottom: 10px;
}

.explore-map {
  width: 100%;
  height: 500px;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  background: #dae8f5;  /* light-water placeholder, only flashes briefly before tiles load */
}
:root.dark .explore-map { background: var(--bg-muted); }

.explore-overlays {
  display: flex;
  gap: 12px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--fg-soft);
  flex-wrap: wrap;
  align-items: center;
}

.explore-overlays label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
}

.overlay-label {
  font-weight: 600;
}

/* Gauge filters — visually matches the overlay row above. */
.explore-gauge-filters {
  display: flex;
  gap: 12px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--fg-soft);
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
}
.explore-gauge-filters label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 4px;
  border-radius: 3px;
}
.gauge-filter-label { font-weight: 600; }
.gauge-filter-group {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.gauge-filter-group[data-title]::before {
  content: attr(data-title);
  color: var(--fg-muted);
  font-style: italic;
  margin-right: 4px;
}

.explore-colourbar {
  text-align: center;
  background: var(--bg-muted);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 2px 0;
}
:root.dark .explore-colourbar {
  background: #f8fafc;
  border-color: #d0d7de;
}

.explore-colourbar img { max-width: 100%; }

.explore-terrain-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  padding: 4px 10px;
  flex-wrap: wrap;
}

/* Flatten the shared _map_layer_checkboxes partial into the compact
   horizontal bar that sits above the map on this page. The partial is
   normally used inside a sidebar (vertical). */
.explore-terrain-controls .map-control-section {
  padding: 0;
  border: 0;
  margin: 0;
}
.explore-terrain-controls .layers-container {
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
}
.explore-terrain-controls .layers-row {
  width: auto;
}
.explore-terrain-controls .layers-row > div {
  width: auto !important;
  justify-content: flex-start !important;
}
.explore-terrain-controls .neo label {
  padding: 4px 8px;
  font-size: 12px;
}
.explore-terrain-controls #terrain_exaggeration_container {
  flex: 0 0 auto !important;
  max-width: 200px;
}
.explore-terrain-controls #terrain_exaggeration {
  min-width: 80px;
  width: 100px;
}

.explore-overlay-opacity {
  display: flex;
  align-items: center;
  gap: 4px;
  border-left: 1px solid var(--border-default);
  padding-left: 14px;
}

.overlay-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 4px 10px 0;
  font-size: 11px;
  color: var(--fg-text);
}

.overlay-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.overlay-swatch {
  display: inline-block;
  width: 20px;
  height: 3px;
  border-radius: 1px;
}

.overlay-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--brand-blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
}

/* Radar controls overlaid on explore map — positioned inside explore-map-container, above the overlays bar */
.explore-radar-controls {
  position: absolute;
  z-index: 4;
  pointer-events: none;
}
.explore-radar-controls .animator-control,
.explore-radar-controls input[type="range"] {
  pointer-events: auto;
}

/* During draw mode, disable all marker interaction so clicks reach the canvas and force crosshair cursor */
.explore-map.drawing-mode .maplibregl-marker {
  pointer-events: none;
}
.explore-map.drawing-mode,
.explore-map.drawing-mode .maplibregl-canvas-container,
.explore-map.drawing-mode .maplibregl-canvas {
  cursor: crosshair !important;
}

/* Draw instruction overlay on map */
.draw-instruction {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 64, 175, 0.9);
  color: #fff;
  text-align: center;
  padding: 6px 16px;
  font-size: 13px;
  border-radius: 4px;
  z-index: 5;
  pointer-events: none;
  white-space: nowrap;
}
.explore-radar-controls.position-controls {
  left: 10px;
  bottom: auto;
  top: 460px;
}
.explore-radar-controls.speed-controls {
  right: 10px;
  bottom: auto;
  top: 460px;
}
.explore-radar-controls.current-info {
  bottom: auto;
  top: 420px;
}

@media (max-width: 768px) {
  .explore-radar-controls.position-controls {
    top: 310px;
  }
  .explore-radar-controls.speed-controls {
    top: 310px;
  }
  .explore-radar-controls.current-info {
    top: 270px;
  }
}

/* Radar info in overlays bar */
.radar-info {
  font-size: 12px;
  color: var(--fg-soft);
  margin-left: auto;
}

/* Results */
.explore-results {
  margin-top: 10px;
}

.explore-summary {
  background: var(--bg-accent-tint);
  border: 1px solid var(--bg-accent-tint-hover);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 10px;
}

.explore-downloads {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

/* Graph tabs */
.graph-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-subtle);
  margin-bottom: 10px;
}

.graph-tab {
  padding: 8px 16px;
  cursor: pointer;
  font-size: 13px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  background: transparent;
  color: var(--fg-soft);
  margin-bottom: -2px;
}

.graph-tab:hover {
  background: var(--border-soft);
}

.graph-tab.active {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  border-bottom-color: var(--bg-card);
  color: var(--fg-strong);
  font-weight: 600;
}

/* Map markers (radar location) */
.map-marker {
  background-size: contain;
  background-repeat: no-repeat;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.map-marker-radar {
  background-image: url('/images/fa/regular/dot-circle.svg');
}

.map-marker-radar-light {
  background-image: url('/images/fa/light/dot-circle.svg');
  opacity: 0.7;
}

/* Gauge popup on map */
.gauge-popup {
  font-size: 12px;
  line-height: 1.4;
}

.gauge-popup-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.gauge-popup-value {
  font-size: 16px;
  font-weight: bold;
}

/* Loading */
.explore-loading {
  text-align: center;
  padding: 40px 20px;
  font-size: 14px;
  color: var(--fg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--brand-blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.loading-spinner-sm {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error — keep red literal in light, dark gets brighter tones for contrast on near-black */
.explore-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 4px;
  padding: 12px 16px;
  color: #991B1B;
  font-size: 14px;
  margin-top: 10px;
}
:root.dark .explore-error {
  background: #450A0A;
  border-color: #7F1D1D;
  color: #FCA5A5;
}

/* Tooltip grid */
.observations-tooltip-grid-title {
  width: 100%;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
}

.observations-tooltip-grid-sub {
  width: 100%;
  text-align: center;
  font-size: 12px;
}

.observations-tooltip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
}

.observations-tooltip-grid div {
  padding: 1px;
  line-height: 1.1;
}

.observations-tooltip-grid-label, .observations-tooltip-grid-value {
  padding: 0;
  font-size: 10px;
}

/* Observations table */
#rainfall_observations_container {
  margin-top: 15px;
  overflow-x: auto;
}

.observations-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--fg-text);
}

#rainfall_observations_container #observations_table th,
#peak_intensity_container #peak_intensity_table th,
.observations-table th {
  background: var(--bg-muted);
  color: var(--fg-text);
  font-weight: 600;
  border-bottom: 2px solid var(--border-subtle);
  border-left: 0;
  border-right: 0;
  border-top: 0;
  padding: 6px 8px;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.observations-table th[aria-sort="ascending"]::after { content: " \u25B2"; font-size: 10px; color: var(--fg-muted); }
.observations-table th[aria-sort="descending"]::after { content: " \u25BC"; font-size: 10px; color: var(--fg-muted); }
.observations-table th[data-sort-default="disabled"] { cursor: default; }

#rainfall_observations_container #observations_table td,
#rainfall_observations_container #observations_table td:first-child,
#peak_intensity_container #peak_intensity_table td,
#peak_intensity_container #peak_intensity_table td:first-child,
.observations-table td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--border-subtle);
  border-left: 0;
  border-right: 0;
  border-top: 0;
  background: var(--bg-card);
  color: var(--fg-text);
  font-size: 13px;
  font-weight: normal;
}

#rainfall_observations_container #observations_table tbody tr:hover td,
#peak_intensity_container #peak_intensity_table tbody tr:hover td,
.observations-table tbody tr:hover td { background: var(--bg-accent-tint); }
.observations-table tbody tr:last-child td { border-bottom: none; }

.observations-table a { color: var(--brand-blue); text-decoration: none; }
.observations-table a:hover { text-decoration: underline; }
.observations-table img { vertical-align: middle; }
:root.dark .observations-table img { filter: invert(1) brightness(1.25); opacity: 0.82; }

/* Responsive */
@media (max-width: 768px) {
  .param-row {
    flex-direction: column;
    gap: 10px;
  }

  .param-group-time {
    min-width: 0;
    width: 100%;
  }

  .time-inputs {
    flex-direction: column;
    gap: 6px;
  }

  .param-actions {
    margin-left: 0;
    width: 100%;
  }

  .param-actions .explore-btn {
    flex: 1;
  }

  .explore-map {
    height: 350px;
  }

  .explore-overlays {
    flex-direction: column;
    gap: 4px;
  }

  .area-browser-content {
    width: 95%;
    max-height: 90vh;
  }
}
