:root {
  /*
   * Merman identity palette — forest green and coastal cream.
   * Use forest green for identity, borders, and active states; cream keeps the interface warm and readable.
   */
  --ink: #17261d;
  --ink-soft: #627165;
  --paper: #f5f2e9;
  --panel: #fffdf7;
  --surface: #ffffff;
  --surface-soft: #f8faf6;
  --glass: rgba(255, 253, 247, 0.94);
  --line: rgba(47, 107, 63, 0.28);
  --sea: #2f6b3f;
  --sea-dark: #1b4d2e;
  --sea-text: #1b4d2e;
  --sun: #eadfbd;
  --cream-ink: #17261d;
  --alert: #bd4337;
  --danger-text: #762b25;
  --danger-surface: #fee9e5;
  --danger-line: #f0bab2;
  --header: #17261d;
  --shadow: 0 24px 70px rgba(26,63,39, 0.11);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --ink: #edf2e9;
  --ink-soft: #aebcaf;
  --paper: #0d1410;
  --panel: #172019;
  --surface: #1d2820;
  --surface-soft: #141d17;
  --glass: rgba(20, 29, 23, 0.94);
  --line: rgba(91, 151, 103, 0.5);
  --sea-text: #91c99b;
  --danger-text: #ffd8d2;
  --danger-surface: #3b1b18;
  --danger-line: #8d4942;
  --header: #080e0a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 8%, rgba(47,107,63, 0.09), transparent 24rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main,
.fishing-workspace {
  background-color: var(--paper);
}

.build-warning {
  position: fixed;
  z-index: 3000;
  right: 12px;
  bottom: 12px;
  left: 12px;
  border: 1px solid var(--alert);
  border-radius: 13px;
  padding: 12px 14px;
  color: var(--danger-text);
  background: var(--danger-surface);
  box-shadow: 0 12px 30px rgba(23,38,29, .22);
  font-size: .78rem;
  line-height: 1.45;
}

.build-warning strong,
.build-warning span {
  display: block;
}

.build-warning span {
  margin-top: 3px;
}

html {
  scroll-behavior: smooth;
}

button,
input,
textarea,
select {
  font: inherit;
}

.app-bar {
  position: relative;
  z-index: 1200;
  min-height: 72px;
  padding: 12px clamp(16px, 3vw, 34px);
  color: #f8fbf4;
  background: var(--header);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.theme-toggle {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 10px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  padding: 0;
  color: var(--sun);
  background: rgba(47, 107, 63, 0.42);
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: background .15s ease, transform .15s ease;
}

.theme-toggle:hover {
  background: var(--sea);
  transform: translateY(-50%) scale(1.05);
}

.app-brand {
  color: inherit;
  display: flex;
  gap: 11px;
  align-items: center;
  text-decoration: none;
}

.app-brand__mark {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: #f8fbf4;
  background: var(--sea);
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.app-brand strong,
.app-brand small {
  display: block;
}

.app-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  font-weight: 500;
}

.app-brand small {
  margin-top: 2px;
  color: var(--sun);
  font-size: .57rem;
  font-weight: 820;
  letter-spacing: .16em;
}

.map-stage {
  position: relative;
  min-height: 680px;
  height: calc(100svh - 72px);
  overflow: hidden;
  background: var(--paper);
}

.location-map {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: var(--paper);
}

.location-map .leaflet-tile-pane {
  filter: saturate(.72) sepia(.08);
}

.location-map .leaflet-control-attribution {
  color: var(--ink-soft);
  background: var(--glass);
  font-size: .6rem;
}

.location-map .leaflet-control-attribution a {
  color: var(--sea-text);
}

.location-map .leaflet-control-zoom a {
  border-color: var(--line);
  color: var(--sea-text);
  background: var(--panel);
}

.location-map .leaflet-tooltip.shoreline-name-tooltip {
  border: 1px solid rgba(23,38,29,.16);
  border-radius: 999px;
  padding: 4px 7px;
  color: var(--ink);
  background: var(--glass);
  box-shadow: 0 5px 14px rgba(23,38,29,.13);
  font-size: .58rem;
  font-weight: 790;
  line-height: 1;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

.location-map
  .leaflet-tooltip-top.shoreline-name-tooltip::before {
  border-top-color: var(--glass);
}

.selected-map-marker {
  border: 0;
  background: transparent;
}

.selected-map-marker span {
  position: relative;
  width: 30px;
  height: 30px;
  border: 3px solid var(--sea);
  border-radius: 50%;
  background: var(--sun);
  box-shadow:
    0 0 0 7px rgba(234,223,189,.5),
    0 8px 20px rgba(23,38,29,.26);
  display: block;
}

.selected-map-marker span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--header);
  content: "";
  transform: translate(-50%, -50%);
}

.map-intro,
.location-sheet,
.map-tools {
  position: absolute;
  z-index: 600;
}

.map-intro {
  top: 24px;
  left: clamp(16px, 3vw, 34px);
  width: min(460px, calc(100% - 110px));
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 18px 20px;
  color: #f8fbf4;
  background: rgba(23,38,29,.91);
  box-shadow: 0 18px 46px rgba(23,38,29,.18);
  backdrop-filter: blur(10px);
}

.map-intro .step {
  margin-bottom: 8px;
  color: var(--sun);
}

.map-intro h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -.035em;
}

.map-intro p:last-child {
  margin: 8px 0 0;
  color: var(--paper);
  font-size: .88rem;
  line-height: 1.5;
}

.map-tools {
  bottom: 24px;
  left: clamp(16px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-tool {
  cursor: pointer;
  width: fit-content;
  border: 1px solid rgba(23,38,29,.12);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--sea-text);
  background: var(--glass);
  box-shadow: 0 8px 24px rgba(23,38,29,.12);
  font-size: .78rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.map-tool:hover {
  color: #fff;
  background: var(--sea);
}

.map-tool:disabled {
  cursor: wait;
  opacity: .7;
}

.location-sheet {
  right: clamp(16px, 3vw, 34px);
  bottom: 24px;
  width: min(440px, calc(100% - 40px));
  max-height: calc(100% - 42px);
  overflow-y: auto;
  border: 1px solid rgba(23,38,29,.1);
  border-radius: 22px;
  padding: 22px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.location-sheet h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -.025em;
}

#location-sheet-empty > p:last-child {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: .84rem;
  line-height: 1.55;
}

.location-sheet__heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.location-sheet__heading .step {
  margin-bottom: 7px;
}

.wind-loading {
  margin-top: 16px;
  border-left: 3px solid var(--sun);
  padding: 10px 12px;
  color: var(--ink-soft);
  background: var(--paper);
  font-size: .78rem;
  line-height: 1.45;
}

.wind-summary {
  display: grid;
  grid-template-columns: 1.2fr .9fr 1.2fr;
  gap: 8px;
  margin-top: 16px;
}

.wind-summary > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px;
  background: var(--surface);
}

.wind-summary strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 5px;
  color: var(--sea-text);
  font-size: .82rem;
  line-height: 1.3;
}

.wind-direction {
  display: flex;
  gap: 10px;
  align-items: center;
}

.wind-arrow {
  flex: 0 0 auto;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  color: #fff;
  background: var(--sea);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  transition: transform .35s ease;
}

.wind-speed {
  font-size: .95rem !important;
}

.wind-time-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.wind-time-button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 7px;
  color: var(--ink-soft);
  background: var(--surface);
  font-size: .72rem;
  font-weight: 780;
}

.wind-time-button:hover {
  border-color: var(--sea-text);
}

.wind-time-button--active {
  border-color: var(--sea-text);
  color: #fff;
  background: var(--sea);
}

.wind-play-button {
  cursor: pointer;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0;
  color: #fff;
  background: var(--sea);
  font-size: .66rem;
  font-weight: 820;
}

.wind-play-button:disabled {
  cursor: default;
  opacity: .4;
}

.wind-note {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: .68rem;
  line-height: 1.45;
}

.wind-note--error {
  color: var(--danger-text);
}

.location-sheet__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 15px;
}

.location-sheet__actions .button--quiet {
  margin: 0;
  padding: 8px;
  text-align: center;
}

