/* Tides4Taylor component layer for the no-build frontend.
   The layout is intentionally structured around a first-screen command brief,
   then reusable card, table, chart, dialog, and empty-state primitives below it. */

:root {
  --font-sans: "Manrope", "Aptos", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --background: #f4f7f5;
  --foreground: #102024;
  --card: #ffffff;
  --card-muted: #eef4f1;
  --muted: #667a7c;
  --muted-foreground: #405457;
  --border: #dbe6e2;
  --border-strong: #b5c9c3;
  --primary: #09272d;
  --primary-foreground: #ffffff;
  --accent: #0b6f72;
  --accent-soft: #e6f5f2;
  --gold: #d99a2b;
  --gold-soft: #fff6dd;
  --warning: #a86116;
  --warning-soft: #fff3df;
  --danger: #a9413c;
  --danger-soft: #fff1ef;
  --success: #0f7b57;
  --success-soft: #e6f5ec;
  --ring: rgba(8, 39, 45, 0.16);
  --shadow-soft: 0 1px 2px rgba(8, 39, 45, 0.04), 0 14px 38px rgba(8, 39, 45, 0.08);
  --shadow-hover: 0 18px 44px rgba(8, 39, 45, 0.13);
  --radius: 8px;
}

* {
  scrollbar-width: thin;
}

