@import url("https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Outfit:wght@300;400;600&display=swap");

:root {
  --bg-primary: #0a0e14;
  --bg-secondary: #111820;
  --bg-surface: #0c121a;
  --accent-tide: #00d4aa;
  --accent-wind: #f5a623;
  --accent-wave: #4a9eff;
  --accent-danger: #ff4757;
  --accent-go: #2ed573;
  --text-primary: #e8edf5;
  --text-secondary: #8a9bb5;
  --text-muted: #4a5568;
  --border: rgba(42, 64, 96, 0.65);
  --border-active: rgba(74, 158, 255, 0.5);
  --font-display: "Space Mono", monospace;
  --font-body: "Outfit", sans-serif;
  --panel-gap: 12px;
  --bottom-bar-height: 154px;
  /* Gap above home indicator / screen edge — keep small so the timeline sits low. */
  --bottom-bar-offset: max(6px, calc(env(safe-area-inset-bottom, 0px) + 8px));
}

#tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.tour-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 12, 0.7);
  pointer-events: auto;
}

.tour-card {
  position: fixed;
  z-index: 34;
  pointer-events: auto;
  padding: 12px;
  border: 1px solid var(--border-active);
  border-radius: 10px;
  background: rgba(12, 18, 26, 0.96);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
}

.tour-step {
  margin: 0 0 4px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  color: var(--text-secondary);
}

.tour-title {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.tour-body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.tour-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.tour-btn {
  border-radius: 6px;
  border: 1px solid var(--border);
  padding: 7px 10px;
  font-family: var(--font-body);
  font-size: 12px;
  cursor: pointer;
}

.tour-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.tour-btn-primary {
  background: rgba(74, 158, 255, 0.2);
  border-color: var(--border-active);
  color: var(--text-primary);
}

.tour-btn-secondary {
  background: rgba(12, 18, 26, 0.85);
  color: var(--text-secondary);
}

.tour-target-active {
  position: relative;
  z-index: 31 !important;
  box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.7), 0 0 0 7px rgba(74, 158, 255, 0.14);
  border-radius: 10px;
}

@media (max-width: 767px) {
  .tour-card {
    padding: 11px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
}

#app-shell {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100svh;
  overflow: hidden;
}

.map-stage {
  position: absolute;
  inset: 0;
}

#map {
  position: absolute;
  inset: 0;
  background: #060a0f;
}

.windy-canvas-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}

.windy-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.map-colorbars {
  position: absolute;
  left: 12px;
  bottom: calc(var(--bottom-bar-height) + var(--bottom-bar-offset) + 6px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(220px, calc(100vw - 28px));
  pointer-events: none;
}

.map-hover-value {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 8;
  pointer-events: none;
  transform: translate(-9999px, -9999px);
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(10, 14, 20, 0.9);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.map-colorbar {
  background: rgba(12, 18, 26, 0.9);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px 7px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}

.map-colorbar-title {
  margin-bottom: 5px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  color: var(--text-secondary);
}

.map-colorbar-ramp {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.map-colorbar-ticks {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--text-primary);
}

#map.map-fallback {
  background:
    radial-gradient(circle at 72% 22%, rgba(74, 158, 255, 0.16) 0, rgba(74, 158, 255, 0) 42%),
    linear-gradient(180deg, #0c121a 0%, #070b11 100%);
}

.glass {
  background: rgba(12, 18, 26, 0.88);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.panel {
  position: absolute;
  z-index: 5;
  width: min(320px, calc(100vw - 24px));
}

#corner-logo {
  position: absolute;
  top: 8px;
  right: var(--panel-gap);
  z-index: 9;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.98);
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.corner-logo-img {
  display: block;
  height: 42px;
  width: auto;
  object-fit: contain;
}

.utility-btn {
  min-height: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(12, 18, 26, 0.9);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0 6px;
  cursor: pointer;
}

.utility-btn:hover {
  border-color: var(--border-active);
}

.nav-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.utility-btn-inline {
  white-space: nowrap;
  min-width: 0;
  width: max-content;
  max-width: 100%;
  padding: 2px 5px;
  font-size: 9px;
  letter-spacing: 0.02em;
}

.about-modal {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: none;
}

.about-modal.is-open {
  display: block;
}

.about-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 14, 0.7);
}