.wind-field {
  --wind-flow: 0deg;
  --wind-duration: 2s;
  position: absolute;
  z-index: 300;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.wind-field--visible {
  opacity: 1;
}

.wind-streak {
  position: absolute;
  width: 78px;
  height: 2px;
  transform: rotate(var(--wind-flow));
  transform-origin: left center;
}

.wind-streak::after {
  position: absolute;
  width: 38px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #fffdf7);
  box-shadow: 16px 0 0 -0.5px rgba(255,253,247,.64);
  content: "";
  animation: wind-run var(--wind-duration) linear infinite;
  animation-delay: inherit;
}

@keyframes wind-run {
  from {
    transform: translateX(-75px);
  }
  to {
    transform: translateX(95px);
  }
}

.fishing-workspace {
  min-height: calc(100svh - 72px);
  padding: clamp(28px, 5vw, 68px) 0;
}

.workspace-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
}

.workspace-header h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -.045em;
}

.workspace-header > div > p:last-child {
  margin: 9px 0 0;
  color: var(--ink-soft);
}

.fishing-workspace .layout {
  margin-top: 0;
}

.manual-fields {
  margin: 0 0 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.manual-fields summary {
  cursor: pointer;
  padding: 12px 13px;
  color: var(--sea-text);
  font-size: .8rem;
  font-weight: 780;
}

.manual-fields__body {
  padding: 4px 13px 0;
  border-top: 1px solid var(--line);
}

.hero {
  min-height: 355px;
  color: #f8fbf4;
  background:
    linear-gradient(110deg, rgba(23, 38, 29, 0.98), rgba(27, 77, 46, 0.92)),
    repeating-linear-gradient(0deg, transparent 0 29px, rgba(255,255,255,.04) 30px);
  display: flex;
  align-items: center;
}

.hero__content,
.layout,
footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow,
.step {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.eyebrow {
  color: var(--sun);
}

.hero h1 {
  max-width: 750px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.hero__copy {
  max-width: 640px;
  margin: 24px 0 22px;
  color: var(--paper);
  font-size: 1.05rem;
  line-height: 1.65;
}

.status {
  width: fit-content;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(0,0,0,.13);
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 0.83rem;
}

.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun);
}

.status--online .status__dot {
  background: #79daa4;
  box-shadow: 0 0 0 4px rgba(121,218,164,.13);
}

.status--offline .status__dot {
  background: #ff8e80;
}

.layout {
  margin-top: -42px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: start;
}

.panel {
  border: 1px solid rgba(23,38,29,.09);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel--form {
  padding: clamp(24px, 4vw, 40px);
}

.panel__heading h2,
.empty-card h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.panel__heading > p:last-child,
.empty-card p {
  margin: 0 0 28px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.step {
  color: var(--sea-text);
}

.coordinates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  margin-bottom: 17px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.82rem;
  font-weight: 750;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: var(--surface);
  color: var(--ink);
  padding: 12px 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--sea-text);
  box-shadow: 0 0 0 3px rgba(47,107,63,.12);
}

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--sea-dark) 50%),
    linear-gradient(135deg, var(--sea-dark) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  padding-right: 36px;
}

.field-help {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: .72rem;
  line-height: 1.4;
}

.actions {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 12px;
  margin-top: 8px;
}

.button {
  cursor: pointer;
  border: 0;
  border-radius: 11px;
  padding: 13px 16px;
  font-weight: 780;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: .6;
  transform: none;
}

.button--primary {
  color: white;
  background: var(--sea);
}

.button--primary:hover {
  background: var(--sea-dark);
}

.button--secondary {
  color: var(--cream-ink);
  background: var(--sun);
}

.button--quiet {
  margin: -6px 0 19px;
  padding: 8px 0;
  color: var(--sea-text);
  background: transparent;
  text-align: left;
  font-size: .83rem;
}

.results {
  display: grid;
  gap: 24px;
}

.result-card,
.empty-card {
  padding: clamp(24px, 4vw, 36px);
}

.result-card__topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.result-card__topline .step {
  margin: 0;
}

.source-pill {
  padding: 5px 8px;
  border: 1px solid var(--sea);
  border-radius: 999px;
  color: var(--sea-text);
  background: var(--paper);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .1em;
}

.source-pill--ai {
  border-color: var(--sea-text);
  color: var(--cream-ink);
  background: var(--sun);
}

.weather-location {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 500;
}

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

.period {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px;
  background: var(--surface);
}

.period strong {
  display: block;
  margin-bottom: 8px;
}

.period__temp {
  color: var(--sea-text);
  font-size: 1.25rem;
  font-weight: 800;
}

.period p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: .84rem;
  line-height: 1.45;
}

.conditions-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.conditions-section h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 500;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.metric {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface);
}

.metric span {
  display: block;
  overflow: hidden;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric strong {
  color: var(--sea-text);
  font-size: 1.02rem;
}

.detail-line {
  margin: 11px 0 0;
  color: var(--ink-soft);
  font-size: .82rem;
  line-height: 1.5;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.section-heading h3 {
  margin-bottom: 0;
}

.section-heading .detail-line {
  margin-top: 6px;
}

.evidence-badge {
  flex: 0 0 auto;
  border: 1px solid var(--sea);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--sea-text);
  background: var(--paper);
  font-size: .64rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.evidence-summary {
  margin: 0 0 10px;
  color: var(--sea-text);
  font-size: .84rem;
  font-weight: 780;
}

.shoreline-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}

.shoreline-summary > div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface);
}

.shoreline-summary strong {
  display: block;
  margin-top: 5px;
  color: var(--sea-text);
  text-transform: capitalize;
}

.mini-label {
  display: block;
  color: var(--ink-soft);
  font-size: .7rem;
  font-weight: 780;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.habitat-fit {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
}

.habitat-fit--strong {
  color: var(--cream-ink);
  background: var(--sun);
}

.habitat-fit--possible {
  color: var(--sea-text);
  background: var(--paper);
}

.habitat-fit--limited {
  color: var(--danger-text);
  background: var(--danger-surface);
}

.chip-section {
  margin-top: 12px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.data-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--ink-soft);
  background: var(--surface);
  font-size: .72rem;
}

.guidance-copy,
.nearby-areas,
.guidance-list {
  color: var(--ink-soft);
  font-size: .78rem;
  line-height: 1.55;
}

.guidance-copy {
  margin: 14px 0 0;
}

.guidance-list {
  margin-top: 12px;
}

.guidance-list > strong {
  color: var(--ink);
}

.guidance-list ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

.nearby-areas {
  margin: 12px 0 0;
}

.discovery-list {
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.discovery-row,
.location-result {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.location-result {
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
}

.discovery-row:last-child,
.location-result:last-child {
  border-bottom: 0;
}

.discovery-rank {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: #fff;
  background: var(--sea);
  display: grid;
  place-items: center;
  font-size: .7rem;
  font-weight: 850;
}

.discovery-row strong,
.discovery-row small,
.location-result__body strong,
.location-result__body small {
  display: block;
}

.discovery-row strong,
.location-result__body strong {
  color: var(--sea-text);
  font-size: .84rem;
}

.discovery-row small,
.location-result__body small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: .72rem;
  line-height: 1.4;
  text-transform: capitalize;
}

.discovery-row p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: .72rem;
  line-height: 1.45;
}

.choose-area-button {
  cursor: pointer;
  border: 1px solid var(--sea);
  border-radius: 9px;
  padding: 8px 10px;
  color: var(--sea-text);
  background: var(--paper);
  font-size: .72rem;
  font-weight: 800;
}

.choose-area-button:hover {
  color: #fff;
  background: var(--sea);
}

.rule-list,
.observation-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.rule-row {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(0, 1.2fr);
  gap: 15px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  font-size: .78rem;
}

.rule-row:last-child,
.observation-row:last-child {
  border-bottom: 0;
}

.rule-row span {
  color: var(--ink-soft);
}

.observation-row {
  display: block;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.observation-row:hover {
  background: var(--paper);
}

.observation-row strong,
.observation-row span {
  display: block;
}

.observation-row strong {
  color: var(--sea-text);
  font-size: .8rem;
}

.observation-row span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: .72rem;
  line-height: 1.4;
}

.safety-note {
  margin-top: 10px;
  border-left: 3px solid var(--sun);
  padding: 9px 11px;
  color: var(--ink-soft);
  background: var(--paper);
  font-size: .75rem;
  line-height: 1.5;
}