body {
  background:
    linear-gradient(180deg, #eef5f2 0%, #f7faf8 44%, #e9f0ec 100%);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 39, 45, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(9, 39, 45, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 62%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 62%);
  z-index: -1;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 10px;
  z-index: 100;
  transform: translateY(-160%);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--foreground);
  padding: 8px 12px;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-top {
  grid-template-columns: auto minmax(280px, 1fr) auto;
  background: rgba(248, 252, 250, 0.88);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(8, 39, 45, 0.06);
}

.brand-lockup,
.top-nav a,
.top-actions input,
.ghost-btn,
.primary-btn {
  color: var(--foreground);
}

.brand-emblem {
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%),
    linear-gradient(135deg, #09272d, #0b6f72 60%, #d99a2b);
  color: #fff;
  box-shadow: 0 12px 30px rgba(8, 39, 45, 0.18);
}

.brand-lockup small,
.top-nav a,
.source-pill,
.eyebrow,
.brief-label,
.forecast-card dt,
.station-card span,
.microcopy {
  color: var(--muted);
}

.top-nav {
  gap: 2px;
}

.top-nav a {
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 600;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.top-nav a.active {
  background: #f5f5f5;
  border-color: var(--border);
}

.top-actions input,
.ghost-btn,
.primary-btn {
  border-color: var(--border);
  background: var(--card);
  color-scheme: light;
  font-weight: 650;
}

.primary-btn {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.ghost-btn:hover,
.primary-btn:hover,
.location-tab:hover,
.forecast-card:hover,
.ui-card:hover {
  transform: translateY(-1px);
}

.icon-btn {
  display: inline-flex;
}

main {
  gap: 28px;
  padding-bottom: 40px;
}

.conditions-brief {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(4, 18, 21, 0.94) 0%, rgba(7, 33, 38, 0.84) 48%, rgba(244, 247, 245, 0.98) 100%),
    url("/assets/marsh-hero.jpg") center 42% / cover no-repeat;
}

.conditions-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(1180px, calc(100vw - 32px));
  width: min(1180px, calc(100dvw - 32px));
  max-width: 100%;
  margin-inline: auto;
  padding: clamp(16px, 3vw, 34px) 0 clamp(24px, 4vw, 46px);
}

.section-shell,
.app-footer {
  width: min(1180px, calc(100vw - 32px));
  width: min(1180px, calc(100dvw - 32px));
  max-width: 100%;
  margin-inline: auto;
}

.app-frame,
main,
.conditions-brief,
.conditions-shell,
.section-shell {
  min-width: 0;
}

.section-shell {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  scroll-margin-top: 92px;
}

.section-heading {
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(9, 39, 45, 0.08);
  padding-bottom: 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  letter-spacing: 0;
  color: var(--foreground);
}

.section-subtitle {
  display: block;
  max-width: 58ch;
  color: var(--muted-foreground);
  font-size: 0.86rem;
  line-height: 1.35;
}

.eyebrow {
  margin: 0 0 3px;
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.inverse {
  color: rgba(248, 250, 249, 0.7);
}

.source-pill,
.ui-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted-foreground);
  padding: 3px 9px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.ui-badge.go,
.ui-badge.success {
  border-color: rgba(4, 120, 87, 0.22);
  background: var(--success-soft);
  color: var(--success);
}

.ui-badge.selective,
.ui-badge.warning {
  border-color: rgba(180, 83, 9, 0.22);
  background: var(--warning-soft);
  color: var(--warning);
}

.ui-badge.hold,
.ui-badge.danger {
  border-color: rgba(185, 28, 28, 0.18);
  background: var(--danger-soft);
  color: var(--danger);
}

.location-tabs {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(5, 23, 27, 0.36);
  padding: 4px;
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(5, 18, 21, 0.14);
  scrollbar-width: none;
}

.location-tabs::-webkit-scrollbar {
  display: none;
}

.location-tab {
  border-color: transparent;
  border-radius: 6px;
  background: transparent;
  color: #f7fbf9;
  box-shadow: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.location-tab.active {
  border-color: rgba(255, 255, 255, 0.72);
  background: var(--card);
  color: var(--foreground);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.location-tab:not(.active) span {
  color: rgba(247, 251, 249, 0.78);
}

.ui-card,
.brief-card,
.loading-card,
.forecast-card,
.intel-card,
.station-card,
.insight-card,
.satellite-panel,
.hourly-table,
.timeline-board {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--foreground);
  box-shadow: none;
  backdrop-filter: blur(16px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ui-card:hover,
.forecast-card:hover,
.timeline-board:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
}

.brief-grid {
  grid-template-columns: minmax(320px, 1.35fr) repeat(3, minmax(190px, 0.75fr));
  gap: 12px;
}

.conditions-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.82fr);
  grid-template-areas:
    "decision live"
    "actions actions";
  gap: 14px;
  align-items: stretch;
}

.brief-card.primary {
  grid-row: auto;
  background: var(--card);
}

.conditions-grid .brief-card {
  min-width: 0;
  padding: clamp(16px, 2vw, 24px);
}

.conditions-card {
  grid-area: decision;
  min-height: 0;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(5, 22, 26, 0.98), rgba(8, 48, 54, 0.96) 56%, rgba(8, 88, 87, 0.9)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, 42px 42px;
  color: #f8faf9;
  box-shadow: 0 28px 70px rgba(4, 18, 21, 0.28);
}

.brief-card.primary.conditions-card {
  grid-row: auto;
  min-height: 0;
  background:
    linear-gradient(145deg, rgba(5, 22, 26, 0.98), rgba(8, 48, 54, 0.96) 56%, rgba(8, 88, 87, 0.9)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, 42px 42px;
}

.conditions-card h1,
.conditions-card p,
.conditions-card .decision-reason {
  color: inherit;
}

.conditions-card h1 {
  max-width: 11ch;
  margin: 8px 0 6px;
  color: #ffffff;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 0.98;
}

.command-topline {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.conditions-title > p:last-child {
  max-width: 54ch;
  margin: 0;
  color: rgba(248, 250, 249, 0.82);
  font-size: clamp(0.95rem, 1.4vw, 1.12rem);
}

.command-answer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}

.answer-block {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px;
}

.answer-block span,
.confidence-row span {
  display: block;
  color: rgba(248, 250, 249, 0.64);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.answer-block strong {
  display: block;
  margin: 3px 0;
  color: #ffffff;
  font-size: clamp(0.94rem, 1.3vw, 1.1rem);
  line-height: 1.12;
}

.answer-block p {
  margin: 0;
  color: rgba(248, 250, 249, 0.9);
  font-size: 0.82rem;
  line-height: 1.32;
}

.answer-block.primary {
  border-color: rgba(242, 196, 107, 0.34);
  background: rgba(242, 196, 107, 0.12);
}

.answer-block.warning {
  border-color: rgba(217, 154, 43, 0.32);
  background: rgba(217, 154, 43, 0.1);
}

.confidence-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.confidence-row > span {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.82rem;
}

.score-orb.compact {
  width: 98px;
  height: 98px;
  border-color: rgba(255, 255, 255, 0.24);
  background:
    conic-gradient(from 180deg, #f6c453 calc((var(--score, 70) / 100) * 1turn), rgba(255, 255, 255, 0.22) 0),
    rgba(255, 255, 255, 0.1);
  color: #f8faf9;
}

.score-orb.compact::before {
  background: rgba(8, 26, 29, 0.94);
}

.score-orb.compact strong,
.score-orb.compact span {
  color: #f8faf9;
}

.freshness-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.freshness-item {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px;
}

.freshness-item strong,
.freshness-item small {
  display: block;
  overflow-wrap: anywhere;
}

.freshness-item strong {
  margin-top: 6px;
  color: rgba(248, 250, 249, 0.86);
  font-size: 0.78rem;
  line-height: 1.25;
}

.freshness-item small {
  color: rgba(248, 250, 249, 0.58);
  font-size: 0.72rem;
}

.live-card {
  grid-area: live;
  display: grid;
  align-content: start;
  gap: 14px;
  border-color: rgba(9, 39, 45, 0.16);
  background: rgba(255, 255, 255, 0.96);
}

.live-card-header {
  display: grid;
  gap: 3px;
}

.live-card-header strong {
  color: var(--foreground);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1;
}

.live-card-header small,
.station-note {
  color: var(--muted-foreground);
}

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

.condition-metric {
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fbfdfc, #f4f8f6);
  padding: 12px;
}

.condition-metric span,
.condition-metric small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.condition-metric strong {
  display: block;
  margin: 3px 0;
  color: var(--foreground);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.05;
}

.station-note {
  margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.conditions-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.action-card {
  min-height: 176px;
  padding: 15px;
}

.action-card strong {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 8px 0 6px;
  color: var(--foreground);
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  line-height: 1.12;
}

.action-card.warning {
  border-color: rgba(168, 97, 22, 0.28);
  background: linear-gradient(180deg, #fffaf0, #fff4df);
}

.best-plan-card {
  border-color: rgba(15, 123, 87, 0.24);
  background: linear-gradient(180deg, #fbfffd, #eefaf4);
}

.action-card small {
  display: block;
  color: var(--muted-foreground);
  font-weight: 650;
  line-height: 1.35;
}

.plan-list,
.location-read-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
}

.plan-list li {
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  list-style: none;
}

.plan-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.plan-list strong,
.location-read strong {
  color: var(--foreground);
  font-size: 0.9rem;
}

.plan-list span,
.location-read span,
.location-read p,
.location-read small {
  color: var(--muted-foreground);
  font-size: 0.8rem;
  line-height: 1.3;
}

.location-read {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 8px;
}

.location-read.selected {
  border-color: rgba(11, 111, 114, 0.3);
  background: var(--accent-soft);
}

.location-read p {
  margin: 4px 0 2px;
}

.copy-trip-btn {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
}

.decision-card h1 {
  margin: 10px 0 6px;
  color: var(--foreground);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.decision-card p {
  color: var(--muted-foreground);
}

.decision-hero {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.score-orb {
  position: relative;
  isolation: isolate;
  flex: 0 0 auto;
  width: 116px;
  height: 116px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background:
    conic-gradient(from 180deg, #0a0a0a calc((var(--score, 70) / 100) * 1turn), #e5e5e5 0),
    var(--card);
  color: var(--foreground);
  box-shadow: none;
}

.score-orb::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  background: var(--card);
  z-index: -1;
}

.score-orb strong {
  color: var(--foreground);
  font-size: 2.25rem;
}

.score-orb span {
  color: var(--muted);
}

.score-chart {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e5e5;
}

.score-chart span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0a0a0a, #0f766e);
}

.forecast-card .score-chart {
  margin: 4px 0 8px;
}

.decision-reason {
  margin-top: 14px;
  max-width: 64ch;
}

.cta-card strong {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--foreground);
}

.cta-card p,
.brief-card p,
.forecast-card small,
.station-card p,
.insight-card p {
  color: var(--muted-foreground);
}

.forecast-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 10px;
}

.forecast-card {
  min-height: 218px;
  border-top: 4px solid transparent;
  color: var(--foreground);
  text-align: left;
  scroll-snap-align: start;
}

.forecast-card.selected {
  border-color: var(--border-strong);
  border-top-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(9, 39, 45, 0.08), var(--shadow-soft);
}

.forecast-card.good,
.forecast-card.excellent {
  border-top-color: var(--success);
}

.forecast-card.average {
  border-top-color: var(--gold);
}

.forecast-card.poor {
  border-top-color: var(--danger);
}

.forecast-card > strong {
  color: var(--foreground);
  font-size: 2.4rem;
  letter-spacing: 0;
}

.forecast-card dl,
.station-card dl {
  border-color: var(--border);
}

.forecast-card dt {
  color: var(--muted-foreground);
}

.forecast-card dd {
  color: var(--foreground);
  font-weight: 750;
}

.timeline-shell {
  border: 0;
}

.timeline-legend {
  color: var(--muted-foreground);
}

.timeline-board {
  background:
    linear-gradient(90deg, rgba(9, 39, 45, 0.06) 1px, transparent 1px) 0 0 / 12.5% 100%,
    linear-gradient(180deg, #fbfdfc 0%, #f3f8f6 58%, #eef6f3 100%);
  min-height: 440px;
}

.tide-svg path {
  stroke: var(--accent);
  stroke-width: 4;
  filter: none;
}

.timeline-source-state {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 168px;
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: rgba(244, 248, 246, 0.92);
  color: var(--muted-foreground);
  padding: 14px;
  text-align: center;
  overflow-wrap: anywhere;
}

.timeline-source-state strong {
  color: var(--foreground);
  font-size: 0.92rem;
}

.timeline-source-state span {
  font-size: 0.78rem;
}

.period,
.wind-band,
.event {
  border-radius: 8px;
  box-shadow: none;
}

.event {
  color: var(--foreground);
}

.event b {
  color: var(--muted-foreground);
}

.period.major {
  border: 1px solid rgba(217, 154, 43, 0.34);
  background: #fff6dd;
  color: #5f3d0a;
}

.period.best-window {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.period.minor,
.wind-band {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(15, 118, 110, 0.2);
}

.period {
  box-shadow: 0 1px 0 rgba(9, 39, 45, 0.06);
}

.event.tide {
  min-width: 84px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 5px 7px;
}

.event.tide.high::before {
  background: var(--accent);
}

.event.tide.low::before {
  background: var(--gold);
}

.wind-band {
  background: #eef6f3;
  color: var(--foreground);
}

.event.tide.unavailable {
  min-width: 124px;
  color: var(--warning);
}

.event.tide.unavailable::before {
  background: var(--warning);
}

.event.tide.unavailable b {
  color: var(--warning);
}

.timeline-tip {
  border: 1px solid var(--border);
  background: #0a0a0a;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.now-marker {
  position: absolute;
  top: 8px;
  bottom: 28px;
  z-index: 5;
  width: auto;
  border-left: 2px solid var(--danger);
  background: transparent;
  color: var(--danger);
  font-size: 0.72rem;
  font-weight: 850;
  padding-left: 6px;
  transform: translateX(-1px);
}

.split-section,
.notes-layout {
  gap: 18px;
}

.intel-grid,
.station-grid {
  gap: 10px;
}

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

.station-map-shell {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.station-map-header {
  display: flex;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
}

.station-map-header strong {
  display: block;
  color: var(--foreground);
  font-size: 1.25rem;
  line-height: 1.1;
}

.station-map-header small {
  max-width: 34rem;
  color: var(--muted-foreground);
  text-align: right;
}

.station-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 12px;
  align-items: stretch;
}

.station-map-canvas {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(8, 68, 74, 0.75), rgba(9, 103, 112, 0.5)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 32px),
    #0b6f72;
  isolation: isolate;
}

.google-map-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.9) contrast(0.95);
}

.google-map-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9, 39, 45, 0.08), rgba(9, 39, 45, 0.18));
}

.map-band {
  position: absolute;
  pointer-events: none;
}

.map-band.marsh {
  border-radius: 999px;
  background: rgba(145, 164, 111, 0.6);
  box-shadow: inset 0 0 0 1px rgba(9, 39, 45, 0.16);
}

.map-band.marsh.one {
  width: 52%;
  height: 16%;
  left: -8%;
  top: 18%;
  transform: rotate(-14deg);
}

.map-band.marsh.two {
  width: 62%;
  height: 14%;
  right: -12%;
  top: 39%;
  transform: rotate(-18deg);
}

.map-band.channel {
  width: 78%;
  height: 8px;
  left: 8%;
  top: 58%;
  border-radius: 999px;
  background: rgba(4, 40, 46, 0.34);
  transform: rotate(-18deg);
}

.range-ring {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.44);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ring-one {
  width: 42%;
  aspect-ratio: 1;
}

.ring-two {
  width: 78%;
  aspect-ratio: 1;
}

.station-reference {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(9, 39, 45, 0.86);
  color: #fff;
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
}

.station-marker {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--foreground);
  padding: 5px 8px 5px 6px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  box-shadow: 0 8px 22px rgba(5, 28, 32, 0.24);
  transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px)));
  cursor: pointer;
}