.about-card {
  position: absolute;
  top: 96px;
  right: var(--panel-gap);
  width: min(420px, calc(100vw - 24px));
  max-height: calc(100dvh - 116px);
  z-index: 1;
  overflow: hidden;
}

.about-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.about-close-btn {
  margin-left: auto;
}

.about-body {
  max-height: calc(100dvh - 180px);
  overflow: auto;
  padding-right: 4px;
}

.about-body h3,
.about-body h4 {
  margin: 0 0 8px;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.about-body h3 {
  font-size: 12px;
}

.about-body h4 {
  font-size: 11px;
  color: var(--text-secondary);
}

.about-body p {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.about-body ul {
  margin: 0 0 10px;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.about-body p:last-child {
  margin-bottom: 0;
}

.about-meta {
  font-size: 12px;
  color: var(--text-muted);
}

#obs-panel {
  top: var(--panel-gap);
  left: var(--panel-gap);
}

#obs-panel .panel-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#obs-panel-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

#obs-panel .obs-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.35;
}

#obs-panel .obs-line-tide-manu,
#obs-panel .obs-line-tide-raglan {
  cursor: pointer;
}

#obs-panel .obs-line-tide-sets .obs-row-label {
  color: var(--accent-wave);
}

#obs-panel .obs-line-tide-sets.obs-clickable:hover .obs-sets-per-hr-num {
  color: var(--accent-wave);
}

#obs-panel .obs-sets-row-value {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

#obs-panel .obs-power-charge-row {
  display: inline-flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 6px;
}

#obs-panel .obs-power-scale-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1;
  letter-spacing: 0.06em;
  padding-bottom: 0;
  min-width: 0.65em;
  text-align: center;
  user-select: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

#obs-panel .obs-power-charge {
  display: inline-flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

#obs-panel .obs-power-seg {
  display: block;
  width: 5px;
  height: 16px;
  border-radius: 1px;
  background: rgba(74, 158, 255, 0.12);
  border: 1px solid rgba(74, 158, 255, 0.28);
  box-sizing: border-box;
}

#obs-panel .obs-power-seg.is-lit {
  background: linear-gradient(180deg, rgba(245, 166, 35, 0.95) 0%, rgba(255, 71, 87, 0.88) 100%);
  border-color: rgba(245, 166, 35, 0.65);
  box-shadow: 0 0 8px rgba(245, 166, 35, 0.35);
}

#obs-panel .obs-line-tide-sets.obs-clickable:hover .obs-power-seg.is-lit {
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.5);
}

#obs-panel .obs-line-tide-manu:hover .obs-row-value,
#obs-panel .obs-line-tide-raglan:hover .obs-row-value {
  color: var(--accent-tide);
}

#obs-panel .obs-line-wind:hover .obs-row-value {
  color: var(--accent-wind);
}

#obs-panel .obs-row-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

#obs-panel .obs-line-tide .obs-row-label {
  color: var(--accent-tide);
}

#obs-panel .obs-line-wind .obs-row-label {
  color: var(--accent-wind);
}

#obs-panel .obs-line-wave .obs-row-label {
  color: var(--accent-wave);
}

#obs-panel .obs-row-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

#obs-panel .obs-source-note {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--text-muted);
}

#obs-panel .obs-source-note a {
  color: var(--text-secondary);
}

#obs-panel .obs-empty {
  margin-bottom: 6px;
  padding: 8px 0 4px;
  border-bottom: 1px solid var(--border);
}

#obs-panel .obs-empty-title {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

#obs-panel .obs-empty-body {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-primary);
}

#obs-panel .obs-empty-meta {
  margin: 0;
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--text-muted);
}

#obs-panel .obs-code {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--accent-wave);
}

#obs-panel .obs-debug {
  margin: 10px 0 0;
  padding: 8px 10px;
  max-height: 180px;
  overflow: auto;
  font-family: var(--font-display);
  font-size: 10px;
  line-height: 1.35;
  color: var(--text-secondary);
  background: rgba(8, 12, 18, 0.65);
  border: 1px solid var(--border);
  border-radius: 6px;
  white-space: pre-wrap;
  word-break: break-word;
}

