:root {
  --bg-0: #05080f;
  --bg-1: #0a1020;
  --bg-2: #121a2e;
  --glass: rgba(14, 22, 40, 0.72);
  --glass-soft: rgba(18, 28, 48, 0.5);
  --glass-border: rgba(148, 163, 184, 0.14);
  --text: #e8eef7;
  --muted: #8b9bb4;
  --aqua: #4db8ff;
  --aqua-soft: rgba(77, 184, 255, 0.14);
  --go: #3dd68c;
  --warn: #f0b429;
  --bad: #f07167;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  --radius: 1.15rem;
  --radius-sm: 0.8rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'Figtree', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg-0);
}

.font-ui {
  font-family: 'Figtree', system-ui, sans-serif;
}

.app-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1000px 560px at 12% -8%, rgba(77, 184, 255, 0.18), transparent 55%),
    radial-gradient(800px 500px at 92% 8%, rgba(99, 102, 241, 0.12), transparent 50%),
    radial-gradient(700px 420px at 50% 108%, rgba(14, 40, 80, 0.55), transparent 55%),
    linear-gradient(168deg, #0d1528 0%, var(--bg-1) 45%, var(--bg-0) 100%);
}

.app-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  box-shadow: var(--shadow);
}

.site-header {
  position: relative;
  z-index: 50;
  padding-bottom: 0.75rem;
}

.site-header__sticky {
  position: sticky;
  top: 0;
  z-index: 55;
  isolation: isolate;
  margin: 0 -0.15rem;
  padding: max(0.75rem, env(safe-area-inset-top)) 0.15rem 0.45rem;
  background: linear-gradient(
    180deg,
    rgba(8, 14, 26, 0.98) 0%,
    rgba(8, 14, 26, 0.92) 78%,
    rgba(8, 14, 26, 0.4) 100%
  );
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(16, 26, 48, 0.92), rgba(10, 16, 32, 0.86));
}

.header-brand {
  display: flex;
  min-width: min(11.5rem, 100%);
  flex: 1 1 11.5rem;
  align-items: center;
  gap: 0.75rem;
}

.header-brand__text {
  min-width: 0;
  position: relative;
}

#spot-subtitle.is-dimmed {
  opacity: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
}

.checklist-ready-banner {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #7eecc0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checklist-ready-banner.is-blinking {
  animation: ready-blink 0.55s ease-in-out infinite;
}

@keyframes ready-blink {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.35; filter: brightness(1.35); }
}

.header-bar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.brand-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.8rem;
  color: var(--aqua);
  background: linear-gradient(160deg, rgba(77, 184, 255, 0.22), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(77, 184, 255, 0.28);
  overflow: hidden;
}

.logo-mark__svg {
  overflow: visible;
}

.logo-sweep {
  transform-origin: 16px 12.5px;
  animation: logo-sweep 3.2s linear infinite;
}

.logo-blip-orbit {
  transform-origin: 16px 12.5px;
  animation: logo-blip-orbit 7.5s steps(5) infinite;
}

.logo-blip {
  transform-origin: 16px 5.1px;
  animation: logo-blip-pulse 1.5s ease-in-out infinite;
}

.logo-wave--1 {
  animation: logo-wave-shift 2.2s ease-in-out infinite;
}

.logo-wave--2 {
  animation: logo-wave-shift 2.2s ease-in-out infinite 0.4s;
}

@keyframes logo-sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes logo-blip-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes logo-blip-pulse {
  0%, 100% { opacity: 0.2; transform: scale(0.75); }
  35%, 55% { opacity: 1; transform: scale(1.25); }
}

@keyframes logo-wave-shift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(1.4px); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-sweep,
  .logo-blip-orbit,
  .logo-blip,
  .logo-wave--1,
  .logo-wave--2,
  .deep-link__icon--spin,
  .deep-link__icon--wave,
  .deep-link__icon--pulse {
    animation: none !important;
  }
}

.btn-icon {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.8rem;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
}

.btn-icon:hover {
  background: rgba(77, 184, 255, 0.1);
  border-color: rgba(77, 184, 255, 0.3);
}

.btn-icon:active {
  transform: scale(0.96);
}

.btn-style {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2rem;
  min-height: 2.6rem;
  height: 2.6rem;
  padding: 0 0.75rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(77, 184, 255, 0.45);
  background: rgba(77, 184, 255, 0.16);
  color: #bde8ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, border-color 0.2s, box-shadow 0.2s;
}