.station-marker span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
}

.station-marker.live span {
  background: var(--success);
}

.station-marker.quiet {
  opacity: 0.82;
}

.station-marker.selected {
  border-color: var(--gold);
  background: #fff8e8;
  box-shadow: 0 0 0 3px rgba(217, 154, 43, 0.22), 0 10px 24px rgba(5, 28, 32, 0.28);
}

.station-map-detail {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f8fbfa;
  padding: 14px;
}

.station-map-detail-inner {
  display: grid;
  gap: 10px;
}

.station-map-detail strong {
  color: var(--foreground);
  font-size: 1.6rem;
  line-height: 1;
}

.station-map-detail small,
.station-map-detail p,
.station-map-detail em {
  color: var(--muted-foreground);
}

.station-map-detail dl {
  display: grid;
  gap: 8px;
}

.station-map-detail dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.station-map-detail dt {
  color: var(--muted-foreground);
  font-weight: 800;
}

.station-map-detail dd {
  margin: 0;
  color: var(--foreground);
  font-weight: 760;
  text-align: right;
}

.station-map-detail em {
  font-size: 0.78rem;
  font-style: normal;
}

.station-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.intel-card strong,
.station-card strong,
.insight-card h3 {
  color: var(--foreground);
}

.intel-card,
.station-card,
.insight-card {
  position: relative;
  overflow: hidden;
}

