:root {
  --ink: #10242c;
  --muted: #5b7380;
  --line: #d3e8e7;
  --paper: #eef8f5;
  --white: #ffffff;
  --ocean: #0b7887;
  --deep: #063746;
  --sea: #22b9a5;
  --aqua: #9de7dc;
  --mist: #f7fffc;
  --foam: #e9fffb;
  --sand: #f1dfbd;
  --safety: #ff8a4c;
  --shadow: 0 24px 64px rgba(6, 56, 73, 0.18);
  --soft-shadow: 0 14px 34px rgba(6, 56, 73, 0.09);
  --hero-image: url("https://images.unsplash.com/photo-1502680390469-be75c86b636f?auto=format&fit=crop&w=1900&q=86");
  --reports-image: url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1700&q=86");
  --crew-image: url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1700&q=86");
  --spots-image: url("https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=1700&q=86");
  --profile-image: url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1700&q=86");
}

/* Professional UI system: shared product states and responsive spots */
:root {
  --type-page: 1.7rem;
  --type-card: 1.08rem;
  --type-body: 0.9rem;
  --type-meta: 0.76rem;
  --space-card: 14px;
}

:where(button, a, summary, .tag, .spot-location, .spot-updated, .report-freshness) > svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  vertical-align: -0.18em;
}

.top-links svg,
.bottom-nav svg {
  width: 20px;
  height: 20px;
}

.report-card,
.crew-card,
.spot-card,
.profile-panel,
.empty-state,
.skeleton-card {
  border: 1px solid rgba(15, 65, 78, 0.1);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(8, 58, 70, 0.07);
}

.report-card h3,
.crew-card h3,
.spot-card h3,
.profile-panel h3 {
  font-size: var(--type-card);
  line-height: 1.3;
}

.report-card p,
.crew-card p,
.spot-card p,
.profile-panel p {
  font-size: var(--type-body);
}

.tag,
.spot-location,
.spot-updated,
.report-freshness,
.profile-kicker {
  font-size: var(--type-meta);
}

.empty-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
  background: #ffffff;
}

.error-state {
  border-color: rgba(190, 74, 43, 0.22);
}

.error-state .empty-state-icon {
  color: #9a402c;
  background: #fff0e9;
}

.skeleton-stack {
  display: grid;
  gap: 12px;
}

.skeleton-card {
  display: grid;
  gap: 12px;
  padding: var(--space-card);
  overflow: hidden;
}

.skeleton-line,
.skeleton-media,
.skeleton-actions span {
  position: relative;
  overflow: hidden;
  background: #e8f1f0;
  border-radius: 7px;
}

.skeleton-line::after,
.skeleton-media::after,
.skeleton-actions span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.25s ease-in-out infinite;
}

.skeleton-line {
  width: 100%;
  height: 13px;
}

.skeleton-line-short {
  width: 34%;
}

.skeleton-line-medium {
  width: 68%;
}

.skeleton-media {
  min-height: 150px;
}

.skeleton-crew .skeleton-media,
.skeleton-spot .skeleton-media,
.skeleton-channel .skeleton-media,
.skeleton-message .skeleton-media {
  min-height: 58px;
}

.skeleton-actions {
  display: flex;
  gap: 8px;
}

.skeleton-actions span {
  width: 92px;
  height: 38px;
}

@keyframes skeleton-shimmer {
  to {
    transform: translateX(100%);
  }
}

.spots-view-switch {
  display: none;
  gap: 4px;
  padding: 4px;
  background: #e9f2f1;
  border-radius: 10px;
}

.spots-view-switch button {
  display: inline-flex;
  min-height: 40px;
  gap: 7px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  color: #587078;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-weight: 800;
}

.spots-view-switch button.is-active {
  color: var(--deep);
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(8, 58, 70, 0.08);
}

.spot-card {
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.spot-card.is-selected {
  border-color: rgba(11, 120, 135, 0.58);
  box-shadow: 0 0 0 3px rgba(11, 120, 135, 0.1), 0 10px 28px rgba(8, 58, 70, 0.1);
}

.spot-map-marker.is-selected span {
  color: #ffffff;
  background: var(--ocean);
  border-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(11, 120, 135, 0.2), 0 8px 20px rgba(5, 61, 73, 0.24);
}

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

@media (max-width: 620px) {
  .spots-view-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 10px;
  }

  .spots-section[data-spots-view="map"] .spot-list {
    display: none;
  }

  .spots-section[data-spots-view="list"] .map-panel {
    display: none;
  }

  .spots-section[data-spots-view="list"] .spots-layout {
    display: block;
  }

  .empty-state {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .skeleton-card {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-line::after,
  .skeleton-media::after,
  .skeleton-actions span::after {
    animation: none;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(157, 231, 220, 0.44), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(255, 138, 76, 0.12), transparent 24%),
    linear-gradient(180deg, #f8fffd 0%, var(--paper) 42%, #e7f4f1 100%);
  font-family:
    "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(34, 185, 165, 0.55);
  outline-offset: 3px;
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
}

.ocean-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.swell {
  position: absolute;
  left: -20vw;
  width: 140vw;
  height: 220px;
  opacity: 0.18;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.75) 0 3%, transparent 4%),
    repeating-radial-gradient(ellipse at center, transparent 0 34px, rgba(8, 117, 139, 0.14) 35px 37px, transparent 38px 76px);
  border-radius: 50%;
  filter: blur(0.2px);
  animation: swell-drift 18s linear infinite;
}

.swell-one {
  top: 130px;
}

.swell-two {
  top: 46vh;
  opacity: 0.18;
  animation-duration: 24s;
  animation-direction: reverse;
}

.swell-three {
  bottom: -50px;
  opacity: 0.16;
  animation-duration: 30s;
}

.sun-glow {
  position: absolute;
  right: 8vw;
  top: 90px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(242, 122, 61, 0.16), transparent 68%);
  border-radius: 50%;
}

@keyframes swell-drift {
  from {
    transform: translateX(0) translateY(0);
  }
  50% {
    transform: translateX(8vw) translateY(14px);
  }
  to {
    transform: translateX(0) translateY(0);
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) clamp(16px, 4vw, 48px) 12px;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(16, 33, 42, 0.08);
  box-shadow: 0 12px 34px rgba(6, 56, 73, 0.08);
  backdrop-filter: blur(18px);
  transition: padding 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

body.has-scrolled .topbar {
  padding-top: calc(9px + env(safe-area-inset-top, 0px));
  padding-bottom: 9px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(6, 56, 73, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}

.eyebrow,
.muted {
  color: var(--muted);
}

.header-logo {
  display: block;
  width: 188px;
  height: auto;
  filter: drop-shadow(0 7px 14px rgba(6, 56, 73, 0.08));
}

.top-links {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 5px;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 999px;
}

.top-links a {
  padding: 8px 12px;
  color: var(--deep);
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 900;
}

.top-links a:hover {
  background: #e8f3f1;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-footer {
  display: flex;
  width: min(1180px, calc(100% - 32px));
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin: 28px auto 8px;
  padding: 18px 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}

.site-footer > div {
  display: grid;
  gap: 3px;
}

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

.footer-brand > img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.footer-brand > div {
  display: grid;
  gap: 3px;
}

.site-footer strong {
  color: var(--deep);
}

.site-footer span {
  font-size: 0.84rem;
  font-weight: 800;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.site-footer button {
  padding: 8px 10px;
  color: var(--deep);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.site-footer button:hover {
  background: #e8f3f1;
}

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

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  min-height: clamp(650px, 78vh, 820px);
  padding: clamp(34px, 6.5vw, 78px);
  margin: 18px 0 26px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(3, 33, 43, 0.88) 0%, rgba(5, 67, 81, 0.62) 45%, rgba(5, 67, 81, 0.18) 100%),
    radial-gradient(circle at 75% 18%, rgba(255, 255, 255, 0.18), transparent 24%),
    var(--hero-image) center / cover;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 28px;
  box-shadow: 0 34px 90px rgba(6, 56, 73, 0.25);
  isolation: isolate;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: auto -8% -22% -8%;
  z-index: -1;
  height: 46%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.32), transparent 42%),
    repeating-radial-gradient(ellipse at center, rgba(255, 255, 255, 0.18) 0 2px, transparent 3px 34px);
  opacity: 0.5;
  transform: rotate(-2deg);
  animation: hero-tide 16s ease-in-out infinite;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 52%, rgba(6, 56, 73, 0.48));
  pointer-events: none;
}

@keyframes hero-tide {
  0%,
  100% {
    transform: translateX(-2%) rotate(-2deg);
  }
  50% {
    transform: translateX(2%) rotate(-2deg);
  }
}

.hero-copy {
  max-width: 740px;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 0;
  color: var(--white);
  font-size: clamp(2.7rem, 5.7vw, 6.35rem);
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.11rem;
  line-height: 1.7;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.mobile-hero-subtitle {
  display: none;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-pills span {
  padding: 8px 11px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-section .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions,
.section-heading,
.quick-stats,
.toolbar,
.badge-row {
  display: flex;
  align-items: center;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-button,
.secondary-button,
.ghost-button,
.text-button,
.icon-button,
.danger-button {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transform: translateZ(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  will-change: transform;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
}

.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.danger-button:active,
.bottom-nav a:active,
.bottom-nav button:active {
  transform: translateY(1px) scale(0.98);
}

.primary-button.is-loading,
.secondary-button.is-loading,
.danger-button.is-loading {
  position: relative;
  opacity: 0.82;
  cursor: progress;
}

.primary-button.is-loading::before,
.secondary-button.is-loading::before,
.danger-button.is-loading::before {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: 8px;
  vertical-align: -0.12em;
  border: 2px solid currentcolor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: button-spin 0.72s linear infinite;
}

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

.primary-button {
  padding: 13px 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--ocean), var(--sea));
  box-shadow: 0 16px 34px rgba(8, 117, 139, 0.3);
}

.hero-section .primary-button {
  color: var(--deep);
  background: var(--white);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.hero-section .secondary-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.secondary-button,
.ghost-button {
  padding: 13px 18px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(6, 56, 73, 0.08);
}

.text-button {
  color: var(--ocean);
  background: transparent;
}

.icon-button {
  width: 36px;
  height: 36px;
  color: var(--muted);
  background: #edf3f3;
}

.danger-button {
  padding: 13px 18px;
  color: #8c321f;
  background: #ffe0d2;
  border: 1px solid rgba(140, 50, 31, 0.18);
}

.auth-button.is-signed-in {
  color: var(--white);
  background: var(--deep);
  border-color: var(--deep);
}

.account-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.account-actions .ghost-button[hidden],
.notification-button strong[hidden] {
  display: none;
}

.notification-button {
  position: relative;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.install-button[hidden] {
  display: none;
}

.notification-button strong {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  padding: 0 4px;
  color: var(--white);
  background: var(--safety);
  border: 2px solid var(--white);
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(140, 50, 31, 0.2);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
}

.network-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 8px 11px;
  color: #0f5d3b;
  background: rgba(218, 244, 229, 0.92);
  border: 1px solid rgba(15, 93, 59, 0.16);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.network-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #16a36a;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(22, 163, 106, 0.12);
}

.network-badge.is-offline {
  color: #9a4b00;
  background: rgba(255, 241, 212, 0.94);
  border-color: rgba(154, 75, 0, 0.18);
}

.network-badge.is-offline::before {
  background: #f59f00;
  box-shadow: 0 0 0 4px rgba(245, 159, 0, 0.14);
}

.coast-card {
  position: relative;
  align-self: end;
  min-height: 430px;
  overflow: hidden;
  padding: 16px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.09)),
    rgba(5, 55, 70, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 24px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(20px);
}

.coast-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, transparent 0 34%, rgba(255, 255, 255, 0.26) 44%, transparent 54%),
    radial-gradient(circle at 76% 16%, rgba(255, 255, 255, 0.55), transparent 13%);
  opacity: 0.3;
  mix-blend-mode: soft-light;
  animation: light-sweep 8s ease-in-out infinite;
}

@keyframes light-sweep {
  0%,
  100% {
    transform: translateX(-8%);
    opacity: 0.56;
  }
  50% {
    transform: translateX(8%);
    opacity: 0.88;
  }
}

.wave-lines {
  position: absolute;
  inset: 32% 0 auto;
  z-index: 2;
  display: grid;
  gap: 15px;
  opacity: 0.58;
  transform: rotate(-4deg);
}

.wave-lines span {
  display: block;
  width: 140%;
  height: 16px;
  margin-left: -20%;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 0 20%, transparent 21%) 0 0 / 72px 18px repeat-x;
  animation: wave-slide 7s linear infinite;
}

.wave-lines span:nth-child(2) {
  opacity: 0.75;
  animation-duration: 9s;
  animation-direction: reverse;
}

.wave-lines span:nth-child(3) {
  opacity: 0.48;
  animation-duration: 12s;
}

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

.app-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 0 0 18px;
  padding: 18px;
  color: var(--white);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, var(--deep), var(--ocean));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.dash-greeting {
  display: grid;
  gap: 4px;
}

.dash-greeting span {
  opacity: 0.78;
  font-weight: 800;
}