.safety-note--legal {
  border-left-color: var(--alert);
}

.mpa-warning {
  border: 1px solid var(--danger-line);
  border-left: 4px solid var(--alert);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--danger-text);
  background: var(--danger-surface);
  font-size: .77rem;
  line-height: 1.55;
}

.safety-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 7px;
}

.safety-links a {
  color: var(--sea-text);
  font-weight: 760;
}

.hourly-section {
  min-width: 0;
}

.hourly-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.hourly-heading h2 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.fishing-weather-details > .section-heading h2 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.hourly-heading .detail-line {
  margin-top: 6px;
}

.hourly-count {
  flex: 0 0 auto;
  border: 1px solid var(--sea);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--sea-text);
  background: var(--paper);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.day-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(84px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding: 1px 1px 7px;
}

.day-tab {
  min-width: 84px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.day-tab:hover {
  border-color: var(--sea-text);
}

.day-tab span,
.day-tab strong {
  display: block;
}

.day-tab span {
  margin-bottom: 3px;
  color: var(--ink-soft);
  font-size: .7rem;
  font-weight: 750;
  text-transform: uppercase;
}

.day-tab strong {
  font-size: .82rem;
}

.day-tab--active {
  border-color: var(--sea-text);
  color: #fff;
  background: var(--sea);
}

.day-tab--active span {
  color: var(--sun);
}

.hourly-day-panel {
  margin-top: 12px;
}

.hourly-tides {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 10px;
  padding-bottom: 2px;
}

.hourly-tides span {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--ink-soft);
  background: var(--surface);
  font-size: .72rem;
}

.hourly-tides b {
  margin-right: 4px;
  color: var(--sea-text);
}

.hourly-table-wrap {
  overflow: auto;
  max-height: 630px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.hourly-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .76rem;
}

.hourly-table th,
.hourly-table td {
  padding: 10px 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.hourly-table thead th {
  position: sticky;
  z-index: 2;
  top: 0;
  color: var(--sea-text);
  background: var(--paper);
  font-size: .68rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hourly-table tbody th {
  position: sticky;
  z-index: 1;
  left: 0;
  color: var(--sea-text);
  background: var(--surface);
  white-space: nowrap;
}

.hourly-table thead th:first-child {
  z-index: 3;
  left: 0;
}

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

.hourly-table td strong,
.hourly-table td small {
  display: block;
}

.hourly-table td small {
  margin-top: 3px;
  color: var(--ink-soft);
  line-height: 1.35;
}

.tide-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.tide-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: .78rem;
}

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

.tide-type {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 6px;
  font-size: .65rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tide-type--high {
  color: var(--cream-ink);
  background: var(--sun);
}

.tide-type--low {
  color: var(--sea-text);
  background: var(--paper);
}

.alert-box,
.error-box,
.notice-box {
  margin-bottom: 16px;
  border-radius: 12px;
  padding: 13px 14px;
  line-height: 1.5;
}

.alert-box,
.error-box {
  color: var(--danger-text);
  background: var(--danger-surface);
  border: 1px solid var(--danger-line);
}

.notice-box {
  color: var(--sea-text);
  background: var(--paper);
  border: 1px solid var(--sea);
}

.ai-answer {
  color: var(--ink);
  line-height: 1.72;
  white-space: pre-wrap;
}

.sources {
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.sources summary {
  cursor: pointer;
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 700;
}

.sources a {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 8px;
  color: var(--sea-text);
  font-size: .78rem;
}

.empty-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.empty-card p {
  max-width: 420px;
  margin-bottom: 0;
}

.watermark {
  position: absolute;
  top: -25px;
  right: 15px;
  color: rgba(47,107,63,.08);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12rem;
  line-height: 1;
}

.is-hidden {
  display: none;
}

footer {
  padding: 44px 0 34px;
  color: var(--ink-soft);
  font-size: .78rem;
  text-align: center;
}

@media (max-width: 840px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .map-stage {
    min-height: 720px;
  }

  .map-tools {
    top: 156px;
    bottom: auto;
  }

  .location-sheet {
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: auto;
    max-height: 54%;
  }

  .workspace-header {
    align-items: flex-start;
  }

  .hero {
    min-height: 390px;
    padding-bottom: 52px;
  }
}

@media (max-width: 520px) {
  .app-bar {
    min-height: 64px;
    padding: 10px 12px;
  }

  .app-brand__mark {
    width: 36px;
    height: 36px;
  }

  .app-brand small {
    display: none;
  }

  .app-bar .status {
    max-width: 52%;
    padding: 8px 10px;
    font-size: .67rem;
  }

  .map-stage {
    height: calc(100svh - 64px);
    min-height: 690px;
  }

  .map-intro {
    top: 12px;
    left: 12px;
    width: calc(100% - 76px);
    border-radius: 14px;
    padding: 14px 15px;
  }

  .map-intro h1 {
    font-size: 1.55rem;
  }

  .map-intro p:last-child {
    font-size: .75rem;
  }

  .map-tools {
    top: 132px;
    left: 12px;
    gap: 6px;
  }

  .map-tool {
    padding: 8px 11px;
    font-size: .68rem;
  }

  .location-sheet {
    right: 10px;
    bottom: 10px;
    left: 10px;
    max-height: 56%;
    border-radius: 18px;
    padding: 17px;
  }

  .location-sheet h2 {
    font-size: 1.32rem;
  }

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

  .wind-summary > div:last-child {
    grid-column: 1 / -1;
  }

  .location-sheet__actions {
    grid-template-columns: 1fr;
  }

  .location-sheet__actions .button--quiet {
    padding: 4px 8px;
  }

  .workspace-header {
    width: min(100% - 24px, 1180px);
    display: block;
  }

  .workspace-header .button {
    margin-top: 15px;
  }

  .hero__content,
  .layout,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .coordinates,
  .actions,
  .period-grid,
  .metric-grid,
  .shoreline-summary {
    grid-template-columns: 1fr;
  }

  .tide-row {
    grid-template-columns: 45px 1fr;
  }

  .tide-row > span:last-child {
    grid-column: 2;
  }

  .hourly-heading {
    display: block;
  }

  .hourly-count {
    display: inline-block;
    margin-top: 10px;
  }

  .section-heading {
    display: block;
  }

  .evidence-badge {
    display: inline-block;
    margin-top: 10px;
  }

  .rule-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .location-result {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .choose-area-button {
    grid-column: 2;
    width: fit-content;
  }
}

/* NOAA depth context and a map-sized atmospheric wind canvas. */
canvas.wind-field {
  width: 100%;
  height: 100%;
  mix-blend-mode: normal;
}

.depth-marker-tooltip {
  border: 1px solid rgba(23,38,29,.12);
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--sea-text);
  background: var(--glass);
  box-shadow: 0 5px 14px rgba(23,38,29,.12);
  font-size: .58rem;
  font-weight: 820;
}

.depth-marker-tooltip::before {
  display: none;
}

.depth-context {
  display: grid;
  grid-template-columns: 1.05fr 1.5fr .9fr;
  gap: 1px;
  overflow: hidden;
  margin: 14px 0 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--line);
}

.depth-context > div {
  min-width: 0;
  padding: 16px;
  background: var(--panel);
}

.depth-context span,
.depth-context strong,
.depth-context small {
  display: block;
}

.depth-context strong {
  margin-top: 5px;
  color: var(--sea-text);
  font-size: .9rem;
  line-height: 1.25;
}

.depth-context__primary strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
}

.depth-context small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: .65rem;
  line-height: 1.4;
}

.depth-context > p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 9px 14px;
  color: var(--ink-soft);
  background: var(--paper);
  font-size: .62rem;
  line-height: 1.45;
}

.depth-context--unavailable {
  display: block;
  padding: 14px 16px;
  background: var(--panel);
}

.depth-context--unavailable small {
  display: block;
}

@media (max-width: 620px) {
  .depth-context {
    grid-template-columns: 1fr 1fr;
  }

  .depth-context__detail:last-of-type {
    grid-column: 1 / -1;
  }
}

/* Fishing weather details and species drill-down */
.fishing-weather-details {
  margin-top: 30px;
}

.weather-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.weather-detail-block {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: var(--surface);
}

.weather-detail-block--wide,
.fishing-outlook {
  grid-column: 1 / -1;
}