.intel-card::before,
.station-card::before,
.insight-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
  opacity: 0.72;
}

.wind-score-card {
  grid-column: 1 / -1;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(145deg, #09272d, #0b4b50);
  color: #f8faf9;
}

.wind-score-card span,
.wind-score-card p,
.wind-score-card small,
.wind-score-card strong {
  color: inherit;
}

.wind-score-card .score-chart {
  background: rgba(255, 255, 255, 0.2);
}

.wind-score-card strong small {
  color: rgba(248, 250, 249, 0.68);
  font-size: 0.9rem;
}

.wind-score-brief .score-chart,
.wind-score-card .score-chart {
  margin: 8px 0 10px;
}

.wind-source-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.wind-source-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto minmax(110px, 0.7fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 9px 10px;
}

.wind-source-row span {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--foreground);
  font-weight: 720;
}

.wind-source-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 650;
}

.wind-source-row strong {
  font-size: 0.95rem;
  white-space: nowrap;
}

.wind-source-row small {
  color: var(--muted-foreground);
  font-size: 0.82rem;
  text-align: right;
}

.wind-source-row.muted {
  opacity: 0.68;
}

.station-card.live {
  border-left-color: var(--success);
}

.station-card.live::before {
  background: var(--success);
}

.station-card.quiet {
  border-left-color: var(--border-strong);
}