.dash-greeting strong {
  font-size: clamp(1.1rem, 2.4vw, 1.65rem);
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.app-dashboard .secondary-button {
  background: rgba(255, 255, 255, 0.92);
}

.mobile-home-hub {
  display: none;
}

.onboarding-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
  gap: 16px;
  align-items: stretch;
  margin: 0 0 28px;
  padding: 18px;
  color: var(--deep);
  background:
    radial-gradient(circle at 4% 0%, rgba(34, 185, 165, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(232, 248, 246, 0.78));
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 20px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.onboarding-copy {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 220px;
  padding: 18px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(3, 32, 43, 0.88), rgba(3, 32, 43, 0.44)),
    url("https://images.unsplash.com/photo-1484821582734-6c6c9f99a672?auto=format&fit=crop&w=1100&q=82") center / cover;
  border-radius: 16px;
}

.onboarding-copy .eyebrow,
.onboarding-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.onboarding-copy h2 {
  max-width: 520px;
  margin: 0;
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  line-height: 1;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.onboarding-copy p {
  max-width: 560px;
  margin: 0;
  line-height: 1.55;
}

.launch-checklist {
  display: grid;
  gap: 10px;
}

.launch-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(6, 56, 73, 0.07);
}

.launch-step > span {
  display: inline-grid;
  min-width: 48px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--deep), var(--ocean));
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.launch-step.is-done > span {
  background: linear-gradient(135deg, #0f6f55, var(--sea));
}

.launch-step strong,
.launch-step p {
  display: block;
  margin: 0;
}

.launch-step p {
  margin: 3px 0 8px;
  color: var(--muted);
  line-height: 1.45;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  text-decoration: none;
}

.coast-sky,
.coast-sea,
.coast-shore {
  display: none;
}

.coast-sky {
  top: 0;
  height: 42%;
  background: linear-gradient(#bbe2e6, #e6f1ee);
}

.coast-sea {
  top: 34%;
  height: 38%;
  background:
    radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.7) 0 2px, transparent 3px),
    linear-gradient(135deg, #0f7387, #24a58e);
}

.coast-shore {
  bottom: 0;
  height: 36%;
  background: linear-gradient(160deg, var(--sand), #f6edda 54%, #d4bea0);
}

.coast-overlay {
  position: relative;
  z-index: 3;
  right: auto;
  bottom: auto;
  left: auto;
  padding: 18px;
  color: var(--white);
  background: rgba(6, 56, 73, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
}

.coast-overlay span,
.coast-overlay small {
  display: block;
  opacity: 0.8;
}

.coast-overlay strong {
  display: block;
  margin: 6px 0;
  font-size: 1.25rem;
}

.live-stack {
  position: relative;
  z-index: 4;
  top: auto;
  right: auto;
  left: auto;
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.live-stack article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(6, 56, 73, 0.16);
  backdrop-filter: blur(14px);
}

.live-stack strong,
.live-stack small {
  display: block;
}

.live-stack small {
  color: rgba(255, 255, 255, 0.72);
}

.live-dot {
  width: 12px;
  height: 12px;
  background: var(--safety);
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(242, 122, 61, 0.16);
}

.live-dot.green {
  background: var(--sea);
  box-shadow: 0 0 0 6px rgba(34, 167, 143, 0.16);
}

.readiness-panel {
  display: grid;
  gap: 14px;
  margin: 0 0 28px;
  padding: clamp(18px, 3vw, 26px);
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(34, 185, 165, 0.24), transparent 32%),
    radial-gradient(circle at 4% 100%, rgba(255, 138, 76, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(231, 249, 247, 0.84));
  border: 1px solid rgba(8, 117, 139, 0.14);
  border-radius: 22px;
  box-shadow: 0 24px 54px rgba(6, 56, 73, 0.12);
  backdrop-filter: blur(18px);
}

.readiness-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.readiness-hero h2,
.readiness-hero p {
  margin: 0;
}

.readiness-hero h2 {
  color: var(--deep);
  font-size: clamp(1.65rem, 3vw, 2.6rem);
}

.readiness-hero p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.readiness-meter {
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  color: var(--deep);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 58%, transparent 59%),
    conic-gradient(var(--sea) var(--readiness), rgba(8, 117, 139, 0.12) 0);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(8, 117, 139, 0.08), 0 14px 30px rgba(6, 56, 73, 0.14);
}

.readiness-meter span {
  margin-top: 12px;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.readiness-meter small {
  margin-top: -22px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

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

.readiness-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  min-height: 176px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(8, 117, 139, 0.1);
  border-radius: 16px;
}

.readiness-grid span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.readiness-grid strong {
  color: var(--deep);
  font-size: 1.1rem;
}

.readiness-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .readiness-panel {
    width: 100%;
    min-width: 0;
    padding: 16px;
    border-radius: 18px;
  }

  .readiness-hero,
  .readiness-grid {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .readiness-grid article {
    width: 100%;
  }

  .readiness-hero p:not(.eyebrow),
  .readiness-grid p {
    max-width: 30ch;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .readiness-grid strong,
  .readiness-grid a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .readiness-grid .primary-button {
    width: 100%;
    max-width: 100%;
    white-space: normal;
  }

  .readiness-meter {
    width: 96px;
    height: 96px;
  }

  .readiness-meter span {
    font-size: 1.6rem;
  }
}

.experience-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 28px;
}

.experience-strip article {
  display: grid;
  gap: 8px;
  min-height: 168px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.76));
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}

.experience-strip span {
  display: inline-grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  align-self: start;
  justify-self: start;
  color: var(--white);
  background: var(--ocean);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.experience-strip strong {
  font-size: 1.08rem;
}

.experience-strip p {
  margin: 0;
  color: #455960;
  line-height: 1.5;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 8px 0 28px;
}

.quick-stats article,
.report-card,
.side-panel,
.spot-card,
.trust-section,
.modal-card {
  background: var(--white);
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
  transform: translateZ(0);
  will-change: transform;
}

.crew-card,
.profile-panel,
.calendar-panel,
.day-plans,
.map-panel {
  transform: translateZ(0);
  will-change: transform;
}

.quick-stats article {
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(239, 250, 248, 0.82));
}

.quick-stats strong {
  display: block;
  font-size: 2rem;
  color: var(--deep);
}

.quick-stats span {
  color: var(--muted);
}

.reports-section {
  padding: 38px 0 18px;
}

.reports-section,
.crew-section,
.spots-section {
  position: relative;
}

.reports-section > .section-heading:first-child,
.crew-section > .section-heading:first-child,
.spots-section > .section-heading:first-child {
  position: relative;
  min-height: 230px;
  align-items: end;
  overflow: hidden;
  padding: clamp(24px, 5vw, 42px);
  margin-bottom: 18px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(3, 32, 43, 0.82), rgba(3, 58, 70, 0.4) 58%, rgba(3, 58, 70, 0.1)),
    linear-gradient(180deg, transparent 40%, rgba(3, 32, 43, 0.42)),
    var(--section-image) center / cover;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 26px;
  box-shadow: 0 26px 72px rgba(6, 56, 73, 0.18);
  isolation: isolate;
}

.reports-section > .section-heading:first-child::before,
.crew-section > .section-heading:first-child::before,
.spots-section > .section-heading:first-child::before {
  content: "";
  position: absolute;
  inset: auto -8% -48px -8%;
  z-index: -1;
  height: 120px;
  background:
    radial-gradient(ellipse at 35% 20%, rgba(255, 255, 255, 0.28), transparent 46%),
    repeating-radial-gradient(ellipse at center, rgba(255, 255, 255, 0.2) 0 2px, transparent 3px 32px);
  opacity: 0.55;
  animation: hero-tide 18s ease-in-out infinite;
}

.reports-section > .section-heading:first-child {
  --section-image: var(--reports-image);
}

.crew-section > .section-heading:first-child {
  --section-image: var(--crew-image);
}

.spots-section > .section-heading:first-child {
  --section-image: var(--spots-image);
}

.reports-section > .section-heading:first-child h2,
.crew-section > .section-heading:first-child h2,
.spots-section > .section-heading:first-child h2 {
  max-width: 680px;
  color: var(--white);
  font-size: clamp(2.2rem, 4.4vw, 4.35rem);
  line-height: 0.96;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.reports-section > .section-heading:first-child .eyebrow,
.crew-section > .section-heading:first-child .eyebrow,
.spots-section > .section-heading:first-child .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.reports-section > .section-heading:first-child .primary-button,
.crew-section > .section-heading:first-child .primary-button,
.spots-section > .section-heading:first-child .primary-button {
  color: var(--deep);
  background: var(--white);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.people-preview {
  padding: 22px;
  background:
    radial-gradient(circle at 8% 0%, rgba(34, 185, 165, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(239, 250, 248, 0.72));
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

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

.people-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 253, 251, 0.9));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(6, 56, 73, 0.09);
}

.people-card-compact {
  align-content: start;
}

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

.people-photo-button {
  width: fit-content;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.people-avatar {
  width: 58px;
  height: 58px;
  font-size: 1rem;
}

.people-card strong,
.people-card span,
.people-card p {
  display: block;
}

.people-card .tag,
.people-card .tag span,
.people-card-actions button span {
  display: inline-flex;
}

.people-card > div strong {
  color: var(--deep);
  font-size: 1.02rem;
}

.people-card > div span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.people-card small {
  display: block;
  margin-top: 3px;
  color: var(--ocean-deep);
  font-size: 0.76rem;
  font-weight: 900;
}

.people-card p {
  min-height: 4.2em;
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.people-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
}

.people-discovery,
.people-match-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  background:
    radial-gradient(circle at 96% 0%, rgba(34, 185, 165, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(238, 250, 247, 0.84));
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 20px;
  box-shadow: var(--soft-shadow);
}

.people-filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.people-filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--deep);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.people-filter-bar select,
.people-filter-bar input {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-transform: none;
}

.people-discovery-grid,
.people-suggestion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.profile-social-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.toolbar {
  gap: 8px;
  overflow-x: auto;
  padding: 12px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}

.search-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: -8px 0 22px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}

.search-box {
  display: grid;
  gap: 6px;
}

.search-box span {
  color: var(--deep);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.search-tools small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.4;
}

.filter-pill {
  flex: 0 0 auto;
  padding: 10px 14px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

.filter-pill.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--deep), var(--ocean));
  border-color: var(--deep);
  box-shadow: 0 10px 22px rgba(6, 56, 73, 0.18);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
}

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

.main-feed {
  padding: clamp(16px, 3vw, 24px);
  background:
    radial-gradient(circle at 4% 0%, rgba(34, 185, 165, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(239, 250, 248, 0.72));
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 20px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.section-heading {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.35rem;
}

.section-heading.tight {
  margin-bottom: 12px;
}

.report-feed,
.crew-list,
.spot-list {
  display: grid;
  gap: 14px;
}

.empty-state {
  display: block;
  min-height: 0;
  padding: 18px 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 185, 165, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 250, 248, 0.86));
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}

.empty-state h3,
.empty-state p {
  margin: 0;
}

.empty-state h3 {
  color: var(--deep);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
}

.empty-state p:not(.eyebrow) {
  max-width: 620px;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.report-card {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 252, 251, 0.94));
  border-color: rgba(16, 33, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-report {
  display: grid;
}

.report-card:hover,
.crew-card:hover,
.spot-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(6, 56, 73, 0.14);
}

.report-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 12px;
}

.avatar {
  display: grid;
  position: relative;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  flex: 0 0 auto;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.34), transparent 22%),
    linear-gradient(145deg, var(--deep), var(--ocean));
  background-position: center;
  background-size: cover;
  border-radius: 999px;
  font-weight: 900;
  outline: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(6, 56, 73, 0.16);
}

.avatar.has-photo {
  color: transparent;
}

.member-button .avatar::after,
.profile-photo-large::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: 1px;
  width: 10px;
  height: 10px;
  background: #22b9a5;
  border: 2px solid var(--white);
  border-radius: 999px;
}

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

.report-header span {
  color: var(--muted);
  font-size: 0.86rem;
}

.member-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
  padding: 0;
  color: var(--deep);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  transition: color 0.18s ease, transform 0.18s ease;
}

.member-button:hover {
  color: var(--ocean);
  transform: translateY(-1px);
}

.member-button span:last-child {
  color: inherit;
  font-size: 0.9rem;
}

.compact-member .avatar,
.chip-member .avatar,
.chat-member .avatar {
  width: 30px;
  height: 30px;
  font-size: 0.78rem;
}

.chat-member {
  gap: 6px;
}

.chat-member .avatar {
  width: 26px;
  height: 26px;
  font-size: 0.7rem;
}

.chat-member span:last-child {
  font-size: 0.78rem;
}

.chip-member {
  min-height: 34px;
  padding: 4px 9px 4px 4px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent),
    var(--deep);
  box-shadow: 0 10px 24px rgba(6, 56, 73, 0.12);
}

.chip-member span:last-child {
  color: var(--white);
}

.report-image {
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(8, 117, 139, 0.08), rgba(34, 185, 165, 0.08)),
    var(--image, linear-gradient(135deg, #2f8192, #e8d8bd));
  background-size: cover;
  background-position: center;
}

.report-body,
.crew-card,
.spot-card,
.side-panel,
.trust-section {
  padding: 18px;
}

.report-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.report-actions button {
  min-height: 36px;
  color: var(--deep);
  background: linear-gradient(180deg, #f7fffd, #eaf7f5);
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.report-actions button:hover {
  background: #dff4ef;
}

.report-actions button.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--deep), var(--ocean));
  box-shadow: 0 10px 22px rgba(6, 56, 73, 0.16);
}

.save-button.is-saved {
  color: var(--white);
  background: linear-gradient(135deg, var(--deep), var(--ocean));
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(6, 56, 73, 0.14);
}

.report-comments {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 185, 165, 0.1), transparent 34%),
    #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.report-comment-list {
  display: grid;
  gap: 8px;
}

.report-comment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 9px;
  background: var(--white);
  border: 1px solid rgba(16, 33, 42, 0.06);
  border-radius: 12px;
}

.report-comment p,
.report-comment small,
.comment-empty {
  margin: 0;
}

.report-comment p {
  color: var(--ink);
  line-height: 1.4;
}

.report-comment small,
.comment-empty {
  color: var(--muted);
  font-size: 0.82rem;
}

.report-comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.report-comment-form input {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.meta-row {
  color: var(--muted);
  font-size: 0.86rem;
}

.report-body h3,
.crew-card h3,
.spot-card h3 {
  margin: 8px 0;
}

.report-body p,
.crew-card p,
.spot-card p,
.trust-section p {
  color: #455960;
  line-height: 1.55;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  color: var(--deep);
  background: #e9f7f4;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.condition-good {
  color: #0f5d3b;
  background: #daf4e5;
}

.condition-pumping,
.condition-clean,
.condition-clear-visibility {
  color: #075a6b;
  background: #d8f3f5;
}

.condition-okay {
  color: #79610a;
  background: #f5e9b7;
}

.condition-messy,
.condition-flat,
.condition-windy,
.condition-poor-visibility,
.condition-strong-current,
.condition-boats-around,
.condition-choppy,
.condition-gusty,
.condition-crowded,
.condition-rough {
  color: #77510e;
  background: #f7e2ba;
}

.condition-calm,
.condition-quiet {
  color: #0f5d3b;
  background: #daf4e5;
}

.condition-bad,
.condition-unsafe {
  color: #8c321f;
  background: #ffe0d2;
}

.status-open {
  color: #0f5d3b;
  background: #daf4e5;
}

.status-full {
  color: #77510e;
  background: #f7e2ba;
}

.status-needs-update {
  color: #075a6b;
  background: #d8f3f5;
}

.status-cancelled,
.attendance-no-show {
  color: #8c321f;
  background: #ffe0d2;
}

.status-completed,
.attendance-showed {
  color: #0f5d3b;
  background: #daf4e5;
}

.attendance-pending {
  color: var(--muted);
  background: #edf3f3;
}

.side-panel {
  align-self: start;
  position: sticky;
  top: 88px;
}

.crew-card {
  display: grid;
  gap: 11px;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 185, 165, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 252, 250, 0.92));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.crew-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.crew-details > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.84rem;
}

.crew-details strong {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.fuel-cost-banner {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  color: #704015;
  background: #fff6df;
  border: 1px solid #f2d69d;
  border-radius: 12px;
  font-size: 0.84rem;
}

.fuel-cost-banner strong {
  padding: 5px 8px;
  color: #fff;
  background: #a96719;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.cost-share-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #fffaf0;
  border: 1px solid #efd8aa;
  border-radius: 14px;
}

.cost-share-card legend {
  padding: 0 6px;
  color: var(--deep);
  font-weight: 900;
}

.fuel-cost-field {
  display: grid;
  gap: 7px;
  padding-top: 4px;
  color: var(--deep);
  font-weight: 800;
}

.fuel-cost-field.is-disabled {
  opacity: 0.5;
}

.fuel-cost-field small {
  color: var(--muted);
  font-weight: 700;
}

.money-input {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.money-input strong {
  padding: 0 12px;
  color: var(--muted);
}

.money-input input {
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
}

.fuel-cost-fact {
  background: #fff6df !important;
  border-color: #efd8aa !important;
}

.freshness-fresh {
  color: #075a4e;
  background: #dff8ef;
}

.freshness-aging {
  color: #7b4d0d;
  background: #fff1cf;
}

.freshness-expired {
  color: #6d7275;
  background: #edf0f1;
}

.participant-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crew-member-manage {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 2px;
  background: #f7fbfa;
  border: 1px solid rgba(15, 65, 78, 0.1);
  border-radius: 999px;
}

.crew-member-manage .member-button {
  min-height: 32px;
}

.crew-remove-member-button {
  width: 30px;
  height: 30px;
  min-height: 30px;
  color: #9b3321;
  background: #fff2ed;
  border-color: #ffd4c7;
  box-shadow: none;
}

.crew-remove-member-button:hover {
  color: #7d2415;
  background: #ffe7df;
}

.safety-strip {
  display: grid;
  gap: 8px;
  padding: 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 138, 76, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 138, 76, 0.2);
  border-radius: 14px;
}

.safety-strip strong {
  color: var(--deep);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.safety-strip div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.safety-strip span {
  padding: 6px 9px;
  color: #7a3d18;
  background: #fff0e7;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.crew-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.concern-button {
  color: #8c321f;
  background: transparent;
}

.share-button {
  color: var(--ocean);
}

.share-button:hover {
  color: var(--deep);
  background: #e9f7f4;
}

.concern-button:hover {
  color: #6f2515;
  background: #fff0e7;
}

.join-button {
  justify-self: start;
}

.join-button.is-joined {
  color: var(--white);
  background: var(--sea);
  border-color: var(--sea);
}

.join-button.is-host {
  color: var(--deep);
  background: #e8f3f1;
  opacity: 1;
  cursor: default;
}

.join-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.attendance-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.attendance-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(210px, auto);
  gap: 8px;
  align-items: center;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.attendance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.attendance-actions button {
  padding: 8px 10px;
}

.group-chat {
  display: grid;
  gap: 10px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(239, 250, 248, 0.88)),
    radial-gradient(circle at 0% 0%, rgba(34, 185, 165, 0.12), transparent 38%),
    #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.group-chat-preview {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: rgba(238, 248, 245, 0.82);
  border: 1px solid var(--line);
  border-radius: 14px;
}

/* Crew plan cards */
.crew-card {
  container-type: inline-size;
  gap: 16px;
  padding: 20px;
  background: #ffffff;
  border-color: rgba(15, 65, 78, 0.12);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(8, 58, 70, 0.08);
}

.crew-card:hover {
  box-shadow: 0 18px 42px rgba(8, 58, 70, 0.11);
}

.crew-card-head,
.crew-card-community,
.crew-primary-actions,
.crew-secondary-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.crew-card-head,
.crew-card-community {
  justify-content: space-between;
}

.crew-host-line {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.crew-host-label {
  padding-left: 8px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 800;
}

.crew-card-head .plan-status {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 5px 10px;
  font-size: 0.72rem;
}

.crew-card-copy {
  display: grid;
  gap: 6px;
}

.crew-card-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.38rem);
  line-height: 1.2;
}