.fishing-outlook {
  margin-top: 14px;
  background:
    linear-gradient(135deg, rgba(47,107,63,.06), transparent 58%),
    #fff;
}

.weather-detail-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.weather-detail-heading h4,
.weather-detail-heading h3,
.species-guide-section h3,
.species-guide-hero h2 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.weather-detail-heading h4 {
  font-size: 1.25rem;
}

.weather-detail-heading h3 {
  margin: 0;
  font-size: 1.1rem;
}

.detail-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.detail-metric-grid--small {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 13px;
}

.detail-metric {
  min-width: 0;
  border-radius: 11px;
  padding: 10px;
  background: var(--paper);
}

.detail-metric span,
.detail-metric strong {
  display: block;
}

.detail-metric span {
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: .66rem;
}

.detail-metric strong {
  overflow-wrap: anywhere;
  color: var(--sea-text);
  font-size: .86rem;
}

.moon-disc {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--sun);
  background: var(--header);
  display: grid;
  place-items: center;
  font-size: 1.45rem;
}

.barometer-value {
  color: var(--sea-text);
  font-size: 1.05rem;
}

.fishing-window-list {
  display: grid;
  gap: 9px;
}

.fishing-window {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px;
  background: var(--panel);
}

.fishing-window__time span,
.fishing-window__time strong {
  display: block;
}

.fishing-window__time span {
  color: var(--ink-soft);
  font-size: .66rem;
}

.fishing-window__time strong {
  margin-top: 3px;
  color: var(--sea-text);
  font-size: .87rem;
}

.fishing-window p {
  margin: 0;
  color: var(--ink);
  font-size: .8rem;
  line-height: 1.55;
}

.outlook-level {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: .64rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.outlook-level--favorable {
  color: var(--cream-ink);
  background: var(--sun);
}

.outlook-level--workable {
  color: var(--sea-text);
  background: var(--paper);
}

.outlook-level--caution {
  color: var(--danger-text);
  background: var(--danger-surface);
}

.compact-tides {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.compact-tides > div {
  border-radius: 11px;
  padding: 10px;
  background: var(--paper);
}

.compact-tides strong,
.compact-tides small {
  display: block;
  margin-top: 7px;
}

.compact-tides strong {
  color: var(--sea-text);
  font-size: .78rem;
}

.compact-tides small {
  color: var(--ink-soft);
  font-size: .68rem;
}

.species-detail-link {
  cursor: pointer;
  border: 0;
  padding: 0;
  color: var(--sea-text);
  background: transparent;
  font-weight: 820;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(47,107,63,.3);
  text-underline-offset: 3px;
}

.species-detail-link:hover {
  color: var(--sea-text);
}

.species-detail-link--card {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 2px 0;
  text-decoration: none;
}

.species-detail-link--card strong,
.species-detail-link--card small,
.species-detail-link--card .species-card-season,
.species-detail-link--card .species-card-cta {
  display: block;
}

.species-detail-link--card small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-weight: 650;
}

.species-detail-link--card .chip-list {
  margin-top: 8px;
}

.species-card-season {
  margin-top: 8px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.45;
}

.species-card-cta {
  margin-top: 9px;
  color: var(--sea-text);
  font-size: .69rem;
  font-weight: 820;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.species-detail-link--action {
  flex: 0 0 auto;
  border: 1px solid var(--sea);
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--paper);
  font-size: .7rem;
  text-decoration: none;
}

.shoreline-summary .species-detail-link {
  display: block;
  margin-top: 5px;
  text-transform: none;
}

.species-guide-hero {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.species-guide-hero h2 {
  color: var(--sea-text);
  font-size: 2rem;
}

.species-guide-hero p {
  margin: 5px 0 0;
  color: var(--ink-soft);
}

.species-guide-section {
  margin-top: 24px;
}

.species-guide-section h3 {
  font-size: 1.35rem;
}

.species-guide-local {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: var(--paper);
}

.targeting-summary {
  max-width: 78ch;
  margin-top: 12px;
}

.targeting-summary p {
  margin: 0;
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.72;
}

.targeting-summary p + p {
  margin-top: 12px;
}

.depth-guide {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.depth-guide__heading {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.depth-guide__heading p {
  max-width: 70ch;
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: .72rem;
  line-height: 1.45;
}

.depth-guide__rows {
  padding: 4px 16px;
}

.depth-guide__row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
}

.depth-guide__row + .depth-guide__row {
  border-top: 1px solid var(--line);
}

.depth-guide__row strong {
  color: var(--sea-text);
  font-size: .72rem;
}

.depth-guide__row span {
  color: var(--ink);
  font-size: .78rem;
  line-height: 1.5;
}

.species-area-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.species-guide-area {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
}

.species-guide-area:hover {
  border-color: var(--sea-text);
  background: var(--paper);
}

.species-guide-area strong,
.species-guide-area span {
  display: block;
}

.species-guide-area strong {
  color: var(--sea-text);
}

.species-guide-area span {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: .7rem;
  line-height: 1.4;
}

.mpa-dialog {
  width: min(520px, calc(100% - 28px));
  border: 1px solid rgba(23,38,29,.12);
  border-radius: 18px;
  padding: 22px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.mpa-dialog::backdrop {
  background: rgba(23,38,29,.58);
}

.mpa-dialog__topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.mpa-dialog__topline h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
}

.mpa-dialog__close {
  cursor: pointer;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  font-size: 1.25rem;
}

.mpa-dialog .mpa-warning p {
  margin: 9px 0 0;
}

.prompt-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: min(760px, calc(100svh - 28px));
  overflow-y: auto;
  border: 1px solid rgba(23,38,29,.12);
  border-radius: 20px;
  padding: clamp(20px, 4vw, 30px);
  color: var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.prompt-dialog::backdrop {
  background: rgba(23,38,29,.64);
  backdrop-filter: blur(3px);
}

.prompt-dialog__topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.prompt-dialog__topline h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 5vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -.035em;
}

.prompt-dialog__topline p:last-child {
  max-width: 480px;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: .82rem;
  line-height: 1.5;
}

.prompt-dialog__close {
  cursor: pointer;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  font-size: 1.3rem;
}

.prompt-dialog__label {
  display: block;
  margin-bottom: 8px;
  color: var(--sea-text);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

#prompt-search-input {
  width: 100%;
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  padding: 14px 15px;
  color: var(--ink);
  background: var(--surface);
  resize: vertical;
  line-height: 1.55;
}

#prompt-search-input:focus {
  border-color: var(--sea-text);
  box-shadow: 0 0 0 3px rgba(47,107,63,.12);
}

.prompt-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.prompt-examples button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--sea-text);
  background: var(--paper);
  font-size: .68rem;
  font-weight: 760;
}

.prompt-examples button:hover {
  border-color: var(--sea-text);
  background: var(--paper);
}

.prompt-location-context {
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: .7rem;
  line-height: 1.45;
}

.prompt-dialog .error-box {
  margin-top: 13px;
}

.prompt-dialog__actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}

.prompt-dialog__actions .button {
  flex: 1 1 0;
}

.workspace-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.hybrid-results {
  display: grid;
  gap: 16px;
}

.hybrid-answer-card {
  border-top: 4px solid var(--sea);
  padding-top: clamp(20px, 3vw, 30px);
}

.trip-chat-log {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
}

.trip-chat-message {
  max-width: min(84%, 760px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 15px;
  color: var(--ink);
  background: var(--paper);
}

.trip-chat-message--assistant {
  justify-self: start;
  border-bottom-left-radius: 6px;
}

.trip-chat-message--user {
  justify-self: end;
  border-color: var(--sea);
  border-bottom-right-radius: 6px;
  background: var(--sea-soft);
}

.trip-chat-speaker {
  display: block;
  margin-bottom: 4px;
  color: var(--sea-text);
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.trip-chat-message p {
  margin: 0;
  font-family: inherit;
  font-size: .9rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.trip-follow-up-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 7px;
  align-items: end;
  width: 100%;
  max-width: 900px;
  margin: 16px auto 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 6px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(4, 28, 18, .08);
}

#trip-follow-up-input {
  width: 100%;
  min-height: 42px;
  max-height: 144px;
  resize: none;
  overflow-y: auto;
  border: 0;
  border-radius: 17px;
  padding: 10px 8px 9px 12px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: .86rem;
  line-height: 1.4;
}

#trip-follow-up-input:focus {
  outline: 0;
}