#nav-panel {
  top: calc(var(--panel-gap) + 64px);
  right: var(--panel-gap);
  width: min(272px, calc(100vw - 24px));
  max-height: calc(100dvh - var(--bottom-bar-height) - var(--bottom-bar-offset) - 84px);
  overflow-x: hidden;
  overflow-y: auto;
}

#bottom-bar {
  position: absolute;
  left: var(--panel-gap);
  right: var(--panel-gap);
  bottom: var(--bottom-bar-offset);
  transform: translateY(0);
  z-index: 6;
  height: var(--bottom-bar-height);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
}

#bottom-bar.glass {
  padding: 6px 10px 7px;
}

#bottom-bar .panel-header {
  margin-bottom: 2px;
  flex-shrink: 0;
}

/* Site name + model date — same Space Mono treatment */
#bottom-bar-title.bottom-bar-heading,
#bottom-bar-date.bottom-bar-heading {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-transform: none;
  line-height: 1.2;
}

#bottom-bar-title.bottom-bar-heading {
  margin: 0;
}

#bottom-bar-date.bottom-bar-heading {
  white-space: nowrap;
}

.bottom-bar-header {
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bottom-bar-title-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  min-width: 0;
  flex: 1;
}

.bottom-bar-controls {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
}

.bottom-bar-ctl {
  min-height: 36px;
  min-width: 44px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 24, 32, 0.85);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.bottom-bar-ctl:hover {
  border-color: var(--border-active);
}

.bottom-bar-ctl-icon {
  min-width: 44px;
  padding: 0;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0;
}

.bottom-bar-ctl[aria-pressed="true"] {
  border-color: var(--accent-wave);
  background: rgba(74, 158, 255, 0.2);
  color: #ffffff;
}

.bottom-bar-panel-body {
  padding: 0;
  margin: 0;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

#drawer {
  position: absolute;
  left: var(--panel-gap);
  right: var(--panel-gap);
  bottom: calc(var(--bottom-bar-height) + var(--bottom-bar-offset) + 10px);
  z-index: 7;
  height: min(55vh, 420px);
  transform: translateY(calc(100% + 12px));
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease-out;
}

#drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#drawer.drawer-station-charts {
  height: min(72vh, 420px);
}

#drawer.drawer-station-charts .panel-body {
  max-height: calc(min(72vh, 420px) - 52px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Sets-per-hour matrix — hugs content when short; caps height + scrolls body if many days */
#drawer.drawer-sets-lanes {
  height: auto;
  max-height: min(72vh, 560px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#drawer.drawer-sets-lanes .panel-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}

/* Plotly needs the chart div laid out before newPlot; loading overlays without display:none on the chart. */
.station-drawer-chart-host {
  position: relative;
  min-height: 0;
}

#drawer.drawer-station-charts .station-drawer-chart-host {
  min-height: 280px;
}

#drawer.drawer-station-charts .station-drawer-chart-host .station-drawer-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 12px;
  text-align: center;
  background: rgba(8, 12, 18, 0.94);
  border-radius: 8px;
}

#drawer.drawer-station-charts .station-drawer-chart-host .station-drawer-loading[hidden] {
  display: none !important;
}

.station-drawer-charts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 10px;
}

.station-drawer-section {
  margin: 0;
}

.station-draw-chart {
  width: 100%;
  height: min(24vh, 200px);
  min-height: 168px;
}

.station-draw-chart-spectra {
  height: min(32vh, 280px);
  min-height: 200px;
}

/* Single-panel station drawer: one chart uses most of the drawer */
.station-drawer-charts-single {
  gap: 0;
  padding-bottom: 4px;
}

.station-draw-chart-single {
  width: 100%;
  height: min(46vh, 360px);
  min-height: 260px;
}

/* Plotly often leaves a band below the trace area; pin SVG to the container height. */
.station-draw-chart-single.js-plotly-plot .plot-container,
.station-draw-chart-single.js-plotly-plot .svg-container {
  height: 100% !important;
}