.station-card.quiet::before {
  background: var(--border-strong);
}

.station-card.selected {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(217, 154, 43, 0.22);
}

.station-card[role="button"] {
  cursor: pointer;
}

#hourlyForecast.hourly-table {
  overflow: auto;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.ui-table {
  min-width: 0;
}

#hourlyForecast > .ui-table {
  width: 100%;
  min-width: 940px;
}

.hourly-head,
.hourly-row {
  grid-template-columns: minmax(76px, 0.7fr) minmax(230px, 2.05fr) minmax(92px, 0.85fr) minmax(112px, 1fr) minmax(128px, 1.08fr) minmax(92px, 0.85fr) minmax(120px, 1fr);
}

.hourly-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #09272d;
  color: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hourly-head span:first-child,
.hourly-row .hourly-time {
  position: sticky;
  left: 0;
  z-index: 2;
  background: inherit;
  box-shadow: 1px 0 0 var(--border);
}

.hourly-head span:first-child {
  z-index: 3;
  background: #09272d;
}

.hourly-row {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.hourly-row:hover {
  background: #f4faf8;
}

.hourly-day {
  color: #ffffff;
  background:
    linear-gradient(90deg, #09272d, #0b6f72);
  border-color: transparent;
  font-weight: 850;
}

.hourly-day::before {
  background: var(--gold);
}

.hourly-temp {
  color: var(--foreground);
}

.hourly-wind span,
.rain-chance,
.tide-rating em {
  color: var(--muted);
}

.wx-icon.cloud::before,
.wx-icon.partly::before,
.wx-icon.rain::before,
.wx-icon.storm::before {
  background: #a3a3a3;
  box-shadow: 7px -7px 0 -1px #a3a3a3, -2px -4px 0 0 #a3a3a3;
}

.wx-icon.sun::before,
.wx-icon.partly::after {
  background: #f59e0b;
}

.tide-rating {
  border-color: var(--border);
  background: #fafafa;
}

.tide-rating.high {
  border-color: rgba(4, 120, 87, 0.22);
  background: var(--success-soft);
}

.tide-rating.mid {
  border-color: rgba(15, 118, 110, 0.22);
  background: var(--accent-soft);
}

.tide-rating.low {
  border-color: rgba(180, 83, 9, 0.2);
  background: var(--warning-soft);
}

.tide-rating.unavailable {
  border-color: var(--border);
  background: #f4f7f5;
  color: var(--muted);
}

.tide-rating strong,
.tide-rating.high strong,
.tide-rating.low strong {
  color: var(--foreground);
}

.windy-section {
  scroll-margin-top: 92px;
}

.windy-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.windy-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(90deg, #f8fbfa, #edf6f3);
  padding: 10px;
}

.windy-tab {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--foreground);
  cursor: pointer;
  font-weight: 760;
  padding: 0 14px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.windy-tab:hover,
.windy-tab:focus-visible {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.windy-tab.active {
  border-color: var(--foreground);
  background: var(--foreground);
  color: var(--primary-foreground);
}

.windy-open-link {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  min-height: 38px;
  text-decoration: none;
}

.windy-frame-shell {
  position: relative;
  min-height: 440px;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), transparent 42%),
    #e5e5e5;
}

.windy-frame-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.windy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.82rem;
  font-weight: 650;
  padding: 10px 12px;
}