.trip-follow-up-form:focus-within {
  border-color: var(--sea);
  box-shadow: 0 0 0 2px rgba(47, 107, 63, .14);
}

.trip-send-button {
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--paper);
  background: var(--sea);
}

.trip-send-button:hover {
  background: var(--sea-text);
}

.trip-send-button:disabled {
  cursor: wait;
  opacity: .55;
}

.trip-send-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trip-send-button.is-loading svg {
  animation: trip-send-pulse 1s ease-in-out infinite alternate;
}

@keyframes trip-send-pulse {
  to { transform: translateY(-2px); opacity: .55; }
}

.hybrid-answer-card .error-box {
  max-width: 960px;
  margin-top: 12px;
}

.hybrid-workspace-header {
  margin-bottom: 16px;
}

.hybrid-support-card {
  padding-top: 14px;
}

.hybrid-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  padding: 4px;
  background: var(--paper);
}

.hybrid-tab {
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 9px 20px;
  color: var(--ink-soft);
  background: transparent;
  font-size: .75rem;
  font-weight: 800;
}

.hybrid-tab.is-active {
  color: #fff;
  background: var(--sea-dark);
}

.live-vision-dialog {
  width: min(760px, calc(100vw - 24px));
  max-height: min(92svh, 860px);
}

.live-vision-settings {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.live-vision-settings .field {
  margin: 0;
}

.live-vision-settings .field > span {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: .72rem;
  font-weight: 780;
}

.live-vision-stage {
  position: relative;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  background: var(--header);
}

.live-vision-stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--header);
}

.live-vision-idle {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--cream);
  background: var(--header);
  text-align: center;
  font-size: .78rem;
  line-height: 1.5;
}

.live-vision-idle[hidden] {
  display: none;
}

.live-vision-controls {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.live-vision-controls .button {
  padding: 10px 13px;
  font-size: .72rem;
}

.live-vision-auto {
  cursor: pointer;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--ink-soft);
  font-size: .7rem;
  font-weight: 720;
}

.live-vision-auto input {
  width: 17px;
  height: 17px;
  accent-color: var(--sea-text);
}

.live-vision-status {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: .7rem;
  line-height: 1.45;
}

.live-vision-result {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--sea-text);
  border-radius: 13px;
  background: var(--surface-soft);
  display: grid;
  grid-template-columns: minmax(130px, 34%) minmax(0, 1fr);
}

.live-vision-result[hidden] {
  display: none !important;
}

.live-vision-result__preview {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  background: var(--header);
}

.live-vision-result__body {
  min-width: 0;
  padding: 14px;
}

.live-vision-result__body h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.live-vision-result__body > p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: .7rem;
  line-height: 1.45;
}

.live-vision-candidates {
  margin-top: 10px;
  display: grid;
  gap: 7px;
}

.live-vision-candidate {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 10px;
  color: var(--ink-soft);
  background: var(--panel-soft);
  font-size: .66rem;
  line-height: 1.4;
}

.live-vision-candidate strong,
.live-vision-candidate span {
  color: var(--ink);
}

.live-vision-candidate span {
  float: right;
  font-size: .6rem;
  font-weight: 780;
}

@media (max-width: 620px) {
  .live-vision-settings,
  .live-vision-result {
    grid-template-columns: 1fr;
  }

  .live-vision-stage {
    min-height: 180px;
  }

  .live-vision-result__preview {
    height: 180px;
    min-height: 0;
  }

  .live-vision-controls .button {
    flex: 1 1 calc(50% - 5px);
  }

  .live-vision-auto {
    flex-basis: 100%;
  }
}

.catch-location-context {
  margin: 0 0 16px;
  border-left: 3px solid var(--sea);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper);
  font-size: .78rem;
  font-weight: 760;
}

.catch-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.catch-form-grid .field {
  margin: 0;
}

.catch-form-grid .field--wide {
  grid-column: 1 / -1;
}

.catch-form-grid textarea {
  min-height: 90px;
}

.field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: .76rem;
  font-weight: 760;
}

.catch-media-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.catch-media-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.catch-media-picker label.button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 10px 13px;
  font-size: .72rem;
}

.catch-media-input:focus + .catch-media-input + .catch-media-picker label[for="catch-media"],
.catch-media-input:focus + .catch-media-picker label[for="catch-camera"] {
  outline: 3px solid color-mix(in srgb, var(--sea-text) 45%, transparent);
  outline-offset: 2px;
}

#catch-media-name {
  flex: 1 1 180px;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-size: .69rem;
}

.catch-media-actions {
  margin-top: 9px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.catch-media-actions .button {
  flex: 0 0 auto;
  padding: 9px 12px;
  font-size: .72rem;
}

.catch-media-actions span {
  color: var(--ink-soft);
  font-size: .7rem;
  line-height: 1.4;
}

.catch-identification-result {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--sea-text);
  border-radius: 13px;
  background: var(--surface-soft);
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
}

.catch-identification-result[hidden] {
  display: none !important;
}

.catch-identification-result__preview {
  width: 132px;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  background: var(--header);
}

.catch-identification-result__body {
  min-width: 0;
  padding: 13px 14px;
}

.catch-identification-result__heading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.catch-identification-result__heading strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.identification-confidence {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 6px;
  color: var(--sea-text);
  background: var(--panel);
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.catch-identification-result p,
.catch-identification-result ul {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: .72rem;
  line-height: 1.5;
}

.catch-identification-result ul {
  padding-left: 17px;
}

.catch-identification-result__alternatives {
  color: var(--ink);
}

.identification-comparison-note {
  padding: 8px 10px;
  border-left: 3px solid var(--sea-text);
  border-radius: 7px;
  background: var(--panel-soft);
  color: var(--ink) !important;
}

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

.identification-candidate {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
}

.identification-candidate.is-top-rank {
  border-color: var(--sea-text);
}

.identification-candidate__rank {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  color: var(--sea-text);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.identification-candidate h3 {
  margin: 7px 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.identification-candidate .button {
  width: 100%;
  padding: 8px 9px;
  font-size: .66rem;
}

.identification-candidate__actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.identification-candidate__actions a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.catch-identification-result__actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.catch-identification-result__actions .button {
  padding: 8px 10px;
  font-size: .68rem;
}

.catch-identification-result__disclaimer {
  flex: 1 1 240px;
  color: var(--danger-text) !important;
  font-size: .62rem !important;
}

.identification-feedback {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
}

.identification-feedback__buttons {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.identification-feedback__buttons .button {
  flex: 1 1 90px;
  padding: 8px;
  font-size: .66rem;
}

.identification-feedback__buttons .button.is-active {
  color: #fffdf7;
  border-color: var(--sea-text);
  background: var(--sea-dark);
}

.catch-media-license-notice {
  margin-top: 12px;
  padding: 11px 12px;
  border-left: 3px solid var(--sea-text);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink-soft);
}

.catch-media-license-notice > strong {
  color: var(--ink);
  font-size: .72rem;
}

.catch-media-license-notice p {
  margin: 5px 0 0;
  font-size: .64rem;
  line-height: 1.45;
}

.sighting-popup-card__delete {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--danger-line);
  border-radius: 8px;
  padding: 7px 9px;
  color: var(--danger-text);
  background: var(--danger-surface);
  cursor: pointer;
  font: inherit;
  font-size: .62rem;
  font-weight: 800;
}

.catch-privacy-option {
  cursor: pointer;
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 15px;
  color: var(--ink);
  font-size: .75rem;
  font-weight: 760;
}

.catch-privacy-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--sea-text);
}

.success-box {
  margin-top: 13px;
  border: 1px solid rgba(47,107,63,.25);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--sea-text);
  background: var(--paper);
  font-size: .75rem;
  font-weight: 760;
}

