:root {
  color-scheme: dark;
  --bg: #03101e;
  --bg-deep: #020a14;
  --panel: rgba(9, 31, 52, .88);
  --panel-strong: #0a243c;
  --panel-border: rgba(122, 184, 226, .14);
  --text: #f3f8fc;
  --muted: #a8bbce;
  --faint: #71879c;
  --blue: #3ec9ff;
  --blue-dark: #138ad0;
  --amber: #ffb62e;
  --green: #45d58b;
  --red: #ff6d6d;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(0, 0, 0, .18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
}

body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 84% -4%, rgba(0, 143, 221, .2), transparent 34rem),
    radial-gradient(circle at -20% 36%, rgba(0, 91, 153, .16), transparent 30rem),
    linear-gradient(180deg, #020c18 0%, var(--bg) 55%, #020b15 100%);
  -webkit-font-smoothing: antialiased;
}

button, select, a { font: inherit; }
button, select { color: inherit; }
a { color: var(--blue); }
svg { display: block; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #00101d;
  background: white;
  border-radius: 8px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.a11y-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  width: min(100% - 28px, 760px);
  margin-inline: auto;
}

.app-header {
  padding-top: max(18px, env(safe-area-inset-top));
}

.brand-row,
.location-row,
.section-heading,
.generated-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}
.brand-logo {
  display: block;
  width: clamp(145px, 42vw, 225px);
  height: auto;
}