.satellite-panel {
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 248, 0.96));
}

.satellite-panel img {
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #09272d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.modis-day {
  border-color: var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--foreground);
}

.modis-day.active {
  border-color: var(--foreground);
  background: var(--foreground);
  color: #fff;
}

.ui-alert {
  display: grid;
  gap: 4px;
}

.ui-alert strong {
  color: var(--foreground);
}

.ui-alert.warning {
  border-color: rgba(168, 97, 22, 0.24);
  background: var(--warning-soft);
}

.ui-alert.success {
  border-color: rgba(15, 123, 87, 0.22);
  background: var(--success-soft);
}

.ui-alert.danger {
  border-color: rgba(185, 28, 28, 0.24);
  background: var(--danger-soft);
}

.ui-skeleton {
  display: grid;
  gap: 10px;
  width: 100%;
}

.ui-skeleton span {
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ededed, #f8f8f8, #ededed);
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

.ui-skeleton span:first-child {
  width: 52%;
  height: 22px;
}

.ui-skeleton span:nth-child(2) {
  width: 84%;
}

.ui-skeleton span:nth-child(3) {
  width: 66%;
}

.skeleton-card {
  min-height: 140px;
}

.timeline-skeleton,
.hourly-skeleton {
  min-height: 260px;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(4px);
}

.ui-sheet {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  width: min(420px, 100vw);
  height: 100vh;
  overflow: auto;
  border-left: 1px solid var(--border);
  background: var(--card);
  box-shadow: -20px 0 80px rgba(0, 0, 0, 0.18);
  padding: 20px;
}

.sheet-header,
.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sheet-header h2,
.dialog-header h2 {
  margin: 0;
}

.sheet-body,
.dialog-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.ui-dialog {
  width: min(720px, calc(100% - 32px));
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  color: var(--foreground);
  padding: 0;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.22);
}

.ui-dialog::backdrop {
  background: rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(4px);
}

.dialog-shell {
  padding: 20px;
}

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

.app-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
}

@keyframes shimmer {
  to {
    background-position-x: -200%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1120px) {
  .conditions-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .forecast-rail {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 28vw);
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }
}

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

  .top-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .top-actions {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .brief-grid,
  .split-section,
  .notes-layout {
    grid-template-columns: 1fr;
  }

  .brief-card.primary {
    grid-row: auto;
  }

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

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

  .wind-source-row {
    grid-template-columns: 1fr auto;
  }

  .wind-source-row small {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .conditions-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "decision"
      "live"
      "actions";
  }

  .conditions-actions {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 84vw);
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }

  .action-card {
    scroll-snap-align: start;
  }

  .conditions-card,
  .live-card {
    grid-column: auto;
    grid-row: auto;
  }

  .station-card-list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Polish layer
   Appended after the base component rules so these refinements win the
   cascade without rewriting the originals. Grouped: fixes first, then theme
   accents, then responsive adjustments at the bottom of the file.
   ========================================================================== */

/* --- Fixes ---------------------------------------------------------------- */

/* A later `.brief-card p` rule was repainting the dark hero card's paragraphs
   with the light-theme muted color — unreadable on the teal background. */
.conditions-card p {
  color: rgba(240, 248, 246, 0.86);
}

.conditions-card .answer-block span {
  color: rgba(226, 240, 236, 0.64);
}

.conditions-card .answer-block p {
  color: rgba(240, 248, 246, 0.82);
}