@media (max-width: 620px) {
  .workspace-header__actions,
  .prompt-dialog__actions {
    width: 100%;
  }

  .workspace-header__actions .button {
    flex: 1 1 0;
  }

  .trip-chat-message {
    max-width: 92%;
    padding: 11px 13px;
  }

  .trip-follow-up-form {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 5px;
    padding: 5px;
  }

  .catch-form-grid {
    grid-template-columns: 1fr;
  }

  .catch-form-grid .field--wide {
    grid-column: auto;
  }

  .catch-media-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .catch-media-picker label.button {
    flex: 1 1 calc(50% - 5px);
  }

  #catch-media-name {
    flex-basis: 100%;
  }

  .catch-identification-result {
    grid-template-columns: 1fr;
  }

  .catch-identification-result__preview {
    width: 100%;
    height: 180px;
    min-height: 0;
  }

  .identification-candidate-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .weather-detail-grid,
  .species-guide-hero,
  .species-area-grid {
    grid-template-columns: 1fr;
  }

  .depth-guide__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

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

  .species-detail-link--action {
    display: inline-block;
    margin-top: 10px;
  }
}

/* Compact selected-location strip. The map remains the primary surface. */
.app-bar {
  min-height: 92px;
  padding: 8px clamp(12px, 2vw, 24px);
}

.app-bar .wind-hud {
  position: static;
  z-index: auto;
  width: 100%;
  max-width: none;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 0 44px 0 0;
  color: #f8fbf4;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  display: grid;
  grid-template-columns:
    minmax(220px, 1.25fr)
    minmax(250px, 1fr)
    minmax(220px, .9fr);
  grid-template-rows: auto auto;
  gap: 4px 24px;
  align-items: center;
}

.app-bar .wind-hud__topline {
  grid-row: 1 / 3;
  min-width: 0;
  align-items: center;
}

.app-bar .wind-hud__topline > div {
  min-width: 0;
}

.app-bar .wind-hud__topline strong {
  max-width: none;
  color: #f8fbf4;
  font-size: 1rem;
}

.app-bar .wind-hud__topline > div > span,
.app-bar .wind-hud__metric small,
.app-bar .wind-hud__timeline > span,
.app-bar .wind-note,
.app-bar .mini-label {
  color: var(--sun);
}

.app-bar .source-pill {
  border-color: rgba(255,255,255,.18);
  color: #f8fbf4;
  background: rgba(47,107,63,.42);
}

.app-bar .wind-hud__loading {
  grid-column: 2;
  grid-row: 1 / 3;
  margin: 0;
  color: var(--sun);
}

.app-bar .wind-hud__readout {
  grid-column: 2;
  grid-row: 1 / 3;
  margin: 0;
}

.app-bar .wind-hud__metric strong {
  color: #f8fbf4;
}

.app-bar .wind-arrow {
  border-color: rgba(255,255,255,.18);
  color: #f8fbf4;
  background: rgba(47,107,63,.42);
}

.app-bar .wind-hud__timeline {
  grid-column: 3;
  grid-row: 1;
  margin: 0;
}

.app-bar .wind-time-button {
  border-color: rgba(255,255,255,.16);
  color: var(--paper);
  background: rgba(255,255,255,.08);
}

.app-bar .wind-time-button--active {
  color: var(--cream-ink);
  background: var(--sun);
}

.app-bar .wind-play-button {
  border-color: rgba(255,255,255,.18);
  color: #f8fbf4;
  background: rgba(47,107,63,.68);
}

.app-bar .wind-note {
  grid-column: 3;
  grid-row: 2;
  margin: 0;
}

.map-stage {
  height: calc(100svh - 92px);
}