.btn-style:hover {
  background: rgba(77, 184, 255, 0.28);
  border-color: rgba(77, 184, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(77, 184, 255, 0.12);
}

.btn-style:active,
.btn-style.is-pulse {
  transform: scale(0.94);
}

.btn-style.is-boat {
  border-color: rgba(120, 200, 180, 0.5);
  background: rgba(80, 170, 150, 0.18);
  color: #b8f0de;
}

.btn-style.is-boat:hover {
  background: rgba(80, 170, 150, 0.3);
  border-color: rgba(120, 200, 180, 0.7);
  box-shadow: 0 0 0 3px rgba(80, 170, 150, 0.14);
}

.world-switch {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.world-switch__btn {
  min-height: 2.55rem;
  padding: 0.45rem 0.65rem;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.world-switch__label {
  display: block;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.world-switch__btn.is-active {
  background: rgba(77, 184, 255, 0.2);
  color: #dff4ff;
  box-shadow: inset 0 0 0 1px rgba(77, 184, 255, 0.35);
}

body[data-world='boat'] .world-switch__btn.is-active {
  background: rgba(80, 170, 150, 0.22);
  color: #dffaf0;
  box-shadow: inset 0 0 0 1px rgba(120, 200, 180, 0.4);
}

@media (max-width: 420px) {
  .world-switch {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .world-switch__btn {
    font-size: 0.66rem;
    min-height: 2.45rem;
    padding: 0.4rem 0.45rem;
  }
}

/* —— BOAT skipper dashboard —— */
.boat-bridge.hidden {
  display: none !important;
}

.boat-bridge__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.boat-bridge__title {
  font-family: Syne, Figtree, sans-serif;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.boat-go-status {
  flex: 0 0 auto;
  min-height: 2.4rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.55);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.boat-go-status.is-go {
  color: #b7f5d0;
  border-color: rgba(61, 214, 140, 0.45);
  background: rgba(61, 214, 140, 0.14);
}

.boat-go-status.is-ok {
  color: #cfeaff;
  border-color: rgba(77, 184, 255, 0.4);
  background: rgba(77, 184, 255, 0.12);
}

.boat-go-status.is-warn {
  color: #ffe1a8;
  border-color: rgba(240, 193, 75, 0.45);
  background: rgba(240, 193, 75, 0.12);
}

.boat-go-status.is-bad {
  color: #ffc7c0;
  border-color: rgba(240, 113, 103, 0.5);
  background: rgba(240, 113, 103, 0.14);
}

.boat-alert {
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.35;
}

.boat-alert.is-warn {
  color: #ffe1a8;
  background: rgba(240, 193, 75, 0.12);
  border: 1px solid rgba(240, 193, 75, 0.35);
}

.boat-alert.is-bad {
  color: #ffd0ca;
  background: rgba(240, 113, 103, 0.14);
  border: 1px solid rgba(240, 113, 103, 0.4);
}

.boat-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

@media (min-width: 720px) {
  .boat-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .boat-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.boat-metric {
  padding: 0.85rem 0.9rem;
  border-radius: 1rem;
  min-height: 6.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.boat-metric__label {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.boat-metric__value {
  font-size: 1.55rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  color: #f1f5f9;
}

.boat-metric__value small {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}

.boat-metric__sub {
  font-size: 0.8rem;
  color: #cbd5e1;
}

.boat-metric__hint {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.72rem;
  color: #94a3b8;
}

.boat-metric.is-good .boat-metric__value { color: #b7f5d0; }
.boat-metric.is-ok .boat-metric__value { color: #cfeaff; }
.boat-metric.is-warn .boat-metric__value { color: #ffe1a8; }
.boat-metric.is-bad .boat-metric__value { color: #ffc7c0; }

#boat-pressure.is-good { color: #b7f5d0; }
#boat-pressure.is-ok { color: #cfeaff; }
#boat-pressure.is-bad { color: #ffc7c0; }

.boat-window-rail {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.4rem;
}

@media (min-width: 640px) {
  .boat-window-rail {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .boat-window-rail {
    grid-template-columns: repeat(24, minmax(0, 1fr));
  }
}

.boat-window-empty {
  font-size: 0.85rem;
  color: #94a3b8;
  grid-column: 1 / -1;
}

.boat-hour {
  min-width: 0;
  width: auto;
  padding: 0.45rem 0.2rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.45);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.boat-hour__t {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
}

.boat-hour__b {
  font-size: 1.05rem;
  font-weight: 750;
  color: #e2e8f0;
}

.boat-hour__b small {
  font-size: 0.62rem;
  margin-left: 0.1rem;
  color: #94a3b8;
}

.boat-hour__w {
  font-size: 0.68rem;
  color: #cbd5e1;
}

.boat-hour__tag {
  margin-top: 0.15rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.boat-hour.is-go {
  border-color: rgba(61, 214, 140, 0.35);
  background: rgba(61, 214, 140, 0.1);
}
.boat-hour.is-go .boat-hour__tag { color: #8fe9b4; }

.boat-hour.is-warn {
  border-color: rgba(240, 193, 75, 0.4);
  background: rgba(240, 193, 75, 0.1);
}
.boat-hour.is-warn .boat-hour__tag { color: #ffd27a; }

.boat-hour.is-no {
  border-color: rgba(240, 113, 103, 0.45);
  background: rgba(240, 113, 103, 0.12);
}
.boat-hour.is-no .boat-hour__tag { color: #ffb1a8; }

/* W trybie BOAT kamera portu idzie na górę siatki */
body[data-world='boat'] .dashboard-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
  grid-template-areas:
    'webcam'
    'wind'
    'waves'
    'vis'
    'weather';
}

@media (min-width: 900px) {
  body[data-world='boat'] .dashboard-grid {
    grid-template-columns: 1.15fr 0.95fr;
    grid-template-areas:
      'webcam webcam'
      'wind waves'
      'vis weather';
  }

  body[data-world='boat'] .webcam-card .webcam-frame {
    aspect-ratio: auto;
    min-height: clamp(280px, 42vh, 520px);
  }

  body[data-world='boat'] .webcam-split {
    min-height: clamp(280px, 42vh, 520px);
  }
}

body[data-world='boat'] #uv-stat {
  opacity: 0.55;
}

.boat-imgw {
  display: grid;
  gap: 0.45rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.5);
}

.boat-imgw.is-clear {
  border-color: rgba(61, 214, 140, 0.28);
  background: rgba(61, 214, 140, 0.08);
  color: #b7f5d0;
  font-size: 0.8rem;
}

.boat-imgw.is-lvl-1 { border-color: rgba(240, 193, 75, 0.4); }
.boat-imgw.is-lvl-2,
.boat-imgw.is-lvl-3 {
  border-color: rgba(240, 113, 103, 0.45);
  background: rgba(240, 113, 103, 0.1);
}

.boat-imgw__item {
  display: grid;
  gap: 0.15rem;
  font-size: 0.78rem;
  color: #e2e8f0;
}

.boat-imgw__item strong {
  font-size: 0.8rem;
}

.boat-imgw__item span {
  color: #94a3b8;
  font-size: 0.72rem;
}

.boat-imgw__item p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.35;
}

.boat-vessel-row {
  display: grid;
  gap: 0.45rem;
}

.boat-vessel-row__label {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.boat-return {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (max-width: 520px) {
  .boat-return {
    grid-template-columns: 1fr;
  }
}

.boat-return__card {
  padding: 0.75rem 0.8rem;
  border-radius: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 4.6rem;
}

.boat-return__h {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.boat-return__v {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
}

.boat-return__tag {
  margin-top: auto;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.boat-return__card.is-go { border: 1px solid rgba(61, 214, 140, 0.3); }
.boat-return__card.is-go .boat-return__tag { color: #8fe9b4; }
.boat-return__card.is-warn { border: 1px solid rgba(240, 193, 75, 0.35); }
.boat-return__card.is-warn .boat-return__tag { color: #ffd27a; }
.boat-return__card.is-no { border: 1px solid rgba(240, 113, 103, 0.4); }
.boat-return__card.is-no .boat-return__tag { color: #ffb1a8; }

.boat-extra {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

@media (min-width: 720px) {
  .boat-extra {
    grid-template-columns: 1fr 1fr 1.2fr;
  }
}

.boat-extra__card {
  padding: 0.85rem 0.9rem;
  border-radius: 1rem;
}

.boat-extra__text {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.35;
}

.boat-extra__text.is-good { color: #b7f5d0; }
.boat-extra__text.is-warn { color: #ffd27a; }
.boat-extra__text.is-bad { color: #ffb1a8; }
.boat-extra__text.is-ok { color: #cfeaff; }

.boat-pressure-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.boat-pressure-badge.is-good { color: #3dd68c; }
.boat-pressure-badge.is-ok { color: #4db8ff; }
.boat-pressure-badge.is-bad { color: #f07167; }

.boat-pressure-summary {
  font-size: 0.82rem;
  font-weight: 600;
}

#boat-wave-exit.is-good { color: #b7f5d0; }
#boat-wave-exit.is-warn { color: #ffd27a; }
#boat-wave-exit.is-bad { color: #ffb1a8; }

.boat-pressure-svg {
  display: block;
  width: 100%;
  height: 64px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.55rem;
  padding: 0.55rem 0.95rem;
  border-radius: 0.7rem;
  font-size: 0.85rem;
  font-weight: 550;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  color: #e8eef7;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.chip:hover {
  border-color: rgba(77, 184, 255, 0.5);
  background: rgba(77, 184, 255, 0.12);
}

.chip:active {
  transform: scale(0.97);
  background: rgba(77, 184, 255, 0.18);
}

.chip.is-active {
  background: linear-gradient(135deg, rgba(77, 184, 255, 0.28), rgba(99, 102, 241, 0.14));
  border-color: rgba(77, 184, 255, 0.62);
  color: #bde8ff;
  box-shadow: 0 0 0 2px rgba(77, 184, 255, 0.12);
}

.status-pill {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.8rem;
  border-radius: 0.65rem;
  font-size: 0.78rem;
  font-weight: 650;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-pill--go {
  color: #7eecc0;
  background: rgba(61, 214, 140, 0.12);
  border-color: rgba(61, 214, 140, 0.28);
}

.status-pill--storm {
  color: #f5cc6a;
  background: rgba(240, 180, 41, 0.12);
  border-color: rgba(240, 180, 41, 0.3);
}

.status-pill--bad {
  color: #f5a39c;
  background: rgba(240, 113, 103, 0.12);
  border-color: rgba(240, 113, 103, 0.28);
}

.chip--add {
  border-style: dashed;
  color: var(--muted);
}

.chip__del {
  margin-left: 0.15rem;
  opacity: 0.55;
  font-size: 0.75rem;
  line-height: 1;
}

.chip__del:hover {
  opacity: 1;
  color: var(--bad);
}

.card-pad {
  padding: 1.15rem 1.25rem;
}

@media (min-width: 640px) {
  .card-pad {
    padding: 1.35rem 1.5rem;
  }
}

.card-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-label.mb-0 {
  margin-bottom: 0;
}

.eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 550;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

#verdict-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #101e38 0%, #0a1324 55%, #0d1730 100%);
  border-color: rgba(77, 184, 255, 0.18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#verdict-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 88% 12%, rgba(77, 184, 255, 0.14), transparent 58%);
  pointer-events: none;
  z-index: 0;
}

#verdict-card > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  #verdict-card::before {
    background: radial-gradient(ellipse 90% 70% at 100% 0%, rgba(77, 184, 255, 0.1), transparent 62%);
  }
}

#verdict-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

@keyframes glow-drift {
  from { transform: translate(0, 0) scale(1); opacity: 0.85; }
  to { transform: translate(-8%, 6%) scale(1.08); opacity: 1; }
}

.best-window {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 0.65rem;
  font-size: 0.82rem;
  font-weight: 550;
  color: #9fd4ff;
  background: var(--aqua-soft);
  border: 1px solid rgba(77, 184, 255, 0.25);
}

.checklist-launch {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  max-width: 22rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(77, 184, 255, 0.28);
  background: linear-gradient(135deg, rgba(18, 42, 68, 0.85), rgba(10, 22, 40, 0.9));
  color: #e8eef7;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}

.checklist-launch:hover {
  border-color: rgba(77, 184, 255, 0.5);
  background: linear-gradient(135deg, rgba(24, 52, 82, 0.9), rgba(12, 28, 48, 0.95));
  transform: translateY(-1px);
}

.checklist-launch:active {
  transform: scale(0.99);
}

.checklist-launch.is-complete {
  border-color: rgba(61, 214, 140, 0.4);
  background: linear-gradient(135deg, rgba(18, 58, 42, 0.85), rgba(10, 28, 24, 0.9));
}

.checklist-launch__icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(77, 184, 255, 0.12);
  border: 1px solid rgba(77, 184, 255, 0.22);
  font-size: 1rem;
}

.checklist-launch.is-complete .checklist-launch__icon {
  background: rgba(61, 214, 140, 0.14);
  border-color: rgba(61, 214, 140, 0.3);
}

.checklist-launch__meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.checklist-launch__title {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.checklist-launch__sub {
  font-size: 0.72rem;
  color: #9fb4d0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checklist-launch__progress {
  flex-shrink: 0;
  min-width: 2.4rem;
  padding: 0.28rem 0.5rem;
  border-radius: 0.55rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #bde8ff;
  background: rgba(77, 184, 255, 0.14);
  border: 1px solid rgba(77, 184, 255, 0.25);
}

.checklist-launch.is-complete .checklist-launch__progress {
  color: #8fd9a8;
  background: rgba(61, 214, 140, 0.12);
  border-color: rgba(61, 214, 140, 0.3);
}

.link-quiet {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.75rem;
  color: var(--aqua);
  cursor: pointer;
  opacity: 0.9;
  font-weight: 550;
}

.link-quiet:hover {
  opacity: 1;
  text-decoration: underline;
}

.deep-links-copy {
  margin: 0;
  font-size: 0.78rem;
  color: #95a8bd;
}

.deep-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 720px) {
  .deep-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.deep-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 1rem;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: #d7e1ee;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.deep-link:hover {
  border-color: rgba(77, 184, 255, 0.33);
  background: rgba(77, 184, 255, 0.08);
  transform: translateY(-1px);
}

.deep-link__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1rem;
  will-change: transform;
}

.deep-link__icon--spin {
  animation: deep-spin 4.5s linear infinite;
}

.deep-link__icon--wave {
  animation: deep-wave 1.8s ease-in-out infinite;
}

.deep-link__icon--pulse {
  animation: deep-pulse 1.7s ease-in-out infinite;
}

.deep-link:hover .deep-link__icon--spin {
  animation-duration: 1.6s;
}

.deep-link:hover .deep-link__icon--wave {
  animation-duration: 0.9s;
}

.deep-link:hover .deep-link__icon--pulse {
  animation-duration: 0.85s;
}

@keyframes deep-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes deep-wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes deep-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

.deep-link__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.deep-link__title {
  font-size: 0.86rem;
  font-weight: 650;
  color: #eff6ff;
}

.deep-link__desc {
  font-size: 0.72rem;
  color: #95a8bd;
}

.verdict-why {
  max-width: 34rem;
  padding: 0.9rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(77, 184, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.verdict-why__summary {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #d3deea;
}

.verdict-why__list {
  display: grid;
  gap: 0.45rem;
}

.verdict-why__item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #c8d5e2;
}

.verdict-why__item::before {
  content: '•';
  color: #74eea3;
  line-height: 1.2;
}

.verdict-why__item.is-bad::before {
  color: #f07167;
}

.checklist-progress {
  padding: 0.32rem 0.62rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(77, 184, 255, 0.35);
  background: rgba(77, 184, 255, 0.12);
  color: #b4e3ff;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.checklist-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 0.55rem;
}

.checklist-spot-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.62rem 0.72rem;
  border-radius: 0.72rem;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: #d7e1ee;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.checklist-spot-btn:hover {
  border-color: rgba(77, 184, 255, 0.33);
  background: rgba(77, 184, 255, 0.08);
}

.checklist-spot-value {
  font-weight: 650;
  color: #bde8ff;
}

.checklist-spot-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.checklist-spot-option {
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: #d4deea;
  border-radius: 999px;
  padding: 0.42rem 0.74rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.checklist-spot-option:hover {
  border-color: rgba(77, 184, 255, 0.33);
  background: rgba(77, 184, 255, 0.08);
}

.checklist-spot-option.is-active {
  border-color: rgba(77, 184, 255, 0.45);
  background: rgba(77, 184, 255, 0.16);
  color: #bde8ff;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.72rem;
  border-radius: 0.72rem;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  cursor: pointer;
}

.check-item:hover {
  border-color: rgba(77, 184, 255, 0.33);
  background: rgba(77, 184, 255, 0.08);
}

.check-item input {
  width: 1rem;
  height: 1rem;
  accent-color: #4db8ff;
  cursor: pointer;
}

.check-item span {
  font-size: 0.9rem;
  color: #d5dfeb;
}

.check-item.is-checked {
  border-color: rgba(77, 184, 255, 0.45);
  background: rgba(77, 184, 255, 0.14);
}

.check-item.is-checked span {
  color: #bde8ff;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.wind-shore-note {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.34rem 0.56rem;
  border-radius: 0.56rem;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: #c9d8e6;
  font-size: 0.78rem;
  font-weight: 560;
}

.wind-shore-note.is-onshore {
  border-color: rgba(240, 113, 103, 0.42);
  background: rgba(240, 113, 103, 0.14);
  color: #ffb4ac;
}

.wind-shore-note.is-offshore {
  border-color: rgba(116, 238, 163, 0.42);
  background: rgba(116, 238, 163, 0.13);
  color: #bff7d3;
}

.wind-shore-note.is-cross {
  border-color: rgba(255, 217, 108, 0.38);
  background: rgba(255, 217, 108, 0.14);
  color: #f6df96;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9fd4ff;
  background: var(--aqua-soft);
  border: 1px solid rgba(77, 184, 255, 0.28);
}

.live-badge::before {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 8px rgba(77, 184, 255, 0.7);
  animation: live-pulse 1.6s ease-in-out infinite;
}

.live-badge--red {
  color: #f5a39c;
  background: rgba(240, 113, 103, 0.14);
  border-color: rgba(240, 113, 103, 0.28);
}

.live-badge--red::before {
  background: var(--bad);
  box-shadow: 0 0 8px rgba(240, 113, 103, 0.7);
}

.webcam-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #03060c;
}

#webcam-video {
  object-fit: contain;
  background: #000;
}

.webcam-split {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 100%;
  height: 100%;
  min-height: inherit;
  background: #03060c;
}

.webcam-split__pane {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #000;
  overflow: hidden;
  isolation: isolate;
  contain: layout style paint;
}

.webcam-split__label {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 2;
  max-width: calc(100% - 0.9rem);
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  background: rgba(3, 6, 12, 0.72);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #e2e8f0;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.webcam-split__iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(180px, 28vh, 360px);
  border: 0;
  background: #000;
}

.webcam-split__video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(180px, 28vh, 360px);
  object-fit: cover;
  background: #000;
}

@media (max-width: 640px) {
  .webcam-split {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.webcam-credit {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.webcam-head--marina {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.webcam-head--marina .webcam-head__left {
  justify-self: start;
}

.webcam-head--marina .webcam-head__center {
  justify-self: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
  white-space: nowrap;
}

.webcam-head--marina .webcam-head__right {
  justify-self: end;
}

.webcam-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 0.9rem;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(77, 184, 255, 0.08), transparent 55%),
    #03060c;
  border: 1px solid rgba(77, 184, 255, 0.18);
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.4),
    0 12px 36px rgba(0, 0, 0, 0.28);
}

.metric-xl {
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: clamp(2.6rem, 7vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metric-period {
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: clamp(1.85rem, 5vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  transition: border-color 0.25s, background 0.25s;
}

.stat:hover {
  border-color: rgba(77, 184, 255, 0.25);
  background: rgba(77, 184, 255, 0.05);
}

.stat__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-weight: 550;
}

.stat__value {
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.stat__unit {
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: 0.15rem;
}

.stat__hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--muted);
  font-weight: 550;
}

.precip-stat {
  min-height: 5.2rem;
}

.precip-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.raindrop {
  flex: 0 0 auto;
  color: rgba(120, 180, 230, 0.55);
  line-height: 0;
}

.raindrop__svg {
  display: block;
}

.raindrop__fill {
  fill: #4db8ff;
  transition: y 0.45s ease, fill 0.3s ease;
}

.precip-stat.is-rain-alert .raindrop {
  color: rgba(240, 140, 130, 0.55);
}

.precip-stat.is-rain-alert .raindrop__fill {
  fill: #f07167;
}

.precip-stat.is-thunder .raindrop {
  color: rgba(240, 160, 90, 0.55);
}

.precip-stat.is-thunder .raindrop__fill {
  fill: #f0a050;
}

.precip-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.precip-mm {
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.precip-alert {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.3;
  color: #f5a39c;
}

.precip-stat.is-thunder .precip-alert {
  color: #f0b868;
}

#uv-stat.is-uv-low .stat__hint { color: #8fd9a8; }
#uv-stat.is-uv-mod .stat__hint { color: #e6d07a; }
#uv-stat.is-uv-high .stat__hint { color: #f0a46a; }
#uv-stat.is-uv-vhigh .stat__hint,
#uv-stat.is-uv-extreme .stat__hint { color: #f5a39c; }

#uv-stat.is-uv-high,
#uv-stat.is-uv-vhigh,
#uv-stat.is-uv-extreme {
  border-color: rgba(240, 164, 106, 0.35);
}

.stat--weather .stat__value {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.25rem;
}

.dashboard-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1.05fr 1.15fr;
    grid-template-areas:
      'wind weather'
      'waves vis'
      'webcam webcam';
  }

  .wind-card { grid-area: wind; }
  .weather-card { grid-area: weather; }
  .visibility-card { grid-area: vis; }
  .waves-card { grid-area: waves; }
  .webcam-card { grid-area: webcam; }
}

@media (min-width: 1100px) {
  .dashboard-grid {
    grid-template-columns: 0.95fr 1.05fr 0.9fr;
    grid-template-areas:
      'wind weather vis'
      'waves webcam webcam';
  }

  .webcam-card {
    min-height: 100%;
  }

  .webcam-card .webcam-frame {
    aspect-ratio: auto;
    min-height: clamp(280px, 42vh, 520px);
    flex: 1;
  }
}

.webcam-card {
  display: flex;
  flex-direction: column;
}

.webcam-card .webcam-frame {
  margin-top: 0.75rem;
  flex: 1 1 auto;
}

.card-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.card-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.34rem 0.58rem;
  border-radius: 0.55rem;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: #c9d8e6;
  font-size: 0.74rem;
  font-weight: 560;
  line-height: 1.25;
}

.card-chip.is-good {
  border-color: rgba(61, 214, 140, 0.35);
  background: rgba(61, 214, 140, 0.1);
  color: #8fd9a8;
}

.card-chip.is-ok {
  border-color: rgba(77, 184, 255, 0.35);
  background: rgba(77, 184, 255, 0.1);
  color: #bde8ff;
}

.card-chip.is-warn {
  border-color: rgba(240, 180, 41, 0.4);
  background: rgba(240, 180, 41, 0.1);
  color: #f0b429;
}

.card-chip.is-bad {
  border-color: rgba(240, 113, 103, 0.4);
  background: rgba(240, 113, 103, 0.1);
  color: #f5a39c;
}

.spot-toolbar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.spot-toolbar__chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.spot-toolbar__chips::-webkit-scrollbar {
  display: none;
}

.spot-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.spot-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.55rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0.7rem;
  text-decoration: none;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.spot-action__icon {
  font-size: 0.95rem;
  line-height: 1;
}

.spot-action__label {
  letter-spacing: -0.01em;
}

.spot-action--map {
  color: #d7ebff;
  border: 1px solid rgba(77, 184, 255, 0.4);
  background: linear-gradient(135deg, rgba(28, 56, 88, 0.72), rgba(14, 24, 44, 0.86));
}

.spot-action--map:hover {
  border-color: rgba(103, 198, 255, 0.62);
  background: linear-gradient(135deg, rgba(36, 72, 110, 0.82), rgba(16, 30, 52, 0.92));
}

.spot-action--nav {
  color: #dff5e8;
  border: 1px solid rgba(94, 184, 120, 0.4);
  background: linear-gradient(135deg, rgba(28, 72, 48, 0.65), rgba(14, 32, 28, 0.82));
}

.spot-action--nav:hover {
  border-color: rgba(110, 210, 140, 0.6);
  background: linear-gradient(135deg, rgba(34, 88, 56, 0.75), rgba(16, 40, 32, 0.9));
}

.spot-action:active {
  transform: scale(0.97);
}

@media (max-width: 420px) {
  .spot-action__label {
    display: none;
  }

  .spot-action {
    width: 2.55rem;
    padding: 0;
  }
}

.maps-jump--spots {
  border-color: rgba(77, 184, 255, 0.38);
  background: linear-gradient(135deg, rgba(28, 56, 88, 0.6), rgba(14, 24, 44, 0.78));
  color: #e4edf8;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.maps-jump--spots:hover {
  border-color: rgba(103, 198, 255, 0.58);
  background: linear-gradient(135deg, rgba(36, 72, 110, 0.7), rgba(16, 30, 52, 0.86));
}

.maps-jump--spots .maps-jump__icon {
  background: rgba(77, 184, 255, 0.14);
  border-color: rgba(77, 184, 255, 0.3);
}

.maps-jump--spots .maps-jump__desc {
  color: #9bb8d4;
}

.modal__panel--map {
  width: min(100%, 52rem);
  max-height: min(92vh, 44rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.spot-map {
  width: 100%;
  height: min(58vh, 28rem);
  min-height: 16rem;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid rgba(77, 184, 255, 0.22);
  background: #0a1220;
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.spot-map-status {
  padding: 0.7rem 0.85rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(77, 184, 255, 0.28);
  background: rgba(77, 184, 255, 0.08);
  color: #cfe7ff;
  font-size: 0.82rem;
  line-height: 1.4;
}

.spot-map-status.is-bad {
  border-color: rgba(240, 113, 103, 0.4);
  background: rgba(240, 113, 103, 0.1);
  color: #f5a39c;
}

.spot-map-status.is-ok {
  border-color: rgba(61, 214, 140, 0.35);
  background: rgba(61, 214, 140, 0.1);
  color: #9eecc4;
}

.spot-map-status__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  justify-content: space-between;
}

.spot-map-status__actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.spot-map-status__actions .btn-secondary,
.spot-map-status__actions .btn-primary {
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  border-radius: 0.65rem;
}

.spot-map-marker {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: #4db8ff;
  box-shadow: 0 0 0 3px rgba(77, 184, 255, 0.28), 0 4px 12px rgba(0, 0, 0, 0.35);
}

.spot-map-marker.is-active {
  background: #3dd68c;
  box-shadow: 0 0 0 3px rgba(61, 214, 140, 0.35), 0 4px 12px rgba(0, 0, 0, 0.35);
}

.spot-map-marker.is-pending {
  background: #f0c14b;
  box-shadow: 0 0 0 3px rgba(240, 193, 75, 0.3), 0 4px 12px rgba(0, 0, 0, 0.35);
}

.leaflet-container {
  background: #0a1220;
  font: inherit;
}

.leaflet-control-attribution,
.leaflet-control-attribution * {
  display: none !important;
}

.leaflet-control-zoom a {
  background: rgba(12, 20, 36, 0.92) !important;
  color: #d7e6f7 !important;
  border-color: rgba(77, 184, 255, 0.28) !important;
  width: 2rem !important;
  height: 2rem !important;
  line-height: 2rem !important;
}

.leaflet-control-zoom a:hover {
  background: rgba(28, 48, 78, 0.96) !important;
  color: #fff !important;
}

.leaflet-popup-content-wrapper {
  background: #121c30;
  color: #e8eef7;
  border-radius: 0.7rem;
  border: 1px solid rgba(77, 184, 255, 0.25);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.leaflet-popup-tip {
  background: #121c30;
}

.leaflet-popup-content {
  margin: 0.55rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 650;
}

.maps-jump {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  max-width: 15.5rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: #e4edf8;
  border: 1px solid rgba(94, 184, 120, 0.35);
  background: linear-gradient(135deg, rgba(28, 72, 48, 0.55), rgba(14, 32, 28, 0.72));
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}

.maps-jump:hover {
  border-color: rgba(110, 210, 140, 0.55);
  background: linear-gradient(135deg, rgba(34, 88, 56, 0.65), rgba(16, 40, 32, 0.8));
  transform: translateY(-1px);
}

.maps-jump:active {
  transform: scale(0.99);
}

.maps-jump__icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.6rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.95rem;
  background: rgba(110, 210, 140, 0.14);
  border: 1px solid rgba(110, 210, 140, 0.28);
}

.maps-jump__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.maps-jump__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.maps-jump__desc {
  font-size: 0.62rem;
  line-height: 1.25;
  color: #a8c4b4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.visibility-card__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.visibility-badge {
  flex-shrink: 0;
  padding: 0.45rem 0.7rem;
  border-radius: 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: #c9d6e8;
}

.visibility-card.is-vis-good .visibility-badge {
  color: #7eecc0;
  border-color: rgba(61, 214, 140, 0.35);
  background: rgba(61, 214, 140, 0.1);
}

.visibility-card.is-vis-ok .visibility-badge {
  color: #bde8ff;
  border-color: rgba(77, 184, 255, 0.35);
  background: rgba(77, 184, 255, 0.1);
}

.visibility-card.is-vis-warn .visibility-badge {
  color: #f0b429;
  border-color: rgba(240, 180, 41, 0.4);
  background: rgba(240, 180, 41, 0.1);
}

.visibility-card.is-vis-bad .visibility-badge {
  color: #f5a39c;
  border-color: rgba(240, 113, 103, 0.4);
  background: rgba(240, 113, 103, 0.1);
}

.visibility-card__hint {
  font-size: 0.78rem;
  color: #8fa3bd;
  line-height: 1.35;
}

.visibility-sparkline-block {
  padding-top: 0.15rem;
}

.visibility-spark-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.visibility-spark-badge.is-good { color: #3dd68c; }
.visibility-spark-badge.is-ok { color: #4db8ff; }
.visibility-spark-badge.is-warn { color: #f0b429; }
.visibility-spark-badge.is-bad { color: #f07167; }

.visibility-spark-summary {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  line-height: 1.35;
}

.visibility-spark-summary.is-good { color: #b7f5d0; }
.visibility-spark-summary.is-ok { color: #cfeaff; }
.visibility-spark-summary.is-warn { color: #ffd27a; }
.visibility-spark-summary.is-bad { color: #ffb1a8; }

.visibility-spark-svg {
  display: block;
  width: 100%;
  height: 64px;
  overflow: visible;
}

.compass {
  width: 7.5rem;
  height: 7.5rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .compass {
    width: 8.5rem;
    height: 8.5rem;
  }
}

.compass__ring {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background:
    radial-gradient(circle at 40% 30%, rgba(77, 184, 255, 0.12), transparent 45%),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 28px rgba(77, 184, 255, 0.08);
}

.compass__ticks {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from -1.5deg,
      rgba(148, 163, 184, 0.35) 0deg 3deg,
      transparent 3deg 45deg
    );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  pointer-events: none;
  opacity: 0.7;
}

.compass__hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--aqua);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(77, 184, 255, 0.45);
  z-index: 2;
  animation: hub-pulse 2.8s ease-in-out infinite;
}

@keyframes hub-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(77, 184, 255, 0.4); }
  50% { opacity: 0.75; box-shadow: 0 0 14px rgba(77, 184, 255, 0.7); }
}

.compass__n,
.compass__e,
.compass__s,
.compass__w {
  position: absolute;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  z-index: 1;
}

.compass__n { top: 0.45rem; left: 50%; transform: translateX(-50%); color: var(--aqua); }
.compass__s { bottom: 0.45rem; left: 50%; transform: translateX(-50%); }
.compass__e { right: 0.5rem; top: 50%; transform: translateY(-50%); }
.compass__w { left: 0.5rem; top: 50%; transform: translateY(-50%); }

.compass__arrow {
  position: absolute;
  inset: 16%;
  color: var(--aqua);
  transform-origin: center center;
  transform: rotate(0deg);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 8px rgba(77, 184, 255, 0.4));
  z-index: 1;
  will-change: transform;
}

.compass__arrow-inner {
  width: 100%;
  height: 100%;
  transform-origin: center 72%;
  animation: compass-idle 3.6s ease-in-out infinite;
}

.compass__arrow.is-settling {
  filter: drop-shadow(0 0 12px rgba(77, 184, 255, 0.65));
}

.compass__arrow.is-settling .compass__arrow-inner {
  animation: compass-settle 0.9s ease-out;
}

@keyframes compass-idle {
  0%, 100% { transform: rotate(-2.2deg) translateY(0); }
  50% { transform: rotate(2.2deg) translateY(-1px); }
}

@keyframes compass-settle {
  0% { transform: rotate(-4deg) scale(1.04); }
  60% { transform: rotate(2deg) scale(1); }
  100% { transform: rotate(0deg) scale(1); }
}

.wave-viz {
  position: relative;
  height: 2.5rem;
  overflow: hidden;
  border-radius: 0.7rem;
  background: rgba(77, 184, 255, 0.06);
}

.wave-viz__line {
  position: absolute;
  inset: auto -20% 0;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40' preserveAspectRatio='none'%3E%3Cpath d='M0 24 Q15 8 30 24 T60 24 T90 24 T120 24 V40 H0Z' fill='%234db8ff' fill-opacity='0.28'/%3E%3C/svg%3E") repeat-x;
  background-size: 120px 100%;
  animation: wave-move 4s linear infinite;
}

.wave-viz__line--2 {
  opacity: 0.55;
  animation-duration: 6s;
  animation-direction: reverse;
  bottom: -0.35rem;
}

@keyframes wave-move {
  from { transform: translateX(0); }
  to { transform: translateX(-120px); }
}

.webcam-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.webcam-ph-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(90% 70% at 50% 20%, rgba(77, 184, 255, 0.1), transparent 60%),
    linear-gradient(180deg, #0a1424 0%, #060b14 100%);
}

.webcam-ph-empty__icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.75rem;
  opacity: 0.4;
  color: var(--aqua);
}

.webcam-ph-empty__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #c8d4e6;
}

.webcam-ph-empty__hint {
  margin: 0.35rem 0 0;
  max-width: 15rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
}

.webcam-ph-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  width: 100%;
  height: 100%;
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
}

.webcam-ph-cta__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    180deg,
    #1a2d45 0%,
    #122338 38%,
    #0c1a2a 58%,
    #08131f 100%
  );
}

.webcam-ph-cta__horizon {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 55% at 50% -10%, rgba(180, 210, 240, 0.14), transparent 52%),
    linear-gradient(
      180deg,
      transparent 0%,
      transparent 46%,
      rgba(56, 140, 180, 0.12) 52%,
      rgba(30, 90, 120, 0.2) 62%,
      rgba(12, 40, 60, 0.35) 100%
    );
}

.webcam-ph-cta__horizon::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 52%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(160, 200, 230, 0.35) 20%,
    rgba(160, 200, 230, 0.35) 80%,
    transparent
  );
}

.webcam-ph-cta__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #f8fafc;
  background: rgba(240, 113, 103, 0.92);
  line-height: 1;
}

.webcam-ph-cta__play {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  color: #e8f4ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(200, 225, 245, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.webcam-ph-cta__play svg {
  margin-left: 2px;
  opacity: 0.95;
}

.webcam-ph-cta:hover .webcam-ph-cta__play,
.webcam-ph-cta:focus-visible .webcam-ph-cta__play {
  transform: scale(1.05);
  background: rgba(77, 184, 255, 0.22);
  border-color: rgba(180, 220, 255, 0.7);
}

.webcam-ph-cta:focus-visible {
  outline: 2px solid rgba(77, 184, 255, 0.65);
  outline-offset: -3px;
}

.webcam-ph-cta__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  max-width: 16rem;
}

.webcam-ph-cta__title {
  font-family: 'Syne', 'Figtree', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #f1f6fc;
  text-decoration: none;
}

.webcam-ph-cta__hint {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(170, 195, 220, 0.9);
  transition: color 0.2s ease;
}

.webcam-ph-cta:hover .webcam-ph-cta__hint,
.webcam-ph-cta:focus-visible .webcam-ph-cta__hint {
  color: #b8d9f5;
}

.webcam-ph-cta:hover .webcam-ph-cta__hint::after,
.webcam-ph-cta:focus-visible .webcam-ph-cta__hint::after {
  transform: translateX(3px);
}

.webcam-ph-cta__hint::after {
  content: ' →';
  display: inline-block;
  transition: transform 0.2s ease;
}

.webcam-frame iframe {
  border: 0;
  background: #000;
}

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

.hourly-rail {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 0.15rem 0.15rem 0.55rem;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: rgba(77, 184, 255, 0.35) transparent;
}

.hourly-rail::-webkit-scrollbar {
  height: 4px;
}

.hourly-rail::-webkit-scrollbar-track {
  background: transparent;
}

.hourly-rail::-webkit-scrollbar-thumb {
  background: rgba(77, 184, 255, 0.35);
  border-radius: 999px;
}

.hourly-rail::-webkit-scrollbar-thumb:hover {
  background: rgba(77, 184, 255, 0.55);
}

.hourly-rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.hour-card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 5.1rem;
  min-width: 5.1rem;
  padding: 0.7rem 0.45rem 0.65rem;
  border-radius: 0.8rem;
  text-align: center;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.hour-card:hover {
  transform: translateY(-2px);
}

.hour-card.is-now {
  border-color: rgba(77, 184, 255, 0.45);
  background: rgba(77, 184, 255, 0.12);
}

.hour-card__temp,
.hour-card__wind,
.hour-card__wave,
.hour-card__score {
  font-variant-numeric: tabular-nums;
}

.hour-card__time {
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-variant-numeric: tabular-nums;
}

.hour-card__temp {
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.1;
}

.hour-card__wind,
.hour-card__wave {
  margin-top: 0.28rem;
  font-size: 0.72rem;
  font-weight: 550;
  line-height: 1.2;
}

.hour-card__wind {
  color: var(--aqua);
}

.hour-card__wave {
  color: #9fb4d0;
}

.hour-card__wind span,
.hour-card__wave span {
  font-size: 0.58rem;
  font-weight: 500;
  opacity: 0.75;
  margin-left: 0.1rem;
}

.verdict-score-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.verdict-ring {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  border: 2px solid rgba(77, 184, 255, 0.35);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.1), transparent 55%),
    rgba(77, 184, 255, 0.08);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  color: inherit;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}

.verdict-ring:hover {
  transform: scale(1.04);
  box-shadow: 0 0 0 4px rgba(77, 184, 255, 0.12);
}

.verdict-ring:active {
  transform: scale(0.97);
}

.verdict-why-badge {
  position: absolute;
  right: -0.15rem;
  top: -0.15rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #041018;
  background: linear-gradient(135deg, #4db8ff, #9fd4ff);
  border: 2px solid #05080f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.verdict-why-caption {
  font-size: 0.72rem;
  font-weight: 650;
  color: #9fd4ff;
  letter-spacing: 0.01em;
}

.verdict-ring.is-go {
  border-color: rgba(61, 214, 140, 0.55);
  color: #7eecc0;
}

.verdict-ring.is-ok {
  border-color: rgba(77, 184, 255, 0.55);
  color: #9fd4ff;
}

.verdict-ring.is-warn {
  border-color: rgba(240, 180, 41, 0.55);
  color: #f5cc6a;
}

.verdict-ring.is-bad {
  border-color: rgba(240, 113, 103, 0.55);
  color: #f5a39c;
}

.check-item.is-pop {
  animation: check-pop 0.28s ease;
}

@keyframes check-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.035); }
  100% { transform: scale(1); }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: end center;
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

@media (min-width: 640px) {
  .modal {
    place-items: center;
  }
}

.modal.hidden {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 16, 0.65);
  backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  width: min(100%, 26rem);
  padding: 1.35rem;
  max-height: min(92vh, 600px);
  overflow-y: auto;
  animation: modal-up 0.28s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(77, 184, 255, 0.6) rgba(10, 18, 36, 0.45);
}

.modal__panel::-webkit-scrollbar {
  width: 10px;
}

.modal__panel::-webkit-scrollbar-track {
  background: rgba(10, 18, 36, 0.45);
  border-radius: 999px;
}

.modal__panel::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(77, 184, 255, 0.8), rgba(77, 184, 255, 0.45));
  border-radius: 999px;
  border: 2px solid rgba(10, 18, 36, 0.45);
}

.modal__panel::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(103, 198, 255, 0.95), rgba(77, 184, 255, 0.6));
}

.modal__panel--checklist {
  width: min(100%, 32rem);
  max-height: min(88vh, 40rem);
  overflow-y: auto;
}

@keyframes modal-up {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.field {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.field:focus {
  border-color: rgba(77, 184, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(77, 184, 255, 0.15);
}

.spot-search-results {
  display: grid;
  gap: 0.45rem;
  max-height: 13rem;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.spot-search-option {
  width: 100%;
  text-align: left;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: #d7e1ee;
  border-radius: 0.7rem;
  padding: 0.58rem 0.68rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.spot-search-option:hover {
  border-color: rgba(77, 184, 255, 0.36);
  background: rgba(77, 184, 255, 0.1);
  transform: translateY(-1px);
}

.spot-search-option__title {
  font-size: 0.84rem;
  font-weight: 650;
  color: #eff6ff;
}

.spot-search-option__meta {
  margin-top: 0.12rem;
  font-size: 0.72rem;
  color: #9cb0c7;
}

.spot-presets {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(77, 184, 255, 0.5) rgba(11, 19, 36, 0.25);
}

.spot-preset {
  white-space: nowrap;
  border: 1px solid rgba(77, 184, 255, 0.28);
  background: rgba(77, 184, 255, 0.08);
  color: #cdeeff;
  border-radius: 999px;
  padding: 0.34rem 0.62rem;
  font-size: 0.72rem;
  font-weight: 560;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.spot-presets::-webkit-scrollbar {
  height: 6px;
}

.spot-presets::-webkit-scrollbar-track {
  background: rgba(11, 19, 36, 0.25);
  border-radius: 999px;
}

.spot-presets::-webkit-scrollbar-thumb {
  background: rgba(77, 184, 255, 0.5);
  border-radius: 999px;
}

.spot-preset:hover {
  background: rgba(77, 184, 255, 0.14);
  border-color: rgba(77, 184, 255, 0.45);
}

.spot-preset:active {
  transform: scale(0.98);
}

.btn-primary,
.btn-secondary {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-weight: 650;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, opacity 0.2s, background 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #1d8fd9, #4db8ff);
  color: #041018;
  border: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.32);
  color: #e8eef7;
}

.btn-secondary:hover {
  background: rgba(77, 184, 255, 0.14);
  border-color: rgba(77, 184, 255, 0.45);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-primary:active,
.btn-secondary:active {
  transform: scale(0.98);
}

.error-banner {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  width: min(calc(100% - 2rem), 28rem);
  animation: modal-up 0.3s ease;
}

.error-banner.hidden {
  display: none;
}

.error-banner__inner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-color: rgba(240, 113, 103, 0.35);
}

.error-banner__icon {
  font-size: 1.1rem;
  line-height: 1.4;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(5, 8, 15, 0.28);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.loading-overlay.hidden {
  display: none;
}

.checklist-toast {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  z-index: 75;
  padding: 0.66rem 0.95rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(77, 184, 255, 0.38);
  background: rgba(8, 15, 27, 0.9);
  color: #cbeeff;
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.checklist-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.checklist-confetti {
  position: fixed;
  inset: 0;
  z-index: 74;
  pointer-events: none;
  overflow: hidden;
}

.checklist-confetti__piece {
  position: absolute;
  top: -12px;
  width: 8px;
  height: 10px;
  border-radius: 2px;
  opacity: 0.95;
  animation-name: confetti-fall;
  animation-timing-function: cubic-bezier(0.16, 0.7, 0.3, 1);
  animation-fill-mode: forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--dx), 105vh, 0) rotate(var(--rot));
    opacity: 0;
  }
}

.checklist-progress.is-celebrate,
#checklist-progress.is-celebrate {
  animation: checklist-pop 0.55s ease;
}

.checklist-launch.is-celebrate {
  animation: checklist-glow 0.7s ease;
}

@keyframes checklist-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.14); }
  100% { transform: scale(1); }
}

@keyframes checklist-glow {
  0% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0); }
  35% { box-shadow: 0 0 0 6px rgba(61, 214, 140, 0.28); }
  100% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0); }
}

.spinner {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.25);
  border-top-color: var(--aqua);
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#btn-refresh.is-loading #refresh-icon {
  animation: spin 0.8s linear infinite;
}

.animate-in {
  animation: fade-up 0.55s ease both;
}

.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.2s; }
.delay-5 { animation-delay: 0.25s; }

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.hidden {
  display: none !important;
}

.days-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .days-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.day-card {
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s, transform 0.2s;
}

.day-card:hover {
  border-color: rgba(77, 184, 255, 0.28);
  transform: translateY(-1px);
}

.day-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.day-card__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  font-weight: 650;
}

.day-card__date {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.day-card__score {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Figtree', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(77, 184, 255, 0.35);
}

.day-card.is-go .day-card__score { border-color: rgba(61, 214, 140, 0.5); color: #7eecc0; }
.day-card.is-warn .day-card__score { border-color: rgba(240, 180, 41, 0.5); color: #f5cc6a; }
.day-card.is-bad .day-card__score { border-color: rgba(240, 113, 103, 0.5); color: #f5a39c; }

.day-card__title {
  margin: 0.75rem 0 0.35rem;
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.day-card__meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.compare-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .compare-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.compare-card {
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}

.compare-card:hover {
  border-color: rgba(77, 184, 255, 0.4);
  transform: translateY(-1px);
}

.compare-card.is-winner {
  border-color: rgba(77, 184, 255, 0.5);
  background: rgba(77, 184, 255, 0.08);
}

.compare-card__score {
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.compare-card.is-go .compare-card__score { color: #7eecc0; }
.compare-card.is-warn .compare-card__score { color: #f5cc6a; }
.compare-card.is-bad .compare-card__score { color: #f5a39c; }

.hour-card.is-best {
  border-color: rgba(61, 214, 140, 0.55);
  background: rgba(61, 214, 140, 0.12);
  box-shadow: 0 0 0 1px rgba(61, 214, 140, 0.12);
}

.hour-card__score {
  margin-top: 0.45rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.hour-card.is-best .hour-card__score {
  color: #7eecc0;
}

.tide-bar {
  position: relative;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.15);
  overflow: visible;
}

.tide-bar__fill {
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(77, 184, 255, 0.35), rgba(77, 184, 255, 0.9));
  transition: width 0.5s ease;
}

.tide-bar__marker {
  position: absolute;
  top: 50%;
  left: 40%;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #9fd4ff;
  border: 2px solid rgba(5, 8, 15, 0.8);
  transform: translate(-50%, -50%);
  transition: left 0.5s ease;
  box-shadow: 0 0 10px rgba(77, 184, 255, 0.5);
}

.modal__panel--wide {
  width: min(100%, 28rem);
}

.range {
  width: 100%;
  accent-color: #4db8ff;
  cursor: pointer;
}

#best-window {
  letter-spacing: 0.01em;
}

.text-aqua-300 {
  color: #9fd4ff !important;
}

/* Auth */
.auth-slot {
  display: flex;
  align-items: center;
}

.btn-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.4rem;
  padding: 0 0.75rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(77, 184, 255, 0.3);
  background: rgba(77, 184, 255, 0.1);
  color: #9fd4ff;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-auth:hover {
  background: rgba(77, 184, 255, 0.18);
  border-color: rgba(77, 184, 255, 0.45);
}

.btn-auth:active {
  transform: scale(0.97);
}

.btn-auth--user {
  padding-left: 0.35rem;
  max-width: 9.5rem;
}

.auth-name {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 5.5rem;
}

.auth-avatar {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.55rem;
  object-fit: cover;
  flex-shrink: 0;
}

.auth-avatar--fallback {
  display: grid;
  place-items: center;
  background: rgba(77, 184, 255, 0.2);
  font-size: 0.65rem;
  font-weight: 700;
  color: #cfe9ff;
}

.auth-menu-wrap {
  position: relative;
}

.auth-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  min-width: 12.5rem;
  padding: 0.65rem;
  z-index: 50;
  animation: modal-up 0.2s ease;
}

.auth-dropdown__email {
  margin: 0 0 0.5rem;
  padding: 0 0.35rem;
  font-size: 0.7rem;
  color: var(--muted);
  word-break: break-all;
}

.auth-dropdown__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-radius: 0.65rem;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 0.85rem;
  font-weight: 550;
  cursor: pointer;
}

.auth-dropdown__item:hover {
  background: rgba(77, 184, 255, 0.1);
}

.auth-dropdown__item--danger {
  color: #f5a39c;
}

.auth-error {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.7rem;
  font-size: 0.82rem;
  color: #f5a39c;
  background: rgba(240, 113, 103, 0.12);
  border: 1px solid rgba(240, 113, 103, 0.28);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.sync-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 0.85rem;
  animation: fade-up 0.35s ease;
}

.sync-hint__close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.15rem 0.35rem;
}

.demo-note {
  padding: 0.6rem 0.8rem;
  border-radius: 0.75rem;
  border: 1px dashed rgba(77, 184, 255, 0.4);
  background: rgba(77, 184, 255, 0.08);
  color: #bde8ff;
  font-size: 0.76rem;
  line-height: 1.35;
}

/* Fixed system banners — no layout shift */
.sys-banner {
  position: fixed;
  left: 50%;
  z-index: 78;
  width: min(calc(100% - 1.5rem), 26rem);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.78rem 0.85rem;
  border-radius: 1rem;
  border: 1px solid transparent;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.sys-banner.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.sys-banner[hidden] {
  display: none !important;
}

.sys-banner--offline {
  top: max(0.75rem, env(safe-area-inset-top));
  transform: translate(-50%, -120%);
  color: #ffe7b0;
  background: linear-gradient(135deg, rgba(90, 58, 12, 0.94), rgba(42, 28, 8, 0.92));
  border-color: rgba(240, 180, 41, 0.45);
}

.sys-banner--offline.is-visible {
  transform: translate(-50%, 0);
}

.sys-banner--pwa {
  bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translate(-50%, 120%);
  color: #d9efff;
  background: linear-gradient(135deg, rgba(14, 48, 78, 0.96), rgba(8, 22, 40, 0.94));
  border-color: rgba(77, 184, 255, 0.42);
}

.sys-banner--pwa.is-visible {
  transform: translate(-50%, 0);
}

.sys-banner__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: #f0b429;
  box-shadow: 0 0 10px rgba(240, 180, 41, 0.8);
  animation: live-pulse 1.5s ease-in-out infinite;
}

.sys-banner__mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(77, 184, 255, 0.16);
  border: 1px solid rgba(77, 184, 255, 0.28);
  font-size: 1rem;
}

.sys-banner__text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.sys-banner__text strong {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sys-banner__text span {
  font-size: 0.74rem;
  line-height: 1.3;
  opacity: 0.82;
}

.sys-banner__action {
  flex-shrink: 0;
  border: none;
  border-radius: 0.7rem;
  padding: 0.48rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  color: #041018;
  background: linear-gradient(135deg, #1d8fd9, #4db8ff);
  font-family: inherit;
}

.sys-banner__action:active {
  transform: scale(0.97);
}

.sys-banner__close {
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
  border: none;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.06);
  color: #9fb4d0;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
}

.sys-banner__close:hover {
  color: #e8eef7;
  background: rgba(255, 255, 255, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .sys-banner {
    transition: opacity 0.2s ease;
  }
}

@media (max-width: 420px) {
  .btn-auth span:not(.auth-avatar) {
    display: none;
  }

  .btn-auth--user .auth-name {
    display: none;
  }

  .btn-auth--user {
    padding: 0 0.35rem;
    width: 2.4rem;
    justify-content: center;
  }
}

/* Onboarding overlay — empty spots */
.onboarding-overlay {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70vh;
  padding: 2rem 1.5rem;
  gap: 1rem;
  overflow: hidden;
}

.onboarding-overlay.hidden {
  display: none !important;
}

.onboarding-overlay__glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 184, 255, 0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.onboarding-overlay__icon {
  font-size: 4rem;
  line-height: 1;
  position: relative;
  z-index: 1;
  animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.onboarding-overlay__title {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.onboarding-overlay__desc {
  margin: 0;
  font-size: 0.95rem;
  color: #9fb4d0;
  max-width: 28rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.onboarding-overlay__btn {
  font-size: 1rem;
  padding: 0.85rem 2.2rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 24px rgba(77, 184, 255, 0.25);
}

.onboarding-overlay__hint {
  margin: 0;
  font-size: 0.8rem;
  color: #4a6a8a;
  position: relative;
  z-index: 1;
}

/* Inland overlay */
.inland-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  padding: 2rem 1.5rem;
  gap: 0.75rem;
}

.inland-overlay.hidden {
  display: none !important;
}

#coastal-content.hidden {
  display: none !important;
}

.inland-overlay__icon {
  font-size: 3.5rem;
  line-height: 1;
  opacity: 0.7;
}

.inland-overlay__title {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.inland-overlay__desc {
  margin: 0;
  font-size: 0.9rem;
  color: #9fb4d0;
  max-width: 26rem;
  line-height: 1.55;
}

.inland-overlay__hint {
  margin: 0;
  font-size: 0.8rem;
  color: #6a8aaa;
  max-width: 24rem;
  line-height: 1.45;
}

/* Marine check badge in spot form */
.spot-marine-check {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
  border: 1.5px solid transparent;
  animation: fadeSlideIn 0.2s ease;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.spot-marine-check.is-checking {
  border-color: rgba(77, 184, 255, 0.4);
  background: rgba(77, 184, 255, 0.1);
  color: #9fd4ff;
}

.spot-marine-check.is-ok {
  border-color: rgba(61, 214, 140, 0.5);
  background: rgba(61, 214, 140, 0.12);
  color: #6ee9b7;
}

.spot-marine-check.is-bad {
  border-color: rgba(240, 113, 103, 0.6);
  background: rgba(240, 113, 103, 0.14);
  color: #fca5a5;
}

.field--error {
  border-color: rgba(240, 113, 103, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(240, 113, 103, 0.2);
  animation: shakeField 0.35s ease;
}

@keyframes shakeField {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-5px); }
  40%       { transform: translateX(5px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

