:root {
  --bg: #081716;
  --panel: #112321;
  --ink: #f4fff9;
  --muted: #9fbdb5;
  --line: rgba(255, 255, 255, 0.13);
  --green: #6ee7a8;
  --aqua: #21d4d7;
  --gold: #c7ff6b;
  --orange: #ff6f91;
  --violet: #8f7cff;
  --red: #ff4f7b;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 7%, rgba(33, 212, 215, 0.24), transparent 19rem),
    radial-gradient(circle at 22% 16%, rgba(143, 124, 255, 0.22), transparent 24rem),
    radial-gradient(circle at 80% 70%, rgba(255, 111, 145, 0.16), transparent 22rem),
    linear-gradient(180deg, #12302c 0%, #081312 48%, var(--bg) 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, black, transparent 72%);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.96;
  text-transform: uppercase;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.is-hidden,
.page {
  display: none;
}

.page.active {
  display: block;
  animation: pageIn 180ms ease-out;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-screen {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 42px 20px 28px;
  background:
    linear-gradient(180deg, rgba(8, 18, 30, 0.16) 0%, rgba(8, 15, 23, 0.18) 38%, rgba(7, 12, 17, 0.48) 100%),
    url("assets/welcome-beach.png") center / cover no-repeat;
}

.login-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.12), transparent 18rem),
    linear-gradient(90deg, rgba(4, 17, 30, 0.16), transparent 28%, transparent 72%, rgba(4, 17, 30, 0.18));
}

.welcome-shell {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: start;
  width: min(100%, 620px);
  min-height: calc(100vh - 70px);
}

.welcome-brand {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin-bottom: 26px;
  text-align: center;
  text-transform: uppercase;
  color: white;
  letter-spacing: 7px;
  font-weight: 900;
}

.welcome-logo {
  width: min(420px, 82vw);
  max-height: 230px;
  object-fit: contain;
  filter:
    brightness(0) invert(1)
    drop-shadow(0 20px 34px rgba(0, 0, 0, 0.38))
    drop-shadow(0 0 20px rgba(38, 225, 224, 0.2));
}

.welcome-brand span {
  font-size: clamp(13px, 2vw, 20px);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.login-card,
.panel,
.hero-board,
.community-strip div {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-card {
  width: min(100%, 540px);
  padding: clamp(24px, 4vw, 38px) clamp(24px, 4vw, 44px);
  background:
    linear-gradient(180deg, rgba(20, 31, 43, 0.94), rgba(12, 22, 31, 0.94)),
    radial-gradient(circle at 50% 0%, rgba(33, 212, 215, 0.14), transparent 18rem);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px);
  text-align: center;
}

.login-card h1 {
  margin: 0 0 10px;
  font-size: clamp(27px, 4vw, 34px);
  line-height: 1.05;
  text-transform: none;
  text-shadow: none;
}

.login-subtitle {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 1.4;
}

.welcome-security {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 28px;
  text-align: center;
  color: white;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.welcome-security strong {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

.welcome-security strong span {
  color: var(--aqua);
  font-size: 26px;
}

.welcome-security > span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--aqua), var(--green));
  color: #041615;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(33, 212, 215, 0.28);
}