.workspace-content {
  width: min(1000px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.fishing-results {
  align-items: start;
}

.fishing-results .conditions-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.refine-panel {
  overflow: hidden;
}

.refine-panel[hidden] {
  display: none !important;
}

.refine-panel > summary {
  cursor: pointer;
  padding: 20px clamp(22px, 4vw, 36px);
  color: var(--sea-text);
  list-style: none;
  display: flex;
  align-items: center;
}

.refine-panel > summary::-webkit-details-marker {
  display: none;
}

.refine-panel > summary::after {
  margin-left: auto;
  content: "+";
  font-size: 1.45rem;
  font-weight: 500;
}

.refine-panel[open] > summary::after {
  content: "−";
}

.refine-panel > summary strong,
.refine-panel > summary small {
  display: block;
}

.refine-panel > summary small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: .74rem;
}

.refine-panel form {
  padding: 6px clamp(22px, 4vw, 36px) 30px;
  border-top: 1px solid var(--line);
}

.refine-panel .actions {
  display: block;
}

.refine-panel .actions .button {
  width: 100%;
}

@media (max-width: 720px) {
  .app-bar {
    min-height: 126px;
    padding: 7px 10px;
  }

  .app-bar .wind-hud {
    grid-template-columns: minmax(0, 1fr) minmax(116px, .72fr);
    grid-template-rows: auto auto;
    gap: 5px 10px;
  }

  .app-bar .wind-hud__topline {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .app-bar .wind-hud__topline strong {
    font-size: .82rem;
  }

  .app-bar .wind-hud__topline > div > span {
    font-size: .55rem;
  }

  .app-bar .wind-hud__loading {
    grid-column: 1 / 3;
    grid-row: 2;
    font-size: .65rem;
  }

  .app-bar .wind-hud__readout {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: 30px minmax(0, .9fr) minmax(0, 1fr);
    gap: 6px;
  }

  .app-bar .wind-hud .wind-arrow {
    width: 28px;
    height: 28px;
    font-size: .95rem;
  }

  .app-bar .wind-hud__metric strong {
    font-size: .7rem;
  }

  .app-bar .wind-hud__metric small,
  .app-bar .mini-label {
    font-size: .52rem;
  }

  .app-bar .wind-hud__timeline {
    grid-column: 2;
    grid-row: 2;
    display: block;
  }

  .app-bar .wind-hud__timeline > span {
    display: block;
    margin-top: 3px;
    font-size: .52rem;
  }

  .app-bar .wind-note {
    display: none;
  }

  .app-bar .wind-time-button {
    padding: 4px 2px;
    font-size: .52rem;
  }

  .map-stage {
    min-height: 560px;
    height: calc(100svh - 126px);
  }

  .fishing-workspace {
    min-height: calc(100svh - 126px);
  }

  .workspace-header {
    align-items: flex-start;
  }

  .workspace-header h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .workspace-content {
    width: min(100% - 20px, 1000px);
  }
}

/* Streamlined map-first controls */
.app-bar {
  min-height: 58px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.app-brand__mark {
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
}

.app-brand strong {
  font-size: 1.08rem;
}

.app-bar .status {
  padding: 7px 10px;
  font-size: .72rem;
}

.map-stage {
  min-height: 620px;
  height: calc(100svh - 58px);
}

.map-hint {
  position: absolute;
  z-index: 650;
  top: 12px;
  left: 50%;
  width: fit-content;
  border: 1px solid rgba(23,38,29,.12);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--glass);
  box-shadow: 0 8px 24px rgba(23,38,29,.1);
  font-size: .7rem;
  font-weight: 780;
  pointer-events: none;
  transform: translateX(-50%);
  animation: map-hint-away .35s ease 4.5s forwards;
  backdrop-filter: blur(8px);
}

.map-hint--error {
  color: var(--danger-text);
  animation: none;
}

@keyframes map-hint-away {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.map-utility-controls {
  position: fixed;
  z-index: 650;
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  left: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.wind-speed-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  border: 1px solid rgba(23,38,29,.12);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--ink);
  background: var(--glass);
  box-shadow: 0 7px 18px rgba(23,38,29,.1);
  font-size: .59rem;
  font-weight: 760;
  line-height: 1;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.wind-speed-legend span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.wind-speed-legend small {
  color: var(--ink-soft);
  font-size: .52rem;
  font-weight: 760;
}

.wind-speed-legend__swatch {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(23,38,29,.1);
}

.wind-speed-legend__swatch--green {
  background: #16a34a;
}

.wind-speed-legend__swatch--blue {
  background: #2563eb;
}

.wind-speed-legend__swatch--red {
  background: #dc2626;
}

.wind-hud {
  position: absolute;
  z-index: 650;
  top: 12px;
  left: 12px;
  width: min(340px, calc(100% - 90px));
  border: 1px solid rgba(23,38,29,.12);
  border-radius: 15px;
  padding: 12px;
  background: var(--glass);
  box-shadow: 0 12px 34px rgba(23,38,29,.14);
  backdrop-filter: blur(10px);
}

.wind-hud__topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.wind-hud__topline strong,
.wind-hud__topline span {
  display: block;
}

.wind-hud__topline strong {
  overflow: hidden;
  max-width: 230px;
  color: var(--ink);
  font-size: .83rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wind-hud__topline > div > span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: .61rem;
}

.wind-hud__loading {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: .72rem;
}

.wind-hud__readout {
  display: grid;
  grid-template-columns: 38px minmax(0, .9fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 11px;
}

.wind-hud__metric {
  min-width: 0;
}

.wind-hud__metric strong,
.wind-hud__metric small {
  display: block;
}

.wind-hud__metric strong {
  overflow: hidden;
  margin-top: 3px;
  color: var(--sea-text);
  font-size: .82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wind-hud__metric small {
  overflow: hidden;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: .6rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wind-hud .wind-arrow {
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
}

.wind-hud__timeline {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 10px;
}

.wind-hud__timeline > span {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: .6rem;
}

.wind-hud .wind-time-options {
  flex: 1 1 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-top: 0;
}

.wind-hud .wind-time-button {
  border-radius: 7px;
  padding: 5px 4px;
  font-size: .6rem;
}

.wind-hud .wind-note {
  margin-top: 6px;
  font-size: .58rem;
}

.map-actions {
  position: absolute;
  z-index: 700;
  right: 13px;
  bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.map-action-item {
  display: grid;
  justify-items: center;
  gap: 3px;
}

#map-live-vision-control {
  display: none !important;
}

.map-action-item > span {
  border-radius: 999px;
  padding: 2px 6px;
  color: var(--ink);
  background: var(--glass);
  box-shadow: 0 4px 12px rgba(23,38,29,.08);
  font-size: .56rem;
  font-weight: 800;
}

.map-action {
  cursor: pointer;
  width: 50px;
  height: 50px;
  border: 2px solid var(--glass);
  border-radius: 50%;
  color: #fff;
  background: var(--sea);
  box-shadow: 0 10px 26px rgba(23,38,29,.2);
  display: grid;
  place-items: center;
  transition: transform .15s ease, opacity .15s ease;
}

.map-action:hover {
  transform: translateY(-2px);
}

.map-action--ask {
  background: var(--header);
}

.map-action--live {
  color: var(--cream);
  background: var(--sea-dark);
}

.map-action--sightings {
  color: var(--sea-text);
  background: var(--panel);
}

.map-action--sightings.is-active {
  color: #fff;
  background: var(--sea-dark);
  box-shadow:
    0 0 0 4px rgba(47,107,63,.18),
    0 10px 26px rgba(23,38,29,.24);
}

.map-action--weather {
  color: var(--cream-ink);
  background: var(--sun);
}

.map-action:disabled {
  cursor: not-allowed;
  opacity: .42;
  transform: none;
}

.map-action svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.sightings-status {
  position: absolute;
  z-index: 710;
  bottom: 50px;
  left: 10px;
  max-width: min(430px, calc(100% - 86px));
  border: 1px solid rgba(23,38,29,.12);
  border-radius: 999px;
  padding: 7px 8px 7px 12px;
  color: var(--ink);
  background: var(--glass);
  box-shadow: 0 8px 22px rgba(23,38,29,.14);
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: .65rem;
  font-weight: 760;
  line-height: 1.35;
  backdrop-filter: blur(8px);
}

.sightings-status[hidden] {
  display: none !important;
}

.sightings-status--error {
  color: var(--danger-text);
  background: var(--danger-surface);
}

.sightings-status button {
  cursor: pointer;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.fish-sighting-popup .leaflet-popup-content-wrapper {
  overflow: hidden;
  border: 1px solid rgba(23,38,29,.1);
  border-radius: 16px;
  padding: 0;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 16px 42px rgba(23,38,29,.22);
}

.fish-sighting-popup .leaflet-popup-content {
  width: 248px !important;
  margin: 0;
}

.fish-sighting-popup .leaflet-popup-tip {
  background: var(--panel);
}

.sighting-popup-card figure {
  margin: 0;
  background: var(--header);
}

.sighting-popup-card img {
  width: 100%;
  height: 138px;
  object-fit: cover;
  display: block;
}

.sighting-popup-card figcaption {
  overflow: hidden;
  padding: 5px 9px;
  color: var(--paper);
  font-size: .54rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sighting-popup-card__body {
  padding: 13px;
}

.sighting-popup-card__body > span,
.sighting-popup-card__body > strong,
.sighting-popup-card__body > small {
  display: block;
}

.sighting-popup-card__body > span {
  color: var(--sea-text);
  font-size: .58rem;
  font-weight: 820;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sighting-popup-card__body > strong {
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 500;
}

.sighting-popup-card__body > small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: .66rem;
  line-height: 1.4;
}

.sighting-popup-card__coordinates {
  margin: 10px 0 0;
  border-left: 3px solid var(--sea);
  border-radius: 7px;
  padding: 8px 9px;
  color: var(--ink);
  background: var(--paper);
  font-size: .64rem;
  line-height: 1.45;
}

.sighting-popup-card__coordinates--obscured {
  border-left-color: var(--sun);
}

.sighting-popup-card__details {
  cursor: pointer;
  width: 100%;
  margin-top: 11px;
  border: 0;
  border-radius: 9px;
  padding: 9px 10px;
  color: #fff;
  background: var(--sea);
  font-size: .7rem;
  font-weight: 780;
}

.sighting-detail-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.sighting-detail-card__photo {
  margin: 0;
  background: var(--header);
}

.sighting-detail-card__photo img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  display: block;
}

.sighting-detail-card__photo figcaption {
  padding: 8px 12px;
  color: var(--paper);
  font-size: .65rem;
  line-height: 1.4;
}

.sighting-detail-card__body {
  padding: clamp(18px, 4vw, 28px);
}

.sighting-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}

.sighting-detail-grid > div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: var(--surface);
}

.sighting-detail-grid span,
.sighting-detail-grid strong {
  display: block;
}

.sighting-detail-grid span {
  color: var(--ink-soft);
  font-size: .62rem;
  font-weight: 760;
  text-transform: uppercase;
}

.sighting-detail-grid strong {
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: .78rem;
  line-height: 1.4;
}

.sighting-detail-card__link {
  display: inline-block;
  margin-top: 16px;
  border-radius: 9px;
  padding: 10px 13px;
  color: #fff;
  background: var(--sea-dark);
  font-size: .74rem;
  font-weight: 780;
  text-decoration: none;
}

@media (max-width: 520px) {
  .sightings-status {
    bottom: 43px;
    left: 7px;
    max-width: calc(100% - 72px);
    font-size: .58rem;
  }

  .sighting-detail-grid {
    grid-template-columns: 1fr;
  }
}

.wind-streak {
  width: 105px;
}

.wind-streak::after {
  width: var(--streak-length, 38px);
  box-shadow:
    13px 0 0 -0.5px rgba(255,253,247,.72),
    27px 0 0 -0.8px rgba(255,253,247,.4);
}

.fishing-workspace {
  min-height: calc(100svh - 58px);
}

.map-hint.is-hidden,
.wind-hud.is-hidden,
.wind-hud__readout.is-hidden,
.wind-time-options.is-hidden {
  display: none;
}

@media (max-width: 520px) {
  .app-bar {
    min-height: 54px;
    padding: 7px 10px;
  }

  .theme-toggle {
    right: 6px;
    width: 30px;
    height: 30px;
    font-size: .9rem;
  }

  .app-brand__mark {
    width: 32px;
    height: 32px;
  }

  .app-bar .status {
    max-width: none;
    padding: 6px 8px;
    font-size: .64rem;
  }

  .map-stage {
    min-height: 600px;
    height: calc(100svh - 54px);
  }

  .map-hint {
    top: 8px;
    padding: 7px 10px;
    font-size: .64rem;
  }

  .wind-hud {
    top: 8px;
    left: 8px;
    width: calc(100% - 74px);
    border-radius: 13px;
    padding: 10px;
  }

  .wind-hud__readout {
    grid-template-columns: 34px minmax(0, .9fr) minmax(0, 1fr);
    gap: 7px;
  }

  .wind-hud .wind-arrow {
    width: 32px;
    height: 32px;
  }

  .wind-hud__timeline {
    display: block;
  }

  .wind-hud__timeline > span {
    display: block;
    margin-top: 5px;
  }

  .map-utility-controls {
    bottom: max(7px, env(safe-area-inset-bottom, 0px));
    left: 7px;
    gap: 5px;
  }

  .wind-speed-legend {
    gap: 5px;
    min-height: 28px;
    padding: 4px 7px;
    font-size: .54rem;
  }

  .wind-speed-legend small {
    font-size: .48rem;
  }

  .map-actions {
    right: 9px;
    bottom: 43px;
    gap: 8px;
  }

  .map-action {
    width: 46px;
    height: 46px;
  }

  .map-action svg {
    width: 23px;
    height: 23px;
  }

  .fishing-workspace {
    min-height: calc(100svh - 54px);
  }
}


.regulation-preview {
  display: block;
  margin-top: 9px;
  border-left: 3px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--paper);
  text-align: left;
}

.regulation-preview strong,
.regulation-preview span {
  display: block;
}

.regulation-preview strong {
  font-size: .66rem;
}

.regulation-preview span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: .6rem;
  line-height: 1.4;
}

.regulation-preview--open {
  border-left-color: var(--sea-text);
}

.regulation-preview--caution {
  border-left-color: var(--sun);
}

.regulation-preview--closed {
  border-left-color: var(--alert);
}

.regulation-status {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--paper);
}

.regulation-status strong,
.regulation-status span {
  display: block;
}

.regulation-status strong {
  color: var(--ink);
  font-size: .78rem;
}

.regulation-status span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: .68rem;
  line-height: 1.5;
}

.regulation-status--open {
  border-left-color: var(--sea-text);
}

.regulation-status--caution {
  border-left-color: var(--sun);
}

.regulation-status--closed {
  border-left-color: var(--alert);
}

/* V24: map-source/valid-time status, separate from selected-point weather. */
.wind-map-status {
  position: absolute;
  left: 10px;
  bottom: 49px;
  z-index: 650;
  max-width: calc(100% - 88px);
  background: var(--surface, #17241b);
  color: var(--text, #edf0e6);
  border: 1px solid #42654b;
  border-radius: 12px;
  padding: 6px 9px;
  font: 11px/1.3 Arial, sans-serif;
  cursor: pointer;
}
.wind-map-status--error { color: #f5bdad; }

/* Build 61: observation buoys are separate from forecast/wind colors. */
.map-data-status { position: absolute; left: 10px; bottom: 49px; z-index: 650;
  max-width: calc(100% - 88px); display: grid; justify-items: start; gap: 5px; pointer-events: none; }
.map-data-status .wind-map-status, .buoy-map-status { position: static; max-width: 100%; pointer-events: auto; }
.buoy-map-status { background: var(--surface, #17241b); color: var(--text, #edf0e6);
  border: 1px solid #42654b; border-radius: 12px; padding: 6px 9px; font: 11px/1.3 Arial, sans-serif; cursor: pointer; }
.buoy-map-status--error { color: #f5bdad; }
.buoy-map-marker { background: transparent; border: 0; display: grid; place-items: center; }
.buoy-map-marker svg { width: 20.655px; height: 23.715px; fill: none; stroke: #123c28; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 2px #fffdf7); }
.buoy-map-marker .buoy-fill { fill: #f2d58a; }
.buoy-map-marker--older .buoy-fill, .buoy-map-marker--unavailable .buoy-fill,
.buoy-map-marker--time_unknown .buoy-fill { fill: #bdc7c2; }
.buoy-map-marker:focus-visible { outline: 3px solid #e6bb5c; border-radius: 10px; }
.location-map .leaflet-tooltip.buoy-map-label { background: #173c29; color: #f5e7bf; border: 1px solid #c5d8c5;
  border-radius: 5px; padding: 2px 5px; font: 700 10px/1.2 Arial, sans-serif; box-shadow: none; }
.location-map .buoy-map-label::before { display: none; }
.buoy-map-popup .leaflet-popup-content-wrapper, .buoy-map-popup .leaflet-popup-tip { background: var(--panel); color: var(--ink); }
.buoy-map-popup .leaflet-popup-content { margin: 16px; }
.buoy-card__source { color: var(--sea-text); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.buoy-card__name { display: block; font: 700 18px/1.25 Georgia, serif; margin-top: 6px; }
.buoy-card .buoy-card__time { margin: 10px 0; font-size: 11px; line-height: 1.5; color: var(--ink-soft); }
.buoy-card dl { margin: 0; }
.buoy-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.buoy-card dt { font-size: 12px; }
.buoy-card dd { margin: 0; font-size: 12px; font-weight: 700; text-align: right; }
.buoy-card .buoy-card__note { font-size: 11px; line-height: 1.4; margin: 10px 0; color: var(--ink-soft); }
.buoy-card > a { display: block; margin-top: 10px; color: var(--sea-text); font-weight: 700; }

/* Navigation buoy body colors come from the Coast Guard, not wind speed. */
.navigation-buoy-marker { background: transparent; border: 0; display: grid; place-items: center; }
.navigation-buoy-marker svg { width: 22.95px; height: 26.01px; }
.navigation-buoy__outline { fill: #fffdf2; stroke: #fffdf2; stroke-width: 5; stroke-linejoin: round; }
.navigation-buoy-marker:focus-visible { outline: 3px solid #e6bb5c; border-radius: 9px; }
.navigation-buoy-card__description { font-size: 12px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.location-map .leaflet-tooltip.navigation-buoy-label { background: #fff9e8; color: #183d27; border-color: #284b34; }
.navigation-buoy-card dd { max-width: 65%; overflow-wrap: anywhere; }

.oil-platform-marker { background: transparent; border: 0; display: grid; place-items: center; }
.oil-platform-marker svg { width: 29px; height: 29px; }
.oil-platform-marker:focus-visible { outline: 3px solid #e6bb5c; border-radius: 8px; }
.location-map .leaflet-tooltip.oil-platform-label { background: #403923; color: #fff4d5; border-color: #c3a664; }
.oil-platform-card dd { max-width: 65%; overflow-wrap: anywhere; }
.oil-platform-card__description { font-size: 12px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }

/* Build 58: source detail stays in the weather workspace. */
.forecast-provenance { border-left: 3px solid var(--accent, #7dad82); padding: .25rem 1rem; margin: 1rem 0 1.5rem; overflow-wrap: anywhere; }
.forecast-provenance p { margin: .4rem 0; }
.forecast-provenance summary, .forecast-alert summary { cursor: pointer; }
.forecast-alert-heading { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.forecast-alert-heading span { font-size: .85rem; font-weight: bold; }
.forecast-alert p { margin: .6rem 0; }
.forecast-alert-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.wave-comparison { border-top: 1px solid var(--border, #36563b); margin: 1.5rem 0; padding-top: 1.25rem; }
.wave-comparison select { margin: .5rem; max-width: 100%; }
.wave-comparison [data-wave-results] { margin-top: 1rem; overflow-wrap: anywhere; }
.comparison-table { min-width: 650px; }

/* v65 account controls follow the existing green/cream palette. */
.account-dialog { box-sizing: border-box; width: min(580px, calc(100vw - 24px)); max-height: 88dvh; overflow: auto; padding: 24px; border: 1px solid #497653; border-radius: 20px; background: #142219; color: #f5efd8; }
.account-dialog::backdrop { background: #07130dc9; }
.account-dialog [hidden] { display: none !important; }
.account-dialog h2 { margin: 0; font-size: 1.65rem; }
.account-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-dialog label { display: block; margin-top: 16px; margin-bottom: 6px; }
.account-dialog input, .account-dialog textarea, .account-dialog select { box-sizing: border-box; width: 100%; padding: 10px; min-height: 44px; background: #09130d; color: #f5efd8; border: 1px solid #65816a; border-radius: 8px; }
.account-dialog textarea { min-height: 110px; }
.account-dialog button, .answer-report-button { min-height: 44px; margin: 10px 6px 0 0; padding: 8px 12px; border: 1px solid #6c9576; border-radius: 10px; background: #1b4d2e; color: #f5efd8; cursor: pointer; }
.account-dialog a { color: #b8d9ae; text-decoration: underline; }
.account-dialog p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.account-dialog details { padding: 12px 0; border-top: 1px solid #43634b; margin-top: 14px; }
.account-dialog summary { cursor: pointer; min-height: 32px; }
.account-dialog button:disabled { opacity: .55; cursor: wait; }
.account-delete button { background: #692f28; }