.conditions-card .confidence-row > span:not(.ui-badge) {
  color: rgba(240, 248, 246, 0.78);
}

/* The base `.satellite-panel img { display: block }` rule was overpowering the
   `hidden` attribute when no satellite pass exists. */
.satellite-panel img[hidden] {
  display: none !important;
}

/* Leftover dark-theme tokens that read wrong on the light board. */
.sun-marker {
  color: #8a5a12;
  background: rgba(217, 154, 43, 0.55);
}

.sun-marker.sunset {
  color: #99502b;
  background: rgba(200, 121, 63, 0.55);
}

.hour-grid {
  color: #5c7274;
  font-weight: 650;
}

.major-dot { background: var(--gold); }
.tide-dot { background: var(--accent); }
.sun-dot { background: #c8793f; }
.wind-dot { background: #7d975a; }

.insight-card li {
  border-top-color: var(--border);
}

/* The wind score card is dark, but its source rows are light sub-cards; the
   inherited white text made each row's score invisible. */
.wind-score-card .wind-source-row strong {
  color: var(--foreground);
}

.wind-score-card .wind-source-row em {
  color: var(--muted);
}

/* Intel card body text still carried a pale dark-theme color on white cards. */
.intel-card p,
.microcopy {
  color: var(--muted-foreground);
}

.wind-score-card p {
  color: inherit;
}

/* --- Theme accents -------------------------------------------------------- */

::selection {
  background: rgba(11, 111, 114, 0.2);
}

:where(a, button, input, select, [role="button"], [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

main {
  gap: 34px;
}

.top-nav a {
  color: var(--muted-foreground);
  font-size: 0.86rem;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.top-nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}

.primary-btn:hover {
  box-shadow: 0 10px 24px rgba(9, 39, 45, 0.22);
}

.ghost-btn:hover {
  border-color: var(--border-strong);
}

/* Section headings: teal eyebrow plus a short marsh-to-gold tick on the rule */
.section-heading {
  position: relative;
}

.section-heading .eyebrow {
  color: var(--accent);
}

.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 64px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

/* Soft resting shadow so the page reads layered instead of flat */
.ui-card,
.brief-card,
.forecast-card,
.intel-card,
.station-card,
.insight-card,
.satellite-panel,
.hourly-table,
.timeline-board,
.windy-panel,
.station-map-shell {
  box-shadow: 0 1px 2px rgba(8, 39, 45, 0.04), 0 8px 24px rgba(8, 39, 45, 0.05);
}

.conditions-card,
.brief-card.primary.conditions-card {
  box-shadow: 0 24px 60px rgba(4, 18, 21, 0.26);
}

.brief-kicker {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Score meters in the marsh palette instead of generic black */
.score-chart {
  background: #dfeae5;
}

.score-chart span {
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.wind-score-card .score-chart {
  background: rgba(255, 255, 255, 0.18);
}

.wind-score-card .score-chart span {
  background: linear-gradient(90deg, #d99a2b, #f6c453);
}

/* Seven-day board: tint each card by outlook and color the score to match,
   so the week reads at a glance without studying the badges. */
.forecast-card > strong {
  font-size: 2.55rem;
  line-height: 1;
}

.forecast-card.excellent,
.forecast-card.good {
  background: linear-gradient(180deg, rgba(15, 123, 87, 0.07), rgba(255, 255, 255, 0.94) 44%);
}

.forecast-card.average {
  background: linear-gradient(180deg, rgba(217, 154, 43, 0.09), rgba(255, 255, 255, 0.94) 44%);
}

.forecast-card.poor {
  background: linear-gradient(180deg, rgba(169, 65, 60, 0.07), rgba(255, 255, 255, 0.94) 44%);
}

.forecast-card.excellent > strong,
.forecast-card.good > strong {
  color: var(--success);
}

.forecast-card.average > strong {
  color: #9a6a10;
}

.forecast-card.poor > strong {
  color: var(--danger);
}

.forecast-card.selected {
  box-shadow: 0 0 0 2px rgba(11, 111, 114, 0.3), var(--shadow-soft);
}

.modis-day {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.modis-day:not(:disabled):hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.modis-day.active span {
  color: rgba(255, 255, 255, 0.72);
}

/* Cut haze and lift water-color separation in the satellite frame. True cloud
   removal is impossible for a single optical pass; the backend already picks
   the clearest satellite, this just makes the clear areas easier to read. */
.satellite-panel img {
  filter: saturate(1.22) contrast(1.12) brightness(1.03);
}

.app-footer {
  padding-top: 22px;
  font-size: 0.8rem;
}

/* Tabular numerals keep columns of readings visually aligned */
.answer-block strong,
.condition-metric strong,
.intel-card strong,
.forecast-card > strong,
.forecast-card dd,
.station-card dd,
.station-map-detail dd,
.hourly-row,
.tide-rating,
.score-orb strong {
  font-variant-numeric: tabular-nums;
}

/* The hero title is now the selected pass name; keep it authoritative but
   restrained, with the date line directly under it. */
.conditions-card h1 {
  max-width: 14ch;
  font-size: clamp(1.9rem, 3.4vw, 3.3rem);
  line-height: 1.02;
}

.conditions-title > p:last-child {
  margin-top: 2px;
  color: rgba(240, 248, 246, 0.76);
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  font-weight: 600;
}

/* --- Responsive adjustments ------------------------------------------------ */

/* Between the desktop grid and the phone layout the header actions collapsed
   into a stretched two-row grid; let them wrap naturally instead. */
@media (max-width: 980px) {
  .top-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .top-actions input {
    flex: 1 1 170px;
  }

  .top-actions button {
    flex: 0 0 auto;
  }
}

@media (max-width: 760px) {
  /* Keep the hover-dot layer aligned with the tide curve's tighter inset. */
  .tide-point-layer {
    left: 10px;
    right: 10px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .app-top {
    gap: 10px;
    padding: 10px;
  }

  .brand-lockup {
    gap: 10px;
  }

  .brand-emblem {
    width: 40px;
    height: 40px;
  }

  .brand-lockup strong {
    font-size: 0.95rem;
  }

  .top-actions input,
  .ghost-btn,
  .primary-btn {
    min-height: 44px;
  }

  .conditions-shell,
  .section-shell,
  .app-footer {
    width: min(calc(100vw - 20px), 1180px);
    width: min(calc(100dvw - 20px), 1180px);
  }

  .top-actions input {
    width: 132px;
  }

  .top-actions {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .top-actions::-webkit-scrollbar {
    display: none;
  }

  .top-actions .icon-btn {
    display: inline-flex;
  }

  .top-actions input,
  .top-actions button {
    flex: 0 0 auto;
  }

  .location-tab {
    min-width: 154px;
    min-height: 54px;
    padding: 8px 10px;
  }

  .location-tab strong {
    font-size: 0.92rem;
  }

  .location-tab span {
    font-size: 0.78rem;
  }

  .station-map-shell {
    padding: 10px;
  }

  .station-map-header {
    display: grid;
    align-items: start;
  }

  .station-map-header small {
    text-align: left;
  }

  .station-map-canvas {
    min-height: 330px;
  }

  .station-marker {
    min-height: 32px;
    padding-right: 7px;
    font-size: 0.7rem;
  }

  .conditions-card {
    min-height: 0;
    padding: 14px !important;
  }

  .command-topline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .conditions-card h1 {
    max-width: 11ch;
    font-size: clamp(1.95rem, 7vw, 2.15rem);
  }

  .conditions-title > p:last-child {
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .score-orb.compact {
    width: 78px;
    height: 78px;
  }

  .score-orb.compact strong {
    font-size: 1.6rem;
  }

  .score-orb.compact span {
    font-size: 0.72rem;
  }

  .command-answer-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 78vw);
    overflow-x: auto;
    padding-bottom: 5px;
    scroll-snap-type: x mandatory;
  }

  .answer-block {
    min-height: 128px;
    scroll-snap-align: start;
  }

  .answer-block p {
    font-size: 0.78rem;
  }

  .freshness-strip {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(168px, 62vw);
    overflow-x: auto;
    padding-bottom: 5px;
    scroll-snap-type: x mandatory;
  }

  .freshness-item {
    scroll-snap-align: start;
  }

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

  .condition-metric {
    padding: 10px;
  }

  .condition-metric strong {
    font-size: 1.05rem;
  }

  .score-orb {
    width: 96px;
    height: 96px;
  }

  .forecast-rail {
    grid-auto-columns: minmax(205px, 84vw);
  }

  .windy-toolbar {
    align-items: stretch;
  }

  .windy-tab {
    flex: 1 1 128px;
  }

  .windy-open-link {
    justify-content: center;
    width: 100%;
    margin-left: 0;
  }

  .windy-frame-shell {
    min-height: 360px;
    aspect-ratio: 4 / 5;
  }

  #hourlyForecast > .ui-table {
    min-width: 860px;
  }

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