.brand span {
  display: block;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

.login-form,
form {
  display: grid;
  gap: 14px;
}

.login-form {
  margin-top: 0;
  text-align: left;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.auth-tabs[data-mode="login"] .auth-tab[data-auth-mode="login"],
.auth-tabs[data-mode="register"] .auth-tab[data-auth-mode="register"] {
  display: none;
}

.auth-tab {
  min-height: 52px;
  border: 1px solid rgba(33, 212, 215, 0.44);
  border-radius: 6px;
  background: rgba(10, 24, 35, 0.54);
  color: var(--aqua);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.auth-tab.active {
  background: rgba(10, 24, 35, 0.54);
  color: var(--aqua);
}

.create-account-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-status {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(33, 212, 215, 0.18);
  border-radius: 8px;
  background: rgba(33, 212, 215, 0.07);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.auth-status:empty {
  display: none;
}

.auth-status[data-state="error"] {
  border-color: rgba(255, 79, 100, 0.38);
  background: rgba(255, 79, 100, 0.1);
  color: #ffd6dd;
}

.auth-status[data-state="success"] {
  border-color: rgba(110, 231, 168, 0.34);
  background: rgba(110, 231, 168, 0.1);
  color: #d9ffe8;
}

.supabase-setup {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.supabase-setup summary {
  color: white;
  cursor: pointer;
  font-weight: 900;
}

.supabase-setup form {
  margin-top: 12px;
}

.supabase-setup .ghost-action {
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
}

.supabase-setup p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

label {
  display: grid;
  gap: 9px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 800;
}

.input-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input-shell:focus-within {
  border-color: rgba(33, 212, 215, 0.76);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(33, 212, 215, 0.16);
}

.input-icon {
  display: grid;
  place-items: center;
  width: 46px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.input-shell input {
  min-height: 46px;
  border: 0;
  padding: 11px 6px 11px 0;
  background: transparent;
  outline: 0;
}

input::placeholder {
  color: rgba(247, 251, 255, 0.48);
}

.password-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.forgot-password {
  justify-self: end;
  margin-top: -2px;
  border: 0;
  background: transparent;
  color: var(--aqua);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.auth-divider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.auth-divider span {
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.primary-action,
.secondary-action,
.ghost-action,
.profile-button {
  border-radius: 8px;
  cursor: pointer;
  font-weight: 950;
  white-space: nowrap;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--aqua), var(--green));
  color: #041615;
  padding: 13px 18px;
  box-shadow: 0 16px 28px rgba(33, 212, 215, 0.22);
}

.primary-action:hover {
  background: linear-gradient(135deg, #64f4f4, #9dffc3);
}

.localhost-warning {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(245, 185, 89, 0.42);
  border-radius: 8px;
  background: rgba(245, 185, 89, 0.12);
}

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

.localhost-warning span {
  color: var(--muted);
  font-size: 13px;
}

.localhost-warning a {
  grid-row: 1 / span 2;
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(245, 185, 89, 0.18);
  color: #fff;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.secondary-action,
.ghost-action,
.profile-button {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid var(--line);
  padding: 12px 16px;
}

.ghost-action {
  width: 100%;
  margin-top: 12px;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(14, 36, 34, 0.94), rgba(6, 17, 16, 0.96)),
    radial-gradient(circle at top, rgba(33, 212, 215, 0.18), transparent 18rem);
  color: white;
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 24px 0 60px rgba(0, 0, 0, 0.22);
}

.nav {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-section {
  margin: 10px 8px 2px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-section:first-child {
  margin-top: 2px;
}

.nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.nav-icon {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-link span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-link.active,
.nav-link:hover {
  color: white;
  background:
    linear-gradient(135deg, rgba(33, 212, 215, 0.18), rgba(143, 124, 255, 0.12)),
    rgba(255, 255, 255, 0.08);
  border-color: rgba(33, 212, 215, 0.28);
  transform: translateX(2px);
  box-shadow: 0 12px 24px rgba(33, 212, 215, 0.12);
}

.nav-link.active .nav-icon,
.nav-link:hover .nav-icon {
  background: linear-gradient(135deg, var(--aqua), var(--green));
  color: #041615;
  box-shadow: 0 10px 18px rgba(33, 212, 215, 0.28);
}

.nav-link.active {
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(25, 211, 139, 0.12);
}

.status-panel {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(110, 231, 168, 0.08), rgba(33, 212, 215, 0.06)),
    rgba(255, 255, 255, 0.08);
}

.status-panel p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.pulse {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(110, 231, 168, 0.13);
}

main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px;
}

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

.profile-button {
  justify-content: center;
}

.app-header span,
.app-header strong,
.page-title span {
  display: block;
}

.app-header span {
  color: var(--aqua);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.app-header strong {
  font-size: 20px;
}

.hero-board {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  gap: 28px;
  min-height: 440px;
  padding: clamp(24px, 4vw, 44px);
  background:
    linear-gradient(135deg, rgba(14, 38, 36, 0.94), rgba(20, 48, 45, 0.78)),
    radial-gradient(circle at right, rgba(33, 212, 215, 0.24), transparent 22rem),
    radial-gradient(circle at 18% 88%, rgba(143, 124, 255, 0.16), transparent 18rem);
}

.hero-board::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 38px solid rgba(33, 212, 215, 0.16);
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy p {
  max-width: 670px;
  font-size: 18px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--aqua);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-kicker {
  padding: 7px 10px;
  border: 1px solid rgba(33, 212, 215, 0.46);
  border-radius: 8px;
  background: rgba(33, 212, 215, 0.11);
}

.hero-visual {
  min-height: 330px;
  display: grid;
  place-items: center;
}

.radar-ring {
  width: min(340px, 82vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(110, 231, 168, 0.25) 0 9%, transparent 9% 18%, rgba(255, 255, 255, 0.1) 18% 19%, transparent 19% 35%, rgba(33, 212, 215, 0.18) 35% 37%, transparent 37%),
    conic-gradient(from 20deg, rgba(33, 212, 215, 0.05), rgba(33, 212, 215, 0.38), rgba(143, 124, 255, 0.15), rgba(255, 111, 145, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 40px rgba(33, 212, 215, 0.14), 0 0 54px rgba(143, 124, 255, 0.18);
}

.bite-badge {
  position: absolute;
  min-width: 132px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 10, 16, 0.68);
  box-shadow: var(--shadow);
}

.bite-badge strong,
.bite-badge span {
  display: block;
}

.bite-badge strong {
  color: var(--green);
  font-size: 32px;
  line-height: 1;
}

.bite-badge span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.bite-badge.main {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.bite-badge.top {
  right: 0;
  top: 26px;
}

.bite-badge.bottom {
  left: 0;
  bottom: 34px;
}

.community-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.community-strip div {
  padding: 15px;
  background: rgba(255, 255, 255, 0.08);
}

.community-strip strong {
  display: block;
  color: #fff;
  font-size: 28px;
}

.community-strip span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.page-title {
  margin-bottom: 18px;
}

.live-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.condition-card {
  min-height: 190px;
}

.condition-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 0.95;
}

.condition-card p {
  margin-bottom: 0;
}

.source-list .primary-action {
  margin-top: 8px;
}

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

.source-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 24px;
}

.source-card p {
  margin-bottom: 0;
  font-size: 14px;
}

.grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.report-grid {
  grid-template-columns: 1.35fr 1fr 1fr;
}

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

.coach-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 16px;
}

.gear-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 16px;
}

.gear-layout .gear-ai-panel,
.gear-layout .rankings {
  align-content: start;
}

.gear-ai-result {
  border-color: rgba(143, 124, 255, 0.34);
  background: rgba(143, 124, 255, 0.1);
}

.ai-chat-panel {
  display: grid;
  grid-template-rows: auto minmax(320px, 1fr) auto auto;
}

.section-head p {
  margin-bottom: 0;
}

.chat-window {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 320px;
  max-height: 480px;
  overflow: auto;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 10, 16, 0.36);
}

.chat-message {
  max-width: 88%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.chat-message.user {
  justify-self: end;
  background: rgba(143, 124, 255, 0.15);
  border-color: rgba(143, 124, 255, 0.32);
}

.chat-message strong,
.chat-message p {
  display: block;
}

.chat-message strong {
  margin-bottom: 5px;
  color: var(--aqua);
  font-size: 13px;
}

.chat-message p {
  margin-bottom: 0;
}

.chat-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.quick-prompts .secondary-action {
  white-space: normal;
  text-align: left;
}

.tackle-panel {
  align-content: start;
}

.surf-video-panel {
  align-content: start;
}

.drop-zone {
  min-height: 180px;
  place-items: center;
  margin-top: 16px;
  border: 1px dashed rgba(33, 212, 215, 0.58);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 20%, rgba(33, 212, 215, 0.14), transparent 14rem),
    rgba(255, 255, 255, 0.06);
  cursor: pointer;
  text-align: center;
}

.drop-zone input {
  display: none;
}

.drop-zone span {
  color: var(--muted);
}

.drop-zone strong {
  color: white;
  font-size: 22px;
}

.drop-zone.drag-over {
  background: rgba(33, 212, 215, 0.16);
  border-color: var(--aqua);
}

.tackle-preview {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 10, 16, 0.36);
}

.tackle-preview img {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.surf-video-preview {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 10, 16, 0.36);
}

.surf-video-preview video {
  display: block;
  width: 100%;
  max-height: 320px;
  background: black;
}

.tackle-result {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(110, 231, 168, 0.34);
  border-radius: 8px;
  background: rgba(110, 231, 168, 0.1);
}

.tackle-result strong,
.tackle-result span {
  display: block;
}

.tackle-result p {
  margin: 8px 0;
}

.tackle-result span {
  color: var(--muted);
  font-size: 13px;
}

.surf-video-result {
  border-color: rgba(33, 212, 215, 0.34);
  background: rgba(33, 212, 215, 0.09);
}

.surf-video-result span + span {
  margin-top: 6px;
}

.gear-panel {
  align-content: start;
}

.api-key-panel {
  grid-column: 1 / -1;
}

.api-key-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.api-key-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.api-key-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 10, 16, 0.42);
  color: white;
  font: inherit;
  padding: 0 12px;
}

.api-key-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.api-key-status {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(245, 185, 89, 0.34);
  border-radius: 8px;
  background: rgba(245, 185, 89, 0.1);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.api-key-status[data-state="saved"] {
  border-color: rgba(110, 231, 168, 0.34);
  background: rgba(110, 231, 168, 0.1);
}

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

.gear-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.gear-form label:nth-child(4),
.gear-form button {
  grid-column: 1 / -1;
}

.gear-form input,
.gear-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 10, 16, 0.42);
  color: white;
  font: inherit;
  padding: 0 12px;
}

.gear-summary {
  display: grid;
  gap: 4px;
  margin: 14px 0 10px;
  padding: 12px;
  border: 1px solid rgba(33, 212, 215, 0.24);
  border-radius: 8px;
  background: rgba(33, 212, 215, 0.08);
}

.gear-summary strong,
.gear-summary span {
  display: block;
}

.gear-summary span {
  color: var(--muted);
  font-size: 13px;
}

.gear-list {
  display: grid;
  gap: 10px;
}

.gear-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.gear-item span,
.gear-item strong,
.gear-item small {
  display: block;
}

.gear-item span {
  color: var(--aqua);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.gear-item strong {
  margin-top: 3px;
  color: white;
}

.gear-item small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.icon-action {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: white;
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
}

.icon-action:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 79, 100, 0.18);
}

.panel {
  background:
    linear-gradient(180deg, rgba(27, 43, 59, 0.96), rgba(17, 29, 42, 0.94));
  padding: 20px;
}

.featured {
  background:
    radial-gradient(circle at 100% 0%, rgba(33, 212, 215, 0.22), transparent 14rem),
    linear-gradient(135deg, rgba(21, 58, 54, 0.98), rgba(13, 31, 29, 0.96));
  border-color: rgba(33, 212, 215, 0.3);
}

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

.rating {
  color: var(--green);
  white-space: nowrap;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.metrics-row div,
.catch-summary div,
.insight-stack div,
.coach-note,
.forecast-item,
.zone-detail-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  padding: 12px;
}

.metrics-row strong,
.catch-summary strong,
.insight-stack strong {
  display: block;
  font-size: 24px;
}

.metrics-row span,
.catch-summary span,
.insight-stack span,
.coach-note span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.catch-feed-panel {
  margin-top: 16px;
}

.catch-feed-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  margin-bottom: 16px;
}