.station-draw-chart-single.js-plotly-plot .main-svg {
  display: block;
}

.station-draw-chart-single.station-draw-chart-spectra {
  height: min(52vh, 400px);
  min-height: 300px;
}

/* Spectra drawer: heatmap + swell-band envelope (set proxy) */
.station-drawer-section-spectra .station-draw-chart-single.station-draw-chart-spectra {
  height: min(38vh, 320px);
  min-height: 200px;
}

.station-draw-chart-sets {
  width: 100%;
  min-height: 0;
  height: auto;
}

.drawer-spectra-note {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 6px 0 0;
  max-width: 42rem;
}

.metric-spectra-sets {
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px solid rgba(42, 64, 96, 0.45);
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
}

.metric-spectra-sets-main {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  width: 100%;
}

.metric-spectra-set-perhr {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.metric-spectra-power-charge .obs-power-charge-row {
  display: inline-flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 5px;
}

.metric-spectra-power-charge .obs-power-scale-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1;
  letter-spacing: 0.06em;
  padding-bottom: 0;
  min-width: 0.65em;
  text-align: center;
  user-select: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

.metric-spectra-power-charge .obs-power-charge {
  display: inline-flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
}

.metric-spectra-power-charge .obs-power-seg {
  width: 4px;
  height: 14px;
}

.metric-spectra-set-meta {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  line-height: 1.3;
  max-width: 100%;
}

.sets-lanes-lead {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

#drawer.drawer-sets-lanes .sets-lanes-lead {
  margin: 0 0 8px;
}

#drawer.drawer-sets-lanes .sets-lanes-lead:last-of-type {
  margin-bottom: 4px;
}

#drawer.drawer-sets-lanes .sets-matrix-wrap {
  margin-top: 6px;
}

.sets-matrix-wrap {
  margin-top: 10px;
  border: 1px solid rgba(42, 64, 96, 0.45);
  border-radius: 8px;
  background: rgba(12, 18, 26, 0.62);
  overflow-x: auto;
}

.sets-matrix-head {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: stretch;
  border-bottom: 1px solid rgba(42, 64, 96, 0.45);
  background: rgba(10, 14, 20, 0.85);
}

.sets-matrix-day-head {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-right: 1px solid rgba(42, 64, 96, 0.45);
  min-height: 22px;
}

.sets-matrix-hours {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(38px, 1fr);
}

.sets-matrix-hour {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  border-right: 1px solid rgba(42, 64, 96, 0.3);
}

.sets-matrix-body {
  display: flex;
  flex-direction: column;
}

.sets-matrix-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: stretch;
  border-bottom: 1px solid rgba(42, 64, 96, 0.28);
}

.sets-matrix-row:last-child {
  border-bottom: 0;
}