.crew-card-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.crew-details {
  gap: 10px;
}

.crew-details > span {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 11px 12px;
  background: #f7fbfb;
  border-color: rgba(15, 65, 78, 0.1);
  border-radius: 10px;
}

.crew-details > span > svg {
  width: 18px;
  height: 18px;
  padding: 8px;
  box-sizing: content-box;
  color: var(--ocean);
  background: #e5f5f4;
  border-radius: 9px;
}

.crew-details > span > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.crew-details strong {
  color: #71858c;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.crew-details em {
  overflow: hidden;
  color: var(--deep);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
}

.fuel-cost-banner {
  gap: 8px;
  color: #315e68;
  background: #f2f9f8;
  border-color: #d5e9e6;
  border-radius: 10px;
}

.fuel-cost-banner > svg {
  width: 18px;
  height: 18px;
  color: var(--ocean);
}

.fuel-cost-banner strong {
  padding: 0;
  color: var(--deep);
  background: transparent;
  font-size: 0.74rem;
}

.safety-strip {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: #f8fbfb;
  border-color: rgba(15, 65, 78, 0.1);
  border-radius: 10px;
}

.safety-strip > strong,
.group-chat-header > strong {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.safety-strip > strong {
  color: #47636b;
  font-size: 0.72rem;
}

.safety-strip svg,
.group-chat-header svg {
  width: 16px;
  height: 16px;
}

.safety-strip div {
  gap: 6px;
}

.safety-strip span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 5px 8px;
  color: #315e68;
  background: #eaf5f3;
  border-radius: 7px;
  font-size: 0.73rem;
  font-weight: 800;
}

.safety-strip span svg {
  width: 13px;
  height: 13px;
}

.crew-card-community {
  min-width: 0;
}

.crew-card .participant-row {
  min-width: 0;
}

.crew-card .chip-member {
  color: var(--deep);
  background: #f0f7f6;
  border: 1px solid #dcebea;
  box-shadow: none;
}

.crew-card .chip-member span:last-child {
  color: var(--deep);
}

.crew-card .tag-row {
  justify-content: flex-end;
}

.crew-card .tag {
  gap: 5px;
  color: #47636b;
  background: #eef5f4;
  border-radius: 7px;
  font-size: 0.72rem;
}

.crew-card .tag svg {
  width: 14px;
  height: 14px;
}

.crew-actions {
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 65, 78, 0.1);
}

.crew-primary-actions,
.crew-secondary-actions {
  flex-wrap: wrap;
}

.crew-actions button,
.crew-actions summary,
.crew-role-badge {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
}

.crew-actions button svg,
.crew-actions summary svg,
.crew-role-badge svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.crew-primary-actions .secondary-button,
.crew-primary-actions .primary-button {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 9px;
}

.crew-role-badge {
  min-height: 40px;
  padding: 8px 12px;
  color: #315e68;
  background: #edf6f5;
  border: 1px solid #d7e9e7;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 900;
}

.icon-text-button {
  min-height: 36px;
  padding: 7px 9px;
  color: #587078;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.icon-text-button:hover {
  color: var(--deep);
  background: #eef6f5;
}

.crew-manage-menu {
  position: relative;
}

.crew-manage-menu summary {
  min-height: 36px;
  padding: 7px 9px;
  color: #587078;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.crew-manage-menu summary::-webkit-details-marker {
  display: none;
}

.crew-manage-menu summary:hover,
.crew-manage-menu[open] summary {
  color: var(--deep);
  background: #eef6f5;
}

.crew-manage-actions {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 20;
  display: grid;
  width: 210px;
  gap: 4px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid rgba(15, 65, 78, 0.12);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(8, 58, 70, 0.18);
}

.crew-manage-actions button {
  justify-content: flex-start;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  color: #315e68;
  border-radius: 7px;
}

.crew-manage-actions button:hover {
  background: #f1f7f6;
}

.crew-manage-actions .is-danger {
  color: #a13e2a;
}

.crew-manage-actions .is-danger:hover {
  background: #fff1ec;
}

.group-chat-preview {
  gap: 8px;
  padding: 13px 14px;
  background: #f3f9f8;
  border-color: #d9eae7;
  border-radius: 10px;
}

.group-chat-preview .group-chat-header {
  color: var(--deep);
}

.group-chat-preview .secondary-button {
  min-height: 36px;
  padding: 7px 11px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: none;
}

@container (max-width: 520px) {
  .crew-details {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .crew-details > span {
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 54px;
    padding: 9px 10px;
  }

  .safety-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .crew-card-community {
    align-items: flex-start;
    flex-direction: column;
  }

  .crew-card .tag-row {
    justify-content: flex-start;
  }
}

.chat-preview-copy {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.chat-preview-copy p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-preview-copy p strong {
  color: var(--deep);
}

.chats-section {
  display: grid;
  gap: 18px;
  padding: 22px 0 8px;
}

.chats-heading p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
}

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

.nav-unread-badge,
.chat-unread {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  color: #fff;
  background: var(--safety);
  border-radius: 999px;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
}

.chat-workspace {
  display: grid;
  grid-template-columns: minmax(230px, 0.78fr) minmax(380px, 1.7fr) minmax(230px, 0.78fr);
  min-height: 680px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.chat-channel-panel,
.chat-info-panel {
  min-width: 0;
  background: #f3faf8;
}

.chat-channel-panel {
  border-right: 1px solid var(--line);
}

.chat-info-panel {
  padding: 16px;
  border-left: 1px solid var(--line);
}

.chat-panel-heading,
.conversation-header {
  display: flex;
  min-height: 72px;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
}

.chat-panel-heading div,
.conversation-header div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.chat-panel-heading span,
.conversation-header span,
.chat-info-hero small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.chat-panel-heading strong,
.conversation-header strong {
  overflow: hidden;
  color: var(--deep);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-channel-list {
  display: grid;
  gap: 5px;
  max-height: 606px;
  padding: 8px;
  overflow-y: auto;
}

.chat-channel-list .empty-state {
  margin: 8px;
}

.chat-channel {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 11px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
}

.chat-channel:hover {
  background: #e9f5f2;
}

.chat-channel.is-active {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 8px 22px rgba(6, 56, 73, 0.08);
}

.chat-channel-icon,
.chat-info-hero > span,
.conversation-start > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--sea));
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 900;
}

.chat-channel-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.chat-channel-copy strong,
.chat-channel-copy small,
.chat-channel-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-channel-copy small {
  color: var(--muted);
  font-size: 0.76rem;
}

.chat-channel-copy em {
  color: #789099;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
}

.chat-conversation-panel {
  display: grid;
  min-width: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background:
    radial-gradient(circle at 50% 0%, rgba(157, 231, 220, 0.16), transparent 34%),
    #fbfefd;
}

.chat-mobile-back {
  display: none;
}

.conversation-messages {
  display: flex;
  min-height: 0;
  max-height: 536px;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  overflow-y: auto;
}

.conversation-start {
  display: grid;
  gap: 8px;
  padding: 18px 4px 12px;
  border-bottom: 1px solid var(--line);
}

.conversation-start strong {
  color: var(--deep);
  font-size: 1.15rem;
}

.conversation-start p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.chat-workspace-message {
  max-width: min(76%, 560px);
}

.chat-system-message {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 3px 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.chat-system-message span {
  padding: 6px 9px;
  background: #edf5f3;
  border-radius: 999px;
}

.chat-system-message small {
  white-space: nowrap;
}

.conversation-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.conversation-compose input {
  min-width: 0;
}

.conversation-readonly {
  display: grid;
  gap: 3px;
  padding: 14px 18px;
  color: var(--muted);
  background: #f2f6f5;
  border-top: 1px solid var(--line);
  text-align: center;
}

.conversation-readonly strong {
  color: var(--deep);
}

.chat-empty-canvas {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 6px;
  min-height: 0;
  padding: 22px;
  color: var(--muted);
  text-align: left;
}

.chat-empty-canvas p {
  margin: 0;
}

.chat-info-hero {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.chat-info-hero div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.chat-info-hero strong {
  overflow: hidden;
  color: var(--deep);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-plan-facts {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.chat-plan-facts div {
  display: grid;
  gap: 3px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.chat-plan-facts dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.chat-plan-facts dd {
  margin: 0;
  color: var(--deep);
  font-size: 0.8rem;
  font-weight: 900;
}

.chat-info-section {
  display: grid;
  gap: 9px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.chat-info-section p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.chat-member-list {
  display: grid;
  gap: 7px;
}

.chat-info-member {
  justify-content: flex-start;
}

.group-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.group-chat-header span,
.chat-locked {
  color: var(--muted);
  font-size: 0.82rem;
}

.chat-author-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.chat-author-row > span {
  color: var(--muted);
  font-size: 0.78rem;
}

.chat-messages {
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}

.chat-message {
  display: grid;
  gap: 3px;
  max-width: 92%;
  justify-self: start;
  padding: 10px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 254, 253, 0.92));
  border: 1px solid rgba(16, 33, 42, 0.06);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(6, 56, 73, 0.07);
}

.chat-message.is-you {
  justify-self: end;
  color: var(--white);
  background: linear-gradient(135deg, var(--ocean), var(--sea));
  border-color: transparent;
}

.chat-message.is-you .member-button,
.chat-message.is-you .chat-author-row > span,
.chat-message.is-you p {
  color: var(--white);
}

.chat-message p {
  margin: 0;
  color: var(--ink);
  line-height: 1.4;
}

.chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.chat-compose input {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.chat-locked {
  margin: 0;
  padding: 10px;
  background: #f7fbfa;
  border: 1px dashed var(--line);
  border-radius: 14px;
}

.crew-section,
.spots-section {
  padding: 58px 0 22px;
}

.crew-planner {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 14px;
  background:
    radial-gradient(circle at 8% 4%, rgba(34, 185, 165, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(239, 250, 248, 0.74));
  border: 1px solid rgba(16, 33, 42, 0.07);
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.calendar-panel,
.day-plans {
  position: relative;
  overflow: hidden;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 250, 248, 0.88));
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}

.calendar-panel::before,
.day-plans::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--sea), var(--ocean));
}

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

.calendar-header > div:first-child {
  display: grid;
  gap: 3px;
}

.calendar-header strong {
  font-size: 1.25rem;
}

.calendar-header span {
  color: var(--muted);
  font-size: 0.86rem;
}

.calendar-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.calendar-nav-button,
.calendar-today-button {
  min-height: 36px;
  padding: 7px 10px;
}

.calendar-nav-button {
  min-width: 36px;
  font-size: 1.35rem;
  line-height: 1;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}

.calendar-weekdays {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  display: grid;
  min-height: 58px;
  place-items: center;
  padding: 7px 4px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 900;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.calendar-day:not(.empty):hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(6, 56, 73, 0.12);
}

.calendar-day.empty {
  background: transparent;
  border-color: transparent;
}

.calendar-day small {
  color: var(--safety);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.calendar-day.has-plan {
  background: #e9fbf7;
  border-color: rgba(34, 185, 165, 0.5);
  box-shadow: inset 0 -4px 0 var(--sea), 0 8px 18px rgba(34, 185, 165, 0.12);
}

.calendar-day.selected {
  color: var(--white);
  background: linear-gradient(135deg, var(--deep), var(--ocean));
  border-color: transparent;
  box-shadow: 0 14px 26px rgba(8, 117, 139, 0.28);
}

.calendar-day.selected small {
  color: #ffd7c4;
}

.calendar-day.today:not(.selected) {
  outline: 2px solid var(--ocean);
  outline-offset: 2px;
}

.crew-card-large {
  background: var(--white);
}

.time-highlight {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 3px 8px;
  color: #075a6b;
  background: #d8f3f5;
  border-radius: 999px;
  font-style: normal;
  font-weight: 900;
}

.empty-plan {
  background: #f7fbfa;
}

.spots-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  background:
    radial-gradient(circle at 92% 0%, rgba(34, 185, 165, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(239, 250, 248, 0.74));
  border: 1px solid rgba(16, 33, 42, 0.07);
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.map-panel {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 460px;
  min-height: 460px;
  overflow: hidden;
  background: #c9d8c8;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  box-shadow: 0 24px 52px rgba(6, 56, 73, 0.16);
}

.leaflet-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: inherit;
  touch-action: pan-x pan-y;
}

.leaflet-pane,
.leaflet-map-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}

.leaflet-tile {
  width: 256px;
  height: 256px;
  user-select: none;
}

.leaflet-marker-icon {
  display: block;
}

.leaflet-control-container .leaflet-top,
.leaflet-control-container .leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}

.leaflet-control-container .leaflet-top {
  top: 10px;
}

.leaflet-control-container .leaflet-bottom {
  bottom: 10px;
}

.leaflet-control-container .leaflet-left {
  left: 10px;
}

.leaflet-control-container .leaflet-right {
  right: 10px;
}

.leaflet-control {
  pointer-events: auto;
}

.leaflet-control-zoom {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(6, 56, 73, 0.14);
}

.leaflet-control-zoom a {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--deep);
  text-decoration: none;
  font-weight: 900;
}

.leaflet-control-attribution {
  padding: 3px 6px;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 6px;
  font-size: 0.68rem;
}

.spot-map-marker {
  display: grid;
  place-items: center;
  color: var(--white);
  background: transparent;
}

.spot-map-marker span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  background: linear-gradient(135deg, var(--deep), var(--ocean));
  border: 2px solid var(--white);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(6, 56, 73, 0.22);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
}

.leaflet-popup-content {
  color: var(--ink);
  line-height: 1.5;
}

.leaflet-detail-button {
  margin-top: 8px;
  padding: 6px 10px;
  color: var(--white);
  background: var(--ocean);
  border: 0;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.spot-card {
  display: grid;
  gap: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 185, 165, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 252, 250, 0.92));
}

.spot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spot-card button,
.spot-actions button {
  justify-self: start;
}

.trust-section {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  grid-template-areas:
    "intro badges"
    "profile profile"
    "people people"
    "dashboard dashboard";
  gap: 26px;
  align-items: center;
  margin: 32px 0 48px;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(3, 32, 43, 0.9), rgba(3, 32, 43, 0.58) 58%, rgba(3, 32, 43, 0.3)),
    linear-gradient(180deg, transparent 48%, rgba(3, 32, 43, 0.58)),
    var(--profile-image) center / cover;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 24px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.trust-section > div:first-child {
  grid-area: intro;
}

.trust-section > .badge-row {
  grid-area: badges;
  align-self: center;
}

.trust-section > .profile-card {
  grid-area: profile;
}

.trust-section > .people-discovery {
  grid-area: people;
  min-width: 0;
}

.trust-section > .profile-dashboard {
  grid-area: dashboard;
}

.trust-section::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -12%;
  z-index: -1;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(34, 185, 165, 0.32), transparent 68%);
  border-radius: 50%;
}

.trust-section h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.trust-section .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.trust-section > div:first-child p {
  color: rgba(255, 255, 255, 0.84);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.badge-row {
  flex-wrap: wrap;
  gap: 10px;
}

.badge-row span {
  padding: 10px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

.profile-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 18px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.profile-card strong,
.profile-card p {
  display: block;
  margin: 0;
}

.profile-card p {
  margin: 4px 0 8px;
  color: var(--muted);
  line-height: 1.45;
}

.profile-dashboard {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
}

.profile-panel {
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.profile-save-message {
  padding: 12px 14px;
  color: #0f5d3b;
  background: #daf4e5;
  border: 1px solid rgba(15, 93, 59, 0.16);
  border-radius: 14px;
  font-weight: 900;
}

.profile-panel h3,
.profile-panel p {
  margin: 0;
}

.profile-panel h3 {
  color: var(--deep);
  font-size: 1.22rem;
}

.profile-panel p {
  color: var(--muted);
  line-height: 1.5;
}

.profile-cta,
.profile-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.auth-mode-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding-top: 2px;
}

.auth-mode-actions .text-button {
  min-height: 36px;
}

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

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

.profile-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stat-panel strong {
  display: block;
  margin-bottom: 6px;
  color: var(--deep);
  font-size: 2rem;
}

.progress-ring {
  display: grid;
  width: 98px;
  aspect-ratio: 1;
  place-items: center;
  background:
    radial-gradient(circle at center, var(--white) 0 57%, transparent 61%),
    conic-gradient(var(--ocean) var(--progress), #dcebe8 0);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(16, 33, 42, 0.06);
}

.progress-ring span {
  color: var(--deep);
  font-weight: 900;
}

.saved-panel {
  display: grid;
  gap: 12px;
}

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

.saved-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.saved-item span,
.saved-empty {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.saved-item strong {
  color: var(--deep);
  overflow-wrap: anywhere;
}

.saved-empty {
  margin: 0;
}

.moderation-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 184, 77, 0.18), transparent 32%),
    #fffaf1;
  border: 1px solid rgba(198, 122, 18, 0.18);
  border-radius: 16px;
}

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

.moderation-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(198, 122, 18, 0.16);
  border-radius: 12px;
}