.catch-feed-head > div {
  max-width: 760px;
  min-width: 0;
}

.catch-feed-head h2 {
  max-width: 680px;
}

.catch-feed-head .secondary-action {
  width: auto;
  justify-self: end;
  white-space: nowrap;
}

.catch-feed-head .nav-link {
  display: inline-flex;
  padding: 10px 14px;
  transform: none;
}

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

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

.catch-feed:has(.catch-card.empty) {
  grid-template-columns: 1fr;
}

.catch-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(33, 212, 215, 0.12), transparent 10rem),
    rgba(255, 255, 255, 0.06);
}

.catch-card.empty {
  min-height: 180px;
  place-content: center;
  text-align: center;
}

.catch-card.empty .catch-card-main {
  justify-content: center;
}

.catch-card.empty p {
  max-width: 520px;
  margin: 10px auto 0;
}

.catch-photo,
.map-catch-card img {
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  object-fit: cover;
}

.catch-photo {
  aspect-ratio: 16 / 10;
  margin-bottom: 12px;
}

.catch-card-main,
.catch-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.catch-card-main strong {
  color: white;
  font-size: 18px;
}

.catch-card-main span,
.catch-card-meta,
.catch-card small {
  color: var(--muted);
  font-size: 13px;
}

.catch-card-meta {
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 10px 0;
}