.sets-matrix-day {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 6px;
  border-right: 1px solid rgba(42, 64, 96, 0.45);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.sets-matrix-values {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(38px, 1fr);
}

.sets-matrix-cell {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(8, 12, 18, 0.35);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: rgba(8, 12, 18, 0.9);
  text-shadow: 0 0 4px rgba(232, 237, 245, 0.6);
}

.sets-matrix-cell.is-current {
  box-shadow: inset 0 0 0 2px rgba(232, 237, 245, 0.9);
}

.sets-compare-card {
  margin: 8px 0 10px;
  padding: 8px;
  border: 1px solid rgba(42, 64, 96, 0.55);
  border-radius: 8px;
  background: rgba(12, 18, 26, 0.72);
}

.sets-compare-title {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

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

.sets-compare-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid rgba(42, 64, 96, 0.35);
  border-radius: 6px;
  background: rgba(10, 14, 20, 0.75);
  padding: 6px;
}

.sets-compare-label {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sets-compare-value {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
}

.sets-compare-sub {
  font-family: var(--font-body);
  font-size: 9px;
  color: var(--text-secondary);
  line-height: 1.2;
}

.sets-compare-delta.is-up .sets-compare-value {
  color: var(--accent-go);
}

.sets-compare-delta.is-down .sets-compare-value {
  color: var(--accent-danger);
}

.sets-compare-delta.is-neutral .sets-compare-value {
  color: var(--accent-wind);
}

.sets-hourly-compare {
  margin: 0 0 10px;
  border: 1px solid rgba(42, 64, 96, 0.45);
  border-radius: 8px;
  background: rgba(12, 18, 26, 0.62);
  padding: 7px 7px 8px;
}

.sets-hourly-compare-header {
  margin: 0 0 6px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.sets-hourly-legend {
  font-size: 8px;
  color: var(--text-muted);
}

.sets-hourly-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
  gap: 4px;
}

.sets-compare-hour {
  min-width: 0;
  border: 1px solid rgba(42, 64, 96, 0.28);
  border-radius: 6px;
  padding: 4px 3px;
  background: rgba(10, 14, 20, 0.72);
}

.sets-compare-hour.is-current {
  border-color: rgba(232, 237, 245, 0.65);
  box-shadow: 0 0 0 1px rgba(232, 237, 245, 0.3) inset;
}

.sets-compare-hour-label {
  font-family: var(--font-body);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 3px;
}

.sets-compare-hour-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.sets-compare-hour-bar {
  height: 24px;
  border-radius: 4px;
  border: 1px solid rgba(8, 12, 18, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: rgba(8, 12, 18, 0.9);
  text-shadow: 0 0 4px rgba(232, 237, 245, 0.65);
}

.sets-day-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(40vh, 320px);
  overflow-y: auto;
  padding: 2px 2px 2px 0;
}

.sets-day-block {
  border: 1px solid rgba(42, 64, 96, 0.45);
  border-radius: 8px;
  background: rgba(12, 18, 26, 0.62);
  padding: 7px 7px 6px;
}

.sets-day-header {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.sets-day-tiles {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 3px;
  overflow: hidden;
  padding-bottom: 0;
}

.sets-tile {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  height: 44px;
  border-radius: 4px;
  border: 1px solid rgba(8, 12, 18, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 2px 1px;
  box-sizing: border-box;
}

.sets-tile-time {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(8, 12, 18, 0.84);
  text-shadow: 0 0 4px rgba(232, 237, 245, 0.55);
  line-height: 1;
}

.sets-tile-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: rgba(8, 12, 18, 0.92);
  text-shadow: 0 0 6px rgba(232, 237, 245, 0.75), 0 1px 2px rgba(255, 255, 255, 0.45);
  line-height: 1;
}

@media (max-width: 640px) {
  .sets-compare-grid {
    grid-template-columns: 1fr;
  }
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.panel-header-inline {
  margin-bottom: 6px;
}

.panel-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.collapse-btn {
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(17, 24, 32, 0.78);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.collapse-icon {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 150ms ease;
}

[data-collapsible].is-collapsed .panel-body {
  display: none;
}

[data-collapsible].is-collapsed .collapse-icon {
  transform: rotate(-90deg);
}

.panel-title {
  margin: 0;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  line-height: 1.2;
  color: var(--text-secondary);
}

.panel-body,
.placeholder-line,
.placeholder-panels {
  font-size: 13px;
  color: var(--text-primary);
}

.nav-label {
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  color: var(--text-muted);
}

.nav-label-spaced {
  margin-top: 14px;
}

.nav-panel-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-control-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Compact row layout for label + select (prevents nav panel stretching down). */
.nav-control-row .nav-label {
  margin: 0;
}

.nav-control-row .nav-select {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

/* Hs · wind · tide · spectra — under overlay; 2×2 on nav width */
.nav-station-readout.station-readout-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* Gutter is inside .station-metric-shell padding so clicks beside labels still hit a tile. */
  gap: 0;
  margin-top: 2px;
  align-items: stretch;
}

/* Shell fills the grid cell; padding = gutter between tiles (overlay still covers full shell). */
.nav-station-readout .station-metric-shell {
  position: relative;
  box-sizing: border-box;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 4px;
}

/* Visual card only — one transparent .station-metric-overlay button sits on top for the whole square. */
.nav-station-readout.station-readout-grid > .station-metric-shell > .metric-card {
  align-self: stretch;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  pointer-events: none;
  user-select: none;
}

/* Full-cell invisible hit target (padding + card body). */
.nav-station-readout .station-metric-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
}

.nav-station-readout .station-metric-overlay:focus-visible {
  outline: 2px solid var(--border-active);
  outline-offset: 2px;
}

.nav-station-readout .metric-card {
  min-height: 0;
}

.nav-station-readout .metric-card.metric-spectra {
  min-height: 0;
  /* Stretch with grid row so padding below the square is still this button’s hit area */
  align-self: stretch;
}

/* Tide + spectra each get a full panel row so the polar plot isn’t squeezed to half width. */
.nav-station-readout.station-readout-grid > .station-metric-shell:nth-child(3),
.nav-station-readout.station-readout-grid > .station-metric-shell:nth-child(4) {
  grid-column: 1 / -1;
}

.nav-station-readout .metric-card.metric-spectra .spectra-wrap {
  flex: 1;
  min-height: 0;
  max-height: none;
  aspect-ratio: 1 / 1;
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
}

/* Fill the square; clicks go to the wrap/button (img ignores pointer events below). */
.nav-station-readout .metric-card.metric-spectra .spectra-canvas,
.nav-station-readout .metric-card.metric-spectra .spectra-image {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(42, 64, 96, 0.45);
  pointer-events: none;
}

.tide-mini-bars.tide-mini-bars-model {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nav-select {
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  margin-top: 6px;
  color-scheme: dark;
  padding: 8px 32px 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: rgba(17, 24, 32, 0.92);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%238a9bb5' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
  appearance: none;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.nav-select:hover {
  border-color: var(--border-active);
}

.nav-select:focus {
  outline: none;
  border-color: var(--border-active);
}

.nav-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.nav-select option:disabled {
  color: var(--text-muted);
}

.placeholder-line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--text-secondary);
}

.placeholder-panels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.placeholder-panels span {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid rgba(42, 64, 96, 0.48);
  border-radius: 8px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.selected-location-label {
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.station-time-scrubber {
  margin: 0;
  padding: 0;
  border-top: none;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Bar-chart scrubber (Hs height / swell colour) — replaces range input */
.station-timeline {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 2px;
}

#station-tl-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  height: 78px;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
  position: relative;
  flex: 1;
  min-height: 78px;
}

#station-tl-scroll:active {
  cursor: grabbing;
}

#station-tl-scroll::-webkit-scrollbar {
  height: 3px;
}

#station-tl-scroll::-webkit-scrollbar-thumb {
  background: rgba(74, 158, 255, 0.28);
  border-radius: 2px;
}

.station-tl-inner {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 58px;
  min-height: 74px;
  box-sizing: content-box;
}

.station-tl-ticks {
  position: relative;
  height: 16px;
  min-height: 16px;
  margin-top: 2px;
}

.station-tl-bar {
  flex-shrink: 0;
  width: 6px;
  margin-right: 1px;
  border-radius: 2px 2px 0 0;
  cursor: pointer;
  transition: opacity 0.1s;
}

.station-tl-bar.past {
  opacity: 0.38;
}

.station-tl-bar.future {
  opacity: 0.75;
  width: 9px;
  margin-right: 0;
  transform: scaleY(1.5);
  transform-origin: bottom center;
}

.station-tl-bar.active {
  opacity: 1 !important;
  outline: 1.5px solid rgba(255, 255, 255, 0.85);
  outline-offset: 0;
}

.station-tl-bar:hover {
  opacity: 1 !important;
}

.station-day-sep {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(42, 64, 96, 0.45);
  pointer-events: none;
  z-index: 1;
}

.station-day-label {
  position: absolute;
  top: 2px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.04em;
  z-index: 2;
}

.station-tick-label {
  position: absolute;
  bottom: 1px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.03em;
}

#station-now-cursor {
  position: absolute;
  top: 6px;
  width: 1.5px;
  height: 52px;
  background: rgba(255, 255, 255, 0.72);
  pointer-events: none;
  z-index: 8;
}

#station-now-pip {
  position: absolute;
  top: -4px;
  left: -3.25px;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
}

.station-readout-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.metric-card {
  min-height: 44px;
  border: 1px solid rgba(42, 64, 96, 0.48);
  border-radius: 8px;
  padding: 8px;
  background: rgba(8, 12, 18, 0.6);
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

button.metric-card {
  appearance: none;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
}

button.metric-card::-moz-focus-inner {
  border: 0;
  padding: 0;
}

button.metric-card:focus-visible {
  outline: 2px solid var(--border-active);
  outline-offset: 2px;
}

.metric-title {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  color: var(--text-muted);
}

.metric-top-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-primary);
}