.header-actions { display: flex; align-items: center; gap: 7px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 10px;
  color: var(--muted);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(7, 28, 48, .72);
  font-size: .76rem;
  font-weight: 700;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 15%, transparent);
}
.status-pill.is-current { color: var(--green); }
.status-pill.is-stale { color: var(--amber); }
.status-pill.is-offline { color: #9eb3c6; }
.status-pill.is-error { color: var(--red); }
.status-pill.is-loading .status-dot { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.72); } }

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.icon-button:hover { background: rgba(255, 255, 255, .06); }
.icon-button:disabled { opacity: .45; cursor: wait; }
.icon-button svg { width: 23px; fill: none; stroke: var(--muted); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon-button.is-spinning svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.settings-button { flex: 0 0 auto; }
.settings-dialog {
  width: min(calc(100% - 24px), 480px);
  max-height: min(720px, calc(100dvh - 24px));
  padding: 0;
  overflow: hidden;
  color: var(--text);
  border: 1px solid rgba(122, 184, 226, .2);
  border-radius: 20px;
  background: #071c2f;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}
.settings-dialog::backdrop { background: rgba(0, 5, 11, .76); backdrop-filter: blur(3px); }
.settings-shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: inherit; }
.settings-header,
.settings-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; }
.settings-header { border-bottom: 1px solid rgba(143, 180, 207, .12); }
.settings-header h2 { margin: 0; font-size: 1.15rem; }
.settings-close { margin-right: -7px; }
.settings-content { display: grid; gap: 22px; padding: 20px 18px; overflow-y: auto; }
.settings-content fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.settings-content legend { margin-bottom: 10px; color: #dce8f1; font-size: .82rem; font-weight: 800; }
.settings-choice-list { display: grid; gap: 8px; }
.settings-unit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.settings-choice { position: relative; display: block; min-width: 0; cursor: pointer; }
.settings-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.settings-choice > span {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(143, 180, 207, .15);
  border-radius: 12px;
  background: rgba(2, 14, 25, .34);
}
.settings-choice strong { font-size: .86rem; }
.settings-choice small { color: var(--muted); font-size: .69rem; line-height: 1.35; }
.settings-choice input:checked + span { border-color: rgba(62, 201, 255, .7); background: rgba(62, 201, 255, .12); box-shadow: inset 0 0 0 1px rgba(62, 201, 255, .12); }
.settings-choice input:checked + span::after { content: "✓"; position: absolute; top: 9px; right: 11px; color: var(--blue); font-size: .8rem; font-weight: 900; }
.settings-choice input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.settings-note { margin: 0; color: var(--faint); font-size: .71rem; line-height: 1.5; }
.settings-footer { justify-content: flex-end; padding-block: 12px; border-top: 1px solid rgba(143, 180, 207, .12); }
.settings-done { min-width: 90px; padding: 9px 15px; color: #00131f; border: 0; border-radius: 10px; background: var(--blue); font-size: .8rem; font-weight: 850; cursor: pointer; }
.settings-done:hover { background: #73d9ff; }

html[data-arrow-mode="flow"] .legend-direction,
html[data-arrow-mode="flow"] .timeline-inline-icon.direction { transform: rotate(180deg); }
.direction-flow-symbol { display: none; }
html[data-arrow-mode="flow"] .direction-vane-symbol { display: none; }
html[data-arrow-mode="flow"] .direction-flow-symbol { display: initial; }

.install-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  margin: 17px 0 20px;
  padding: 10px 10px 10px 12px;
  text-align: left;
  border: 1px solid rgba(67, 170, 235, .18);
  border-radius: 14px;
  background: linear-gradient(105deg, rgba(15, 54, 86, .9), rgba(7, 31, 53, .85));
  box-shadow: var(--shadow);
  cursor: pointer;
}
.install-banner[hidden] { display: none; }
.install-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--blue);
  border-radius: 10px;
  background: rgba(43, 157, 226, .16);
}
.install-icon svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.install-banner strong, .install-banner small { display: block; }
.install-banner strong { font-size: .93rem; }
.install-banner small { margin-top: 2px; color: var(--muted); font-size: .73rem; }
.install-cta { padding: 9px 11px; border-radius: 9px; background: linear-gradient(135deg, #188fd7, #0870bc); font-size: .78rem; font-weight: 750; }

.location-row {
  align-items: end;
  margin: 22px 2px 17px;
}
.eyebrow {
  margin: 0 0 5px;
  color: var(--faint);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.location-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
}
.location-picker > svg:first-child { width: 22px; flex: 0 0 auto; fill: none; stroke: var(--text); stroke-width: 2; }
.location-picker select {
  min-width: 0;
  max-width: min(65vw, 420px);
  padding: 0 32px 0 0;
  overflow: hidden;
  color: var(--text);
  border: 0;
  outline-offset: 6px;
  background: transparent;
  font-size: clamp(1.45rem, 7vw, 2rem);
  font-weight: 760;
  letter-spacing: -.04em;
  text-overflow: ellipsis;
  appearance: none;
  cursor: pointer;
}
.location-picker select:disabled { opacity: .65; cursor: wait; }
.select-chevron { position: absolute; right: 0; width: 23px; pointer-events: none; fill: none; stroke: var(--blue); stroke-width: 2; }
.coordinates { padding-bottom: 4px; color: var(--faint); font-size: .72rem; text-align: right; white-space: nowrap; }

.notice {
  margin-bottom: 12px;
  padding: 11px 13px;
  color: #ffe4aa;
  border: 1px solid rgba(255, 182, 46, .28);
  border-radius: 12px;
  background: rgba(102, 67, 7, .24);
  font-size: .82rem;
  line-height: 1.45;
}
.notice.is-error { color: #ffd5d5; border-color: rgba(255, 109, 109, .28); background: rgba(98, 22, 29, .24); }

.panel {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(16, 49, 77, .38), transparent 55%),
    var(--panel);
  box-shadow: inset 0 1px rgba(255, 255, 255, .015), var(--shadow);
}
.weather-deck { overflow: hidden; }
.hero-card { padding: 17px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.situation-context,
.hero-meta-details { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hero-meta-details { justify-content: flex-end; margin-left: auto; }
.situation-mode {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .61rem;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
}
.situation-mode.is-current { color: var(--green); background: rgba(69, 213, 139, .07); }
.situation-mode.is-forecast { color: var(--blue); background: rgba(62, 201, 255, .08); }
.hero-time { display: block; color: var(--text); font-size: .78rem; font-weight: 750; white-space: nowrap; }
.current-weather-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(60px, .65fr) minmax(68px, .78fr) minmax(72px, .82fr);
  align-items: stretch;
  gap: 0;
  margin-top: 16px;
  padding-block: 11px;
  color: var(--muted);
  border-top: 1px solid rgba(166, 203, 227, .18);
  border-bottom: 1px solid rgba(166, 203, 227, .18);
}
.current-weather-cell { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; padding-inline: 10px; }
.current-weather-cell + .current-weather-cell { border-left: 1px solid rgba(166, 203, 227, .18); }
.weather-condition { justify-content: flex-start; padding-left: 4px; }
.weather-condition-copy { display: grid; min-width: 0; line-height: 1.2; }
.weather-condition-copy strong { overflow: hidden; color: var(--text); font-size: .72rem; text-overflow: ellipsis; }
.current-weather-summary small { color: var(--faint); font-size: .56rem; font-weight: 750; white-space: nowrap; }
.current-weather-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; color: #c6d5e0; }
.current-weather-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.weather-temperature { align-items: baseline; white-space: nowrap; }
.weather-temperature strong { color: var(--text); font-size: clamp(1.45rem, 6.5vw, 2rem); line-height: 1; letter-spacing: -.045em; }
.weather-temperature > span { color: #d7e3ec; font-size: .78rem; }
.weather-rain { color: var(--blue); }
.weather-rain > span { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 0 3px; min-width: 0; }
.weather-rain strong { color: var(--text); font-size: clamp(1rem, 4.8vw, 1.45rem); line-height: 1; letter-spacing: -.025em; }
.weather-rain > span > span { color: #d7e3ec; font-size: .68rem; }
.weather-rain small { grid-column: 1 / -1; margin-top: 3px; }
.current-rain-icon { width: 22px; height: 22px; flex: 0 0 auto; fill: var(--blue); stroke: var(--blue); stroke-width: 1.2; }
.weather-water { display: grid; align-content: center; justify-items: start; gap: 2px; color: var(--blue); }
.weather-water-label { text-transform: uppercase; letter-spacing: .045em; }
.weather-water-value { display: flex; align-items: baseline; gap: 3px; white-space: nowrap; }
.weather-water-value strong { color: var(--text); font-size: clamp(1rem, 4.8vw, 1.45rem); line-height: 1; letter-spacing: -.025em; }
.weather-water-value span { color: #d7e3ec; font-size: .68rem; }
.weather-water #waterDetail { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.section-heading { align-items: flex-start; }
.section-heading h1, .section-heading h2 { margin: 0; font-size: .97rem; line-height: 1.2; letter-spacing: -.015em; }
.section-heading h1 { color: var(--muted); text-transform: uppercase; }
.section-heading a { align-self: center; font-size: .78rem; text-decoration: none; }
.data-time { color: var(--faint); font-size: .73rem; }

.wind-layout {
  display: grid;
  grid-template-columns: minmax(145px, .95fr) minmax(135px, 1.05fr);
  align-items: stretch;
  gap: clamp(10px, 4vw, 28px);
  margin-top: 14px;
}
.direction-panel { display: grid; align-content: start; min-width: 0; }
.compass {
  position: relative;
  width: min(100%, 220px);
  aspect-ratio: 1;
  margin: auto;
  border: 1px solid rgba(138, 185, 218, .18);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 85, 119, .24) 0 38%, transparent 39%), repeating-conic-gradient(from 0deg, rgba(172, 211, 237, .8) 0 1deg, transparent 1deg 10deg);
  box-shadow: inset 0 0 0 9px var(--panel-strong), inset 0 0 35px rgba(0, 0, 0, .25);
}
.compass::after {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(134, 183, 217, .2);
  border-radius: 50%;
  background: var(--panel-strong);
}
.compass-label { position: absolute; z-index: 2; color: #c0d0de; font-size: .72rem; font-weight: 750; }
.compass-label.north { top: 3px; left: 50%; transform: translateX(-50%); }
.compass-label.south { bottom: 3px; left: 50%; transform: translateX(-50%); }
.compass-label.east { right: 4px; top: 50%; transform: translateY(-50%); }
.compass-label.west { left: 4px; top: 50%; transform: translateY(-50%); }
.wind-arrow { position: absolute; z-index: 3; inset: 20%; width: 60%; transition: transform .45s ease; }
.arrow-shadow { fill: #e7f5ff; filter: drop-shadow(0 4px 7px rgba(0, 0, 0, .3)); }
.vane-shaft { fill: none; stroke: #e7f5ff; stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 4px 7px rgba(0, 0, 0, .3)); }
.vane-tail { fill: #e7f5ff; filter: drop-shadow(0 4px 7px rgba(0, 0, 0, .3)); }
.arrow-tip { fill: var(--blue); }
.flow-arrow-shaft { fill: none; stroke: #e7f5ff; stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 4px 7px rgba(0, 0, 0, .3)); }
.flow-arrow-tip { fill: none; stroke: var(--blue); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 4px 7px rgba(0, 0, 0, .3)); }
.wind-direction-readout { display: grid; justify-items: center; gap: 2px; min-width: 0; margin-top: 8px; }
.wind-direction-label { color: var(--faint); font-size: .58rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.wind-direction-values { display: flex; align-items: baseline; justify-content: center; gap: 7px; min-width: 0; white-space: nowrap; }
.wind-direction-values strong { color: var(--blue); font-size: clamp(1.75rem, 8.5vw, 2.75rem); line-height: 1; letter-spacing: -.055em; }
.wind-direction-values > span { color: rgba(168, 187, 206, .45); font-size: 1.2rem; }
.wind-direction-values #windDirection { color: var(--text); font-size: clamp(1.05rem, 5.3vw, 1.55rem); font-weight: 780; letter-spacing: -.025em; }

.wind-values { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); min-width: 0; padding-left: clamp(8px, 3vw, 20px); border-left: 1px solid rgba(166, 203, 227, .18); }
.wind-primary-row { display: grid; align-content: center; min-width: 0; padding-bottom: 7px; }
.wind-values h1,
.gust-row #gustLabel { margin: 0 0 7px; color: var(--muted); font-size: .7rem; font-weight: 800; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; }
.primary-value { display: flex; align-items: baseline; gap: 5px; margin: 0; white-space: nowrap; }
.primary-value strong { font-size: clamp(2.15rem, 10.5vw, 3.65rem); line-height: .98; letter-spacing: -.075em; }
.primary-value span { color: #dfeaf2; font-size: clamp(1.45rem, 6vw, 2rem); font-weight: 650; }
html[data-wind-unit="kmh"] .primary-value span { font-size: clamp(1rem, 4.4vw, 1.45rem); }
.gust-row { display: grid; grid-template-columns: auto auto; align-content: center; align-items: baseline; justify-content: start; gap: 0 6px; min-width: 0; padding: 7px 0; border-top: 1px solid rgba(166, 203, 227, .24); }
.gust-row #gustLabel { grid-column: 1 / -1; }
.gust-row strong { color: var(--amber); font-size: clamp(2.15rem, 10.5vw, 3.65rem); line-height: .98; letter-spacing: -.055em; }
.gust-row > span:last-child { color: #dfeaf2; font-size: clamp(1rem, 4.7vw, 1.55rem); font-weight: 650; }

.wave-summary { display: grid; align-content: center; min-width: 0; padding-top: 7px; border-top: 1px solid rgba(166, 203, 227, .24); }
.marine-label { margin: 0 0 3px; color: var(--muted); font-size: .64rem; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.marine-value { display: flex; align-items: baseline; gap: 4px; margin: 0; white-space: nowrap; }
.marine-value strong { font-size: clamp(1.45rem, 6.7vw, 2rem); line-height: 1; letter-spacing: -.045em; }
.marine-value span { color: #d7e3ec; font-size: .8rem; }
.marine-detail { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; margin: 5px 0 0; overflow: hidden; color: var(--muted); font-size: .68rem; line-height: 1.25; }
.wave-direction-indicator { display: inline-flex; align-items: center; gap: 4px; }
.wave-direction-indicator[hidden] { display: none; }
.wave-direction-indicator svg { width: 18px; height: 18px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transform-origin: center; }
.wave-direction-water { stroke: #8aaec5; }
#waveDirectionArrow { transform-box: view-box; transform-origin: center; }

.chart-card { margin-top: 0; padding: 14px 12px 8px; overflow: hidden; background: rgba(2, 14, 25, .12); }
.chart-card .section-heading { padding-inline: 4px; }
.forecast-heading-copy { display: grid; align-content: start; gap: 4px; min-width: 0; }
.chart-heading-tools { display: grid; justify-items: end; gap: 7px; }
.forecast-mode-switch { display: inline-flex; padding: 2px; border: 1px solid rgba(143, 180, 207, .16); border-radius: 9px; background: rgba(2, 14, 25, .38); }
.forecast-mode-switch button { min-height: 28px; padding: 4px 9px; color: var(--faint); border: 0; border-radius: 7px; background: transparent; font: inherit; font-size: .67rem; font-weight: 800; cursor: pointer; }
.forecast-mode-switch button.is-active { color: var(--text); background: rgba(62, 201, 255, .14); box-shadow: inset 0 0 0 1px rgba(62, 201, 255, .12); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 7px 17px; margin: 14px 6px 0 38px; color: var(--muted); font-size: .72rem; }
.chart-legend span { display: flex; align-items: center; gap: 7px; }
.legend-line { display: inline-block; width: 20px; border-top: 2px solid; }
.legend-line.wind { border-color: var(--blue); }
.legend-line.gust { border-color: var(--amber); border-top-style: dashed; }
.legend-line.model, .legend-line.model-wind, .legend-line.model-gust { border-color: #ff626d; }
.legend-line.model-gust { border-top-style: dashed; }
.legend-range { display: inline-block; width: 20px; height: 9px; border: 1px solid rgba(62, 201, 255, .48); border-radius: 3px; background: rgba(62, 201, 255, .16); }
.legend-direction { display: inline-grid; place-items: center; width: 20px; height: 18px; color: #b7cad9; font-size: 1rem; line-height: 1; }
svg.legend-direction { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.timeline-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 11px 5px 0;
}
.timeline-readout {
  display: grid;
  flex: 1 1 auto;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: .7rem;
}
.timeline-readout time {
  color: var(--text);
  font-size: .8rem;
  font-weight: 750;
}
.forecast-compact-readout { gap: 0; margin: 3px 5px 0; }
.timeline-compact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 13px;
  min-width: 0;
  padding: 5px 1px;
  border-top: 1px solid rgba(143, 180, 207, .1);
}
.timeline-compact-row:first-of-type { margin-top: 5px; }
.timeline-compact-row[hidden] { display: none; }
.timeline-compact-row > span { display: inline-flex; align-items: center; gap: 3px; min-width: 0; white-space: nowrap; }
.timeline-compact-row small { color: var(--faint); font-size: .58rem; }
.timeline-compact-row strong { font-size: .75rem; }
.timeline-wind-row .timeline-wind strong { color: var(--blue); }
.timeline-wind-row .timeline-gust strong { color: var(--amber); }
.timeline-wind-row .legend-line { width: 15px; }
.timeline-wind-row .legend-range { width: 15px; }
.timeline-inline-icon { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.timeline-inline-icon.direction { width: 15px; }
.timeline-inline-icon.rain,
.timeline-inline-icon.water { color: var(--blue); stroke: currentColor; }
.timeline-weather-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: 0 0 auto; color: #c6d5e0; }
.timeline-weather-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.timeline-rain strong,
.timeline-marine-row > span:nth-child(2) strong { color: var(--blue); }
.timeline-wave-row strong { color: var(--blue); }
.timeline-wave-row > span:last-child { color: var(--muted); }
.timeline-rain small::before { content: "("; }
.timeline-rain small::after { content: ")"; }
.timeline-marine-row small { overflow: hidden; max-width: 155px; text-overflow: ellipsis; }
.timeline-data-row { display: grid; grid-template-columns: 58px auto auto minmax(28px, auto); align-items: baseline; gap: 4px 8px; }
.timeline-data-row > span:not(.timeline-source) { white-space: nowrap; }
.timeline-source { font-weight: 750; }
.timeline-readout strong { color: var(--text); font-size: .8rem; }
.timeline-readout .timeline-gust strong { color: var(--amber); }
.timeline-readout .timeline-gust.is-range strong { color: var(--blue); }
.timeline-model-row { color: #d7868c; }
.timeline-model-row[hidden] { display: none; }
.timeline-readout .timeline-model-row strong { color: #ff7b84; }
.timeline-direction { justify-self: end; white-space: nowrap; }
.timeline-reset {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 10px;
  color: var(--blue);
  border: 1px solid rgba(62, 201, 255, .25);
  border-radius: 9px;
  background: rgba(19, 138, 208, .1);
  font-size: .69rem;
  font-weight: 750;
  cursor: pointer;
}
.timeline-reset[hidden] { display: none; }
.timeline-reset:hover { background: rgba(19, 138, 208, .2); }
.situation-reset { min-height: 28px; padding: 5px 9px; }
.forecast-chart {
  width: 100%;
  min-height: 230px;
  margin-top: 3px;
  border-radius: 10px;
  outline: none;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.forecast-chart:focus-visible { box-shadow: 0 0 0 2px rgba(62, 201, 255, .7); }
.forecast-chart svg { width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: rgba(143, 180, 207, .16); stroke-width: 1; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.chart-axis-label { fill: #a7bac9; font-size: 16px; font-weight: 650; }
.chart-grid-three-hour { stroke: rgba(143, 180, 207, .12); stroke-dasharray: 2 7; }
.chart-grid-daily { stroke: rgba(62, 201, 255, .2); stroke-dasharray: 3 6; }
.chart-time-label { font-size: 14px; }
.chart-day-label { fill: var(--blue); font-size: 12px; font-weight: 800; }
.chart-wind-area { fill: url(#windAreaOverview); }
.chart-outlook-band { fill: rgba(62, 201, 255, .15); stroke: rgba(62, 201, 255, .38); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-wind-line, .chart-gust-line { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; vector-effect: non-scaling-stroke; }
.chart-wind-line { stroke: var(--blue); }
.chart-gust-line { stroke: var(--amber); stroke-dasharray: 7 6; }
.chart-direction-arrow circle { fill: rgba(8, 32, 53, .82); stroke: rgba(143, 180, 207, .2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-direction-arrow path { fill: none; stroke: #9db3c5; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart-direction-arrow.is-selected circle { fill: rgba(62, 201, 255, .18); stroke: rgba(62, 201, 255, .7); }
.chart-direction-arrow.is-selected path { stroke: var(--blue); stroke-width: 2.2; }
.chart-selection-line { stroke: rgba(236, 248, 255, .9); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.chart-selection-handle { fill: #f3f8fc; stroke: #0a243c; stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-selection-marker { stroke: #071b2d; stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-selection-marker.wind { fill: var(--blue); }
.chart-selection-marker.gust { fill: var(--amber); }
.chart-selection-marker.model, .chart-selection-marker.model-wind { fill: #ff626d; }
.chart-selection-marker.model-gust { fill: var(--panel-strong); stroke: #ff626d; }
.chart-selection-marker.upper, .chart-selection-marker.lower { fill: #9de5ff; }
.chart-selection-interval { fill: none; stroke: rgba(214, 237, 250, .42); stroke-width: 1.4; vector-effect: non-scaling-stroke; }

.chart-weather-annotations { pointer-events: none; }
.chart-weather-band { fill: rgba(2, 14, 25, .2); stroke: rgba(143, 180, 207, .1); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-column-divider { stroke: rgba(143, 180, 207, .14); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-column-divider.is-day-boundary { stroke: rgba(62, 201, 255, .35); stroke-width: 1.5; }
.chart-weather-icon {
  overflow: visible;
  color: #c6d5e0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-temperature { fill: #dce8f1; font-size: 14px; font-weight: 750; }
.chart-rain-value path { fill: #65c8ff; stroke: none; }
.chart-rain-value text { fill: #8fc8e9; font-size: 12px; font-weight: 700; }
.chart-rain-daily text { font-size: 10px; }
.chart-rain-daily .chart-rain-amount { fill: #78b4d8; }
.forecast-chart.is-compact-chart .chart-axis-label { font-size: 18px; }
.forecast-chart.is-compact-chart .chart-time-label { font-size: 18px; }
.forecast-chart.is-compact-chart .chart-day-label { font-size: 15px; }
.forecast-chart.is-compact-chart .chart-temperature { font-size: 17px; }
.forecast-chart.is-compact-chart .chart-rain-value text { font-size: 16px; }
.forecast-chart.is-compact-chart .chart-rain-daily text { font-size: 14px; }
.weather-sun, .weather-partly-cloudy { color: #ffd15c; }
.weather-rain { color: #70c8ff; }
.weather-thunder { color: #ffd15c; }
.weather-snow { color: #dcefff; }
.weather-fog { color: #a8bac7; }
.weather-lightning { fill: #ffd15c; stroke: #ffd15c; }
.weather-rain, .weather-snow { stroke: #70c8ff; }

.chart-empty { display: grid; place-items: center; min-height: 190px; color: var(--faint); font-size: .82rem; }
.timeline-help { margin: -2px 5px 5px; color: var(--faint); font-size: .63rem; line-height: 1.35; }

.secondary-weather { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; }
.secondary-pressure { display: flex; align-items: baseline; gap: 5px; min-width: 0; color: var(--muted); font-size: .73rem; white-space: nowrap; }
.secondary-pressure > svg { align-self: center; width: 25px; flex: 0 0 auto; margin-right: 3px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.secondary-pressure strong { color: var(--text); font-size: 1.04rem; letter-spacing: -.025em; }
.secondary-detail { overflow: hidden; color: var(--faint); text-overflow: ellipsis; }
.outlook-details-link { display: inline-flex; align-items: center; gap: 3px; color: var(--blue); font-size: .72rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.outlook-details-link svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.priority-warning-slot:empty, .standard-warning-slot:empty { display: none; }

.warning-card {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 12px;
  margin-top: 12px;
  padding: 15px;
  border-color: rgba(255, 182, 46, .32);
  background: linear-gradient(110deg, rgba(94, 61, 4, .34), rgba(34, 34, 22, .72));
}
.warning-card.is-clear { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-color: rgba(69, 213, 139, .2); background: linear-gradient(110deg, rgba(11, 77, 54, .26), rgba(7, 37, 42, .72)); }
.warning-card.is-clear .warning-icon { display: block; width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(69, 213, 139, .09); }
.warning-card.is-clear .warning-icon svg, .warning-card.is-clear .warning-kicker, .warning-card.is-clear .warning-copy > p:last-child { display: none; }
.warning-card.is-clear .warning-copy h2 { color: var(--green); font-size: .78rem; font-weight: 700; }
.warning-card.is-severe { border-color: rgba(255, 109, 109, .35); background: linear-gradient(110deg, rgba(104, 24, 29, .32), rgba(42, 23, 25, .74)); }
.warning-icon { display: grid; place-items: center; color: var(--amber); }
.warning-card.is-clear .warning-icon { color: var(--green); }
.warning-card.is-severe .warning-icon { color: var(--red); }
.warning-icon svg { width: 42px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.warning-kicker { margin: 0 0 4px; color: var(--amber); font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.warning-card.is-clear .warning-kicker { color: var(--green); }
.warning-card.is-severe .warning-kicker { color: var(--red); }
.warning-copy h2 { margin: 0; font-size: 1.05rem; line-height: 1.25; }
.warning-copy > p:last-child { margin: 4px 0 0; color: var(--muted); font-size: .77rem; line-height: 1.4; }
.warning-items { grid-column: 1 / -1; margin: 4px 0 0; padding: 11px 0 0 18px; border-top: 1px solid rgba(255, 255, 255, .08); color: var(--muted); font-size: .76rem; line-height: 1.5; }

.source-panel { margin-top: 12px; padding: 16px; }
.source-list { display: grid; gap: 7px; margin-top: 14px; }
.source-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 11px; background: rgba(2, 14, 25, .36); }
.source-indicator { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.source-item.is-ok .source-indicator { background: var(--green); }
.source-item.is-warning .source-indicator { background: var(--amber); }
.source-item.is-error .source-indicator { background: var(--red); }
.source-label { min-width: 0; }
.source-label strong, .source-label small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-label strong { font-size: .78rem; }
.source-label small { margin-top: 2px; color: var(--faint); font-size: .65rem; }
.source-age { color: var(--muted); font-size: .66rem; white-space: nowrap; }
.empty-text { margin: 3px 0; color: var(--faint); font-size: .78rem; }
.generated-row { margin: 12px 0 0; padding-top: 11px; color: var(--faint); border-top: 1px solid rgba(255, 255, 255, .06); font-size: .68rem; }

.bottom-nav {
  position: sticky;
  z-index: 20;
  bottom: max(8px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(calc(100% - 20px), 740px);
  margin: 14px auto 0;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 17px;
  background: rgba(7, 27, 46, .92);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .4);
  backdrop-filter: blur(18px);
}
.bottom-nav a {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 9px 6px 8px;
  color: #8fa7bc;
  font-size: .66rem;
  font-weight: 650;
  text-decoration: none;
}
.bottom-nav a.is-active { color: var(--blue); background: rgba(42, 147, 214, .08); }
.bottom-nav a.is-active::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 2px; border-radius: 2px; background: var(--blue); }
.bottom-nav svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.site-footer { padding: 16px 6px calc(18px + env(safe-area-inset-bottom)); color: var(--faint); text-align: center; }
.site-footer p { margin: 0; font-size: .66rem; line-height: 1.5; }
.site-footer p + p { margin-top: 4px; }
.legal-links { display: flex; justify-content: center; gap: 7px; margin-top: 8px; font-size: .7rem; }
.legal-links a { color: var(--muted); text-underline-offset: 3px; }
.noscript { position: fixed; inset: auto 12px 12px; z-index: 50; padding: 12px; color: white; border-radius: 10px; background: #8a2931; }

/* Info page */
.simple-header { padding-top: max(20px, env(safe-area-inset-top)); }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .8rem; text-decoration: none; }
.back-link svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.page-title { margin: 24px 0 8px; font-size: clamp(2rem, 9vw, 3.5rem); line-height: .98; letter-spacing: -.055em; }
.page-lead { max-width: 56ch; margin: 0 0 22px; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.prose-panel { margin-bottom: 12px; padding: 18px; }
.prose-panel h2 { margin: 0 0 10px; font-size: 1.05rem; }
.prose-panel h3 { margin: 18px 0 6px; font-size: .87rem; }
.prose-panel p, .prose-panel li { color: var(--muted); font-size: .8rem; line-height: 1.65; }
.prose-panel p { margin: 7px 0; }
.prose-panel ul, .prose-panel ol { margin: 8px 0; padding-left: 19px; }
.prose-panel a { overflow-wrap: anywhere; }
.prose-panel address { color: var(--muted); font-size: .8rem; font-style: normal; line-height: 1.65; }
.prose-panel address strong { color: var(--text); }
.prose-panel[id] { scroll-margin-top: 14px; }
.pwa-info-panel { border-color: rgba(62, 201, 255, .25); }
.pwa-info-panel .section-eyebrow { margin: 0 0 5px; color: var(--blue); font-size: .67rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.pwa-platform { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px !important; padding: 6px 9px; color: #cfeeff !important; border: 1px solid rgba(62, 201, 255, .2); border-radius: 999px; background: rgba(43, 157, 226, .1); font-size: .7rem !important; font-weight: 750; }
.pwa-platform::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.pwa-install-steps { margin-bottom: 12px !important; }
.info-install-button { margin: 14px 0 10px; color: var(--text); }
.pwa-install-status { margin-top: 10px !important; color: var(--faint) !important; font-size: .7rem !important; }
.pwa-install-status.is-success { color: var(--green) !important; }
.legal-note { border-left: 3px solid var(--amber); }

/* DWD sea report */
.report-title-block { margin: 26px 2px 18px; }
.report-title-block h1 { margin: 0; font-size: clamp(2rem, 9vw, 3.5rem); line-height: .98; letter-spacing: -.055em; }
.report-title-block > p:last-child { margin: 9px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.report-area-row { margin: 20px 2px 17px; }
.report-masthead { margin-bottom: 12px; padding: 18px; }
.report-masthead h2 { margin: 0; font-size: 1.12rem; line-height: 1.35; }
.report-issuer { margin: 5px 0 15px; color: var(--muted); font-size: .78rem; }
.report-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding-top: 13px; border-top: 1px solid rgba(255, 255, 255, .07); }
.report-meta div { min-width: 0; }
.report-meta dt { color: var(--faint); font-size: .65rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.report-meta dd { margin: 4px 0 0; color: var(--text); font-size: .75rem; line-height: 1.4; }
.report-situation { margin-bottom: 12px; padding: 0 18px; }
.report-situation summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 0; cursor: pointer; list-style: none; }
.report-situation summary::-webkit-details-marker { display: none; }
.report-situation summary strong { display: block; font-size: 1rem; }
.report-situation summary svg { width: 21px; flex: 0 0 auto; fill: none; stroke: var(--blue); stroke-width: 2; transition: transform .2s ease; }
.report-situation[open] summary svg { transform: rotate(180deg); }
.report-situation > .report-text { margin: 0; padding: 0 0 18px; color: #d8e6f0; }
.report-content { display: grid; gap: 12px; }
.report-section { padding: 18px; }
.report-section h2 { margin: 0 0 13px; font-size: 1rem; }
.report-fields { margin: 0; }
.report-fields div { padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.report-fields div:first-child { padding-top: 0; border-top: 0; }
.report-fields div:last-child { padding-bottom: 0; }
.report-fields dt { margin: 0 0 4px; color: var(--blue); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.report-fields dd { margin: 0; }
.report-text {
  margin: 0;
  overflow: visible;
  color: #d8e6f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .78rem;
  line-height: 1.65;
  white-space: normal;
  overflow-wrap: anywhere;
}
.report-attribution { margin-top: 12px; }
.sea-view-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px;
}
.sea-view-switch button {
  min-height: 42px;
  padding: 8px 12px;
  color: var(--muted);
  border: 0;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}
.sea-view-switch button.is-active {
  color: var(--text);
  background: rgba(42, 147, 214, .14);
  box-shadow: inset 0 0 0 1px rgba(62, 201, 255, .18);
}
.sea-view-switch button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.sea-view[hidden] { display: none; }
.chart-selection-row { margin-top: 2px; }
.chart-selection-row .location-picker select { max-width: min(72vw, 520px); font-size: clamp(1.08rem, 5.3vw, 1.55rem); }
.weather-chart-panel { padding: 14px; overflow: hidden; }
.weather-chart-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 3px 3px 0; }
.weather-chart-heading h2 { margin: 1px 0 0; font-size: 1.05rem; }
.weather-chart-heading time { flex: 0 0 auto; margin-top: 2px; color: var(--blue); font-size: .69rem; font-weight: 800; white-space: nowrap; }
.weather-chart-description { margin: 8px 3px 13px; color: var(--muted); font-size: .74rem; line-height: 1.5; }
.weather-chart-preview {
  position: relative;
  display: block;
  width: 100%;
  min-height: 210px;
  padding: 0;
  overflow: hidden;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: #e8e8e5;
  cursor: zoom-in;
}
.weather-chart-preview:disabled { cursor: default; opacity: .55; }
.weather-chart-preview:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.weather-chart-preview img { display: block; width: 100%; height: auto; min-height: 210px; object-fit: contain; }
.weather-chart-open-hint {
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  color: white;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  background: rgba(2, 12, 24, .78);
  font-size: .68rem;
  font-weight: 800;
  backdrop-filter: blur(5px);
}
.weather-chart-preview:disabled .weather-chart-open-hint { display: none; }
.weather-chart-open-hint svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.weather-chart-meta { margin-top: 13px; }
.chart-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  color: var(--text);
  border: 0;
  background: #020c18;
}
.chart-dialog::backdrop { background: rgba(0, 5, 11, .86); }
.chart-dialog-shell { display: grid; grid-template-rows: auto auto minmax(0, 1fr); width: 100%; height: 100%; }
.chart-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(12px, env(safe-area-inset-top)) 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: #061526;
}
.chart-dialog-header h2 { margin: 1px 0 0; font-size: 1rem; }
.chart-dialog-controls { display: flex; justify-content: center; gap: 7px; padding: 8px; border-bottom: 1px solid rgba(255, 255, 255, .07); background: #061526; }
.chart-dialog-controls button {
  min-width: 42px;
  min-height: 34px;
  padding: 5px 12px;
  color: var(--text);
  border: 1px solid rgba(62, 201, 255, .2);
  border-radius: 8px;
  background: rgba(42, 147, 214, .1);
  font: inherit;
  font-size: .75rem;
  font-weight: 800;
  cursor: pointer;
}
.chart-dialog-controls button:disabled { opacity: .35; cursor: default; }
.chart-dialog-controls button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.chart-dialog-viewport {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: #182330;
  cursor: grab;
  touch-action: pan-x pan-y pinch-zoom;
}
.chart-dialog-viewport.is-dragging { cursor: grabbing; user-select: none; }
.chart-dialog-viewport:focus-visible { box-shadow: inset 0 0 0 2px var(--blue); outline: 0; }
.chart-dialog-viewport img { display: block; max-width: none; height: auto; margin: 10px auto; background: white; }

/* Measurements page */
.measurement-location-row { margin-top: 0; }
.measurement-station-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 12px; margin: 12px 0 2px; padding-top: 11px; color: var(--muted); border-top: 1px solid rgba(255, 255, 255, .07); font-size: .7rem; }
.measurement-age { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.measurement-age::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.measurement-age.is-current { color: var(--green); }
.measurement-age.is-stale { color: var(--amber); }
.measurement-age.is-error { color: var(--red); }
.measurement-chart-card { margin-top: 12px; padding: 16px 12px 8px; overflow: hidden; }
.measurement-chart-card .section-heading { padding-inline: 4px; }
.model-history-controls { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.model-history-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 25px; margin: -4px 0; padding: 4px 7px; color: var(--muted); border: 1px solid rgba(255, 98, 109, .22); border-radius: 8px; background: rgba(255, 98, 109, .06); font: inherit; font-weight: 750; white-space: nowrap; cursor: pointer; }
.model-history-toggle.is-active { color: #ff9aa1; background: rgba(255, 98, 109, .12); }
.model-history-toggle:not(.is-active) .legend-line { opacity: .35; }
.model-history-toggle:disabled { color: var(--faint); border-color: rgba(143, 180, 207, .12); background: transparent; cursor: not-allowed; }
.model-history-toggle:focus-visible { outline: 2px solid rgba(255, 98, 109, .8); outline-offset: 2px; }
.model-lead-control { display: inline-flex; align-items: center; gap: 5px; color: var(--faint); font-size: .64rem; font-weight: 750; white-space: nowrap; }
.model-lead-control select { min-height: 27px; padding: 3px 22px 3px 7px; border: 1px solid rgba(255, 98, 109, .22); border-radius: 8px; color: #ffb0b6; background-color: rgba(255, 98, 109, .08); font: inherit; font-weight: 850; }
.model-lead-control select:focus-visible { outline: 2px solid rgba(255, 98, 109, .8); outline-offset: 2px; }
.model-history-status { margin: 8px 6px 0 44px; color: var(--faint); font-size: .64rem; line-height: 1.4; }
.model-history-status[hidden] { display: none; }
.measurement-chart { width: 100%; min-height: 235px; margin-top: 2px; border-radius: 10px; outline: none; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.measurement-chart:focus-visible { box-shadow: 0 0 0 2px rgba(62, 201, 255, .7); }
.measurement-chart svg { width: 100%; height: auto; overflow: visible; }
.chart-model-line { fill: none; stroke: #ff626d; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart-model-line.gust { stroke-dasharray: 7 6; }
.chart-model-point { fill: #ff626d; stroke: #321119; stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-model-point.gust { fill: var(--panel-strong); stroke: #ff626d; }
.measurement-chart.is-model-hidden .chart-model-series { display: none; }
.measurement-chart.is-model-hidden .chart-selection-marker.model,
.measurement-chart.is-model-hidden .chart-selection-marker.model-wind,
.measurement-chart.is-model-hidden .chart-selection-marker.model-gust { display: none !important; }
.measurement-selection-direction circle { fill: rgba(62, 201, 255, .18); stroke: rgba(62, 201, 255, .75); stroke-width: 1; vector-effect: non-scaling-stroke; }
.measurement-selection-direction path { fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.comparison-card { margin-top: 12px; padding: 17px; }
.comparison-card[hidden] { display: none; }
.comparison-table { margin-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.comparison-row { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 8px; padding: 10px 2px; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: .76rem; }
.comparison-row > :not(:first-child) { text-align: right; }
.comparison-row strong { color: var(--muted); font-size: .72rem; }
.comparison-head { color: var(--faint); font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.comparison-delta span { color: var(--blue); font-weight: 800; }
.comparison-note { margin: 11px 0 0; color: var(--faint); font-size: .67rem; line-height: 1.5; }
.measurement-source { margin-top: 12px; }

/* Long-range outlook */
.outlook-page-lead { margin-bottom: 4px; }
.outlook-summary { margin-bottom: 12px; padding: 17px; }
.outlook-summary h2 { margin: 0; font-size: 1.02rem; }
.outlook-summary > p { margin: 7px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.outlook-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; padding-top: 13px; border-top: 1px solid rgba(255, 255, 255, .07); }
.outlook-meta dt { color: var(--faint); font-size: .63rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.outlook-meta dd { margin: 4px 0 0; color: var(--text); font-size: .73rem; line-height: 1.4; }
.outlook-chart-card { margin-bottom: 16px; padding: 16px 12px 8px; overflow: hidden; }
.outlook-chart-card .section-heading { padding-inline: 4px; }
.outlook-timeline-toolbar { margin-top: 7px; }
.outlook-timeline-readout { margin-inline: 0; }
.outlook-days-heading { margin: 0 3px 10px; }
.outlook-days-heading h2 { margin: 2px 0 0; font-size: 1.02rem; }
.outlook-days { display: grid; gap: 0; overflow: hidden; }
.outlook-day-card { padding: 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); outline: none; cursor: pointer; transition: background .18s ease; }
.outlook-day-card:last-child { border-bottom: 0; }
.outlook-day-card:hover { background: rgba(62, 201, 255, .045); }
.outlook-day-card:focus-visible { box-shadow: inset 0 0 0 2px rgba(62, 201, 255, .7); }
.outlook-day-card.is-selected { background: linear-gradient(135deg, rgba(22, 82, 119, .34), transparent 58%); }
.outlook-day-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.outlook-day-head h2 { margin: 2px 0 0; font-size: 1rem; }
.uncertainty-badge { padding: 5px 8px; border: 1px solid rgba(62, 201, 255, .18); border-radius: 999px; color: var(--blue); background: rgba(43, 157, 226, .08); font-size: .65rem; font-weight: 800; white-space: nowrap; }
.uncertainty-badge.is-medium { color: var(--amber); border-color: rgba(255, 182, 46, .22); background: rgba(255, 182, 46, .07); }
.uncertainty-badge.is-high { color: #d7a9ff; border-color: rgba(187, 118, 246, .24); background: rgba(187, 118, 246, .08); }
.outlook-day-wind { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; margin-top: 14px; padding-top: 13px; border-top: 1px solid rgba(255, 255, 255, .07); }
.outlook-direction { display: grid; grid-template-columns: 34px auto; align-items: center; gap: 8px; min-width: 74px; color: var(--blue); font-size: 1.05rem; font-weight: 850; }
.outlook-direction svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform-origin: center; }
.outlook-direction span, .outlook-direction small, .outlook-direction strong { display: block; }
.outlook-direction small { margin-bottom: 1px; color: var(--faint); font-size: .58rem; font-weight: 700; text-transform: uppercase; }
.outlook-direction strong { font-size: 1rem; }
.outlook-range { text-align: right; }
.outlook-range strong { font-size: 1.5rem; letter-spacing: -.035em; }
.outlook-range span { margin-left: 4px; color: var(--muted); font-size: .75rem; }
.outlook-range small { display: block; margin-top: 2px; color: var(--faint); font-size: .63rem; }
.outlook-day-weather { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 13px; margin-top: 11px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .07); color: var(--muted); font-size: .71rem; }
.outlook-day-weather .timeline-weather-icon { margin-right: -4px; }
.outlook-range-bar { position: relative; height: 13px; margin-top: 13px; padding: 5px 0; }
.outlook-range-track { position: relative; display: block; height: 3px; border-radius: 99px; background: rgba(143, 180, 207, .14); }
.outlook-range-band { position: absolute; top: -3px; bottom: -3px; left: var(--range-start); width: max(3px, var(--range-width)); border: 1px solid rgba(62, 201, 255, .48); border-radius: 99px; background: rgba(62, 201, 255, .16); }
.outlook-range-mean { position: absolute; top: -5px; left: var(--mean-position); width: 3px; height: 13px; border-radius: 2px; background: var(--blue); transform: translateX(-50%); }
.outlook-day-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 13px 0 0; }
.outlook-day-details div { padding: 8px 9px; border-radius: 9px; background: rgba(2, 14, 25, .3); }
.outlook-day-details dt { color: var(--faint); font-size: .6rem; font-weight: 750; text-transform: uppercase; }
.outlook-day-details dd { margin: 3px 0 0; color: var(--muted); font-size: .72rem; }
.outlook-empty { padding: 20px; color: var(--muted); font-size: .8rem; line-height: 1.55; }

/* Public monitoring */
.monitoring-page { display: grid; gap: 12px; }
.monitoring-page .section-eyebrow { margin: 0 0 5px; color: var(--blue); font-size: .67rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.monitoring-overview, .monitoring-section { padding: 18px; }
.monitoring-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.monitoring-title-row h2, .monitoring-section h2 { margin: 2px 0 0; font-size: 1.05rem; }
.monitoring-generated { margin: 8px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.monitoring-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 25px; padding: 4px 8px; border: 1px solid var(--panel-border); border-radius: 999px; color: var(--faint); background: rgba(2, 14, 25, .3); font-size: .62rem; font-weight: 850; white-space: nowrap; }
.monitoring-badge.is-ok { color: var(--green); border-color: rgba(69, 213, 139, .24); background: rgba(69, 213, 139, .07); }
.monitoring-badge.is-warning { color: var(--amber); border-color: rgba(255, 182, 46, .24); background: rgba(255, 182, 46, .07); }
.monitoring-badge.is-error { color: var(--red); border-color: rgba(255, 109, 109, .24); background: rgba(255, 109, 109, .07); }
.monitoring-badge.is-loading { animation: pulse 1.2s ease-in-out infinite; }
.monitoring-summary-grid, .monitoring-quality-grid, .monitoring-workflow-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.monitoring-summary-grid article, .monitoring-quality-grid article, .monitoring-workflow-summary article { min-width: 0; padding: 11px; border-radius: 10px; background: rgba(2, 14, 25, .3); }
.monitoring-summary-grid span, .monitoring-quality-grid span, .monitoring-workflow-summary span { display: block; color: var(--faint); font-size: .61rem; font-weight: 750; letter-spacing: .035em; text-transform: uppercase; }
.monitoring-summary-grid strong, .monitoring-quality-grid strong, .monitoring-workflow-summary strong { display: block; margin-top: 4px; overflow-wrap: anywhere; font-size: 1.05rem; }
.monitoring-summary-grid small, .monitoring-workflow-summary small { display: block; margin-top: 3px; color: var(--faint); font-size: .6rem; line-height: 1.4; }
.monitoring-source-list, .monitoring-workflow-list { margin-top: 13px; border-top: 1px solid rgba(255, 255, 255, .07); }
.monitoring-source-row, .monitoring-workflow-row { padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.monitoring-source-head, .monitoring-workflow-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.monitoring-source-head strong, .monitoring-workflow-row strong { font-size: .75rem; }
.monitoring-source-row p, .monitoring-workflow-row small { margin: 5px 0 0; color: var(--faint); font-size: .63rem; line-height: 1.45; }
.monitoring-workflow-metrics { flex: 0 0 auto; text-align: right; }
.monitoring-workflow-metrics small { display: block; }
.monitoring-note, .monitoring-empty { margin: 12px 0 0; color: var(--faint); font-size: .66rem; line-height: 1.55; }
.monitoring-explanation { margin: 0; }

@media (min-width: 620px) {
  .app-header { padding-top: 28px; }
  .hero-card { padding: 22px 28px; }
  .chart-card, .source-panel { padding: 20px; }
  .report-masthead, .report-section { padding: 22px; }
  .report-situation { padding-inline: 22px; }
  .measurement-chart-card, .comparison-card { padding: 20px; }
  .monitoring-overview, .monitoring-section { padding: 20px; }
  .monitoring-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .monitoring-workflow-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 360px) {
  .shell { width: min(100% - 20px, 760px); }
  .status-pill { padding-inline: 7px; }
  .status-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .install-banner { grid-template-columns: auto 1fr; }
  .install-cta { display: none; }
  .current-weather-summary { gap: 0; }
  .current-weather-cell { gap: 4px; padding-inline: 4px; }
  .weather-condition { padding-left: 1px; }
  .current-weather-icon,
  .current-weather-icon svg { width: 30px; height: 30px; }
  .current-weather-summary small { font-size: .5rem; }
  .wind-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .wind-values { padding-left: 8px; }
  .timeline-toolbar { align-items: flex-end; }
  .timeline-readout { gap: 4px 8px; }
  .measurement-chart-card .timeline-toolbar { flex-wrap: wrap; }
  .measurement-chart-card .timeline-readout { flex-basis: 100%; }
  .timeline-reset { max-width: 92px; }
  .marine-label { font-size: .57rem; }
  .marine-detail { font-size: .62rem; }
  .secondary-weather { grid-template-columns: 1fr; gap: 8px; }
  .outlook-details-link { justify-self: end; }
}

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