.catch-card-meta span,
.catch-card small {
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.catch-card p {
  margin: 0 0 10px;
}

.forecast-list,
.insight-stack {
  display: grid;
  gap: 10px;
}

.forecast-list {
  margin-bottom: 16px;
}

.weather-forecast-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 16px;
  overflow: hidden;
}

.weather-forecast-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
}

.weather-forecast-head h2 {
  max-width: 760px;
}

.weather-now-badge {
  display: grid;
  min-width: 170px;
  padding: 14px;
  border: 1px solid rgba(33, 212, 215, 0.3);
  border-radius: 8px;
  background: rgba(33, 212, 215, 0.1);
  text-align: right;
}

.weather-now-badge strong {
  color: var(--green);
  font-size: 40px;
  line-height: 1;
}

.weather-now-badge span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.weather-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 10, 16, 0.28);
}

.weather-tab {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.weather-tab.active {
  background: rgba(245, 185, 89, 0.16);
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--gold);
}

.hourly-chart {
  display: grid;
  grid-template-columns: repeat(10, minmax(76px, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 230px;
  padding: 16px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(245, 185, 89, 0.08), transparent 60%),
    rgba(255, 255, 255, 0.05);
  overflow-x: auto;
}

.hourly-weather-point {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  justify-items: center;
  gap: 8px;
  min-width: 76px;
  height: 190px;
  color: var(--muted);
  text-align: center;
}

.hourly-weather-point strong {
  color: white;
  font-size: 17px;
}

.weather-stem {
  display: grid;
  align-items: end;
  width: 100%;
  min-height: 86px;
}

.weather-stem i {
  display: block;
  width: 100%;
  height: var(--level);
  min-height: 8px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--gold), var(--aqua));
}