.metric-sub,
.metric-meta {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-secondary);
}

.metric-sub-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.metric-sub-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-sub-item {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.metric-sub-key {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-size: 10px;
}

.metric-sub-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-sub-unit {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 400;
}

.metric-wave .metric-sub-num {
  color: var(--accent-wave);
}

.metric-wind .metric-sub-num {
  color: var(--accent-wind);
}

.metric-wave-spread-desc {
  margin-top: 3px;
  color: var(--text-secondary);
}

.metric-compass-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wind-compass-svg {
  width: 62px;
  height: 62px;
  display: block;
  pointer-events: none;
}

.wind-compass-label {
  font-family: var(--font-body);
  font-size: 8px;
  fill: var(--text-secondary);
  letter-spacing: 0.04em;
}

.metric-wave .metric-value {
  color: var(--accent-wave);
}

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

.metric-tide .metric-value {
  color: var(--accent-tide);
}

.metric-tide-bars-wrap {
  margin-top: 1px;
}

.tide-mini-bars {
  height: 28px;
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  align-items: end;
  gap: 2px;
}

.tide-mini-sine {
  height: 28px;
  width: 100%;
  pointer-events: none;
}

.tide-mini-sine svg {
  width: 100%;
  height: 28px;
  display: block;
}

.tide-mini-bar {
  border-radius: 2px 2px 0 0;
  background: rgba(0, 212, 170, 0.45);
  border: 1px solid rgba(0, 212, 170, 0.55);
}

/* Clicks anywhere on the mini chart hit the parent <button>, not a child span. */
.nav-station-readout .tide-mini-bar {
  pointer-events: none;
}

.tide-mini-bar.is-now {
  background: rgba(0, 212, 170, 0.95);
  border-color: rgba(232, 237, 245, 0.9);
}

.tide-mini-bar.is-missing {
  height: 4px;
  background: rgba(74, 85, 104, 0.28);
  border-color: rgba(74, 85, 104, 0.4);
}

.tide-mini-empty {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--text-muted);
}