.moderation-item span,
.moderation-item small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.moderation-item strong {
  display: block;
  margin: 3px 0;
  color: var(--deep);
}

.moderation-item p {
  margin: 0 0 6px;
}

.moderation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.settings-panel {
  display: grid;
  gap: 14px;
}

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

.settings-grid article {
  padding: 13px;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 185, 165, 0.12), transparent 34%),
    #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.settings-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--deep);
}

.settings-grid p {
  margin: 0;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guidelines-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 185, 165, 0.2), transparent 34%),
    linear-gradient(180deg, #f8fffd, #e8f8f4);
  border: 1px solid rgba(34, 185, 165, 0.24);
  border-radius: 16px;
}

.guidelines-panel.is-accepted {
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 185, 165, 0.12), transparent 34%),
    #f7fbfa;
}

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

.guideline-list article {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 12px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 12px;
}

.guideline-list span {
  color: var(--ocean-deep);
  font-size: 0.74rem;
  font-weight: 900;
}

.guideline-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.guideline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.trust-badge {
  display: grid;
  gap: 4px;
  padding: 12px;
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(247, 251, 250, 0.96), rgba(234, 244, 242, 0.9));
  border: 1px solid var(--line);
  border-radius: 14px;
}

.trust-badge.is-active {
  color: var(--deep);
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 185, 165, 0.18), transparent 34%),
    linear-gradient(180deg, #f8fffd, #eaf8f5);
  border-color: rgba(34, 185, 165, 0.3);
}

.trust-badge strong {
  color: inherit;
  font-size: 0.88rem;
}

.trust-badge em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.activity-timeline {
  display: grid;
  gap: 10px;
}

.activity-timeline article {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 0 0 0 20px;
}

.activity-timeline article::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--sea);
  border: 2px solid var(--white);
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(34, 185, 165, 0.18);
}

.activity-timeline span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.activity-timeline strong {
  color: var(--deep);
  line-height: 1.25;
}

.activity-timeline em,
.activity-empty {
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.activity-empty {
  margin: 0;
}

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

.safety-centre > div {
  padding: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 138, 76, 0.14), transparent 32%),
    linear-gradient(180deg, #fffdfa, #fff5ef);
  border: 1px solid rgba(255, 138, 76, 0.22);
  border-radius: 14px;
}

.safety-centre strong {
  display: block;
  margin-bottom: 5px;
  color: var(--deep);
  font-size: 1.4rem;
}

.safety-centre p {
  margin: 0;
  color: #7a3d18;
  font-size: 0.86rem;
  font-weight: 800;
}

.backend-status-card {
  display: grid;
  gap: 10px;
}

.backend-status-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.45;
}

.profile-detail-list {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px 14px;
  margin-top: 14px;
}

.profile-detail-list span {
  color: var(--muted);
  font-weight: 800;
}

.profile-detail-list strong {
  color: var(--deep);
  overflow-wrap: anywhere;
}

.sport-level-list {
  display: grid;
  gap: 7px;
}

.sport-level-list span {
  display: grid;
  grid-template-columns: minmax(120px, 0.5fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  color: var(--deep);
  background: #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sport-level-list strong,
.sport-level-list em {
  margin: 0;
  font-style: normal;
}

.sport-level-list strong {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.muted-value {
  color: var(--muted);
}

.profile-edit-form {
  display: grid;
  gap: 13px;
}

.profile-edit-group {
  display: grid;
  gap: 12px;
  padding: 12px;
  background: #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.profile-edit-group summary {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  color: var(--deep);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.profile-edit-group summary::-webkit-details-marker {
  display: none;
}

.profile-edit-group summary::after {
  content: "+";
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--white);
  background: var(--ocean);
  border-radius: 999px;
}

.profile-edit-group[open] summary::after {
  content: "-";
}

.profile-edit-group summary span,
.profile-edit-group summary small {
  display: block;
}

.profile-edit-group summary small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.profile-photo-row,
.profile-form-grid {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

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

.sport-level-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  background: #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.profile-photo-large {
  width: 74px;
  height: 74px;
  font-size: 1.35rem;
}

.profile-photo-preview-shell {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 86px;
}

.profile-photo-preview-shell small,
.profile-edit-form label small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.profile-photo-large.is-previewing {
  outline: 3px solid rgba(20, 184, 166, 0.24);
  outline-offset: 3px;
}

.profile-edit-form label {
  display: grid;
  gap: 7px;
  color: var(--deep);
  font-weight: 800;
}

.profile-edit-form input,
.profile-edit-form select,
.profile-edit-form textarea {
  width: 100%;
  padding: 12px;
  color: var(--ink);
  background: #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.member-profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px;
  background: #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.member-profile-hero strong,
.member-profile-hero p {
  display: block;
  margin: 0;
}

.member-profile-hero strong {
  color: var(--deep);
  font-size: 1.22rem;
}

.member-profile-hero p {
  margin: 3px 0 10px;
  color: var(--muted);
}

.user-profile-modal-card {
  gap: 14px;
}

.notifications-modal-card {
  gap: 14px;
}

.detail-modal-card {
  gap: 14px;
  width: 100%;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}

#detailModal {
  width: min(900px, calc(100% - 32px));
  max-width: none;
}

.legal-modal-card {
  gap: 16px;
  width: min(780px, calc(100vw - 28px));
}

.legal-content {
  display: grid;
  gap: 10px;
}

.legal-content section {
  padding: 14px;
  background: #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.legal-content h3,
.legal-content p {
  margin: 0;
}

.legal-content h3 {
  margin-bottom: 5px;
  color: var(--deep);
  font-size: 1rem;
}

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

.legal-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.legal-switcher .is-active {
  color: var(--white);
  background: var(--deep);
}

.onboarding-modal-card {
  gap: 16px;
  width: min(620px, calc(100vw - 28px));
}

.onboarding-modal-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.onboarding-modal-progress span {
  padding: 8px 10px;
  color: var(--muted);
  background: #f1f7f6;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 900;
  text-align: center;
}

.onboarding-modal-progress .is-active {
  color: var(--white);
  background: var(--ocean);
}

.consent-check {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px !important;
  align-items: start;
  padding: 13px;
  background: #eef9f6;
  border: 1px solid rgba(34, 185, 165, 0.24);
  border-radius: 10px;
}

.consent-check input {
  width: 18px !important;
  height: 18px;
  margin-top: 2px;
}

.consent-check span {
  color: var(--deep);
  font-size: 0.86rem;
  line-height: 1.45;
}

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

.onboarding-value-grid article {
  display: grid;
  gap: 3px;
  padding: 12px;
  background: #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.onboarding-value-grid strong {
  color: var(--deep);
}

.onboarding-value-grid span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.onboarding-later {
  justify-self: center;
}

.detail-hero-image {
  width: 100%;
  min-height: 260px;
  background:
    linear-gradient(180deg, rgba(3, 32, 43, 0.04), rgba(3, 32, 43, 0.18)),
    var(--image) center / cover;
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(6, 56, 73, 0.12);
}

.detail-hero-image.is-clickable {
  padding: 0;
  cursor: zoom-in;
}

.detail-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.detail-summary-crew {
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 185, 165, 0.16), transparent 34%),
    #f7fbfa;
}

.detail-description {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

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

.detail-grid article,
.detail-panel {
  min-width: 0;
  padding: 14px;
  background: #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--deep);
  overflow-wrap: anywhere;
}

.detail-comments,
.detail-chat {
  margin-top: 10px;
}

.detail-safety {
  margin-top: 10px;
  padding: 0;
  background: transparent;
  border: 0;
}

.detail-linked-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.detail-linked-list button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 11px;
  color: var(--deep);
  text-align: left;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 12px;
}

.detail-linked-list button:hover {
  border-color: rgba(34, 185, 165, 0.38);
  box-shadow: 0 10px 20px rgba(6, 56, 73, 0.08);
}

.detail-linked-list span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

@media (min-width: 621px) and (max-width: 900px) {
  #detailModal {
    width: min(760px, calc(100% - 24px));
  }

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

@media (max-width: 620px) {
  .detail-modal-card {
    width: min(100%, calc(100vw - 18px));
    max-height: min(88dvh, 760px);
  }

  .detail-hero-image {
    min-height: 180px;
    border-radius: 14px;
  }

  .detail-summary {
    align-items: start;
  }

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

  .detail-actions {
    justify-content: stretch;
  }

  .detail-actions button,
  .detail-actions a {
    flex: 1 1 130px;
    justify-content: center;
  }
}

.notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.notification-list {
  display: grid;
  gap: 10px;
  max-height: min(540px, 62vh);
  overflow-y: auto;
}

.notification-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  background: #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.notification-card.is-unread {
  background: #fff7f0;
  border-color: rgba(242, 122, 61, 0.34);
  box-shadow: inset 4px 0 0 var(--safety);
}

.notification-icon {
  display: grid;
  min-width: 46px;
  min-height: 32px;
  place-items: center;
  padding: 4px 8px;
  color: var(--white);
  background: var(--deep);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.notification-card strong,
.notification-card p,
.notification-card small {
  display: block;
  margin: 0;
}

.notification-card p {
  margin: 4px 0;
  color: var(--muted);
  line-height: 1.45;
}

.notification-card small {
  color: var(--muted);
  font-weight: 800;
}

.empty-notification {
  grid-template-columns: 1fr;
}

.bottom-nav {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  z-index: 30;
  display: none;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.bottom-nav a,
.bottom-nav button {
  display: grid;
  min-height: 42px;
  place-items: center;
  color: var(--deep);
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}

.top-links a.is-active,
.bottom-nav a.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--deep), var(--ocean));
  box-shadow: 0 10px 22px rgba(6, 56, 73, 0.18);
}

.action-menu {
  position: fixed;
  right: 18px;
  bottom: 76px;
  z-index: 31;
  display: none;
  width: min(240px, calc(100vw - 36px));
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.action-menu.is-open {
  display: grid;
  gap: 6px;
}

.action-menu button {
  min-height: 44px;
  padding: 10px 12px;
  color: var(--deep);
  text-align: left;
  background: #f7fbfa;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}

.bottom-nav button {
  color: var(--white);
  background: var(--ocean);
  font-size: 1.3rem;
}

.toast-dock {
  position: fixed;
  top: 82px;
  right: 18px;
  z-index: 60;
  display: grid;
  gap: 10px;
  width: min(390px, calc(100vw - 28px));
  pointer-events: none;
}

.toast-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  color: var(--deep);
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 185, 165, 0.12), transparent 36%),
    rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-left: 4px solid var(--ocean);
  border-radius: 14px;
  box-shadow: 0 22px 50px rgba(6, 56, 73, 0.18);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast-card.is-leaving {
  opacity: 0;
  transform: translateX(18px);
}

.toast-warning {
  border-left-color: var(--safety);
}

.toast-profile,
.toast-crew,
.toast-report,
.toast-spot {
  border-left-color: var(--sea);
}

.toast-icon {
  display: inline-grid;
  min-width: 46px;
  height: 32px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--deep), var(--ocean));
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.toast-warning .toast-icon {
  background: linear-gradient(135deg, #8c321f, var(--safety));
}

.toast-card strong,
.toast-card p {
  display: block;
  margin: 0;
}

.toast-card p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.toast-card .icon-button {
  width: 30px;
  height: 30px;
  font-size: 0.82rem;
}

.modal {
  width: min(560px, calc(100% - 26px));
  padding: 0;
  background: transparent;
  border: 0;
}

.modal::backdrop {
  background: rgba(6, 22, 29, 0.52);
  backdrop-filter: blur(4px);
}

.modal-card {
  display: grid;
  gap: 13px;
  padding: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 185, 165, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 251, 249, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.image-preview-modal {
  width: min(1040px, calc(100% - 28px));
}

.image-preview-card {
  max-height: min(92dvh, 860px);
  padding: 14px;
  overflow: hidden;
}

.image-preview-body {
  display: grid;
  gap: 10px;
  min-height: 240px;
  overflow: auto;
  place-items: center;
  background: #071f28;
  border-radius: 12px;
}

.image-preview-body img {
  display: block;
  width: 100%;
  max-height: min(74dvh, 720px);
  object-fit: contain;
}

.image-preview-body p {
  margin: 0;
  padding: 0 12px 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.image-preview-empty {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 32px;
  color: #ffffff;
  text-align: center;
}

.image-preview-empty svg {
  width: 34px;
  height: 34px;
}

.modal-card > .section-heading:first-child {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(16, 33, 42, 0.08);
}

.modal-card label {
  display: grid;
  gap: 7px;
  color: var(--deep);
  font-weight: 800;
}

.modal-card label.is-hidden {
  display: none;
}

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

.address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.modal-helper {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.file-preview {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(6, 56, 73, 0.08);
}

.file-preview-thumb {
  width: 58px;
  height: 58px;
  background:
    linear-gradient(135deg, rgba(8, 117, 139, 0.14), rgba(34, 185, 165, 0.14)),
    var(--preview-image, linear-gradient(135deg, var(--ocean), var(--sea)));
  background-position: center;
  background-size: cover;
  border: 2px solid var(--white);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(6, 56, 73, 0.14);
}

.file-preview strong,
.file-preview span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.file-preview span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.safety-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 138, 76, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 138, 76, 0.2);
  border-radius: 14px;
}

.safety-card legend {
  padding: 0 6px;
  color: var(--deep);
  font-weight: 900;
}

.safety-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.check-row {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 9px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 33, 42, 0.08);
  border-radius: 10px;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--ocean);
}

.check-row span {
  color: var(--deep);
  font-weight: 800;
  line-height: 1.4;
}