.hourly-weather-point small {
  display: block;
  min-height: 34px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.daily-weather-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(118px, 1fr));
  gap: 10px;
  overflow-x: auto;
}

.daily-weather-card {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 7px;
  min-width: 118px;
  min-height: 166px;
  padding: 13px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.daily-weather-card.active {
  border-color: rgba(245, 185, 89, 0.44);
  background: rgba(245, 185, 89, 0.12);
}

.daily-weather-card strong,
.daily-weather-card b,
.daily-weather-card span,
.daily-weather-card small {
  display: block;
}

.daily-weather-card b {
  color: white;
  font-size: 20px;
}

.daily-weather-card b small {
  display: inline;
  color: var(--muted);
  font-size: 16px;
}

.daily-weather-card span,
.daily-weather-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.weather-icon {
  position: relative;
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: visible;
  background: linear-gradient(135deg, #ffd45a, #ff9e2d);
  box-shadow: 0 0 18px rgba(245, 185, 89, 0.28);
}

.weather-icon::before,
.weather-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.weather-sun::before {
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff0a8, #ffb329 70%);
}

.weather-part {
  background: linear-gradient(135deg, #ffd45a, #ff9e2d);
}

.weather-part::before,
.weather-cloud::before,
.weather-rain::before,
.weather-driz::before,
.weather-storm::before,
.weather-snow::before,
.weather-mix::before,
.weather-fog::before {
  left: 12px;
  right: 8px;
  bottom: 13px;
  height: 22px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 23% 32%, #f7fbff 0 12px, transparent 13px),
    radial-gradient(circle at 55% 12%, #d7dde3 0 15px, transparent 16px),
    linear-gradient(#dfe6ec, #aeb9c2);
  box-shadow: -5px 2px 0 #eef3f7;
}

.weather-cloud,
.weather-rain,
.weather-driz,
.weather-storm,
.weather-snow,
.weather-fog {
  background: linear-gradient(135deg, #dae2e9, #9faab4);
  box-shadow: none;
}

.weather-rain::after,
.weather-driz::after,
.weather-mix::after {
  left: 18px;
  bottom: 3px;
  width: 24px;
  height: 18px;
  border-radius: 0;
  background:
    linear-gradient(115deg, transparent 0 42%, #21d4d7 43% 57%, transparent 58%) 0 0 / 8px 18px repeat-x;
}

.weather-driz::after {
  opacity: 0.62;
}

.weather-storm::after {
  left: 25px;
  bottom: 0;
  width: 12px;
  height: 23px;
  clip-path: polygon(45% 0, 100% 0, 62% 42%, 100% 42%, 20% 100%, 42% 55%, 0 55%);
  background: #ffb329;
}

.weather-snow::after {
  left: 18px;
  bottom: 2px;
  width: 28px;
  height: 16px;
  background:
    radial-gradient(circle, #f7fbff 0 2px, transparent 3px) 0 0 / 9px 9px,
    radial-gradient(circle, #dff7ff 0 2px, transparent 3px) 4px 5px / 10px 10px;
}

.weather-fog::after {
  left: 10px;
  right: 10px;
  bottom: 7px;
  height: 14px;
  border-radius: 999px;
  background:
    linear-gradient(#f7fbff, #f7fbff) 0 0 / 100% 2px no-repeat,
    linear-gradient(#cbd5df, #cbd5df) 8px 6px / calc(100% - 8px) 2px no-repeat,
    linear-gradient(#f7fbff, #f7fbff) 0 12px / 100% 2px no-repeat;
}

.weather-mix {
  background: linear-gradient(135deg, #ffd45a 0 45%, #8f7cff 46% 100%);
}

.empty-forecast {
  grid-column: 1 / -1;
  align-self: center;
  color: var(--muted);
  text-align: center;
}

.model-updated {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.model-confidence {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid rgba(33, 212, 215, 0.28);
  border-radius: 8px;
  background: rgba(33, 212, 215, 0.1);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.forecast-item {
  display: grid;
  grid-template-columns: 120px 1fr 54px;
  align-items: center;
  gap: 12px;
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--aqua), var(--green));
}

blockquote {
  margin: 18px 0 0;
  padding-left: 16px;
  border-left: 4px solid var(--aqua);
  color: #d5e5ef;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 340px;
  gap: 16px;
}

.map-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.map-toolbar div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.map-toolbar strong,
.map-toolbar span {
  display: block;
}

.map-toolbar span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.surf-location-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(320px, 1fr);
  gap: 14px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid rgba(110, 231, 168, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, rgba(33, 212, 215, 0.13), transparent 16rem),
    linear-gradient(135deg, rgba(7, 22, 28, 0.94), rgba(13, 28, 37, 0.88));
}

.surf-location-control,
.nearest-surf-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 100%;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.surf-location-control strong,
.nearest-surf-panel strong {
  display: block;
  margin-top: 3px;
  color: white;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.05;
}

.surf-location-control p,
.nearest-surf-panel p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.surf-location-control label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.surf-location-control label span {
  color: var(--muted);
  font-size: 12px;
}

.surf-location-control select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(12, 32, 43, 0.92), rgba(7, 18, 25, 0.92));
  color: white;
  font: inherit;
  padding: 0 40px 0 12px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.surf-location-control select:focus {
  border-color: rgba(33, 212, 215, 0.6);
  box-shadow: 0 0 0 3px rgba(33, 212, 215, 0.12);
}

.surf-location-control small {
  display: block;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(178, 207, 201, 0.8);
  font-size: 12px;
  line-height: 1.45;
}

.nearest-surf-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.nearest-surf-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.nearest-surf-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
}

.nearest-surf-card strong,
.nearest-surf-card span,
.nearest-surf-card small {
  display: block;
}

.nearest-surf-card span,
.nearest-surf-card small {
  color: var(--muted);
  font-size: 12px;
}

.nearest-surf-card b {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 20%, rgba(110, 231, 168, 0.34), rgba(33, 212, 215, 0.13));
  color: var(--green);
  font-size: 18px;
}

.nearest-surf-card small {
  grid-column: 1 / -1;
}

.report-truth-note {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 185, 89, 0.34);
  border-radius: 8px;
  background: rgba(245, 185, 89, 0.1);
}

.report-truth-note strong,
.report-truth-note span {
  display: block;
}

.report-truth-note span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.coast-map {
  display: grid;
  align-content: stretch;
  gap: 16px;
  min-height: 430px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(124, 163, 116, 0.24) 0 18%, transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 18% 20%, transparent 20%),
    linear-gradient(180deg, #0e4351 0%, #08242e 100%);
  padding: 18px;
}

.coast-map::before {
  content: "";
  display: block;
  height: 34px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(199, 255, 107, 0.52), rgba(110, 231, 168, 0.34)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 0 rgba(255, 255, 255, 0.16);
}

.coast-map::after {
  content: "";
  display: block;
  align-self: end;
  height: 18px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(33, 212, 215, 0.48), transparent);
}

.map-axis {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  order: -1;
}

.map-axis strong {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: white;
  text-align: center;
}

.map-axis strong::before,
.map-axis strong::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
}

.map-axis span,
.map-legend span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  order: 3;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.map-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.map-legend i[data-strength="hot"] {
  background: #ff4f64;
}

.map-legend i[data-strength="good"] {
  background: #8f7cff;
}

.map-legend i[data-strength="fair"] {
  background: #6ee7a8;
}

.map-legend i[data-strength="watch"] {
  background: #f5b959;
}

.zone-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 10px;
  align-items: stretch;
  order: 2;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(4, 18, 24, 0.28);
}

.zone-empty {
  display: grid;
  gap: 8px;
  min-height: 160px;
  place-content: center;
  padding: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.zone-empty strong {
  color: white;
  font-size: 20px;
}

.zone-empty span {
  max-width: 520px;
}

.zone {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 148px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 12px;
  color: white;
  font-weight: 900;
  cursor: pointer;
  text-align: left;
  box-shadow: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.zone strong,
.zone span,
.zone small {
  display: block;
}

.zone strong {
  font-size: 28px;
}

.zone span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.zone .zone-location {
  min-height: 34px;
  color: white;
  font-size: 14px;
  line-height: 1.2;
}

.zone small {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.25;
}

.zone:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.72);
}

.zone.selected {
  border-color: white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.zone[data-strength="hot"] {
  background: linear-gradient(180deg, rgba(255, 79, 100, 0.92), rgba(132, 38, 55, 0.88));
}

.zone[data-strength="good"] {
  background: linear-gradient(180deg, rgba(143, 124, 255, 0.9), rgba(63, 58, 130, 0.88));
}

.zone[data-strength="fair"] {
  background: linear-gradient(180deg, rgba(110, 231, 168, 0.86), rgba(42, 104, 82, 0.9));
}

.zone[data-strength="watch"] {
  background: linear-gradient(180deg, rgba(245, 185, 89, 0.88), rgba(121, 82, 36, 0.9));
}

.zone-detail {
  display: grid;
  align-content: start;
  gap: 10px;
}

.zone-detail-hero {
  border-color: rgba(33, 212, 215, 0.36);
  background:
    radial-gradient(circle at 100% 0%, rgba(33, 212, 215, 0.16), transparent 8rem),
    rgba(255, 255, 255, 0.06);
}

.zone-detail-hero strong {
  color: var(--aqua);
  font-size: 26px;
}

.zone-detail-hero small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

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

.zone-detail-card span {
  color: var(--muted);
  margin-top: 4px;
}

.community-zone-feed {
  gap: 10px;
}

.map-catch-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.map-catch-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(4, 10, 16, 0.28);
}

.map-catch-card img {
  max-height: 160px;
}

.map-catch-card div {
  display: grid;
  gap: 3px;
}

.map-catch-card strong,
.map-catch-card span,
.map-catch-card small {
  display: block;
}

.map-catch-card strong {
  color: white;
}

.map-catch-card p {
  margin: 0;
  color: #d5e5ef;
  font-size: 13px;
  line-height: 1.45;
}

.map-catch-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.map-catch-card.empty {
  border-style: dashed;
}

.rankings ol {
  margin: 0;
  padding-left: 22px;
}

.rankings li {
  margin: 12px 0;
  padding-left: 4px;
}

.coach-note + .coach-note {
  margin-top: 10px;
}

.submit-panel form {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
}

.form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.analysis-result {
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(110, 231, 168, 0.12);
  border: 1px solid rgba(110, 231, 168, 0.36);
}

.analysis-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.analysis-head strong,
.analysis-head span,
.analysis-disclaimer {
  display: block;
}

.analysis-head span,
.analysis-disclaimer {
  color: var(--muted);
  font-size: 13px;
}

.analysis-score {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: rgba(33, 212, 215, 0.16);
  border: 1px solid rgba(33, 212, 215, 0.35);
  color: var(--aqua);
  font-weight: 900;
}

.analysis-meter {
  height: 8px;
  margin: 12px 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.analysis-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--aqua));
}

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

.analysis-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.analysis-grid ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.analysis-grid li + li {
  margin-top: 5px;
}

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

  .sidebar {
    position: static;
    height: auto;
  }

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

  .nav-link {
    justify-content: center;
    text-align: center;
    padding: 9px;
  }

  .nav-link.active,
  .nav-link:hover {
    transform: translateY(-2px);
  }

  .nav-link.active::after {
    right: 50%;
    bottom: 4px;
    transform: translateX(50%);
  }

  .nav-section {
    grid-column: 1 / -1;
    margin-top: 8px;
    text-align: left;
  }

  .status-panel {
    margin-top: 0;
  }

  .hero-board,
  .report-grid,
  .split,
  .coach-layout,
  .gear-layout,
  .live-dashboard,
  .source-grid,
  .weather-forecast-head,
  .map-toolbar,
  .surf-location-panel,
  .nearest-surf-panel,
  .nearest-surf-list,
  .map-layout,
  .zone-track,
  .submit-panel form,
  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .nearest-surf-panel .primary-action {
    width: 100%;
  }

  .welcome-logo {
    width: min(390px, 84vw);
    max-height: 210px;
  }
}

@media (max-width: 640px) {
  main,
  .sidebar {
    padding: 18px;
  }

  .login-screen {
    padding: 28px 14px 22px;
  }

  .welcome-shell {
    min-height: calc(100vh - 50px);
  }

  .welcome-brand {
    margin-bottom: 18px;
    letter-spacing: 5px;
  }

  .welcome-logo {
    width: min(320px, 86vw);
    max-height: 160px;
  }

  .login-card {
    padding: 24px 18px;
  }

  .app-header,
  .card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .nav,
  .community-strip,
  .metrics-row,
  .catch-summary,
  .catch-feed,
  .catch-feed-head,
  .localhost-warning,
  .forecast-item,
  .chat-form,
  .gear-form {
    grid-template-columns: 1fr;
  }

  .weather-forecast-head {
    align-items: stretch;
  }

  .weather-now-badge {
    text-align: left;
  }

  .weather-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .weather-tab {
    padding: 0 8px;
  }

  .localhost-warning a {
    grid-column: auto;
    grid-row: auto;
  }

  .hourly-chart,
  .daily-weather-row {
    grid-auto-flow: column;
    grid-auto-columns: minmax(104px, 1fr);
    grid-template-columns: none;
  }

  .gear-form label:nth-child(4),
  .gear-form button {
    grid-column: auto;
  }

  .catch-card-main {
    align-items: stretch;
    flex-direction: column;
  }

  .catch-feed-head .secondary-action {
    justify-self: stretch;
    width: 100%;
  }

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

  .nav-link {
    justify-content: flex-start;
    text-align: left;
  }

  .welcome-security {
    margin-top: 18px;
    padding: 0 8px;
  }

  .hero-board {
    min-height: auto;
  }

  .hero-buttons {
    display: grid;
  }

  .hero-visual {
    min-height: 280px;
  }

  .bite-badge.top {
    right: 8px;
  }

  .bite-badge.bottom {
    left: 8px;
  }

  .coast-map {
    min-height: 360px;
  }

  .zone {
    min-height: 118px;
    width: 100%;
  }

  .zone strong {
    font-size: 24px;
  }

  .zone span {
    font-size: 12px;
  }
}

.is-hidden {
  display: none !important;
}
