.sw-icon { width: 24px; height: 24px; flex: 0 0 auto; }

.phase-gate {
  display: grid;
  min-height: 100vh;
  place-content: center;
  padding: 32px;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, #e5faf9, transparent 34%), var(--sw-canvas);
}

.phase-gate span { color: var(--sw-teal-700); font-size: 18px; font-weight: 750; }
.phase-gate h1 { max-width: 640px; margin: 14px auto 8px; font-size: clamp(28px, 5vw, 48px); letter-spacing: -.04em; }
.phase-gate p { margin: 0; color: var(--sw-text-soft); }

.app-shell { min-height: 100vh; }
.app-stage { min-width: 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sw-navy-900);
  text-decoration: none;
}

.brand-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: block;
  border-radius: 50%;
  object-fit: contain;
}
.brand-word { font-size: 26px; font-weight: 770; letter-spacing: -.04em; }

.desktop-rail, .desktop-topbar { display: none; }

.ask-floating-bubble {
  position: fixed;
  z-index: 38;
  right: 16px;
  bottom: calc(var(--sw-bottom-nav-height) + env(safe-area-inset-bottom) + 12px);
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 999px;
  background: linear-gradient(120deg, var(--sw-navy-900), var(--sw-teal-700));
  box-shadow: 0 12px 30px rgb(2 33 58 / 28%);
  color: white;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}
.ask-floating-bubble .ask-label-mobile { display: inline; }
.ask-floating-bubble .ask-label-desktop { display: none; }

@media (max-width: 839px) {
  .ask-floating-bubble {
    width: auto;
    justify-content: center;
    padding: 0 14px;
  }
  .ask-floating-bubble span { display: inline; }
}

.home-page {
  width: 100%;
  max-width: var(--sw-content-max);
  margin: 0 auto;
  padding: env(safe-area-inset-top) 16px calc(var(--sw-bottom-nav-height) + env(safe-area-inset-bottom) + 28px);
}

.mobile-header {
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 7px 1px 0;
}

.mobile-header-spacer, .topbar-spacer { flex: 1; }

.icon-button, .avatar, .profile-button, .selector, .mode-switch button, .section-heading :is(button, a),
.primary-cta, .target-card, .area-card, .rail-help {
  border: 0;
  cursor: pointer;
}

.icon-button {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: transparent;
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border: 1px solid white;
  border-radius: 50%;
  background: var(--sw-aqua-400);
}

.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 2px solid white;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--sw-navy-800), var(--sw-teal-500));
  box-shadow: 0 0 0 1px var(--sw-line);
  color: white;
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}
.avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }

.mobile-filters {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(118px, .8fr);
  gap: 10px;
  margin: 7px 0;
}

.selector {
  display: flex;
  min-width: 0;
  min-height: 43px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius-pill);
  background: var(--sw-surface);
  color: var(--sw-text);
  white-space: nowrap;
}

.selector .sw-icon:first-child { width: 21px; color: var(--sw-navy-700); }
.selector .sw-icon:last-child { width: 18px; margin-left: auto; }
.selector span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.home-title-row { display: none; }
.mobile-mode { margin: 6px 0 10px; }

.mode-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius-pill);
  background: #f9fbfd;
}

.mode-switch button {
  display: flex;
  min-height: 41px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: var(--sw-radius-pill);
  background: transparent;
  color: var(--sw-text-soft);
  font-weight: 650;
  transition: color var(--sw-duration), background var(--sw-duration), box-shadow var(--sw-duration);
}

.mode-switch button.is-active {
  background: linear-gradient(110deg, var(--sw-navy-900), var(--sw-teal-700));
  box-shadow: 0 5px 14px rgb(7 45 80 / 18%);
  color: white;
}

.mode-switch .sw-icon { width: 21px; }
.mask-icon { font-size: 22px; line-height: 1; }

.hero-card {
  position: relative;
  min-height: 232px;
  overflow: hidden;
  border-radius: var(--sw-radius-xl);
  background: var(--sw-navy-900);
  box-shadow: var(--sw-shadow-card);
  color: white;
  isolation: isolate;
}

.hero-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgb(4 30 58 / 94%) 0%, rgb(4 46 73 / 68%) 48%, transparent 82%);
  content: '';
}

.hero-backdrop {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: absolute;
  z-index: 3;
  inset: 0 auto 0 0;
  display: flex;
  width: 64%;
  min-width: 0;
  box-sizing: border-box;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 0 14px 20px;
}

.hero-copy p { margin: 0 0 5px; color: rgb(255 255 255 / 78%); font-size: 13px; font-weight: 600; }
.hero-copy h2 { margin: 0; font-size: clamp(29px, 8vw, 38px); line-height: 1; letter-spacing: -.05em; }

.hero-score { display: flex; align-items: baseline; gap: 8px; margin-top: 9px; color: var(--sw-aqua-400); }
.hero-score strong { font-size: 43px; line-height: .9; letter-spacing: -.055em; }
.hero-score span { font-size: 14px; font-weight: 700; }
.forecast-score-basis { display: block; margin-top: 5px; color: rgb(221 255 252 / 86%); font-size: 8px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.target-score-basis { color: var(--sw-text-muted); font-size: 7px; font-weight: 750; line-height: 1.2; text-transform: uppercase; }

.hero-meta { display: grid; gap: 4px; margin-top: 8px; color: rgb(255 255 255 / 84%); font-size: 10px; }
.hero-meta span { display: flex; align-items: center; gap: 7px; }
.hero-meta .sw-icon { width: 14px; height: 14px; color: var(--sw-aqua-400); }
.forecast-regulation { display: inline-flex; max-width: 100%; align-items: center; gap: 5px; margin-top: 6px; color: #bff4ed; font-size: 8px; font-weight: 720; line-height: 1.2; }
.forecast-regulation .sw-icon { width: 13px; min-width: 13px; }
.forecast-regulation[data-status="CATCH_AND_RELEASE_ONLY"],
.forecast-regulation[data-status="NEEDS_LIVE_VERIFICATION"],
.forecast-regulation[data-status="REGULATORY_AREA_UNCERTAIN"],
.forecast-regulation[data-status="REGULATION_NOT_RESOLVED"] { color: #ffe18c; }

.primary-cta {
  position: relative;
  z-index: 4;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 0 16px;
  border-radius: var(--sw-radius-pill);
  background: white;
  box-shadow: 0 9px 22px rgb(3 24 45 / 18%);
  color: var(--sw-navy-900);
  font-weight: 720;
  text-decoration: none;
}

.primary-cta .sw-icon { width: 18px; }
.hero-copy .primary-cta { flex: 0 0 auto; margin-top: auto; }

.hero-fish {
  position: absolute;
  z-index: 1;
  top: 13%;
  right: 3%;
  width: 50%;
  height: 68%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 18px 16px rgb(1 29 47 / 35%));
  transform: scaleX(-1);
  pointer-events: none;
}

.section-heading {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 7px;
}

.section-heading h2 { margin: 0; font-size: 16px; letter-spacing: -.025em; }
.section-heading :is(button, a) {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  padding: 0 2px 0 12px;
  background: transparent;
  color: var(--sw-text-soft);
  font-size: 14px;
  text-decoration: none;
}
.section-heading :is(button, a):empty { display: none; }
.section-heading :is(button, a) .sw-icon { width: 17px; }

.target-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  overflow-x: visible;
  padding: 2px 1px 12px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.target-grid::-webkit-scrollbar { display: none; }

.target-card {
  position: relative;
  display: flex;
  min-height: 104px;
  flex-direction: column;
  overflow: hidden;
  padding: 7px 7px 6px;
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius-lg);
  background: var(--sw-surface);
  box-shadow: var(--sw-shadow-card);
  text-align: left;
  scroll-snap-align: start;
}

.target-card:hover { border-color: #9bcfd0; transform: translateY(-1px); }
.target-card, .area-card { transition: transform var(--sw-duration) var(--sw-ease), border-color var(--sw-duration); }
.target-card .target-index { display: none; }
.target-name { position: relative; z-index: 2; min-height: 18px; font-size: 8px; font-weight: 700; line-height: 1.1; }
.target-card img { width: 100%; height: 27px; object-fit: contain; filter: drop-shadow(0 6px 6px rgb(8 36 63 / 15%)); }
.target-card.is-muted img { filter: saturate(.45) drop-shadow(0 8px 8px rgb(8 36 63 / 15%)); }
.target-card .forecast-regulation { margin: 1px 0 3px; color: var(--sw-teal-700); font-size: 6px; }
.target-card .forecast-regulation[data-status="CATCH_AND_RELEASE_ONLY"],
.target-card .forecast-regulation[data-status="NEEDS_LIVE_VERIFICATION"],
.target-card .forecast-regulation[data-status="REGULATORY_AREA_UNCERTAIN"],
.target-card .forecast-regulation[data-status="REGULATION_NOT_RESOLVED"] { color: #8a6400; }
.target-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; color: var(--sw-teal-700); }
.target-footer strong { font-size: 17px; line-height: 1; }
.target-footer .sw-icon { width: 16px; color: var(--sw-text-muted); }

.condition-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.condition-card {
  display: grid;
  min-width: 0;
  min-height: 50px;
  place-items: center;
  gap: 3px;
  margin: 0;
  padding: 5px 3px;
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius-md);
  background: var(--sw-surface);
  box-shadow: var(--sw-shadow-card);
  text-align: center;
}
.condition-card > .sw-icon { width: 17px; height: 17px; color: var(--sw-teal-700); }
.condition-card span { min-width: 0; }
.condition-card strong, .condition-card small { display: block; white-space: nowrap; }
.condition-card strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; }
.condition-card small { margin-top: 1px; color: var(--sw-text-soft); font-size: 9px; }

.window-card {
  position: relative;
  margin: 0;
  padding: 8px 9px 14px;
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius-lg);
  background: var(--sw-surface);
  box-shadow: var(--sw-shadow-card);
}

.chart-legend { display: flex; justify-content: flex-end; gap: 12px; color: var(--sw-text-soft); font-size: 9px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 50%; }
.chart-legend .best, .bar.best { background: var(--sw-teal-700); }
.chart-legend .good, .bar.good { background: #67c8ca; }
.chart-legend .fair, .bar.fair { background: #b2bac2; }

.window-chart {
  position: relative;
  display: flex;
  height: 55px;
  align-items: end;
  justify-content: space-between;
  gap: 3px;
  margin: 8px 4px 4px;
  padding-top: 12px;
  border-bottom: 1px solid #e7edf1;
}

.bar { width: 100%; min-width: 3px; max-width: 11px; height: var(--height); border-radius: 5px 5px 1px 1px; opacity: .98; }
.sun { position: absolute; top: 0; color: var(--sw-sun); font-size: 14px; }
.sun-am { left: 31%; }
.sun-pm { right: 19%; }
.chart-axis { display: flex; justify-content: space-between; color: var(--sw-text-muted); font-size: 8px; }
.now-pill {
  position: absolute;
  bottom: -10px;
  left: 0;
  padding: 3px 7px;
  border-radius: var(--sw-radius-pill);
  background: var(--sw-navy-900);
  color: white;
  font-size: 9px;
}

.area-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.area-card {
  position: relative;
  display: grid;
  min-height: 86px;
  grid-template-columns: 44% 1fr;
  align-items: center;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius-lg);
  background: var(--sw-surface);
  box-shadow: var(--sw-shadow-card);
  text-align: left;
}

.area-map {
  position: relative;
  align-self: stretch;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 22% 58%, #dbf6eb 0 13%, transparent 14%),
    radial-gradient(ellipse at 42% 56%, #b9eadf 0 14%, transparent 15%),
    radial-gradient(ellipse at 60% 48%, #6bc8c2 0 13%, transparent 14%),
    linear-gradient(145deg, #0a5580, #36b9c2 49%, #08709a);
}
.area-map::before, .area-map::after {
  position: absolute;
  width: 130%;
  height: 38px;
  border: 1px solid rgb(255 255 255 / 42%);
  border-radius: 50%;
  content: '';
  transform: rotate(-18deg);
}
.area-map::before { top: 18px; left: -30px; }
.area-map::after { top: 48px; left: -17px; }
.area-map--reef { filter: hue-rotate(-12deg) saturate(.84) brightness(1.08); }
.area-map.is-live { filter: none; background: #0a5580; }
.area-map.is-live::before, .area-map.is-live::after { display: none; }
.area-map .maplibregl-map, .area-map .maplibregl-canvas-container, .area-map .maplibregl-canvas { width: 100%; height: 100%; }
.area-snapshot-marker {
  display: block;
  width: 22px;
  height: 22px;
  border: 4px solid white;
  border-radius: 50%;
  background: var(--sw-teal-600);
  box-shadow: 0 4px 14px rgb(1 34 58 / 48%);
}
.area-map b {
  position: absolute;
  top: 48%; left: 53%; width: 22px; height: 22px;
  border: 6px solid rgb(255 255 255 / 86%);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--sw-teal-700), 0 0 0 7px rgb(15 157 158 / 22%);
}

.area-info { display: grid; min-width: 0; gap: 4px; padding: 8px 6px; align-self: start; }
.area-info strong { overflow: hidden; font-size: 12px; line-height: 1.15; text-overflow: ellipsis; }
.area-info small { display: flex; align-items: center; gap: 5px; color: var(--sw-text-soft); }
.area-info .sw-icon { width: 15px; color: var(--sw-teal-700); }
.area-info small { font-size: 9px; }
.area-info em { width: max-content; padding: 3px 7px; border-radius: 999px; background: #eaf1f5; color: var(--sw-text-soft); font-size: 8px; font-style: normal; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.area-card[data-opportunity-class="excellent"] { border-color: rgb(33 163 91 / 48%); }
.area-card[data-opportunity-class="excellent"] .area-info em { background: #dff5e7; color: #147a42; }
.area-card[data-opportunity-class="good"] { border-color: rgb(49 130 206 / 42%); }
.area-card[data-opportunity-class="good"] .area-info em { background: #e0effd; color: #1f5fa5; }
.area-card[data-opportunity-class="okay"] { border-color: rgb(232 137 169 / 52%); }
.area-card[data-opportunity-class="okay"] .area-info em { background: #fbe6ed; color: #a83f65; }
.area-card[data-opportunity-class="low"] .area-info em { background: #e9edf1; color: #657180; }
.area-score { position: absolute; right: 21px; bottom: 7px; color: var(--sw-teal-700); font-size: 20px; font-weight: 760; }
.area-card > .sw-icon { position: absolute; right: 4px; bottom: 9px; width: 14px; color: var(--sw-text-muted); }

.mobile-bottom-nav {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  height: calc(var(--sw-bottom-nav-height) + env(safe-area-inset-bottom));
  grid-template-columns: repeat(6, 1fr);
  align-items: start;
  padding: 7px 9px env(safe-area-inset-bottom);
  border-top: 1px solid var(--sw-line);
  background: rgb(255 255 255 / 96%);
  box-shadow: var(--sw-shadow-nav);
  backdrop-filter: blur(16px);
}

.nav-item {
  display: flex;
  min-width: 44px;
  min-height: 54px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 12px;
  color: var(--sw-text-soft);
  font-size: 10px;
  text-decoration: none;
}
.nav-item .sw-icon { width: 25px; height: 25px; }
.nav-item.is-active { color: var(--sw-navy-800); font-weight: 720; }
.nav-item.is-active .sw-icon { stroke-width: 2.2; }

@media (min-width: 600px) and (max-width: 959px) {
  .home-page { padding-right: 28px; padding-left: 28px; }
  .hero-card { min-height: 330px; }
  .hero-copy { width: 54%; padding: 38px; }
  .hero-fish { top: 13%; right: 3%; width: 50%; height: 68%; }
  .target-name { font-size: 13px; }
  .target-card img { height: 70px; }
}

@media (min-width: 960px) {
  .app-shell { display: grid; grid-template-columns: var(--sw-rail-width) minmax(0, 1fr); }
  .desktop-rail {
    position: fixed;
    z-index: 30;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: var(--sw-rail-width);
    flex-direction: column;
    align-items: center;
    border-right: 1px solid var(--sw-line);
    background: var(--sw-surface);
  }
  .desktop-rail .brand { width: 100%; height: var(--sw-topbar-height); justify-content: center; }
  .desktop-rail .brand-word { display: none; }
  .desktop-rail nav { display: grid; width: 100%; gap: 4px; padding: 16px 9px; }
  .desktop-rail .nav-item { min-height: 65px; font-size: 11px; }
  .desktop-rail .nav-item.is-active { background: var(--sw-sky-100); color: var(--sw-teal-700); }
  .desktop-rail .nav-item.is-active::before { position: absolute; left: 0; width: 3px; height: 34px; border-radius: 0 4px 4px 0; background: var(--sw-teal-600); content: ''; }
  .desktop-rail .nav-item { position: relative; }
  .rail-help { display: grid; width: 58px; height: 58px; place-items: center; gap: 1px; margin: auto 0 18px; border-radius: 16px; background: var(--sw-navy-900); color: white; font-size: 10px; text-decoration: none; }
  .rail-help .sw-icon { width: 21px; }

  .app-stage { grid-column: 2; min-height: 100vh; }
  .desktop-topbar {
    position: sticky;
    z-index: 15;
    top: 0;
    display: flex;
    min-height: var(--sw-topbar-height);
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-bottom: 1px solid var(--sw-line);
    background: rgb(255 255 255 / 94%);
    backdrop-filter: blur(18px);
  }
  .desktop-topbar .selector { min-height: 44px; }
  .profile-button { display: flex; min-height: 48px; align-items: center; gap: 10px; padding: 0 4px 0 7px; border-radius: 999px; background: transparent; color: var(--sw-text); font-weight: 650; text-decoration: none; }
  .profile-button .avatar { width: 36px; height: 36px; }
  .profile-button .sw-icon { width: 16px; }
  .mobile-bottom-nav, .mobile-header, .mobile-filters, .mobile-mode { display: none; }
  .ask-floating-bubble { right: 24px; bottom: 24px; }

  .home-page { padding: 32px clamp(28px, 3vw, 52px) 64px; }
  .home-title-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
  .home-title-row .eyebrow { margin: 0 0 5px; color: var(--sw-teal-700); font-weight: 720; }
  .home-title-row h1 { margin: 0; font-size: clamp(30px, 3vw, 44px); line-height: 1.05; letter-spacing: -.045em; }
  .home-title-row .mode-switch { width: 348px; flex: 0 0 auto; }
  .home-title-row .mode-switch button { min-height: 42px; }
  .daily-brief { grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; margin: 0 0 20px; padding: 14px 18px; }
  .daily-brief-icon { width: 46px; height: 46px; }
  .daily-brief strong { font-size: 16px; }
  .daily-brief span:not(.daily-brief-icon) { font-size: 11px; }
  .daily-brief-actions { grid-column: auto; }
  .daily-brief-actions :is(a, button) { min-height: 38px; padding: 0 14px; font-size: 10px; }

  .home-primary { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 22px; align-items: start; }
  .hero-card { min-height: 414px; }
  .hero-copy { width: 58%; padding: 38px; }
  .hero-copy p { margin-bottom: 7px; font-size: 15px; }
  .hero-copy h2 { max-width: 100%; font-size: clamp(34px, 3.2vw, 48px); overflow-wrap: anywhere; }
  .hero-score { gap: 11px; margin-top: 18px; }
  .hero-score strong { font-size: 72px; }
  .hero-score span { font-size: 18px; }
  .hero-meta { gap: 7px; margin-top: 17px; }
  .hero-meta { font-size: 14px; }
  .hero-meta .sw-icon { width: 18px; height: 18px; }
  .primary-cta { min-height: 47px; margin-top: 22px; padding: 0 19px; }
  .hero-fish { top: 12%; right: 3%; width: 49%; height: 70%; object-position: center; }
  .targets-section .section-heading { margin-top: 0; min-height: 45px; }
  .target-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; grid-auto-flow: row; overflow: visible; padding: 0; }
  .target-card { min-height: 176px; }
  .target-card:nth-child(n+5) { display: none; }
  .target-name { min-height: 0; font-size: 14px; }
  .target-card img { height: 92px; }
  .target-footer strong { font-size: 25px; }

  .weekly-section { margin-top: 22px; }
  .weekly-heading { margin-bottom: 12px; }
  .weekly-heading .eyebrow { font-size: 9px; }
  .weekly-heading h2 { font-size: 23px; }
  .weekly-highlight-grid { gap: 14px; }
  .weekly-highlight { min-height: 208px; padding: 22px; }
  .weekly-highlight > span { font-size: 10px; }
  .weekly-highlight > strong { font-size: 36px; }
  .weekly-highlight p { min-height: 35px; font-size: 12px; }
  .weekly-highlight > div b { font-size: 42px; }
  .weekly-highlight > div small { max-width: 100px; font-size: 10px; }
  .weekly-highlight > a { font-size: 11px; }
  .weekly-highlight > em { font-size: 9px; }
  .week-strip { gap: 9px; margin-top: 12px; overflow: visible; }
  .week-day { min-width: 0; padding: 11px; }
  .week-day > span { font-size: 9px; }
  .week-day > strong { font-size: 24px; }
  .week-day small { font-size: 8px; }
  .weekly-method-note { font-size: 9px; }

  .water-section { margin-top: 12px; }
  .condition-grid { gap: 12px; }
  .condition-card { min-height: 98px; grid-template-columns: auto 1fr; place-items: center start; padding: 16px 20px; text-align: left; }
  .condition-card > .sw-icon { width: 29px; }
  .condition-card strong { font-size: 19px; }
  .condition-card small { font-size: 12px; }

  .window-card { padding: 22px 24px 26px; }
  .window-chart { height: 160px; gap: 7px; margin-right: 15px; margin-left: 15px; }
  .bar { max-width: 18px; }
  .chart-axis { font-size: 11px; }
  .now-pill { left: 0; }
  .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .area-card { min-height: 136px; grid-template-columns: 39% 1fr auto 18px; padding-right: 12px; }
  .area-info { align-self: center; gap: 7px; padding: 14px; }
  .area-info strong { font-size: 16px; white-space: nowrap; }
  .area-info small { font-size: 12px; }
  .area-score { position: static; align-self: end; margin-bottom: 16px; font-size: 29px; }
  .area-card > .sw-icon { position: static; width: 17px; }
}

@media (min-width: 1380px) {
  :root { --sw-rail-width: 94px; }
  .desktop-rail .brand-word { display: none; }
  .home-primary { grid-template-columns: minmax(600px, 1.22fr) minmax(520px, .78fr); }
  .hero-card { min-height: 436px; }
  .target-card { min-height: 186px; }
}

@media (max-width: 370px) {
  .home-page { padding-right: 12px; padding-left: 12px; }
  .brand-word { font-size: 23px; }
  .mobile-filters { grid-template-columns: minmax(0, 1.35fr) minmax(108px, .8fr); }
  .selector { padding: 0 10px; font-size: 13px; }
  .hero-copy { padding-left: 20px; }
  .hero-fish { right: 3%; width: 50%; }
  .target-grid { grid-auto-columns: 47%; }
}

/* Plan/Reef responsive state repair (2026-09-24). */
.reef-explorer-heading { align-items: center; }
.reef-explorer-heading h1 { max-width: 18ch; font-size: clamp(2rem, 3.2vw, 3.25rem); line-height: 1; }
.reef-explorer-heading span { display: block; max-width: 62ch; color: var(--sw-text-soft); line-height: 1.45; }
.reef-explorer-search { position: relative; z-index: 42; }
.reef-filter-panel { flex: 0 0 auto; }
.reef-filter-panel > .reef-filter-backdrop {
  position: fixed;
  z-index: 68;
  inset: 0;
  display: none;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgb(2 33 58 / 48%);
  backdrop-filter: blur(3px);
}
.reef-filter-panel[open] > .reef-filter-backdrop { display: block; }
.reef-filter-panel > .reef-filter-dialog {
  position: fixed;
  z-index: 69;
  top: 148px;
  right: max(24px, env(safe-area-inset-right));
  left: auto;
  display: grid;
  width: min(720px, calc(100vw - 48px));
  max-height: calc(100dvh - 176px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 20px;
  border: 1px solid var(--sw-line);
  border-radius: 24px;
  background: var(--sw-surface);
  box-shadow: 0 24px 64px rgb(2 33 58 / 28%);
}
.reef-filter-dialog > header { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 16px; }
.reef-filter-dialog > header strong { color: var(--sw-navy-900); font-size: 1.25rem; }
.reef-filter-dialog > header button { width: 42px; height: 42px; padding: 0; border: 1px solid var(--sw-line); border-radius: 50%; background: var(--sw-surface); color: var(--sw-navy-900); font-size: 1.6rem; }
.reef-filter-panel .reef-filter-dialog label { min-width: 0; overflow-wrap: normal; word-break: normal; }
.reef-filter-panel .reef-filter-dialog :is(input, select) { width: 100%; min-width: 0; font-size: 16px; }
.reef-filter-dialog > button[type="submit"] { align-self: end; min-height: 46px; }
.reef-filters-open { overflow: hidden; }

/* The assistant is a lower-right contextual help affordance, never a rail item. */
@media (min-width: 960px) {
  .ask-floating-bubble {
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    left: auto;
    width: auto;
    max-width: min(210px, calc(100vw - 48px));
    min-height: 52px;
    justify-content: center;
    padding-inline: 17px;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
  }
}

@media (max-width: 959px) {
  .ask-floating-bubble { width: auto; min-width: 54px; height: 54px; max-width: min(190px, calc(100vw - 24px)); padding: 0 15px; border-radius: 999px; }
  .ask-floating-bubble span { display: inline; }
  .reef-explorer-heading { align-items: flex-start; }
  .reef-filter-panel > .reef-filter-dialog {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: min(78dvh, 720px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 18px max(16px, env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
  }
}

@media (max-width: 520px) {
  .reef-explorer-search { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .reef-explorer-search > label { grid-column: 1 / -1; }
  .reef-explorer-search > button, .reef-filter-panel summary { min-height: 48px; }
  .reef-filter-panel > .reef-filter-dialog { grid-template-columns: minmax(0, 1fr); }
  .reef-filter-dialog > button[type="submit"] { position: sticky; bottom: 0; }
}

/* Map */
.map-page { position: relative; height: 100vh; min-height: 680px; overflow: hidden; background: var(--sw-surface); }
.map-page > .mobile-header { padding-right: 16px; padding-left: 16px; }
.map-filter-bar { position: relative; z-index: 6; padding: 7px 16px 11px; border-bottom: 1px solid var(--sw-line); background: rgb(255 255 255 / 97%); }
.map-search { display: flex; height: 46px; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-pill); background: var(--sw-surface); box-shadow: var(--sw-shadow-card); }
.map-search .sw-icon { width: 21px; flex: 0 0 auto; color: var(--sw-navy-800); }
.map-search input { min-width: 0; width: auto; flex: 1 1 0; border: 0; outline: 0; background: transparent; color: var(--sw-text); }
.map-search input::placeholder { color: var(--sw-text-muted); }
.map-search button { display: inline-flex; min-width: 52px; min-height: 32px; flex: 0 0 auto; align-items: center; justify-content: center; padding: 0 12px; border: 0; border-radius: var(--sw-radius-pill); background: var(--sw-navy-900); color: white; font-weight: 750; line-height: 1; white-space: nowrap; }
.map-filter-row { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 8px; margin-top: 9px; }
.map-habitat-filter { display: grid; min-height: 40px; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 6px; grid-column: 1 / -1; padding: 0 12px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-pill); background: var(--sw-surface); color: var(--sw-text-soft); font-size: 9px; font-weight: 850; }
.map-habitat-filter select { min-width: 0; appearance: none; border: 0; outline: 0; background: transparent; color: var(--sw-navy-900); font: inherit; text-align: right; }
.map-best-for { display: grid; gap: 6px; margin-top: 8px; padding: 8px 10px; border: 1px solid var(--sw-line-strong); border-radius: 16px; background: white; box-shadow: var(--sw-shadow-card); }
.map-best-for-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.map-best-for-heading span { color: var(--sw-navy-900); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.map-best-for-heading strong { overflow: hidden; color: var(--sw-text-soft); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.map-best-for-chips { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 1px; scrollbar-width: none; }
.map-best-for-chips::-webkit-scrollbar { display: none; }
.map-best-for-chips button { min-height: 30px; flex: 0 0 auto; padding: 0 11px; border: 1px solid var(--sw-line); border-radius: 999px; background: var(--sw-surface); color: var(--sw-text-soft); font-size: 9px; font-weight: 800; }
.map-best-for-chips button.is-active { border-color: var(--sw-navy-900); background: var(--sw-navy-900); color: white; }
.map-best-for-chips button:disabled { cursor: not-allowed; opacity: .45; }
.map-boat-picker { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; font-size: 9px; font-weight: 800; }
.map-boat-picker select { min-width: 0; height: 30px; border: 1px solid var(--sw-line); border-radius: 9px; background: white; color: var(--sw-text); font: inherit; }
.map-best-for-unavailable { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--sw-text-muted); font-size: 8px; }
.map-best-for-unavailable a { color: var(--sw-teal-700); font-weight: 850; white-space: nowrap; }
.home-best-for { display: grid; position: relative; gap: 7px; margin-bottom: 10px; padding: 10px 12px; border: 1px solid var(--sw-line); border-radius: 16px; background: var(--sw-surface-raised); box-shadow: var(--sw-shadow-card); }
.home-best-for > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.home-best-for > div strong { color: var(--sw-navy-900); font-size: 11px; text-transform: uppercase; }
.home-best-for > div span { overflow: hidden; color: var(--sw-text-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.home-best-for nav { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 1px; scrollbar-width: none; }
.home-best-for nav::-webkit-scrollbar { display: none; }
.home-best-for nav :is(a, button) { min-height: 30px; flex: 0 0 auto; padding: 0 11px; border: 1px solid var(--sw-line); border-radius: 999px; background: white; color: var(--sw-text-soft); font: inherit; font-size: 9px; font-weight: 800; line-height: 28px; text-decoration: none; }
.home-best-for nav button:disabled { opacity: .45; }
.home-best-for-boat { color: var(--sw-teal-700); font-size: 9px; font-weight: 850; }
.daily-brief {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 10px 0 12px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--sw-teal-500) 30%, var(--sw-line));
  border-radius: var(--sw-radius-lg);
  background: linear-gradient(125deg, var(--sw-sky-100), var(--sw-mint-100));
  box-shadow: var(--sw-shadow-card);
}
.daily-brief-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 13px; background: linear-gradient(135deg, var(--sw-navy-900), var(--sw-teal-600)); color: white; }
.daily-brief-icon .sw-icon { width: 20px; }
.daily-brief > div:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.daily-brief p { margin: 0; color: var(--sw-teal-700); font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.daily-brief strong { font-size: 14px; }
.daily-brief span:not(.daily-brief-icon) { color: var(--sw-text-soft); font-size: 10px; line-height: 1.4; }
.daily-brief-actions { display: flex; grid-column: 1 / -1; gap: 7px; }
.daily-brief-actions :is(a, button) { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; gap: 6px; padding: 0 11px; border: 1px solid var(--sw-line-strong); border-radius: 999px; background: var(--sw-surface); color: var(--sw-navy-900); font: inherit; font-size: 9px; font-weight: 800; text-decoration: none; }
.daily-brief-actions .sw-icon { width: 14px; }
.weekly-section { margin-top: 14px; }
.weekly-progress { display: flex; min-height: 58px; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 16px; border: 1px solid var(--sw-line); border-radius: 18px; background: var(--sw-surface); color: var(--sw-text-soft); font-size: 10px; box-shadow: var(--sw-shadow-soft); }
.weekly-progress i { width: 18px; height: 18px; flex: 0 0 auto; border: 2px solid rgb(8 139 143 / 20%); border-top-color: var(--sw-teal-700); border-radius: 50%; animation: forecast-refresh-spin .8s linear infinite; }
.weekly-progress strong { display: block; color: var(--sw-navy-900); font-size: 11px; }
.weekly-progress--delayed { border-color: rgb(200 151 42 / 30%); background: #fffaf0; }
.home-freshness { display: flex; align-items: center; gap: 6px; margin: 10px 2px 12px; color: var(--sw-text-soft); font-size: 11px; font-weight: 650; }
.home-freshness svg { width: 14px; height: 14px; color: var(--sw-teal-700); }
.home-freshness i { width: 13px; height: 13px; border: 2px solid rgb(8 139 143 / 20%); border-top-color: var(--sw-teal-700); border-radius: 50%; animation: forecast-refresh-spin .8s linear infinite; }
.weekly-heading { align-items: end; margin-bottom: 8px; }
.weekly-heading > div { display: grid; gap: 2px; }
.weekly-heading .eyebrow { margin: 0; color: var(--sw-teal-700); font-size: 8px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.weekly-heading button { display: inline-flex; min-height: 33px; align-items: center; gap: 6px; padding: 0 11px; border: 1px solid var(--sw-line); border-radius: 999px; background: var(--sw-surface); color: var(--sw-teal-700); font: inherit; font-size: 9px; font-weight: 850; }
.weekly-heading button .sw-icon { width: 14px; }
.weekly-highlight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.weekly-highlight-grid--single { grid-template-columns: minmax(0, 1fr); }
.weekly-highlight { position: relative; display: grid; min-height: 164px; overflow: hidden; gap: 5px; padding: 14px; border-radius: var(--sw-radius-lg); box-shadow: var(--sw-shadow-card); color: white; }
.weekly-highlight::after { position: absolute; right: -26px; bottom: -42px; width: 126px; height: 126px; border: 18px solid rgb(255 255 255 / 8%); border-radius: 50%; content: ''; }
.weekly-highlight--best { background: linear-gradient(145deg, var(--sw-navy-900), var(--sw-navy-700)); }
.weekly-highlight--calm { background: linear-gradient(145deg, var(--sw-teal-700), var(--sw-teal-500)); }
.weekly-highlight > span { display: flex; align-items: center; gap: 6px; color: rgb(255 255 255 / 74%); font-size: 8px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.weekly-highlight > span .sw-icon { width: 15px; }
.weekly-highlight > strong { font-size: 25px; letter-spacing: -.035em; }
.weekly-highlight p { min-height: 28px; margin: 0; color: rgb(255 255 255 / 78%); font-size: 9px; line-height: 1.45; }
.weekly-highlight > div { display: flex; align-items: end; gap: 6px; }
.weekly-highlight > div b { color: var(--sw-aqua-400); font-size: 30px; line-height: 1; }
.weekly-highlight > div small { max-width: 74px; color: rgb(255 255 255 / 70%); font-size: 8px; }
.weekly-highlight > a { z-index: 1; display: inline-flex; width: fit-content; align-items: center; gap: 5px; color: white; font-size: 9px; font-weight: 850; text-decoration: none; }
.weekly-highlight > a .sw-icon { width: 13px; }
.weekly-highlight > em { z-index: 1; color: rgb(255 255 255 / 68%); font-size: 7px; font-style: normal; }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(64px, 1fr)); overflow-x: auto; gap: 6px; margin-top: 9px; padding: 1px 1px 5px; scrollbar-width: none; }
.week-strip::-webkit-scrollbar { display: none; }
.week-day { display: grid; min-width: 64px; gap: 3px; padding: 8px; border: 1px solid var(--sw-line); border-radius: 13px; background: var(--sw-surface); color: var(--sw-text); text-decoration: none; }
.week-day.is-best { border-color: var(--sw-teal-500); background: var(--sw-mint-100); box-shadow: inset 0 3px 0 var(--sw-teal-500); }
.week-day > span { color: var(--sw-text-soft); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.week-day > strong { color: var(--sw-navy-900); font-size: 19px; }
.week-day small { display: grid; grid-template-columns: 1fr auto; gap: 3px; color: var(--sw-text-muted); font-size: 7px; }
.week-day small i { grid-column: 1 / -1; width: var(--score); max-width: 100%; height: 3px; border-radius: 3px; background: var(--sw-teal-500); }
.week-day small i.is-marine { background: var(--sw-navy-700); }
.weekly-method-note { margin: 3px 2px 0; color: var(--sw-text-muted); font-size: 8px; line-height: 1.4; }
.plan-decision-intent { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; margin: 0 0 12px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--sw-teal-500) 30%, var(--sw-line)); border-radius: var(--sw-radius-lg); background: linear-gradient(120deg, var(--sw-sky-100), var(--sw-mint-100)); box-shadow: var(--sw-shadow-card); }
.plan-decision-intent > .sw-icon { width: 24px; color: var(--sw-teal-700); }
.plan-decision-intent > div { display: grid; min-width: 0; gap: 2px; }
.plan-decision-intent small { color: var(--sw-teal-700); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.plan-decision-intent strong { font-size: 13px; }
.plan-decision-intent span { overflow: hidden; color: var(--sw-text-soft); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.plan-decision-intent a { display: inline-flex; align-items: center; gap: 4px; color: var(--sw-navy-900); font-size: 9px; font-weight: 850; text-decoration: none; }
.plan-decision-intent a .sw-icon { width: 13px; }
.live-entry-notice { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; margin: 0 16px 14px; padding: 15px; border: 1px solid rgb(9 150 134 / 34%); border-radius: var(--sw-radius-xl); background: linear-gradient(128deg, #07385c, #087987); color: white; box-shadow: 0 14px 30px rgb(2 47 75 / 16%); }
.live-entry-notice > .sw-icon { width: 28px; color: var(--sw-aqua-400); }
.live-entry-notice > div { display: grid; min-width: 0; gap: 3px; }
.live-entry-notice small { color: var(--sw-aqua-300); font-size: 8px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.live-entry-notice strong { font-size: 15px; }
.live-entry-notice span { color: rgb(255 255 255 / 76%); font-size: 10px; line-height: 1.45; }
.live-entry-notice a { display: flex; min-height: 38px; grid-column: 1 / -1; align-items: center; justify-content: center; gap: 6px; border-radius: var(--sw-radius-pill); background: white; color: var(--sw-navy-900); font-size: 10px; font-weight: 800; text-decoration: none; }
.live-entry-notice a .sw-icon { width: 14px; }
.best-for-explanation { display: grid; gap: 3px; padding: 9px 11px; border-left: 3px solid var(--sw-teal-600); border-radius: 0 11px 11px 0; background: var(--sw-mint-100); }
.best-for-explanation small { color: var(--sw-teal-700); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.best-for-explanation strong { font-size: 10px; line-height: 1.35; }
.best-for-explanation span { color: var(--sw-text-muted); font-size: 8px; }
.map-filter { display: flex; min-width: 0; min-height: 43px; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-pill); background: white; color: var(--sw-text); white-space: nowrap; }
.map-filter .sw-icon { width: 18px; }
.map-filter span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.map-filter-label--compact { display: none; }
.map-filter .sw-icon:last-child { width: 15px; }
.map-filter.is-active { border-color: var(--sw-navy-800); background: var(--sw-navy-900); color: white; }
.map-workspace { position: relative; height: calc(100vh - 176px); min-height: 505px; }
.map-canvas { position: absolute; inset: 0; }
.map-scope-badge { position: absolute; z-index: 6; top: 12px; left: 12px; display: grid; max-width: min(320px, calc(100% - 90px)); gap: 2px; padding: 9px 12px; border: 1px solid rgb(255 255 255 / 42%); border-radius: 14px; background: rgb(3 38 69 / 84%); box-shadow: var(--sw-shadow-float); color: white; backdrop-filter: blur(10px); pointer-events: none; }
.map-scope-badge strong { font-size: 11px; }
.map-scope-badge span { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.marine-map { position: absolute; inset: 0; overflow: hidden; background: var(--sw-navy-900); }
.map-art { position: relative; z-index: 1; display: block; width: 100%; height: 100%; }
.forecast-zone { position: absolute; z-index: 3; top: var(--y); left: var(--x); width: calc(106px * var(--size)); height: calc(72px * var(--size)); padding: 0; border: 0; background: transparent; color: white; transform: translate(-50%, -50%); }
.zone-polygon { position: absolute; inset: 0; border: 1px solid rgb(218 255 247 / 78%); background: rgb(69 211 188 / 28%); clip-path: polygon(8% 22%, 48% 5%, 91% 18%, 98% 61%, 71% 96%, 25% 86%, 3% 57%); filter: drop-shadow(0 0 13px rgb(75 239 203 / 38%)); }
.forecast-zone.is-strongest .zone-polygon { background: rgb(20 208 174 / 48%); }
.forecast-zone.is-good .zone-polygon { background: rgb(88 213 188 / 34%); }
.forecast-zone.is-opportunity-excellent .zone-polygon { border-color: #b8f4ce; background: rgb(33 163 91 / 48%); filter: drop-shadow(0 0 13px rgb(33 163 91 / 46%)); }
.forecast-zone.is-opportunity-good .zone-polygon { border-color: #baddff; background: rgb(49 130 206 / 44%); filter: drop-shadow(0 0 13px rgb(49 130 206 / 44%)); }
.forecast-zone.is-opportunity-okay .zone-polygon { border-color: #ffe0ea; background: rgb(232 137 169 / 46%); filter: drop-shadow(0 0 13px rgb(232 137 169 / 42%)); }
.forecast-zone.is-opportunity-low .zone-polygon { border-color: #e5eaf0; background: rgb(135 147 161 / 44%); filter: drop-shadow(0 0 13px rgb(135 147 161 / 34%)); }
.forecast-zone.is-opportunity-excellent .zone-pin { background: #147a42; }
.forecast-zone.is-opportunity-good .zone-pin { background: #1f5fa5; }
.forecast-zone.is-opportunity-okay .zone-pin { background: #a83f65; }
.forecast-zone.is-opportunity-low .zone-pin { background: #657180; }
.forecast-zone:not(.is-selected) .zone-polygon { opacity: .72; }
.zone-pin { position: absolute; z-index: 2; top: 50%; left: 50%; display: grid; width: 35px; height: 35px; place-items: center; border: 2px solid white; border-radius: 50%; background: var(--sw-navy-800); box-shadow: 0 5px 15px rgb(0 20 43 / 38%); transform: translate(-50%, -50%); }
.zone-pin .sw-icon { width: 20px; }
.zone-label { position: absolute; top: calc(50% + 27px); left: 50%; display: grid; width: 128px; text-shadow: 0 2px 5px rgb(0 25 55 / 70%); transform: translateX(-50%); }
.zone-label strong { font-size: 12px; }
.zone-label small { color: var(--sw-aqua-200); font-size: 9px; }
.forecast-zone:not(.is-selected) .zone-label { display: none; }
.user-location { position: absolute; z-index: 4; top: 54%; left: 35%; display: grid; width: 26px; height: 26px; place-items: center; border: 3px solid white; border-radius: 50%; background: #1679f2; box-shadow: 0 0 0 9px rgb(30 136 229 / 18%); }
.user-location i { width: 6px; height: 6px; border-radius: 50%; background: white; }
.map-tools { position: absolute; z-index: 5; top: 17px; right: 14px; display: grid; gap: 8px; }
.map-tools button { display: grid; width: 46px; height: 46px; place-items: center; padding: 0; border: 1px solid rgb(9 43 77 / 12%); border-radius: 50%; background: rgb(255 255 255 / 94%); box-shadow: var(--sw-shadow-float); color: var(--sw-navy-900); }
.map-tools .sw-icon { width: 21px; }
.map-tools [data-map-control="menu"] b { font-size: 15px; letter-spacing: 1px; }
.map-quick-menu { position: absolute; z-index: 12; top: 16px; right: 70px; display: grid; width: 190px; overflow: hidden; border: 1px solid var(--sw-line); border-radius: 15px; background: rgb(255 255 255 / 98%); box-shadow: var(--sw-shadow-float); }
.map-quick-menu[hidden] { display: none; }
.map-quick-menu :is(a, button) { display: flex; min-height: 43px; align-items: center; gap: 9px; padding: 0 13px; border: 0; border-bottom: 1px solid var(--sw-line); background: transparent; color: var(--sw-text); font: inherit; font-size: 11px; font-weight: 700; text-align: left; text-decoration: none; }
.map-quick-menu :is(a, button):last-child { border-bottom: 0; }
.map-quick-menu .sw-icon { width: 18px; color: var(--sw-teal-700); }
html[data-theme="dark"] .map-quick-menu { background: rgb(5 29 50 / 98%); }
.map-scale { position: absolute; z-index: 2; bottom: 38px; left: 18px; color: white; text-shadow: 0 1px 3px #001a32; }
.map-scale span { display: block; width: 74px; height: 6px; border-right: 2px solid; border-bottom: 2px solid; border-left: 2px solid; }
.map-scale small { display: block; margin-top: 3px; font-size: 9px; text-align: right; }
.opportunity-map-legend { position: absolute; z-index: 6; right: 14px; bottom: 15px; display: flex; max-width: calc(100% - 28px); flex-wrap: wrap; align-items: center; gap: 7px 11px; padding: 8px 11px; border: 1px solid rgb(255 255 255 / 38%); border-radius: 13px; background: rgb(3 38 69 / 86%); box-shadow: var(--sw-shadow-float); color: white; font-size: 9px; backdrop-filter: blur(10px); }
.opportunity-map-legend span { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; }
.opportunity-map-legend i { width: 9px; height: 9px; border: 1px solid rgb(255 255 255 / 70%); border-radius: 50%; background: #8793a1; }
.opportunity-map-legend [data-opportunity-class="excellent"] i { background: #21a35b; }
.opportunity-map-legend [data-opportunity-class="good"] i { background: #3182ce; }
.opportunity-map-legend [data-opportunity-class="okay"] i { background: #e889a9; }
.opportunity-map-legend small { flex-basis: 100%; color: rgb(255 255 255 / 76%); font-size: 8px; }
.habitat-map-legend { position: absolute; z-index: 6; right: 14px; bottom: 15px; display: grid; max-width: min(255px, calc(100% - 28px)); grid-template-columns: 1fr; gap: 5px; padding: 10px 12px; border: 1px solid rgb(255 255 255 / 38%); border-radius: 14px; background: rgb(3 38 69 / 88%); box-shadow: var(--sw-shadow-float); color: white; font-size: 9px; backdrop-filter: blur(10px); }
.habitat-map-legend strong { margin-bottom: 2px; font-size: 10px; }
.habitat-map-legend span { display: flex; align-items: center; gap: 6px; }
.habitat-map-legend i { width: 10px; height: 10px; border: 1px solid rgb(255 255 255 / 70%); border-radius: 4px; background: #6f8b91; }
.habitat-map-legend [data-match="strong"] i { background: #16b5a5; box-shadow: 0 0 0 3px rgb(22 181 165 / 22%); }
.habitat-map-legend [data-match="good"] i { background: #74d3c2; }
.habitat-map-legend small { color: rgb(255 255 255 / 72%); font-size: 8px; }
.map-detail-panel { position: absolute; z-index: 7; right: 0; bottom: var(--sw-bottom-nav-height); left: 0; max-height: min(405px, 49vh); overflow: auto; padding: 15px 16px 13px; border-radius: 26px 26px 0 0; background: rgb(255 255 255 / 98%); box-shadow: 0 -16px 38px rgb(2 28 56 / 18%); }
.best-area-detail { display: grid; align-content: start; gap: 11px; }
.best-area-title { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 10px; }
.best-area-title > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: var(--sw-navy-900); color: white; font-size: 17px; font-weight: 900; }
.best-area-title p, .best-area-title h1 { margin: 0; }
.best-area-title p { color: var(--sw-text-soft); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.best-area-title h1 { margin-top: 2px; font-size: 22px; line-height: 1.05; }
.best-area-opportunity { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 15px; background: #eef3f5; }
.best-area-opportunity > strong { color: var(--sw-teal-700); font-size: 36px; line-height: 1; }
.best-area-opportunity span, .best-area-opportunity small { display: block; }
.best-area-opportunity b { font-size: 12px; }
.best-area-opportunity small { margin-top: 2px; color: var(--sw-text-muted); font-size: 8px; }
.best-area-distances { display: grid; justify-items: end; gap: 3px; }
.best-area-opportunity em { display: flex; align-items: center; gap: 4px; color: var(--sw-text-soft); font-size: 9px; font-style: normal; white-space: nowrap; }
.best-area-opportunity em .sw-icon { width: 14px; }
.best-area-detail[data-opportunity-class="excellent"] .best-area-opportunity { background: #dff5e7; }
.best-area-detail[data-opportunity-class="excellent"] .best-area-opportunity > strong { color: #147a42; }
.best-area-detail[data-opportunity-class="good"] .best-area-opportunity { background: #e0effd; }
.best-area-detail[data-opportunity-class="good"] .best-area-opportunity > strong { color: #1f5fa5; }
.best-area-detail[data-opportunity-class="okay"] .best-area-opportunity { background: #fbe6ed; }
.best-area-detail[data-opportunity-class="okay"] .best-area-opportunity > strong { color: #a83f65; }
.best-area-targets, .best-area-calculation { padding: 10px; border: 1px solid var(--sw-line); border-radius: 15px; }
.best-area-targets h2, .best-area-calculation h2 { margin: 0 0 8px; font-size: 13px; }
.best-area-targets ol, .best-area-targets ul { margin: 0; padding: 0; list-style: none; }
.best-area-targets > ol > li + li { border-top: 1px solid var(--sw-line); }
.best-area-targets summary { list-style: none; }
.best-area-targets summary::-webkit-details-marker { display: none; }
.best-area-targets summary a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 8px 2px; color: var(--sw-text); text-decoration: none; }
.best-area-targets summary strong { color: var(--sw-teal-700); }
.best-area-targets details > div { padding: 0 4px 9px; color: var(--sw-text-soft); font-size: 9px; }
.best-area-targets details > div p { margin: 7px 0 4px; font-weight: 800; }
.best-area-targets details ul { display: flex; flex-wrap: wrap; gap: 5px; }
.best-area-targets details li a { display: flex; gap: 5px; padding: 5px 7px; border-radius: 9px; background: var(--sw-surface-raised); color: var(--sw-text); text-decoration: none; }
.best-area-calculation > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.best-area-calculation > div span { padding: 7px; border-radius: 10px; background: var(--sw-surface-raised); }
.best-area-calculation small, .best-area-calculation strong { display: block; }
.best-area-calculation small { color: var(--sw-text-muted); font-size: 7px; }
.best-area-calculation strong { margin-top: 2px; font-size: 13px; }
.best-area-calculation > p { margin: 7px 0 0; color: var(--sw-text-muted); font-size: 8px; line-height: 1.35; }
.sheet-handle { display: block; width: 42px; height: 4px; margin: -7px auto 10px; border-radius: 9px; background: #a8b4c0; }
.detail-close { position: absolute; top: 16px; right: 16px; width: 37px; height: 37px; padding: 0 0 3px; border: 1px solid var(--sw-line); border-radius: 50%; background: #f5f8fa; color: var(--sw-text-soft); font-size: 27px; font-weight: 300; }
.detail-title-row { display: flex; min-height: 45px; align-items: center; gap: 10px; padding-right: 38px; }
.detail-title-row > div { min-width: 0; flex: 1; }
.detail-title-row p { margin: 0 0 2px; color: var(--sw-teal-700); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.detail-title-row h1 { margin: 0; font-size: 23px; line-height: 1.08; letter-spacing: -.035em; overflow-wrap: anywhere; }
.detail-title-row img { width: 103px; height: 48px; margin-left: auto; object-fit: contain; filter: drop-shadow(0 7px 6px rgb(4 37 62 / 15%)); }
.detail-score-row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 12px; margin-top: 4px; padding: 6px 0 9px; border-bottom: 1px solid var(--sw-line); }
.detail-score-row > strong { color: var(--sw-teal-600); font-size: 48px; line-height: .9; letter-spacing: -.06em; }
.detail-score-row > span:not(.detail-trip) { display: grid; grid-template-columns: auto 1fr; column-gap: 6px; align-items: center; }
.detail-score-row > span .sw-icon { grid-row: 1 / 3; width: 20px; color: var(--sw-teal-600); }
.detail-score-row b { font-size: 15px; }
.detail-score-row small { color: var(--sw-text-soft); font-size: 11px; }
.map-regulation-status { display: grid; min-height: 46px; grid-template-columns: 22px 1fr 15px; align-items: center; gap: 8px; margin: 8px 0; padding: 7px 10px; border: 1px solid #b8ded9; border-radius: var(--sw-radius-md); background: #f0fbf8; color: var(--sw-teal-800); text-decoration: none; }
.map-regulation-status > .sw-icon { width: 19px; }
.map-regulation-status > .sw-icon:last-child { width: 14px; }
.map-regulation-status small, .map-regulation-status strong { display: block; }
.map-regulation-status small { font-size: 7px; text-transform: uppercase; letter-spacing: .05em; }
.map-regulation-status strong { margin-top: 2px; font-size: 9px; }
.map-regulation-status[data-status="CATCH_AND_RELEASE_ONLY"],
.map-regulation-status[data-status="NEEDS_LIVE_VERIFICATION"],
.map-regulation-status[data-status="REGULATORY_AREA_UNCERTAIN"],
.map-regulation-status[data-status="REGULATION_NOT_RESOLVED"] { border-color: #ecdcae; background: #fffaf0; color: #7a5900; }
.detail-trip { display: none; }
.detail-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 8px 0; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-md); }
.detail-metrics article { display: grid; min-width: 0; place-items: center; gap: 3px; padding: 6px 3px; border-right: 1px solid var(--sw-line); text-align: center; }
.detail-metrics article:nth-child(2n) { border-right: 0; }
.detail-metrics article:nth-child(-n+4) { border-bottom: 1px solid var(--sw-line); }
.detail-metrics .sw-icon { width: 19px; color: var(--sw-teal-700); }
.detail-metrics span { min-width: 0; }
.detail-metrics small, .detail-metrics strong { display: block; }
.detail-metrics small { color: var(--sw-text-soft); font-size: 8px; }
.detail-metrics strong { margin-top: 3px; overflow: hidden; font-size: 9px; line-height: 1.2; text-overflow: ellipsis; }
.why-card { padding: 8px 10px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-md); }
.why-card h2 { margin: 0 0 6px; font-size: 13px; }
.why-card > div { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.why-card span { display: flex; align-items: center; gap: 5px; color: var(--sw-text); font-size: 9px; }
.why-card span .sw-icon { width: 15px; color: var(--sw-teal-600); }
.why-card p { display: flex; align-items: center; gap: 5px; margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--sw-line); color: var(--sw-text-muted); font-size: 8px; }
.why-card p .sw-icon { width: 15px; }
.micro-habitat-card { margin: 8px 0; padding: 10px; border: 1px solid color-mix(in srgb, var(--sw-teal-500) 34%, var(--sw-line)); border-radius: var(--sw-radius-md); background: color-mix(in srgb, var(--sw-mint-100) 52%, white); }
.micro-habitat-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.micro-habitat-heading small { color: var(--sw-teal-700); font-size: 7px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.micro-habitat-heading h2 { margin: 2px 0 7px; font-size: 14px; }
.micro-habitat-heading > span { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; background: white; color: var(--sw-teal-700); font-size: 7px; font-weight: 850; }
.micro-habitat-card ol, .micro-habitat-card ul { margin: 0; padding: 0; list-style: none; }
.micro-habitat-card > ol > li + li { margin-top: 5px; }
.micro-habitat-card button { display: grid; width: 100%; min-height: 43px; grid-template-columns: 25px minmax(0,1fr) 14px; align-items: center; gap: 7px; padding: 6px 8px; border: 1px solid var(--sw-line); border-radius: 11px; background: white; color: var(--sw-text); text-align: left; }
.micro-habitat-card button.is-selected { border-color: var(--sw-teal-600); box-shadow: 0 0 0 2px rgb(8 151 145 / 12%); }
.micro-habitat-card button > b { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--sw-navy-900); color: white; font-size: 9px; }
.micro-habitat-card button span, .micro-habitat-card button strong, .micro-habitat-card button small { display: block; min-width: 0; }
.micro-habitat-card button strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.micro-habitat-card button small { margin-top: 2px; color: var(--sw-text-muted); font-size: 8px; }
.micro-habitat-card button .sw-icon { width: 13px; }
.micro-habitat-card details { margin: 3px 8px 0 40px; color: var(--sw-text-soft); font-size: 8px; }
.micro-habitat-card summary { cursor: pointer; color: var(--sw-teal-700); font-weight: 850; }
.micro-habitat-card details li { margin-top: 3px; padding-left: 8px; position: relative; }
.micro-habitat-card details li::before { position: absolute; left: 0; content: "•"; }
.micro-habitat-card details p, .micro-habitat-card.is-unavailable > p { margin: 6px 0 0; color: var(--sw-text-muted); font-size: 8px; line-height: 1.4; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 8px; }
.detail-actions :is(button, a) { display: flex; min-height: 40px; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border: 1px solid var(--sw-navy-800); border-radius: var(--sw-radius-pill); background: white; color: var(--sw-navy-900); font-weight: 700; text-decoration: none; }
.detail-actions .solid-action { background: var(--sw-navy-900); color: white; }
.detail-actions .sw-icon { width: 19px; }

@media (min-width: 960px) {
  .live-entry-notice { grid-template-columns: 36px minmax(0, 1fr) auto; margin: 0 0 18px; padding: 18px 20px; }
  .live-entry-notice > .sw-icon { width: 32px; }
  .live-entry-notice strong { font-size: 18px; }
  .live-entry-notice span { font-size: 11px; }
  .live-entry-notice a { min-width: 150px; grid-column: auto; padding: 0 18px; font-size: 11px; }
  .map-page { height: calc(100vh - var(--sw-topbar-height)); min-height: 650px; }
  .map-filter-bar { position: absolute; z-index: 10; top: 18px; left: 20px; display: flex; gap: 10px; width: min(760px, calc(100% - 460px)); padding: 0; border: 0; background: transparent; }
  .map-search { width: min(330px, 42%); flex: 0 1 auto; background: rgb(255 255 255 / 95%); }
  .map-filter-row { flex: 1; margin: 0; }
  .map-best-for { min-width: 190px; margin: 0; }
  .map-filter { min-height: 46px; background: rgb(255 255 255 / 95%); box-shadow: var(--sw-shadow-card); }
  .map-workspace { display: grid; height: 100%; min-height: 0; grid-template-columns: minmax(0, 1fr) 410px; }
  .map-canvas { position: relative; min-width: 0; }
  .map-scope-badge { top: 76px; left: 20px; }
  .forecast-zone { width: calc(154px * var(--size)); height: calc(104px * var(--size)); }
  .zone-pin { width: 45px; height: 45px; }
  .zone-pin .sw-icon { width: 25px; }
  .zone-label { top: calc(50% + 35px); width: 150px; }
  .zone-label strong { font-size: 15px; }
  .zone-label small { font-size: 11px; }
  .map-tools { top: auto; right: 20px; bottom: 22px; }
  .opportunity-map-legend { right: 82px; bottom: 22px; }
  .habitat-map-legend { right: 82px; bottom: 22px; }
  .map-scale { bottom: 24px; left: 22px; }
  .map-detail-panel { position: relative; right: auto; bottom: auto; left: auto; max-height: none; overflow: auto; padding: 36px 24px 24px; border-left: 1px solid var(--sw-line); border-radius: 0; box-shadow: -12px 0 30px rgb(2 28 56 / 7%); }
  .sheet-handle, .detail-close { display: none; }
  .detail-title-row { display: grid; min-height: 112px; grid-template-columns: minmax(0, 1fr) minmax(118px, 42%); align-items: start; gap: 10px; padding: 0; }
  .detail-title-row p { font-size: 11px; }
  .detail-title-row h1 { font-size: 29px; }
  .detail-title-row img { width: 100%; height: 92px; margin: 0; object-position: center; }
  .detail-score-row { grid-template-columns: auto 1fr; gap: 12px 15px; margin-top: 4px; padding-bottom: 20px; }
  .detail-score-row > strong { font-size: 72px; }
  .detail-score-row b { font-size: 18px; }
  .detail-score-row small { font-size: 12px; }
  .map-regulation-status { min-height: 58px; grid-template-columns: 27px 1fr 18px; padding: 10px 13px; }
  .map-regulation-status small { font-size: 9px; }
  .map-regulation-status strong { font-size: 12px; }
  .detail-trip { display: grid; grid-column: 1 / -1; grid-template-columns: auto 1fr; gap: 4px 7px; padding-top: 14px; border-top: 1px solid var(--sw-line); }
  .detail-trip .sw-icon { width: 18px; }
  .detail-trip .sw-icon:nth-of-type(2) { grid-row: 2; }
  .detail-trip b, .detail-trip small { align-self: center; }
  .detail-metrics { grid-template-columns: repeat(2, 1fr); }
  .detail-metrics article { grid-template-columns: auto 1fr; place-items: center start; min-height: 78px; padding: 12px; text-align: left; }
  .detail-metrics article:nth-child(2n) { border-right: 0; }
  .detail-metrics article:nth-child(-n+4) { border-bottom: 1px solid var(--sw-line); }
  .detail-metrics .sw-icon { width: 24px; }
  .detail-metrics small { font-size: 10px; }
  .detail-metrics strong { font-size: 13px; }
  .why-card { padding: 16px; }
  .why-card h2 { font-size: 17px; }
  .why-card span, .why-card p { font-size: 11px; }
  .detail-actions { margin-top: 16px; }
  .detail-actions :is(button, a) { min-height: 48px; }
}

/* Species detail */
.species-page { min-height: 100vh; padding-bottom: calc(var(--sw-bottom-nav-height) + 22px); background: #f9fbfc; }
.species-mobile-nav { display: grid; height: 62px; grid-template-columns: 44px 1fr 1fr 44px 44px; align-items: center; gap: 5px; padding: max(5px, env(safe-area-inset-top)) 16px 0; background: white; }
.species-mobile-nav a, .species-mobile-nav button { display: grid; width: 40px; height: 40px; place-items: center; padding: 0; border: 1px solid var(--sw-line); border-radius: 50%; background: white; box-shadow: var(--sw-shadow-card); color: var(--sw-navy-900); }
.species-mobile-nav a .sw-icon { transform: rotate(180deg); }
.species-mobile-nav strong { font-size: 19px; text-align: center; }
.species-mobile-nav .sw-icon { width: 20px; }
.species-hero { position: relative; min-height: 265px; overflow: hidden; background: #dff5f5 url('/ui/assets/backgrounds/species-ocean.webp') center / cover no-repeat; }
.species-hero::after { position: absolute; inset: 0; background: radial-gradient(circle at 75% 36%, rgb(255 255 255 / 76%), transparent 31%), linear-gradient(90deg, rgb(255 255 255 / 70%), transparent 55%); content: ''; }
.species-hero-copy { position: absolute; z-index: 2; top: 46px; left: 18px; display: grid; justify-items: start; }
.species-hero-copy p { margin: 0 0 4px; color: var(--sw-text-soft); font-size: 10px; font-style: italic; }
.species-hero-copy h1 { margin: 0 0 10px; font-size: 36px; line-height: 1; letter-spacing: -.05em; }
.species-hero-copy > strong { color: var(--sw-teal-600); font-size: 58px; line-height: .9; letter-spacing: -.06em; }
.species-hero-copy > b { margin-top: 5px; color: var(--sw-teal-700); font-size: 16px; }
.species-hero-copy > small { max-width: 190px; margin-top: 5px; color: var(--sw-text-soft); font-size: 8px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.species-hero-copy > span { display: flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--sw-text-soft); font-size: 12px; }
.species-hero-copy .sw-icon { width: 17px; }
.species-hero > img { position: absolute; z-index: 1; top: 8%; right: 2%; width: 64%; height: 84%; object-fit: contain; object-position: center; filter: drop-shadow(0 20px 16px rgb(4 40 68 / 18%)); transform: scaleX(-1) rotate(2deg); }
.species-body { position: relative; z-index: 3; margin-top: -22px; padding: 0 14px; }
.species-primary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 9px; }
.species-primary-actions :is(a, button) { display: flex; min-height: 44px; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--sw-navy-800); border-radius: var(--sw-radius-pill); color: var(--sw-navy-900); background: white; font-weight: 720; text-decoration: none; }
.species-primary-actions .solid-action { color: white; background: var(--sw-navy-900); }
.species-primary-actions .sw-icon { width: 18px; }
.species-section { margin: 0 0 9px; padding: 12px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-xl); background: white; box-shadow: var(--sw-shadow-card); }
.species-section h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.hourly-list { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin-top: 7px; }
.hour-card { position: relative; display: grid; min-width: 0; height: 91px; grid-template-rows: auto auto 1fr; justify-items: center; gap: 3px; padding: 5px 2px; border-radius: 14px; }
.hour-card.is-best { background: var(--sw-mint-100); }
.hour-card > span { font-size: 10px; }
.hour-card > strong { font-size: 17px; }
.hour-card > b { position: absolute; top: -11px; color: var(--sw-sun); font-size: 16px; }
.mini-bars { display: flex; height: 36px; align-items: end; justify-content: center; gap: 2px; }
.mini-bars i { width: 5px; min-height: 10px; border-radius: 4px; background: linear-gradient(#0a8c91, #33c3c0); }
.inline-title { display: flex; align-items: center; justify-content: space-between; }
.inline-title :is(button, a) { display: flex; min-height: 34px; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: var(--sw-text-soft); font-size: 12px; text-decoration: none; }
.inline-title .sw-icon { width: 15px; }
.area-ranking { display: grid; grid-template-columns: 40% 1fr; overflow: hidden; margin-top: 7px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-md); }
.rank-map { position: relative; min-height: 118px; overflow: hidden; background: radial-gradient(ellipse at 70% 40%, #b7f0e2 0 10%, transparent 11%), radial-gradient(ellipse at 50% 55%, #70d8d1 0 22%, transparent 23%), linear-gradient(145deg, #0d638a, #33bdc4); }
.rank-map::before, .rank-map::after { position: absolute; top: -30%; left: 20%; width: 80%; height: 170%; border: 1px solid rgb(255 255 255 / 48%); border-radius: 50%; content: ''; transform: rotate(18deg); }
.rank-map::after { left: 40%; }
.rank-map i { position: absolute; z-index: 2; display: grid; width: 24px; height: 24px; place-items: center; border: 2px solid white; border-radius: 50%; background: var(--sw-teal-600); color: white; font-size: 10px; font-style: normal; box-shadow: 0 3px 8px rgb(5 48 76 / 22%); }
.rank-map i:nth-child(1) { top: 29%; left: 65%; }
.rank-map i:nth-child(2) { top: 53%; left: 36%; background: white; color: var(--sw-text); }
.rank-map i:nth-child(3) { top: 70%; left: 72%; background: white; color: var(--sw-text); }
.area-ranking > div { display: grid; }
.area-ranking :is(button, a) { display: grid; min-width: 0; grid-template-columns: 23px 1fr auto 17px; align-items: center; gap: 6px; padding: 0 7px; border: 0; border-bottom: 1px solid var(--sw-line); background: white; color: inherit; text-align: left; text-decoration: none; }
.area-ranking :is(button, a):last-child { border: 0; }
.area-ranking :is(button, a) > span { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; background: #f2f5f7; font-size: 10px; }
.area-ranking :is(button, a) strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.area-ranking :is(button, a) b { color: var(--sw-teal-700); font-size: 18px; }
.area-ranking :is(button, a) .sw-icon { width: 13px; color: var(--sw-text-soft); }
.factor-section > h2 { margin-bottom: 7px; }
.factor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.factor-grid article { display: flex; min-width: 0; min-height: 45px; align-items: center; gap: 5px; padding: 6px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-md); box-shadow: 0 4px 11px rgb(5 42 74 / 6%); }
.factor-grid .sw-icon { width: 17px; color: var(--sw-teal-700); }
.factor-grid span { min-width: 0; }
.factor-grid small, .factor-grid strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.factor-grid small { color: var(--sw-text-soft); font-size: 8px; }
.factor-grid strong { margin-top: 2px; font-size: 10px; }
.bait-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 8px; }
.bait-grid :is(button, a) { position: relative; display: grid; min-width: 0; min-height: 82px; grid-template-rows: auto 1fr; overflow: hidden; padding: 7px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-md); background: white; color: inherit; text-align: left; text-decoration: none; }
.bait-grid strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.bait-grid img { width: 100%; height: 46px; object-fit: contain; filter: drop-shadow(0 7px 7px rgb(6 44 70 / 16%)); }
.bait-grid .sw-icon { position: absolute; right: 4px; bottom: 7px; width: 14px; }
.regulation-card { display: grid; width: 100%; min-height: 60px; grid-template-columns: auto 1.4fr 1fr auto; align-items: center; gap: 10px; margin: 0; padding: 8px 12px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-lg); background: white; box-shadow: var(--sw-shadow-card); text-align: left; }
.regulation-card { color: var(--sw-text); text-decoration: none; }
.regulation-card > .sw-icon:first-child { width: 25px; color: var(--sw-teal-700); }
.regulation-card > .sw-icon:last-child { width: 17px; }
.regulation-card span small, .regulation-card span strong { display: block; }
.regulation-card span small { margin-top: 2px; color: var(--sw-text-soft); font-size: 9px; }
.regulation-card span strong { font-size: 11px; }

@media (min-width: 960px) {
  .species-page { padding: 30px clamp(28px, 4vw, 64px) 60px; }
  .species-mobile-nav { display: none; }
  .species-hero { min-height: 350px; border-radius: 28px; }
  .species-hero-copy { top: 55px; left: 48px; }
  .species-hero-copy p { font-size: 13px; }
  .species-hero-copy h1 { font-size: 56px; }
  .species-hero-copy > strong { font-size: 88px; }
  .species-hero-copy > b { font-size: 22px; }
  .species-hero-copy > span { font-size: 14px; }
  .species-hero > img { top: 6%; right: 2%; width: min(58%, 760px); height: 88%; object-fit: contain; object-position: center; }
  .species-body { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; margin-top: 20px; padding: 0; }
  .species-section { margin: 0; padding: 22px; }
  .species-section h2 { font-size: 20px; }
  .hourly-section { grid-column: 1 / -1; }
  .hour-card { height: 135px; }
  .hour-card > span { font-size: 12px; }
  .hour-card > strong { font-size: 22px; }
  .mini-bars { height: 68px; }
  .mini-bars i { width: 9px; }
  .area-ranking { grid-template-columns: 45% 1fr; }
  .rank-map { min-height: 215px; }
  .area-ranking :is(button, a) { grid-template-columns: 28px 1fr auto 17px; padding: 0 12px; }
  .area-ranking :is(button, a) strong { font-size: 14px; }
  .area-ranking :is(button, a) b { font-size: 22px; }
  .factor-grid article { min-height: 82px; padding: 12px; }
  .factor-grid .sw-icon { width: 25px; }
  .factor-grid small { font-size: 10px; }
  .factor-grid strong { font-size: 13px; }
  .bait-section { grid-column: 1 / -1; }
  .bait-grid :is(button, a) { min-height: 138px; padding: 13px; }
  .bait-grid strong { font-size: 14px; }
  .bait-grid img { height: 95px; }
  .regulation-card { grid-column: 1 / -1; min-height: 84px; padding: 15px 22px; }
  .regulation-card span strong { font-size: 14px; }
  .regulation-card span small { font-size: 11px; }
}

/* Bait */
.bait-page { position: relative; height: 100vh; min-height: 700px; overflow: hidden; background: white; }
.bait-page > .mobile-header { padding: 0 16px; }
.bait-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 5px 16px 8px; }
.bait-title p { margin: 0 0 2px; color: var(--sw-teal-700); font-size: 10px; font-weight: 720; text-transform: uppercase; letter-spacing: .06em; }
.bait-title h1 { margin: 0; font-size: 26px; line-height: 1.05; letter-spacing: -.04em; }
.bait-title > .avatar { display: none; }
.bait-selectors { display: grid; grid-template-columns: 1.3fr .7fr; gap: 8px; padding: 4px 16px 8px; }
.bait-mode { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0 16px 9px; padding: 4px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-pill); }
.bait-mode button, .bait-mode a { display: flex; min-height: 38px; align-items: center; justify-content: center; gap: 7px; padding: 0; border: 0; border-radius: var(--sw-radius-pill); background: white; color: var(--sw-text-soft); font-weight: 650; text-decoration: none; }
.bait-mode .sw-icon { width: 18px; }
.bait-mode .is-active { background: linear-gradient(100deg, var(--sw-navy-900), var(--sw-teal-700)); color: white; box-shadow: var(--sw-shadow-card); }
.bait-workspace { position: relative; height: calc(100vh - 243px); min-height: 470px; }
.bait-map, .bait-map > .marine-map { position: absolute; inset: 0; }
.bait-map .forecast-zone:nth-of-type(1) { z-index: 5; }
.bait-map .map-scale { bottom: 250px; }
.route-line { position: absolute; z-index: 4; top: 46%; left: 18%; width: 50%; border-top: 2px dashed rgb(255 255 255 / 90%); transform: rotate(-26deg); transform-origin: left; }
.launch-label { position: absolute; z-index: 5; bottom: 30%; left: 8%; display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border-radius: var(--sw-radius-pill); background: rgb(255 255 255 / 92%); color: var(--sw-navy-900); font-size: 10px; font-weight: 700; box-shadow: var(--sw-shadow-card); }
.launch-label .sw-icon { width: 16px; }
.bait-panel { position: absolute; z-index: 8; right: 0; bottom: var(--sw-bottom-nav-height); left: 0; max-height: 340px; overflow: auto; padding: 15px 16px 16px; border-radius: 25px 25px 0 0; background: rgb(255 255 255 / 98%); box-shadow: 0 -14px 36px rgb(4 36 67 / 17%); }
.bait-panel.is-expanded { max-height: min(72vh, 620px); }
.bait-panel > .inline-title h2 { font-size: 16px; }
.bait-choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 8px; }
.bait-choice { position: relative; display: grid; min-width: 0; min-height: 124px; grid-template-rows: auto 36px auto; padding: 7px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-md); background: white; text-align: left; }
.bait-choice.is-selected { border-color: var(--sw-teal-600); box-shadow: 0 0 0 1px var(--sw-teal-600); }
.bait-choice > span { display: block; min-width: 0; overflow-wrap: anywhere; font-size: 10px; font-weight: 700; line-height: 1.15; white-space: normal; }
.bait-choice > span i { display: inline-grid; width: 17px; height: 17px; margin-left: 3px; place-items: center; border-radius: 50%; background: var(--sw-teal-600); color: white; font-size: 10px; font-style: normal; vertical-align: middle; }
.bait-choice img { width: 100%; height: 36px; object-fit: contain; }
.bait-choice > strong { color: var(--sw-teal-600); font-size: 19px; }
.bait-choice > .sw-icon { position: absolute; right: 5px; bottom: 7px; width: 13px; }
.bait-selected { position: relative; display: grid; grid-template-columns: 1fr 110px; gap: 4px 8px; margin-top: 9px; padding: 11px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-lg); background: white; }
.bait-selected > div > span { float: right; padding: 4px 7px; border-radius: var(--sw-radius-pill); background: var(--sw-mint-100); color: var(--sw-teal-700); font-size: 8px; }
.bait-selected h2 { margin: 0 0 4px; font-size: 17px; }
.bait-selected > div > div { display: flex; align-items: baseline; gap: 7px; color: var(--sw-teal-600); }
.bait-selected > div > div strong { flex: 0 0 auto; font-size: 34px; line-height: 1; white-space: nowrap; }
.bait-selected > div > div b { max-width: 90px; font-size: 11px; line-height: 1.15; }
.bait-selected p { display: flex; align-items: center; gap: 5px; margin: 5px 0 0; font-size: 9px; }
.bait-selected p .sw-icon { width: 14px; color: var(--sw-navy-800); }
.bait-selected > img { width: 100%; height: 86px; align-self: center; object-fit: contain; filter: drop-shadow(0 8px 8px rgb(7 47 72 / 18%)); }
.bait-selected > button { display: flex; min-height: 40px; grid-column: 1 / -1; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; border: 0; border-radius: var(--sw-radius-pill); background: linear-gradient(100deg, var(--sw-navy-900), var(--sw-navy-700)); color: white; font-weight: 700; }
.bait-selected > button .sw-icon { width: 19px; }
.bait-selected > small { display: flex; grid-column: 1 / -1; align-items: center; justify-content: center; gap: 5px; color: var(--sw-text-soft); font-size: 8px; }
.bait-selected > small .sw-icon { width: 14px; color: var(--sw-teal-700); }

@media (min-width: 960px) {
  .bait-page { height: calc(100vh - var(--sw-topbar-height)); min-height: 690px; }
  .bait-title { position: absolute; z-index: 12; top: 22px; left: 28px; align-items: center; padding: 0; }
  .bait-title p { color: white; text-shadow: 0 1px 3px var(--sw-navy-950); }
  .bait-title h1 { color: white; font-size: 30px; text-shadow: 0 2px 5px var(--sw-navy-950); }
  .bait-selectors { position: absolute; z-index: 12; top: 20px; right: 430px; display: flex; padding: 0; }
  .bait-selectors .selector { min-width: 155px; background: rgb(255 255 255 / 95%); box-shadow: var(--sw-shadow-card); }
  .bait-mode { position: absolute; z-index: 12; top: 78px; right: 430px; width: 420px; margin: 0; background: rgb(255 255 255 / 95%); box-shadow: var(--sw-shadow-card); }
  .bait-workspace { display: grid; height: 100%; min-height: 0; grid-template-columns: minmax(0, 1fr) 410px; }
  .bait-map { position: relative; }
  .bait-map .map-scale { bottom: 24px; }
  .launch-label { bottom: 14%; left: 9%; font-size: 12px; }
  .bait-panel { position: relative; max-height: none; padding: calc(var(--sw-topbar-height) + 20px) 22px 30px; border-left: 1px solid var(--sw-line); border-radius: 0; box-shadow: -12px 0 30px rgb(2 28 56 / 8%); }
  .bait-panel > .sheet-handle { display: none; }
  .bait-panel > .inline-title h2 { font-size: 21px; }
  .bait-choice-grid { gap: 10px; margin-top: 16px; }
  .bait-choice { min-height: 150px; grid-template-rows: auto 54px auto; padding: 10px; }
  .bait-choice > span { font-size: 12px; }
  .bait-choice img { height: 54px; }
  .bait-choice > strong { font-size: 26px; }
  .bait-selected { grid-template-columns: 1fr 150px; margin-top: 18px; padding: 18px; }
  .bait-selected h2 { font-size: 24px; }
  .bait-selected > div > div strong { font-size: 52px; }
  .bait-selected > div > div b { max-width: 120px; font-size: 15px; }
  .bait-selected p { margin-top: 8px; font-size: 11px; }
  .bait-selected > img { height: 145px; }
  .bait-selected > button { min-height: 50px; margin-top: 12px; font-size: 16px; }
  .bait-selected > small { margin-top: 8px; font-size: 10px; }
}

/* Plan */
.plan-page { min-height: 100vh; padding: 10px 15px calc(var(--sw-bottom-nav-height) + 18px); background: #f8fafc; }
.plan-hero { position: relative; display: flex; min-height: 300px; flex-direction: column; justify-content: flex-end; overflow: hidden; margin: 0 0 14px; border-radius: var(--sw-radius-xl); background: #042d50 url('/ui/assets/backgrounds/home-ocean.webp') center / cover no-repeat; box-shadow: var(--sw-shadow-card); color: white; isolation: isolate; }
.plan-hero::before { position: absolute; z-index: 0; inset: 0; background: linear-gradient(0deg, rgb(1 24 46 / 75%), transparent 57%), rgb(2 29 53 / 24%); content: ''; }
.plan-hero-fish { position: absolute; z-index: 1; top: 5%; right: 4%; width: 84%; height: 62%; object-fit: contain; object-position: center; filter: drop-shadow(0 14px 15px rgb(0 20 38 / 25%)); }
.plan-hero-copy { position: relative; z-index: 2; display: grid; align-content: center; min-height: 106px; padding: 18px 20px; background: rgb(1 24 46 / 72%); }
.plan-hero-copy p { margin: 0 0 5px; color: var(--sw-aqua-400); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.plan-hero-copy h2 { max-width: 100%; margin: 0; font-size: clamp(27px, 8vw, 38px); line-height: 1.06; letter-spacing: -.04em; overflow-wrap: anywhere; }
.plan-hero-copy span { margin-top: 7px; color: rgb(219 247 246 / 90%); font-size: 11px; }
.plan-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.plan-heading p { margin: 0 0 3px; color: var(--sw-teal-700); font-size: 9px; font-weight: 730; text-transform: uppercase; letter-spacing: .07em; }
.plan-heading h1 { margin: 0; font-size: 28px; letter-spacing: -.045em; }
.plan-heading button { display: flex; min-height: 31px; align-items: center; gap: 7px; margin-top: 3px; padding: 0; border: 0; background: transparent; color: var(--sw-text); font-weight: 650; }
.plan-heading button .sw-icon { width: 19px; }
.plan-heading button .sw-icon:last-child { width: 15px; }
.live-trip-command { margin: 8px 0 12px; padding: 13px; border: 1px solid rgb(9 150 134 / 34%); border-radius: var(--sw-radius-xl); background: linear-gradient(120deg, #07385c, #086c78); box-shadow: 0 14px 30px rgb(2 47 75 / 18%); color: white; }
.live-trip-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.live-trip-status span { display: flex; align-items: center; gap: 7px; color: #8af5b2; font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.live-trip-status i { width: 8px; height: 8px; border-radius: 50%; background: #62d774; box-shadow: 0 0 0 5px rgb(98 215 116 / 14%); }
.live-trip-status strong { font-variant-numeric: tabular-nums; font-size: 14px; }
.live-trip-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.live-trip-summary > div { min-width: 0; padding: 9px; border-radius: var(--sw-radius-md); background: rgb(255 255 255 / 9%); }
.live-trip-summary small, .live-trip-summary strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-trip-summary small { color: rgb(255 255 255 / 68%); font-size: 8px; text-transform: uppercase; letter-spacing: .05em; }
.live-trip-summary strong { margin-top: 3px; font-size: 10px; }
.live-trip-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.live-trip-tools a, .live-trip-tools button { display: flex; min-height: 38px; align-items: center; justify-content: center; gap: 5px; padding: 4px; border: 1px solid rgb(255 255 255 / 24%); border-radius: var(--sw-radius-pill); background: rgb(255 255 255 / 8%); color: white; font-size: 8px; font-weight: 720; text-align: center; text-decoration: none; }
.live-trip-tools button:last-child { border-color: rgb(255 132 132 / 62%); color: #ffd5d5; }
.live-trip-tools .sw-icon { width: 15px; flex: 0 0 auto; }
.plan-grid { display: grid; gap: 10px; }
.route-card { overflow: hidden; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-xl); background: white; box-shadow: var(--sw-shadow-card); }
.route-map { position: relative; height: 245px; overflow: hidden; background: #0a7196 url('/ui/assets/backgrounds/plan-ocean.webp') center / cover no-repeat; }
.route-map > .marine-map { position: absolute; inset: 0; background: transparent; }
.route-map .map-art { display: none; }
.route-map .map-tools, .route-map .map-scale, .route-map .user-location { display: none; }
.route-map .forecast-zone { width: 82px; height: 57px; }
.route-map .zone-pin { width: 30px; height: 30px; }
.route-map .zone-pin .sw-icon { width: 16px; }
.route-map .zone-label { top: calc(50% + 21px); font-size: 8px; }
.route-map .zone-label strong { font-size: 9px; }
.route-map .forecast-zone:not(.is-selected) .zone-label { display: grid; }
.plan-boat-art { position: absolute; z-index: 3; right: 3%; bottom: 3%; width: min(31%, 230px); height: auto; opacity: .82; filter: drop-shadow(0 12px 12px rgb(1 36 64 / 38%)); }
.planned-route { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; fill: none; stroke: white; stroke-width: .8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 2px rgb(2 32 58 / 50%)); }
.planned-route path:nth-child(2) { stroke-width: .55; }
.marina-pin { position: absolute; z-index: 5; bottom: 11%; left: 13%; display: flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 12px; background: rgb(255 255 255 / 92%); box-shadow: var(--sw-shadow-card); font-size: 8px; line-height: 1.15; }
.marina-pin .sw-icon { width: 19px; color: var(--sw-navy-800); }
.route-map.is-live .marina-pin { display: none; }
.trip-route-marker { display: grid; min-width: 92px; grid-template-columns: 25px 1fr; align-items: center; gap: 6px; padding: 6px 9px 6px 6px; border: 2px solid white; border-radius: 17px 17px 17px 5px; background: rgb(4 52 91 / 94%); box-shadow: 0 8px 22px rgb(0 26 49 / 35%); color: white; }
.trip-route-marker strong { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: var(--sw-teal-600); font-size: 11px; }
.trip-route-marker span { max-width: 112px; overflow: hidden; font-size: 10px; font-weight: 720; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.trip-route-marker.is-bait strong { background: #db9416; }
.trip-route-marker.is-target strong { background: #0c9b8c; }
.trip-route-arrow { display: grid; width: 31px; height: 31px; place-items: center; border: 2px solid white; border-radius: 50%; background: var(--sw-navy-900); box-shadow: 0 6px 16px rgb(0 27 50 / 38%); color: white; }
.trip-route-arrow i { display: block; font-size: 18px; font-style: normal; line-height: 1; transform: rotate(calc(var(--route-bearing) - 90deg)); }
.itinerary-card { padding: 11px 15px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-xl); background: white; box-shadow: var(--sw-shadow-card); }
.itinerary-card h2 { margin: 0 0 6px; font-size: 17px; }
.itinerary-list { position: relative; }
.itinerary-list::before { position: absolute; top: 14px; bottom: 14px; left: 91px; width: 2px; background: var(--sw-line); content: ''; }
.itinerary-stop { position: relative; display: grid; min-height: 32px; grid-template-columns: 76px 12px 25px 1fr; align-items: center; gap: 7px; border-bottom: 1px solid #edf1f4; }
.itinerary-stop:last-child { border: 0; }
.itinerary-stop time { font-size: 11px; font-weight: 600; }
.timeline-dot { z-index: 1; width: 10px; height: 10px; border: 2px solid white; border-radius: 50%; background: var(--sw-navy-800); box-shadow: 0 0 0 1px var(--sw-line); }
.itinerary-stop.is-target .timeline-dot { background: var(--sw-teal-600); }
.itinerary-stop > .sw-icon { width: 21px; color: var(--sw-navy-800); }
.itinerary-stop.is-target > .sw-icon { color: var(--sw-teal-700); }
.itinerary-stop div { min-width: 0; }
.itinerary-stop div strong, .itinerary-stop div small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.itinerary-stop div strong { font-size: 11px; }
.itinerary-stop.is-target div strong { color: var(--sw-teal-700); }
.itinerary-stop div small { margin-top: 2px; color: var(--sw-text-soft); font-size: 9px; }
.trip-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.plan-regulation { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 9px; margin-top: 10px; padding: 10px 12px; border: 1px solid #b8ded9; border-radius: var(--sw-radius-lg); background: #f0fbf8; color: var(--sw-teal-800); }
.plan-regulation > .sw-icon { width: 24px; }
.plan-regulation small, .plan-regulation strong, .plan-regulation span { display: block; }
.plan-regulation small { font-size: 7px; text-transform: uppercase; letter-spacing: .04em; }
.plan-regulation strong { margin-top: 2px; font-size: 10px; }
.plan-regulation span { margin-top: 2px; color: var(--sw-text-soft); font-size: 7px; }
.plan-regulation a { display: flex; align-items: center; gap: 3px; color: inherit; font-size: 8px; font-weight: 720; text-decoration: none; }
.plan-regulation a .sw-icon { width: 13px; }
.plan-regulation[data-status="PROHIBITED"], .plan-regulation[data-status="CLOSED_SEASON"], .plan-regulation[data-status="PROTECTED_AREA_NO_TAKE"] { border-color: #efb8bb; background: #fff1f2; color: #a51d26; }
.trip-metrics article { display: grid; min-width: 0; min-height: 68px; place-items: center; padding: 6px 4px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-md); background: white; box-shadow: var(--sw-shadow-card); text-align: center; }
.trip-metrics .sw-icon { width: 22px; color: var(--sw-navy-800); }
.trip-metrics small { font-size: 8px; line-height: 1.15; }
.trip-metrics strong { overflow: hidden; color: var(--sw-teal-700); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.plan-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.plan-actions button { display: flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--sw-navy-800); border-radius: var(--sw-radius-pill); background: white; color: var(--sw-navy-900); font-weight: 720; }
.plan-actions button.start-trip { background: linear-gradient(100deg, var(--sw-navy-900), var(--sw-navy-700)); color: white; }
.plan-actions .sw-icon { width: 21px; }
.plan-actions .clear-trip { grid-column: 1 / -1; border-color: #d5a0a7; color: #9b2533; }
.plan-fuel-warning { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 10px 12px; border: 1px solid #e4b85e; border-radius: var(--sw-radius-md); background: #fff8df; color: #72530c; font-size: 10px; font-weight: 680; }
.plan-fuel-warning .sw-icon { width: 20px; flex: 0 0 auto; }
.trip-outcome-question { margin: 0; color: var(--sw-navy-900); font-size: 18px; font-weight: 760; }

@media (min-width: 960px) {
  .plan-page { padding: 30px clamp(28px, 4vw, 64px) 56px; }
  .plan-hero { min-height: 330px; justify-content: center; margin-bottom: 18px; }
  .plan-hero::before { background: linear-gradient(90deg, rgb(1 24 46 / 80%), transparent 70%), rgb(2 29 53 / 20%); }
  .plan-hero-fish { top: 4%; right: 3%; width: 56%; height: 92%; }
  .plan-hero-copy { width: min(48%, 580px); min-height: 0; padding: 32px 38px; background: none; }
  .plan-hero-copy p { font-size: 13px; }
  .plan-hero-copy h2 { font-size: clamp(37px, 4vw, 58px); }
  .plan-hero-copy span { font-size: 15px; }
  .plan-heading { align-items: center; margin-bottom: 20px; }
  .plan-heading p { font-size: 11px; }
  .plan-heading h1 { font-size: 42px; }
  .plan-heading > .avatar { display: none; }
  .live-trip-command { display: grid; grid-template-columns: minmax(120px, .4fr) minmax(0, 1.35fr) minmax(0, 1.35fr); align-items: center; gap: 18px; margin: -4px 0 18px; padding: 18px 20px; }
  .live-trip-summary, .live-trip-tools { margin-top: 0; }
  .live-trip-summary, .live-trip-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .live-trip-status { display: grid; justify-content: start; }
  .live-trip-status strong { font-size: 18px; }
  .live-trip-summary small { font-size: 9px; }
  .live-trip-summary strong { font-size: 12px; }
  .live-trip-tools a, .live-trip-tools button { min-height: 46px; font-size: 10px; }
  .plan-grid { grid-template-columns: minmax(0, 1.2fr) minmax(390px, .8fr); gap: 18px; }
  .route-map { height: 558px; }
  .route-map .forecast-zone { width: 130px; height: 88px; }
  .route-map .zone-pin { width: 43px; height: 43px; }
  .route-map .zone-pin .sw-icon { width: 23px; }
  .route-map .zone-label { top: calc(50% + 33px); }
  .route-map .zone-label strong { font-size: 13px; }
  .route-map .zone-label small { font-size: 10px; }
  .marina-pin { padding: 10px 13px; font-size: 12px; }
  .marina-pin .sw-icon { width: 27px; }
  .itinerary-card { padding: 24px; }
  .itinerary-card h2 { font-size: 23px; }
  .itinerary-list::before { left: 111px; }
  .itinerary-stop { min-height: 66px; grid-template-columns: 96px 14px 30px 1fr; gap: 9px; }
  .itinerary-stop time { font-size: 14px; }
  .itinerary-stop > .sw-icon { width: 25px; }
  .itinerary-stop div strong { font-size: 14px; }
  .itinerary-stop div small { font-size: 11px; }
.trip-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
  .plan-regulation { grid-template-columns: 36px 1fr auto; margin-top: 18px; padding: 14px 18px; }
  .plan-regulation > .sw-icon { width: 30px; }
  .plan-regulation small { font-size: 9px; }
  .plan-regulation strong { font-size: 14px; }
  .plan-regulation span, .plan-regulation a { font-size: 10px; }
  .trip-metrics article { min-height: 114px; grid-template-columns: auto 1fr; place-items: center start; gap: 3px 10px; padding: 16px; text-align: left; }
  .trip-metrics .sw-icon { grid-row: 1 / 3; width: 30px; }
  .trip-metrics small { font-size: 11px; }
  .trip-metrics strong { font-size: 23px; }
  .plan-actions { justify-content: end; grid-template-columns: 220px 260px; gap: 12px; margin-top: 18px; }
  .plan-actions:has(.clear-trip) { grid-template-columns: 180px 220px 260px; }
  .plan-actions .clear-trip { grid-column: auto; }
  .plan-actions button { min-height: 56px; font-size: 16px; }
}

/* Catch+ */
.catch-page { min-height: 100vh; padding: 0 15px calc(var(--sw-bottom-nav-height) + 24px); background: #f8fafc; }
.catch-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 10px 1px 12px; }
.catch-heading p { margin: 0 0 2px; color: var(--sw-teal-700); font-size: 9px; font-weight: 740; text-transform: uppercase; letter-spacing: .07em; }
.catch-heading h1 { margin: 0; font-size: 32px; line-height: 1; letter-spacing: -.045em; }
.catch-heading > div > span { display: block; margin-top: 5px; color: var(--sw-text-soft); font-size: 11px; }
.no-catch-button { display: flex; min-height: 39px; align-items: center; gap: 6px; padding: 0 11px; border: 1px solid var(--sw-line-strong); border-radius: var(--sw-radius-pill); background: white; color: var(--sw-text); font-size: 9px; font-weight: 650; }
.no-catch-button .sw-icon { width: 16px; color: var(--sw-teal-700); }
.catch-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-pill); background: white; }
.catch-tabs button { min-height: 39px; border: 0; border-radius: var(--sw-radius-pill); background: transparent; color: var(--sw-text-soft); font-size: 10px; font-weight: 650; }
.catch-tabs button.is-active { background: var(--sw-navy-900); color: white; box-shadow: var(--sw-shadow-card); }
.catch-layout { display: grid; gap: 12px; margin-top: 12px; }
.scan-card { padding: 16px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-xl); background: linear-gradient(rgb(255 255 255 / 90%), rgb(255 255 255 / 96%)), url('/ui/assets/backgrounds/catch-underwater.webp') center / cover no-repeat; box-shadow: var(--sw-shadow-card); text-align: center; }
.scan-visual { position: relative; display: grid; width: 100%; height: 145px; place-items: center; overflow: hidden; border-radius: var(--sw-radius-lg); background: radial-gradient(circle at 50% 45%, #93e7df 0 3%, #1f9caa 4% 18%, #0b547b 19% 45%, #082949 46%); }
.scan-visual::before { position: absolute; inset: 14px; border: 1px dashed rgb(255 255 255 / 60%); border-radius: 18px; content: ''; }
.scan-visual > span { z-index: 2; display: grid; width: 62px; height: 62px; place-items: center; border: 1px solid rgb(255 255 255 / 64%); border-radius: 50%; background: rgb(255 255 255 / 17%); color: white; backdrop-filter: blur(5px); }
.scan-visual > span .sw-icon { width: 36px; }
.scan-visual > i { position: absolute; width: 58px; height: 58px; border-top: 2px solid var(--sw-aqua-400); border-left: 2px solid var(--sw-aqua-400); }
.scan-visual > i:nth-of-type(1) { top: 14px; left: 14px; border-radius: 17px 0 0; }
.scan-visual > i:nth-of-type(2) { right: 14px; bottom: 14px; border: 0; border-right: 2px solid var(--sw-aqua-400); border-bottom: 2px solid var(--sw-aqua-400); border-radius: 0 0 17px; }
.scan-card > p { margin: 12px 0 2px; color: var(--sw-teal-700); font-size: 9px; font-weight: 740; text-transform: uppercase; letter-spacing: .06em; }
.scan-card h2 { margin: 0; font-size: 21px; }
.scan-card > span { display: block; max-width: 430px; margin: 5px auto 0; color: var(--sw-text-soft); font-size: 10px; line-height: 1.35; }
.scan-actions { display: grid; grid-template-columns: 1.1fr .9fr; gap: 8px; margin-top: 13px; }
.scan-actions button { min-height: 43px; border: 1px solid var(--sw-navy-800); border-radius: var(--sw-radius-pill); background: white; color: var(--sw-navy-900); font-size: 10px; font-weight: 720; }
.scan-actions button:first-child { display: flex; align-items: center; justify-content: center; gap: 6px; background: linear-gradient(100deg, var(--sw-navy-900), var(--sw-teal-700)); color: white; }
.scan-actions .sw-icon { width: 18px; }
.manual-entry { display: inline-flex; min-height: 35px; align-items: center; gap: 5px; margin-top: 6px; border: 0; background: transparent; color: var(--sw-text-soft); font-size: 10px; }
.manual-entry .sw-icon { width: 14px; }
.recent-catches { padding: 14px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-xl); background: white; box-shadow: var(--sw-shadow-card); }
.recent-catches .inline-title h2 { font-size: 17px; }
.recent-catches > div:last-child { display: grid; gap: 7px; margin-top: 8px; }
.catch-card { position: relative; display: grid; min-height: 91px; grid-template-columns: 105px 1fr auto 30px; align-items: center; gap: 8px; overflow: hidden; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-md); background: white; }
.catch-art { align-self: stretch; overflow: hidden; background: linear-gradient(145deg, #eaf8f8, #b7e5e2); }
.catch-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 7px 7px rgb(6 42 67 / 18%)); }
.catch-card > div:nth-child(2) { min-width: 0; }
.catch-card > div:nth-child(2) > span { float: right; padding: 3px 6px; border-radius: 999px; background: var(--sw-mint-100); color: var(--sw-teal-700); font-size: 7px; }
.catch-card h3 { margin: 0 0 5px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.catch-card p { display: flex; align-items: center; gap: 5px; margin: 3px 0 0; color: var(--sw-text-soft); font-size: 8px; }
.catch-card p .sw-icon { width: 13px; }
.catch-card > button { display: grid; width: 25px; height: 35px; place-items: center; padding: 0; border: 0; background: transparent; color: var(--sw-teal-700); }
.catch-card > button .sw-icon { width: 17px; }
.catch-card > .catch-publish-action { width: auto; min-width: 48px; padding: 0 9px; border: 1px solid var(--sw-teal-600); border-radius: 999px; color: var(--sw-teal-700); font-size: 10px; font-weight: 800; }
.catch-card > .sw-icon { width: 13px; color: var(--sw-text-muted); }

@media (min-width: 960px) {
  .catch-page { padding: 30px clamp(28px, 4vw, 64px) 58px; }
  .catch-page > .mobile-header { display: none; }
  .catch-heading { padding: 0 0 20px; }
  .catch-heading p { font-size: 11px; }
  .catch-heading h1 { font-size: 42px; }
  .catch-heading > div > span { font-size: 14px; }
  .no-catch-button { min-height: 46px; padding: 0 18px; font-size: 12px; }
  .catch-tabs { width: min(600px, 100%); }
  .catch-tabs button { min-height: 44px; font-size: 13px; }
  .catch-layout { grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr); gap: 18px; margin-top: 18px; }
  .catch-layout > * { min-width: 0; }
  .scan-card { padding: 22px; }
  .scan-visual { height: 335px; }
  .scan-card > p { margin-top: 18px; font-size: 11px; }
  .scan-card h2 { font-size: 28px; }
  .scan-card > span { font-size: 12px; }
  .scan-actions button { min-height: 50px; font-size: 13px; }
  .manual-entry { min-height: 42px; font-size: 12px; }
  .recent-catches { padding: 20px; }
  .recent-catches .inline-title h2 { font-size: 22px; }
  .recent-catches > div:last-child { gap: 12px; margin-top: 13px; }
  .catch-card { min-height: 150px; grid-template-columns: 190px 1fr auto 38px; gap: 14px; }
  .catch-card h3 { font-size: 18px; }
  .catch-card p { font-size: 11px; }
  .catch-card p .sw-icon { width: 16px; }
}

/* Explore */
.explore-page { min-height: 100vh; padding: 0 15px calc(var(--sw-bottom-nav-height) + 24px); background: #f8fafc; }
.explore-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 9px 1px 10px; }
.explore-heading p { margin: 0 0 2px; color: var(--sw-teal-700); font-size: 9px; font-weight: 740; text-transform: uppercase; letter-spacing: .07em; }
.explore-heading h1 { margin: 0; font-size: 32px; line-height: 1; letter-spacing: -.045em; }
.explore-heading > button { display: grid; width: 39px; height: 39px; place-items: center; padding: 0; border: 1px solid var(--sw-line); border-radius: 50%; background: white; color: var(--sw-navy-800); box-shadow: var(--sw-shadow-card); }
.explore-heading > button .sw-icon { width: 19px; }
.explore-scope { display: grid; grid-template-columns: minmax(0, 1fr) repeat(2, minmax(88px, .35fr)); gap: 8px; margin-bottom: 9px; }
.explore-scope > button, .explore-scope > label, .explore-query-filters > label { min-width: 0; border: 1px solid var(--sw-line-strong); border-radius: var(--sw-radius-md); background: white; box-shadow: var(--sw-shadow-card); }
.explore-scope > button { display: grid; min-height: 54px; grid-template-columns: 24px minmax(0, 1fr) 16px; align-items: center; gap: 8px; padding: 7px 11px; color: var(--sw-navy-800); text-align: left; }
.explore-scope > button .sw-icon { width: 20px; color: var(--sw-teal-700); }
.explore-scope > button span { min-width: 0; }
.explore-scope > button small, .explore-scope > button strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.explore-scope > button small, .explore-scope label > span, .explore-query-filters label { color: var(--sw-text-soft); font-size: 8px; font-weight: 720; letter-spacing: .02em; }
.explore-scope > button strong { margin-top: 2px; font-size: 11px; }
.explore-scope > label, .explore-query-filters > label { display: grid; gap: 2px; padding: 6px 9px; }
.explore-scope select, .explore-query-filters select { width: 100%; min-width: 0; height: 26px; padding: 0 18px 0 0; border: 0; outline: 0; background: white; color: var(--sw-navy-800); font-size: 10px; font-weight: 760; }
.explore-query-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 9px; }
.explore-regional-tool, .explore-empty-local { display: grid; gap: 7px; margin-bottom: 9px; padding: 12px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-lg); background: linear-gradient(145deg, white, var(--sw-sky-100)); box-shadow: var(--sw-shadow-card); }
.explore-regional-tool strong, .explore-empty-local h2 { margin: 0; color: var(--sw-navy-900); font-size: 14px; }
.explore-regional-tool p, .explore-empty-local p { margin: 0; color: var(--sw-text-soft); font-size: 9px; line-height: 1.45; }
.explore-regional-tool button, .explore-empty-local button { min-height: 36px; padding: 0 13px; border: 1px solid var(--sw-teal-600); border-radius: var(--sw-radius-pill); background: white; color: var(--sw-teal-700); font-size: 9px; font-weight: 760; }
.explore-empty-local > div { display: flex; flex-wrap: wrap; gap: 7px; }
.explore-view-switch { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin-bottom: 9px; padding: 4px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-pill); background: white; box-shadow: var(--sw-shadow-card); }
.explore-view-switch button { min-height: 38px; border: 0; border-radius: var(--sw-radius-pill); background: transparent; color: var(--sw-text-soft); font-size: 12px; font-weight: 760; }
.explore-view-switch button.is-active { background: linear-gradient(100deg, var(--sw-navy-900), var(--sw-teal-700)); color: white; }
.explore-filter-menu { position: relative; z-index: 8; margin-bottom: 8px; }
.explore-filter-menu summary { display: flex; width: fit-content; min-height: 36px; align-items: center; gap: 7px; margin-left: auto; padding: 0 13px; border: 1px solid var(--sw-line-strong); border-radius: var(--sw-radius-pill); background: white; color: var(--sw-navy-800); box-shadow: var(--sw-shadow-card); font-size: 10px; font-weight: 740; cursor: pointer; list-style: none; }
.explore-filter-menu summary::-webkit-details-marker { display: none; }
.explore-filter-menu summary .sw-icon { width: 15px; }
.explore-filter-menu summary span { display: grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; border-radius: 10px; background: var(--sw-mint-100); color: var(--sw-teal-700); font-size: 8px; }
.explore-filter-menu > div { display: grid; position: absolute; z-index: 12; top: calc(100% + 6px); right: 0; width: min(330px, calc(100vw - 30px)); gap: 7px; padding: 11px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-lg); background: white; box-shadow: var(--sw-shadow-float); }
.explore-filter-menu select { min-height: 40px; min-width: 0; padding: 0 11px; border: 1px solid var(--sw-line-strong); border-radius: var(--sw-radius-md); background: white; color: var(--sw-text); font-size: 10px; }
.explore-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 2px 1px 9px; scrollbar-width: none; }
.explore-tabs::-webkit-scrollbar { display: none; }
.explore-tabs button { min-height: 36px; flex: 0 0 auto; padding: 0 17px; border: 1px solid var(--sw-line-strong); border-radius: var(--sw-radius-pill); background: white; color: var(--sw-text-soft); font-size: 10px; font-weight: 680; }
.explore-tabs button.is-active { border-color: var(--sw-navy-900); background: linear-gradient(100deg, var(--sw-navy-900), var(--sw-teal-700)); color: white; box-shadow: var(--sw-shadow-card); }
.explore-layout, .post-feed { display: grid; gap: 12px; }
.post-card { overflow: hidden; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-xl); background: white; box-shadow: var(--sw-shadow-card); }
.post-card > header { display: grid; min-height: 58px; grid-template-columns: 39px minmax(0, 1fr) auto 32px; align-items: center; gap: 7px; padding: 8px 11px; }
.post-card > header .avatar { width: 37px; height: 37px; border-width: 1px; font-size: 10px; }
.post-card > header div { min-width: 0; }
.post-card > header strong, .post-card > header small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-card > header strong { font-size: 12px; }
.post-card > header strong i { display: inline-grid; width: 13px; height: 13px; place-items: center; margin-left: 4px; border-radius: 50%; background: var(--sw-teal-600); color: white; font-size: 8px; font-style: normal; }
.post-card > header small { margin-top: 2px; color: var(--sw-text-soft); font-size: 9px; }
.post-card > header button { width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: var(--sw-text-muted); letter-spacing: .08em; }
.post-card > header .post-profile { width: 39px; height: 39px; }
.post-card > header .post-byline { width: auto; height: auto; min-width: 0; color: var(--sw-text); letter-spacing: 0; text-align: left; }
.post-follow { width: auto !important; min-width: 58px; height: 29px !important; padding: 0 9px !important; border: 1px solid var(--sw-teal-600) !important; border-radius: var(--sw-radius-pill); color: var(--sw-teal-700) !important; font-size: 8px; font-weight: 750; letter-spacing: 0 !important; }
.post-follow.is-following { background: var(--sw-teal-700) !important; color: white !important; }
.post-owner-label { padding: 4px 8px; border-radius: var(--sw-radius-pill); background: var(--sw-mint-100); color: var(--sw-teal-700); font-size: 8px; font-weight: 750; }
.post-photo { position: relative; height: 205px; overflow: hidden; background: var(--sw-navy-900); }
.post-card > .post-photo { display: block; width: 100%; padding: 0; border: 0; color: inherit; text-align: inherit; }
.post-photo img { width: 100%; height: 100%; object-fit: cover; }
.post-photo::after { position: absolute; inset: auto 0 0; height: 38%; background: linear-gradient(transparent, rgb(2 28 50 / 50%)); content: ''; }
.post-photo > span { position: absolute; z-index: 2; top: 10px; right: 10px; display: grid; gap: 2px; padding: 6px 9px; border-radius: 10px; background: rgb(4 42 70 / 78%); color: white; font-size: 9px; text-align: right; backdrop-filter: blur(6px); }
.post-photo > span b { color: var(--sw-aqua-400); font-size: 10px; }
.post-copy { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: start; padding: 10px 12px; }
.post-copy > span { display: grid; min-width: 0; grid-template-columns: 16px 1fr; gap: 1px 5px; color: var(--sw-teal-700); }
.post-copy > span .sw-icon { width: 15px; grid-row: 1 / 3; }
.post-copy b, .post-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-copy b { color: var(--sw-text); font-size: 9px; }
.post-copy small { font-size: 8px; }
.post-copy p { margin: 0; color: var(--sw-text-soft); font-size: 9px; line-height: 1.4; }
.post-recorded-details { display: block; margin-top: 5px; color: var(--sw-text-muted); font-size: 8px; line-height: 1.35; }
.post-map-action { display: flex; min-height: 34px; align-items: center; gap: 6px; margin: 0 12px 9px auto; padding: 0 11px; border: 1px solid var(--sw-teal-600); border-radius: var(--sw-radius-pill); background: var(--sw-teal-050); color: var(--sw-teal-700); font-size: 9px; font-weight: 750; }
.post-map-action .sw-icon { width: 15px; }
.post-card > footer { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--sw-line); }
.post-card > footer button { display: flex; min-height: 39px; align-items: center; justify-content: center; gap: 6px; border: 0; border-right: 1px solid var(--sw-line); background: white; color: var(--sw-text-soft); font-size: 10px; }
.post-card > footer button:last-child { border-right: 0; }
.post-card > footer .sw-icon { width: 17px; }
.post-card > footer button.is-liked { color: var(--sw-teal-700); background: var(--sw-teal-050); font-weight: 800; }
.post-card > footer button.is-liked:first-letter { color: #d43a5b; }
.post-card > footer button.is-saved { color: var(--sw-teal-700); background: var(--sw-teal-050); font-weight: 800; }
.community-posts, .tip-library, .tip-grid { display: grid; gap: 12px; }
.tip-library > header { display: grid; gap: 10px; padding: 15px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-xl); background: linear-gradient(145deg, white, var(--sw-sky-100)); box-shadow: var(--sw-shadow-card); }
.tip-library > header p { margin: 0; color: var(--sw-teal-700); font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.tip-library > header h2 { margin: 2px 0 0; font-size: 20px; }
.tip-library select { min-height: 40px; padding: 0 12px; border: 1px solid var(--sw-line-strong); border-radius: var(--sw-radius-pill); background: white; color: var(--sw-text); }
.tip-card { display: grid; gap: 10px; padding: 15px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-xl); background: white; box-shadow: var(--sw-shadow-card); }
.tip-card > div:first-child > span { color: var(--sw-teal-700); font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.tip-card h2 { margin: 4px 0 0; font-size: 16px; }
.tip-card p { margin: 6px 0 0; color: var(--sw-text-soft); font-size: 10px; line-height: 1.5; }
.tip-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tip-tags small { padding: 4px 7px; border-radius: var(--sw-radius-pill); background: var(--sw-mint-100); color: var(--sw-teal-700); font-size: 7px; }
.tip-card footer { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.tip-card footer button { display: flex; min-height: 38px; align-items: center; justify-content: center; gap: 5px; padding: 0 13px; border: 1px solid var(--sw-navy-900); border-radius: var(--sw-radius-pill); background: var(--sw-navy-900); color: white; font-size: 9px; font-weight: 730; }
.tip-card footer button:last-child { border-color: var(--sw-line-strong); background: white; color: var(--sw-text-soft); }
.tip-card footer button.is-saved { border-color: var(--sw-teal-600); background: var(--sw-mint-100); color: var(--sw-teal-700); }
.tip-card footer .sw-icon { width: 15px; }
.discover-panel { display: none; }
.explore-page[data-explore-view="map"] .post-feed { display: none; }
.explore-page[data-explore-view="map"] .discover-panel { display: grid; gap: 12px; }
.explore-page[data-explore-view="map"] .explore-tabs,
.explore-page[data-explore-view="map"] .explore-offline-promo { display: none; }
.community-map-shell { position: relative; overflow: hidden; padding: 0 !important; }
.community-map-heading { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px 8px; }
.community-map-heading h2 { margin: 0; font-size: 17px; }
.community-map-heading p { margin: 3px 0 0; color: var(--sw-text-soft); font-size: 9px; }
.community-map-shell > .community-map-legend { margin: 0; padding: 0 13px 9px; }
.community-map-shell > .community-area-map { height: max(470px, calc(100dvh - 285px)); margin: 0; border-radius: 0; }
.community-catch-sheet { position: absolute; z-index: 9; right: 8px; bottom: 8px; left: 8px; max-height: min(335px, 48%); overflow: auto; padding: 20px 14px 13px; border: 1px solid rgb(255 255 255 / 60%); border-radius: 20px; background: rgb(255 255 255 / 96%); box-shadow: 0 16px 48px rgb(1 28 50 / 28%); backdrop-filter: blur(14px); transition: transform .2s ease; touch-action: pan-y; }
.community-catch-sheet.is-minimized { transform: translateY(calc(100% - 66px)); overflow: hidden; }
.community-sheet-handle { position: absolute; top: 3px; left: 50%; width: 64px; height: 18px; padding: 0; border: 0; background: transparent; transform: translateX(-50%); }
.community-sheet-handle i { display: block; width: 34px; height: 4px; margin: auto; border-radius: 3px; background: #9aa9b8; }
.community-sheet-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 32px; height: 32px; padding: 0; border: 1px solid var(--sw-line); border-radius: 50%; background: white; color: var(--sw-navy-800); font-size: 22px; line-height: 1; }
.community-sheet-content { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: center; padding-right: 34px; }
.community-sheet-content > img,
.community-sheet-art { display: grid; width: 76px; height: 76px; place-items: center; border-radius: 13px; background: linear-gradient(145deg, var(--sw-navy-900), var(--sw-teal-700)); object-fit: cover; color: white; }
.community-sheet-content h3 { margin: 0; font-size: 18px; }
.community-sheet-content p { margin: 3px 0 0; color: var(--sw-text-soft); font-size: 9px; line-height: 1.4; }
.community-sheet-content strong { color: var(--sw-teal-700); }
.community-sheet-content footer { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr auto; gap: 8px; margin-top: 3px; }
.community-sheet-content footer button { min-height: 38px; padding: 0 13px; border: 1px solid var(--sw-navy-900); border-radius: var(--sw-radius-pill); background: var(--sw-navy-900); color: white; font-size: 10px; font-weight: 750; }
.community-sheet-content footer button:last-child { background: white; color: var(--sw-navy-900); }

@media (min-width: 960px) {
  .explore-page { padding: 30px clamp(28px, 4vw, 64px) 60px; }
  .explore-page > .mobile-header { display: none; }
  .explore-heading { padding: 0 0 18px; }
  .explore-heading p { font-size: 11px; }
  .explore-heading h1 { font-size: 42px; }
  .explore-heading > button { width: 46px; height: 46px; }
  .explore-heading > button .sw-icon { width: 22px; }
  .explore-scope { grid-template-columns: minmax(300px, 1fr) 150px 150px; margin-bottom: 14px; }
  .explore-scope > button { min-height: 62px; grid-template-columns: 28px minmax(0, 1fr) 18px; padding: 8px 15px; }
  .explore-scope > button .sw-icon { width: 23px; }
  .explore-scope > button small, .explore-scope label > span, .explore-query-filters label { font-size: 10px; }
  .explore-scope > button strong { font-size: 14px; }
  .explore-scope > label, .explore-query-filters > label { padding: 7px 12px; }
  .explore-scope select, .explore-query-filters select { height: 30px; font-size: 12px; }
  .explore-query-filters { width: min(520px, 100%); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 15px; }
  .explore-regional-tool, .explore-empty-local { padding: 16px 18px; }
  .explore-regional-tool strong, .explore-empty-local h2 { font-size: 18px; }
  .explore-regional-tool p, .explore-empty-local p { font-size: 11px; }
  .explore-view-switch { display: none; }
  .explore-filter-menu { margin: -55px 56px 18px auto; }
  .explore-filter-menu > div { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 440px; }
  .explore-tabs { gap: 9px; padding-bottom: 18px; }
  .explore-tabs button { min-height: 42px; padding: 0 22px; font-size: 12px; }
  .explore-layout { grid-template-columns: minmax(520px, 1fr) minmax(330px, .54fr); gap: 18px; align-items: start; }
  .post-feed { gap: 18px; }
  .post-card > header { min-height: 74px; grid-template-columns: 48px minmax(0, 1fr) auto 38px; gap: 10px; padding: 11px 16px; }
  .post-card > header .avatar { width: 46px; height: 46px; font-size: 12px; }
  .post-card > header strong { font-size: 15px; }
  .post-card > header small { font-size: 11px; }
  .post-photo { height: 355px; }
  .post-photo > span { top: 15px; right: 15px; padding: 8px 12px; font-size: 12px; }
  .post-photo > span b { font-size: 13px; }
  .post-copy { grid-template-columns: 175px 1fr; gap: 18px; padding: 15px 17px; }
  .post-copy > span { grid-template-columns: 20px 1fr; }
  .post-copy > span .sw-icon { width: 19px; }
  .post-copy b { font-size: 12px; }
  .post-copy small, .post-copy p { font-size: 11px; }
  .post-card > footer button { min-height: 50px; font-size: 12px; }
  .post-follow { min-width: 78px; height: 34px !important; font-size: 10px; }
  .community-posts, .tip-library, .tip-grid { gap: 18px; }
  .tip-library > header { grid-template-columns: 1fr 190px; align-items: center; padding: 21px; }
  .tip-library > header h2 { font-size: 25px; }
  .tip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tip-card { min-height: 220px; align-content: space-between; padding: 20px; }
  .tip-card h2 { font-size: 20px; }
  .tip-card p { font-size: 12px; }
  .discover-panel, .explore-page[data-explore-view="map"] .discover-panel { display: grid; position: sticky; top: calc(var(--sw-topbar-height) + 24px); gap: 18px; }
  .explore-page[data-explore-view="map"] .post-feed { display: grid; }
  .explore-page[data-explore-view="map"] .explore-tabs { display: flex; }
  .discover-panel > section { padding: 20px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-xl); background: white; box-shadow: var(--sw-shadow-card); }
  .discover-panel > .community-map-shell { padding: 0; }
  .community-map-shell > .community-area-map { height: 340px; min-height: 340px; }
  .discover-panel > section > p { color: var(--sw-text-soft); font-size: 10px; line-height: 1.5; }
  .discover-panel h2 { margin: 0; font-size: 20px; }
  .discover-panel ol { display: grid; gap: 9px; margin: 14px 0 0; padding: 0; list-style: none; }
  .discover-panel li { display: grid; min-height: 78px; grid-template-columns: 94px 1fr auto; align-items: center; gap: 10px; padding: 7px 9px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-md); }
  .discover-panel li img { width: 92px; height: 60px; object-fit: contain; filter: drop-shadow(0 6px 6px rgb(5 42 70 / 15%)); }
  .discover-panel li span strong, .discover-panel li span small { display: block; }
  .discover-panel li span strong { font-size: 13px; }
  .discover-panel li span small { margin-top: 3px; color: var(--sw-text-soft); font-size: 9px; }
  .discover-panel li > b { color: var(--sw-teal-600); font-size: 22px; }
  .discover-panel > section:last-child { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .discover-panel > section:last-child h2 { grid-column: 1 / -1; margin-bottom: 3px; }
  .discover-panel > section:last-child > button { display: grid; min-width: 0; grid-template-columns: 1fr; overflow: hidden; padding: 0 0 11px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-md); background: white; text-align: left; }
  .discover-panel > section:last-child > button b, .discover-panel > section:last-child > button small { padding: 0 10px; }
  .discover-panel > section:last-child > button b { margin-top: 8px; font-size: 12px; }
  .discover-panel > section:last-child > button small { margin-top: 2px; color: var(--sw-text-soft); font-size: 9px; }
  .area-map { display: block; height: 90px; background: radial-gradient(ellipse at 62% 44%, #b4f2e2 0 9%, transparent 10%), radial-gradient(ellipse at 45% 52%, #63ced0 0 24%, transparent 25%), linear-gradient(145deg, #0b527e, #31b8bf); }
  .area-map--reef { background: radial-gradient(ellipse at 40% 55%, #eff6c9 0 8%, transparent 9%), radial-gradient(ellipse at 52% 51%, #54c6c6 0 28%, transparent 29%), linear-gradient(145deg, #167098, #7ce1d3); }
}

.community-area-map { display: grid; position: relative; height: 205px; place-items: center; overflow: hidden; margin-top: 13px; border-radius: var(--sw-radius-lg); background: linear-gradient(145deg, #0a5074, #39b8bb); color: white; font-size: 10px; }
.community-area-map:not(.is-live):not(.is-fallback)::after { content: 'Approximate catch locations'; }
.community-map-marker { display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 3px solid white; border-radius: 50%; background: var(--sw-teal-700); box-shadow: 0 5px 14px rgb(1 28 50 / 35%); color: white; font-size: 8px; font-weight: 800; }
.community-map-fallback-marker { display: grid; position: absolute; z-index: 2; width: 46px; height: 46px; place-items: center; padding: 0; border: 3px solid white; border-radius: 50%; background: var(--sw-navy-900); box-shadow: 0 7px 20px rgb(1 28 50 / 38%); color: white; transform: translate(-50%, -50%); }
.community-map-fallback-marker .sw-icon { width: 21px; }
.community-map-fallback-marker > span { position: absolute; top: calc(100% + 5px); left: 50%; min-width: max-content; padding: 4px 7px; border-radius: 7px; background: rgb(2 35 59 / 88%); color: white; font-size: 8px; font-weight: 750; transform: translateX(-50%); }
.community-map-fallback-marker small { display: block; margin-top: 1px; color: var(--sw-aqua-300); font-size: 7px; }
.community-map-list { display: grid; gap: 5px; margin-top: 10px; }
.community-map-list button { display: grid; min-height: 44px; grid-template-columns: 20px 1fr; align-items: center; gap: 7px; padding: 6px 8px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-md); background: white; color: var(--sw-text); text-align: left; }
.community-map-list .sw-icon { width: 17px; color: var(--sw-teal-700); }
.community-map-list span, .community-map-list small { display: block; }
.community-map-list span { font-size: 10px; font-weight: 700; }
.community-map-list small { margin-top: 2px; color: var(--sw-text-soft); font-size: 8px; font-weight: 500; }
.community-guide { display: block !important; }
.community-post-detail { display: grid; grid-column: 1 / -1; gap: 10px; }
.community-post-detail > img { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--sw-radius-lg); }
.community-post-detail p { margin: 0; color: var(--sw-text-soft); line-height: 1.5; }
.community-post-detail dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-md); }
.community-post-detail dl > div { padding: 9px; border-right: 1px solid var(--sw-line); }
.community-post-detail dl > div:last-child { border: 0; }
.community-post-detail dt { color: var(--sw-text-soft); font-size: 8px; }
.community-post-detail dd { margin: 3px 0 0; font-size: 10px; font-weight: 700; }
.community-regulation-link { color: var(--sw-teal-700); font-size: 11px; font-weight: 750; }
.catch-detail-actions { display: grid; grid-column: 1 / -1; gap: 8px; }
.catch-detail-actions > button { min-height: 44px; padding: 0 13px; border: 1px solid var(--sw-navy-900); border-radius: 13px; background: white; color: var(--sw-navy-900); font-weight: 780; }
.catch-detail-actions > .catch-history-waypoint { margin: 0; border: 0; color: white; }
.catch-detail-actions > .is-danger { border-color: #c4404f; color: #a52b3a; }
.community-profile-detail { display: grid; grid-template-columns: 66px 1fr; align-items: center; gap: 13px; }
.community-profile-detail > .avatar { width: 64px; height: 64px; font-size: 18px; }
.community-profile-detail p { margin: 4px 0; color: var(--sw-teal-700); }
.community-profile-detail small { color: var(--sw-text-soft); line-height: 1.4; }
.tip-detail { display: grid; gap: 13px; }
.tip-detail > p { margin: 0; color: var(--sw-text-soft); line-height: 1.65; }
.tip-detail > small { color: var(--sw-teal-700); }
.tip-detail > div { display: grid; gap: 6px; padding-top: 11px; border-top: 1px solid var(--sw-line); }
.tip-detail > div button { min-height: 38px; padding: 0 10px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-md); background: white; color: var(--sw-text); text-align: left; }
.notification-list { display: grid; max-height: min(55vh, 520px); overflow: auto; }
.notification-list > button { display: grid; min-height: 65px; grid-template-columns: 40px 1fr auto; align-items: center; gap: 9px; padding: 9px 2px; border: 0; border-bottom: 1px solid var(--sw-line); background: white; color: var(--sw-text); text-align: left; }
.notification-avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--sw-navy-900); color: white; font-size: 9px; font-weight: 800; }
.notification-list strong, .notification-list small { display: block; }
.notification-list small { margin-top: 3px; color: var(--sw-text-soft); font-size: 9px; }
.notification-list i { padding: 3px 6px; border-radius: var(--sw-radius-pill); background: var(--sw-mint-100); color: var(--sw-teal-700); font-size: 7px; font-style: normal; font-weight: 750; }

/* Dive */
.dive-page { min-height: 100vh; padding: 0 15px calc(var(--sw-bottom-nav-height) + 24px); background: #f8fafc; }
.dive-heading { display: flex; align-items: end; justify-content: space-between; gap: 10px; padding: 9px 1px 10px; }
.dive-heading p { margin: 0 0 2px; color: var(--sw-teal-700); font-size: 9px; font-weight: 740; text-transform: uppercase; letter-spacing: .07em; }
.dive-heading h1 { margin: 0; font-size: 29px; line-height: 1; letter-spacing: -.045em; }
.dive-heading > div > span { display: none; }
.dive-heading > .selector { width: 142px; min-height: 38px; padding: 0 10px; font-size: 9px; }
.dive-heading > .selector .sw-icon:first-child { width: 16px; }
.dive-heading > .selector .sw-icon:last-child { width: 13px; }
.dive-mode { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 10px; padding: 4px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-pill); background: white; }
.dive-mode button { min-height: 37px; border: 0; border-radius: var(--sw-radius-pill); background: transparent; color: var(--sw-text-soft); font-size: 10px; font-weight: 680; }
.dive-mode button.is-active { background: linear-gradient(100deg, var(--sw-navy-900), var(--sw-teal-700)); color: white; box-shadow: var(--sw-shadow-card); }
.dive-layout { display: grid; gap: 10px; }
.visibility-hero { position: relative; min-height: 238px; overflow: hidden; border-radius: var(--sw-radius-xl); background: linear-gradient(145deg, #062f55, #097995); box-shadow: var(--sw-shadow-card); color: white; isolation: isolate; }
.dive-water-art { position: absolute; z-index: -1; inset: 0; overflow: hidden; background: linear-gradient(90deg, rgb(3 38 76 / 44%), transparent 72%), url('/ui/assets/backgrounds/dive-underwater.webp') center / cover no-repeat; }
.dive-water-art::before { position: absolute; top: -50px; right: -70px; width: 340px; height: 260px; border-radius: 42%; background: repeating-radial-gradient(ellipse at center, transparent 0 13px, rgb(165 245 237 / 18%) 14px 15px); content: ''; transform: rotate(-12deg); }
.dive-water-art::after { position: absolute; right: 42px; bottom: 16px; width: 155px; height: 65px; border-radius: 50%; background: repeating-linear-gradient(170deg, transparent 0 8px, rgb(138 227 223 / 12%) 9px 10px); content: ''; transform: rotate(-8deg); }
.dive-water-art i { position: absolute; bottom: -18px; width: 74px; height: 105px; border-radius: 50% 50% 0 0; background: rgb(7 48 76 / 73%); transform-origin: bottom; }
.dive-water-art i:nth-child(1) { right: 8px; transform: rotate(-14deg); }
.dive-water-art i:nth-child(2) { right: 83px; height: 76px; transform: rotate(15deg); }
.dive-water-art i:nth-child(3) { right: 147px; width: 50px; height: 62px; transform: rotate(-20deg); }
.dive-reef-art { position: absolute; right: -28px; bottom: 16px; width: 190px; opacity: .55; filter: saturate(.82); }
.dive-diver-art { position: absolute; top: 29px; right: 19px; width: 155px; filter: drop-shadow(0 10px 16px rgb(0 28 54 / 34%)); }
.visibility-copy { position: relative; z-index: 2; padding: 22px 18px 76px; }
.visibility-copy p { margin: 0; color: rgb(255 255 255 / 75%); font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; }
.visibility-copy > strong { display: block; margin-top: 4px; color: #76e5dd; font-size: 62px; line-height: .9; letter-spacing: -.06em; }
.visibility-copy > strong small { font-size: 22px; }
.visibility-copy > b { display: block; margin-top: 5px; font-size: 16px; }
.visibility-copy > span { display: flex; align-items: center; gap: 6px; margin-top: 9px; color: rgb(255 255 255 / 82%); font-size: 9px; }
.visibility-copy > span .sw-icon { width: 15px; color: var(--sw-aqua-400); }
.dive-safety { position: absolute; right: 10px; bottom: 10px; left: 10px; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid rgb(255 255 255 / 18%); border-radius: var(--sw-radius-md); background: rgb(2 33 57 / 62%); backdrop-filter: blur(8px); }
.dive-safety > span { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: #64c95e; }
.dive-safety .sw-icon { width: 17px; }
.dive-safety p { margin: 0; }
.dive-safety strong, .dive-safety small { display: block; }
.dive-safety strong { font-size: 10px; }
.dive-safety small { margin-top: 2px; color: rgb(255 255 255 / 67%); font-size: 8px; }
.dive-condition-panel { padding: 13px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-xl); background: white; box-shadow: var(--sw-shadow-card); }
.dive-condition-panel .inline-title h2 { font-size: 17px; }
.dive-condition-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 9px; }
.dive-condition-grid article { display: grid; min-width: 0; min-height: 70px; grid-template-columns: 20px 1fr; align-items: start; gap: 6px; padding: 9px 7px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-md); }
.dive-condition-grid article:nth-child(4), .dive-condition-grid article:nth-child(5) { grid-column: span 1; }
.dive-condition-grid article:nth-child(5) { grid-column: span 2; }
.dive-condition-grid article > .sw-icon { width: 19px; color: var(--sw-teal-700); }
.dive-condition-grid small, .dive-condition-grid strong, .dive-condition-grid em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dive-condition-grid small { color: var(--sw-text-soft); font-size: 8px; }
.dive-condition-grid strong { margin-top: 3px; font-size: 11px; }
.dive-condition-grid em { margin-top: 2px; color: var(--sw-teal-700); font-size: 7px; font-style: normal; }
.dive-note { display: flex; align-items: center; gap: 8px; margin-top: 9px; padding: 8px 9px; border-radius: var(--sw-radius-md); background: #f1f7f8; }
.dive-note > .sw-icon { width: 18px; color: var(--sw-teal-700); }
.dive-note strong, .dive-note small { display: block; }
.dive-note strong { font-size: 9px; }
.dive-note small { margin-top: 2px; color: var(--sw-text-soft); font-size: 7px; line-height: 1.25; }
.dive-opportunities { margin-top: 11px; }
.dive-opportunities > .inline-title p { margin: 0 0 1px; color: var(--sw-teal-700); font-size: 8px; font-weight: 720; text-transform: uppercase; letter-spacing: .06em; }
.dive-opportunities > .inline-title h2 { font-size: 17px; }
.dive-target-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.dive-target { position: relative; display: grid; min-width: 0; min-height: 116px; grid-template-columns: 1fr 17px; grid-template-rows: 62px 1fr; gap: 0 5px; overflow: hidden; padding: 0 8px 8px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-lg); background: white; box-shadow: var(--sw-shadow-card); text-align: left; }
.dive-target-art { display: grid; grid-column: 1 / -1; place-items: center; margin: 0 -8px; overflow: hidden; background: linear-gradient(145deg, #dff7f4, #b4e6e2); }
.dive-target-art img { width: 100%; height: 64px; object-fit: contain; filter: drop-shadow(0 7px 7px rgb(5 44 70 / 20%)); }
.dive-target-copy { min-width: 0; align-self: center; }
.dive-target-copy > small, .dive-target-copy > strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dive-target-copy > small { color: var(--sw-teal-700); font-size: 7px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.dive-target-copy > strong { margin-top: 2px; font-size: 11px; }
.dive-target-copy > span { display: flex; align-items: baseline; gap: 5px; margin-top: 3px; }
.dive-target-copy b { color: var(--sw-teal-600); font-size: 17px; }
.dive-target-copy em { overflow: hidden; color: var(--sw-text-soft); font-size: 7px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.dive-target-copy .dive-regulation { display: flex; align-items: center; gap: 3px; margin-top: 3px; color: var(--sw-teal-700); font-weight: 700; }
.dive-target-copy .dive-regulation .sw-icon { width: 10px; min-width: 10px; }
.dive-target-copy .dive-regulation[data-status="PROHIBITED"],
.dive-target-copy .dive-regulation[data-status="PROTECTED_AREA_NO_TAKE"],
.dive-target-copy .dive-regulation[data-status="CLOSED_SEASON"] { color: #b4232c; }
.dive-target > .sw-icon { width: 15px; align-self: center; color: var(--sw-text-soft); }
.dive-target--experience { grid-column: 1 / -1; min-height: 76px; grid-template-columns: 62px 1fr 17px; grid-template-rows: 1fr; align-items: center; padding: 8px; }
.dive-target--experience .reef-orb { display: grid; height: 58px; place-items: center; overflow: hidden; border-radius: 14px; background: linear-gradient(145deg, #dff7f4, #b4e6e2); }
.dive-target--experience .reef-orb img { width: 92px; max-width: none; }
.reef-orb { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 17px; background: radial-gradient(circle at 70% 30%, #7ae4d6, #0f7693 58%, #073a61); color: white; }
.reef-orb .sw-icon { width: 28px; }
.dive-plan-card { display: grid; min-height: 60px; grid-template-columns: 35px 1fr auto; align-items: center; gap: 8px; margin-top: 11px; padding: 9px 10px; border-radius: var(--sw-radius-lg); background: var(--sw-navy-900); color: white; box-shadow: var(--sw-shadow-card); }
.dive-plan-card > .sw-icon { width: 27px; color: var(--sw-aqua-400); }
.dive-plan-card small, .dive-plan-card strong { display: block; }
.dive-plan-card small { color: rgb(255 255 255 / 62%); font-size: 7px; }
.dive-plan-card strong { margin-top: 2px; font-size: 10px; }
.dive-plan-card button { display: flex; min-height: 36px; align-items: center; gap: 4px; padding: 0 10px; border: 0; border-radius: var(--sw-radius-pill); background: white; color: var(--sw-navy-900); font-size: 9px; font-weight: 720; }
.dive-plan-card button .sw-icon { width: 14px; }

@media (min-width: 960px) {
  .dive-page { padding: 30px clamp(28px, 4vw, 64px) 58px; }
  .dive-page > .mobile-header { display: none; }
  .dive-heading { align-items: center; padding: 0 0 16px; }
  .dive-heading p { font-size: 11px; }
  .dive-heading h1 { font-size: 42px; }
  .dive-heading > div > span { display: block; margin-top: 5px; color: var(--sw-text-soft); font-size: 13px; }
  .dive-heading > .selector { width: 210px; min-height: 44px; padding: 0 14px; font-size: 12px; }
  .dive-mode { width: 420px; margin-bottom: 18px; }
  .dive-mode button { min-height: 42px; font-size: 12px; }
  .dive-layout { grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 18px; }
  .dive-layout > * { min-width: 0; }
  .visibility-hero { min-height: 385px; }
  .dive-reef-art { right: -24px; bottom: -22px; width: 360px; opacity: .66; }
  .dive-diver-art { top: 54px; right: 62px; width: 285px; }
  .visibility-copy { padding: 46px 38px 100px; }
  .visibility-copy p { font-size: 12px; }
  .visibility-copy > strong { margin-top: 8px; font-size: 100px; }
  .visibility-copy > strong small { font-size: 32px; }
  .visibility-copy > b { font-size: 23px; }
  .visibility-copy > span { margin-top: 14px; font-size: 12px; }
  .dive-safety { right: 22px; bottom: 20px; left: 22px; grid-template-columns: 42px 1fr; gap: 11px; padding: 13px 15px; }
  .dive-safety > span { width: 40px; height: 40px; }
  .dive-safety strong { font-size: 13px; }
  .dive-safety small { font-size: 10px; }
  .dive-condition-panel { padding: 22px; }
  .dive-condition-panel .inline-title h2 { font-size: 22px; }
  .dive-condition-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
  .dive-condition-grid article, .dive-condition-grid article:nth-child(5) { min-height: 85px; grid-column: span 1; padding: 13px 11px; }
  .dive-condition-grid article:nth-child(5) { grid-column: 1 / -1; }
  .dive-condition-grid article > .sw-icon { width: 24px; }
  .dive-condition-grid small { font-size: 10px; }
  .dive-condition-grid strong { font-size: 16px; }
  .dive-condition-grid em { font-size: 9px; }
  .dive-note { padding: 12px; }
  .dive-note strong { font-size: 11px; }
  .dive-note small { font-size: 9px; }
  .dive-opportunities { margin-top: 20px; }
  .dive-opportunities > .inline-title h2 { font-size: 22px; }
  .dive-target-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 12px; }
  .dive-target, .dive-target--experience { min-height: 154px; grid-column: auto; grid-template-columns: 1fr 20px; grid-template-rows: 91px 1fr; align-items: initial; padding: 0 13px 12px; }
  .dive-target-art { grid-column: 1 / -1; height: 91px; margin: 0 -13px; }
  .dive-target-art img { height: 88px; }
  .dive-target-copy { align-self: center; }
  .dive-target-copy > small { font-size: 8px; }
  .dive-target-copy > strong { font-size: 14px; }
  .dive-target-copy b { font-size: 22px; }
  .dive-target-copy em { font-size: 9px; }
  .dive-target--experience { position: relative; padding-top: 91px; }
  .dive-target--experience .reef-orb { position: absolute; top: 0; right: 0; left: 0; width: auto; height: 91px; border-radius: 0; }
  .dive-plan-card { min-height: 76px; grid-template-columns: 45px 1fr auto; margin-top: 18px; padding: 12px 17px; }
  .dive-plan-card > .sw-icon { width: 34px; }
  .dive-plan-card small { font-size: 9px; }
  .dive-plan-card strong { font-size: 14px; }
  .dive-plan-card button { min-height: 44px; padding: 0 18px; font-size: 12px; }
}

/* Profile */
.profile-page, .settings-page { min-height: 100vh; padding: 0 15px calc(var(--sw-bottom-nav-height) + 24px); background: #f8fafc; }
.profile-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 9px 1px 11px; }
.profile-heading p, .settings-heading p { margin: 0 0 2px; color: var(--sw-teal-700); font-size: 9px; font-weight: 740; text-transform: uppercase; letter-spacing: .07em; }
.profile-heading h1, .settings-heading h1 { margin: 0; font-size: 32px; line-height: 1; letter-spacing: -.045em; }
.profile-heading > a, .settings-heading > a { display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid var(--sw-line); border-radius: 50%; background: white; box-shadow: var(--sw-shadow-card); color: var(--sw-navy-800); }
.profile-heading > a .sw-icon, .settings-heading > a .sw-icon { width: 18px; }
.profile-layout { display: grid; gap: 11px; }
.profile-main { display: grid; gap: 10px; }
.profile-hero { position: relative; display: grid; min-height: 173px; grid-template-columns: 76px 1fr; align-items: center; gap: 12px; overflow: hidden; padding: 20px 16px 58px; border-radius: var(--sw-radius-xl); background: radial-gradient(circle at 80% 20%, rgb(53 211 202 / 32%), transparent 33%), linear-gradient(145deg, var(--sw-navy-900), #075d79); box-shadow: var(--sw-shadow-card); color: white; }
.profile-hero::after { position: absolute; right: -30px; bottom: -70px; width: 230px; height: 170px; border: 1px solid rgb(142 239 228 / 18%); border-radius: 50%; content: ''; box-shadow: 0 0 0 18px rgb(142 239 228 / 7%), 0 0 0 38px rgb(142 239 228 / 5%); }
.profile-avatar-shell { position: relative; z-index: 2; width: 76px; height: 76px; }
.profile-avatar { width: 100%; height: 100%; overflow: hidden; border: 3px solid white; border-radius: 50%; box-shadow: 0 7px 18px rgb(1 28 50 / 28%); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.profile-avatar > .avatar { width: 100%; height: 100%; border: 0; font-size: 20px; }
.profile-avatar-shell > button { position: absolute; right: -4px; bottom: -4px; display: grid; width: 31px; height: 31px; place-items: center; padding: 0; border: 2px solid white; border-radius: 50%; background: var(--sw-teal-600); box-shadow: 0 5px 14px rgb(1 28 50 / 28%); color: white; }
.profile-avatar-shell > button .sw-icon { width: 15px; }
.profile-hero > div:nth-child(2) { position: relative; z-index: 2; min-width: 0; }
.profile-hero h2 { margin: 0; overflow: hidden; font-size: 21px; text-overflow: ellipsis; white-space: nowrap; }
.profile-hero p { margin: 4px 0 0; overflow: hidden; color: rgb(255 255 255 / 72%); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.profile-hero > div:nth-child(2) > span { display: flex; align-items: center; gap: 5px; margin-top: 9px; color: rgb(255 255 255 / 88%); font-size: 8px; }
.profile-hero > div:nth-child(2) > span .sw-icon { width: 14px; color: var(--sw-aqua-400); }
.profile-hero > button { position: absolute; z-index: 3; bottom: 13px; left: 16px; display: flex; min-height: 35px; align-items: center; justify-content: center; gap: 6px; padding: 0 14px; border: 1px solid rgb(255 255 255 / 40%); border-radius: var(--sw-radius-pill); background: rgb(255 255 255 / 14%); color: white; font-size: 9px; font-weight: 700; backdrop-filter: blur(6px); }
.profile-hero > button .sw-icon { width: 15px; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.profile-stats article { display: grid; min-width: 0; min-height: 62px; place-items: center; align-content: center; padding: 6px 2px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-md); background: white; box-shadow: var(--sw-shadow-card); }
.profile-stats strong { color: var(--sw-teal-700); font-size: 18px; }
.profile-stats small { margin-top: 2px; color: var(--sw-text-soft); font-size: 7px; }
.profile-menu { overflow: hidden; padding: 13px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-xl); background: white; box-shadow: var(--sw-shadow-card); }
.profile-menu h2 { margin: 0 0 6px; font-size: 17px; }
.profile-menu-item { display: grid; width: 100%; min-height: 54px; grid-template-columns: 34px 1fr 17px; align-items: center; gap: 9px; padding: 0; border: 0; border-bottom: 1px solid var(--sw-line); color: var(--sw-text); background: transparent; text-align: left; text-decoration: none; }
.profile-menu-item:last-child { border: 0; }
.profile-menu-item > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; background: var(--sw-sky-100); color: var(--sw-teal-700); }
.profile-menu-item > span .sw-icon { width: 17px; }
.profile-menu-item > div { min-width: 0; }
.profile-menu-item strong, .profile-menu-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu-item strong { font-size: 10px; }
.profile-menu-item small { margin-top: 2px; color: var(--sw-text-soft); font-size: 8px; }
.profile-menu-item > .sw-icon { width: 15px; color: var(--sw-text-muted); }
.profile-activity { display: none; }

@media (min-width: 960px) {
  .profile-page { padding: 30px clamp(28px, 4vw, 64px) 58px; }
  .profile-page > .mobile-header { display: none; }
  .profile-heading { padding: 0 0 20px; }
  .profile-heading p { font-size: 11px; }
  .profile-heading h1 { font-size: 42px; }
  .profile-heading > a { width: 46px; height: 46px; }
  .profile-layout { grid-template-columns: minmax(520px, 1fr) minmax(350px, .62fr); gap: 18px; align-items: start; }
  .profile-main { gap: 16px; }
  .profile-hero { min-height: 235px; grid-template-columns: 116px 1fr; gap: 22px; padding: 31px 29px 31px; }
  .profile-avatar-shell { width: 112px; height: 112px; }
  .profile-hero h2 { font-size: 32px; }
  .profile-hero p { font-size: 12px; }
  .profile-hero > div:nth-child(2) > span { font-size: 11px; }
  .profile-hero > button { right: 26px; bottom: 24px; left: auto; min-height: 42px; padding: 0 17px; font-size: 11px; }
  .profile-stats { gap: 12px; }
  .profile-stats article { min-height: 92px; }
  .profile-stats strong { font-size: 29px; }
  .profile-stats small { font-size: 10px; }
  .profile-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; padding: 20px; }
  .profile-menu h2 { grid-column: 1 / -1; font-size: 21px; }
  .profile-menu-item { min-height: 68px; grid-template-columns: 40px 1fr 18px; }
  .profile-menu-item:nth-of-type(6) { border-bottom: 0; }
  .profile-menu-item > span { width: 38px; height: 38px; }
  .profile-menu-item strong { font-size: 13px; }
  .profile-menu-item small { font-size: 9px; }
  .profile-activity { display: grid; gap: 14px; padding: 22px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-xl); background: white; box-shadow: var(--sw-shadow-card); }
  .profile-activity .inline-title h2 { font-size: 21px; }
  .profile-activity > div:nth-child(2) { display: grid; }
  .profile-activity article { display: grid; min-height: 83px; grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; border-bottom: 1px solid var(--sw-line); }
  .profile-activity article > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: var(--sw-mint-100); color: var(--sw-teal-700); }
  .profile-activity article > span .sw-icon { width: 20px; }
  .profile-activity article strong, .profile-activity article small { display: block; }
  .profile-activity article strong { font-size: 12px; }
  .profile-activity article small, .profile-activity article time { margin-top: 3px; color: var(--sw-text-soft); font-size: 9px; }
  .profile-member { display: grid; min-height: 92px; grid-template-columns: 44px 1fr; align-items: center; gap: 12px; padding: 15px; border-radius: var(--sw-radius-lg); background: linear-gradient(145deg, var(--sw-navy-900), var(--sw-teal-700)); color: white; }
  .profile-member > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: rgb(255 255 255 / 14%); }
  .profile-member .sw-icon { width: 22px; }
  .profile-member strong, .profile-member small { display: block; }
  .profile-member strong { font-size: 13px; }
  .profile-member small { margin-top: 4px; color: rgb(255 255 255 / 68%); font-size: 9px; line-height: 1.3; }
}

/* Settings */
.settings-heading { display: grid; min-height: 66px; grid-template-columns: 39px 1fr; align-items: center; gap: 10px; padding: 7px 0 10px; }
.settings-heading > a .sw-icon { transform: rotate(180deg); }
.settings-layout { display: grid; gap: 10px; }
.settings-layout > div { display: grid; gap: 10px; align-content: start; }
.settings-card { overflow: hidden; padding: 13px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-xl); background: white; box-shadow: var(--sw-shadow-card); }
.settings-card-title { display: grid; grid-template-columns: 35px 1fr; align-items: center; gap: 9px; margin-bottom: 8px; }
.settings-card-title > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: var(--sw-sky-100); color: var(--sw-teal-700); }
.settings-card-title > span .sw-icon { width: 18px; }
.settings-card-title h2 { margin: 0; font-size: 16px; }
.settings-card-title p { margin: 2px 0 0; color: var(--sw-text-soft); font-size: 8px; }
.appearance-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.appearance-picker button { display: grid; min-height: 82px; place-items: center; gap: 5px; padding: 7px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-md); background: white; color: var(--sw-text-soft); font-size: 9px; }
.appearance-picker button.is-active { border-color: var(--sw-teal-600); box-shadow: 0 0 0 1px var(--sw-teal-600); color: var(--sw-teal-700); }
.theme-preview { display: block; position: relative; width: 100%; height: 43px; overflow: hidden; border-radius: 9px; background: #f6f9fb; box-shadow: inset 0 0 0 1px var(--sw-line); }
.theme-preview::before { position: absolute; top: 8px; left: 8px; width: 38%; height: 5px; border-radius: 4px; background: #0b3b68; content: ''; box-shadow: 0 10px 0 #d7e5eb, 36px 10px 0 #e7f3f5; }
.theme-preview--dark { background: #061f3d; box-shadow: inset 0 0 0 1px #20516e; }
.theme-preview--dark::before { background: #46d4cf; box-shadow: 0 10px 0 #17465f, 36px 10px 0 #0e354f; }
.theme-preview--outside { background: #fff; box-shadow: inset 0 0 0 2px #062d55; }
.theme-preview--outside::before { height: 7px; background: #00294c; box-shadow: 0 12px 0 #04a6a3, 36px 12px 0 #f2a900; }
.settings-row { display: grid; min-height: 47px; grid-template-columns: 1fr auto; align-items: center; gap: 8px; border-top: 1px solid var(--sw-line); }
.settings-row > span { min-width: 0; }
.settings-row > span strong, .settings-row > span small { display: block; }
.settings-row > span strong { font-size: 9px; }
.settings-row > span small { margin-top: 2px; color: var(--sw-text-soft); font-size: 7px; }
.setting-segment { display: flex; padding: 3px; border-radius: var(--sw-radius-pill); background: #edf3f6; }
.setting-segment button { min-width: 34px; min-height: 27px; padding: 0 8px; border: 0; border-radius: var(--sw-radius-pill); background: transparent; color: var(--sw-text-soft); font-size: 8px; font-weight: 680; }
.setting-segment button.is-active { background: white; color: var(--sw-navy-900); box-shadow: 0 2px 7px rgb(5 38 67 / 13%); }
.setting-toggle { position: relative; width: 42px; height: 24px; padding: 0; border: 0; border-radius: 999px; background: #cbd6de; transition: background var(--sw-duration); }
.setting-toggle i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgb(0 30 55 / 20%); transition: transform var(--sw-duration); }
.setting-toggle.is-on { background: var(--sw-teal-600); }
.setting-toggle.is-on i { transform: translateX(18px); }
.privacy-settings > button { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: space-between; padding: 0; border: 0; border-top: 1px solid var(--sw-line); background: white; color: var(--sw-text); }
.privacy-settings > button > span { display: flex; align-items: center; gap: 9px; font-size: 9px; font-weight: 650; }
.privacy-settings > button > span .sw-icon { width: 17px; color: var(--sw-teal-700); }
.privacy-settings > button > .sw-icon { width: 15px; color: var(--sw-text-muted); }
.privacy-settings > button.sign-out { color: #bd3c4d; }
.privacy-settings > button.sign-out > span .sw-icon { color: #bd3c4d; }
.settings-navigation-link { display: flex; min-height: 51px; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--sw-line); color: var(--sw-text); text-decoration: none; }
.settings-navigation-link > span { display: flex; min-width: 0; align-items: center; gap: 9px; }
.settings-navigation-link > span > .sw-icon { width: 19px; color: var(--sw-teal-700); }
.settings-navigation-link > .sw-icon { width: 15px; color: var(--sw-text-muted); }
.settings-navigation-link strong, .settings-navigation-link small { display: block; }
.settings-navigation-link strong { font-size: 10px; }
.settings-navigation-link small { margin-top: 2px; color: var(--sw-text-soft); font-size: 8px; line-height: 1.3; }

@media (min-width: 960px) {
  .settings-page { padding: 30px clamp(28px, 4vw, 64px) 58px; }
  .settings-page > .mobile-header { display: none; }
  .settings-heading { min-height: 58px; grid-template-columns: 46px 1fr; padding: 0 0 20px; }
  .settings-heading > a { width: 44px; height: 44px; }
  .settings-heading p { font-size: 11px; }
  .settings-heading h1 { font-size: 42px; }
  .settings-layout { grid-template-columns: 1fr 1fr; gap: 18px; }
  .settings-layout > div { gap: 18px; }
  .settings-card { padding: 21px; }
  .settings-card-title { grid-template-columns: 44px 1fr; gap: 12px; margin-bottom: 12px; }
  .settings-card-title > span { width: 43px; height: 43px; }
  .settings-card-title > span .sw-icon { width: 22px; }
  .settings-card-title h2 { font-size: 21px; }
  .settings-card-title p { font-size: 10px; }
  .appearance-picker { gap: 11px; }
  .appearance-picker button { min-height: 119px; gap: 8px; padding: 10px; font-size: 11px; }
  .theme-preview { height: 70px; }
  .theme-preview::before { top: 13px; left: 12px; height: 7px; box-shadow: 0 16px 0 #d7e5eb, 54px 16px 0 #e7f3f5; }
  .theme-preview--dark::before { box-shadow: 0 16px 0 #17465f, 54px 16px 0 #0e354f; }
  .theme-preview--outside::before { height: 9px; box-shadow: 0 18px 0 #04a6a3, 54px 18px 0 #f2a900; }
  .settings-row { min-height: 63px; }
  .settings-row > span strong { font-size: 12px; }
  .settings-row > span small { font-size: 9px; }
  .setting-segment button { min-width: 46px; min-height: 32px; font-size: 10px; }
  .setting-toggle { width: 49px; height: 28px; }
  .settings-navigation-link { min-height: 65px; }
  .settings-navigation-link strong { font-size: 13px; }
  .settings-navigation-link small { font-size: 10px; }
  .setting-toggle i { width: 22px; height: 22px; }
  .setting-toggle.is-on i { transform: translateX(21px); }
  .privacy-settings > button { min-height: 61px; }
  .privacy-settings > button > span { font-size: 12px; }
}

/* Auth */
.auth-shell { min-height: 100vh; background: #f8fafc; }
.auth-ocean { display: none; }
.auth-form-panel { position: relative; display: grid; min-height: 100vh; align-content: start; padding: env(safe-area-inset-top) 18px 30px; background: radial-gradient(circle at 85% 3%, #d9f7f4, transparent 25%), #f8fafc; }
.auth-form-panel > header { display: flex; min-height: 76px; align-items: center; }
.auth-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--sw-navy-900); text-decoration: none; }
.auth-brand .brand-logo { width: 34px; height: 34px; }
.auth-brand strong { font-size: 24px; letter-spacing: -.04em; }
.auth-card { width: 100%; max-width: 430px; margin: 28px auto 0; padding: 22px 18px; border: 1px solid var(--sw-line); border-radius: 26px; background: rgb(255 255 255 / 96%); box-shadow: var(--sw-shadow-float); }
.auth-card--compact { margin-top: 58px; text-align: center; }
.auth-eyebrow { margin: 0 0 5px; color: var(--sw-teal-700); font-size: 9px; font-weight: 760; text-transform: uppercase; letter-spacing: .08em; }
.auth-card h1 { margin: 0; font-size: 29px; line-height: 1.05; letter-spacing: -.045em; }
.auth-subtitle { margin: 9px 0 20px; color: var(--sw-text-soft); font-size: 10px; line-height: 1.45; }
.auth-card form { display: grid; gap: 13px; }
.auth-field { display: grid; gap: 5px; text-align: left; }
.auth-field > span { color: var(--sw-text-soft); font-size: 8px; font-weight: 690; }
.auth-field > div { display: flex; min-height: 47px; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--sw-line-strong); border-radius: var(--sw-radius-md); background: #fbfdfe; transition: border var(--sw-duration), box-shadow var(--sw-duration); }
.auth-field > div:focus-within { border-color: var(--sw-teal-600); box-shadow: 0 0 0 3px rgb(10 150 151 / 10%); }
.auth-field .sw-icon { width: 18px; color: var(--sw-teal-700); }
.auth-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--sw-text); font-size: 10px; }
.auth-field input::placeholder { color: var(--sw-text-muted); }
.auth-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 8px; }
.auth-options label, .auth-consent { display: flex; align-items: center; gap: 6px; color: var(--sw-text-soft); }
.auth-options input, .auth-consent input { position: absolute; opacity: 0; pointer-events: none; }
.auth-options label i, .auth-consent i { position: relative; display: block; width: 15px; height: 15px; flex: 0 0 auto; border: 1px solid var(--sw-line-strong); border-radius: 4px; background: white; }
.auth-options input:checked + i, .auth-consent input:checked + i { border-color: var(--sw-teal-600); background: var(--sw-teal-600); }
.auth-options input:checked + i::after, .auth-consent input:checked + i::after { position: absolute; top: 2px; left: 4px; width: 4px; height: 7px; border-right: 2px solid white; border-bottom: 2px solid white; content: ''; transform: rotate(45deg); }
.auth-options a, .auth-switch a { color: var(--sw-teal-700); font-weight: 680; text-decoration: none; }
.auth-submit { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 0; border-radius: var(--sw-radius-pill); background: linear-gradient(105deg, var(--sw-navy-900), var(--sw-teal-700)); box-shadow: 0 10px 22px rgb(5 53 79 / 20%); color: white; font-size: 11px; font-weight: 740; text-decoration: none; }
.auth-submit .sw-icon { width: 17px; }
.auth-consent { align-items: start; font-size: 8px; line-height: 1.35; }
.auth-switch { margin: 17px 0 0; color: var(--sw-text-soft); font-size: 9px; text-align: center; }
.auth-switch button { padding: 0; border: 0; background: transparent; color: var(--sw-teal-700); font-size: inherit; font-weight: 690; }
.auth-icon { display: grid; width: 58px; height: 58px; place-items: center; margin: 0 auto 15px; border-radius: 18px; background: var(--sw-sky-100); color: var(--sw-teal-700); }
.auth-icon .sw-icon { width: 29px; }
.auth-card--compact .auth-subtitle { max-width: 320px; margin-right: auto; margin-left: auto; }
.auth-card--compact form { margin-top: 18px; }
.verification-code { display: flex; justify-content: center; gap: 8px; margin: 20px 0; }
.verification-code i { width: 38px; height: 46px; border: 1px solid var(--sw-line-strong); border-radius: 11px; background: #f8fbfc; }
.auth-fixture-label { align-self: end; margin: 24px auto 0; color: var(--sw-text-muted); font-size: 7px; text-transform: uppercase; letter-spacing: .07em; }
.auth-shell--splash { display: grid; min-height: 100vh; place-items: stretch; overflow: hidden; background: var(--sw-navy-950); }
.auth-splash { position: relative; display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; overflow: hidden; padding: calc(env(safe-area-inset-top) + 72px) 28px 42px; background: linear-gradient(180deg, rgb(1 25 49 / 23%), rgb(1 25 49 / 90%)), url('/ui/assets/backgrounds/home-ocean.webp') center/cover; color: white; isolation: isolate; }
.auth-splash::before { position: absolute; z-index: -1; top: 26%; left: 50%; width: 390px; height: 390px; border: 1px solid rgb(100 230 221 / 20%); border-radius: 50%; content: ''; box-shadow: 0 0 0 32px rgb(100 230 221 / 8%), 0 0 0 72px rgb(100 230 221 / 5%); transform: translateX(-50%); }
.auth-splash-logo { display: grid; justify-items: center; margin-top: 13vh; text-align: center; }
.auth-splash-logo .brand-logo { width: 74px; height: 74px; box-shadow: 0 16px 34px rgb(0 18 36 / 24%); }
.auth-splash-logo h1 { margin: 16px 0 7px; font-size: 42px; letter-spacing: -.05em; }
.auth-splash-logo p { margin: 0; color: rgb(255 255 255 / 72%); font-size: 14px; line-height: 1.45; }
.auth-splash > div:last-child { display: grid; gap: 13px; width: 100%; max-width: 430px; margin: 0 auto; text-align: center; }
.auth-splash > div:last-child small { color: rgb(255 255 255 / 58%); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }

@media (min-width: 960px) {
  .auth-shell { display: grid; grid-template-columns: minmax(480px, .95fr) minmax(520px, 1.05fr); }
  .auth-ocean { position: relative; display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 42px 46px; background: linear-gradient(135deg, rgb(3 27 52 / 91%), rgb(4 81 103 / 57%)), url('/ui/assets/backgrounds/home-ocean.webp') center/cover; color: white; }
  .auth-ocean::after { position: absolute; right: -120px; bottom: -150px; width: 520px; height: 520px; border: 1px solid rgb(98 230 222 / 23%); border-radius: 50%; content: ''; box-shadow: 0 0 0 45px rgb(98 230 222 / 8%), 0 0 0 92px rgb(98 230 222 / 5%); }
  .auth-ocean .auth-brand { color: white; }
  .auth-ocean .brand-logo { box-shadow: 0 12px 28px rgb(0 18 36 / 22%); }
  .auth-ocean > div > p { margin: min(31vh, 285px) 0 0; font-size: clamp(30px, 3vw, 48px); font-weight: 710; line-height: 1.15; letter-spacing: -.045em; }
  .auth-ocean > small { position: relative; z-index: 2; color: rgb(255 255 255 / 61%); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
  .auth-form-panel { align-content: center; padding: 54px; background: #f8fafc; }
  .auth-form-panel > header { display: none; }
  .auth-card { max-width: 500px; margin: 0 auto; padding: 34px; border-radius: 30px; }
  .auth-card--compact { max-width: 480px; }
  .auth-eyebrow { font-size: 10px; }
  .auth-card h1 { font-size: 38px; }
  .auth-subtitle { margin-bottom: 26px; font-size: 12px; }
  .auth-card form { gap: 16px; }
  .auth-field > span { font-size: 10px; }
  .auth-field > div { min-height: 55px; padding: 0 15px; }
  .auth-field input { font-size: 12px; }
  .auth-options, .auth-consent { font-size: 10px; }
  .auth-submit { min-height: 55px; font-size: 13px; }
  .auth-switch { margin-top: 21px; font-size: 11px; }
  .auth-fixture-label { position: absolute; right: 0; bottom: -32px; left: 0; text-align: center; }
  .auth-shell--splash { display: block; }
  .auth-splash { min-height: 100vh; padding: 70px 80px; }
  .auth-splash-logo { margin-top: 13vh; }
  .auth-splash-logo .brand-logo { width: 92px; height: 92px; }
  .auth-splash-logo h1 { font-size: 62px; }
  .auth-splash-logo p { font-size: 17px; }
}

/* Ask SeaWise */
.ask-page { position: relative; height: 100vh; min-height: 700px; overflow: hidden; background: var(--sw-navy-950); }
.ask-page > .mobile-header { position: relative; z-index: 5; padding: 7px 16px 0; background: rgb(255 255 255 / 96%); }
.ask-scene { position: absolute; inset: 60px 0 0; overflow: hidden; background: radial-gradient(circle at 73% 31%, rgb(74 224 209 / 32%), transparent 23%), linear-gradient(145deg, #052443, #0b7188); }
.ask-scene::before { position: absolute; inset: 0; background: repeating-radial-gradient(ellipse at 76% 30%, transparent 0 29px, rgb(117 231 221 / 11%) 30px 31px); content: ''; transform: rotate(-7deg) scale(1.2); }
.ask-scene i { position: absolute; right: -9%; width: 72%; height: 28%; border-radius: 50%; background: rgb(70 213 207 / 9%); transform: rotate(-17deg); }
.ask-scene i:nth-child(1) { top: 18%; }
.ask-scene i:nth-child(2) { top: 36%; right: 17%; }
.ask-scene i:nth-child(3) { top: 56%; right: -24%; }
.ask-scene > span { position: absolute; top: 17%; left: 50%; display: grid; width: 98px; height: 98px; place-items: center; border: 1px solid rgb(255 255 255 / 34%); border-radius: 50%; background: rgb(255 255 255 / 10%); color: var(--sw-aqua-400); transform: translateX(-50%); backdrop-filter: blur(8px); }
.ask-scene > span .sw-icon { width: 45px; }
.ask-sheet { position: absolute; z-index: 6; right: 0; bottom: var(--sw-bottom-nav-height); left: 0; max-height: 610px; overflow: auto; padding: 14px 16px 15px; border-radius: 27px 27px 0 0; background: rgb(255 255 255 / 98%); box-shadow: 0 -17px 42px rgb(1 24 47 / 35%); }
.ask-sheet > header { display: grid; grid-template-columns: 42px 1fr 38px; align-items: center; gap: 10px; }
.ask-sheet > header > span { display: grid; width: 41px; height: 41px; place-items: center; border-radius: 14px; background: linear-gradient(145deg, var(--sw-navy-900), var(--sw-teal-700)); color: white; }
.ask-sheet > header > span .sw-icon { width: 21px; }
.ask-sheet > header p { margin: 0; color: var(--sw-teal-700); font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.ask-sheet > header h1 { margin: 1px 0 0; font-size: 22px; letter-spacing: -.035em; }
.ask-sheet > header :is(a, button) { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--sw-line); border-radius: 50%; background: #f5f8fa; color: var(--sw-text-soft); font-size: 24px; line-height: 1; text-decoration: none; }
.ask-intro { margin: 11px 0; color: var(--sw-text-soft); font-size: 9px; line-height: 1.4; }
.ask-capabilities { display: flex; gap: 6px; overflow-x: auto; }
.ask-capabilities span { display: flex; min-height: 29px; flex: 0 0 auto; align-items: center; gap: 5px; padding: 0 9px; border-radius: var(--sw-radius-pill); background: var(--sw-sky-100); color: var(--sw-teal-700); font-size: 8px; font-weight: 650; }
.ask-capabilities .sw-icon { width: 14px; }
.ask-examples { display: grid; gap: 6px; margin-top: 11px; }
.ask-examples button { display: grid; min-height: 42px; grid-template-columns: 25px 1fr 15px; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-md); background: white; color: var(--sw-text); text-align: left; }
.ask-examples button > .sw-icon:first-child { width: 18px; color: var(--sw-teal-700); }
.ask-examples button > .sw-icon:last-child { width: 14px; color: var(--sw-text-muted); }
.ask-examples button span { font-size: 9px; font-weight: 620; }
.ask-notice { display: flex; align-items: center; gap: 6px; margin: 10px 0; padding: 8px; border-radius: var(--sw-radius-md); background: #f2f6f8; color: var(--sw-text-soft); font-size: 7px; }
.ask-notice .sw-icon { width: 15px; color: var(--sw-teal-700); }
.ask-composer { display: grid; grid-template-columns: 1fr 38px; gap: 7px; padding: 5px 5px 5px 12px; border: 1px solid var(--sw-line-strong); border-radius: var(--sw-radius-pill); background: white; box-shadow: 0 8px 22px rgb(5 40 69 / 10%); }
.ask-composer input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--sw-text); font-size: 10px; }
.ask-composer button { display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--sw-navy-900); color: white; }
.ask-composer button .sw-icon { width: 17px; }
.ask-context { margin: 12px 0 0; padding: 8px 10px; border-radius: 12px; background: var(--sw-sky-100); color: var(--sw-teal-700); font-size: 10px; font-weight: 720; }
.ask-actions { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.ask-actions[hidden] { display: none; }
.ask-actions button { display: inline-flex; min-height: 36px; align-items: center; gap: 6px; padding: 0 11px; border: 1px solid var(--sw-line-strong); border-radius: var(--sw-radius-pill); background: white; color: var(--sw-navy-900); font-size: 9px; font-weight: 720; }
.ask-actions .sw-icon { width: 15px; }
.ask-overlay-backdrop { position: fixed; z-index: 110; inset: 0; background: rgb(1 24 47 / 48%); backdrop-filter: blur(5px); }
.ask-overlay-backdrop .ask-sheet { position: absolute; z-index: 1; inset: auto 0 0; width: 100%; max-height: min(92dvh, 760px); padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; }

@media (min-width: 960px) {
  .ask-page { height: calc(100vh - var(--sw-topbar-height)); min-height: 650px; }
  .ask-page > .mobile-header { display: none; }
  .ask-scene { inset: 0; }
  .ask-scene > span { top: 29%; left: 28%; width: 170px; height: 170px; }
  .ask-scene > span .sw-icon { width: 77px; }
  .ask-sheet { top: 30px; right: 35px; bottom: 30px; left: auto; width: min(500px, 42vw); max-height: none; padding: 27px; border-radius: 28px; box-shadow: -18px 0 45px rgb(1 24 47 / 28%); }
  .ask-sheet > .sheet-handle { display: none; }
  .ask-sheet > header { grid-template-columns: 52px 1fr 44px; }
  .ask-sheet > header > span { width: 50px; height: 50px; }
  .ask-sheet > header p { font-size: 10px; }
  .ask-sheet > header h1 { font-size: 30px; }
  .ask-intro { margin: 18px 0; font-size: 12px; }
  .ask-capabilities { gap: 8px; }
  .ask-capabilities span { min-height: 35px; padding: 0 12px; font-size: 10px; }
  .ask-examples { gap: 9px; margin-top: 18px; }
  .ask-examples button { min-height: 61px; grid-template-columns: 32px 1fr 17px; padding: 0 15px; }
  .ask-examples button > .sw-icon:first-child { width: 22px; }
  .ask-examples button span { font-size: 12px; }
  .ask-notice { margin: 17px 0; padding: 11px; font-size: 9px; }
  .ask-composer { grid-template-columns: 1fr 46px; padding-left: 16px; }
  .ask-composer input { font-size: 12px; }
  .ask-composer button { width: 46px; height: 46px; }
  .ask-overlay-backdrop .ask-sheet { inset: 24px 24px 24px auto; width: min(520px, calc(100vw - 48px)); max-height: none; padding: 27px; border-radius: 28px; }
  .ask-actions button { min-height: 40px; padding: 0 14px; font-size: 11px; }
}

/* Regulations */
.regulations-page { min-height: 100vh; padding: 0 15px calc(var(--sw-bottom-nav-height) + 24px); background: #f8fafc; }
.regulation-review-page { min-height: 100vh; padding: 0 15px calc(var(--sw-bottom-nav-height) + 32px); background: #f4f8fb; }
.review-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; max-width: 1380px; margin: 24px auto; }
.review-page-heading > div > span { color: var(--sw-teal-700); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.review-page-heading h1 { margin: 4px 0 6px; color: var(--sw-navy-900); font-size: clamp(2.2rem, 4vw, 4rem); line-height: .98; }
.review-page-heading p { max-width: 760px; margin: 0; color: var(--sw-text-muted); line-height: 1.55; }
.review-lock { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 10px 16px; border: 1px solid #a6ced1; border-radius: 999px; color: var(--sw-teal-800); background: #e9f8f7; font-weight: 750; }
.review-lock svg, .review-card-heading svg, .review-submit svg { width: 22px; height: 22px; }
.review-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(310px, .7fr); gap: 24px; max-width: 1380px; margin: 24px auto 0; }
.review-form, .review-history, .review-queue-card, .review-source-pane, .review-candidate-pane, .review-admin-card, .review-owner-approval-card { min-width: 0; padding: clamp(20px, 3vw, 34px); border: 1px solid var(--sw-line); border-radius: 28px; background: var(--sw-surface-raised); box-shadow: var(--sw-shadow-card); }
.review-admin-card, .review-owner-approval-card { max-width: 1380px; margin: 0 auto 24px; }
.review-owner-approval-card { border-color: color-mix(in srgb, var(--sw-teal-600) 42%, var(--sw-line)); background: linear-gradient(135deg, color-mix(in srgb, var(--sw-teal-050) 72%, white), var(--sw-surface-raised)); }
.review-owner-approval-complete { border-color: color-mix(in srgb, var(--sw-success) 48%, var(--sw-line)); }
.review-owner-approval-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.review-owner-approval-counts span { min-width: 0; padding: 16px; border: 1px solid var(--sw-line); border-radius: 18px; background: rgba(255,255,255,.78); color: var(--sw-text-muted); }
.review-owner-approval-counts strong { display: block; color: var(--sw-navy-900); font-size: 1.45rem; overflow-wrap: anywhere; }
.review-role-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: end; }
.review-role-form label { display: grid; gap: 7px; color: var(--sw-navy); font-weight: 750; }
.review-role-form input, .review-role-form select, .review-role-form textarea { width: 100%; min-height: 48px; border: 1px solid var(--sw-line); border-radius: 14px; background: #fff; color: var(--sw-navy); padding: 11px 13px; font: inherit; }
.review-role-form .review-wide { grid-column: 1 / -1; }
.review-role-form textarea { min-height: 84px; resize: vertical; }
.review-form { overflow: hidden; }
.review-card-heading { margin-bottom: 24px; }
.review-card-heading > div { display: flex; align-items: center; gap: 10px; color: var(--sw-navy-900); }
.review-card-heading h2 { margin: 0; font-size: 1.45rem; }
.review-card-heading p { margin: 8px 0 0; color: var(--sw-text-muted); line-height: 1.45; }
.review-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.review-form-grid label { display: grid; gap: 7px; color: var(--sw-text-soft); font-size: .82rem; font-weight: 750; }
.review-form-grid > *, .review-card-heading > * { min-width: 0; }
.review-form-grid .review-wide { grid-column: 1 / -1; }
.review-form-grid input, .review-form-grid select, .review-form-grid textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--sw-line-strong); border-radius: 13px; color: var(--sw-text); background: var(--sw-surface-raised); font: inherit; }
.review-form-grid input, .review-form-grid select { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.review-form-grid textarea { overflow-wrap: anywhere; }
.review-form-grid input[readonly] { color: var(--sw-text-muted); background: #f4f7f9; }
.review-form-grid textarea { min-height: 94px; resize: vertical; }
.review-submit { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 54px; margin-top: 8px; border: 0; border-radius: 999px; color: white; background: linear-gradient(135deg, #073f71, #008f91); font: inherit; font-weight: 800; }
.review-submit:disabled { cursor: not-allowed; opacity: .55; }
.review-queue-card { max-width: 1380px; margin: 0 auto 24px; }
.review-queue-filters { display: grid; grid-template-columns: minmax(220px, 1.7fr) repeat(5, minmax(120px, .65fr)); gap: 12px; margin-bottom: 15px; }
.review-queue-filters label { display: grid; gap: 6px; color: var(--sw-text-soft); font-size: .76rem; font-weight: 750; }
.review-queue-filters :is(input, select) { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid var(--sw-line-strong); border-radius: 12px; background: white; color: var(--sw-text); font: inherit; }
.review-queue-list { display: grid; max-height: 340px; overflow: auto; border: 1px solid var(--sw-line); border-radius: 16px; }
.review-queue-item { display: grid; min-width: 0; grid-template-columns: 22px 42px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--sw-line); cursor: pointer; }
.review-queue-item:last-child { border-bottom: 0; }
.review-queue-item:has(input:checked) { background: #edf9f8; box-shadow: inset 3px 0 var(--sw-teal-700); }
.review-queue-item[hidden] { display: none; }
.review-queue-item strong, .review-queue-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-queue-item strong { color: var(--sw-navy-900); }
.review-queue-item small { margin-top: 3px; color: var(--sw-text-muted); }
.review-priority { display: inline-grid; width: 38px; height: 27px; place-items: center; border-radius: 9px; font-size: .72rem; font-weight: 850; }
.review-priority-p0 { color: #9a2634; background: #fde7e9; }
.review-priority-p1 { color: #8a5d00; background: #fff3cd; }
.review-priority-p2 { color: #285b75; background: #e6f2f7; }
.review-queue-status { max-width: 180px; color: var(--sw-text-soft); font-size: .68rem; font-weight: 800; text-align: right; text-transform: uppercase; }
.review-assisted-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; max-width: 1380px; margin: 0 auto; }
.review-source-document { min-height: 320px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--sw-line); border-radius: 16px; background: linear-gradient(145deg, #f8fcfd, #eef8f9); }
.review-source-document-state { display: flex; gap: 16px; align-items: flex-start; color: var(--sw-navy); }
.review-source-document-state > svg { flex: 0 0 auto; width: 32px; height: 32px; padding: 7px; border-radius: 10px; color: var(--sw-teal); background: #dff5f4; }
.review-source-document-state span { display: block; margin-bottom: 6px; color: var(--sw-teal-dark); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.review-source-document-state strong { display: block; font-size: clamp(1.1rem, 2vw, 1.35rem); overflow-wrap: anywhere; }
.review-source-document-state p { margin: 8px 0 0; color: var(--sw-muted); line-height: 1.55; }
.review-source-metadata { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 26px 0 0; overflow: hidden; border: 1px solid var(--sw-line); border-radius: 14px; background: var(--sw-line); }
.review-source-metadata div { min-width: 0; padding: 14px; background: white; }
.review-source-metadata dt { color: var(--sw-muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; }
.review-source-metadata dd { margin: 5px 0 0; color: var(--sw-navy); font-size: .88rem; font-weight: 700; overflow-wrap: anywhere; }
.review-source-highlights { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--sw-line); }
.review-source-highlights > strong { color: var(--sw-navy); }
.review-source-highlights p { margin: 5px 0 10px; color: var(--sw-muted); font-size: .82rem; line-height: 1.45; }
.review-source-highlights ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.review-source-highlights li { padding: 6px 9px; border: 1px solid #bce2e1; border-radius: 999px; background: #eaf8f7; color: var(--sw-teal-dark); font-size: .75rem; font-weight: 750; }
.review-source-links { display: grid; gap: 6px; margin-top: 12px; }
.review-source-links a { color: var(--sw-teal-700); font-weight: 780; }
.review-source-links span { overflow: hidden; color: var(--sw-text-muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.review-candidate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; margin: 0; border: 1px solid var(--sw-line); border-radius: 16px; }
.review-candidate-grid div { min-height: 72px; padding: 12px; border-right: 1px solid var(--sw-line); border-bottom: 1px solid var(--sw-line); }
.review-candidate-grid div:nth-child(2n) { border-right: 0; }
.review-candidate-grid div:nth-last-child(-n+2) { border-bottom: 0; }
.review-candidate-grid dt { color: var(--sw-text-muted); font-size: .72rem; }
.review-candidate-grid dd { margin: 5px 0 0; overflow-wrap: anywhere; color: var(--sw-navy-900); font-size: .88rem; font-weight: 740; }
.review-parser-note { margin: 15px 0 0; padding: 12px; border-radius: 12px; background: #f2f7f9; color: var(--sw-text-soft); font-size: .76rem; line-height: 1.45; }
.review-actions { display: grid; grid-template-columns: 1.25fr 1fr .8fr .8fr; gap: 10px; margin-top: 8px; }
.review-actions .review-submit { margin: 0; }
.review-actions > button:not(.review-submit) { min-height: 54px; border: 1px solid var(--sw-line-strong); border-radius: 999px; background: white; color: var(--sw-navy-900); font: inherit; font-weight: 800; }
.review-actions > button.review-reject { color: #932c39; border-color: #e9b7bd; background: #fff8f8; }
.review-record-list { display: grid; gap: 12px; }
.review-record-list article { padding: 16px; border: 1px solid var(--sw-line); border-radius: 16px; background: #f8fbfc; }
.review-record-list h3 { margin: 8px 0 5px; color: var(--sw-navy-900); font-size: 1rem; }
.review-record-list p, .review-record-list small, .review-empty { margin: 0; color: var(--sw-text-muted); line-height: 1.4; }
.review-status { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #176d63; background: #dff6ef; font-size: .68rem; font-weight: 800; letter-spacing: .04em; }
.review-status-rejected { color: #9a3642; background: #fde9eb; }
.review-status-needs_research { color: #835900; background: #fff3cb; }
.review-status-parser_result_rejected { color: #9a3642; background: #fde9eb; }
.regulations-heading { display: grid; min-height: 65px; grid-template-columns: 39px 1fr; align-items: center; gap: 10px; padding: 7px 0 10px; }
.regulations-heading > a { display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid var(--sw-line); border-radius: 50%; background: white; box-shadow: var(--sw-shadow-card); color: var(--sw-navy-800); }
.regulations-heading > a .sw-icon { width: 17px; transform: rotate(180deg); }
.regulations-heading p { margin: 0 0 2px; color: var(--sw-teal-700); font-size: 8px; font-weight: 740; text-transform: uppercase; letter-spacing: .07em; }
.regulations-heading h1 { margin: 0; font-size: 29px; line-height: 1; letter-spacing: -.045em; }
.regulations-layout { display: grid; gap: 10px; }
.regulation-species-card { position: relative; display: grid; min-height: 144px; grid-template-columns: 1fr 1.2fr; align-items: center; overflow: hidden; padding: 18px; border-radius: var(--sw-radius-xl); background: radial-gradient(circle at 78% 25%, rgb(74 220 209 / 34%), transparent 32%), linear-gradient(145deg, var(--sw-navy-900), #086f85); box-shadow: var(--sw-shadow-card); color: white; }
.regulation-species-card p { margin: 0 0 3px; color: rgb(255 255 255 / 66%); font-size: 8px; font-style: italic; }
.regulation-species-card h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.regulation-species-card span { display: flex; align-items: center; gap: 5px; margin-top: 9px; color: rgb(255 255 255 / 76%); font-size: 8px; }
.regulation-species-card span .sw-icon { width: 14px; color: var(--sw-aqua-400); }
.regulation-species-card img { width: 135%; height: 110px; object-fit: contain; filter: drop-shadow(0 10px 10px rgb(1 25 45 / 33%)); transform: translateX(-7%) scaleX(-1); }
.resolver-card, .regulation-result { padding: 14px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-xl); background: white; box-shadow: var(--sw-shadow-card); }
.resolver-inputs { display: grid; gap: 6px; }
.resolver-inputs :is(button, a) { display: grid; min-height: 49px; grid-template-columns: 20px 1fr 15px; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-md); background: #fbfdfe; color: inherit; text-align: left; text-decoration: none; }
.resolver-inputs :is(button, a) > .sw-icon:first-child { width: 18px; color: var(--sw-teal-700); }
.resolver-inputs :is(button, a) > .sw-icon:last-child { width: 14px; color: var(--sw-text-muted); }
.resolver-inputs small, .resolver-inputs strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resolver-inputs small { color: var(--sw-text-soft); font-size: 7px; }
.resolver-inputs strong { margin-top: 2px; font-size: 9px; }
.resolver-action { display: flex; width: 100%; min-height: 43px; align-items: center; justify-content: center; gap: 7px; margin-top: 9px; border: 0; border-radius: var(--sw-radius-pill); background: linear-gradient(100deg, var(--sw-navy-900), var(--sw-teal-700)); color: white; font-size: 10px; font-weight: 720; }
.resolver-action .sw-icon { width: 17px; }
.resolver-fixture { display: block; margin-top: 7px; color: var(--sw-text-muted); font-size: 6px; text-align: center; text-transform: uppercase; letter-spacing: .05em; }
.regulation-result > header { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 9px; }
.regulation-result > header > span { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 12px; background: #fff6d9; color: #a87300; }
.regulation-result > header > span .sw-icon { width: 20px; }
.regulation-result > header p { margin: 0; color: #9b6b00; font-size: 8px; font-weight: 760; letter-spacing: .06em; }
.regulation-result > header h2 { margin: 1px 0 0; font-size: 17px; }
.regulation-result > p { margin: 10px 0; color: var(--sw-text-soft); font-size: 8px; line-height: 1.4; }
.rule-grid { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-md); }
.rule-grid article { min-width: 0; min-height: 49px; padding: 8px; border-right: 1px solid var(--sw-line); border-bottom: 1px solid var(--sw-line); }
.rule-grid article:nth-child(2n) { border-right: 0; }
.rule-grid article:nth-last-child(-n+2) { border-bottom: 0; }
.rule-grid small, .rule-grid strong, .rule-source small, .rule-source strong { display: block; }
.rule-grid small, .rule-source small { color: var(--sw-text-soft); font-size: 7px; }
.rule-grid strong { margin-top: 4px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.rule-source { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; padding: 8px 0 0; border-top: 1px solid var(--sw-line); }
.rule-source strong { margin-top: 3px; font-size: 8px; }
.rule-source a { color: var(--sw-teal-700); text-decoration: underline; text-underline-offset: 2px; }
.rule-trace { margin-top: 9px; padding: 9px 10px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-md); color: var(--sw-text-soft); font-size: 8px; }
.rule-trace summary { cursor: pointer; color: var(--sw-navy-800); font-weight: 720; }
.rule-trace ol { margin: 8px 0 0; padding-left: 18px; line-height: 1.45; }
.regulation-result[data-regulation-status="LEGAL_IF_REQUIREMENTS_MET"] > header > span,
.regulation-result[data-regulation-status="LIMITED_HARVEST"] > header > span { background: #e6f8f0; color: #087558; }
.regulation-result[data-regulation-status="PROHIBITED"] > header > span,
.regulation-result[data-regulation-status="CLOSED_SEASON"] > header > span,
.regulation-result[data-regulation-status="PROTECTED_AREA_NO_TAKE"] > header > span { background: #ffebec; color: #b4232c; }
.regulation-caution { display: grid; grid-template-columns: 25px 1fr; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #ecdcae; border-radius: var(--sw-radius-lg); background: #fffaf0; color: #6e5616; }
.regulation-caution > .sw-icon { width: 21px; }
.regulation-caution p { margin: 0; }
.regulation-caution strong, .regulation-caution small { display: block; }
.regulation-caution strong { font-size: 9px; }
.regulation-caution small { margin-top: 2px; font-size: 7px; line-height: 1.3; }

@media (min-width: 960px) {
  .regulations-page { padding: 30px clamp(28px, 4vw, 64px) 58px; }
  .regulations-page > .mobile-header { display: none; }
  .regulation-review-page { padding: 30px clamp(28px, 4vw, 64px) 58px; }
  .regulation-review-page > .mobile-header { display: none; }
  .regulations-heading { grid-template-columns: 46px 1fr; padding: 0 0 20px; }
  .regulations-heading > a { width: 44px; height: 44px; }
  .regulations-heading p { font-size: 10px; }
  .regulations-heading h1 { font-size: 42px; }
  .regulations-layout { grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr); gap: 18px; align-items: start; }
  .regulations-layout > * { min-width: 0; }
  .regulation-species-card { min-height: 260px; padding: 31px; }
  .regulation-species-card p { font-size: 11px; }
  .regulation-species-card h2 { font-size: 38px; }
  .regulation-species-card span { font-size: 11px; }
  .regulation-species-card img { height: 210px; }
  .resolver-card { grid-row: 2 / 4; padding: 23px; }
  .resolver-card .settings-card-title h2 { font-size: 22px; }
  .resolver-inputs { gap: 9px; }
  .resolver-inputs :is(button, a) { min-height: 67px; grid-template-columns: 27px 1fr 18px; padding: 0 15px; }
  .resolver-inputs :is(button, a) > .sw-icon:first-child { width: 23px; }
  .resolver-inputs small { font-size: 9px; }
  .resolver-inputs strong { font-size: 12px; }
  .resolver-action { min-height: 51px; margin-top: 14px; font-size: 12px; }
  .resolver-fixture { margin-top: 10px; font-size: 8px; }
  .regulation-result { grid-column: 2; grid-row: 1 / 3; padding: 24px; }
  .regulation-result > header { grid-template-columns: 48px 1fr; }
  .regulation-result > header > span { width: 46px; height: 46px; }
  .regulation-result > header p { font-size: 10px; }
  .regulation-result > header h2 { font-size: 23px; }
  .regulation-result > p { margin: 16px 0; font-size: 11px; }
  .rule-grid article { min-height: 75px; padding: 13px; }
  .rule-grid small, .rule-source small { font-size: 9px; }
  .rule-grid strong { margin-top: 6px; font-size: 12px; }
  .rule-source { margin-top: 15px; padding-top: 13px; }
  .rule-source strong { font-size: 11px; }
  .rule-trace { margin-top: 15px; padding: 13px 15px; font-size: 10px; }
  .regulation-caution { grid-column: 2; grid-template-columns: 31px 1fr; padding: 14px 16px; }
  .regulation-caution strong { font-size: 11px; }
  .regulation-caution small { font-size: 9px; }
}

@media (max-width: 820px) {
  .review-page-heading { margin-top: 18px; }
  .review-lock { display: none; }
  .review-layout, .review-form-grid, .review-assisted-layout, .review-queue-filters, .review-actions { grid-template-columns: 1fr; }
  .review-form-grid .review-wide { grid-column: auto; }
  .review-form, .review-history, .review-queue-card, .review-source-pane, .review-candidate-pane, .review-admin-card, .review-owner-approval-card { border-radius: 22px; }
  .review-owner-approval-counts { grid-template-columns: 1fr; }
  .review-role-form { grid-template-columns: 1fr; }
  .review-submit { padding-inline: 14px; font-size: .9rem; }
  .review-queue-item { grid-template-columns: 20px 40px minmax(0, 1fr); }
  .review-queue-status { grid-column: 3; text-align: left; }
  .review-source-document { min-height: 0; }
  .review-source-metadata { grid-template-columns: 1fr; }
}

/* Display modes */
html[data-theme="dark"] :is(
  .home-page, .plan-page, .catch-page, .explore-page, .dive-page, .profile-page,
  .settings-page, .regulations-page, .auth-shell, .auth-form-panel
) { background: var(--sw-canvas); }

html[data-theme="dark"] :is(
  .desktop-rail, .desktop-topbar, .mobile-header, .mobile-bottom-nav, .selector,
  .mode-switch, .target-card, .condition-card, .window-card, .area-card,
  .map-filter-bar, .map-search, .map-filter, .map-detail-panel, .detail-actions button, .detail-actions a,
  .species-mobile-nav, .species-mobile-nav a, .species-mobile-nav button, .species-section,
  .area-ranking button, .area-ranking a, .bait-grid button, .bait-grid a, .regulation-card, .bait-page, .bait-mode,
  .bait-mode button, .bait-mode a, .bait-panel, .bait-choice, .bait-selected, .route-card,
  .itinerary-card, .trip-metrics article, .plan-actions button, .no-catch-button, .catch-tabs,
  .scan-card, .scan-actions button, .recent-catches, .catch-card, .explore-heading > button,
  .explore-tabs button, .post-card, .post-card > footer button, .discover-panel > section,
  .discover-panel > section:last-child > button, .dive-mode, .dive-condition-panel,
  .dive-target, .profile-heading > a, .settings-heading > a, .profile-stats article,
  .profile-menu, .profile-activity, .settings-card, .appearance-picker button,
  .privacy-settings > button, .auth-card, .auth-field > div, .auth-options label i,
  .auth-consent i, .ask-page > .mobile-header, .ask-sheet, .ask-examples button,
  .ask-composer, .regulations-heading > a, .resolver-card, .regulation-result,
  .resolver-inputs button, .resolver-inputs a, .species-primary-actions button, .species-primary-actions a
) { background: var(--sw-surface); color: var(--sw-text); }

html[data-theme="dark"] :is(.brand, .profile-button, .selector, .species-mobile-nav a, .species-mobile-nav button, .detail-actions button, .detail-actions a, .plan-actions button, .scan-actions button, .explore-heading > button, .profile-heading > a, .settings-heading > a, .regulations-heading > a) { color: var(--sw-text); }
html[data-theme="dark"] .desktop-topbar { background: rgb(7 29 45 / 94%); }
html[data-theme="dark"] .mobile-bottom-nav { background: rgb(7 29 45 / 96%); }
html[data-theme="dark"] .map-filter-bar { background: rgb(7 29 45 / 97%); }
html[data-theme="dark"] .map-detail-panel,
html[data-theme="dark"] .bait-panel,
html[data-theme="dark"] .ask-sheet { background: rgb(10 34 54 / 98%); }
html[data-theme="dark"] .species-hero { background: linear-gradient(145deg, #082945, #0b5062); }
html[data-theme="dark"] .species-hero::after { background: radial-gradient(circle at 75% 36%, rgb(76 211 203 / 18%), transparent 31%), linear-gradient(90deg, rgb(5 28 45 / 84%), transparent 64%); }
html[data-theme="dark"] .species-hero-copy p,
html[data-theme="dark"] .species-hero-copy > span { color: var(--sw-text-soft); }
html[data-theme="dark"] .species-hero-copy > b { color: var(--sw-aqua-400); }
html[data-theme="dark"] .area-ranking :is(button, a) > span,
html[data-theme="dark"] .detail-close { background: var(--sw-surface-raised); color: var(--sw-text); }
html[data-theme="dark"] .setting-segment { background: #071a2a; }
html[data-theme="dark"] .setting-segment button.is-active { background: #183b52; color: white; }
html[data-theme="dark"] .dive-note,
html[data-theme="dark"] .ask-notice { background: #102e40; }
html[data-theme="dark"] .profile-menu-item > span,
html[data-theme="dark"] .settings-card-title > span,
html[data-theme="dark"] .auth-icon { background: #103a4b; }
html[data-theme="dark"] .auth-form-panel { background: radial-gradient(circle at 85% 3%, #0d4047, transparent 25%), var(--sw-canvas); }
html[data-theme="dark"] .auth-card { background: rgb(10 34 54 / 97%); }
html[data-theme="dark"] .auth-field input { color: var(--sw-text); }
html[data-theme="dark"] .auth-options label i,
html[data-theme="dark"] .auth-consent i { background: #071b2d; }
html[data-theme="dark"] .verification-code i { border-color: var(--sw-line-strong); background: #0d2a40; }
html[data-theme="dark"] .regulation-caution { border-color: #69582a; background: #302817; color: #f3d684; }
html[data-theme="dark"] .regulation-result > header > span { background: #392f14; color: #f0c24c; }
html[data-theme="dark"] .catch-art { background: linear-gradient(145deg, #0d384a, #165c5d); }
html[data-theme="dark"] .dive-target-art { background: linear-gradient(145deg, #123c47, #176062); }
html[data-theme="dark"] .primary-cta,
html[data-theme="dark"] .dive-plan-card button { background: #f7fcff; color: #07284c; }

html[data-theme="outside"] :is(
  .target-card, .condition-card, .window-card, .area-card, .species-section, .regulation-card,
  .bait-choice, .bait-selected, .route-card, .itinerary-card, .trip-metrics article,
  .scan-card, .recent-catches, .catch-card, .post-card, .discover-panel > section,
  .dive-condition-panel, .dive-target, .profile-stats article, .profile-menu,
  .profile-activity, .settings-card, .auth-card, .resolver-card, .regulation-result
) { border-width: 2px; box-shadow: var(--sw-shadow-card); }
html[data-theme="outside"] :is(.nav-item, button, a) { text-underline-offset: 3px; }
html[data-theme="outside"] :is(.section-heading h2, .inline-title h2, .settings-card h2, .profile-menu h2) { font-weight: 780; }
html[data-theme="outside"] .mobile-bottom-nav,
html[data-theme="outside"] .desktop-topbar,
html[data-theme="outside"] .desktop-rail { border-color: var(--sw-line-strong); }
html[data-theme="outside"] .mobile-bottom-nav,
html[data-theme="outside"] .desktop-topbar { background: white; backdrop-filter: none; }
html[data-theme="outside"] :is(.section-heading h2, .inline-title h2) { font-size: 1.08em; }
html[data-theme="outside"] :is(.target-name, .condition-card small, .nav-item) { font-weight: 720; }
html[data-theme="outside"] .zone-pin { border-width: 3px; }
html[data-theme="outside"] .zone-polygon { border-width: 3px; border-color: rgb(255 255 255 / 92%); }
html[data-theme="outside"] .bar.good { background: #00a4a0; }
html[data-theme="outside"] .bar.fair { background: #687b8b; }
html[data-theme="outside"] .target-card:hover { border-color: var(--sw-teal-700); }

/* Loading, empty, and degraded-data states */
.state-page { min-height: 100vh; padding: 0 15px calc(var(--sw-bottom-nav-height) + 24px); background: var(--sw-canvas); }
.state-heading { padding: 10px 0 14px; }
.state-heading p { margin: 0 0 3px; color: var(--sw-teal-700); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.state-heading h1 { margin: 0; font-size: 29px; letter-spacing: -.04em; }
.state-page--loading > section { display: grid; gap: 10px; }
.skeleton-hero, .skeleton-photo, .skeleton-route, .skeleton-profile, .skeleton-post,
.skeleton-list, .skeleton-chart, .state-map-skeleton { overflow: hidden; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-xl); background: var(--sw-surface); box-shadow: var(--sw-shadow-card); }
.skeleton-hero { height: 215px; padding: 22px; }
.skeleton-hero b, .skeleton-profile b, .skeleton-post b { display: block; width: 72px; height: 72px; border-radius: 50%; background: var(--sw-line); }
.skeleton-hero > i, .skeleton-profile > i, .skeleton-list > i, .skeleton-post > i, .skeleton-chart > i,
.skeleton-sheet > i { display: block; width: var(--w); height: 9px; margin-top: 12px; border-radius: 999px; background: var(--sw-line); }
.skeleton-hero > i:nth-of-type(1) { height: 24px; }
.skeleton-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.skeleton-cards i { height: 76px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-md); background: var(--sw-surface); }
.skeleton-chart { display: flex; height: 112px; align-items: end; gap: 7px; padding: 18px 13px; }
.skeleton-chart > i { width: 100%; height: var(--w); max-height: 70px; margin: 0; border-radius: 7px 7px 2px 2px; }
.state-two-column { display: grid; gap: 10px; }
.skeleton-photo, .skeleton-route { position: relative; height: 250px; background: linear-gradient(145deg, #0b3f68, #1497a6); }
.skeleton-photo > span { position: absolute; inset: 20px; border: 2px dashed rgb(255 255 255 / 48%); border-radius: 18px; }
.skeleton-list { padding: 14px; }
.skeleton-list > i { height: 38px; margin: 0 0 9px; }
.skeleton-list > i:last-child { margin-bottom: 0; }
.skeleton-route i { position: absolute; width: 46px; height: 46px; border: 4px solid rgb(255 255 255 / 72%); border-radius: 50%; background: rgb(255 255 255 / 14%); }
.skeleton-route i:nth-child(1) { top: 69%; left: 14%; }
.skeleton-route i:nth-child(2) { top: 24%; left: 51%; }
.skeleton-route i:nth-child(3) { top: 57%; right: 11%; }
.skeleton-profile { height: 172px; padding: 22px; background: linear-gradient(145deg, var(--sw-navy-900), var(--sw-teal-700)); }
.skeleton-profile > i { background: rgb(255 255 255 / 24%); }
.skeleton-post { height: 310px; padding: 14px; }
.skeleton-post > b { width: 38px; height: 38px; }
.skeleton-post > span { display: block; height: 170px; margin: 12px -14px; background: var(--sw-line); }
.state-map-skeleton { position: relative; height: calc(100vh - 150px); min-height: 560px; background: linear-gradient(145deg, #05264a, #087f95); }
.skeleton-radar { position: absolute; inset: 0; background: repeating-radial-gradient(circle at 63% 36%, transparent 0 31px, rgb(125 235 223 / 13%) 32px 33px); }
.skeleton-radar i { position: absolute; width: 56px; height: 56px; border: 1px solid rgb(255 255 255 / 46%); border-radius: 50%; background: rgb(58 211 199 / 21%); }
.skeleton-radar i:nth-child(1) { top: 21%; left: 28%; }
.skeleton-radar i:nth-child(2) { top: 39%; right: 17%; }
.skeleton-radar i:nth-child(3) { top: 57%; left: 44%; }
.skeleton-sheet { position: absolute; right: 0; bottom: 0; left: 0; height: 225px; padding: 22px; border-radius: 26px 26px 0 0; background: var(--sw-surface); }
.skeleton-sheet b { display: block; width: 42%; height: 24px; border-radius: 8px; background: var(--sw-line); }
.state-page--loading :is(.skeleton-hero, .skeleton-cards i, .skeleton-chart, .skeleton-photo, .skeleton-route, .skeleton-profile, .skeleton-post, .skeleton-list, .skeleton-sheet)::after {
  display: block; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, rgb(255 255 255 / 32%) 50%, transparent 65%); content: ''; animation: state-shimmer 1.8s infinite;
}
.state-page--loading :is(.skeleton-hero, .skeleton-cards i, .skeleton-chart, .skeleton-photo, .skeleton-route, .skeleton-profile, .skeleton-post, .skeleton-list, .skeleton-sheet) { position: relative; }
@keyframes state-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.empty-state { display: grid; min-height: calc(100vh - var(--sw-bottom-nav-height) - 70px); place-content: center; justify-items: center; padding: 35px 25px; text-align: center; }
.empty-art { position: relative; display: grid; width: 170px; height: 170px; place-items: center; margin-bottom: 22px; border-radius: 50%; background: radial-gradient(circle, var(--sw-mint-100) 0 46%, transparent 47%); }
.empty-art::before, .empty-art::after, .empty-art i { position: absolute; inset: 15%; border: 1px solid var(--sw-line); border-radius: 50%; content: ''; }
.empty-art::after { inset: 3%; }
.empty-art i:nth-child(1) { inset: 27%; }
.empty-art > span { z-index: 2; display: grid; width: 65px; height: 65px; place-items: center; border-radius: 22px; background: linear-gradient(145deg, var(--sw-navy-900), var(--sw-teal-700)); color: white; box-shadow: var(--sw-shadow-card); }
.empty-art > span .sw-icon { width: 32px; }
.empty-state > p { margin: 0 0 5px; color: var(--sw-teal-700); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.empty-state h1 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.empty-state > span { max-width: 310px; margin-top: 8px; color: var(--sw-text-soft); font-size: 10px; line-height: 1.45; }
.empty-state > :is(a,button) { display: flex; min-height: 43px; align-items: center; gap: 8px; margin-top: 19px; padding: 0 18px; border: 0; border-radius: var(--sw-radius-pill); background: var(--sw-navy-900); color: white; font: inherit; font-size: 10px; font-weight: 720; text-decoration: none; cursor: pointer; }
.empty-state > :is(a,button) .sw-icon { width: 16px; }
.inline-data-error { position: fixed; z-index: 50; top: 68px; right: 12px; left: 12px; display: grid; min-height: 61px; grid-template-columns: 25px 1fr 28px; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid #d8c88f; border-radius: var(--sw-radius-lg); background: #fffaf0; box-shadow: var(--sw-shadow-float); color: #614d16; }
.inline-data-error > .sw-icon { width: 21px; }
.inline-data-error strong, .inline-data-error small { display: block; }
.inline-data-error strong { font-size: 9px; }
.inline-data-error small { margin-top: 2px; font-size: 7px; line-height: 1.3; }
.inline-data-error button { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: inherit; font-size: 20px; }
html[data-theme="dark"] .inline-data-error { border-color: #69582a; background: #302817; color: #f3d684; }
html[data-theme="dark"] .state-page--loading :is(.skeleton-hero, .skeleton-cards i, .skeleton-chart, .skeleton-photo, .skeleton-route, .skeleton-profile, .skeleton-post, .skeleton-list, .skeleton-sheet)::after { background: linear-gradient(100deg, transparent 35%, rgb(91 182 186 / 13%) 50%, transparent 65%); }
html[data-theme="outside"] .state-page--loading :is(.skeleton-hero, .skeleton-cards i, .skeleton-chart, .skeleton-photo, .skeleton-route, .skeleton-profile, .skeleton-post, .skeleton-list, .skeleton-sheet)::after { animation: none; }

@media (min-width: 960px) {
  .state-page { padding: 30px clamp(28px, 4vw, 64px) 58px; }
  .state-page > .mobile-header { display: none; }
  .state-heading { padding: 0 0 20px; }
  .state-heading p { font-size: 11px; }
  .state-heading h1 { font-size: 42px; }
  .skeleton-hero { height: 360px; padding: 36px; }
  .skeleton-cards { gap: 14px; }
  .skeleton-cards i { height: 145px; }
  .skeleton-chart { height: 190px; padding: 26px 22px; }
  .state-two-column { grid-template-columns: minmax(500px, 1fr) minmax(380px, .72fr); gap: 18px; }
  .skeleton-photo, .skeleton-route { height: 590px; }
  .skeleton-list { padding: 24px; }
  .skeleton-list > i { height: 57px; margin-bottom: 13px; }
  .skeleton-post { height: 610px; }
  .skeleton-post > span { height: 390px; }
  .skeleton-profile { height: 240px; }
  .state-map-skeleton { height: calc(100vh - var(--sw-topbar-height) - 123px); min-height: 610px; }
  .skeleton-sheet { top: 0; right: 0; bottom: 0; left: auto; width: 410px; height: auto; border-radius: 0; }
  .empty-state { min-height: calc(100vh - var(--sw-topbar-height)); }
  .empty-art { width: 220px; height: 220px; }
  .empty-state h1 { font-size: 34px; }
  .empty-state > span { font-size: 12px; }
  .inline-data-error { top: 88px; right: 28px; left: calc(var(--sw-rail-width) + 28px); max-width: 690px; min-height: 68px; grid-template-columns: 29px 1fr 32px; margin: 0 auto; padding: 10px 13px; }
  .inline-data-error strong { font-size: 11px; }
  .inline-data-error small { font-size: 9px; }
}
.marine-map > .map-live-layer.maplibregl-map { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.marine-map.is-live .map-art { display: none; }
.marine-map.is-live .forecast-zone { display: none; }
.marine-map.is-live .user-location { display: none; }
.marine-map.is-live .map-scale { display: none; }
.map-zone-a11y { position: absolute; z-index: 8; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.map-zone-a11y:focus-within { right: 12px; bottom: 12px; display: grid; width: min(280px, calc(100% - 24px)); height: auto; gap: 4px; padding: 8px; overflow: visible; clip-path: none; border-radius: 12px; background: rgb(3 38 69 / 94%); }
.map-zone-a11y-button { min-height: 36px; border: 1px solid rgb(255 255 255 / 36%); border-radius: 9px; color: white; background: transparent; text-align: left; }
.live-forecast-marker { display: flex; align-items: center; gap: 7px; min-width: 76px; min-height: 42px; padding: 7px 11px; border: 2px solid rgba(255,255,255,.94); border-radius: 21px 21px 21px 5px; color: white; background: linear-gradient(145deg, #006b83, #029da1); box-shadow: 0 12px 30px rgba(0,32,55,.35); cursor: pointer; }
.live-forecast-marker strong { font-size: 1rem; line-height: 1; }
.live-forecast-marker span { max-width: 78px; overflow: hidden; font-size: .62rem; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.live-forecast-marker.is-selected { background: linear-gradient(145deg, #063e72, #04b7b1); outline: 5px solid rgba(43,223,190,.24); }
.live-user-location { display: block; width: 21px; height: 21px; border: 3px solid white; border-radius: 50%; background: #1679f2; box-shadow: 0 0 0 9px rgb(30 136 229 / 24%), 0 4px 14px rgb(0 26 50 / 38%); }
.art-unavailable,
.target-art-unavailable,
.detail-art-unavailable,
.bait-art-unavailable,
.bait-selected-art-unavailable,
.species-art-unavailable { display: grid; place-items: center; color: var(--sw-teal-600); opacity: .55; }
.art-unavailable svg,
.target-art-unavailable svg,
.detail-art-unavailable svg,
.bait-art-unavailable svg,
.bait-selected-art-unavailable svg,
.species-art-unavailable svg { width: 58%; height: 58%; }
.auth-message { min-height: 1.4em; color: var(--sw-text-muted); }
.auth-message.is-error { color: #b43e4a; }
.live-empty-copy { padding: 28px; color: var(--sw-text-muted); text-align: center; }
.community-photo-private { display: grid; min-height: 230px; place-items: center; gap: 10px; color: var(--sw-text-muted); background: linear-gradient(145deg, rgba(0,125,153,.12), rgba(0,37,72,.05)); }
.live-toast { position: fixed; right: 24px; bottom: 24px; z-index: 1000; max-width: min(390px, calc(100vw - 32px)); padding: 14px 18px; border: 1px solid rgba(255,255,255,.28); border-radius: 16px; color: white; background: #074e69; box-shadow: 0 16px 50px rgba(0,26,51,.25); pointer-events: none; }
.live-toast.is-error { background: #8d3340; }
.live-modal-backdrop { position: fixed; inset: 0; z-index: 1100; display: grid; padding: 20px; place-items: center; overflow-y: auto; background: rgba(0,20,38,.58); backdrop-filter: blur(8px); }
.live-modal { width: min(620px, 100%); max-height: min(820px, calc(100vh - 40px)); overflow: auto; border: 1px solid var(--sw-line-strong); border-radius: 28px; color: var(--sw-text); background: var(--sw-surface); box-shadow: 0 28px 90px rgba(0,20,45,.42), 0 0 0 1px rgba(255,255,255,.4); }
.live-modal > header { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--sw-line); background: var(--sw-surface); }
.live-modal > header p { margin: 0 0 2px; color: var(--sw-teal-700); font-size: .74rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.live-modal > header h2 { margin: 0; }
.live-modal > header button { width: 40px; height: 40px; border: 1px solid var(--sw-line-strong); border-radius: 50%; color: inherit; background: var(--sw-surface-raised); font-size: 1.5rem; }
.live-modal form { padding: 22px 24px 24px; background: var(--sw-surface); }
.live-form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.live-form-fields label { display: grid; gap: 7px; color: var(--sw-text-soft); font-size: .8rem; font-weight: 700; }
.live-form-fields label:has(textarea) { grid-column: 1 / -1; }
.live-form-fields input,
.live-form-fields select,
.live-form-fields textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--sw-line-strong); border-radius: 13px; color: var(--sw-text); background: var(--sw-surface-raised); font: inherit; }
.live-form-fields textarea { min-height: 94px; resize: vertical; }
.forecast-scope-summary { display: grid; grid-column: 1 / -1; gap: 4px; padding: 14px 16px; border: 1px solid #9edbd7; border-radius: 16px; background: linear-gradient(135deg, #e8fbf8, #f4fbff); color: var(--sw-navy-900); }
.forecast-scope-summary strong { font-size: 14px; }
.forecast-scope-summary span { color: var(--sw-teal-700); font-size: 17px; font-weight: 760; }
.forecast-scope-summary small { color: #45677d; font-size: 12px; line-height: 1.4; }
.location-presets { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 8px; }
.location-presets > span { width: 100%; color: var(--sw-text-soft); font-size: 12px; font-weight: 720; }
.location-presets button, .use-device-location { min-height: 38px; padding: 0 13px; border: 1px solid #8cb9c8; border-radius: var(--sw-radius-pill); background: var(--sw-surface-raised); color: var(--sw-text); font-weight: 700; }
.use-device-location { grid-column: 1 / -1; min-height: 46px; border-color: var(--sw-teal-700); color: var(--sw-teal-700); }
.live-form-message { min-height: 1.35em; margin: 14px 0 0; color: var(--sw-text-muted); }
.live-form-message.is-error { color: #b43e4a; }
.live-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.live-form-actions button { min-height: 44px; padding: 0 20px; border: 1px solid #91aabd; border-radius: 999px; color: var(--sw-navy-900); background: white; font-weight: 720; }
.live-form-actions .solid-action { color: white; border-color: transparent; background: linear-gradient(135deg, #073f71, #007c91); }
.ask-response:not(:empty) { margin: 12px 0; padding: 14px 16px; border: 1px solid var(--sw-line); border-radius: 16px; color: var(--sw-text); background: var(--sw-surface-raised); white-space: pre-wrap; }
.live-modal-copy { grid-column: 1 / -1; color: var(--sw-text-muted); line-height: 1.55; }
.live-modal-copy p { margin: 0; }
.catch-detail-sheet { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.catch-detail-sheet > div { min-width: 0; padding: 13px 14px; border: 1px solid var(--sw-line); border-radius: 14px; background: var(--sw-surface-raised); }
.catch-detail-sheet dt { color: var(--sw-text-muted); font-size: 11px; font-weight: 720; text-transform: uppercase; }
.catch-detail-sheet dd { margin: 5px 0 0; color: var(--sw-text); font-weight: 680; overflow-wrap: anywhere; }
.catch-detail-sheet .catch-detail-notes { grid-column: 1 / -1; }
.catch-detail-privacy { grid-column: 1 / -1; margin: 0; padding: 10px 12px; border-radius: 12px; color: var(--sw-text-muted); background: rgb(0 130 145 / 8%); font-size: 12px; line-height: 1.45; }
.comment-list { display: grid; grid-column: 1 / -1; gap: 8px; max-height: 260px; overflow: auto; }
.comment-list p { display: grid; gap: 3px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--sw-surface-raised); }
.comment-list strong { color: var(--sw-teal-700); font-size: 12px; }
.comment-list + label textarea { min-height: 90px; }
.map-detail-panel.is-collapsed { display: none; }
.conditions-page { width: min(1180px, 100%); margin: 0 auto; padding: 20px 16px 110px; }
.conditions-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.conditions-heading p, .conditions-source-heading p { margin: 0 0 4px; color: var(--sw-teal-700); font-size: 11px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.conditions-heading h1 { margin: 0; color: var(--sw-navy-900); font-size: clamp(30px, 6vw, 48px); line-height: 1; }
.conditions-heading span { display: block; margin-top: 8px; color: var(--sw-text-muted); font-size: 12px; }
.conditions-heading > a { display: flex; min-height: 42px; align-items: center; gap: 7px; padding: 0 15px; border: 1px solid var(--sw-line-strong); border-radius: var(--sw-radius-pill); color: var(--sw-navy-900); background: var(--sw-surface-raised); font-size: 12px; font-weight: 720; }
.conditions-heading > a .sw-icon { width: 16px; transform: rotate(180deg); }
.environment-summary { display: grid; grid-template-columns: 1fr minmax(180px, .4fr); align-items: center; gap: 18px; min-height: 122px; padding: 22px; border-radius: 24px; color: white; background: linear-gradient(135deg, #073761, #007f91); box-shadow: var(--sw-shadow-card); }
.environment-summary small, .environment-summary strong, .environment-summary span { display: block; }
.environment-summary small { color: rgb(255 255 255 / 66%); font-size: 10px; font-weight: 720; letter-spacing: .06em; text-transform: uppercase; }
.environment-summary strong { margin-top: 4px; font-size: 25px; }
.environment-summary span { margin-top: 6px; color: rgb(255 255 255 / 78%); font-size: 12px; line-height: 1.45; }
.tide-spark { display: flex; height: 66px; align-items: end; justify-content: center; gap: 7px; padding: 10px 12px; border-radius: 16px; background: rgb(255 255 255 / 10%); }
.tide-spark i { width: 10px; height: var(--level); border-radius: 8px 8px 2px 2px; background: linear-gradient(#83f0e1, #20a9be); }
.tide-spark span { align-self: center; margin: 0; font-size: 11px; }
.environment-group { margin-top: 22px; }
.environment-group > h2, .conditions-source-heading h2 { margin: 0 0 11px; color: var(--sw-navy-900); font-size: 20px; }
.environment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.environment-metric { display: grid; min-height: 92px; grid-template-columns: 34px 1fr; align-items: center; gap: 10px; padding: 15px; border: 1px solid var(--sw-line); border-radius: 18px; background: var(--sw-surface-raised); box-shadow: var(--sw-shadow-card); }
.environment-metric > .sw-icon { width: 28px; color: var(--sw-teal-700); }
.environment-metric small, .environment-metric strong, .environment-metric em { display: block; }
.environment-metric small { color: var(--sw-text-muted); font-size: 10px; }
.environment-metric strong { margin-top: 3px; color: var(--sw-navy-900); font-size: 18px; }
.environment-metric em { margin-top: 4px; overflow: hidden; color: var(--sw-text-soft); font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.conditions-source-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 11px; }
.conditions-source-heading h2 { margin-bottom: 0; }
.conditions-source-heading > span { max-width: 360px; color: var(--sw-text-muted); font-size: 11px; text-align: right; }
.environment-sources { overflow: hidden; border: 1px solid var(--sw-line); border-radius: 20px; background: var(--sw-surface-raised); box-shadow: var(--sw-shadow-card); }
.environment-source { display: grid; grid-template-columns: 94px 1fr auto; align-items: center; gap: 13px; padding: 14px 16px; border-bottom: 1px solid var(--sw-line); }
.environment-source:last-child { border-bottom: 0; }
.source-state { justify-self: start; padding: 5px 8px; border-radius: var(--sw-radius-pill); color: #5f6872; background: #e8edf1; font-size: 8px; font-weight: 800; letter-spacing: .04em; }
.source-state--available { color: #08796e; background: #d9f5ee; }
.source-state--partial { color: #856716; background: #fff2c7; }
.source-state--unavailable { color: #93414b; background: #ffe4e7; }
.environment-source strong, .environment-source small, .environment-source em { display: block; }
.environment-source strong { color: var(--sw-navy-900); font-size: 12px; }
.environment-source small { margin-top: 3px; color: var(--sw-text-muted); font-size: 9px; }
.environment-source em { margin-top: 4px; color: #93414b; font-size: 9px; font-style: normal; }
.environment-source time { color: var(--sw-text-muted); font-size: 9px; white-space: nowrap; }
.local-detail-notice { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid #e6cf81; border-radius: 16px; color: #685313; background: #fff8df; }
.local-detail-notice .sw-icon { width: 21px; flex: 0 0 auto; }
.local-detail-notice strong, .local-detail-notice small { display: block; }
.local-detail-notice small { margin-top: 2px; font-size: 10px; line-height: 1.4; }
.condition-feedback { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--sw-line); border-radius: 20px; background: var(--sw-surface-raised); box-shadow: var(--sw-shadow-card); }
.condition-feedback p { margin: 0 0 3px; color: var(--sw-teal-700); font-size: 10px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.condition-feedback h2 { margin: 0; color: var(--sw-navy-900); }
.condition-feedback span, .condition-feedback label, .condition-feedback > small { color: var(--sw-text-muted); font-size: 11px; line-height: 1.45; }
.condition-feedback__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.condition-feedback__actions button { min-height: 44px; border: 1px solid var(--sw-teal-700); border-radius: 14px; color: var(--sw-navy-900); background: transparent; font-weight: 760; }
.condition-feedback__actions button:hover, .condition-feedback__actions button:focus-visible { color: white; background: var(--sw-teal-700); }
.condition-feedback__actions button:disabled { opacity: .55; }
html[data-theme="dark"] .conditions-heading h1,
html[data-theme="dark"] .conditions-heading > a,
html[data-theme="dark"] .environment-group > h2,
html[data-theme="dark"] .conditions-source-heading h2,
html[data-theme="dark"] .environment-metric strong,
html[data-theme="dark"] .environment-source strong { color: var(--sw-text); }
@media (min-width: 760px) {
  .conditions-page { padding: 36px 34px 72px; }
  .environment-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .environment-group:nth-of-type(4) .environment-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .conditions-heading { align-items: start; }
  .conditions-heading > a { width: 42px; padding: 0; justify-content: center; font-size: 0; }
  .environment-summary { grid-template-columns: 1fr; }
  .environment-source { grid-template-columns: 84px 1fr; }
  .environment-source time { grid-column: 2; }
  .conditions-source-heading { align-items: start; flex-direction: column; }
  .conditions-source-heading > span { text-align: left; }
}
[hidden] { display: none !important; }
@media (max-width: 620px) {
  .live-modal-backdrop { align-items: end; padding: 0; }
  .live-modal { max-height: 88vh; border-radius: 26px 26px 0 0; }
  .live-form-fields { grid-template-columns: 1fr; }
}

/* Screenshot-driven responsive hardening (2026-09-14). */

.plan-boat-summary {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius-lg);
  background: var(--sw-surface-raised);
  box-shadow: var(--sw-shadow-card);
}
.plan-boat-summary > .sw-icon { width: 24px; color: var(--sw-teal-700); }
.plan-boat-summary small, .plan-boat-summary strong, .plan-boat-summary span { display: block; }
.plan-boat-summary small { color: var(--sw-text-muted); font-size: 8px; text-transform: uppercase; letter-spacing: .05em; }
.plan-boat-summary strong { margin-top: 2px; color: var(--sw-navy-900); font-size: 12px; }
.plan-boat-summary span { margin-top: 2px; color: var(--sw-text-soft); font-size: 9px; line-height: 1.35; }
.plan-boat-summary a {
  display: inline-flex;
  grid-column: 1 / -1;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--sw-navy-800);
  border-radius: var(--sw-radius-pill);
  color: var(--sw-navy-900);
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
}
.plan-boat-summary a .sw-icon { width: 15px; }
.plan-offline-readiness{display:grid;grid-template-columns:34px minmax(0,1fr) auto auto;align-items:center;gap:12px;margin-top:10px;padding:12px 14px;border:1px solid var(--sw-line);border-radius:18px;background:var(--sw-surface);box-shadow:var(--sw-shadow-sm)}
.plan-offline-readiness>.sw-icon{width:24px;color:var(--sw-teal-700)}.plan-offline-readiness small,.plan-offline-readiness strong,.plan-offline-readiness span{display:block}.plan-offline-readiness small{color:var(--sw-text-muted);font-size:8px;text-transform:uppercase;letter-spacing:.07em}.plan-offline-readiness strong{font-size:12px}.plan-offline-readiness span{margin-top:2px;color:var(--sw-text-soft);font-size:9px;line-height:1.35}.plan-offline-readiness a{display:flex;align-items:center;gap:6px;min-height:38px;padding:0 12px;border:1px solid var(--sw-line);border-radius:999px;color:var(--sw-navy-900);font-size:10px;font-weight:700;text-decoration:none}.plan-offline-readiness a .sw-icon{width:14px}
.trip-metrics strong { max-width: 100%; line-height: 1.15; white-space: normal; overflow-wrap: break-word; word-break: normal; }

.regulations-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.regulation-species-card { grid-column: 1; grid-row: auto; }
.regulation-exact-section { display: grid; gap: 11px; min-width: 0; }
.regulation-exact-section > header { padding: 3px 2px 0; }
.regulation-exact-section > header p { margin: 0; color: var(--sw-teal-700); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.regulation-exact-section > header h2 { margin: 3px 0 0; color: var(--sw-navy-900); font-size: 19px; line-height: 1.15; }
.regulation-exact-section > header span { display: block; margin-top: 4px; color: var(--sw-text-muted); font-size: 9px; line-height: 1.4; }
.regulation-exact-grid { display: grid; min-width: 0; gap: 10px; }
.regulation-exact-grid > * { min-width: 0; }
.regulation-exact-grid .resolver-card,
.regulation-exact-grid .regulation-result { grid-column: auto; grid-row: auto; }
.reference-browser, .regulation-caution { grid-column: 1; grid-row: auto; min-width: 0; }
.reference-browser > header h2 { margin: 4px 0 0; font-size: clamp(19px, 5vw, 27px); line-height: 1.15; }
.regulation-reference-card dd, .regulation-reference-card p, .reference-limitations { overflow-wrap: anywhere; }
.regulation-species-card img[hidden] + .species-art-unavailable { display: grid; place-items: center; }
.species-art-unavailable { min-height: 90px; color: rgb(255 255 255 / 78%); }
.species-art-unavailable .sw-icon { width: 48px; height: 48px; }

.environment-summary, .environment-summary > *, .environment-metric, .environment-metric > span { min-width: 0; }
.tide-spark { max-width: 100%; overflow: hidden; gap: clamp(3px, 1vw, 7px); }
.tide-spark i { min-width: 3px; flex: 1 1 10px; }
.environment-metric { min-height: 106px; height: auto; align-items: start; }
.environment-metric strong, .environment-metric em { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.environment-metric em { line-height: 1.35; }

.area-map > .maplibregl-map,
.area-map > .maplibregl-map .maplibregl-canvas-container,
.area-map > .maplibregl-map canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.area-map .maplibregl-control-container { display: none; }

@media (max-width: 959px) {
  .hero-card { min-height: 292px; }
  .hero-copy {
    position: relative;
    inset: auto;
    display: flex;
    width: min(70%, 330px);
    min-height: 292px;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0 18px 20px;
  }
  .hero-copy h2 { max-width: 100%; font-size: clamp(29px, 8vw, 42px); overflow-wrap: anywhere; }
  .hero-fish { top: 18%; right: -3%; width: 54%; height: 58%; }
  .hero-copy .primary-cta { margin-top: auto; }
  .target-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: clamp(142px, 39vw, 190px);
    gap: 10px;
    overflow-x: auto;
    padding: 3px 2px 14px;
  }
  .target-card { min-height: 150px; padding: 10px; }
  .target-name { min-height: 31px; font-size: 12px; }
  .target-card img { height: 50px; }
  .target-card .forecast-regulation { font-size: 7px; }
  .target-footer strong { font-size: 23px; }
  .map-filter-row { grid-template-columns: 1fr 1fr; }
  .map-filter-row > :first-child { grid-column: 1 / -1; }
  .map-filter-row > :first-child span { overflow: visible; text-overflow: clip; }
  .map-workspace { height: calc(100vh - 229px); }
  .map-filter { padding-inline: 14px; }
  .detail-title-row { align-items: start; }
  .detail-title-row h1 { padding-right: 4px; }
  .detail-title-row img { width: min(38%, 128px); height: 62px; flex: 0 0 auto; }
}

@media (max-width: 420px) {
  .mobile-header { gap: 1px; }
  .mobile-header .icon-button { width: 40px; height: 40px; }
  .hero-copy { width: 72%; padding-left: 18px; }
  .hero-copy h2 { font-size: clamp(28px, 9vw, 36px); }
  .hero-fish { right: 1%; width: 50%; object-position: center; }
  .condition-card em { white-space: normal; line-height: 1.2; }
  .map-workspace { height: calc(100vh - 229px); }
  .regulation-species-card { min-height: 170px; grid-template-columns: minmax(0, 1.05fr) minmax(120px, .95fr); }
  .regulation-species-card h2 { font-size: clamp(23px, 7.6vw, 31px); }
  .regulation-species-card img { width: 125%; height: 132px; transform: translateX(-3%) scaleX(-1); }
}

@media (min-width: 960px) {
  .target-card:nth-child(n+5) { display: flex; }
  .regulations-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .regulation-species-card {
    min-height: 290px;
    grid-template-columns: minmax(330px, .72fr) minmax(420px, 1.28fr);
    padding: 36px 44px;
  }
  .regulation-species-card h2 { max-width: 520px; font-size: clamp(42px, 4vw, 62px); line-height: .98; }
  .regulation-species-card img { width: 100%; height: 245px; object-position: center; transform: scaleX(-1); }
  .regulation-exact-section { gap: 15px; }
  .regulation-exact-section > header p { font-size: 10px; }
  .regulation-exact-section > header h2 { font-size: 27px; }
  .regulation-exact-section > header span { font-size: 11px; }
  .regulation-exact-grid { grid-template-columns: minmax(360px, .88fr) minmax(420px, 1.12fr); gap: 18px; align-items: start; }
  .regulation-exact-grid .resolver-card,
  .regulation-exact-grid .regulation-result { grid-column: auto; grid-row: auto; min-height: 100%; }
  .reference-browser { grid-column: 1; grid-row: auto; }
  .regulation-caution { grid-column: 1; grid-row: auto; }
  .plan-boat-summary { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; margin-top: 18px; padding: 16px 18px; }
  .plan-boat-summary > .sw-icon { width: 30px; }
  .plan-boat-summary small { font-size: 9px; }
  .plan-boat-summary strong { font-size: 15px; }
  .plan-boat-summary span { font-size: 11px; }
  .plan-boat-summary a { grid-column: auto; min-width: 180px; padding-inline: 16px; font-size: 11px; }
  .environment-metric { min-height: 118px; }
}

@media (min-width: 960px) and (max-width: 1379px) {
  .map-filter-bar { width: min(470px, calc(100% - 430px)); flex-direction: column; }
  .map-search { width: 100%; }
  .map-filter-row { width: 100%; grid-template-columns: 1fr 1fr; }
  .map-filter-row > :first-child { grid-column: 1 / -1; }
  .map-filter-row > .map-directory-link { display: none; }
  .map-scope-badge { top: 178px; }
}

@media (min-width: 1380px) {
  .map-filter-bar { width: min(1000px, calc(100% - 410px)); }
  .map-search { width: 330px; flex: 0 0 330px; }
  .map-filter-row { grid-template-columns: minmax(190px, 1.45fr) minmax(115px, .85fr) minmax(105px, .75fr) auto; }
  .map-filter span { overflow: visible; text-overflow: clip; }
}

/* Shared live-state, community, catch-location, bait-site, and Dive map hardening. */
.condition-card em { display: block; max-width: 100%; margin-top: 3px; overflow: hidden; color: var(--sw-teal-700); font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.forecast-health { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 12px 0 18px; padding: 12px 14px; border: 1px solid #e9c86b; border-radius: 16px; color: #58450f; background: #fff9e7; box-shadow: var(--sw-shadow-card); }
.forecast-health > div { display: flex; min-width: 0; align-items: center; gap: 10px; }
.forecast-health > div > span { min-width: 0; overflow-wrap: anywhere; }
.forecast-health .sw-icon { width: 20px; flex: 0 0 auto; }
.forecast-health strong, .forecast-health small { display: block; }
.forecast-health small { margin-top: 2px; color: inherit; opacity: .8; }
.forecast-health button { min-height: 36px; flex: 0 0 auto; padding: 0 14px; border: 1px solid currentColor; border-radius: var(--sw-radius-pill); color: inherit; background: white; font-weight: 720; white-space: nowrap; }
.forecast-health--error { border-color: #e5969f; color: #7d2733; background: #fff0f2; }
.marine-safety { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0 18px; }
.marine-safety > article { display: grid; min-width: 0; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 13px 14px; border: 1px solid var(--sw-line); border-radius: 16px; background: white; box-shadow: var(--sw-shadow-card); }
.marine-safety > article > .sw-icon { width: 22px; color: var(--sw-teal-700); }
.marine-safety small, .marine-safety strong, .marine-safety p, .marine-safety span { display: block; }
.marine-safety small { color: var(--sw-text-muted); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.marine-safety strong { margin-top: 3px; color: var(--sw-navy-900); font-size: 14px; }
.marine-safety p, .marine-safety span { margin: 4px 0 0; color: var(--sw-text-soft); font-size: 10px; line-height: 1.42; }
.marine-safety a { display: grid; gap: 2px; margin-top: 7px; color: var(--sw-navy-900); text-decoration: none; }
.marine-safety a span { margin: 0; }
.marine-safety__caution--use-caution { border-color: #e9c86b !important; background: #fff9e7 !important; }
.marine-safety__caution--poor-marine-conditions { border-color: #e5969f !important; background: #fff0f2 !important; }
.marine-safety__caution--favorable-conditions { border-color: #93d6c9 !important; background: #f0fbf8 !important; }
.app-stage[aria-busy="true"] main { opacity: .7; pointer-events: none; }

.bait-site-facts { display: grid !important; grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px !important; margin-top: 9px; }
.bait-site-facts span { display: grid; gap: 2px; min-width: 0; padding: 8px; border-radius: 11px; color: var(--sw-text-soft); background: var(--sw-surface-raised); font-size: 9px; }
.bait-site-facts b { color: var(--sw-navy-900); font-size: 8px; text-transform: uppercase; }
.bait-selected .bait-why { display: block; grid-column: 1 / -1; padding: 9px 10px; border: 1px solid var(--sw-line); border-radius: 11px; line-height: 1.45; }
.bait-selected .bait-why strong { display: block; margin-bottom: 3px; color: var(--sw-navy-900); }

.dive-map-section { margin: 18px 0; padding: 14px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-xl); background: var(--sw-surface-raised); box-shadow: var(--sw-shadow-card); }
.dive-map-section .inline-title > span { color: var(--sw-text-soft); font-size: 10px; }
.dive-map-canvas { position: relative; min-height: 340px; overflow: hidden; border-radius: 18px; background: #083d5a; }
.dive-map-canvas .marine-map { min-height: 340px; }
.dive-map-status { position: absolute; z-index: 6; right: 12px; bottom: 12px; left: 12px; margin: 0; padding: 8px 11px; border-radius: 12px; color: white; background: rgb(1 36 62 / 82%); font-size: 10px; backdrop-filter: blur(8px); }
.dive-map-status button { border: 0; color: #8ef4e7; background: none; font-weight: 750; }

/* Structure Intelligence overlays are deliberately compact and subordinate to forecast zones. */
.map-layer-panel { position: absolute; z-index: 12; top: 72px; right: 14px; width: min(310px, calc(100% - 28px)); padding: 14px; border: 1px solid rgb(8 52 83 / 14%); border-radius: 18px; background: rgb(255 255 255 / 96%); box-shadow: 0 18px 46px rgb(1 31 54 / 24%); color: var(--sw-navy-900); backdrop-filter: blur(18px); }
.map-layer-panel[hidden], .structure-feature-card[hidden] { display: none; }
.map-layer-panel header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.map-layer-panel header strong { font-size: 17px; }
.map-layer-panel header button, .structure-feature-card > button:first-child { display: grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--sw-surface-soft); color: var(--sw-navy-900); font-size: 21px; }
.map-layer-panel > p { margin: 0 0 10px; color: var(--sw-muted); font-size: 11px; line-height: 1.45; }
.map-layer-panel label { display: flex; align-items: center; gap: 10px; min-height: 48px; border-top: 1px solid rgb(8 52 83 / 9%); cursor: pointer; }
.map-layer-panel label input { width: 18px; height: 18px; accent-color: var(--sw-teal-600); }
.map-layer-panel label span { display: grid; gap: 2px; }
.map-layer-panel label b { font-size: 12px; }
.map-layer-panel label small { color: var(--sw-muted); font-size: 9px; line-height: 1.25; }
.map-layer-panel label.is-unavailable { opacity: .55; cursor: not-allowed; }
.map-layer-panel footer { margin-top: 8px; padding-top: 9px; border-top: 1px solid rgb(8 52 83 / 9%); color: var(--sw-muted); font-size: 9px; line-height: 1.35; }
.structure-feature-card { position: absolute; z-index: 11; right: 14px; bottom: 20px; display: grid; width: min(300px, calc(100% - 28px)); gap: 5px; padding: 15px; border: 1px solid rgb(255 255 255 / 60%); border-radius: 18px; background: rgb(255 255 255 / 96%); box-shadow: 0 18px 44px rgb(1 31 54 / 25%); color: var(--sw-navy-900); }
.structure-feature-card > button:first-child { position: absolute; top: 9px; right: 9px; }
.structure-feature-card > small { color: var(--sw-teal-700); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.structure-feature-card > strong { padding-right: 30px; font-size: 17px; text-transform: capitalize; }
.structure-feature-card > span, .structure-feature-card > p { margin: 0; color: var(--sw-muted); font-size: 10px; line-height: 1.4; }
.structure-feature-card [data-structure-start] { margin-top: 5px; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--sw-navy-900); color: white; font-weight: 750; }
.structure-rank-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.structure-rank-summary > span { display: grid; min-width: 0; gap: 2px; padding: 10px; border: 1px solid rgb(8 52 83 / 9%); border-radius: 13px; background: var(--sw-surface-soft); }
.structure-rank-summary small { color: var(--sw-muted); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.structure-rank-summary strong { color: var(--sw-teal-700); font-size: 20px; }
.structure-rank-summary em { overflow: hidden; color: var(--sw-muted); font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.map-overlap-summary { display: grid; gap: 7px; margin: 12px 0; padding: 12px; border: 1px solid rgb(8 148 151 / 22%); border-radius: 15px; background: linear-gradient(135deg, rgb(231 249 248 / 94%), rgb(244 250 252 / 98%)); }
.map-overlap-summary h2 { margin: 0; color: var(--sw-navy-900); font-size: 14px; }
.map-overlap-summary > p { margin: 0; color: var(--sw-text-soft); font-size: 9px; line-height: 1.4; }
.map-overlap-summary ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.map-overlap-summary li a { display: flex; min-height: 31px; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 9px; border: 1px solid rgb(8 52 83 / 8%); border-radius: 10px; background: rgb(255 255 255 / 86%); color: var(--sw-text); font-size: 10px; text-decoration: none; }
.map-overlap-summary li strong { color: var(--sw-teal-700); font-size: 15px; }
.map-alternative-summary { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; margin: 12px 0; padding: 11px 12px; border: 1px solid var(--sw-line); border-radius: 14px; background: var(--sw-surface-soft); }
.map-alternative-summary small, .map-alternative-summary strong, .map-alternative-summary span { display: block; }
.map-alternative-summary small { color: var(--sw-teal-700); font-size: 8px; font-weight: 760; text-transform: uppercase; letter-spacing: .045em; }
.map-alternative-summary strong { margin-top: 2px; color: var(--sw-navy-900); font-size: 12px; }
.map-alternative-summary span { margin-top: 2px; color: var(--sw-text-soft); font-size: 9px; }
.map-alternative-summary a { display: inline-flex; min-height: 34px; align-items: center; gap: 5px; padding: 0 10px; border: 1px solid var(--sw-navy-800); border-radius: 999px; color: var(--sw-navy-900); font-size: 9px; font-weight: 720; text-decoration: none; white-space: nowrap; }
.map-alternative-summary a .sw-icon { width: 15px; }
.best-structure-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0; padding: 12px; border: 1px solid rgb(10 145 145 / 18%); border-radius: 14px; background: rgb(227 250 247 / 54%); }
.best-structure-card div { display: grid; gap: 2px; }
.best-structure-card small { color: var(--sw-teal-700); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.best-structure-card strong { font-size: 12px; text-transform: capitalize; }
.best-structure-card p { margin: 0; color: var(--sw-muted); font-size: 9px; line-height: 1.35; }
.best-structure-card button { flex: 0 0 auto; padding: 9px 11px; border: 0; border-radius: 11px; background: var(--sw-navy-900); color: white; font-size: 10px; font-weight: 750; }
.best-structure-card .sw-icon { width: 14px; margin-right: 4px; vertical-align: middle; }
.structure-safety-note { display: flex; gap: 6px; margin: 8px 0 0; color: var(--sw-muted); font-size: 9px; line-height: 1.4; }
.structure-safety-note .sw-icon { flex: 0 0 14px; width: 14px; }

.adult-prior-card { display: grid; gap: 8px; border-color: rgb(9 143 145 / 22%); background: linear-gradient(135deg, rgb(231 250 248 / 74%), white); }
.adult-prior-card > div { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.adult-prior-card > div > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: var(--sw-teal-700); background: white; }
.adult-prior-card > div > span .sw-icon { width: 19px; }
.adult-prior-card p { margin: 0; color: var(--sw-text-soft); font-size: 10px; line-height: 1.4; }
.adult-prior-card h2, .adult-prior-card strong { margin: 0; color: var(--sw-navy-900); }
.adult-prior-card small { color: var(--sw-teal-700); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.adult-prior-card > div > p > small, .adult-prior-card > div > p > strong { display: block; }
.adult-prior-card > div > strong, .adult-prior-card > div > b { color: var(--sw-teal-700); font-size: 16px; white-space: nowrap; }
.adult-prior-card ul { margin: 0; padding-left: 17px; color: var(--sw-text-muted); font-size: 9px; line-height: 1.45; }
.adult-prior-card .adult-score-components { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.adult-prior-card .adult-score-components > span { display: grid; width: auto; height: auto; gap: 2px; padding: 8px; place-items: start; border: 1px solid rgb(9 143 145 / 16%); border-radius: 10px; }
.adult-prior-card .adult-score-components strong { font-size: 14px; }
.adult-prior-card--compact { margin: 10px 0; padding: 11px 12px; border: 1px solid rgb(9 143 145 / 22%); border-radius: 14px; }
.adult-prior-card--compact > div > span { width: 29px; height: 29px; }
.adult-prior-card--compact > div > b { font-size: 13px; }
.adult-prior-card--compact > div { grid-template-columns: auto minmax(0, 1fr); }
.adult-prior-card--compact > div > b { grid-column: 2; white-space: normal; }

@media (max-width: 720px) {
  .map-layer-panel { top: 66px; right: 10px; }
  .structure-feature-card { right: 10px; bottom: 86px; }
  .structure-rank-summary { gap: 5px; }
  .structure-rank-summary > span { padding: 8px; }
  .best-structure-card { align-items: flex-start; }
  .dive-map-section .inline-title { align-items: flex-start; flex-direction: column; gap: 4px; }
  .dive-map-section .inline-title > span { align-self: flex-start; }
}

.comment-preview { display: grid; width: calc(100% - 24px); gap: 6px; margin: 0 12px 10px; padding: 10px 12px; border: 1px solid var(--sw-line); border-radius: 14px; color: var(--sw-text); background: var(--sw-surface-raised); text-align: left; }
.comment-preview span { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; align-items: baseline; min-width: 0; }
.comment-preview strong { color: var(--sw-navy-900); font-size: 9px; }
.comment-preview b { overflow: hidden; font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.comment-preview small { color: var(--sw-text-muted); font-size: 8px; }
.comment-preview em { color: var(--sw-teal-700); font-size: 9px; font-style: normal; font-weight: 700; }
.comment-preview.is-empty { color: var(--sw-teal-700); font-size: 10px; font-weight: 700; }
.community-map-legend { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; color: var(--sw-text-muted); font-size: 9px; }
.community-map-legend span { display: flex; align-items: center; gap: 5px; }
.community-map-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--sw-teal-600); box-shadow: 0 0 0 4px rgb(0 151 155 / 14%); }
.community-map-legend span:last-child i { background: #718399; box-shadow: none; }

.tip-library-controls { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.tip-library-controls label { display: flex; min-height: 38px; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--sw-line-strong); border-radius: var(--sw-radius-pill); background: var(--sw-surface-raised); }
.tip-library-controls label .sw-icon { width: 16px; }
.tip-library-controls input { width: 180px; border: 0; outline: 0; color: var(--sw-text); background: transparent; }
.tip-library-controls select { min-height: 38px; padding: 0 10px; border: 1px solid var(--sw-line-strong); border-radius: var(--sw-radius-pill); color: var(--sw-text); background: var(--sw-surface-raised); }
.tip-card > img { width: 100%; height: 118px; border-radius: 14px; object-fit: cover; }
.tip-card > div:not(.tip-tags) > span { color: var(--sw-teal-700); font-size: 8px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.tip-card > div:not(.tip-tags) > small { display: block; margin-top: 7px; color: var(--sw-text-muted); font-size: 9px; }
.tip-detail > img { width: 100%; max-height: 230px; grid-column: 1 / -1; border-radius: 16px; object-fit: cover; }
.tip-reading-meta { display: flex; grid-column: 1 / -1; gap: 8px; color: var(--sw-teal-700); font-size: 10px; font-weight: 700; text-transform: capitalize; }

.catch-form-step { display: grid; grid-column: 1 / -1; grid-template-columns: 28px 1fr; gap: 10px; padding: 12px; border: 1px solid var(--sw-line); border-radius: 16px; background: var(--sw-surface-raised); }
.catch-form-step > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: white; background: var(--sw-teal-700); font-weight: 800; }
.catch-form-step > div { display: grid; gap: 8px; min-width: 0; }
.catch-choice-row, .catch-location-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.catch-choice-row label, .catch-location-actions button { min-height: 38px; padding: 0 12px; border: 1px solid var(--sw-line-strong); border-radius: var(--sw-radius-pill); color: var(--sw-navy-900); background: white; font-weight: 700; }
.catch-choice-row label { display: flex; align-items: center; gap: 6px; }
.catch-location-privacy, .catch-location-status { margin: 0; color: var(--sw-text-muted); font-size: 10px; line-height: 1.45; }
.catch-location-status.is-selected { color: var(--sw-teal-700); font-weight: 700; }
.catch-location-map { width: 100%; height: 260px; overflow: hidden; border: 1px solid var(--sw-line-strong); border-radius: 14px; background: #073761; }
.catch-location-marker { display: block; width: 22px; height: 22px; border: 4px solid white; border-radius: 50%; background: var(--sw-teal-600); box-shadow: 0 4px 16px rgb(0 20 40 / 45%); }

html[data-theme="dark"] :is(.bait-site-facts b, .bait-selected .bait-why strong, .comment-preview strong, .catch-choice-row label, .catch-location-actions button) { color: var(--sw-text); }
@media (min-width: 760px) {
  .condition-card em { font-size: 9px; }
  .dive-map-section { padding: 20px; }
  .dive-map-canvas, .dive-map-canvas .marine-map { min-height: 460px; }
}
@media (max-width: 620px) {
  .forecast-health { align-items: start; margin-inline: 14px; }
  .forecast-health small { font-size: 9px; }
  .marine-safety { grid-template-columns: 1fr; margin-inline: 14px; }
  .marine-safety > article { grid-template-columns: 21px minmax(0, 1fr); padding: 12px; }
  .marine-safety strong { font-size: 13px; }
  .marine-safety p, .marine-safety span { font-size: 9px; }
  .bait-site-facts { grid-template-columns: 1fr; }
  .tip-library-controls { justify-content: stretch; }
  .tip-library-controls label, .tip-library-controls select { width: 100%; }
  .tip-library-controls input { width: 100%; }
  .comment-preview span { grid-template-columns: auto 1fr; }
  .comment-preview small { display: none; }
}
.reference-browser {
  grid-column: 1 / -1;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #dce7ef);
  border-radius: 24px;
  padding: clamp(18px, 2.2vw, 30px);
  box-shadow: var(--shadow-soft, 0 12px 36px rgba(7, 43, 76, .08));
}
.reference-browser > header,
.regulation-reference-card > header,
.regulation-reference-card > footer,
.reference-context-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.reference-browser > header p { color: var(--teal, #058b92); font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.reference-browser > header > span,
.regulation-reference-card > header > span { border-radius: 999px; background: #fff3cd; color: #725a00; padding: 7px 11px; font-size: .76rem; font-weight: 800; text-transform: capitalize; }
.regulation-region-selector { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0; padding: 5px; border: 1px solid var(--line, #dce7ef); border-radius: 16px; }
.regulation-region-selector button { min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: inherit; font-weight: 750; cursor: pointer; }
.regulation-region-selector button.is-active { color: #fff; background: linear-gradient(135deg, #063d70, #058b92); }
.reference-context-line { background: #f1fafb; border-radius: 14px; padding: 12px; margin-bottom: 14px; }
.reference-context-line button { border: 1px solid #0b7783; border-radius: 999px; background: #fff; color: #075c6b; padding: 8px 12px; font-weight: 700; cursor: pointer; }
.regulation-reference-list { display: grid; gap: 12px; }
.regulation-reference-card { border: 1px solid var(--line, #dce7ef); border-radius: 16px; padding: 16px; }
.regulation-reference-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.regulation-reference-card dl > div { background: #f7fafc; border-radius: 12px; padding: 12px; }
.regulation-reference-card dt { color: #60758b; font-size: .75rem; }
.regulation-reference-card dd { margin: 4px 0 0; font-weight: 700; }
.regulation-reference-card footer { border-top: 1px solid var(--line, #dce7ef); margin-top: 14px; padding-top: 12px; font-size: .82rem; }
.regulation-reference-card footer a { color: #057e8b; font-weight: 800; }
.reference-gate,.reference-first-use,.reference-limitations,.settings-legal-note { color: #526b80; line-height: 1.55; }
.reference-first-use { background: #fff7df; border: 1px solid #ead08a; border-radius: 14px; padding: 14px; }
.regulation-preferences { margin-bottom: 18px; }
@media (max-width: 640px) {
  .regulation-region-selector { grid-template-columns: 1fr; }
  .regulation-reference-card dl { grid-template-columns: 1fr; }
}
@media (min-width: 960px) {
  .resolver-card { grid-column: 1; grid-row: 2; }
  .regulation-result { grid-column: 2; grid-row: 1 / 3; }
  .reference-browser { grid-column: 1 / -1; grid-row: 3; }
  .regulation-caution { grid-column: 1 / -1; grid-row: 4; }
}

/* Progressive, owner-private onboarding */
.auth-name-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.auth-field > span { display: flex; justify-content: space-between; gap: 10px; }
.auth-field > span small { color: var(--sw-text-muted); font-size: .86em; font-weight: 600; }

.onboarding-shell {
  min-height: 100vh;
  padding: max(18px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 8% 5%, rgb(27 190 193 / 15%), transparent 27rem),
    radial-gradient(circle at 92% 95%, rgb(13 65 111 / 12%), transparent 32rem),
    var(--sw-canvas);
  color: var(--sw-text);
}
.onboarding-topbar { display: flex; width: min(100%, 980px); align-items: center; justify-content: space-between; margin: 0 auto; }
.onboarding-topbar .auth-brand { margin: 0; color: var(--sw-text); text-decoration: none; }
.onboarding-topbar > span { color: var(--sw-text-muted); font-size: .82rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.onboarding-progress { width: min(100%, 980px); height: 5px; overflow: hidden; margin: 16px auto 0; border-radius: 999px; background: var(--sw-line); }
.onboarding-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sw-teal-600), var(--sw-aqua-400)); transition: width 260ms ease; }
.onboarding-panel { width: min(100%, 860px); margin: clamp(18px, 4vh, 42px) auto 0; border: 1px solid var(--sw-line); border-radius: 30px; background: color-mix(in srgb, var(--sw-surface) 96%, transparent); box-shadow: 0 24px 70px rgb(1 38 65 / 12%); }
.onboarding-body { padding: clamp(24px, 4.5vw, 54px); }
.onboarding-copy { max-width: 660px; margin-bottom: 28px; }
.onboarding-copy p { margin: 0 0 9px; color: var(--sw-teal-700); font-size: .76rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.onboarding-copy h1 { margin: 0; color: var(--sw-navy-900); font-size: clamp(2rem, 5vw, 3.35rem); line-height: 1; letter-spacing: -.055em; text-wrap: balance; }
.onboarding-copy span { display: block; max-width: 620px; margin-top: 13px; color: var(--sw-text-soft); font-size: clamp(.95rem, 2vw, 1.08rem); line-height: 1.55; }
.onboarding-body h2 { margin: 28px 0 12px; color: var(--sw-navy-900); font-size: 1rem; }
.onboarding-choice-grid, .onboarding-target-grid, .onboarding-theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.onboarding-target-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.onboarding-theme-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.onboarding-choice { position: relative; display: grid; min-height: 94px; grid-template-columns: auto 1fr; align-content: center; align-items: center; gap: 5px 10px; padding: 16px; border: 1px solid var(--sw-line-strong); border-radius: 18px; background: var(--sw-surface-raised); cursor: pointer; transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.onboarding-choice:hover { transform: translateY(-1px); border-color: var(--sw-teal-500); }
.onboarding-choice:focus-within { outline: 3px solid rgb(10 150 151 / 20%); outline-offset: 2px; }
.onboarding-choice.is-selected { border-color: var(--sw-teal-600); background: color-mix(in srgb, var(--sw-teal-100) 72%, var(--sw-surface)); box-shadow: inset 0 0 0 1px var(--sw-teal-600); }
.onboarding-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.onboarding-choice > span { display: grid; width: 38px; height: 38px; grid-row: 1 / span 2; place-items: center; border-radius: 12px; color: var(--sw-teal-700); background: color-mix(in srgb, var(--sw-teal-100) 76%, var(--sw-surface)); }
.onboarding-choice .sw-icon { width: 21px; height: 21px; }
.onboarding-choice strong { color: var(--sw-navy-900); font-size: .95rem; line-height: 1.2; }
.onboarding-choice small { grid-column: 2; color: var(--sw-text-muted); font-size: .76rem; line-height: 1.35; }
.onboarding-target-grid .onboarding-choice { min-height: 76px; padding: 12px; }
.onboarding-target-grid .onboarding-choice > span { width: 32px; height: 32px; }
.onboarding-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.onboarding-field-grid.thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.onboarding-field { display: grid; gap: 7px; margin: 12px 0; }
.onboarding-field > span { display: flex; justify-content: space-between; color: var(--sw-navy-900); font-size: .82rem; font-weight: 760; }
.onboarding-field > span small { color: var(--sw-text-muted); font-weight: 600; }
.onboarding-field :is(input, select) { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--sw-line-strong); border-radius: 14px; outline: 0; background: var(--sw-surface-raised); color: var(--sw-text); font: inherit; }
.onboarding-field :is(input, select):focus { border-color: var(--sw-teal-600); box-shadow: 0 0 0 3px rgb(10 150 151 / 13%); }
.onboarding-avatar-row { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px; margin-bottom: 18px; }
.onboarding-avatar { display: grid; width: 72px; height: 72px; place-items: center; overflow: hidden; border: 3px solid white; border-radius: 50%; background: linear-gradient(145deg, var(--sw-navy-800), var(--sw-teal-500)); box-shadow: 0 0 0 1px var(--sw-line); color: white; font-size: 1.15rem; font-weight: 850; }
.onboarding-avatar img { width: 100%; height: 100%; object-fit: cover; }
.onboarding-photo { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--sw-line-strong); border-radius: 999px; color: var(--sw-navy-900); background: var(--sw-surface-raised); font-size: .82rem; font-weight: 750; cursor: pointer; }
.onboarding-photo input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.onboarding-avatar-row > small, .onboarding-note { color: var(--sw-text-muted); font-size: .78rem; line-height: 1.5; }
.onboarding-subregion, .onboarding-boat-fields, .onboarding-performance-fields { margin-top: 18px; padding: 18px; border: 1px solid var(--sw-line); border-radius: 20px; background: color-mix(in srgb, var(--sw-canvas) 65%, var(--sw-surface)); }
.onboarding-unknown { display: flex; min-height: 48px; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--sw-line-strong); border-radius: 14px; color: var(--sw-navy-900); background: var(--sw-surface-raised); font-weight: 730; }
.onboarding-unknown input { width: 20px; height: 20px; accent-color: var(--sw-teal-600); }
.onboarding-reserve { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; padding: 0; border: 0; }
.onboarding-reserve legend { grid-column: 1 / -1; margin-bottom: 8px; color: var(--sw-navy-900); font-size: .82rem; font-weight: 760; }
.onboarding-reserve .onboarding-choice { min-height: 64px; padding: 9px; }
.onboarding-reserve .onboarding-choice > span { width: 30px; height: 30px; }
.onboarding-location-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 18px; border: 1px solid var(--sw-line-strong); border-radius: 18px; background: var(--sw-surface-raised); }
.onboarding-location-card > span { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; color: var(--sw-teal-700); background: var(--sw-teal-100); }
.onboarding-location-card div { display: grid; gap: 3px; }
.onboarding-location-card strong { color: var(--sw-navy-900); }
.onboarding-location-card small { color: var(--sw-text-muted); }
.onboarding-location-card button, .onboarding-continue, .onboarding-skip, .onboarding-back { min-height: 46px; padding: 0 17px; border: 0; border-radius: 999px; font: inherit; font-size: .86rem; font-weight: 780; cursor: pointer; }
.onboarding-location-card button { color: var(--sw-teal-800); background: var(--sw-teal-100); }
.onboarding-area-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; margin-top: 10px; }
.onboarding-area-search .onboarding-field { margin: 0; }
.onboarding-area-search button { display: inline-flex; min-height: 50px; align-items: center; gap: 7px; padding: 0 17px; border: 1px solid var(--sw-line-strong); border-radius: 14px; color: var(--sw-navy-900); background: var(--sw-surface-raised); font: inherit; font-size: .84rem; font-weight: 760; cursor: pointer; }
.onboarding-area-search button .sw-icon { width: 18px; }
.onboarding-notifications { display: grid; gap: 10px; }
.onboarding-notifications .onboarding-choice { min-height: 76px; }
.onboarding-welcome-art { position: relative; display: grid; width: 170px; height: 170px; place-items: center; margin: 12px auto 28px; border-radius: 50%; background: radial-gradient(circle, var(--sw-teal-500), var(--sw-navy-800) 68%, transparent 69%); color: white; box-shadow: 0 22px 55px rgb(7 103 119 / 24%); }
.onboarding-welcome-art > span { display: grid; width: 68px; height: 68px; place-items: center; border: 1px solid rgb(255 255 255 / 42%); border-radius: 22px; background: rgb(255 255 255 / 12%); }
.onboarding-welcome-art > span .sw-icon { width: 38px; height: 38px; }
.onboarding-welcome-art i { position: absolute; width: 100%; height: 100%; border: 1px solid rgb(9 153 158 / 18%); border-radius: 50%; animation: onboarding-pulse 3s ease-out infinite; }
.onboarding-welcome-art i:nth-of-type(2) { animation-delay: 1s; }.onboarding-welcome-art i:nth-of-type(3) { animation-delay: 2s; }
@keyframes onboarding-pulse { from { opacity: .7; transform: scale(.8); } to { opacity: 0; transform: scale(1.48); } }
.onboarding-benefits { display: grid; max-width: 560px; gap: 10px; margin: 0 auto; padding: 0; list-style: none; }
.onboarding-benefits li { display: flex; align-items: center; gap: 10px; color: var(--sw-text-soft); font-weight: 690; }
.onboarding-benefits .sw-icon { width: 20px; color: var(--sw-teal-700); }
.onboarding-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.onboarding-summary article { display: grid; grid-template-columns: auto 1fr; gap: 3px 11px; padding: 18px; border: 1px solid var(--sw-line); border-radius: 18px; background: var(--sw-surface-raised); }
.onboarding-summary .sw-icon { width: 24px; height: 24px; grid-row: 1 / span 2; color: var(--sw-teal-700); }
.onboarding-summary small { color: var(--sw-text-muted); font-size: .72rem; }
.onboarding-summary strong { color: var(--sw-navy-900); }
.onboarding-summary em { grid-column: 2; color: var(--sw-text-muted); font-size: .72rem; font-style: normal; }
.settings-setup-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.onboarding-ready-note { padding: 14px; border-radius: 14px; color: var(--sw-text-soft); background: color-mix(in srgb, var(--sw-teal-100) 54%, var(--sw-surface)); font-size: .8rem; line-height: 1.5; }
.onboarding-message { min-height: 22px; margin: 0; padding: 0 clamp(24px, 4.5vw, 54px); color: var(--sw-teal-700); font-size: .8rem; font-weight: 700; }
.onboarding-message.is-error { color: var(--sw-danger); }
.onboarding-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 18px clamp(20px, 4vw, 40px); border-top: 1px solid var(--sw-line); }
.onboarding-continue { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: white; background: linear-gradient(120deg, var(--sw-navy-800), var(--sw-teal-600)); box-shadow: 0 10px 25px rgb(4 90 108 / 18%); }
.onboarding-continue .sw-icon { width: 18px; }
.onboarding-skip, .onboarding-back { color: var(--sw-text-soft); background: transparent; }
.onboarding-back { border: 1px solid var(--sw-line-strong); }
.onboarding-actions button:disabled, .onboarding-location-card button:disabled { cursor: wait; opacity: .58; }
.setup-settings dl { display: grid; gap: 10px; margin: 12px 0 16px; }
.setup-settings dl > div { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 9px; border-bottom: 1px solid var(--sw-line); }
.setup-settings dt { color: var(--sw-text-muted); }.setup-settings dd { margin: 0; color: var(--sw-navy-900); font-weight: 740; }
.settings-setup-link { display: flex; min-height: 48px; flex: 1 1 180px; align-items: center; justify-content: space-between; padding: 0 14px; border: 0; border-radius: 14px; color: white; background: var(--sw-navy-800); font: inherit; font-weight: 760; text-align: left; text-decoration: none; cursor: pointer; }

html[data-theme="dark"] .onboarding-panel { background: rgb(6 28 45 / 96%); }
html[data-theme="dark"] :is(.onboarding-copy h1, .onboarding-choice strong, .onboarding-field > span, .onboarding-body h2, .onboarding-location-card strong, .onboarding-summary strong, .onboarding-reserve legend, .onboarding-photo, .onboarding-unknown, .setup-settings dd) { color: var(--sw-text); }
html[data-theme="outside"] .onboarding-panel { box-shadow: 0 12px 32px rgb(1 34 58 / 11%); }

@media (max-width: 720px) {
  .onboarding-shell { padding-inline: 10px; }
  .onboarding-panel { margin-top: 14px; border-radius: 23px; }
  .onboarding-body { padding: 24px 17px; }
  .onboarding-copy { margin-bottom: 22px; }
  .onboarding-copy h1 { font-size: clamp(1.85rem, 10vw, 2.65rem); }
  .onboarding-choice-grid, .onboarding-target-grid, .onboarding-field-grid, .onboarding-field-grid.thirds { grid-template-columns: 1fr; }
  .onboarding-target-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .onboarding-theme-grid { grid-template-columns: 1fr; }
  .onboarding-avatar-row { grid-template-columns: auto 1fr; }
  .onboarding-avatar-row > small { grid-column: 2; }
  .onboarding-location-card { grid-template-columns: auto 1fr; }
  .onboarding-location-card button { grid-column: 1 / -1; width: 100%; }
  .onboarding-area-search { grid-template-columns: 1fr; }
  .onboarding-area-search button { justify-content: center; }
  .onboarding-reserve { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .onboarding-summary { grid-template-columns: 1fr; }
  .onboarding-actions { position: sticky; z-index: 3; bottom: 0; flex-wrap: wrap; padding: 12px; background: color-mix(in srgb, var(--sw-surface) 94%, transparent); backdrop-filter: blur(16px); }
  .onboarding-continue { min-width: 48%; justify-content: center; }
  .onboarding-message { padding-inline: 17px; }
}

@media (max-width: 390px) {
  .auth-name-grid { grid-template-columns: 1fr; }
  .onboarding-target-grid { grid-template-columns: 1fr; }
  .onboarding-topbar .brand-logo { width: 34px; height: 34px; }
  .onboarding-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .onboarding-continue { grid-column: 1 / -1; grid-row: 1; margin: 0; }
}

.map-directory-link,.explore-reef-link{display:inline-flex;align-items:center;gap:.45rem;border:1px solid var(--sw-line);border-radius:999px;padding:.72rem 1rem;color:var(--sw-navy-900);background:var(--sw-surface);font-weight:750;text-decoration:none;white-space:nowrap}
.reef-directory-page{padding:32px clamp(20px,4vw,64px) 80px;background:var(--sw-canvas);min-height:100vh;color:var(--sw-text)}
.reef-directory-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:22px}
.reef-directory-heading p,.reef-directory-map .inline-title p{color:var(--sw-teal-700);font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.reef-directory-heading h1{font-size:clamp(2rem,4vw,4rem);margin:.2rem 0}.reef-directory-heading a{color:var(--sw-navy-900);font-weight:750}
.reef-directory-search{display:flex;gap:12px;margin-bottom:24px}.reef-directory-search label{display:flex;align-items:center;gap:10px;flex:1;background:var(--sw-surface);border:1px solid var(--sw-line);border-radius:18px;padding:0 16px}.reef-directory-search input{border:0;background:transparent;width:100%;padding:15px 0;font:inherit;color:inherit;outline:0}.reef-directory-search button{border:0;border-radius:18px;background:var(--sw-navy-900);color:white;padding:0 22px;font-weight:800}
.reef-directory-map,.reef-directory-results{background:var(--sw-surface);border:1px solid var(--sw-line);border-radius:28px;padding:22px;box-shadow:var(--sw-shadow-card);margin-bottom:24px}.reef-directory-map-canvas{position:relative;height:min(54vh,560px);border-radius:22px;overflow:hidden;isolation:isolate}.reef-directory-map-canvas .marine-map,.reef-directory-map-canvas [data-live-map]{height:100%;min-height:100%}
.reef-directory-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:14px}.reef-directory-card{border:1px solid var(--sw-line);border-radius:20px;padding:18px;background:color-mix(in srgb,var(--sw-surface) 94%,var(--sw-teal-700) 6%);display:grid;gap:14px}.reef-directory-card h2{font-size:1.15rem;margin:.25rem 0}.reef-directory-card p{color:var(--sw-text-soft);line-height:1.45}.reef-directory-card dl{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0}.reef-directory-card dt{font-size:.72rem;color:var(--sw-text-soft)}.reef-directory-card dd{margin:2px 0 0;font-weight:750}.reef-directory-card a{display:inline-flex;align-items:center;gap:7px;color:var(--sw-teal-700);font-weight:800}.reef-directory-disclaimer{max-width:900px;color:var(--sw-text-soft);line-height:1.55}
@media(max-width:720px){.reef-directory-page{padding:16px 14px 96px}.reef-directory-heading{align-items:start;flex-direction:column}.reef-directory-search{flex-direction:column}.reef-directory-search button{padding:14px}.reef-directory-map,.reef-directory-results{padding:14px;border-radius:20px}.reef-directory-map-canvas{height:50vh}.map-directory-link{width:100%;justify-content:center}.reef-directory-card dl{grid-template-columns:1fr 1fr}}
.reef-explorer-heading a{display:inline-flex;align-items:center;gap:8px}.reef-explorer-search{align-items:stretch}.reef-explorer-search>label{flex:1}.reef-explorer-search>[data-action="reef-near-me"]{background:linear-gradient(135deg,var(--sw-navy-900),var(--sw-teal-700));display:flex;align-items:center;justify-content:center;gap:7px}.reef-filter-panel{position:relative}.reef-filter-panel summary{list-style:none;height:100%;display:flex;align-items:center;padding:0 18px;border:1px solid var(--sw-line);border-radius:18px;background:var(--sw-surface);font-weight:800;cursor:pointer}.reef-filter-panel summary::-webkit-details-marker{display:none}.reef-filter-panel>div{position:absolute;z-index:40;right:0;top:calc(100% + 8px);width:min(680px,90vw);padding:18px;display:grid;grid-template-columns:repeat(3,1fr);gap:12px;background:var(--sw-surface);border:1px solid var(--sw-line);border-radius:22px;box-shadow:var(--sw-shadow-card)}.reef-filter-panel label{display:grid;gap:5px;font-size:.78rem;font-weight:750}.reef-filter-panel input,.reef-filter-panel select{padding:10px;border:1px solid var(--sw-line);border-radius:12px;background:var(--sw-surface);color:inherit}.reef-filter-panel .reef-filter-check{display:flex;align-items:center;gap:8px}.reef-filter-check input{width:auto}.reef-filter-panel button{min-height:44px}
.reef-explorer-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(310px,.7fr);gap:24px;align-items:start}.reef-explorer-detail{background:var(--sw-surface);border:1px solid var(--sw-line);border-radius:28px;padding:22px;box-shadow:var(--sw-shadow-card);position:sticky;top:110px}.reef-explorer-page .reef-directory-map-canvas{height:min(58vh,620px)}.reef-detail-heading{display:flex;justify-content:space-between;gap:15px}.reef-detail-heading small{color:var(--sw-teal-700);font-weight:850;text-transform:uppercase;letter-spacing:.07em}.reef-detail-heading h2{margin:.35rem 0;font-size:clamp(1.35rem,2vw,2rem)}.reef-detail-heading p{color:var(--sw-text-soft)}.reef-detail-heading>span{width:52px;height:52px;border-radius:18px;background:color-mix(in srgb,var(--sw-teal-700) 12%,transparent);display:grid;place-items:center;color:var(--sw-teal-700)}.reef-detail-facts{display:grid;gap:10px;margin:20px 0}.reef-detail-facts div{border-top:1px solid var(--sw-line);padding-top:10px}.reef-detail-facts dt{font-size:.75rem;color:var(--sw-text-soft)}.reef-detail-facts dd{margin:4px 0 0;font-weight:750;line-height:1.4}.reef-primary-actions,.reef-secondary-actions{display:grid;gap:10px}.reef-primary-actions button,.reef-secondary-actions :is(button,a){border-radius:16px;padding:14px 12px;font:inherit;font-weight:850;display:flex;justify-content:center;align-items:center;gap:7px}.reef-primary-actions button{border:0;color:white;background:linear-gradient(135deg,var(--sw-navy-900),var(--sw-teal-700))}.reef-secondary-actions{grid-template-columns:1fr 1fr;margin-top:10px}.reef-secondary-actions :is(button,a){background:var(--sw-surface);border:1px solid var(--sw-navy-900);color:var(--sw-navy-900);text-decoration:none;text-align:center}
.reef-species-panel{margin-top:18px;padding-top:16px;border-top:1px solid var(--sw-line)}.reef-species-heading{display:flex;justify-content:space-between;gap:10px}.reef-species-heading small{color:var(--sw-teal-700);font-weight:750}.reef-species-heading h3{margin:.2rem 0}.reef-species-heading select{max-width:120px;border:1px solid var(--sw-line);border-radius:12px;padding:8px;background:var(--sw-surface);color:inherit}.reef-species-panel ol{padding:0;margin:12px 0;list-style:none}.reef-species-panel li+li{border-top:1px solid var(--sw-line)}.reef-species-panel li a{display:flex;justify-content:space-between;align-items:center;padding:10px 0;color:inherit}.reef-species-panel li span{display:grid;gap:2px}.reef-species-panel li small{color:var(--sw-text-soft)}.reef-species-panel li strong{font-size:1.3rem;color:var(--sw-teal-700)}.reef-species-panel>p{font-size:.78rem;color:var(--sw-text-soft);line-height:1.45}
.reef-explorer-page .reef-directory-grid{grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:12px}.reef-explorer-page .reef-directory-card{border:1px solid var(--sw-line);border-radius:18px;padding:15px;background:color-mix(in srgb,var(--sw-surface) 96%,var(--sw-teal-700) 4%);display:grid;grid-template-columns:38px 1fr auto;align-items:center;text-align:left;color:inherit;gap:10px;cursor:pointer}.reef-directory-card.is-selected{border-color:var(--sw-teal-700);box-shadow:0 0 0 2px color-mix(in srgb,var(--sw-teal-700) 18%,transparent)}.reef-card-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:13px;background:color-mix(in srgb,var(--sw-teal-700) 12%,transparent);color:var(--sw-teal-700)}.reef-card-copy{display:grid;gap:3px;min-width:0}.reef-card-copy small,.reef-card-copy span{color:var(--sw-text-soft);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reef-card-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reef-explorer-empty{padding:30px;text-align:center;color:var(--sw-text-soft)}
.reef-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:20px}.reef-pagination button{min-width:100px;padding:11px 16px;border:1px solid var(--sw-line);border-radius:14px;background:var(--sw-surface);color:var(--sw-navy-900);font:inherit;font-weight:800}.reef-pagination button:not(:disabled){cursor:pointer}.reef-pagination button:disabled{opacity:.42}.reef-pagination span{color:var(--sw-text-soft);font-weight:750}
@media(max-width:980px){.reef-explorer-layout{grid-template-columns:1fr}.reef-explorer-detail{position:static}.reef-filter-panel>div{right:auto;left:0}}
@media(max-width:720px){.reef-explorer-search{display:grid;grid-template-columns:1fr 1fr}.reef-explorer-search>label{grid-column:1/-1}.reef-explorer-search>button{padding:13px}.reef-filter-panel summary{justify-content:center;padding:13px}.reef-filter-panel>div{position:fixed;left:12px;right:12px;top:auto;bottom:90px;width:auto;grid-template-columns:1fr 1fr;max-height:68vh;overflow:auto}.reef-explorer-detail{padding:14px;border-radius:20px}.reef-explorer-page .reef-directory-map-canvas{height:52vh}.reef-secondary-actions{grid-template-columns:1fr}.reef-explorer-page .reef-directory-grid{grid-template-columns:1fr}}

.species-page-qualitative .species-hero-copy>strong{font-size:clamp(2rem,5vw,4.8rem)}
.species-qualitative-hero img{object-fit:contain;object-position:right center;padding:1.5rem;box-sizing:border-box}
.species-page-qualitative .species-body{display:grid;grid-template-columns:minmax(0,1fr);gap:9px}
.qualitative-species-notice{margin:0;padding:1rem 1.15rem;border:1px solid #8bd6cb;border-radius:16px;background:#ebfaf7;color:#084f5f;line-height:1.5}
.qualitative-habitat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.qualitative-habitat-grid article{padding:1rem;border:1px solid var(--sw-line);border-radius:16px;background:var(--sw-surface)}
.qualitative-habitat-grid p{line-height:1.55;color:var(--sw-text-soft)}
.dive-qualitative-target{display:grid;grid-template-columns:110px 1fr auto;align-items:center;gap:1rem;margin:0 0 1rem;padding:1rem 1.2rem;border:1px solid #8bd6cb;border-radius:20px;background:#effbf9}
.dive-qualitative-target img{width:110px;height:74px;object-fit:contain}
.dive-qualitative-target p,.dive-qualitative-target h2,.dive-qualitative-target span,.dive-qualitative-target small{display:block;margin:.15rem 0}
.dive-qualitative-target small{max-width:780px;line-height:1.45;color:var(--sw-text-soft)}
.dive-qualitative-target a,.explore-reef-directory-link{display:inline-flex;align-items:center;gap:.45rem;border:1px solid var(--sw-navy-900);border-radius:999px;padding:.7rem 1rem;color:var(--sw-navy-900);text-decoration:none;font-weight:700}
.explore-reef-directory-link{margin:.75rem 0}
@media(max-width:700px){.qualitative-habitat-grid{grid-template-columns:1fr}.dive-qualitative-target{grid-template-columns:72px 1fr}.dive-qualitative-target img{width:72px;height:58px}.dive-qualitative-target a{grid-column:1/-1;justify-content:center}}

/* Dive v2 — target habitat and water conditions remain separate signals. */
.dive-mode { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; }
.dive-mode button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.dive-mode button .sw-icon { width: 18px; }
.dive-controls { display: grid; grid-template-columns: minmax(190px, 1.2fr) minmax(210px, 1.4fr) minmax(145px, .8fr) auto auto; align-items: end; gap: 10px; margin-bottom: 12px; }
.dive-controls > label, .dive-more-filters label { display: grid; min-width: 0; gap: 5px; color: var(--sw-text-soft); font-size: 10px; font-weight: 720; }
.dive-controls select, .dive-controls input, .dive-more-filters select, .dive-more-filters input { width: 100%; min-height: 44px; min-width: 0; padding: 0 12px; border: 1px solid var(--sw-line); border-radius: 13px; color: var(--sw-navy-900); background: var(--sw-surface-raised); font: inherit; font-size: 12px; }
.dive-controls > button { display: flex; min-width: 0; min-height: 44px; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--sw-line); border-radius: 13px; color: var(--sw-navy-900); background: var(--sw-surface-raised); text-align: left; }
.dive-controls > button .sw-icon { width: 21px; min-width: 21px; color: var(--sw-teal-700); }
.dive-controls > button span, .dive-controls > button small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dive-controls > button span { font-size: 11px; font-weight: 750; }
.dive-controls > button small { margin-bottom: 2px; color: var(--sw-text-soft); font-size: 8px; font-weight: 600; }
.dive-depth-input { position: relative; }
.dive-depth-input input { padding-right: 38px; }
.dive-depth-input b { position: absolute; top: 50%; right: 12px; color: var(--sw-text-soft); font-size: 10px; transform: translateY(-50%); }
.dive-view-toggle { display: grid; min-width: 120px; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--sw-line); border-radius: 13px; background: var(--sw-surface-raised); }
.dive-view-toggle button { min-height: 36px; border: 0; border-radius: 10px; color: var(--sw-text-soft); background: transparent; font-size: 10px; font-weight: 750; }
.dive-view-toggle button.is-active { color: white; background: var(--sw-navy-900); }
.dive-more-filters { position: relative; }
.dive-more-filters > summary { display: flex; min-height: 44px; align-items: center; gap: 6px; padding: 0 12px; border: 1px solid var(--sw-line); border-radius: 13px; color: var(--sw-navy-900); background: var(--sw-surface-raised); cursor: pointer; font-size: 10px; font-weight: 750; list-style: none; }
.dive-more-filters > summary::-webkit-details-marker { display: none; }
.dive-more-filters > summary .sw-icon { width: 17px; }
.dive-more-filters > div { position: absolute; z-index: 20; top: calc(100% + 7px); right: 0; display: grid; width: min(340px, calc(100vw - 30px)); gap: 12px; padding: 15px; border: 1px solid var(--sw-line); border-radius: 17px; background: var(--sw-surface-raised); box-shadow: 0 18px 45px rgb(2 30 54 / 18%); }
.dive-more-filters .is-hidden { display: none; }
.dive-advisory { display: flex; align-items: flex-start; gap: 7px; margin: 8px 0 15px; padding: 9px 11px; border: 1px solid #abdcd6; border-radius: 13px; color: var(--sw-text-soft); background: #f2fbfa; font-size: 9px; line-height: 1.4; }
.dive-advisory .sw-icon { width: 17px; min-width: 17px; color: var(--sw-teal-700); }
.dive-results { margin-top: 18px; }
.dive-results > .inline-title > span { color: var(--sw-text-soft); font-size: 10px; }
.dive-result-list { display: grid; gap: 12px; margin-top: 11px; }
.dive-result-card { overflow: hidden; border: 1px solid var(--sw-line); border-radius: 20px; background: var(--sw-surface-raised); box-shadow: var(--sw-shadow-card); }
.dive-result-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 17px 13px; border-bottom: 1px solid var(--sw-line); }
.dive-result-card header p, .dive-result-card header h3 { margin: 0; }
.dive-result-card header p { color: var(--sw-teal-700); font-size: 9px; font-weight: 780; text-transform: uppercase; letter-spacing: .06em; }
.dive-result-card header h3 { margin-top: 3px; font-size: 19px; letter-spacing: -.02em; }
.dive-distance { flex: none; padding: 6px 9px; border-radius: 999px; color: var(--sw-navy-900); background: #eaf7f6; font-size: 9px; font-weight: 750; }
.dive-result-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.dive-metric { min-width: 0; min-height: 105px; padding: 13px; border-right: 1px solid var(--sw-line); }
.dive-metric:last-child { border-right: 0; }
.dive-metric small, .dive-metric strong, .dive-metric span, .dive-metric em { display: block; }
.dive-metric small { min-height: 26px; color: var(--sw-text-soft); font-size: 8px; }
.dive-metric strong { margin-top: 5px; overflow-wrap: anywhere; font-size: 13px; line-height: 1.2; }
.dive-metric span { margin-top: 7px; color: var(--sw-teal-700); font-size: 7px; font-weight: 780; text-transform: uppercase; }
.dive-metric em { margin-top: 4px; color: var(--sw-text-soft); font-size: 7px; font-style: normal; line-height: 1.3; }
.dive-metric[data-status="POOR"] span, .dive-metric[data-status="PROHIBITED"] span, .dive-metric[data-status="CLOSED_SEASON"] span { color: #b4232c; }
.dive-metric[data-status="CAUTION"] span, .dive-metric[data-status="REGULATION_UNRESOLVED"] span, .dive-metric[data-status="DEPTH_UNCERTAIN"] span { color: #9b6600; }
.dive-metric[data-status="INSUFFICIENT_DATA"] span, .dive-metric[data-status="DEPTH_UNAVAILABLE"] span { color: var(--sw-text-soft); }
.dive-why { margin: 0 16px; padding: 11px 0; border-top: 1px solid var(--sw-line); color: var(--sw-text-soft); font-size: 9px; }
.dive-why summary { color: var(--sw-navy-900); cursor: pointer; font-weight: 760; }
.dive-why ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.55; }
.dive-result-concerns { margin-top: 8px; color: #8a5a00; }
.dive-result-card > footer { display: flex; justify-content: flex-end; gap: 7px; padding: 11px 16px 15px; }
.dive-result-card > footer button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 5px; padding: 0 11px; border: 1px solid var(--sw-line); border-radius: 999px; color: var(--sw-navy-900); background: transparent; font-size: 9px; font-weight: 750; }
.dive-result-card > footer button .sw-icon { width: 15px; }
.dive-result-card > footer button.primary { border-color: transparent; color: white; background: linear-gradient(100deg, var(--sw-navy-900), var(--sw-teal-700)); }
.dive-empty { display: grid; min-height: 250px; place-items: center; align-content: center; gap: 8px; padding: 30px; border: 1px dashed var(--sw-line); border-radius: 20px; text-align: center; }
.dive-empty > .sw-icon { width: 42px; color: var(--sw-teal-700); }
.dive-empty p, .dive-empty span { margin: 0; }
.dive-empty p { font-size: 17px; font-weight: 780; }
.dive-empty span { color: var(--sw-text-soft); font-size: 10px; }
.dive-empty button { min-height: 40px; margin-top: 7px; padding: 0 15px; border: 0; border-radius: 999px; color: white; background: var(--sw-navy-900); font-size: 10px; font-weight: 750; }

@media (max-width: 1100px) {
  .dive-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dive-view-toggle, .dive-more-filters { align-self: end; }
  .dive-result-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dive-metric:nth-child(3) { border-right: 0; }
  .dive-metric:nth-child(-n+3) { border-bottom: 1px solid var(--sw-line); }
}

@media (max-width: 700px) {
  .dive-mode { width: 100%; max-width: none; }
  .dive-mode button { padding: 0 7px; font-size: 9px; }
  .dive-mode button .sw-icon { width: 15px; }
  .dive-controls { grid-template-columns: 1fr 1fr; gap: 7px; }
  .dive-controls > label:first-child, .dive-controls > button { grid-column: 1 / -1; }
  .dive-controls > label, .dive-more-filters label { font-size: 8px; }
  .dive-controls select, .dive-controls input { min-height: 40px; font-size: 10px; }
  .dive-controls > button { min-height: 42px; }
  .dive-more-filters > summary { min-height: 40px; }
  .dive-more-filters > div { position: fixed; z-index: 90; right: 12px; bottom: calc(var(--sw-bottom-nav-height) + 10px); top: auto; left: 12px; width: auto; }
  .dive-advisory { font-size: 8px; }
  .dive-map-section { margin-top: 12px; padding: 9px; }
  .dive-map-canvas, .dive-map-canvas .marine-map { min-height: 390px; }
  .dive-result-card > header { padding: 13px; }
  .dive-result-card header h3 { font-size: 16px; }
  .dive-result-metrics { grid-template-columns: 1fr 1fr; }
  .dive-metric, .dive-metric:nth-child(3) { min-height: 92px; border-right: 1px solid var(--sw-line); border-bottom: 1px solid var(--sw-line); }
  .dive-metric:nth-child(even) { border-right: 0; }
  .dive-metric:nth-last-child(-n+2) { border-bottom: 0; }
  .dive-result-card > footer { display: grid; grid-template-columns: 1fr 1fr; padding: 10px 12px 13px; }
  .dive-result-card > footer button.primary { grid-column: 1 / -1; grid-row: 1; }
}

html[data-theme="dark"] .dive-advisory, html[data-theme="outside"] .dive-advisory { background: var(--sw-surface-raised); }
@media(min-width:960px){.species-page-qualitative .species-body{gap:18px}}

@media (prefers-reduced-motion: reduce) {
  .onboarding-welcome-art i { animation: none; }
}

/* Full SeaWise Tips library and stable article routes */
.tip-card-image { display: block; overflow: hidden; border-radius: 14px; background: var(--sw-sky-100); }
.tip-card-image img { display: block; width: 100%; height: 118px; object-fit: cover; }
.tip-card h2 a { color: inherit; text-decoration: none; }
.tip-card.is-draft { border-style: dashed; border-color: var(--sw-teal-600); background: color-mix(in srgb, var(--sw-surface) 92%, var(--sw-teal-100)); }
.tip-read-link { display: flex; min-height: 38px; align-items: center; justify-content: center; padding: 0 13px; border: 1px solid var(--sw-navy-900); border-radius: var(--sw-radius-pill); background: var(--sw-navy-900); color: white; font-size: 9px; font-weight: 730; text-decoration: none; }
.tip-editor-note { display: block; margin-top: 7px; color: var(--sw-teal-700); font-size: 10px; }

.tip-page { min-height: 100vh; padding: 0 14px calc(var(--sw-bottom-nav-height) + env(safe-area-inset-bottom) + 30px); color: var(--sw-text); background: var(--sw-canvas); }
.tip-page-toolbar { display: flex; max-width: 1160px; align-items: center; justify-content: space-between; gap: 12px; margin: 10px auto 14px; }
.tip-page-toolbar > a, .tip-page-toolbar > div button { display: inline-flex; min-height: 42px; align-items: center; gap: 7px; padding: 0 13px; border: 1px solid var(--sw-line-strong); border-radius: 999px; color: var(--sw-navy-900); background: var(--sw-surface-raised); box-shadow: var(--sw-shadow-card); font: inherit; font-size: .8rem; font-weight: 760; text-decoration: none; cursor: pointer; }
.tip-page-toolbar > a .sw-icon { width: 17px; transform: rotate(180deg); }
.tip-page-toolbar > div { display: flex; gap: 7px; }
.tip-page-toolbar > div button .sw-icon { width: 17px; }
.tip-page-toolbar button.is-saved { border-color: var(--sw-teal-600); color: var(--sw-teal-700); background: var(--sw-teal-100); }
.tip-draft-banner { display: flex; max-width: 1160px; flex-wrap: wrap; gap: 5px 10px; margin: 0 auto 14px; padding: 12px 16px; border: 1px solid #e7c56f; border-radius: 16px; color: #6b5204; background: #fff8de; }
.tip-draft-banner strong { font-size: .84rem; }.tip-draft-banner span { font-size: .78rem; }
.tip-article { max-width: 1160px; margin: 0 auto; }
.tip-article-hero { display: grid; overflow: hidden; border: 1px solid var(--sw-line); border-radius: 26px; background: linear-gradient(135deg, var(--sw-navy-900), var(--sw-teal-700)); box-shadow: var(--sw-shadow-card); color: white; }
.tip-article-hero > div { display: grid; align-content: center; gap: 12px; padding: clamp(24px, 5vw, 58px); }
.tip-article-hero > div > p:first-child { margin: 0; color: var(--sw-aqua-400); font-size: .73rem; font-weight: 820; letter-spacing: .09em; text-transform: uppercase; }
.tip-article-hero h1 { max-width: 760px; margin: 0; font-size: clamp(2rem, 7vw, 4.2rem); line-height: .98; letter-spacing: -.045em; overflow-wrap: anywhere; }
.tip-article-hero > div > p:nth-of-type(2) { max-width: 720px; margin: 0; color: rgb(255 255 255 / 82%); font-size: clamp(.92rem, 2.3vw, 1.13rem); line-height: 1.55; }
.tip-article-hero > div > div { display: flex; flex-wrap: wrap; gap: 7px; }
.tip-article-hero > div > div span { padding: 6px 9px; border: 1px solid rgb(255 255 255 / 28%); border-radius: 999px; background: rgb(255 255 255 / 9%); font-size: .7rem; }
.tip-article-hero figure { min-width: 0; margin: 0; background: #e5f5f3; }
.tip-article-hero figure button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.tip-article-hero figure img { display: block; width: 100%; height: min(58vw, 430px); object-fit: cover; }
.tip-article-hero figcaption { padding: 9px 13px; color: var(--sw-navy-800); background: var(--sw-surface); font-size: .68rem; line-height: 1.4; }
.tip-editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--sw-line); border-radius: 18px; background: var(--sw-surface); box-shadow: var(--sw-shadow-card); }
.tip-editor-actions div { display: grid; flex: 1 1 250px; gap: 3px; }.tip-editor-actions span { color: var(--sw-teal-700); font-size: .68rem; font-weight: 800; text-transform: uppercase; }.tip-editor-actions strong { font-size: .9rem; }
.tip-editor-actions button { min-height: 42px; padding: 0 15px; border: 1px solid var(--sw-navy-900); border-radius: 999px; color: var(--sw-navy-900); background: var(--sw-surface-raised); font: inherit; font-size: .76rem; font-weight: 780; cursor: pointer; }.tip-editor-actions .solid-action { color: white; background: linear-gradient(120deg, var(--sw-navy-900), var(--sw-teal-700)); }.tip-editor-actions button:disabled { cursor: not-allowed; opacity: .45; }
.tip-article-layout { display: grid; gap: 16px; margin-top: 16px; }
.tip-prose, .tip-article-aside > section, .tip-sources, .tip-related { border: 1px solid var(--sw-line); border-radius: 24px; background: var(--sw-surface); box-shadow: var(--sw-shadow-card); }
.tip-prose { min-width: 0; padding: clamp(20px, 4.6vw, 52px); }
.tip-prose :is(h2, h3) { color: var(--sw-navy-900); line-height: 1.15; letter-spacing: -.025em; }
.tip-prose h2 { margin: 2rem 0 .8rem; font-size: clamp(1.35rem, 4.5vw, 2rem); }.tip-prose h3 { margin: 1.5rem 0 .65rem; font-size: 1.15rem; }
.tip-prose > :first-child { margin-top: 0; }
.tip-prose p, .tip-prose li { color: var(--sw-text-soft); font-size: clamp(.94rem, 2.1vw, 1.06rem); line-height: 1.78; }
.tip-prose p { margin: 0 0 1.15rem; }.tip-prose ol, .tip-prose ul { display: grid; gap: .7rem; padding-left: 1.35rem; }
.tip-prose strong { color: var(--sw-text); }.tip-citation { color: var(--sw-teal-700); font-size: .8em; font-weight: 820; text-decoration: none; vertical-align: super; }
.tip-inline-figure { margin: 2rem 0; }.tip-inline-figure button { display: block; width: 100%; overflow: hidden; padding: 0; border: 1px solid var(--sw-line); border-radius: 18px; background: var(--sw-sky-100); cursor: zoom-in; }.tip-inline-figure img { display: block; width: 100%; height: auto; }.tip-inline-figure figcaption { padding: 9px 4px 0; color: var(--sw-text-muted); font-size: .75rem; line-height: 1.5; }
.tip-article-aside { display: grid; align-content: start; gap: 14px; }.tip-article-aside > section { padding: 20px; }.tip-article-aside h2 { margin: 0 0 9px; font-size: 1.08rem; }.tip-article-aside p { margin: 0; color: var(--sw-text-soft); font-size: .82rem; line-height: 1.6; }
.tip-regulations-link { display: inline-flex; min-height: 43px; align-items: center; gap: 7px; margin-top: 14px; padding: 0 13px; border-radius: 999px; color: white; background: var(--sw-navy-900); font-size: .76rem; font-weight: 780; text-decoration: none; }.tip-regulations-link .sw-icon { width: 17px; }
.tip-article-aside dl { display: grid; gap: 10px; margin: 0; }.tip-article-aside dl div { display: grid; gap: 2px; padding-bottom: 9px; border-bottom: 1px solid var(--sw-line); }.tip-article-aside dl div:last-child { padding: 0; border: 0; }.tip-article-aside dt { color: var(--sw-text-muted); font-size: .7rem; }.tip-article-aside dd { margin: 0; font-size: .8rem; font-weight: 730; }
.tip-sources, .tip-related { margin-top: 16px; padding: clamp(20px, 3vw, 32px); }.tip-sources > header p, .tip-related > header p { margin: 0; color: var(--sw-teal-700); font-size: .7rem; font-weight: 820; letter-spacing: .09em; text-transform: uppercase; }.tip-sources > header h2, .tip-related > header h2 { margin: 3px 0 18px; font-size: 1.55rem; }
.tip-source-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; padding: 14px 0; border-top: 1px solid var(--sw-line); scroll-margin-top: 100px; }.tip-source-card > span { display: grid; width: 38px; height: 38px; grid-row: 1 / span 2; place-items: center; border-radius: 12px; color: var(--sw-teal-700); background: var(--sw-teal-100); font-size: .7rem; font-weight: 820; }.tip-source-card h3 { margin: 0; font-size: .9rem; }.tip-source-card p { margin: 3px 0; color: var(--sw-text-soft); font-size: .76rem; }.tip-source-card small { color: var(--sw-text-muted); font-size: .7rem; line-height: 1.45; }.tip-source-card > a { display: inline-flex; grid-column: 2; align-items: center; gap: 5px; color: var(--sw-teal-700); font-size: .73rem; font-weight: 770; }.tip-source-card > a .sw-icon { width: 14px; }
.tip-related > div { display: grid; gap: 10px; }.tip-related a { display: grid; gap: 4px; padding: 15px; border: 1px solid var(--sw-line); border-radius: 16px; color: var(--sw-text); background: var(--sw-surface-raised); text-decoration: none; }.tip-related a span { color: var(--sw-teal-700); font-size: .65rem; font-weight: 800; text-transform: uppercase; }.tip-related a strong { line-height: 1.25; }.tip-related a small { color: var(--sw-text-muted); font-size: .72rem; }
.tip-image-viewer { width: min(96vw, 1100px); max-height: 92vh; padding: 44px 12px 12px; overflow: auto; border: 1px solid rgb(255 255 255 / 35%); border-radius: 20px; background: #06233a; box-shadow: 0 28px 90px rgb(0 0 0 / 45%); }.tip-image-viewer::backdrop { background: rgb(1 18 31 / 78%); backdrop-filter: blur(8px); }.tip-image-viewer > button { position: absolute; top: 8px; right: 8px; display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 1px solid rgb(255 255 255 / 45%); border-radius: 50%; color: white; background: rgb(255 255 255 / 10%); font-size: 1.3rem; cursor: pointer; }.tip-image-viewer img { display: block; max-width: 100%; height: auto; margin: auto; background: white; }

html[data-theme="dark"] :is(.tip-page-toolbar > a, .tip-page-toolbar > div button, .tip-prose h2, .tip-prose h3, .tip-editor-actions button) { color: var(--sw-text); }
html[data-theme="dark"] .tip-draft-banner { color: #ffe298; background: #3a3115; }

@media (min-width: 760px) {
  .tip-page { padding: 26px clamp(24px, 4vw, 58px) 70px; }
  .tip-page > .mobile-header { display: none; }
  .tip-article-hero { grid-template-columns: minmax(0, 1.28fr) minmax(280px, .72fr); }
  .tip-article-hero figure img { height: 100%; min-height: 390px; }
  .tip-article-layout { grid-template-columns: minmax(0, 1fr) minmax(250px, 320px); align-items: start; }
  .tip-article-aside { position: sticky; top: calc(var(--sw-topbar-height) + 20px); }
  .tip-related > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
  .tip-page { padding-inline: 10px; }.tip-page-toolbar > a span, .tip-page-toolbar button span { display: none; }.tip-page-toolbar > a, .tip-page-toolbar > div button { width: 42px; justify-content: center; padding: 0; }
  .tip-article-hero { border-radius: 21px; }.tip-article-hero > div { padding: 23px 19px; }.tip-article-hero h1 { font-size: clamp(1.75rem, 9vw, 2.5rem); }
  .tip-prose, .tip-sources, .tip-related { border-radius: 20px; }.tip-prose { padding: 22px 18px; }.tip-prose ol, .tip-prose ul { padding-left: 1.15rem; }
  .tip-editor-actions button { width: 100%; }.tip-source-card { grid-template-columns: auto minmax(0, 1fr); }
}
/* My Waypoints and offline readiness. Exact coordinates are deliberately styled
   as private account data rather than public forecast content. */
.map-experience-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:18px 24px 0;max-width:1600px;margin:0 auto;width:100%}
.map-experience-tabs a{border:1px solid var(--line);border-radius:999px;color:var(--muted);font-weight:800;padding:10px 18px;text-decoration:none}
.map-experience-tabs a.is-active{background:var(--navy);border-color:var(--navy);color:#fff}
.map-mode-picker{display:none}
.map-sheet-toolbar{align-items:center;display:flex;height:30px;justify-content:center;margin:-8px 0 3px;position:relative;z-index:3}
.sheet-drag-handle{background:transparent;border:0;cursor:ns-resize;height:30px;padding:0 32px}
.map-sheet-toolbar .sheet-handle{margin:0;width:48px}
.map-sheet-toolbar .detail-close{display:grid;place-items:center;position:absolute;right:0;top:-1px}
[data-map-sheet].is-collapsed{display:none!important}
.waypoint-page,.offline-maps-page{height:auto;min-height:100vh;overflow:visible;padding-bottom:calc(var(--sw-bottom-nav-height) + env(safe-area-inset-bottom) + 42px)}
.waypoint-heading{align-items:flex-end;display:flex;justify-content:space-between;max-width:1500px;margin:0 auto;padding:38px 34px 12px;width:100%}
.waypoint-heading p{color:var(--teal);font-size:.78rem;font-weight:900;letter-spacing:.14em;margin:0;text-transform:uppercase}
.waypoint-heading h1{font-size:clamp(2.2rem,5vw,4.2rem);letter-spacing:-.05em;margin:3px 0 4px}
.waypoint-heading span{color:var(--muted)}
.waypoint-heading>a{align-items:center;border:1px solid var(--line);border-radius:999px;color:var(--navy);display:flex;font-weight:800;gap:8px;padding:12px 18px;text-decoration:none}
.waypoint-heading>a svg{height:20px;width:20px}
.waypoint-toolbar{align-items:center;display:flex;gap:18px;justify-content:space-between;max-width:1500px;margin:0 auto;padding:16px 34px;width:100%}
.waypoint-toolbar form{display:flex;flex:1;gap:10px}
.waypoint-search{align-items:center;display:flex;position:relative}.waypoint-search>svg{color:var(--teal-dark);height:20px;left:13px;position:absolute;width:20px}.waypoint-search input[type=search]{padding-left:42px}.waypoint-search>button{background:var(--navy);border:0;border-radius:11px;color:#fff;font:inherit;font-weight:850;margin:5px;min-height:36px;padding:0 14px;position:absolute;right:0}.waypoint-filter-sheet{display:flex;gap:10px}.waypoint-filter-sheet-header,.waypoint-filter-toggle,.waypoint-filter-chips{display:none}
.waypoint-toolbar input[type=search],.waypoint-toolbar select{background:#fff;border:1px solid var(--line);border-radius:14px;color:var(--navy);font:inherit;min-height:46px;padding:0 14px}
.waypoint-toolbar input[type=search]{min-width:280px;width:100%}
.waypoint-toolbar form>label:first-child{flex:1}
.waypoint-toolbar form>button,.waypoint-toolbar>div>button,.waypoint-transfer button{background:#fff;border:1px solid var(--line);border-radius:14px;color:var(--navy);font:inherit;font-weight:800;min-height:46px;padding:0 16px}
.waypoint-toolbar>div{display:flex;gap:8px}
.waypoint-toolbar .solid-action{background:linear-gradient(120deg,var(--navy),var(--teal));color:#fff}
.favorite-filter{align-items:center;background:#fff;border:1px solid var(--line);border-radius:14px;display:flex!important;flex:0 0 auto!important;font-weight:700;gap:7px;padding:0 12px}
.waypoint-workspace{display:grid;gap:18px;grid-template-columns:minmax(340px,1.2fr) minmax(270px,.72fr) minmax(270px,.72fr);max-width:1500px;margin:0 auto;padding:6px 34px;width:100%}
.waypoint-map-panel,.waypoint-list,.waypoint-detail,.offline-capability-card,.offline-readiness-grid article,.offline-storage-card,.waypoint-transfer{background:#fff;border:1px solid var(--line);border-radius:26px;box-shadow:var(--shadow-card)}
.waypoint-map-panel{overflow:hidden}
.waypoint-map{background:radial-gradient(circle at 62% 40%,rgba(45,203,193,.24),transparent 32%),linear-gradient(150deg,#073e5b,#052b48);height:540px;position:relative}
.waypoint-map-panel>p{align-items:center;color:var(--muted);display:flex;font-size:.84rem;gap:8px;margin:0;padding:12px 16px}
.waypoint-map-panel>p svg{color:var(--teal);height:18px;width:18px}
.waypoint-offline-plot{align-items:center;color:#d8f7f5;display:flex;flex-direction:column;height:100%;justify-content:center;overflow:hidden;position:relative;text-align:center}
.waypoint-offline-plot:before,.waypoint-offline-plot:after{border:1px solid rgba(100,231,224,.2);border-radius:50%;content:"";height:70%;position:absolute;width:70%}
.waypoint-offline-plot:after{height:42%;width:42%}
.waypoint-offline-plot>svg{height:42px;margin-bottom:12px;width:42px}
.waypoint-offline-plot small{color:#9dd6d5;margin-top:5px}
.offline-waypoint-marker,.waypoint-map-marker{background:#fff;border:4px solid var(--teal);border-radius:50% 50% 50% 0;box-shadow:0 7px 18px rgba(0,0,0,.3);height:32px;position:absolute;transform:translate(-50%,-50%) rotate(-45deg);width:32px;z-index:3}
.offline-waypoint-marker.is-selected,.waypoint-map-marker.is-selected{background:#5fe1db;border-color:#fff;height:40px;width:40px;z-index:4}
.waypoint-map-marker{position:relative;transform:rotate(-45deg)}
.waypoint-list{overflow:visible;padding:18px}
.waypoint-list .inline-title{align-items:center;display:flex;justify-content:space-between;margin-bottom:8px}
.waypoint-list .inline-title h2{margin:0}
.waypoint-list .inline-title button{background:none;border:0;color:var(--teal-dark);font-weight:800}
.waypoint-list-card{align-items:center;background:transparent;border:0;border-bottom:1px solid var(--line);color:var(--navy);display:grid;gap:12px;grid-template-columns:42px 1fr auto;padding:14px 8px;text-align:left;width:100%}
.waypoint-list-card:hover,.waypoint-list-card.is-selected{background:#eefafb;border-radius:14px}
.waypoint-list-card>span:nth-child(2){display:flex;flex-direction:column;gap:3px;min-width:0}
.waypoint-list-card strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.waypoint-list-card small{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.waypoint-category-icon{align-items:center;background:#e8f9fa;border-radius:12px;color:var(--teal-dark);display:flex;height:42px;justify-content:center;width:42px}
.waypoint-category-icon svg{height:21px;width:21px}
.waypoint-sync{font-size:.7rem;font-weight:900;letter-spacing:.02em}.waypoint-sync.is-synced{color:#087b77}.waypoint-sync.is-pending{color:#9a6b00}.waypoint-sync.is-conflict{color:#b53a34}
.waypoint-detail{padding:24px}.waypoint-detail h2{font-size:1.9rem;margin:10px 0 6px}.waypoint-detail>p{color:var(--muted)}
.waypoint-private-label{align-items:center;color:var(--teal-dark);display:flex;font-size:.78rem;font-weight:900;gap:7px;text-transform:uppercase}.waypoint-private-label svg{height:18px;width:18px}
.waypoint-detail dl{display:grid;grid-template-columns:1fr 1fr;margin:20px 0}.waypoint-detail dl div{border-bottom:1px solid var(--line);padding:10px 0}.waypoint-detail dt{color:var(--muted);font-size:.75rem}.waypoint-detail dd{font-weight:800;margin:3px 0 0}
.waypoint-detail-actions{display:grid;gap:8px;grid-template-columns:1fr 1fr;margin-top:18px}.waypoint-detail-actions button{align-items:center;background:#fff;border:1px solid var(--line);border-radius:13px;color:var(--navy);display:flex;font:inherit;font-weight:800;gap:8px;justify-content:center;min-height:45px}.waypoint-detail-actions .solid-action{background:linear-gradient(120deg,var(--navy),var(--teal));color:#fff;grid-column:1/-1}.waypoint-detail-actions .danger-action{color:#a22}.waypoint-detail-actions svg{height:18px;width:18px}
.waypoint-navigation-warning{background:#fff8df;border-radius:12px;font-size:.78rem;padding:10px}.waypoint-conflict-copy{color:#a22!important;font-size:.8rem}
.waypoint-transfer{align-items:center;display:flex;gap:10px;max-width:1432px;margin:18px auto;padding:20px 24px}.waypoint-transfer>div{flex:1}.waypoint-transfer h2{margin:0}.waypoint-transfer p{color:var(--muted);margin:5px 0 0}
.waypoint-capture-summary{background:#effafb;border-radius:14px;display:grid;gap:4px;padding:12px}.waypoint-picker-map{border-radius:16px;height:270px;overflow:hidden}
.location-method-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.location-picker-map{height:300px;overflow:hidden;border:1px solid var(--sw-line);border-radius:16px;background:linear-gradient(145deg,#063655,#0b7d8b)}.location-picker-status{margin:0;color:var(--sw-text-soft);font-size:.8rem;line-height:1.45}
@media(max-width:620px){.location-method-actions{grid-template-columns:1fr}.location-picker-map{height:240px}}
.waypoint-guidance{text-align:center}.guidance-compass{align-items:center;background:linear-gradient(145deg,var(--navy),var(--teal));border:8px solid #dff8f7;border-radius:50%;color:#fff;display:flex;font-size:3.5rem;height:150px;justify-content:center;margin:8px auto 20px;transition:transform .25s;width:150px}.waypoint-guidance strong,.waypoint-guidance span,.waypoint-guidance small{display:block;margin:6px}.waypoint-guidance p,.track-recorder p{background:#fff8df;border-radius:12px;color:#6d590d;font-size:.8rem;padding:10px}.waypoint-guidance button,.track-recorder button{background:#fff;border:1px solid var(--line);border-radius:10px;font-weight:800;padding:10px 14px}
.track-recorder{display:grid;gap:8px}.track-recorder>div{display:flex;flex-wrap:wrap;gap:8px}
.tracks-heading{align-items:center;display:flex;gap:20px;justify-content:space-between;margin:22px auto;max-width:1500px;padding:0 34px}.tracks-heading h2{font-size:1.9rem;margin:0}.tracks-heading p{color:var(--muted);margin:6px 0 0}.tracks-heading>button{background:linear-gradient(120deg,var(--navy),var(--teal));border:0;border-radius:14px;color:#fff;font:inherit;font-weight:900;min-height:48px;padding:0 18px}.recorded-track-grid{display:grid;gap:14px;margin:0 auto;max-width:1500px;padding:0 34px}.recorded-track-grid article{align-items:center;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow-card);display:grid;gap:16px;grid-template-columns:48px 1fr auto;padding:20px}.recorded-track-grid article>span{align-items:center;background:#e9f9fa;border-radius:14px;color:var(--teal-dark);display:flex;height:48px;justify-content:center;width:48px}.recorded-track-grid article svg{height:24px;width:24px}.recorded-track-grid h3{margin:0}.recorded-track-grid p{color:var(--muted);margin:5px 0}.recorded-track-grid small{color:var(--teal-dark);font-weight:800}.recorded-track-actions{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end}.recorded-track-actions :is(a,button){align-items:center;background:#fff;border:1px solid var(--line);border-radius:12px;color:var(--navy);display:flex;font:inherit;font-size:.8rem;font-weight:800;justify-content:center;min-height:40px;padding:0 12px;text-decoration:none}.recorded-track-actions .danger-action{color:#a22}
.catch-history-waypoint{background:linear-gradient(120deg,var(--navy),var(--teal));border:0;border-radius:13px;color:#fff;font:inherit;font-weight:900;margin-top:12px;min-height:48px;padding:0 18px;width:100%}
.offline-capability-card{align-items:flex-start;display:flex;gap:20px;max-width:1432px;margin:18px auto;padding:28px}.offline-capability-card>span{align-items:center;background:#e5fbf8;border-radius:18px;color:var(--teal-dark);display:flex;flex:0 0 auto;height:58px;justify-content:center;width:58px}.offline-capability-card svg{height:28px;width:28px}.offline-capability-card p:first-child{color:var(--teal-dark);font-size:.75rem;font-weight:900;letter-spacing:.12em}.offline-capability-card h2{margin:5px 0}.offline-capability-card p:last-child{color:var(--muted);max-width:900px}
.offline-readiness-grid{display:grid;gap:16px;grid-template-columns:repeat(4,1fr);max-width:1432px;margin:0 auto}.offline-readiness-grid article{padding:22px}.offline-readiness-grid svg{color:var(--teal-dark);height:28px;width:28px}.offline-readiness-grid h3{margin:12px 0 5px}.offline-readiness-grid strong{color:var(--teal-dark);font-size:.78rem}.offline-readiness-grid p{color:var(--muted);font-size:.85rem}
.offline-storage-card{max-width:1432px;margin:18px auto;padding:24px}.offline-storage-card button{border:1px solid var(--line);border-radius:13px;padding:12px 18px}.offline-storage-card button:disabled{cursor:not-allowed;opacity:.55}
.offline-manager{display:grid;grid-template-columns:minmax(320px,.8fr) minmax(440px,1.2fr);gap:18px;max-width:1432px;margin:18px auto}
.offline-region-form,.offline-region-map,.track-console{background:var(--sw-surface);border:1px solid var(--line);border-radius:26px;box-shadow:var(--shadow-card)}
.offline-region-form{display:grid;grid-template-columns:1fr 180px;align-content:start;gap:15px;padding:24px}.offline-region-form>div:first-child{grid-column:1/-1}.offline-region-form p{color:var(--teal-dark);font-size:.72rem;font-weight:900;letter-spacing:.12em;margin:0}.offline-region-form h2{margin:4px 0}.offline-region-form>div:first-child span{color:var(--muted)}.offline-region-form label span,.track-name-input span{display:block;color:var(--muted);font-size:.76rem;font-weight:750;margin:0 0 6px}.offline-region-form input,.offline-region-form select,.track-name-input input{background:var(--sw-surface-raised);border:1px solid var(--line);border-radius:13px;color:var(--sw-text);font:inherit;min-height:46px;padding:0 13px;width:100%}.offline-form-actions{display:flex;flex-wrap:wrap;gap:8px;grid-column:1/-1}.offline-form-actions button{align-items:center;background:var(--sw-surface-raised);border:1px solid var(--line);border-radius:13px;color:var(--sw-text);display:flex;font:inherit;font-weight:800;gap:7px;min-height:46px;padding:0 15px}.offline-form-actions button svg{height:18px;width:18px}.offline-form-actions .solid-action{background:linear-gradient(120deg,var(--navy),var(--teal));color:#fff}.offline-region-map{height:430px;overflow:hidden;position:relative;background:linear-gradient(145deg,#063655,#0b7d8b)}.offline-progress{display:grid;gap:6px;grid-column:1/-1}.offline-progress progress{accent-color:var(--teal);height:12px;width:100%}.offline-progress span{color:var(--muted);font-size:.8rem}.offline-region-marker,.track-position-marker{background:#0b95a0;border:4px solid #fff;border-radius:50%;box-shadow:0 4px 18px rgba(0,31,54,.5);display:block;height:28px;width:28px}.offline-region-list{display:grid;gap:10px;margin:18px 0}.offline-region-list article{align-items:center;border:1px solid var(--line);border-radius:16px;display:grid;gap:12px;grid-template-columns:40px minmax(0,1fr) auto;padding:14px}.offline-region-list article>span{align-items:center;background:#e7faf8;border-radius:11px;color:var(--teal-dark);display:flex;height:40px;justify-content:center}.offline-region-list svg{height:21px;width:21px}.offline-region-list strong,.offline-region-list small,.offline-region-list em{display:block}.offline-region-list small{color:var(--muted);margin-top:3px}.offline-region-list em{color:var(--teal-dark);font-size:.74rem;font-style:normal;margin-top:3px}.offline-license-copy{border-top:1px solid var(--line);color:var(--muted);font-size:.78rem;line-height:1.55;margin:18px 0 0;padding-top:14px}.offline-license-copy a{color:var(--teal-dark);font-weight:750}
.track-console{display:grid;grid-template-columns:minmax(400px,1.25fr) minmax(380px,.75fr);max-width:1432px;margin:18px auto;overflow:hidden}.track-console-map{background:linear-gradient(145deg,#063655,#0b7d8b);min-height:480px;position:relative}.track-console-panel{display:grid;align-content:start;gap:17px;padding:25px}.track-console-panel header{align-items:flex-start;display:flex;justify-content:space-between;gap:12px}.track-console-panel header p{color:var(--teal-dark);font-size:.72rem;font-weight:900;letter-spacing:.12em;margin:0}.track-console-panel h2{margin:5px 0 0}.track-state{background:#e7faf8;border-radius:999px;color:var(--teal-dark);font-size:.72rem;font-weight:900;padding:8px 11px}.track-state[data-state="RECORDING"]{background:#dff8e6;color:#167241}.track-state[data-state="PAUSED"]{background:#fff2cf;color:#805d00}.track-metrics{display:grid;grid-template-columns:1fr 1fr;gap:9px}.track-metrics article{background:var(--sw-surface-raised);border:1px solid var(--line);border-radius:15px;padding:14px}.track-metrics small,.track-metrics strong{display:block}.track-metrics small{color:var(--muted);font-size:.74rem}.track-metrics strong{font-size:1.18rem;margin-top:4px}.track-mode-note{background:#fff8df;border-radius:13px;color:#6d590d;font-size:.8rem;line-height:1.45;margin:0;padding:11px}.track-controls{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.track-controls button{align-items:center;background:var(--sw-surface-raised);border:1px solid var(--line);border-radius:13px;color:var(--sw-text);display:flex;font:inherit;font-weight:850;gap:7px;justify-content:center;min-height:46px}.track-controls button:disabled{opacity:.45}.track-controls .solid-action{background:linear-gradient(120deg,var(--navy),var(--teal));color:#fff}.track-controls .danger-action{color:#a22}.track-controls svg{height:17px;width:17px}.track-connection{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:.75rem}.track-waypoint-marker{background:#fff;border:3px solid var(--teal);border-radius:50% 50% 50% 0;display:block;height:23px;transform:rotate(-45deg);width:23px}.offline-track-svg{height:100%;inset:0;position:absolute;width:100%}.offline-track-svg polyline{fill:none;stroke:#54e3d7;stroke-linecap:round;stroke-linejoin:round;stroke-width:4}.offline-track-svg circle{fill:#0a94a0;stroke:#fff;stroke-width:3}.offline-track-label{background:rgba(4,42,67,.9);border-radius:999px;bottom:14px;color:#fff;font-size:.76rem;font-weight:750;left:14px;padding:8px 12px;position:absolute}.active-track-indicator{align-items:center;background:linear-gradient(120deg,var(--navy),var(--teal));border:1px solid rgba(255,255,255,.35);border-radius:999px;bottom:calc(var(--sw-bottom-nav-height) + env(safe-area-inset-bottom) + 14px);box-shadow:0 12px 35px rgba(0,35,61,.32);color:#fff;display:flex;gap:9px;left:50%;padding:9px 16px;position:fixed;text-decoration:none;transform:translateX(-50%);z-index:900}.active-track-indicator>svg{height:21px;width:21px}.active-track-indicator strong,.active-track-indicator small{display:block}.active-track-indicator small{color:rgba(255,255,255,.78);font-size:.7rem}
.offline-navigation-promo{align-items:center;background:linear-gradient(125deg,#063a5b,#078c90);border-radius:18px;color:#fff;display:grid;gap:12px;grid-template-columns:42px 1fr 22px;margin:18px auto;max-width:1432px;padding:18px 22px;text-decoration:none}.offline-navigation-promo>svg{height:28px;width:28px}.offline-navigation-promo :is(small,strong){display:block}.offline-navigation-promo h2,.offline-navigation-promo p{margin:0}.offline-navigation-promo p{color:#c9eeec;font-size:.82rem;margin-top:4px}.offline-promotion-hero{align-items:center;background:linear-gradient(130deg,#063a5b,#08999a);border-radius:28px;box-shadow:var(--shadow-card);color:#fff;display:flex;gap:24px;margin:24px auto;max-width:1432px;padding:34px}.offline-promotion-hero>span{align-items:center;background:rgba(255,255,255,.13);border-radius:20px;display:flex;flex:0 0 64px;height:64px;justify-content:center}.offline-promotion-hero svg{height:32px;width:32px}.offline-promotion-hero p:first-child{font-size:.75rem;font-weight:900;letter-spacing:.13em;margin:0}.offline-promotion-hero h2{font-size:clamp(1.8rem,4vw,3rem);margin:6px 0}.offline-promotion-hero p:last-child{color:#d4f2f0;line-height:1.55;margin:0}.offline-promotion-actions{display:flex;gap:12px;justify-content:center;margin:24px}.offline-promotion-actions a{align-items:center;border:1px solid var(--line);border-radius:999px;color:var(--navy);display:flex;font-weight:850;gap:8px;padding:13px 20px;text-decoration:none}.offline-promotion-actions svg{height:20px;width:20px}
.explore-offline-promo{margin-left:clamp(16px,3vw,40px);margin-right:clamp(16px,3vw,40px)}
html[data-theme="dark"] :is(.waypoint-map-panel,.waypoint-list,.waypoint-detail,.offline-capability-card,.offline-readiness-grid article,.offline-storage-card,.waypoint-transfer,.recorded-track-grid article){background:var(--sw-surface);color:var(--sw-text)}html[data-theme="dark"] :is(.waypoint-toolbar input[type=search],.waypoint-toolbar select,.waypoint-toolbar form>button,.waypoint-toolbar>div>button,.waypoint-transfer button,.recorded-track-grid button,.favorite-filter,.waypoint-detail-actions button){background:var(--sw-surface-raised);color:var(--sw-text)}html[data-theme="dark"] .waypoint-heading>a{color:var(--sw-text)}
@media(max-width:1100px){.waypoint-workspace{grid-template-columns:1fr 1fr}.waypoint-map-panel{grid-column:1/-1}.offline-readiness-grid{grid-template-columns:1fr 1fr}.offline-manager,.track-console{grid-template-columns:1fr;margin-left:34px;margin-right:34px}.track-console-map{min-height:390px}}
@media(max-width:720px){.map-experience-tabs{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;padding:12px 16px 0}.map-experience-tabs a{flex:0 0 auto;padding:8px 13px}.waypoint-heading{align-items:flex-start;padding:22px 16px 8px}.waypoint-heading h1{font-size:2.45rem}.waypoint-heading>a{font-size:.75rem;padding:9px}.waypoint-toolbar{align-items:stretch;flex-direction:column;padding:10px 16px}.waypoint-toolbar form{display:grid;grid-template-columns:1fr 1fr}.waypoint-toolbar form>label:first-child{grid-column:1/-1}.waypoint-toolbar input[type=search]{min-width:0}.waypoint-toolbar>div{display:grid;grid-template-columns:1fr 1fr}.waypoint-toolbar>div button:first-child{grid-column:1/-1}.waypoint-workspace{display:flex;flex-direction:column;padding:4px 16px}.waypoint-map{height:320px}.waypoint-list{max-height:none;order:2}.waypoint-detail{order:3}.waypoint-transfer{align-items:stretch;flex-wrap:wrap;margin:16px}.waypoint-transfer>div{flex-basis:100%}.offline-capability-card{margin:16px;padding:20px}.offline-readiness-grid{grid-template-columns:1fr;margin:16px}.offline-storage-card{margin:16px}.waypoint-detail-actions{grid-template-columns:1fr}.waypoint-detail-actions .solid-action{grid-column:auto}.tracks-heading{align-items:stretch;flex-direction:column;margin:18px 0;padding:0 14px}.recorded-track-grid{padding:0 14px}.recorded-track-grid article{grid-template-columns:42px 1fr}.recorded-track-grid article>button{grid-column:1/-1;width:100%}.offline-manager,.track-console{grid-template-columns:1fr;margin:16px}.offline-region-form{grid-template-columns:1fr;padding:18px}.offline-region-form>div:first-child,.offline-form-actions,.offline-progress{grid-column:auto}.offline-region-map{height:310px;grid-row:1}.offline-form-actions{display:grid}.track-console-map{min-height:310px}.track-console-panel{padding:18px}.track-metrics{grid-template-columns:1fr 1fr}.track-controls{grid-template-columns:1fr}.track-connection{align-items:flex-start;flex-direction:column}.offline-region-list article{grid-template-columns:38px minmax(0,1fr)}.offline-region-list article button{grid-column:1/-1}.active-track-indicator{bottom:calc(var(--sw-bottom-nav-height) + env(safe-area-inset-bottom) + 8px);max-width:calc(100vw - 28px);width:max-content}.live-modal{max-height:calc(100dvh - env(safe-area-inset-top));overflow-y:auto}.live-modal form{overflow:visible}}
@media(max-width:720px){.plan-offline-readiness{grid-template-columns:28px minmax(0,1fr);margin:10px 16px;padding:14px}.plan-offline-readiness a{grid-column:1/-1;justify-content:center}}

/* Mobile map platform repair — map first, compact modes, real draggable sheets. */
@media (max-width: 959px) {
  .map-page--forecast { display: flex; height: 100dvh; min-height: 0; flex-direction: column; overflow: hidden; }
  .map-page--forecast > .mobile-header { flex: 0 0 auto; }
  .map-page--forecast > .forecast-health { min-height: 40px; flex: 0 0 auto; gap: 7px; margin: 3px 10px; padding: 6px 9px; border-radius: 12px; }
  .map-page--forecast > .forecast-health > div { min-width: 0; gap: 6px; }
  .map-page--forecast > .forecast-health .sw-icon { width: 16px; }
  .map-page--forecast > .forecast-health strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .map-page--forecast > .forecast-health small { display: none; }
  .map-page--forecast > .forecast-health button { min-height: 28px; flex: 0 0 auto; padding: 0 10px; font-size: 9px; }
  .map-page--forecast > .marine-safety { grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 0 0 auto; gap: 5px; margin: 3px 10px; }
  .map-page--forecast > .marine-safety > article { min-height: 49px; grid-template-columns: 15px minmax(0, 1fr); gap: 5px; padding: 7px; border-radius: 12px; }
  .map-page--forecast > .marine-safety > article > .sw-icon { width: 15px; }
  .map-page--forecast > .marine-safety small { overflow: hidden; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
  .map-page--forecast > .marine-safety strong { display: -webkit-box; overflow: hidden; margin-top: 2px; font-size: 9px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .map-page--forecast > .marine-safety :is(p, span, a) { display: none; }
  .map-experience-tabs { display: none; }
  .map-mode-picker { position: relative; z-index: 14; display: flex; min-height: 42px; flex: 0 0 auto; align-items: center; gap: 9px; margin: 6px 12px; padding: 0 12px; border: 1px solid var(--sw-line); border-radius: 13px; background: var(--sw-surface); box-shadow: var(--sw-shadow-card); color: var(--sw-text-soft); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
  .map-mode-picker select { min-width: 0; flex: 1; appearance: none; border: 0; outline: 0; background: transparent; color: var(--sw-text); font: inherit; font-size: 14px; font-weight: 850; text-transform: none; letter-spacing: 0; }
  .map-mode-picker > svg { width: 15px; }
  .map-page--forecast .map-filter-bar { flex: 0 0 auto; padding: 0 10px 7px; border: 0; background: var(--sw-surface); }
  .map-page--forecast .map-search { position: absolute; z-index: 20; top: 3px; right: 10px; left: 10px; display: none; height: 44px; }
  .map-page--forecast .map-filter-bar.is-search-open .map-search { display: flex; }
  .map-page--forecast .map-filter-row { grid-template-columns: minmax(0,1.35fr) minmax(0,.82fr) minmax(0,.82fr) 44px; gap: 6px; margin: 0; }
  .map-page--forecast .map-filter-row > :first-child { grid-column: auto; }
  .map-page--forecast .map-filter { min-height: 40px; padding: 0 7px; font-size: 11px; }
  .map-page--forecast .map-filter .sw-icon { width: 16px; }
  .map-page--forecast .map-filter-label--full { display: none; }
  .map-page--forecast .map-filter-label--compact { display: inline; }
  .map-page--forecast .map-filter { gap: 4px; padding-inline: 4px; }
  .map-page--forecast .map-filter .sw-icon:last-child { width: 12px; }
  .map-page--forecast .map-search-toggle { width: 44px; }
  .map-page--forecast .map-search-toggle span { display: none; }
  .map-directory-link { display: none; }
  .map-page--forecast .map-best-for-unavailable { display: none; }
  .map-page--forecast .map-workspace { height: auto; min-height: 0; flex: 1 1 auto; }
  .map-page--forecast .map-scope-badge { top: 8px; max-width: calc(100% - 88px); }
  .map-page--forecast .map-tools { top: 8px; }
  .map-page--forecast .opportunity-map-legend { right: 10px; bottom: calc(min(44dvh, 390px) + 10px); max-width: calc(100% - 20px); }
  .map-page--forecast .habitat-map-legend { right: 10px; bottom: calc(min(44dvh, 390px) + 10px); max-width: min(235px, calc(100% - 20px)); }
  .map-page--forecast [data-map-sheet] { height: min(44dvh, 390px); max-height: min(58dvh, 510px); overscroll-behavior: contain; transition: height .2s ease, max-height .2s ease, transform .2s ease; }
  .map-page--forecast [data-map-sheet][data-sheet-state="minimized"] { height: 92px; max-height: 92px; overflow: hidden; }
  .map-page--forecast [data-map-sheet][data-sheet-state="expanded"] { height: calc(100dvh - var(--sw-bottom-nav-height) - env(safe-area-inset-bottom) - 116px); max-height: calc(100dvh - var(--sw-bottom-nav-height) - env(safe-area-inset-bottom) - 116px); }
  [data-map-sheet][data-sheet-state="minimized"] > :not(.map-sheet-toolbar):not(.detail-title-row):not(.inline-title) { display: none !important; }
  [data-map-sheet][data-sheet-state="minimized"] .detail-title-row { min-height: 42px; }
  .map-sheet-toolbar { position: sticky; top: -8px; background: inherit; }
  .map-detail-panel { padding-top: 9px; touch-action: pan-y; }
  .detail-title-row { padding-right: 42px; }

  .bait-page { display: flex; height: 100dvh; min-height: 0; flex-direction: column; }
  .bait-page > :not(.bait-workspace) { flex: 0 0 auto; }
  .bait-title { padding-top: 0; padding-bottom: 5px; }
  .bait-title p { display: none; }
  .bait-title h1 { max-width: 78vw; overflow: hidden; font-size: 21px; text-overflow: ellipsis; white-space: nowrap; }
  .bait-selectors { padding-top: 2px; padding-bottom: 5px; }
  .bait-mode { margin-bottom: 6px; }
  .bait-workspace { height: auto; min-height: 0; flex: 1 1 auto; }
  .bait-panel[data-map-sheet] { height: min(44dvh, 390px); max-height: min(58dvh, 510px); padding-top: 9px; overscroll-behavior: contain; transition: height .2s ease, max-height .2s ease; }
  .bait-panel[data-map-sheet][data-sheet-state="minimized"] { height: 92px; max-height: 92px; overflow: hidden; }
  .bait-panel[data-map-sheet][data-sheet-state="expanded"] { height: calc(100dvh - var(--sw-bottom-nav-height) - env(safe-area-inset-bottom) - 116px); max-height: calc(100dvh - var(--sw-bottom-nav-height) - env(safe-area-inset-bottom) - 116px); }
  .bait-map .map-scale { bottom: 115px; }

  .waypoint-page .map-mode-picker, .offline-maps-page .map-mode-picker { margin: 6px 16px 9px; }
  .waypoint-heading { align-items: center; padding-top: 12px; }
  .waypoint-heading p { font-size: .65rem; }
  .waypoint-heading h1 { font-size: 1.85rem; line-height: 1; }
  .waypoint-heading span { display: block; max-width: 70vw; overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
  .waypoint-heading > a { width: 42px; height: 42px; justify-content: center; padding: 0; overflow: hidden; color: transparent; font-size: 0; }
  .waypoint-heading > a svg { color: var(--sw-text); }
  .waypoint-toolbar { gap: 8px; padding-top: 4px; }
  .waypoint-toolbar form { display: flex; align-items: center; gap: 7px; }
  .waypoint-search { min-width: 0; flex: 1; }
  .waypoint-search input[type=search] { min-height: 42px; padding-right: 60px; }
  .waypoint-search > button { min-height: 32px; padding: 0 11px; }
  .waypoint-filter-toggle { display: inline-flex; min-height: 42px !important; align-items: center; gap: 6px; padding: 0 11px !important; }
  .waypoint-filter-toggle svg { height: 17px; width: 17px; }
  .waypoint-filter-sheet { position: fixed; z-index: 1200; right: 0; bottom: 0; left: 0; display: grid; gap: 10px; padding: 10px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--sw-surface); box-shadow: 0 -20px 55px rgba(1,31,53,.3); opacity: 0; pointer-events: none; transform: translateY(105%); transition: transform .2s ease, opacity .2s ease; }
  .waypoint-filter-sheet.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .waypoint-filter-sheet-header { display: grid; grid-template-columns:42px 1fr 42px; align-items:center; text-align:center; }
  .waypoint-filter-sheet-header .sheet-drag-handle { padding: 0; }
  .waypoint-filter-sheet-header > button:last-child { height: 38px; border: 0; background: transparent; color: var(--sw-text); font-size: 25px; }
  .waypoint-filter-sheet select, .waypoint-filter-sheet .favorite-filter, .waypoint-filter-sheet > button[type=submit] { min-height: 48px; width: 100%; }
  .waypoint-filter-sheet > button[type=submit] { border: 0; border-radius: 13px; background: linear-gradient(120deg,var(--navy),var(--teal)); color:#fff; font-weight:850; }
  .waypoint-filter-chips { display: flex; flex-wrap: wrap; gap: 5px; }
  .waypoint-filter-chips:empty { display: none; }
  .waypoint-filter-chips span { border-radius: 999px; background: #e6f8f7; color: var(--teal-dark); font-size: .68rem; font-weight: 850; padding: 5px 9px; }
  .waypoint-toolbar > div:last-child { grid-template-columns: 1fr 1fr 1fr; }
  .waypoint-toolbar > div:last-child button:first-child { grid-column: 1 / -1; min-height: 50px; }
  .waypoint-workspace { gap: 10px; }
  .waypoint-map { height: min(44dvh, 350px); }
  .waypoint-list, .waypoint-detail { padding: 15px; }
  .waypoint-list-card { padding-right: 3px; padding-left: 3px; }
  .offline-navigation-promo { margin: 14px 16px; padding: 15px; }
  .offline-promotion-hero { align-items:flex-start; margin: 16px; padding: 22px; }
  .offline-promotion-hero > span { flex-basis:48px; height:48px; }
  .offline-promotion-hero h2 { font-size:1.7rem; }
  .offline-promotion-actions { flex-direction:column; }

  .recorded-track-grid article { align-items:start; gap:10px; padding:15px; }
  .recorded-track-actions { grid-column:1 / -1; display:grid; grid-template-columns:1fr 1fr; width:100%; }
  .recorded-track-actions :is(a,button) { min-height:42px; }
  .track-console { margin-top:8px; }
  .track-console-map { min-height: min(38dvh, 330px); }
}

@media (max-width: 370px) {
  .map-mode-picker { margin-right: 9px; margin-left: 9px; }
  .map-page--forecast .map-filter-row { grid-template-columns:minmax(0,1.25fr) minmax(0,.72fr) minmax(0,.72fr) 40px; }
  .map-page--forecast .map-filter { min-height:38px; font-size:10px; }
  .map-page--forecast .map-search-toggle { width:40px; }
  .waypoint-toolbar, .waypoint-workspace { padding-right:10px; padding-left:10px; }
  .waypoint-toolbar > div:last-child { grid-template-columns:1fr 1fr; }
  .waypoint-toolbar > div:last-child button:first-child { grid-column:1 / -1; }
  .offline-promotion-hero { display:grid; }
}
@media (max-width: 340px) {
  .map-page--forecast .map-filter-row { grid-template-columns:minmax(0,1.35fr) minmax(0,.7fr) minmax(0,.7fr) 36px; gap:4px; }
  .map-page--forecast .map-search-toggle { width:36px; }
  .map-page--forecast .map-filter-row > .map-filter:nth-child(2) > .sw-icon:first-child,
  .map-page--forecast .map-filter-row > .map-filter:nth-child(3) > .sw-icon:first-child { display:none; }
}

@media (min-width: 960px) {
  .map-sheet-toolbar { display: none; }
  .map-page--forecast { display: flex; flex-direction: column; }
  .map-page--forecast > :is(.forecast-health, .marine-safety, .map-experience-tabs, .map-filter-bar) { flex: 0 0 auto; }
  .map-page--forecast .map-filter-bar {
    position: relative;
    top: auto;
    left: auto;
    display: grid;
    width: 100%;
    grid-template-columns: minmax(240px, 330px) minmax(360px, 1fr) minmax(230px, 310px);
    gap: 10px;
    padding: 8px 20px;
    border-top: 1px solid var(--sw-line);
    border-bottom: 1px solid var(--sw-line);
    background: rgb(255 255 255 / 97%);
  }
  .map-page--forecast .map-search { width: 100%; }
  .map-page--forecast .map-filter-row { width: 100%; grid-template-columns: minmax(150px, 1.35fr) minmax(92px, .8fr) minmax(86px, .75fr) auto; margin: 0; }
  .map-page--forecast .map-filter-row > :first-child { grid-column: auto; }
  .map-page--forecast .map-best-for { min-width: 0; }
  .map-page--forecast .map-workspace { height: auto; min-height: 0; flex: 1 1 auto; }
}

@media (min-width: 960px) and (max-width: 1199px) {
  .map-page--forecast .map-filter-bar { grid-template-columns: minmax(220px, .8fr) minmax(420px, 1.2fr); }
  .map-page--forecast .map-best-for { grid-column: 1 / -1; }
}
.glass-calm-card {
  margin: 18px 0;
  padding: 20px;
  border: 1px solid rgba(14, 128, 134, .22);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(5, 50, 87, .98), rgba(10, 145, 145, .94));
  color: #fff;
  box-shadow: 0 16px 38px rgba(4, 48, 80, .14);
}

.glass-calm-heading { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.glass-calm-heading > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: rgba(255, 255, 255, .13); }
.glass-calm-heading svg { width: 25px; height: 25px; }
.glass-calm-heading div { display: grid; gap: 3px; min-width: 0; }
.glass-calm-heading small, .glass-calm-heading em { color: rgba(255, 255, 255, .76); font-style: normal; }
.glass-calm-heading strong { font-size: 1.2rem; }
.glass-calm-heading > b { display: grid; gap: 2px; text-align: right; font-size: 1.35rem; }
.glass-calm-heading > b small { max-width: 150px; font-size: .72rem; font-weight: 500; }
.glass-calm-window, .glass-calm-confidence { display: flex; align-items: center; gap: 9px; margin: 14px 0 0; }
.glass-calm-window svg, .glass-calm-confidence svg { flex: 0 0 auto; width: 20px; height: 20px; }
.glass-calm-confidence { align-items: flex-start; }
.glass-calm-confidence span { color: rgba(255, 255, 255, .78); }
.glass-calm-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 15px; }
.glass-calm-metrics span { display: grid; gap: 3px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .1); }
.glass-calm-metrics small { color: rgba(255, 255, 255, .72); }
.glass-calm-card details { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .18); }
.glass-calm-card details p, .glass-calm-card details ul { color: rgba(255, 255, 255, .78); }
.glass-calm-card--compact { margin: 10px clamp(16px, 4vw, 64px); padding: 12px 16px; }
.glass-calm-card--compact .glass-calm-heading > span { width: 38px; height: 38px; border-radius: 12px; }
.glass-calm-card--compact .glass-calm-heading svg { width: 21px; height: 21px; }
.glass-calm-card--compact .glass-calm-heading strong { font-size: 1rem; }
.glass-calm-card--compact .glass-calm-heading > b { font-size: 1.05rem; }
.glass-calm-card--compact :is(.glass-calm-metrics, .glass-calm-confidence) { display: none; }

/* Compact home warnings keep the forecast—not source bookkeeping—first. */
.home-warning-pills { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; }
.home-warning-pill { display: inline-flex; min-height: 34px; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid #e5c461; border-radius: 999px; background: #fff9e7; color: #665010; box-shadow: 0 5px 16px rgb(25 58 76 / 8%); font-size: 9px; font-weight: 760; cursor: pointer; }
.home-warning-pill--danger { border-color: #e99aa4; background: #fff1f3; color: #802d38; }
.home-warning-pill .sw-icon { width: 15px; height: 15px; }
.home-warning-pill .sw-icon:last-child { width: 12px; }
.forecast-data-panel { margin: 20px 0 0; scroll-margin-top: calc(var(--sw-topbar-height) + 12px); border: 1px solid var(--sw-line); border-radius: 20px; background: white; box-shadow: var(--sw-shadow-card); }
.forecast-data-panel > summary { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 17px; color: var(--sw-navy-900); cursor: pointer; list-style: none; }
.forecast-data-panel > summary::-webkit-details-marker { display: none; }
.forecast-data-panel > summary > span { display: grid; grid-template-columns: 21px auto; align-items: center; column-gap: 9px; }
.forecast-data-panel > summary .sw-icon { width: 20px; color: var(--sw-teal-700); }
.forecast-data-panel > summary > .sw-icon { width: 16px; transition: transform .2s ease; }
.forecast-data-panel[open] > summary > .sw-icon { transform: rotate(180deg); }
.forecast-data-panel > summary small { grid-column: 2; color: var(--sw-text-soft); font-size: 8px; text-transform: capitalize; }
.forecast-data-panel__body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 15px 15px; }
.forecast-data-panel__body > section { min-width: 0; padding: 13px; border: 1px solid var(--sw-line); border-radius: 15px; background: var(--sw-surface-soft); }
.forecast-data-panel__body h3 { margin: 0 0 7px; color: var(--sw-teal-700); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.forecast-data-panel__body strong { color: var(--sw-navy-900); font-size: 12px; }
.forecast-data-panel__body p, .forecast-data-panel__body small { display: block; margin: 5px 0 0; color: var(--sw-text-soft); font-size: 9px; line-height: 1.45; }
.forecast-data-panel__body a { display: grid; gap: 2px; margin-top: 8px; color: var(--sw-navy-900); text-decoration: none; }
.forecast-source-list { grid-column: 1 / -1; }
.forecast-source-list > div { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--sw-line); }
.forecast-source-list > div:first-of-type { border-top: 0; }
.forecast-source-list span { min-width: 0; }
.forecast-source-list b, .forecast-source-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forecast-source-list em { flex: 0 0 auto; color: var(--sw-teal-700); font-size: 8px; font-style: normal; font-weight: 760; }
.forecast-source-list [data-source-state="STALE"] em, .forecast-source-list [data-source-state="UNAVAILABLE"] em { color: #946b00; }
.forecast-data-disclosure { grid-column: 1 / -1; margin: 0; padding: 0 3px; color: var(--sw-text-soft); font-size: 9px; line-height: 1.45; }

/* Explore exposes one view control and one filter surface at every viewport. */
.explore-view-controls { display: grid; position: relative; z-index: 9; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-bottom: 10px; }
.explore-view-controls .explore-view-switch { margin: 0; }
.explore-view-controls .explore-filter-menu { margin: 0; }
.explore-filter-menu > .explore-filter-sheet { display: grid; width: min(430px, calc(100vw - 30px)); grid-template-columns: 1fr; gap: 10px; padding: 14px; }
.explore-filter-sheet > header { display: flex; align-items: center; justify-content: space-between; }
.explore-filter-sheet > header strong { color: var(--sw-navy-900); font-size: 14px; }
.explore-filter-sheet > header button { min-height: 32px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--sw-sky-100); color: var(--sw-teal-700); font-size: 9px; font-weight: 760; }
.explore-filter-location { display: grid; min-height: 52px; grid-template-columns: 22px minmax(0, 1fr) 14px; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--sw-line-strong); border-radius: 13px; background: white; color: var(--sw-navy-900); text-align: left; }
.explore-filter-location .sw-icon { width: 19px; color: var(--sw-teal-700); }
.explore-filter-location small, .explore-filter-location strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.explore-filter-location small, .explore-filter-grid label > span { color: var(--sw-text-soft); font-size: 8px; font-weight: 720; }
.explore-filter-location strong { margin-top: 2px; font-size: 11px; }
.explore-filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.explore-filter-grid label { display: grid; gap: 3px; min-width: 0; padding: 7px 9px; border: 1px solid var(--sw-line); border-radius: 12px; }
.explore-filter-grid select { width: 100%; min-width: 0; height: 28px; padding: 0 18px 0 0; border: 0; outline: 0; background: white; color: var(--sw-navy-900); font-size: 10px; font-weight: 730; }
.explore-filter-sheet .explore-tabs { margin: 0; padding: 2px 0 0; }

@media (max-width: 720px) {
  .forecast-data-panel__body { grid-template-columns: 1fr; }
  .forecast-source-list, .forecast-data-disclosure { grid-column: auto; }
  .home-warning-pills { margin-right: 1px; margin-left: 1px; }
  .explore-view-controls { grid-template-columns: minmax(0, 1fr) auto; }
  .explore-filter-menu summary { min-height: 46px; padding: 0 12px; }
  .explore-filter-menu > .explore-filter-sheet { position: fixed; z-index: 40; inset: auto 10px calc(var(--sw-bottom-nav-height) + 10px); width: auto; max-height: min(72vh, 620px); overflow-y: auto; border-radius: 22px; box-shadow: 0 24px 70px rgb(3 33 55 / 34%); }
  .explore-filter-sheet .explore-tabs { flex-wrap: wrap; overflow: visible; }
  .explore-filter-sheet .explore-tabs button { flex: 1 1 calc(33.333% - 7px); padding-right: 10px; padding-left: 10px; }
  .glass-calm-card, .glass-calm-card--compact { margin: 10px 16px; padding: 14px; border-radius: 19px; }
  .glass-calm-heading { grid-template-columns: auto minmax(0, 1fr); }
  .glass-calm-heading > b { grid-column: 2; text-align: left; font-size: 1.05rem; }
  .glass-calm-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glass-calm-confidence { display: grid; grid-template-columns: auto 1fr; }
  .glass-calm-confidence span { grid-column: 2; }
  .glass-calm-card--compact { padding: 10px 12px; }
  .glass-calm-card--compact .glass-calm-heading { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 9px; }
  .glass-calm-card--compact .glass-calm-heading > span { width: 34px; height: 34px; }
  .glass-calm-card--compact .glass-calm-heading > b { grid-column: auto; text-align: right; font-size: .9rem; white-space: nowrap; }
  .glass-calm-card--compact .glass-calm-heading > b small { max-width: 84px; font-size: .58rem; line-height: 1.15; white-space: normal; }
  .glass-calm-card--compact .glass-calm-heading div > small { font-size: .6rem; }
  .glass-calm-card--compact .glass-calm-heading strong { font-size: .9rem; line-height: 1.1; }
  .glass-calm-card--compact .glass-calm-heading em { overflow: hidden; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
}

@media (min-width: 960px) {
  .explore-view-switch { display: grid; }
  .explore-view-controls { width: min(560px, 100%); grid-template-columns: minmax(360px, 1fr) auto; margin-bottom: 18px; }
  .explore-filter-menu, .explore-view-controls .explore-filter-menu { margin: 0; }
  .explore-filter-menu > .explore-filter-sheet { width: 520px; grid-template-columns: 1fr; }
  .explore-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-warning-pill { min-height: 38px; padding: 0 14px; font-size: 10px; }
}

/* Forecast refreshes are non-destructive: the last valid forecast stays fully
   readable and interactive while this compact status surface is present. */
.app-stage.is-forecast-refreshing[aria-busy="true"] main { opacity: 1; pointer-events: auto; }
.forecast-refresh-indicator { position: fixed; z-index: 120; top: calc(var(--sw-topbar-height, 68px) + 10px); right: 14px; display: inline-flex; min-height: 38px; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid color-mix(in srgb, var(--sw-teal-600) 28%, white); border-radius: 999px; background: rgba(255,255,255,.96); box-shadow: var(--sw-shadow-float); color: var(--sw-navy-900); font-size: 10px; font-weight: 760; }
.forecast-refresh-indicator i { width: 14px; height: 14px; border: 2px solid color-mix(in srgb, var(--sw-teal-600) 24%, transparent); border-top-color: var(--sw-teal-700); border-radius: 50%; animation: forecast-refresh-spin .75s linear infinite; }
html[data-theme="dark"] .forecast-refresh-indicator { border-color: rgba(58,214,207,.35); background: rgba(4,31,48,.96); color: white; }
@keyframes forecast-refresh-spin { to { transform: rotate(360deg); } }
@media (min-width: 960px) {
  .forecast-refresh-indicator { top: calc(var(--sw-topbar-height, 78px) + 12px); right: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .forecast-refresh-indicator i { animation: none; }
}

/* Live Trip / Helm Mode extends the canonical trip and marine-map systems. */
.app-shell.is-helm { display: block; min-height: 100dvh; background: #031d33; }
.app-shell.is-helm > :is(.desktop-rail, .ask-floating-bubble, .mobile-bottom-nav) { display: none; }
.app-shell.is-helm .app-stage { min-height: 100dvh; grid-column: auto; }
.app-shell.is-helm .desktop-topbar { display: none; }
.helm-page { position: fixed; z-index: 100; inset: 0; overflow: hidden; background: #062b48; color: white; isolation: isolate; }
.helm-map, .helm-map > .marine-map, .helm-map [data-live-map] { position: absolute; inset: 0; width: 100%; height: 100%; }
.helm-map .map-art { display: none; }
.helm-map .map-tools, .helm-map .map-scale, .helm-map .user-location { display: none; }
.helm-map::after { position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgb(0 22 40 / 48%) 0, transparent 23%, transparent 67%, rgb(0 19 36 / 72%) 100%); content: ''; }
.helm-map-fallback { position: absolute; z-index: 2; inset: 0; display: grid; place-content: center; gap: 8px; background: radial-gradient(circle at 50% 38%, #0d7a87, #042844 70%); text-align: center; }
.helm-map-fallback[hidden] { display: none; }
.helm-map-fallback .sw-icon { width: 44px; margin: auto; }
.helm-map-fallback span { max-width: 280px; color: rgb(255 255 255 / 74%); font-size: 12px; }
.helm-status-bar { position: absolute; z-index: 8; top: calc(env(safe-area-inset-top) + 10px); right: 12px; left: 12px; display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; align-items: center; gap: 9px; }
.helm-status-bar > :is(a, button) { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgb(255 255 255 / 28%); border-radius: 50%; background: rgb(3 34 57 / 82%); box-shadow: 0 7px 24px rgb(0 17 30 / 30%); color: white; backdrop-filter: blur(14px); }
.helm-status-bar > :is(a, button) .sw-icon { width: 20px; }
.helm-status-bar > a .sw-icon { transform: rotate(180deg); }
.helm-status-bar > div { display: flex; min-width: 0; height: 42px; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid rgb(255 255 255 / 20%); border-radius: 999px; background: rgb(3 34 57 / 82%); box-shadow: 0 7px 24px rgb(0 17 30 / 30%); backdrop-filter: blur(14px); }
.helm-status-bar strong { color: #8affad; font-size: 10px; letter-spacing: .08em; }
.helm-status-bar time { font-size: 12px; font-variant-numeric: tabular-nums; }
.helm-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #5fe375; box-shadow: 0 0 0 5px rgb(95 227 117 / 14%); }
.helm-alert { position: absolute; z-index: 7; top: calc(env(safe-area-inset-top) + 68px); right: 12px; left: 12px; display: grid; min-height: 48px; grid-template-columns: 22px minmax(0, 1fr) 18px; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid rgb(255 229 146 / 55%); border-radius: 14px; background: rgb(70 54 4 / 88%); box-shadow: 0 8px 26px rgb(0 17 30 / 28%); backdrop-filter: blur(14px); }
.helm-alert.is-danger { border-color: rgb(255 154 160 / 70%); background: rgb(100 18 29 / 90%); }
.helm-alert.is-ready { border-color: rgb(111 242 185 / 60%); background: rgb(5 83 69 / 88%); }
.helm-alert > .sw-icon { width: 20px; }
.helm-alert a { color: inherit; }
.helm-alert a .sw-icon { width: 16px; }
.helm-alert strong, .helm-alert span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.helm-alert strong { font-size: 10px; }
.helm-alert span { margin-top: 2px; color: rgb(255 255 255 / 72%); font-size: 8px; }
.helm-target-chip { position: absolute; z-index: 6; top: calc(env(safe-area-inset-top) + 126px); left: 12px; max-width: min(280px, calc(100vw - 80px)); padding: 8px 12px; border-radius: 12px; background: rgb(3 34 57 / 82%); box-shadow: 0 8px 24px rgb(0 17 30 / 26%); backdrop-filter: blur(12px); }
.helm-target-chip :is(small, strong, span, em) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.helm-target-chip small { color: #6ce3d5; font-size: 7px; font-weight: 850; letter-spacing: .1em; }
.helm-target-chip strong { margin-top: 2px; font-size: 12px; }
.helm-target-chip span { margin-top: 2px; color: rgb(255 255 255 / 70%); font-size: 8px; }
.helm-target-chip em { margin-top: 1px; color: rgb(255 255 255 / 58%); font-size: 7px; font-style: normal; }
.helm-page.has-low-gps .helm-target-chip em { color: #ffd788; font-weight: 800; }
.helm-hud { position: absolute; z-index: 7; right: 10px; bottom: calc(env(safe-area-inset-bottom) + 94px); left: 10px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: hidden; border: 1px solid rgb(255 255 255 / 22%); border-radius: 17px; background: rgb(2 29 49 / 86%); box-shadow: 0 14px 34px rgb(0 15 29 / 42%); backdrop-filter: blur(15px); }
.helm-hud article { min-width: 0; padding: 8px 5px; border-right: 1px solid rgb(255 255 255 / 12%); text-align: center; }
.helm-hud article:last-child { border-right: 0; }
.helm-hud :is(small, strong, span) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.helm-hud small { color: #73e1d5; font-size: 6px; font-weight: 850; letter-spacing: .06em; }
.helm-hud strong { margin-top: 3px; font-size: 15px; font-variant-numeric: tabular-nums; }
.helm-hud span { margin-top: 1px; color: rgb(255 255 255 / 62%); font-size: 6px; }
.helm-map-controls { position: absolute; z-index: 7; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 164px); display: grid; gap: 8px; }
.helm-map-controls button { display: grid; width: 52px; min-height: 52px; place-items: center; gap: 1px; padding: 5px; border: 1px solid rgb(255 255 255 / 26%); border-radius: 17px; background: rgb(255 255 255 / 94%); box-shadow: 0 8px 24px rgb(0 17 30 / 30%); color: #073858; font: inherit; }
.helm-map-controls .sw-icon { width: 19px; }
.helm-map-controls b { display: grid; width: 21px; height: 21px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 9px; }
.helm-map-controls span { font-size: 6px; font-weight: 800; }
.helm-page[data-helm-follow="false"] [data-action="helm-recenter"] { background: #fff0c7; }
.helm-connection { position: absolute; z-index: 7; bottom: calc(env(safe-area-inset-bottom) + 169px); left: 12px; display: inline-flex; min-height: 30px; align-items: center; gap: 7px; padding: 0 10px; border-radius: 999px; background: rgb(3 34 57 / 80%); color: rgb(255 255 255 / 78%); font-size: 7px; backdrop-filter: blur(12px); }
.helm-connection i { width: 7px; height: 7px; border-radius: 50%; background: #65e684; }
.helm-connection.is-offline i { background: #ffcf5d; }
.helm-action-bar { position: absolute; z-index: 9; right: 0; bottom: 0; left: 0; display: grid; height: calc(76px + env(safe-area-inset-bottom)); grid-template-columns: repeat(5, 1fr); padding: 4px 8px env(safe-area-inset-bottom); border-top: 1px solid rgb(255 255 255 / 17%); background: rgb(3 26 44 / 94%); box-shadow: 0 -10px 30px rgb(0 16 28 / 34%); backdrop-filter: blur(20px); }
.helm-action-bar :is(a, button) { display: grid; min-width: 0; place-items: center; align-content: center; gap: 4px; padding: 4px; border: 0; background: transparent; color: white; font: inherit; text-decoration: none; }
.helm-action-bar .sw-icon { width: 23px; color: #66e4d7; }
.helm-action-bar span { font-size: 8px; font-weight: 750; }
.helm-disclaimer { position: absolute; z-index: 6; right: 9px; bottom: calc(env(safe-area-inset-bottom) + 77px); left: 9px; margin: 0; color: rgb(255 255 255 / 55%); font-size: 6px; text-align: center; text-shadow: 0 1px 3px #00101d; }
.helm-sheet { position: absolute; z-index: 20; right: 0; bottom: 0; left: 0; max-height: min(84dvh, 760px); overflow-y: auto; padding: 18px 18px calc(env(safe-area-inset-bottom) + 18px); border-radius: 25px 25px 0 0; background: rgb(250 252 253 / 98%); box-shadow: 0 -24px 60px rgb(0 18 33 / 48%); color: var(--sw-navy-900); }
.helm-sheet[hidden] { display: none; }
.helm-sheet > header { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.helm-sheet header small { color: var(--sw-teal-700); font-size: 8px; font-weight: 850; letter-spacing: .1em; }
.helm-sheet h2 { margin: 3px 0 0; font-size: 24px; }
.helm-sheet header button { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--sw-line); border-radius: 50%; background: white; color: var(--sw-navy-900); font-size: 25px; }
.helm-sheet details { padding: 11px 2px; border-top: 1px solid var(--sw-line); }
.helm-sheet summary { cursor: pointer; font-size: 13px; font-weight: 820; }
.helm-sheet details > p { margin: 9px 0 4px; color: var(--sw-text-soft); font-size: 10px; line-height: 1.5; }
.helm-sheet details > a { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; color: var(--sw-teal-700); font-size: 10px; font-weight: 780; text-decoration: none; }
.helm-sheet details > a .sw-icon { width: 13px; }
.helm-route-list { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.helm-route-list li { display: grid; grid-template-columns: 27px minmax(0, 1fr); align-items: center; gap: 8px; }
.helm-route-list li > span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: var(--sw-teal-700); color: white; font-size: 10px; font-weight: 850; }
.helm-route-list strong, .helm-route-list small { display: block; }
.helm-route-list strong { font-size: 11px; }
.helm-route-list small { color: var(--sw-text-soft); font-size: 8px; text-transform: capitalize; }
.helm-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 9px; }
.helm-detail-grid span { min-width: 0; padding: 9px; border-radius: 12px; background: var(--sw-surface-soft); }
.helm-detail-grid small, .helm-detail-grid strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.helm-detail-grid small { color: var(--sw-text-soft); font-size: 7px; }
.helm-detail-grid strong { margin-top: 3px; font-size: 11px; }
.helm-mob-button, .helm-pause-track, .helm-end-trip { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; border-radius: 999px; font: inherit; font-weight: 830; }
.helm-wake-lock { min-height: 38px; margin-top: 9px; padding: 0 14px; border: 1px solid var(--sw-line); border-radius: 999px; background: white; color: var(--sw-navy-900); font: inherit; font-size: 10px; font-weight: 780; }
.helm-mob-button { border: 1px solid #d9868d; background: #fff1f2; color: #a11927; }
.helm-pause-track { border: 1px solid var(--sw-line); background: white; color: var(--sw-navy-900); }
.helm-end-trip { border: 0; background: #a11927; color: white; }
.helm-mob-button .sw-icon, .helm-pause-track .sw-icon, .helm-end-trip .sw-icon { width: 19px; }
.helm-vessel-marker { display: grid; width: 42px; height: 42px; place-items: center; border: 3px solid white; border-radius: 50%; background: #0a92a0; box-shadow: 0 0 0 12px rgb(68 225 215 / 15%), 0 8px 22px rgb(0 18 32 / 44%); }
.helm-vessel-marker i { width: 0; height: 0; border-right: 8px solid transparent; border-bottom: 18px solid white; border-left: 8px solid transparent; transform: rotate(var(--helm-heading)); }
.helm-trip-summary > strong { display: block; font-size: 18px; }
.helm-trip-summary > div { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.helm-trip-summary span { padding: 10px; border-radius: 12px; background: var(--sw-surface-soft); }
.helm-trip-summary small, .helm-trip-summary b { display: block; }
.helm-trip-summary small { color: var(--sw-text-soft); font-size: 8px; }
.helm-trip-summary b { margin-top: 3px; font-size: 12px; }
.helm-trip-summary p { color: var(--sw-text-soft); font-size: 9px; }
.helm-page .map-layer-panel { top: calc(env(safe-area-inset-top) + 124px); right: 12px; }

@media (min-width: 760px) {
  .helm-status-bar { right: 22px; left: 22px; }
  .helm-alert { top: calc(env(safe-area-inset-top) + 72px); right: auto; left: 22px; width: min(560px, calc(100vw - 44px)); }
  .helm-target-chip { top: calc(env(safe-area-inset-top) + 134px); left: 22px; }
  .helm-hud { right: 22px; bottom: 24px; left: 22px; width: min(760px, calc(100vw - 370px)); }
  .helm-action-bar { top: 50%; right: 22px; bottom: auto; left: auto; width: 84px; height: auto; grid-template-columns: 1fr; padding: 8px; border: 1px solid rgb(255 255 255 / 18%); border-radius: 22px; transform: translateY(-50%); }
  .helm-action-bar :is(a, button) { min-height: 64px; }
  .helm-map-controls { right: 124px; bottom: 24px; grid-template-columns: repeat(2, 58px); }
  .helm-connection { bottom: 114px; left: 22px; }
  .helm-disclaimer { right: auto; bottom: 7px; left: 24px; width: min(730px, calc(100vw - 390px)); }
  .helm-sheet { top: 0; right: 0; bottom: 0; left: auto; width: min(390px, 40vw); max-height: none; padding: 28px 24px; border-radius: 0; }
  .helm-page .map-layer-panel { top: 125px; right: 124px; }
}

/* Global overlap and overflow hardening (2026-09-24). */
*, *::before, *::after { box-sizing: border-box; }
html, body, #app, .app-shell, .app-stage { max-width: 100%; }
html, body { overflow-x: clip; }
:is(main, section, article, aside, header, footer, nav, form, div, label) { min-width: 0; }
img, svg, canvas { max-width: 100%; }
button, input, select, textarea { max-width: 100%; }
:is(h1, h2, h3, p, strong, small, em, a, button, label) { overflow-wrap: anywhere; }

.brand { min-width: 0; flex: 0 1 auto; }
.brand-logo { width: 42px; height: 42px; aspect-ratio: 1; }
.brand-word { white-space: nowrap; }
.mobile-header { gap: 5px; }
.mobile-header .brand { max-width: calc(100% - 98px); }
.mobile-header .icon-button { width: 42px; height: 42px; flex: 0 0 42px; padding: 0; }
.mobile-profile-avatar { flex: 0 0 auto; }

.ask-floating-bubble {
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(var(--sw-bottom-nav-height) + env(safe-area-inset-bottom) + 12px);
  max-width: min(160px, calc(100vw - 24px));
  min-height: 46px;
  padding-inline: 14px;
  white-space: nowrap;
}
body:has(:is(.live-modal-backdrop, .ask-overlay-backdrop)) .ask-floating-bubble { opacity: 0; pointer-events: none; }

@media (min-width: 960px) {
  .ask-floating-bubble .ask-label-mobile { display: none; }
  .ask-floating-bubble .ask-label-desktop { display: inline; }
}

/* Hero content and art have independent layout tracks at every width. */
.hero-card {
  display: grid;
  min-height: 310px;
  grid-template-columns: minmax(0, 58%) minmax(0, 42%);
  align-items: stretch;
}
.hero-copy {
  position: relative;
  inset: auto;
  width: auto;
  min-height: 310px;
  padding: 20px 4px 18px 20px;
}
.hero-copy h2 {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(28px, 8vw, 42px);
  line-height: 1.02;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.hero-media {
  position: relative;
  z-index: 2;
  display: grid;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  padding: 28px 8px 72px 0;
  pointer-events: none;
}
.hero-media .hero-fish {
  position: static;
  width: 112%;
  height: 100%;
  max-height: 210px;
  object-fit: contain;
  object-position: center;
  transform: scaleX(-1);
}
.hero-media .hero-fish.art-unavailable { display: grid; width: 100%; place-items: center; }

.target-name {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.target-card .forecast-regulation { align-items: start; white-space: normal; }

.area-card {
  grid-template-columns: 42% minmax(0, 1fr) 16px;
  padding-right: 8px;
}
.area-info { align-self: stretch; align-content: center; padding: 10px 7px; }
.area-info strong {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.area-info em { width: fit-content; max-width: 100%; white-space: normal; }
.area-info small { min-width: 0; }
.area-info > small { white-space: nowrap; }
.area-species-row { display: flex; min-width: 0; align-items: end; justify-content: space-between; gap: 7px; }
.area-species-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.area-score { position: static; flex: 0 0 auto; color: var(--sw-teal-700); font-size: 22px; font-weight: 780; line-height: 1; }
.area-card > .sw-icon { position: static; width: 15px; align-self: center; }

/* Species hero names, metrics and artwork never share the same pixels. */
.species-hero {
  display: grid;
  min-height: 286px;
  grid-template-columns: minmax(0, 58%) minmax(0, 42%);
  align-items: stretch;
}
.species-hero-copy {
  position: relative;
  z-index: 2;
  top: auto;
  left: auto;
  align-content: center;
  padding: 30px 6px 40px 18px;
}
.species-hero-copy h1 {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(30px, 9vw, 40px);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.species-hero-copy > strong { font-size: clamp(46px, 14vw, 62px); }
.species-hero-copy > span { align-items: start; }
.species-hero-media {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  padding: 30px 8px 42px 0;
}
.species-hero-media > img {
  position: static;
  width: 116%;
  height: 100%;
  max-height: 220px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 20px 16px rgb(4 40 68 / 18%));
  transform: scaleX(-1) rotate(2deg);
}
.species-hero-media .species-art-unavailable { display: grid; width: 100%; place-items: center; }
.species-qualitative-hero .species-hero-media img { box-sizing: border-box; object-fit: contain; object-position: center; }
.species-primary-actions :is(a, button) { min-width: 0; padding: 8px 12px; text-align: center; }

/* Provider names, status, timestamps, and diagnostics use separate tracks. */
.environment-source {
  grid-template-columns: minmax(0, 1fr) minmax(110px, auto);
  align-items: start;
}
.environment-source-copy, .environment-source-status { min-width: 0; }
.environment-source-copy strong, .environment-source-copy small, .environment-source-copy em { white-space: normal; overflow-wrap: anywhere; }
.environment-source-status { display: grid; justify-items: end; gap: 6px; text-align: right; }
.environment-source-status .source-state { width: fit-content; max-width: 100%; white-space: normal; text-align: center; }
.environment-source-status time { white-space: normal; }

/* Map and directory filters must shrink or stack, never escape the viewport. */
.map-filter-bar, .map-filter-row, .map-search, .map-best-for { min-width: 0; max-width: 100%; }
.map-search input { min-width: 0; width: auto; }
.map-filter-row > * { min-width: 0; }
.map-filter { overflow: hidden; }
.map-filter span { overflow: hidden; text-overflow: ellipsis; }
.map-habitat-filter, .map-directory-link { max-width: 100%; }
.detail-title-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(92px, 36%); align-items: center; }
.detail-title-row h1 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.detail-title-row img { width: 100%; height: 76px; margin: 0; object-fit: contain; }

.reef-explorer-search, .reef-filter-panel, .reef-filter-panel > div { min-width: 0; max-width: 100%; }
.reef-explorer-search > *, .reef-filter-panel label { min-width: 0; }
.reef-filter-panel input, .reef-filter-panel select { width: 100%; min-width: 0; }
.reef-filter-panel .reef-filter-check input { width: auto; }
.reef-filter-panel button { width: 100%; }

/* Explore card controls remain usable with long names and regional labels. */
.post-card, .post-card > *, .post-card > header > * { min-width: 0; }
.post-copy p, .post-recorded-details, .comment-preview :is(strong, b, small) { overflow-wrap: anywhere; }
.post-card > footer button { min-width: 0; padding-inline: 5px; }

@media (max-width: 959px) {
  .hero-copy { width: auto; min-height: 310px; padding-left: 20px; }
  .hero-fish { position: static; width: 112%; height: 100%; }
  .area-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(285px, 82vw);
    overflow-x: auto;
    padding: 2px 2px 12px;
    scroll-snap-type: x proximity;
  }
  .area-card { min-height: 122px; scroll-snap-align: start; }
  .map-filter-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .map-filter-row > :first-child { grid-column: 1 / -1; }
  .map-filter-row > :is(.map-habitat-filter, .map-directory-link), .map-best-for { grid-column: 1 / -1; }
  .map-filter-row > :first-child span { overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 620px) {
  .environment-source { grid-template-columns: minmax(0, 1fr); }
  .environment-source-status { grid-column: 1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-items: start; text-align: left; }
  .environment-source-status time { justify-self: end; text-align: right; }
  .reef-filter-panel > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .brand-logo { width: 38px; height: 38px; }
  .brand-word { font-size: 23px; }
  .hero-card { grid-template-columns: minmax(0, 62%) minmax(0, 38%); }
  .hero-copy { padding-left: 17px; }
  .hero-media { padding-right: 2px; }
  .species-hero { grid-template-columns: minmax(0, 62%) minmax(0, 38%); }
  .species-hero-copy { padding-left: 16px; }
  .species-primary-actions { grid-template-columns: minmax(0, 1fr); }
  .reef-filter-panel > div { grid-template-columns: minmax(0, 1fr); }
  .reef-filter-panel button { position: sticky; bottom: 0; }
  .post-card > header { grid-template-columns: 37px minmax(0, 1fr) auto 28px; gap: 5px; padding-inline: 8px; }
  .post-follow { min-width: 50px; padding-inline: 7px !important; }
  .post-copy { grid-template-columns: minmax(82px, 34%) minmax(0, 1fr); gap: 8px; }
  .post-card > footer button > span:not(:first-child) { max-width: 44px; overflow: hidden; text-overflow: ellipsis; }
}

@media (min-width: 960px) {
  .ask-floating-bubble {
    right: 24px;
    bottom: max(18px, env(safe-area-inset-bottom));
    left: auto;
    width: auto;
    max-width: min(230px, calc(100vw - 48px));
    min-height: 52px;
    justify-content: center;
    padding-inline: 20px;
    line-height: 1.08;
    text-align: center;
    white-space: nowrap;
  }
  .hero-card { min-height: 414px; grid-template-columns: minmax(0, 48%) minmax(0, 52%); }
  .hero-copy { min-height: 414px; width: auto; padding: 38px 10px 38px 38px; }
  .hero-copy h2 { font-size: clamp(34px, 3.2vw, 48px); }
  .hero-media { padding: 42px 30px 62px 0; }
  .hero-media .hero-fish { width: 100%; max-height: 310px; }
  .area-card { grid-template-columns: 39% minmax(0, 1fr) 18px; }
  .area-score { margin: 0; font-size: 29px; }
  .species-hero { min-height: 350px; grid-template-columns: minmax(0, 48%) minmax(0, 52%); }
  .species-hero-copy { top: auto; left: auto; padding: 46px 10px 54px 48px; }
  .species-hero-copy h1 { font-size: clamp(42px, 4.4vw, 58px); }
  .species-hero-copy > strong { font-size: 88px; }
  .species-hero-media { padding: 38px 28px 48px 0; }
  .species-hero-media > img { width: 100%; max-height: 290px; }
}

@media (max-width: 370px) {
  .brand-word { font-size: 21px; }
  .mobile-header .brand { gap: 7px; }
  .ask-floating-bubble { right: 9px; padding-inline: 11px; font-size: 12px; }
  .hero-copy h2 { font-size: clamp(26px, 8.4vw, 32px); }
  .hero-score strong { font-size: 39px; }
  .species-hero-copy h1 { font-size: clamp(27px, 8.7vw, 35px); }
  .map-filter { padding-inline: 7px; }
  .map-filter .sw-icon { width: 16px; }
}

/* Forecast art crosses its grid track while the directional mask protects copy. */
.hero-card { isolation: isolate; }
.hero-copy { isolation: isolate; }
.hero-copy::before {
  position: absolute;
  z-index: 0;
  inset: 0 -22% 0 0;
  background: linear-gradient(90deg, rgb(2 27 52 / 94%), rgb(2 30 53 / 74%) 66%, transparent);
  content: '';
  pointer-events: none;
}
.hero-copy > * { position: relative; z-index: 1; }
.hero-media { overflow: visible; padding: 0; }
.hero-media .hero-fish {
  position: absolute;
  top: 50%;
  right: 0;
  width: min(170vw, 780px);
  max-width: none;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: right center;
  -webkit-mask-image: linear-gradient(90deg, rgb(0 0 0 / 78%) 0%, rgb(0 0 0 / 72%) 30%, rgb(0 0 0 / 28%) 62%, transparent 100%);
  mask-image: linear-gradient(90deg, rgb(0 0 0 / 78%) 0%, rgb(0 0 0 / 72%) 30%, rgb(0 0 0 / 28%) 62%, transparent 100%);
  transform: translateY(-50%) scaleX(-1);
}
.hero-media .hero-fish.art-unavailable { position: relative; width: 100%; height: 100%; transform: none; }
.hero-copy .primary-cta { min-height: 42px; }
.species-hero-media { overflow: visible; padding: 0; }
.species-hero-media > img {
  position: absolute;
  top: 50%;
  right: -8%;
  width: min(125vw, 720px);
  max-width: none;
  height: 100%;
  max-height: none;
  object-position: right center;
  -webkit-mask-image: linear-gradient(90deg, rgb(0 0 0 / 80%), rgb(0 0 0 / 80%) 30%, rgb(0 0 0 / 30%) 65%, transparent);
  mask-image: linear-gradient(90deg, rgb(0 0 0 / 80%), rgb(0 0 0 / 80%) 30%, rgb(0 0 0 / 30%) 65%, transparent);
  transform: translateY(-50%) scaleX(-1);
}
.species-hero-copy { z-index: 3; }
.species-hero {
  min-height: 310px;
  background: var(--sw-navy-900) url('/ui/assets/backgrounds/home-ocean.webp') center / cover no-repeat;
  box-shadow: var(--sw-shadow-card);
  color: white;
  isolation: isolate;
}
.species-hero::after {
  z-index: 0;
  background: linear-gradient(90deg, rgb(4 30 58 / 94%) 0%, rgb(4 46 73 / 68%) 48%, transparent 82%);
}
.species-hero-copy { align-content: start; padding: 20px 4px 20px 20px; isolation: isolate; }
.species-hero-copy::before {
  position: absolute;
  z-index: 0;
  inset: 0 -22% 0 0;
  background: linear-gradient(90deg, rgb(2 27 52 / 94%), rgb(2 30 53 / 74%) 66%, transparent);
  content: '';
  pointer-events: none;
}
.species-hero-copy > * { position: relative; z-index: 1; }
.species-hero-copy p { color: rgb(255 255 255 / 78%); }
.species-hero-copy h1 { margin-bottom: 0; color: white; }
.species-hero-score { max-width: 100%; margin-top: 12px; }
.species-hero-score span { line-height: 1.15; }
.species-hero-copy .forecast-score-basis { max-width: 100%; color: rgb(221 255 252 / 86%); }
.species-hero-copy > .species-hero-confidence { margin-top: 12px; color: rgb(255 255 255 / 84%); }
.species-hero-confidence .sw-icon { color: var(--sw-aqua-400); }
.species-page-qualitative .species-hero-copy > strong { max-width: 100%; color: var(--sw-aqua-400); line-height: 1.05; }
.species-page-qualitative .species-hero-copy > b { color: var(--sw-aqua-400); }
.species-page-qualitative .species-hero-copy > span { color: rgb(255 255 255 / 84%); }
.species-hero-media > img {
  z-index: 1;
  right: 0;
  width: min(170vw, 780px);
  filter: drop-shadow(0 18px 16px rgb(1 29 47 / 35%));
  -webkit-mask-image: linear-gradient(90deg, rgb(0 0 0 / 78%) 0%, rgb(0 0 0 / 72%) 30%, rgb(0 0 0 / 28%) 62%, transparent 100%);
  mask-image: linear-gradient(90deg, rgb(0 0 0 / 78%) 0%, rgb(0 0 0 / 72%) 30%, rgb(0 0 0 / 28%) 62%, transparent 100%);
  transform: translateY(-50%) scaleX(-1);
}
@media (max-width: 959px) {
  .species-hero { margin: 10px 14px 0; border-radius: var(--sw-radius-xl); }
}
@media (min-width: 960px) {
  .species-hero { min-height: 414px; }
  .species-hero-copy { padding: 38px 10px 38px 38px; }
}
.forecast-loading-overlay {
  position: fixed;
  z-index: 20;
  top: clamp(180px, 33vh, 390px);
  left: 50%;
  display: grid;
  width: min(360px, calc(100vw - 42px));
  min-height: 132px;
  place-content: center;
  justify-items: center;
  gap: 13px;
  padding: 22px;
  border: 1px solid rgb(164 241 235 / 34%);
  border-radius: 22px;
  background: linear-gradient(135deg, rgb(3 39 71 / 92%), rgb(3 102 117 / 91%));
  box-shadow: 0 22px 55px rgb(2 30 51 / 25%);
  color: white;
  text-align: center;
  pointer-events: none;
  transform: translateX(-50%);
}
.forecast-loading-overlay strong { font-size: 16px; line-height: 1.35; }
.forecast-loading-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.forecast-loading-wave { display: flex; align-items: end; gap: 5px; height: 25px; }
.forecast-loading-wave i { width: 6px; height: 13px; border-radius: 6px; background: #6fe5df; animation: forecast-water-pulse 1.7s ease-in-out infinite; }
.forecast-loading-wave i:nth-child(2) { animation-delay: .2s; }
.forecast-loading-wave i:nth-child(3) { animation-delay: .4s; }
@keyframes forecast-water-pulse { 50% { height: 24px; opacity: .7; } }
@media (prefers-reduced-motion: reduce) {
  .forecast-loading-wave i, .state-page--loading :is(.skeleton-hero, .skeleton-cards i, .skeleton-chart, .skeleton-photo, .skeleton-route, .skeleton-profile, .skeleton-post, .skeleton-list, .skeleton-sheet)::after { animation: none; }
}

/* Final cascade guard: keep Reef Explorer and Axiwise responsive after legacy rules. */
.reef-explorer-page { width: 100%; max-width: 100%; overflow-x: clip; }
.reef-explorer-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}
.reef-explorer-heading > * { min-width: 0; }
.reef-explorer-heading > a { max-width: 100%; white-space: nowrap; }
.reef-explorer-search {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto auto;
  width: 100%;
}
.reef-explorer-search > label { width: auto; }
.reef-explorer-search > button, .reef-filter-panel summary { min-height: 52px; }
.reef-explorer-layout { grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr); }
.reef-explorer-layout > * { min-width: 0; }

@media (min-width: 960px) {
  .ask-floating-bubble {
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    left: auto;
    width: auto;
    max-width: min(210px, calc(100vw - 48px));
    min-height: 52px;
    justify-content: center;
    padding-inline: 17px;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
  }
}

@media (min-width: 960px) and (max-width: 1279px) {
  .reef-explorer-search { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reef-explorer-search > label { grid-column: 1 / -1; }
  .reef-explorer-search > button, .reef-filter-panel summary { justify-content: center; }
  .reef-explorer-layout { grid-template-columns: minmax(0, 1fr) minmax(260px, 34%); gap: 16px; }
}

/* Final Ask affordance contract: compact question-mark button on handhelds,
   one explicit label on desktop. */
@media (max-width: 959px) {
  .ask-floating-bubble {
    width: auto;
    min-width: 58px;
    max-width: 88px;
    height: 52px;
    min-height: 52px;
    padding: 0 14px;
    border-radius: 26px;
    font-size: 15px;
    line-height: 1;
  }
  .ask-floating-bubble .ask-label-mobile { display: inline; }
  .ask-floating-bubble .ask-label-desktop { display: none; }
}

@media (max-width: 959px) {
  .reef-explorer-heading { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .reef-explorer-heading > a { white-space: normal; }
  .reef-explorer-search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reef-explorer-search > label { grid-column: 1 / -1; }
  .reef-explorer-layout { grid-template-columns: minmax(0, 1fr); }
}
/* Primary mobile marine maps: only the actual map surface captures pan/pinch.
   The result sheet and surrounding page retain their own scrolling. */
.mobile-map-toolbar { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--sw-navy-900); font-size: 12px; font-weight: 800; }
.mobile-map-toolbar > span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-map-toolbar button { min-height: 38px; padding: 0 11px; border: 1px solid var(--sw-line); border-radius: 12px; background: white; color: var(--sw-navy-900); font: inherit; }
.mobile-map-toolbar button[hidden], .mobile-map-sheet[hidden] { display: none; }
.mobile-map-sheet { position: absolute; z-index: 14; right: 0; bottom: 0; left: 0; max-height: min(67dvh, 540px); overflow: hidden; border-radius: 22px 22px 0 0; background: rgb(255 255 255 / 97%); box-shadow: 0 -12px 34px rgb(1 24 47 / 25%); color: var(--sw-navy-900); }
.mobile-map-sheet-handle { display: grid; width: 100%; min-height: 95px; gap: 3px; padding: 9px 50px 13px 17px; border: 0; background: transparent; color: inherit; text-align: left; touch-action: pan-y; }
.mobile-map-sheet-handle > span { width: 38px; height: 5px; margin: 0 auto 5px; border-radius: 5px; background: #a6bdc9; }
.mobile-map-sheet-handle strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.mobile-map-sheet-handle small { overflow: hidden; color: var(--sw-text-soft); text-overflow: ellipsis; white-space: nowrap; }
.mobile-map-sheet-close { position: absolute; top: 19px; right: 13px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #eaf2f4; color: var(--sw-navy-900); font-size: 25px; }
.mobile-map-sheet-body { max-height: calc(min(67dvh, 540px) - 95px); overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.mobile-map-sheet[data-state="collapsed"] .mobile-map-sheet-body { display: none; }
.mobile-map-sheet-body .dive-result-card { margin: 0; border: 0; box-shadow: none; }
.mobile-map-sheet-body .reef-explorer-detail { position: static; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.dive-mobile-filter-only { display: none !important; }
@media (max-width: 959px) {
  [data-mobile-map-canvas] [data-live-map],
  [data-mobile-map-canvas] .maplibregl-canvas-container, [data-mobile-map-canvas] canvas.maplibregl-canvas {
    touch-action: none !important; overscroll-behavior: contain; }
  [data-mobile-map-canvas] { overscroll-behavior: contain; }
  [data-mobile-map-canvas] .map-tools { top: 12px; right: 12px; bottom: auto; }
  [data-mobile-map-canvas] .structure-feature-card { bottom: 110px; }
  .dive-page[data-dive-view="map"] > .mobile-header,
  .dive-page[data-dive-view="map"] .dive-heading,
  .reef-explorer-page > .mobile-header,
  .reef-explorer-page .reef-directory-heading { display: none; }
  .dive-page[data-dive-view="map"] .dive-heading { padding-block: 5px; }
  .dive-page[data-dive-view="map"] .dive-heading h1 { font-size: 25px; }
  .dive-page[data-dive-view="map"] .dive-advisory { display: none; }
  .dive-page[data-dive-view="map"] .dive-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-bottom: 5px; }
  .dive-page[data-dive-view="map"] .dive-controls > label,
  .dive-page[data-dive-view="map"] .dive-controls > button[data-action="dive-near-me"] { display: none; }
  .dive-page[data-dive-view="map"] .dive-view-toggle,
  .dive-page[data-dive-view="map"] .dive-more-filters { grid-column: auto; }
  .dive-page[data-dive-view="map"] .dive-mobile-filter-only { display: grid !important; }
  .dive-page[data-dive-view="map"] .dive-map-section { margin: 6px -15px 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .dive-page[data-dive-view="map"] .dive-map-section > .inline-title { display: none; }
  .dive-page[data-dive-view="map"] .mobile-map-toolbar { padding-inline: 15px; }
  .dive-page[data-dive-view="map"] .dive-map-canvas,
  .reef-explorer-page .reef-directory-map-canvas { height: max(180px, min(72dvh, calc(100dvh - var(--sw-bottom-nav-height) - env(safe-area-inset-bottom) - 170px))); min-height: 0; border-radius: 0; }
  .dive-page[data-dive-view="map"] .dive-map-canvas .marine-map { min-height: 0; height: 100%; }
  .dive-map-status { top: 11px; right: auto; bottom: auto; left: 10px; max-width: calc(100% - 115px); }
  .reef-explorer-page .reef-directory-map { margin-inline: -14px; padding: 0; border: 0; border-radius: 0; }
  .reef-explorer-page .reef-directory-map > .inline-title { display: none; }
  .reef-explorer-page .mobile-map-toolbar { padding-inline: 14px; }
  .reef-explorer-page .reef-explorer-layout > aside { display: none; }
  .reef-explorer-page .reef-directory-heading { margin-bottom: 9px; }
  .reef-explorer-page .reef-directory-heading span { display: none; }
  .reef-explorer-page .reef-directory-heading > a { display: none; }
  .reef-explorer-page .reef-explorer-search { grid-template-columns: minmax(0, 1fr) auto; margin-bottom: 8px; }
  .reef-explorer-page .reef-explorer-search > label { grid-column: auto; }
  .reef-explorer-page .reef-explorer-search > button[type="submit"] { padding: 0 13px; }
  .reef-explorer-page .reef-explorer-search > button[data-action="reef-near-me"] { display: none; }
  .reef-explorer-page .reef-filter-panel { grid-column: 1 / -1; }
  .reef-explorer-page .reef-filter-panel summary { min-height: 40px; }
  .reef-filter-panel summary b { margin-left: 6px; }
  .reef-explorer-page .reef-directory-results { margin-top: 14px; }
  html.mobile-map-fullscreen { overflow: hidden; }
  [data-mobile-map-shell].is-map-expanded { position: fixed !important; z-index: 250; inset: env(safe-area-inset-top) 0 0; display: flex; flex-direction: column; width: 100vw; height: calc(100dvh - env(safe-area-inset-top)); margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: white; }
  [data-mobile-map-shell].is-map-expanded > .inline-title { display: none; }
  [data-mobile-map-shell].is-map-expanded > .mobile-map-toolbar { flex: 0 0 auto; min-height: 52px; margin: 0; }
  [data-mobile-map-shell].is-map-expanded > [data-mobile-map-canvas] { flex: 1 1 auto; min-height: 0; height: auto !important; }
  [data-mobile-map-shell].is-map-expanded .marine-map { height: 100%; }
}

/* Guided Plan trip questionnaire and honest unsaved estimates. */
.trip-location-picker { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.trip-wizard-progress { display: grid; grid-column: 1 / -1; gap: 4px; padding: 14px 16px; border: 1px solid var(--sw-line); border-radius: 16px; background: var(--sw-surface-raised); }
.trip-wizard-progress small { color: var(--sw-teal-700); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.trip-wizard-progress strong { color: var(--sw-navy-900); font-size: 19px; }
.trip-wizard-progress > span { height: 6px; margin-top: 5px; overflow: hidden; border-radius: 8px; background: var(--sw-line); }
.trip-wizard-progress i { display: block; height: 100%; border-radius: inherit; background: var(--sw-teal-600); transition: width .2s ease; }
.trip-wizard-step { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.trip-wizard-step[data-trip-step="3"] > label { grid-column: 1 / -1; }
.trip-wizard-step[hidden], .trip-wizard-step [hidden] { display: none !important; }
.trip-wizard-question, .trip-wizard-help, .trip-wizard-step > .trip-location-picker, .trip-wizard-boat, .trip-wizard-edit-boat, .trip-wizard-review, .trip-wizard-step > .trip-preview-summary { grid-column: 1 / -1; }
.trip-wizard-question { margin: 0; color: var(--sw-navy-900); font-size: 20px; font-weight: 850; }
.trip-wizard-help { margin: 0; color: var(--sw-text-muted); font-size: 13px; line-height: 1.5; }
.trip-wizard-boat { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--sw-mint-100); }
.trip-wizard-boat strong { color: var(--sw-navy-900); }
.trip-wizard-boat span { color: var(--sw-text-soft); font-size: 13px; line-height: 1.45; }
.trip-wizard-edit-boat { color: var(--sw-teal-700); font-size: 13px; font-weight: 800; }
.trip-wizard-review { display: grid; border: 1px solid var(--sw-line); border-radius: 16px; overflow: hidden; }
.trip-wizard-review > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 13px; border-bottom: 1px solid var(--sw-line); }
.trip-wizard-review > div:last-child { border-bottom: 0; }
.trip-wizard-review span { color: var(--sw-text-muted); font-size: 12px; }
.trip-wizard-review strong { min-width: 0; color: var(--sw-navy-900); text-align: right; overflow-wrap: anywhere; }
@media (max-width: 620px) { .trip-wizard-step { grid-template-columns: minmax(0, 1fr); } }
.trip-location-picker article { display: grid; min-width: 0; gap: 4px; padding: 14px; border: 1px solid #9edbd7; border-radius: 16px; background: linear-gradient(135deg, #e8fbf8, #f4fbff); }
.trip-location-picker span { color: var(--sw-text-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.trip-location-picker strong { overflow: hidden; color: var(--sw-navy-900); text-overflow: ellipsis; white-space: nowrap; }
.trip-location-picker small { color: var(--sw-text-soft); }
.trip-location-picker button { width: fit-content; min-height: 34px; margin-top: 6px; padding: 0 12px; border: 1px solid var(--sw-teal-600); border-radius: var(--sw-radius-pill); background: white; color: var(--sw-teal-700); font-weight: 800; }
.trip-preview-summary { display: grid; grid-column: 1 / -1; gap: 4px; padding: 13px 15px; border-radius: 15px; background: var(--sw-mint-100); }
.trip-preview-summary span { color: var(--sw-text-soft); font-size: 12px; line-height: 1.45; }
.trip-manual-return-toggle { grid-column: 1 / -1; display: flex !important; flex-direction: row !important; align-items: center; gap: 9px; min-height: 42px; }
.trip-manual-return-toggle input { width: 18px; height: 18px; margin: 0; }

@media (max-width: 959px) { .trip-location-picker { grid-template-columns: minmax(0, 1fr); } }
.plan-distance-note { display: flex; align-items: center; gap: 7px; margin: 10px 0 0; color: var(--sw-text-soft); font-size: 11px; line-height: 1.4; }
.plan-distance-note .sw-icon { width: 16px; flex: 0 0 auto; }
.plan-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.plan-actions button { display: flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--sw-navy-800); border-radius: var(--sw-radius-pill); background: white; color: var(--sw-navy-900); font-weight: 720; }
.plan-actions button.start-trip { background: linear-gradient(100deg, var(--sw-navy-900), var(--sw-navy-700)); color: white; }
.plan-actions .sw-icon { width: 21px; }
.plan-actions .clear-trip { grid-column: 1 / -1; border-color: #d5a0a7; color: #9b2533; }

/* Shared unsaved Plan timing and interactive duration choices. */
.trip-duration-choices { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.trip-duration-choices button, .trip-change-boat { min-height: 44px; padding: 9px 12px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-pill); background: white; color: var(--sw-navy-900); font: inherit; font-size: 13px; font-weight: 750; }
.trip-duration-choices button[aria-pressed="true"] { border-color: var(--sw-teal-600); background: var(--sw-mint-100); color: var(--sw-teal-700); }
.trip-change-boat { grid-column: 1 / -1; justify-self: start; }
.plan-timing-note { margin: 12px 0 0; color: var(--sw-text-soft); font-size: 13px; line-height: 1.5; }
.plan-timing-note[hidden] { display: none; }
@media (max-width: 360px) { .trip-duration-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Explore public-report interaction and responsive corrections. */
.explore-regional-tool { display: grid; grid-template-columns: 24px minmax(0, 1fr) 18px; align-items: center; color: var(--sw-navy-900); text-decoration: none; }
.explore-regional-tool > span { min-width: 0; }
.explore-regional-tool :is(strong, small) { display: block; overflow-wrap: anywhere; }
.explore-regional-tool small { margin-top: 4px; color: var(--sw-text-soft); font-size: 11px; line-height: 1.45; }
.explore-regional-tool > .sw-icon { width: 100%; color: var(--sw-teal-700); }
.post-photo > .community-photo-private { position: static; width: 100%; height: 100%; min-height: 0; align-content: center; justify-items: center; padding: 30px 12px; border-radius: 0; text-align: center; color: var(--sw-text); background: var(--sw-surface-raised); backdrop-filter: none; }
.comment-list, .comment-list p, .community-post-detail, .community-post-detail :is(p, dd) { min-width: 0; overflow-wrap: anywhere; }
.community-post-options { display: grid; gap: 12px; }
.community-post-options :is(a, button) { display: flex; min-height: 44px; align-items: center; padding: 10px 14px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-pill); color: var(--sw-navy-900); background: var(--sw-surface-raised); font-weight: 700; text-decoration: none; }
.community-post-options p { margin: 0; color: var(--sw-text-soft); line-height: 1.5; }

/* Bounded Explore feed pagination; preserve existing theme tokens. */
.community-page-actions { display: grid; justify-items: center; gap: 8px; min-width: 0; padding: 14px 8px; }
.community-page-actions button { min-height: 44px; padding: 10px 18px; border: 1px solid var(--sw-line); border-radius: 24px; background: var(--sw-surface); color: var(--sw-text); font: inherit; font-weight: 700; }
.community-page-actions button:disabled { opacity: .65; }
.community-page-actions p { margin: 0; color: var(--sw-text-soft); font-size: 12px; text-align: center; overflow-wrap: anywhere; }
.community-map-heading { flex-wrap: wrap; }
.community-map-heading .community-page-actions { padding: 0; flex: 0 1 auto; }
.community-map-heading .community-page-actions button { padding: 8px 12px; font-size: 12px; }