.modal-card input,
.modal-card select,
.modal-card textarea {
  width: 100%;
  padding: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.modal-card input:focus,
.modal-card select:focus,
.modal-card textarea:focus,
.profile-edit-form input:focus,
.profile-edit-form select:focus,
.profile-edit-form textarea:focus,
.chat-compose input:focus {
  border-color: rgba(34, 185, 165, 0.72);
  box-shadow: 0 0 0 4px rgba(34, 185, 165, 0.14);
  outline: 0;
}

@media (min-width: 901px) and (max-width: 1320px) {
  .topbar {
    flex-wrap: nowrap;
    gap: 7px;
    min-height: 76px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .header-logo {
    width: 150px;
  }

  .top-links {
    flex: 0 1 auto;
    gap: 1px;
    padding: 4px;
  }

  .top-links a {
    padding: 8px 9px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .topbar > .ghost-button {
    padding: 11px 12px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .topbar > .notification-button {
    width: 42px;
    min-height: 42px;
    height: 42px;
    justify-content: center;
    padding: 0;
    border-radius: 999px;
  }

  .topbar > .notification-button span {
    display: none;
  }

  .network-badge {
    width: 34px;
    min-width: 34px;
    justify-content: center;
    gap: 0;
    padding: 0;
    font-size: 0;
  }

  .account-actions {
    flex: 0 0 auto;
    gap: 5px;
  }

  .account-actions .ghost-button {
    padding: 11px 12px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .trust-section {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  }

  .people-discovery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .chat-workspace:not(.is-guest) {
    grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1.45fr);
  }

  .chat-workspace:not(.is-guest) .chat-info-panel {
    display: none;
  }
}

@media (max-width: 900px) {
  body {
    background:
      linear-gradient(180deg, rgba(236, 251, 248, 0.98), rgba(247, 252, 250, 0.98) 38%, #f7fbfa 100%);
  }

  .swell,
  .sun-glow {
    opacity: 0.08;
  }

  .top-links {
    display: none;
  }

  .topbar .ghost-button {
    display: none;
  }

  .topbar {
    gap: 8px;
    min-height: 58px;
    padding-right: 12px;
    padding-left: 12px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 24px rgba(6, 56, 73, 0.08);
  }

  .brand {
    max-width: 140px;
  }

  .header-logo {
    width: 136px;
    filter: none;
  }

  main {
    width: calc(100% - 20px);
    max-width: 1180px;
  }

  .topbar .auth-button,
  .topbar .login-button,
  .topbar .notification-button,
  .topbar .install-button:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 9px 10px;
    font-size: 0.86rem;
    white-space: nowrap;
  }

  .topbar .auth-button {
    max-width: none;
  }

  .topbar .notification-button span {
    display: none;
  }

  .topbar .notification-button {
    width: 36px;
    padding: 0;
    border-radius: 999px;
  }

  .topbar .install-button:not([hidden]) {
    max-width: 76px;
    padding: 8px 10px;
  }

  .network-badge {
    min-height: 30px;
    padding: 7px 9px;
    font-size: 0.72rem;
  }

  .notification-button strong {
    min-width: 18px;
    height: 18px;
  }

  .account-actions {
    margin-left: auto;
  }

  .hero-section,
  .content-grid,
  .crew-planner,
  .spots-layout,
  .trust-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: min(72svh, 620px);
    padding: 28px 18px 18px;
    margin-top: 10px;
    border-radius: 16px;
    align-items: end;
    background:
      linear-gradient(180deg, rgba(3, 32, 43, 0.18) 0%, rgba(3, 32, 43, 0.76) 72%, rgba(3, 32, 43, 0.92) 100%),
      var(--hero-image) 58% center / cover;
    box-shadow: 0 18px 44px rgba(6, 56, 73, 0.18);
  }

  .hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(2.05rem, 10vw, 3.2rem);
    line-height: 0.96;
  }

  .hero-copy p:not(.eyebrow) {
    display: none;
    max-width: 34ch;
    overflow: hidden;
    font-size: 0.96rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .hero-copy p.mobile-hero-subtitle {
    display: block;
    max-width: 28ch;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.96rem;
    line-height: 1.45;
  }

  .hero-pills {
    flex-wrap: nowrap;
    gap: 7px;
    max-width: calc(100vw - 56px);
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .hero-pills::-webkit-scrollbar {
    display: none;
  }

  .hero-pills span {
    flex: 0 0 auto;
    padding: 7px 10px;
    font-size: 0.78rem;
    backdrop-filter: blur(10px);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 18px;
  }

  .hero-actions button,
  .quick-actions button,
  .reports-section > .section-heading:first-child .primary-button,
  .crew-section > .section-heading:first-child .primary-button,
  .spots-section > .section-heading:first-child .primary-button {
    min-height: 48px;
  }

  .coast-card {
    display: none;
  }

  .reports-section > .section-heading:first-child,
  .crew-section > .section-heading:first-child,
  .spots-section > .section-heading:first-child {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 280px;
    padding: 24px 20px;
  }

  .reports-section > .section-heading:first-child h2,
  .crew-section > .section-heading:first-child h2,
  .spots-section > .section-heading:first-child h2 {
    max-width: 9ch;
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .reports-section > .section-heading:first-child .primary-button,
  .crew-section > .section-heading:first-child .primary-button,
  .spots-section > .section-heading:first-child .primary-button {
    width: 100%;
    justify-content: center;
  }

  .search-tools {
    grid-template-columns: 1fr;
  }

  .search-tools .text-button {
    justify-self: start;
  }

  .app-dashboard {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
    margin-bottom: 14px;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(6, 56, 73, 0.13);
  }

  .dash-greeting strong {
    font-size: 1.12rem;
  }

  .dash-greeting span {
    font-size: 0.82rem;
  }

  .mobile-home-hub {
    display: grid;
    gap: 10px;
    margin: 0 0 16px;
  }

  .mobile-hub-card,
  .mobile-hub-grid a {
    color: var(--deep);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(16, 33, 42, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(6, 56, 73, 0.08);
  }

  .mobile-hub-card {
    display: grid;
    gap: 10px;
    padding: 15px;
  }

  .mobile-hub-card.primary {
    color: var(--white);
    background:
      linear-gradient(135deg, rgba(3, 39, 50, 0.84), rgba(8, 117, 139, 0.42)),
      url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=900&q=84") center / cover;
    border-color: rgba(255, 255, 255, 0.24);
  }

  .mobile-hub-card span,
  .mobile-hub-grid span {
    color: inherit;
    opacity: 0.72;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .mobile-hub-card strong {
    max-width: 14ch;
    font-size: 1.45rem;
    line-height: 1.05;
  }

  .mobile-hub-card .primary-button {
    width: 100%;
    color: var(--deep);
    background: var(--white);
    box-shadow: none;
  }

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

  .mobile-hub-grid a {
    display: grid;
    gap: 6px;
    min-height: 104px;
    padding: 13px;
    align-content: end;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 248, 245, 0.9));
  }

.mobile-hub-grid strong {
  font-size: 1.02rem;
}

.mobile-hub-card,
.mobile-hub-grid a {
  transform: translateZ(0);
}

.mobile-hub-grid a:active {
  transform: scale(0.98);
}

  .onboarding-panel {
    grid-template-columns: 1fr;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
  }

  .onboarding-copy {
    min-height: 190px;
    padding: 16px;
  }

  .onboarding-copy h2 {
    font-size: clamp(1.55rem, 7vw, 2.2rem);
  }

  .launch-checklist {
    gap: 8px;
    padding: 10px;
  }

  .launch-step {
    padding: 11px;
    border-radius: 12px;
    box-shadow: none;
  }

  .experience-strip {
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 72vw);
    grid-template-columns: none;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .experience-strip::-webkit-scrollbar {
    display: none;
  }

  .experience-strip article {
    min-height: 128px;
    padding: 15px;
    border-radius: 14px;
    box-shadow: none;
    scroll-snap-align: start;
  }

  .people-preview {
    padding: 14px;
    margin-bottom: 16px;
    border-radius: 16px;
  }

  .people-preview-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .people-preview-grid::-webkit-scrollbar {
    display: none;
  }

  .people-card {
    flex: 0 0 min(260px, 82vw);
    scroll-snap-align: start;
  }

  .quick-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
  }

  .quick-stats article {
    padding: 12px 10px;
    border-radius: 12px;
    box-shadow: none;
  }

  .quick-stats strong {
    font-size: 1.35rem;
  }

  .quick-stats span {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .profile-cta,
  .profile-progress,
  .safety-centre,
  .profile-grid-two,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .saved-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .crew-planner,
  .spots-layout {
    padding: 10px;
    border-radius: 18px;
  }

  .report-card,
  .crew-card,
  .spot-card,
  .side-panel,
  .profile-panel,
  .calendar-panel,
  .day-plans,
  .map-panel {
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(6, 56, 73, 0.08);
  }

  .report-card:hover,
  .crew-card:hover,
  .spot-card:hover {
    transform: none;
  }

  .report-header {
    padding: 13px 14px 9px;
  }

  .report-body,
  .crew-card,
  .spot-card,
  .side-panel,
  .trust-section {
    padding: 14px;
  }

  .report-comments,
  .safety-strip {
    padding: 10px;
  }

  .crew-details {
    grid-template-columns: 1fr;
  }

  .crew-details > span {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 10px;
  }

  .profile-actions {
    justify-content: stretch;
  }

  .profile-actions button {
    flex: 1 1 120px;
  }

  .profile-detail-list {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }

  .profile-detail-list span {
    font-size: 0.76rem;
  }

  .sport-level-list span {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .profile-photo-row,
  .profile-form-grid,
  .sport-level-grid,
  .member-profile-hero {
    grid-template-columns: 1fr;
  }

  .notification-card {
    grid-template-columns: 1fr;
  }

  .attendance-row {
    grid-template-columns: 1fr;
  }

  .attendance-actions {
    justify-content: stretch;
  }

  .attendance-actions button {
    flex: 1 1 120px;
  }

  .notification-card .text-button {
    justify-self: start;
  }

  .quick-actions {
    justify-content: stretch;
  }

  .quick-actions button {
    flex: 1 1 140px;
  }

  .map-panel {
    min-height: 340px;
  }

  .side-panel {
    position: static;
  }

  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    right: 8px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 8px;
    gap: 3px;
    padding: 6px;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(6, 56, 73, 0.18);
  }

  .bottom-nav a,
  .bottom-nav button {
    min-width: 0;
    min-height: 42px;
    padding: 0 4px;
    overflow: hidden;
    font-size: 0.7rem;
    letter-spacing: 0;
    border-radius: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bottom-nav a[href="#spots"] {
    display: none;
  }

  .bottom-nav a[href="#community"] {
    display: none;
  }

  .action-menu {
    right: 10px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    width: auto;
    border-radius: 16px;
  }

  .bottom-nav button {
    font-size: 1.15rem;
  }

  .toast-dock {
    top: 70px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}

@media (max-width: 620px) {
  .topbar {
    gap: 6px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .brand {
    max-width: 118px;
  }

  .header-logo {
    width: 118px;
  }

  .network-badge,
  .topbar .install-button {
    display: none;
  }

  .account-actions {
    gap: 5px;
  }

  .topbar .login-button,
  .topbar .auth-button {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .topbar .notification-button {
    flex: 0 0 38px;
    width: 38px;
    min-height: 38px;
  }

  #detailModal {
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: 100dvh;
    margin: auto 0 0;
  }

  .modal {
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: 100dvh;
    margin: auto 0 0;
  }

  .modal::backdrop {
    background: rgba(6, 22, 29, 0.36);
    backdrop-filter: blur(2px);
  }

  .modal-card {
    max-height: min(88dvh, 760px);
    gap: 10px;
    padding: 14px 14px calc(18px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 250, 0.98));
    border-radius: 22px 22px 0 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    box-shadow: 0 -18px 48px rgba(6, 56, 73, 0.2);
  }

  .modal-card > .section-heading:first-child {
    position: sticky;
    top: -14px;
    z-index: 2;
    margin: -14px -14px 2px;
    padding: 13px 14px 11px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(16, 33, 42, 0.08);
    backdrop-filter: blur(14px);
  }

  .modal-card > .section-heading:first-child::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    width: 38px;
    height: 4px;
    background: rgba(91, 115, 128, 0.28);
    border-radius: 999px;
    transform: translateX(-50%);
  }

  .modal-card > .section-heading:first-child h2 {
    margin-top: 3px;
    font-size: 1.15rem;
  }

  .modal-card > .section-heading:first-child .eyebrow {
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 0.66rem;
  }

  .modal-card > .section-heading:first-child .modal-helper {
    display: none;
  }

  .modal-card label {
    gap: 5px;
    font-size: 0.82rem;
  }

  .modal-card input,
  .modal-card select,
  .modal-card textarea {
    min-height: 46px;
    padding: 11px 12px;
    background: #f7fbfa;
    border-radius: 12px;
    font-size: 0.95rem;
  }

  .modal-card textarea {
    min-height: 96px;
    resize: vertical;
  }

  .modal-card .primary-button,
  .modal-card .secondary-button,
  .modal-card .danger-button {
    min-height: 48px;
    justify-content: center;
  }

  .modal-helper {
    margin-top: 2px;
    color: rgba(91, 115, 128, 0.82);
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .safety-card {
    gap: 8px;
    padding: 11px;
    background: #fff8f3;
    border-radius: 14px;
  }

  .safety-card p {
    display: none;
  }

  .safety-card legend {
    font-size: 0.82rem;
  }

  .check-row {
    gap: 8px;
    padding: 8px;
    border-radius: 10px;
  }

  .check-row span {
    font-size: 0.8rem;
    line-height: 1.32;
  }

  .file-preview {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 8px;
    box-shadow: none;
  }

  .file-preview-thumb {
    width: 44px;
    height: 44px;
  }

  .notification-list {
    max-height: 58dvh;
  }

  .notification-actions {
    justify-content: stretch;
  }

  .notification-actions button {
    flex: 1 1 120px;
  }

  main {
    width: calc(100% - 18px);
    max-width: 1180px;
    padding-bottom: 24px;
  }

  .app-shell {
    padding-bottom: calc(138px + env(safe-area-inset-bottom, 0px));
  }

  .topbar .login-button,
  .topbar .auth-button {
    padding: 8px 9px;
    font-size: 0.8rem;
  }

  .topbar .auth-button {
    max-width: 104px;
  }

  .empty-state {
    min-height: auto;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(6, 56, 73, 0.07);
  }

  .empty-state h3 {
    font-size: 1.08rem;
  }

  .empty-state p:not(.eyebrow) {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.84rem;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .empty-state-actions {
    margin-top: 10px;
  }

  .notification-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
  }

  .notification-icon {
    display: none;
  }

  .notification-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 3px 0;
    font-size: 0.82rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .notification-card small {
    font-size: 0.72rem;
  }

  .quick-stats,
  .report-card {
    grid-template-columns: 1fr;
  }

  .main-feed,
  .crew-list,
  .spot-list,
  .selected-crew-plans {
    gap: 10px;
  }

  .hero-section {
    min-height: min(70svh, 560px);
    padding: 22px 15px 16px;
    margin-bottom: 14px;
  }

  .hero-copy .eyebrow {
    margin-bottom: 8px;
    font-size: 0.68rem;
  }

  .hero-copy p:not(.eyebrow) {
    -webkit-line-clamp: 2;
  }

  .hero-actions .secondary-button {
    display: none;
  }

  .app-dashboard {
    display: none;
  }

  .onboarding-panel,
  .experience-strip,
  .quick-stats {
    display: none;
  }

  .people-preview {
    margin: 0 0 14px;
  }

  .people-preview .section-heading {
    align-items: end;
  }

  .people-preview .section-heading h2 {
    font-size: 1.25rem;
  }

  .people-card {
    gap: 8px;
    padding: 12px;
  }

  .people-card p {
    min-height: 0;
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.84rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .onboarding-panel {
    margin-bottom: 14px;
  }

  .onboarding-copy {
    min-height: 150px;
  }

  .onboarding-copy p {
    display: none;
  }

  .launch-step p {
    display: none;
  }

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

  .launch-step > span {
    min-width: 40px;
    height: 28px;
  }

  .experience-strip article p {
    display: none;
  }

  .quick-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quick-stats article {
    padding: 10px 7px;
  }

  .quick-stats strong {
    font-size: 1.2rem;
  }

  .quick-stats span {
    font-size: 0.7rem;
  }

  .reports-section,
  .crew-section,
  .spots-section {
    padding-top: 20px;
  }

  .reports-section > .section-heading:first-child,
  .crew-section > .section-heading:first-child,
  .spots-section > .section-heading:first-child {
    min-height: 166px;
    padding: 18px 15px;
    margin-bottom: 12px;
    border-radius: 16px;
  }

  .reports-section > .section-heading:first-child h2,
  .crew-section > .section-heading:first-child h2,
  .spots-section > .section-heading:first-child h2 {
    max-width: 12ch;
    font-size: clamp(1.7rem, 7.2vw, 2.35rem);
  }

  .reports-section > .section-heading:first-child .eyebrow,
  .crew-section > .section-heading:first-child .eyebrow,
  .spots-section > .section-heading:first-child .eyebrow {
    font-size: 0.68rem;
  }

  .report-actions {
    grid-template-columns: repeat(5, minmax(72px, 1fr));
    margin: 10px -10px -10px;
    padding: 8px 10px 9px;
    background: rgba(247, 251, 250, 0.96);
    border-top-color: rgba(16, 33, 42, 0.06);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .report-actions::-webkit-scrollbar {
    display: none;
  }

  .report-actions button {
    min-height: 34px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    white-space: nowrap;
    box-shadow: none;
  }

  .report-header .member-button span:last-child,
  .report-comments,
  .report-body p,
  .participant-row,
  .safety-strip,
  .spot-card p {
    display: none;
  }

  .report-header {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    padding: 10px 12px 8px;
  }

  .report-header span {
    font-size: 0.76rem;
  }

  .avatar {
    width: 36px;
    height: 36px;
  }

  .report-image {
    min-height: 168px;
  }

  .report-body h3,
  .crew-card h3,
  .spot-card h3 {
    margin: 2px 0 0;
    font-size: 1.04rem;
    line-height: 1.25;
  }

  .tag-row {
    gap: 6px;
    max-height: none;
    overflow: visible;
  }

  .tag {
    padding: 5px 8px;
    font-size: 0.7rem;
  }

  .report-body,
  .crew-card,
  .spot-card {
    padding: 12px;
  }

  .report-card,
  .crew-card,
  .spot-card {
    border-color: rgba(16, 33, 42, 0.06);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(6, 56, 73, 0.07);
  }

  .report-card + .report-card,
  .crew-card + .crew-card,
  .spot-card + .spot-card {
    margin-top: 2px;
  }

  .crew-card {
    gap: 8px;
  }

  .crew-card .meta-row,
  .spot-card .meta-row {
    gap: 6px;
    font-size: 0.74rem;
  }

  .crew-card .meta-row > span:first-child {
    display: none;
  }

  .spot-card .meta-row span:last-child {
    display: none;
  }

  .crew-card > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .crew-actions,
  .spot-actions,
  .empty-state-actions {
    gap: 7px;
    margin: 2px -4px -2px;
    padding: 2px 4px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .crew-actions::-webkit-scrollbar,
  .spot-actions::-webkit-scrollbar,
  .empty-state-actions::-webkit-scrollbar {
    display: none;
  }

  .crew-actions button,
  .spot-actions button {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 11px;
    background: rgba(247, 251, 250, 0.96);
    border: 1px solid rgba(16, 33, 42, 0.06);
    border-radius: 999px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .crew-details > span {
    padding: 7px 9px;
    font-size: 0.78rem;
  }

  .crew-details > span:nth-child(2) {
    display: none;
  }

  .group-chat {
    gap: 7px;
    margin: 4px -2px 0;
    padding: 10px;
    background: #f7fbfa;
    border-color: rgba(16, 33, 42, 0.06);
    border-radius: 13px;
  }

  .group-chat-header strong {
    font-size: 0.86rem;
  }

  .group-chat-header span {
    font-size: 0.72rem;
  }

  .chat-messages {
    gap: 6px;
    max-height: 138px;
    padding-right: 2px;
  }

  .chat-message {
    max-width: 88%;
    padding: 8px 10px;
    border-radius: 12px;
    box-shadow: none;
  }

  .chat-message p {
    font-size: 0.84rem;
    line-height: 1.32;
  }

  .chat-author-row {
    gap: 6px;
  }

  .chat-author-row > span {
    font-size: 0.68rem;
  }

  .chat-member span:last-child {
    display: none;
  }

  .chat-member .avatar {
    width: 22px;
    height: 22px;
    font-size: 0.62rem;
  }

  .chat-compose {
    grid-template-columns: minmax(0, 1fr) 64px;
    gap: 6px;
  }

  .chat-compose input {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 0.86rem;
  }

  .chat-compose .secondary-button {
    min-height: 38px;
    padding: 8px 10px;
    box-shadow: none;
  }

  .search-tools {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    padding: 0;
    margin: 8px 0 12px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .search-tools small,
  .search-box span {
    display: none;
  }

  .search-box input {
    min-height: 38px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.82);
    font-size: 0.84rem;
  }

  .search-tools .text-button {
    min-height: 38px;
    padding: 8px 10px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(16, 33, 42, 0.06);
    border-radius: 999px;
    font-size: 0.78rem;
  }

  .toolbar {
    gap: 7px;
    margin: 0 0 8px;
    padding: 0 0 4px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

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

  .filter-pill {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 7px 11px;
    background: rgba(255, 255, 255, 0.78);
    font-size: 0.74rem;
    box-shadow: none;
  }

  .main-feed {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .main-feed > .section-heading {
    display: none;
  }

  .map-panel {
    height: 300px;
    min-height: 300px;
    border-width: 2px;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(6, 56, 73, 0.11);
  }

  .crew-planner,
  .spots-layout {
    gap: 10px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .calendar-panel,
  .day-plans {
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(6, 56, 73, 0.07);
  }

  .calendar-panel::before,
  .day-plans::before {
    height: 3px;
  }

  .calendar-header {
    align-items: center;
    margin-bottom: 9px;
  }

  .calendar-header strong {
    font-size: 1rem;
  }

  .calendar-header span {
    display: none;
  }

  .calendar-actions {
    gap: 2px;
  }

  .calendar-nav-button,
  .calendar-today-button {
    min-height: 32px;
    padding: 5px 8px;
  }

  .calendar-weekdays {
    gap: 4px;
    margin-bottom: 5px;
    font-size: 0.62rem;
  }

  .calendar-day {
    min-height: 38px;
    padding: 4px 2px;
    border-radius: 9px;
    font-size: 0.78rem;
    box-shadow: none;
  }

  .calendar-day small {
    display: none;
  }

  .calendar-day.has-plan {
    box-shadow: inset 0 -3px 0 var(--sea);
  }

  .calendar-day.selected {
    box-shadow: 0 8px 18px rgba(8, 117, 139, 0.2);
  }

  .trust-section {
    width: calc(100vw - 18px);
    max-width: calc(100vw - 18px);
    justify-self: center;
    gap: 12px;
    padding: 18px 14px;
    margin: 20px 0 22px;
    background:
      linear-gradient(180deg, rgba(3, 32, 43, 0.38), rgba(3, 32, 43, 0.84)),
      var(--profile-image) center / cover;
  }

  .trust-section > *,
  .profile-dashboard,
  .profile-cta,
  .profile-progress,
  .profile-grid {
    min-width: 0;
    max-width: 100%;
  }

  .trust-section > div:first-child p,
  .badge-row {
    display: none;
  }

  .trust-section h2 {
    max-width: 11ch;
    font-size: clamp(1.85rem, 8vw, 2.5rem);
  }

  .profile-card {
    grid-template-columns: auto minmax(0, 1fr);
    min-width: 0;
    padding: 12px;
    border-radius: 14px;
  }

  .profile-card > div,
  .profile-cta > div,
  .profile-panel {
    min-width: 0;
  }

  .profile-card p,
  .profile-card .tag-row {
    display: none;
  }

  .profile-progress {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px;
  }

  .profile-cta {
    grid-template-columns: 1fr;
  }

  .profile-actions {
    justify-content: stretch;
  }

  .profile-actions button {
    flex: 1 1 140px;
  }

  .profile-progress p {
    display: none;
  }

  .progress-ring {
    width: 68px;
  }

  .profile-grid,
  .profile-grid-two,
  .safety-centre {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .profile-grid .profile-panel,
  .stat-panel {
    padding: 10px;
    border-radius: 12px;
  }

  .stat-panel strong {
    font-size: 1.25rem;
  }

  .profile-cta p,
  .backend-status-card p,
  .stat-panel p,
  .profile-grid .profile-panel p {
    display: none;
  }

  .profile-kicker {
    margin-bottom: 5px;
    font-size: 0.62rem;
  }

  .saved-panel,
  .profile-detail-list,
  .profile-edit-form {
    border-radius: 14px;
  }

  .profile-detail-list {
    max-height: 270px;
    overflow-y: auto;
    margin-top: 10px;
    padding: 10px;
    background: #f7fbfa;
    border: 1px solid var(--line);
  }

  .profile-edit-form {
    gap: 10px;
  }

  .profile-edit-group {
    gap: 9px;
    padding: 10px;
    border-radius: 14px;
  }

  .profile-edit-group summary {
    min-height: 42px;
  }

  .profile-edit-group summary::after {
    width: 26px;
    height: 26px;
  }

  .profile-edit-group summary small {
    font-size: 0.7rem;
  }

  .profile-edit-form .section-heading {
    position: sticky;
    top: 58px;
    z-index: 1;
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
  }

  .profile-edit-form label {
    font-size: 0.82rem;
  }

  .profile-edit-form input,
  .profile-edit-form select,
  .profile-edit-form textarea {
    min-height: 44px;
    padding: 10px 11px;
    border-radius: 12px;
    font-size: 0.94rem;
  }

  .sport-level-grid {
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
  }

  .empty-state,
  .launch-step,
  .toast-card,
  .report-comment,
  .report-comment-form {
    grid-template-columns: 1fr;
  }

  .toast-card .icon-button {
    position: absolute;
    right: 10px;
    top: 10px;
  }

  .quick-stats article {
    padding: 14px;
  }

  .report-image {
    min-height: 168px;
  }

  .crew-details {
    grid-template-columns: 1fr;
  }

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

  .address-row {
    grid-template-columns: 1fr;
  }

  .address-row .secondary-button {
    width: 100%;
  }

  #leaveCrewForm .profile-actions,
  #concernForm .profile-actions {
    position: sticky;
    bottom: calc(-18px - env(safe-area-inset-bottom, 0px));
    margin: 4px -14px calc(-18px - env(safe-area-inset-bottom, 0px));
    padding: 10px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(16, 33, 42, 0.08);
    backdrop-filter: blur(14px);
  }

  #leaveCrewForm .profile-actions button,
  #concernForm .profile-actions button {
    flex: 1 1 140px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .muted {
    display: none;
  }

  .people-discovery,
  .people-match-panel {
    padding: 14px;
    border-radius: 16px;
  }

  .people-filter-bar,
  .people-discovery-grid,
  .people-suggestion-grid,
  .settings-grid,
  .guideline-list {
    grid-template-columns: 1fr;
  }

  .people-card-actions {
    align-items: stretch;
  }

  .people-card-actions button,
  .profile-social-actions button,
  .settings-actions button,
  .guideline-actions button {
    flex: 1 1 130px;
  }

  .site-footer {
    display: grid;
    gap: 12px;
    padding: 14px;
    margin-top: 18px;
    margin-bottom: 4px;
  }

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

  .site-footer button {
    text-align: left;
  }

  .legal-content section {
    padding: 12px;
  }

  .legal-switcher button {
    flex: 1 1 90px;
  }

  .onboarding-value-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-value-grid article {
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: center;
  }
}

@media (max-width: 900px) {
.chat-workspace {
    grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1.45fr);
  }

  .chat-info-panel {
    display: none;
  }
}

.chat-workspace.is-guest {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}

.chat-workspace.is-guest .chat-channel-panel,
.chat-workspace.is-guest .chat-info-panel {
  display: none;
}

.chat-workspace.is-guest .chat-conversation-panel {
  min-height: 0;
}

.chat-workspace.is-guest .empty-state {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 620px) {
  .site-footer > .footer-brand {
    align-items: flex-start;
  }

  .footer-brand > img {
    width: 46px;
    height: 46px;
  }

  .chats-section {
    margin: 0 -16px;
    padding: 0;
  }

  .chats-heading {
    padding: 12px 16px;
  }

  .chats-heading > .secondary-button {
    display: none;
  }

  .chat-workspace {
    display: block;
    min-height: calc(100dvh - 138px);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .chat-channel-panel {
    min-height: calc(100dvh - 138px);
    border: 0;
  }

  .chat-channel-list {
    max-height: none;
  }

  .chat-conversation-panel {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: none;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background: #fbfefd;
  }

  .chat-workspace.is-mobile-conversation .chat-conversation-panel {
    display: grid;
  }

  .chat-mobile-back {
    display: grid;
    flex: 0 0 auto;
  }

  .conversation-header {
    min-height: 64px;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
  }

  .conversation-header .tag {
    flex: 0 0 auto;
  }

  .conversation-messages {
    max-height: none;
    padding: 14px 12px;
  }

  .chat-workspace-message {
    max-width: 88%;
  }

  .conversation-compose {
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .conversation-compose .primary-button {
    padding-right: 14px;
    padding-left: 14px;
  }

  .group-chat-preview {
    padding: 10px;
  }

  .chat-preview-copy {
    align-items: stretch;
    flex-direction: column;
  }

  .chat-preview-copy .secondary-button {
    width: 100%;
  }

  .fuel-cost-banner {
    padding: 8px 10px;
  }
}

@media (max-width: 620px) {
  .crew-card {
    gap: 13px;
    padding: 14px;
    border-radius: 12px;
  }

  .crew-card-copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .crew-details {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .crew-details > span,
  .crew-details > span:nth-child(2) {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    min-height: 52px;
    padding: 8px 9px;
  }

  .crew-details > span > svg {
    width: 16px;
    height: 16px;
    padding: 7px;
    border-radius: 8px;
  }

  .safety-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .safety-strip div {
    flex-wrap: nowrap;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .safety-strip div::-webkit-scrollbar {
    display: none;
  }

  .safety-strip span {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .crew-card-community {
    align-items: flex-start;
    flex-direction: column;
  }

  .crew-card .participant-row {
    display: flex;
  }

  .crew-card .tag-row {
    justify-content: flex-start;
  }

  .crew-actions {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 12px 0 0;
    overflow: visible;
  }

  .crew-primary-actions,
  .crew-secondary-actions {
    width: 100%;
  }

  .crew-primary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crew-primary-actions > * {
    width: 100%;
  }

  .crew-secondary-actions {
    justify-content: flex-start;
    gap: 2px;
  }

  .crew-actions button,
  .crew-actions summary {
    min-height: 36px;
    background: transparent;
    border: 0;
    border-radius: 8px;
  }

  .crew-primary-actions .secondary-button,
  .crew-primary-actions .primary-button,
  .crew-role-badge {
    min-height: 40px;
    background: #f0f7f6;
    border: 1px solid #d8e8e6;
  }

  .crew-primary-actions .primary-button {
    color: #ffffff;
    background: var(--ocean);
    border-color: var(--ocean);
  }

  .crew-manage-actions {
    right: 0;
    bottom: calc(100% + 6px);
    width: min(230px, calc(100vw - 48px));
  }

  .group-chat-preview {
    margin: 0;
  }
}

/* Unified product UI */
:where(button, a, summary) > svg {
  display: block;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  align-self: center;
  pointer-events: none;
}

.app-shell {
  overflow-x: clip;
}

:where(.primary-button, .secondary-button, .text-button, .ghost-button, .link-button, .danger-button, .icon-text-button) {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  vertical-align: middle;
}

:where(.primary-button, .secondary-button, .text-button, .ghost-button, .link-button, .danger-button, .icon-text-button) > svg {
  margin: 0;
}

:where(.group-chat-header strong, .safety-strip > strong, .spot-facts strong, .chat-plan-facts dt, .people-card .tag, .report-body .tag, .crew-card .tag) {
  line-height: 1.2;
}

:where(.group-chat-header strong, .safety-strip > strong, .spot-facts strong, .chat-plan-facts dt, .people-card .tag, .report-body .tag, .crew-card .tag) > svg {
  display: block;
  flex: 0 0 auto;
  align-self: center;
  margin: 0;
}

.top-links a,
.bottom-nav a,
.action-menu button,
.notification-card .text-button,
.people-card-actions button,
.spot-actions button,
.report-actions button,
.report-comment-form button {
  display: inline-flex;
  align-items: center;
}

.top-links a {
  gap: 6px;
}

.top-links a svg {
  width: 15px;
  height: 15px;
}

.search-tools {
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  background: #ffffff;
  border: 1px solid rgba(15, 65, 78, 0.09);
  border-radius: 11px;
  box-shadow: 0 8px 22px rgba(8, 58, 70, 0.05);
}

.search-box {
  gap: 5px;
}

.search-box > span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: #587078;
  font-size: 0.72rem;
}

.search-box > span svg {
  width: 13px;
  height: 13px;
}

.search-box input {
  min-height: 42px;
  background: #f8fbfa;
  border-color: #d8e6e4;
  border-radius: 9px;
}

.search-tools > .text-button {
  min-height: 42px;
  padding: 8px 11px;
  color: #587078;
  background: #f2f7f6;
  border: 1px solid #dfecea;
  border-radius: 9px;
}

.search-tools > small {
  grid-column: 1 / -1;
  padding: 0 2px;
  color: #71858c;
}

.toolbar {
  gap: 6px;
}

.filter-pill {
  min-height: 36px;
  padding: 7px 12px;
  color: #587078;
  background: #f3f8f7;
  border-color: #dce9e7;
  border-radius: 8px;
  box-shadow: none;
}

.filter-pill.active {
  color: #ffffff;
  background: var(--ocean);
  border-color: var(--ocean);
}

.icon-button {
  display: inline-grid;
  place-items: center;
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.modal-card .icon-button {
  color: #587078;
  background: #edf5f4;
  border-radius: 8px;
}

.modal-card .icon-button:hover {
  color: var(--deep);
  background: #dfedeb;
}

:where(button, a, summary, input, select, textarea):focus-visible {
  outline: 3px solid rgba(11, 120, 135, 0.22);
  outline-offset: 2px;
}

.report-card,
.spot-card,
.people-card,
.profile-panel,
.notification-card {
  border-color: rgba(15, 65, 78, 0.1);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(8, 58, 70, 0.07);
}

.report-card {
  overflow: visible;
  background: #ffffff;
}

.report-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}

.report-author {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.report-author > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.report-author > div > span,
.people-card-top > div > span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
}

.report-author svg,
.people-card-top > div > span svg {
  width: 13px;
  height: 13px;
}

.report-freshness {
  display: inline-flex;
  min-height: 28px;
  gap: 5px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 900;
}

.report-freshness svg {
  width: 14px;
  height: 14px;
}

.report-image {
  position: relative;
  display: block;
  width: 100%;
  min-height: 300px;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8, 117, 139, 0.08), rgba(34, 185, 165, 0.08)),
    var(--image, linear-gradient(135deg, #2f8192, #e8d8bd));
  background-position: center;
  background-size: cover;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.report-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 50%, rgba(3, 32, 43, 0.28));
  opacity: 0;
  transition: opacity 160ms ease;
}

.report-image:hover::after,
.report-image:focus-visible::after {
  opacity: 1;
}

.report-image-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 7px 10px;
  color: #ffffff;
  background: rgba(4, 47, 59, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 900;
  backdrop-filter: blur(10px);
  z-index: 1;
}

.report-image-open {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 7px 10px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(4, 47, 59, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  opacity: 0;
  backdrop-filter: blur(10px);
  transform: translateY(4px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.report-image:hover .report-image-open,
.report-image:focus-visible .report-image-open {
  opacity: 1;
  transform: translateY(0);
}

.report-image-badge svg {
  width: 15px;
  height: 15px;
}

.report-body {
  display: grid;
  gap: 11px;
  padding: 16px;
}

.report-body h3 {
  margin: 0;
}

.report-body > p {
  margin: 0;
}

.report-body .tag {
  gap: 5px;
  border-radius: 7px;
}

.report-body .tag svg {
  width: 14px;
  height: 14px;
}

.report-actions {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  background: transparent;
  border-top: 1px solid rgba(15, 65, 78, 0.09);
}

.report-primary-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.report-actions button,
.card-more-menu summary {
  min-height: 38px;
  gap: 6px;
  padding: 8px 11px;
  color: #48636b;
  background: #f3f8f7;
  border: 1px solid #deebe9;
  border-radius: 8px;
  font: inherit;
  font-size: 0.79rem;
  font-weight: 850;
  cursor: pointer;
}

.report-actions button:hover,
.card-more-menu summary:hover {
  color: var(--deep);
  background: #e9f4f2;
}

.report-actions button.is-active {
  color: #075a6b;
  background: #ddf2f2;
  border-color: #bfe1df;
}

.report-actions button strong {
  font-size: 0.72rem;
}

.card-more-menu {
  position: relative;
}

.card-more-menu summary {
  display: inline-flex;
  align-items: center;
  list-style: none;
}

.card-more-menu summary::-webkit-details-marker {
  display: none;
}

.card-more-menu > div {
  position: absolute;
  right: 0;
  bottom: calc(100% + 7px);
  z-index: 20;
  display: grid;
  width: 190px;
  gap: 4px;
  padding: 7px;
  background: #ffffff;
  border: 1px solid rgba(15, 65, 78, 0.12);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(8, 58, 70, 0.17);
}

.card-more-menu > div button {
  justify-content: flex-start;
  width: 100%;
  background: transparent;
  border: 0;
}

.card-more-menu .is-danger {
  color: #a13e2a;
}

.report-comments {
  gap: 9px;
  padding: 12px;
  background: #f7faf9;
  border-color: rgba(15, 65, 78, 0.08);
  border-radius: 10px;
}

.report-comment {
  grid-template-columns: minmax(110px, auto) 1fr auto;
  padding: 7px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(15, 65, 78, 0.07);
  border-radius: 0;
}

.report-comment:last-child {
  border-bottom: 0;
}

.report-comment-form input {
  min-height: 40px;
  border-radius: 9px;
}

.spot-card {
  display: grid;
  gap: 13px;
  padding: 16px;
  background: #ffffff;
}

.spot-card-head,
.spot-card-copy > div {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.spot-location,
.spot-updated {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.spot-location svg,
.spot-updated svg {
  width: 14px;
  height: 14px;
}

.spot-card-copy {
  display: grid;
  gap: 5px;
}

.spot-card-copy h3,
.spot-card-copy p {
  margin: 0;
}

.spot-status {
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: 900;
}

.spot-facts {
  display: grid;
  gap: 7px;
}

.spot-facts > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 10px;
  color: #47636b;
  background: #f5f9f8;
  border-radius: 8px;
  font-size: 0.78rem;
}

.spot-facts strong {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--deep);
}

.spot-facts strong svg {
  width: 15px;
  height: 15px;
  color: var(--ocean);
}

.spot-facts .has-hazards {
  color: #7a4a25;
  background: #fff8f2;
}

.spot-facts .has-hazards strong svg {
  color: #b56431;
}

.spot-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 11px;
  border-top: 1px solid rgba(15, 65, 78, 0.08);
}

.spot-actions .primary-button,
.spot-actions .secondary-button {
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 8px;
}

.chat-workspace {
  border-color: rgba(15, 65, 78, 0.12);
  border-radius: 14px;
  box-shadow: 0 14px 38px rgba(8, 58, 70, 0.09);
}

.chat-channel-panel,
.chat-info-panel {
  background: #f5f9f8;
}

.chat-channel {
  gap: 11px;
  min-height: 74px;
  padding: 11px 12px;
  background: transparent;
  border-bottom-color: rgba(15, 65, 78, 0.07);
}

.chat-channel:hover {
  background: #edf5f4;
}

.chat-channel.is-active {
  background: #e3f1ef;
  box-shadow: inset 3px 0 var(--ocean);
}

.chat-channel-icon,
.conversation-start > span,
.chat-info-hero > span {
  display: inline-grid;
  place-items: center;
  color: var(--ocean);
  background: #dff0ee;
  border-radius: 10px;
}

.chat-channel-icon svg,
.conversation-start > span svg,
.chat-info-hero > span svg {
  width: 21px;
  height: 21px;
}

.conversation-start > span {
  width: 52px;
  height: 52px;
}

.conversation-header,
.chat-panel-heading {
  min-height: 66px;
  padding: 12px 14px;
}

.conversation-compose {
  gap: 8px;
  padding: 11px 12px;
  background: #f7faf9;
}

.conversation-compose input {
  min-height: 42px;
  border-radius: 9px;
}

.conversation-compose .primary-button {
  min-height: 42px;
  border-radius: 9px;
}

.chat-system-message {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 7px;
  align-items: center;
}

.chat-system-message svg {
  width: 14px;
  height: 14px;
}

.chat-plan-facts dt {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.chat-plan-facts dt svg {
  width: 14px;
  height: 14px;
  color: var(--ocean);
}

.chat-empty-canvas {
  gap: 8px;
}

.chat-empty-canvas > svg {
  width: 34px;
  height: 34px;
  color: #7c999f;
}

.people-card {
  gap: 11px;
  padding: 14px;
  background: #ffffff;
}

.people-card .tag {
  display: inline-flex;
  max-width: 100%;
  min-width: 0;
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  border-radius: 7px;
  line-height: 1.15;
  white-space: nowrap;
}

.people-card .tag svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

.people-card-actions {
  padding-top: 9px;
  border-top: 1px solid rgba(15, 65, 78, 0.08);
}

.people-card-actions button {
  gap: 6px;
}

.profile-panel {
  background: #ffffff;
}

.profile-cta {
  position: relative;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.profile-panel-icon,
.profile-stat-icon,
.empty-state-icon {
  display: inline-grid;
  place-items: center;
  color: var(--ocean);
  background: #e3f2f0;
  border-radius: 10px;
}

.profile-panel-icon {
  width: 48px;
  height: 48px;
}

.profile-stat-icon {
  width: 34px;
  height: 34px;
}

.profile-panel-icon svg {
  width: 23px;
  height: 23px;
}

.profile-stat-icon svg {
  width: 17px;
  height: 17px;
}

.stat-panel {
  position: relative;
  gap: 6px;
}

.stat-panel > strong {
  color: var(--deep);
}

.profile-detail-list {
  overflow: hidden;
  border: 1px solid rgba(15, 65, 78, 0.09);
  border-radius: 10px;
}

.profile-detail-list > * {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15, 65, 78, 0.07);
}

.profile-detail-list > *:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.empty-state {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 22px;
  background: #ffffff;
  border-color: rgba(15, 65, 78, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(8, 58, 70, 0.06);
}

.empty-state-icon {
  width: 42px;
  height: 42px;
}

.empty-state-icon svg {
  width: 20px;
  height: 20px;
}

.notification-card {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 12px;
}

.notification-icon,
.toast-icon {
  display: inline-grid;
  place-items: center;
  color: var(--ocean);
  background: #e3f2f0;
  border-radius: 9px;
}

.notification-icon {
  width: 38px;
  height: 38px;
}

.notification-icon svg,
.toast-icon svg {
  width: 18px;
  height: 18px;
}

.notification-card.is-unread {
  background: #f1f9f7;
  box-shadow: inset 3px 0 var(--ocean);
}

.notification-card .text-button {
  gap: 4px;
}

.modal-card {
  gap: 14px;
  border-color: rgba(15, 65, 78, 0.12);
  border-radius: 14px;
  box-shadow: 0 28px 80px rgba(5, 44, 55, 0.22);
}

.modal-card label {
  gap: 6px;
  color: #31525b;
  font-size: 0.8rem;
}

.modal-card :where(input, select, textarea) {
  border-color: #d6e5e3;
  border-radius: 9px;
  background: #f9fbfb;
}

.modal-card :where(input, select, textarea):focus {
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(11, 120, 135, 0.11);
}

.action-menu {
  gap: 5px;
  padding: 7px;
  border-color: rgba(15, 65, 78, 0.12);
  border-radius: 11px;
  box-shadow: 0 18px 46px rgba(8, 58, 70, 0.18);
}

.action-menu button {
  gap: 8px;
  justify-content: flex-start;
  min-height: 42px;
  border-radius: 8px;
}

@media (max-width: 760px) {
  .search-tools {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 8px;
  }

  .search-tools > small {
    display: none;
  }

  .report-card {
    border-radius: 12px;
  }

  .report-header {
    padding: 11px 12px;
  }

  .report-image {
    min-height: 210px;
  }

  .report-body {
    padding: 13px;
  }

  .report-actions {
    align-items: stretch;
  }

  .report-primary-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex: 1;
  }

  .report-actions button,
  .card-more-menu summary {
    min-height: 40px;
    padding: 8px;
    justify-content: center;
  }

  .report-actions button {
    font-size: 0.74rem;
  }

  .report-actions button strong {
    display: none;
  }

  .report-comments {
    padding: 10px;
  }

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

  .report-comment > p {
    grid-column: 1 / -1;
  }

  .spot-card {
    padding: 13px;
  }

  .spot-facts > div {
    grid-template-columns: 90px minmax(0, 1fr);
  }

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

  .spot-actions button {
    width: 100%;
    justify-content: center;
  }

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

  .profile-cta .profile-actions {
    grid-column: 1 / -1;
  }

  .empty-state {
    padding: 16px;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .topbar > [data-open-modal="reportModal"] {
    display: none;
  }

  .top-links a {
    padding-right: 7px;
    padding-left: 7px;
  }
}

@media (max-width: 620px) {
  :where(.primary-button, .secondary-button, .text-button, .ghost-button, .icon-text-button) {
    min-height: 40px;
  }

  .bottom-nav a {
    display: grid;
    gap: 3px;
    place-items: center;
    font-size: 0.65rem;
  }

  .bottom-nav a svg {
    width: 19px;
    height: 19px;
  }

  .bottom-nav #openActionMenu svg {
    width: 23px;
    height: 23px;
  }

  .chats-section {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .report-header .report-member span:last-child {
    display: none;
  }

  .report-author > div > strong {
    font-size: 0.84rem;
  }

  .report-freshness {
    min-height: 26px;
  }

  .report-image {
    min-height: 190px;
  }

  .report-body > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .report-comments {
    display: grid;
  }

  .spot-updated {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .spot-facts > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .notification-card {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .notification-card .text-button {
    grid-column: 2;
    justify-self: start;
  }

  .empty-state {
    grid-template-columns: 1fr;
  }
}

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

/* Modern ocean app: authoritative product layer */
:root {
  --radius-control: 8px;
  --radius-card: 12px;
  --radius-panel: 14px;
  --shadow-card: 0 8px 24px rgba(8, 58, 70, 0.07);
  --shadow-overlay: 0 22px 60px rgba(5, 44, 55, 0.18);
}

body {
  background: #f4f9f8;
}

main {
  max-width: 1180px;
}

.hero-section {
  grid-template-columns: minmax(0, 1fr);
  min-height: min(620px, 72vh);
  padding: clamp(40px, 7vw, 78px);
  margin: 14px 0 18px;
  background:
    linear-gradient(90deg, rgba(3, 32, 43, 0.9) 0%, rgba(3, 48, 59, 0.67) 48%, rgba(3, 48, 59, 0.18) 100%),
    var(--hero-image) center 46% / cover;
  border: 0;
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-overlay);
}

.hero-section::before,
.hero-section::after {
  display: none;
}

.hero-copy {
  max-width: 780px;
}

.hero-copy h1 {
  max-width: 15ch;
  font-size: clamp(2.8rem, 5.4vw, 5.4rem);
  line-height: 0.98;
}

.hero-copy p:not(.eyebrow) {
  max-width: 58ch;
  line-height: 1.55;
}

.hero-pills span {
  background: rgba(3, 32, 43, 0.35);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: none;
}

.coast-card {
  display: none;
}

.app-dashboard {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 24px;
  padding: 14px 16px;
  color: var(--deep);
  background: #ffffff;
  border: 1px solid rgba(15, 65, 78, 0.1);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.dash-greeting span {
  color: var(--muted);
}

.dash-greeting strong {
  font-size: 1.05rem;
}

.app-dashboard .primary-button,
.app-dashboard .secondary-button {
  min-height: 40px;
  padding: 9px 13px;
  border-radius: var(--radius-control);
  box-shadow: none;
}

.people-preview,
.people-discovery,
.people-match-panel,
.main-feed,
.crew-planner,
.spots-layout {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.people-preview {
  padding: 0;
  margin-bottom: 28px;
}

.people-preview-grid {
  gap: 10px;
}

.reports-section,
.crew-section,
.spots-section {
  padding: 26px 0 20px;
}

.reports-section > .section-heading:first-child,
.crew-section > .section-heading:first-child,
.spots-section > .section-heading:first-child {
  min-height: 0;
  align-items: center;
  padding: 0 0 18px;
  margin-bottom: 14px;
  color: var(--deep);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(15, 65, 78, 0.12);
  border-radius: 0;
  box-shadow: none;
}

.reports-section > .section-heading:first-child::before,
.crew-section > .section-heading:first-child::before,
.spots-section > .section-heading:first-child::before {
  display: none;
}

.reports-section > .section-heading:first-child h2,
.crew-section > .section-heading:first-child h2,
.spots-section > .section-heading:first-child h2 {
  max-width: none;
  color: var(--deep);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.08;
  text-shadow: none;
}

.reports-section > .section-heading:first-child .eyebrow,
.crew-section > .section-heading:first-child .eyebrow,
.spots-section > .section-heading:first-child .eyebrow {
  color: var(--ocean);
}

.reports-section > .section-heading:first-child .primary-button,
.crew-section > .section-heading:first-child .primary-button,
.spots-section > .section-heading:first-child .primary-button {
  color: #ffffff;
  background: var(--ocean);
  border-radius: var(--radius-control);
  box-shadow: none;
}

.toolbar {
  padding: 0 0 10px;
  margin-bottom: 8px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.filter-pill {
  border-radius: var(--radius-control);
}

.search-tools {
  margin: 0 0 18px;
  padding: 10px;
  background: #ffffff;
  border-radius: var(--radius-card);
  box-shadow: none;
}

.search-tools > small {
  display: none;
}

.search-box input,
.search-tools > .text-button {
  border-radius: var(--radius-control);
}

.main-feed {
  padding: 0;
}

.report-feed {
  width: min(100%, 780px);
  margin: 0 auto;
}

.report-card,
.crew-card,
.spot-card,
.people-card,
.profile-panel,
.calendar-panel,
.day-plans,
.notification-card {
  background: #ffffff;
  border: 1px solid rgba(15, 65, 78, 0.1);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.report-card:hover,
.crew-card:hover,
.spot-card:hover {
  transform: none;
  box-shadow: 0 12px 30px rgba(8, 58, 70, 0.1);
}

.report-image {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.report-body {
  gap: 10px;
  padding: 14px 16px 16px;
}

.report-actions {
  padding-top: 10px;
}

.report-comments {
  overflow: hidden;
  padding: 0;
  background: #f8fbfa;
  border: 1px solid rgba(15, 65, 78, 0.08);
  border-radius: 10px;
}

.report-comments summary {
  list-style: none;
}

.report-comments summary::-webkit-details-marker {
  display: none;
}

.report-comments-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--deep);
  cursor: pointer;
}

.report-comments-summary strong,
.report-comments-summary span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.report-comments-summary span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.report-comments-summary > svg {
  transition: transform 0.18s ease;
}

.report-comments[open] .report-comments-summary > svg {
  transform: rotate(180deg);
}

.report-comments-content {
  display: grid;
  gap: 9px;
  padding: 0 12px 12px;
  border-top: 1px solid rgba(15, 65, 78, 0.07);
}

.report-comment-list {
  padding-top: 4px;
}

.crew-planner {
  grid-template-columns: minmax(420px, 0.9fr) minmax(420px, 1.1fr);
  gap: 14px;
  padding: 0;
}

.calendar-panel,
.day-plans {
  padding: 14px;
}

.calendar-day {
  min-height: 52px;
  border-radius: 8px;
}

.calendar-day.has-plan {
  color: var(--deep);
  background: #e8f5f3;
  border-color: #b9dcda;
}

.calendar-day.selected {
  color: #ffffff;
  background: var(--ocean);
  border-color: var(--ocean);
  box-shadow: none;
}

.crew-card {
  gap: 12px;
  padding: 16px;
}

.crew-details {
  gap: 8px;
}

.crew-details > span {
  min-height: 64px;
  padding: 10px;
  border-radius: 8px;
}

.safety-strip {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #f7faf9;
  border-color: rgba(15, 65, 78, 0.08);
}

.safety-strip > div {
  display: flex;
  gap: 6px;
  overflow: hidden;
  flex-wrap: nowrap;
}

.safety-strip > div span {
  flex: 0 0 auto;
  color: #48636b;
  background: #edf4f3;
}

.participant-row {
  min-width: 0;
  overflow: hidden;
}

.participant-overflow {
  display: inline-grid;
  min-width: 32px;
  height: 32px;
  place-items: center;
  color: var(--ocean);
  background: #e3f2f0;
  border: 2px solid #ffffff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
}

.group-chat-preview {
  padding: 10px 12px;
}

.group-chat-preview .group-chat-header {
  margin-bottom: 6px;
}

.chat-preview-copy {
  gap: 8px;
}

.chat-preview-copy .secondary-button {
  min-height: 36px;
  padding: 7px 10px;
  border-radius: var(--radius-control);
}

.people-match-panel {
  padding: 18px 0 0;
}

.spots-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: 14px;
  padding: 0;
}

.map-panel {
  position: sticky;
  top: 92px;
  min-height: 620px;
  border: 1px solid rgba(15, 65, 78, 0.12);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.spot-list {
  align-content: start;
}

.spot-card {
  gap: 11px;
  padding: 14px;
}

.spot-facts > div {
  grid-template-columns: 88px minmax(0, 1fr);
  padding: 8px 9px;
}

.spot-actions {
  flex-wrap: nowrap;
}

.spot-actions > .primary-button,
.spot-actions > .secondary-button {
  flex: 1 1 auto;
  justify-content: center;
}

.spot-more-menu {
  flex: 0 0 auto;
}

.spot-more-menu > div {
  bottom: calc(100% + 7px);
}

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

.spot-map-marker span {
  position: relative;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 6px 10px 6px 24px;
  color: #ffffff;
  background: var(--deep);
  border: 2px solid #ffffff;
  border-radius: 9px;
  box-shadow: 0 8px 18px rgba(5, 44, 55, 0.2);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.spot-map-marker span::before {
  content: "";
  position: absolute;
  left: 9px;
  width: 8px;
  height: 8px;
  background: var(--sea);
  border-radius: 50%;
}

.chats-section {
  gap: 14px;
  padding-top: 26px;
}

.chat-workspace {
  min-height: 580px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.chat-channel-list {
  max-height: 510px;
}

.conversation-messages {
  max-height: 462px;
  padding: 14px 16px;
}

.conversation-header,
.chat-panel-heading {
  min-height: 62px;
}

.chat-info-panel {
  padding: 14px;
}

.chat-plan-facts div {
  padding: 8px 9px;
  border-radius: 8px;
}

.trust-section {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  grid-template-areas:
    "intro profile"
    "badges profile"
    "tabs tabs"
    "people people"
    "dashboard dashboard";
  gap: 16px 22px;
  margin: 26px 0 36px;
  padding: 0;
  color: var(--deep);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.trust-section::before {
  display: none;
}

.trust-section h2 {
  max-width: 18ch;
  color: var(--deep);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.06;
  text-shadow: none;
}

.trust-section .eyebrow {
  color: var(--ocean);
}

.trust-section > div:first-child p {
  max-width: 65ch;
  color: var(--muted);
  text-shadow: none;
}

.badge-row {
  gap: 6px;
}

.badge-row span {
  padding: 7px 10px;
  color: #47636b;
  background: #eaf3f2;
  border: 1px solid #d7e7e5;
  border-radius: var(--radius-control);
  backdrop-filter: none;
}

.profile-card {
  align-self: stretch;
  background: #ffffff;
  border: 1px solid rgba(15, 65, 78, 0.1);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  backdrop-filter: none;
}

.trust-section > .profile-tabs {
  grid-area: tabs;
}

.profile-tabs {
  display: flex;
  gap: 5px;
  padding: 5px;
  overflow-x: auto;
  background: #eaf3f2;
  border-radius: 10px;
}

.profile-tabs button {
  display: inline-flex;
  min-height: 40px;
  gap: 7px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  color: #587078;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.profile-tabs button.is-active {
  color: var(--deep);
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(8, 58, 70, 0.08);
}

[data-profile-panel][hidden] {
  display: none !important;
}

.people-discovery {
  padding: 0;
}

.profile-dashboard {
  gap: 12px;
}

.profile-panel {
  padding: 16px;
  backdrop-filter: none;
}

.profile-grid {
  gap: 10px;
}

.settings-grid article,
.guidelines-panel,
.moderation-panel,
.safety-centre > div {
  background: #f7faf9;
  border-color: rgba(15, 65, 78, 0.09);
  border-radius: 10px;
}

.guideline-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.guideline-list article,
.trust-badge,
.profile-edit-group {
  border-radius: 9px;
}

.modal-card {
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-overlay);
}

#onboardingModal {
  width: min(620px, calc(100% - 26px));
}

.onboarding-modal-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  border-radius: var(--radius-control);
}

.primary-button {
  background: var(--ocean);
  box-shadow: none;
}

.secondary-button,
.ghost-button {
  box-shadow: none;
}

.text-button {
  min-height: 36px;
  padding: 7px 9px;
  border-radius: var(--radius-control);
}

.card-more-menu summary,
.report-actions button {
  border-radius: var(--radius-control);
}

.notification-card.is-unread,
.nav-unread-badge,
.chat-unread,
.notification-button strong {
  --unread-accent: var(--safety);
}

@media (max-width: 1000px) {
  .people-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crew-planner,
  .spots-layout {
    grid-template-columns: 1fr;
  }

  .map-panel {
    position: relative;
    top: auto;
    min-height: 480px;
  }

  .trust-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "badges"
      "profile"
      "tabs"
      "people"
      "dashboard";
  }
}

@media (max-width: 760px) {
  .hero-section {
    min-height: min(540px, 72svh);
    padding: 28px 20px 22px;
    border-radius: 12px;
  }

  .hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(2.35rem, 10vw, 3.8rem);
  }

  .app-dashboard {
    display: none;
  }

  .people-preview {
    padding: 0;
  }

  .reports-section > .section-heading:first-child,
  .crew-section > .section-heading:first-child,
  .spots-section > .section-heading:first-child {
    flex-direction: row;
    align-items: center;
    min-height: 0;
    padding: 0 0 14px;
  }

  .reports-section > .section-heading:first-child h2,
  .crew-section > .section-heading:first-child h2,
  .spots-section > .section-heading:first-child h2 {
    max-width: 14ch;
    font-size: 1.55rem;
  }

  .reports-section > .section-heading:first-child .primary-button,
  .crew-section > .section-heading:first-child .primary-button,
  .spots-section > .section-heading:first-child .primary-button {
    width: auto;
    min-height: 42px;
    flex: 0 0 auto;
    padding: 9px 11px;
  }

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

  .search-tools > .text-button {
    align-self: end;
  }

  .report-feed {
    width: 100%;
  }

  .report-image {
    aspect-ratio: 4 / 3;
  }

  .crew-planner {
    padding: 0;
  }

  .calendar-day {
    min-height: 46px;
  }

  .crew-details {
    grid-template-columns: 1fr;
  }

  .crew-details > span {
    min-height: 0;
  }

  .safety-strip {
    grid-template-columns: 1fr;
  }

  .spot-actions {
    flex-wrap: wrap;
  }

  .map-panel {
    min-height: 390px;
  }

  .profile-tabs {
    margin: 0 -2px;
  }

  .profile-tabs button {
    flex: 1 0 auto;
  }

  .profile-grid,
  .profile-grid-two,
  .settings-grid,
  .safety-centre {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .app-shell {
    padding-bottom: calc(156px + env(safe-area-inset-bottom, 0px));
  }

  main {
    padding-bottom: 42px;
  }

  .bottom-nav {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: max(10px, env(safe-area-inset-left, 0px));
    padding: 6px 5px;
    overflow: visible;
  }

  .bottom-nav a[href="#spots"],
  .bottom-nav a[href="#community"] {
    display: grid;
  }

  .bottom-nav a,
  .bottom-nav button {
    min-height: 44px;
    padding: 0 2px;
    font-size: 0.58rem;
  }

  .bottom-nav a svg {
    width: 18px;
    height: 18px;
  }

  .bottom-nav #openActionMenu svg {
    width: 22px;
    height: 22px;
  }

  .people-card {
    overflow: visible;
  }

  .people-card .tag-row {
    align-items: flex-start;
    max-height: none;
    overflow: visible;
  }

  .people-card .tag {
    flex: 0 1 auto;
    max-width: 100%;
  }

  .hero-pills {
    display: none;
  }

  .hero-section {
    min-height: 450px;
    margin-top: 8px;
  }

  .mobile-home-hub {
    margin-bottom: 18px;
  }

  .people-preview-grid {
    display: flex;
  }

  .reports-section,
  .crew-section,
  .spots-section,
  .chats-section {
    padding-top: 18px;
  }

  .reports-section > .section-heading:first-child,
  .crew-section > .section-heading:first-child,
  .spots-section > .section-heading:first-child {
    gap: 10px;
  }

  .reports-section > .section-heading:first-child .eyebrow,
  .crew-section > .section-heading:first-child .eyebrow,
  .spots-section > .section-heading:first-child .eyebrow {
    margin-bottom: 4px;
  }

  .reports-section > .section-heading:first-child .primary-button,
  .crew-section > .section-heading:first-child .primary-button,
  .spots-section > .section-heading:first-child .primary-button {
    font-size: 0.78rem;
  }

  .report-header {
    padding: 11px 12px;
  }

  .report-body {
    padding: 12px;
  }

  .report-actions {
    align-items: flex-start;
  }

  .report-actions button,
  .card-more-menu summary {
    min-height: 36px;
    padding: 7px 9px;
  }

  .report-comments-summary {
    min-height: 42px;
  }

  .calendar-panel,
  .day-plans,
  .crew-card,
  .spot-card,
  .profile-panel {
    padding: 12px;
  }

  .map-panel {
    min-height: 330px;
  }

  .trust-section {
    gap: 12px;
    margin-top: 18px;
  }

  .trust-section h2 {
    font-size: 1.8rem;
  }

  .badge-row {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .badge-row span {
    flex: 0 0 auto;
  }

  .profile-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .profile-tabs button {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    white-space: normal;
  }

  .report-actions button,
  .card-more-menu summary,
  .people-card-actions button,
  .crew-actions button,
  .crew-actions summary,
  .text-button,
  .filter-pill {
    min-height: 40px;
  }

  .spot-actions .primary-button,
  .spot-actions .secondary-button,
  .spot-actions summary {
    min-height: 40px;
  }

  .people-photo-button,
  .member-button {
    min-width: 40px;
    min-height: 40px;
  }

  .chat-workspace {
    min-height: calc(100dvh - 138px);
  }
}

/* Community pulse people cards: keep long sport lists and actions inside the card. */
.people-card,
.people-card * {
  min-width: 0;
}

.people-card {
  overflow: hidden;
}

.people-card-top > div {
  min-width: 0;
}

.people-card-top strong,
.people-card-top span,
.people-card-top small,
.people-card p {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.people-card .tag-row {
  width: 100%;
  min-width: 0;
  align-items: flex-start;
  overflow: hidden;
}

.people-card .tag {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.people-card .people-level-tag {
  flex: 1 1 100%;
  align-items: flex-start;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.people-card .people-level-tag svg {
  margin-top: 1px;
}

.people-card-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  width: 100%;
  align-items: stretch;
  overflow: visible;
}

.people-card-actions button {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  justify-content: center;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.25;
}

.people-card-actions button svg {
  flex: 0 0 auto;
}

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

.report-comment-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.report-comment-copy strong {
  color: var(--deep);
  font-size: 0.84rem;
  line-height: 1.2;
}

.report-comment-copy p {
  display: block;
  margin: 0;
  color: var(--ink);
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.report-comment small {
  white-space: nowrap;
}

.report-useful-button {
  position: relative;
  overflow: visible;
}

.report-action-count {
  display: inline-grid !important;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  place-items: center;
  color: #075a6b;
  background: #ffffff;
  border: 1px solid rgba(7, 90, 107, 0.14);
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(8, 117, 139, 0.1);
}

.report-useful-button.is-active .report-action-count {
  color: #ffffff;
  background: #08758b;
  border-color: #08758b;
}

.reaction-pop {
  position: absolute;
  top: -12px;
  left: 22px;
  z-index: 2;
  pointer-events: none;
  color: #08758b;
  font-size: 0.72rem;
  font-weight: 950;
  opacity: 0;
  transform: translateY(6px) scale(0.86);
}

.report-useful-button.show-reaction-pop .reaction-pop {
  animation: reaction-pop 0.68s ease-out;
}

@keyframes reaction-pop {
  0% {
    opacity: 0;
    transform: translateY(7px) scale(0.86);
  }

  24% {
    opacity: 1;
    transform: translateY(-1px) scale(1.06);
  }

  100% {
    opacity: 0;
    transform: translateY(-16px) scale(1);
  }
}

#notificationsModal.drawer-modal .notifications-modal-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: 100%;
  min-height: 100%;
  overflow: hidden;
}

#notificationsModal .notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: auto;
  padding: 10px 0 12px;
}

#notificationsModal .notification-actions button {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 40px;
  padding: 8px 12px;
}

#notificationsModal .notification-list {
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}

@media (min-width: 621px) {
  #notificationsModal.drawer-modal {
    width: min(520px, 100%);
    max-width: 520px;
  }

  #notificationsModal.drawer-modal > .notifications-modal-card {
    max-height: 100dvh;
  }
}

@media (max-width: 430px) {
  .people-card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .people-card-actions button {
    padding-inline: 8px;
  }

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

  .report-comment small {
    grid-column: 2;
    justify-self: start;
  }
}

.activity-seo-links {
  display: grid;
  gap: 18px;
  padding: 8px 0 34px;
}

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

.activity-link-grid a {
  display: grid;
  min-height: 0;
  padding: 18px;
  align-content: start;
  gap: 8px;
  border: 1px solid rgba(8, 117, 139, 0.14);
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(238, 250, 249, 0.88));
  box-shadow: 0 12px 28px rgba(8, 54, 67, 0.06);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.activity-link-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 117, 139, 0.32);
  box-shadow: 0 24px 54px rgba(8, 54, 67, 0.11);
}

.activity-link-grid span {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: #075a6b;
  background: rgba(8, 117, 139, 0.1);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.activity-link-grid strong {
  max-width: 15rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.24;
}

.activity-link-grid small {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .activity-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .activity-link-grid {
    grid-template-columns: 1fr;
  }

  .activity-link-grid a {
    min-height: 0;
  }
}