.spectra-wrap {
  min-height: 110px;
}

.spectra-canvas,
.spectra-image {
  width: 100%;
  height: 110px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: block;
}

.drawer-line {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.drawer-source-note {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-muted);
}

.drawer-source-note a {
  color: var(--text-secondary);
}

.drawer-spectra-wrap {
  margin: 8px 0 10px;
}

#drawer .spectra-canvas,
#drawer .spectra-image {
  height: min(36vh, 260px);
}

@media (max-width: 1024px) {
  #bottom-bar {
    --bottom-bar-height: 164px;
  }

  .panel {
    width: min(300px, calc(100vw - 24px));
  }
}

@media (max-width: 767px) {
  #bottom-bar.glass {
    padding: 4px 8px 3px;
  }

  #bottom-bar {
    gap: 2px;
  }

  #bottom-bar .panel-header {
    margin-bottom: 0;
  }

  .bottom-bar-header {
    gap: 4px;
  }

  #obs-panel {
    left: 8px;
    width: calc(46vw - 14px);
    min-height: 42px;
    max-height: min(64vh, 420px);
    overflow-x: hidden;
    overflow-y: auto;
  }

  #nav-panel {
    top: var(--panel-gap);
    left: calc(8px + 46vw - 14px + 2px);
    right: 54px;
    width: auto;
    min-width: 88px;
    min-height: 42px;
    max-height: min(64vh, 420px);
    overflow-x: hidden;
    overflow-y: auto;
  }

  #obs-panel.glass,
  #nav-panel.glass {
    padding: 8px 9px;
  }

  #obs-panel[data-collapsible].is-collapsed,
  #nav-panel[data-collapsible].is-collapsed {
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    overflow: hidden;
  }

  .panel-title {
    font-size: 9px;
  }

  #obs-panel-title {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--text-secondary);
  }

  .collapse-btn {
    width: 20px;
    height: 20px;
  }

  .collapse-icon {
    font-size: 10px;
  }

  #corner-logo {
    top: var(--panel-gap);
    right: 2px;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    padding: 4px 6px;
    display: flex;
    align-items: center;
  }

  .utility-btn {
    min-height: 24px;
    font-size: 9px;
    letter-spacing: 0.02em;
    padding: 0 5px;
  }

  .utility-btn-inline {
    padding: 1px 3px;
    font-size: 7px;
  }

  .nav-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
  }

  #nav-panel .panel-header {
    gap: 4px;
  }

  #nav-panel .panel-title {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .about-card {
    top: 84px;
    right: 8px;
    width: min(360px, calc(100vw - 16px));
  }

  .corner-logo-img {
    height: 28px;
  }

  #bottom-bar {
    left: 8px;
    right: 8px;
    --bottom-bar-offset: max(4px, calc(env(safe-area-inset-bottom, 0px) + 6px));
    --bottom-bar-height: 114px;
    transform: translateY(0);
    overflow-x: auto;
  }

  .bottom-bar-panel-body {
    justify-content: flex-end;
  }

  .station-time-scrubber,
  .station-timeline {
    justify-content: flex-end;
  }

  #bottom-bar-title.bottom-bar-heading,
  #bottom-bar-date.bottom-bar-heading {
    font-size: 10px;
  }

  .bottom-bar-title-block {
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
  }

  #bottom-bar-title.bottom-bar-heading {
    max-width: 48vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #bottom-bar-date.bottom-bar-heading {
    flex-shrink: 0;
  }

  .bottom-bar-ctl {
    min-height: 26px;
    min-width: 32px;
    padding: 0 6px;
    font-size: 7px;
    border-radius: 6px;
  }

  .bottom-bar-ctl-icon {
    min-width: 28px;
    font-size: 10px;
  }

  #station-tl-scroll {
    height: 54px;
    min-height: 54px;
  }

  .station-tl-inner {
    height: 40px;
    min-height: 40px;
  }

  .station-tl-ticks {
    height: 10px;
    min-height: 10px;
    margin-top: 1px;
  }

  .station-tick-label,
  .station-day-label {
    font-size: 7px;
  }

  #station-now-cursor {
    top: 3px;
    height: 35px;
  }

  .metric-card {
    min-height: 38px;
    padding: 6px;
    gap: 3px;
  }

  .metric-title {
    font-size: 9px;
  }

  .metric-value {
    font-size: 12px;
  }

  .metric-sub,
  .metric-meta,
  .metric-sub-num {
    font-size: 10px;
  }

  .metric-sub-key,
  .metric-sub-unit {
    font-size: 9px;
  }

  .selected-location-label {
    font-size: 9px;
  }

  .nav-select {
    min-height: 34px;
    padding: 6px 28px 6px 8px;
    font-size: 11px;
  }

  .nav-label {
    font-size: 9px;
  }

  #obs-panel .obs-row-label {
    font-size: 9px;
  }

  #obs-panel .obs-row-value {
    font-size: 12px;
  }

  #obs-panel .obs-empty-title {
    font-size: 10px;
  }

  #obs-panel .obs-empty-body {
    font-size: 11px;
  }

  #obs-panel .obs-empty-meta {
    font-size: 9px;
  }

  #drawer {
    left: 8px;
    right: 8px;
    bottom: calc(var(--bottom-bar-height) + var(--bottom-bar-offset) + 8px);
  }

  .placeholder-panels {
    grid-template-columns: repeat(5, minmax(96px, 1fr));
  }

  .nav-station-readout.station-readout-grid {
    grid-template-columns: 1fr;
  }

  .station-readout-grid {
    overflow-x: visible;
    padding-bottom: 4px;
  }

  .map-colorbars {
    left: 8px;
    bottom: calc(var(--bottom-bar-height) + var(--bottom-bar-offset) - 26px);
    width: min(158px, calc(100vw - 16px));
  }
}
