:root {
  --ink: #f3efe6;
  --muted: #b8b0a2;
  --line: #3b4650;
  --paper: #121518;
  --panel: #1b2328;
  --accent: #b9824a;
  --accent-dark: #d8ad72;
  --warn: #d37d5c;
  --panel-glass: rgba(27, 35, 40, 0.84);
  --panel-soft: rgba(18, 21, 24, 0.7);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3efe6;
    --muted: #b8b0a2;
    --line: #3b4650;
    --paper: #121518;
    --panel: #1b2328;
    --accent: #b9824a;
    --accent-dark: #d8ad72;
    --warn: #d37d5c;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -18%, rgba(184, 130, 74, 0.16), transparent 34rem),
    linear-gradient(180deg, #171a1c, #0f1214 58%, #0b0e10);
  font-family: "Aptos", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
}

a { color: var(--accent-dark); }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 1.3rem;
  background: rgba(20, 27, 31, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; text-decoration: none; line-height: 1; }
.brand picture { display: block; flex: 0 0 auto; }
.brand img { display: block; width: clamp(150px, 22vw, 210px); height: auto; object-fit: contain; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
nav a, nav button, .button, .primary {
  border: 1px solid var(--line);
  background: var(--panel-glass);
  color: var(--ink);
  text-decoration: none;
  padding: 0.55rem 0.8rem;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}
.primary, .button:hover, nav a:hover, nav button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #111416;
}
.nav-toggle {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}
.nav-toggle-button {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  place-items: center;
  gap: 0.22rem;
  border: 1px solid rgba(71, 216, 197, 0.32);
  border-radius: 8px;
  background: rgba(8, 16, 24, 0.54);
  cursor: pointer;
}
.nav-toggle-button span {
  display: block;
  width: 1.18rem;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}
.my-boats-return {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 2.7rem;
  padding: 0.62rem 0.86rem;
  border: 1px solid rgba(71, 216, 197, 0.42);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(22, 34, 44, 0.92), rgba(8, 16, 24, 0.92));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.36);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(12px);
}
.my-boats-return::before {
  content: "<";
  color: var(--accent-dark);
  font-weight: 900;
}
.my-boats-return:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}
.my-boats-return:hover::before {
  color: white;
}
.my-boats-screen .my-boats-return {
  display: none;
}
.shell { width: min(1180px, calc(100% - 2rem)); margin: 1.25rem auto 3rem; }
body:not(.my-boats-screen):not(.helm-screen) .shell {
  padding: 1.25rem 0 3rem;
}
.my-boats-screen {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.my-boats-screen .topbar {
  min-height: 88px;
}
.my-boats-screen .shell {
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}
.helm-screen {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.helm-screen .topbar {
  min-height: 78px;
  padding-inline: 1rem;
  background:
    linear-gradient(180deg, rgba(17, 22, 26, 0.96), rgba(11, 14, 17, 0.98));
}
.helm-screen .shell {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.helm-screen .my-boats-return {
  display: none;
}
.helm-page {
  height: 100%;
  min-height: 0;
  background:
    radial-gradient(circle at top left, rgba(216, 173, 114, 0.08), transparent 24rem),
    linear-gradient(180deg, #0b0e10, #090c0e);
}
.helm-frame {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1px;
  height: 100%;
  min-height: 0;
  background: rgba(216, 173, 114, 0.16);
}
.helm-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(16, 19, 23, 0.98), rgba(9, 12, 14, 0.99));
  box-shadow: none;
}
.helm-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.8rem;
  min-height: 4.2rem;
  padding: 0.85rem 1rem 0.7rem;
  border-bottom: 1px solid rgba(216, 173, 114, 0.14);
  background:
    linear-gradient(90deg, rgba(216, 173, 114, 0.06), transparent 46%);
}
.helm-panel-head > div:first-child {
  display: grid;
  gap: 0.2rem;
}
.helm-panel-head h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 760;
}
.helm-panel-kicker {
  color: #d8ad72;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.helm-panel-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}
.helm-panel-status span {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid rgba(216, 173, 114, 0.14);
  border-radius: 999px;
  background: rgba(9, 13, 16, 0.24);
  color: var(--muted);
  font-size: 0.74rem;
}
.helm-panel-body {
  min-height: 0;
  padding: 0.9rem;
}
.helm-panel-nmea .helm-panel-body,
.helm-panel-weather .helm-panel-body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.75rem;
}
.helm-panel-camera .helm-panel-body,
.helm-panel-ais .helm-panel-body {
  display: grid;
  gap: 0;
  padding: 0;
}
.helm-instrument-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}
.helm-instrument-grid span,
.helm-target-list span,
.helm-ticker-row span {
  display: grid;
  gap: 0.16rem;
}
.helm-instrument-grid em,
.helm-target-list em,
.helm-ticker-row em,
.helm-ownship-meta em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.77rem;
}
.helm-instrument-grid strong {
  font-size: clamp(1.25rem, 1.75vw, 1.7rem);
}
.helm-autopilot-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem;
  border: 1px solid rgba(216, 173, 114, 0.16);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(31, 42, 52, 0.74), rgba(13, 17, 20, 0.9));
}
.helm-autopilot-card strong {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}
.helm-state-label {
  color: #d8ad72;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.helm-autopilot-card small {
  color: var(--muted);
}
.helm-autopilot-controls {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin-top: 0.3rem;
  background: rgba(216, 173, 114, 0.12);
}
.helm-autopilot-controls button {
  min-height: 3rem;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(50, 60, 68, 0.84), rgba(15, 18, 21, 0.92));
  color: var(--ink);
  font: inherit;
  font-weight: 760;
}
.helm-camera-stage,
.helm-chart-stage,
.helm-weather-stage {
  position: relative;
  min-height: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}
.helm-camera-stage {
  background:
    linear-gradient(135deg, rgba(9, 13, 16, 0.4), rgba(9, 13, 16, 0.88)),
    radial-gradient(circle at 26% 24%, rgba(216, 173, 114, 0.18), transparent 10rem),
    linear-gradient(120deg, #20303a, #0e1418 42%, #090c0f);
}
.helm-camera-overlay {
  position: absolute;
  inset: 0.85rem 0.95rem auto 0.95rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
}
.helm-camera-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.2rem 0.65rem;
  border: 1px solid rgba(216, 173, 114, 0.2);
  border-radius: 999px;
  background: rgba(9, 13, 16, 0.48);
  color: #d8ad72;
  font-weight: 780;
}
.helm-camera-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.45rem;
  padding: 2rem;
  text-align: center;
}
.helm-camera-placeholder span,
.helm-camera-placeholder small {
  color: var(--muted);
}
.helm-camera-placeholder strong {
  font-size: clamp(1.35rem, 2.2vw, 2.05rem);
}
.helm-chart-stage {
  background:
    linear-gradient(180deg, rgba(20, 37, 36, 0.92), rgba(11, 17, 17, 0.98)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 60px);
}
.helm-ownship {
  position: absolute;
  left: 44%;
  top: 56%;
  width: 4.4rem;
  height: 4.4rem;
  transform: translate(-50%, -50%);
}
.helm-ownship-ring,
.helm-ownship-vessel {
  position: absolute;
}
.helm-ownship-ring {
  inset: 0;
  border: 1px solid rgba(216, 173, 114, 0.28);
  border-radius: 50%;
}
.helm-ownship-vessel {
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 0.75rem solid transparent;
  border-right: 0.75rem solid transparent;
  border-bottom: 1.55rem solid #d8ad72;
  transform: translate(-50%, -70%);
}
.helm-track-line,
.helm-projection-line {
  position: absolute;
  border-radius: 999px;
}
.helm-track-line-1 {
  left: 19%;
  top: 60%;
  width: 32%;
  height: 2px;
  background: linear-gradient(90deg, rgba(61, 199, 189, 0.12), rgba(61, 199, 189, 0.88));
  transform: rotate(-16deg);
}
.helm-track-line-2 {
  left: 45%;
  top: 42%;
  width: 24%;
  height: 2px;
  background: linear-gradient(90deg, rgba(61, 199, 189, 0.88), rgba(61, 199, 189, 0.16));
  transform: rotate(22deg);
}
.helm-ais-target {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(216, 173, 114, 0.2);
  border-radius: 50%;
  background: rgba(9, 13, 16, 0.54);
  color: #d8ad72;
  font-size: 0.7rem;
  font-weight: 800;
}
.helm-ais-target-1 { left: 28%; top: 31%; }
.helm-ais-target-2 { left: 66%; top: 52%; }
.helm-ais-target-3 { left: 71%; top: 20%; }
.helm-target-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0.85rem 0.9rem;
  border-top: 1px solid rgba(216, 173, 114, 0.1);
  background: rgba(8, 11, 13, 0.72);
}
.helm-target-list strong {
  font-size: 0.92rem;
}
.helm-weather-stage {
  background:
    radial-gradient(circle at 24% 22%, rgba(58, 103, 162, 0.26), transparent 10rem),
    radial-gradient(circle at 74% 62%, rgba(216, 173, 114, 0.18), transparent 12rem),
    linear-gradient(180deg, rgba(19, 29, 39, 0.96), rgba(10, 15, 21, 0.98));
}
.helm-weather-loop {
  position: absolute;
  inset: 0.85rem 0.9rem auto 0.9rem;
  display: flex;
  gap: 0.45rem;
}
.helm-weather-loop span {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.18rem 0.6rem;
  border: 1px solid rgba(216, 173, 114, 0.14);
  border-radius: 999px;
  background: rgba(9, 13, 16, 0.38);
  color: var(--muted);
  font-size: 0.78rem;
}
.helm-weather-loop .active {
  border-color: rgba(61, 199, 189, 0.26);
  color: #f6fbfc;
  background: rgba(61, 199, 189, 0.14);
}
.helm-route-projection {
  position: absolute;
  inset: 0;
}
.helm-projection-line-a {
  left: 21%;
  top: 64%;
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, rgba(216, 173, 114, 0.1), rgba(216, 173, 114, 0.92));
  transform: rotate(-20deg);
}
.helm-projection-line-b {
  left: 52%;
  top: 39%;
  width: 22%;
  height: 2px;
  background: linear-gradient(90deg, rgba(216, 173, 114, 0.92), rgba(216, 173, 114, 0.16));
  transform: rotate(11deg);
}
.helm-wind-arrow,
.helm-wave-band {
  position: absolute;
}
.helm-wind-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 2px solid rgba(61, 199, 189, 0.78);
  border-right: 2px solid rgba(61, 199, 189, 0.78);
}
.helm-wind-arrow-1 {
  left: 26%;
  top: 34%;
  width: 2.6rem;
  height: 2.6rem;
  transform: rotate(18deg);
}
.helm-wind-arrow-2 {
  left: 63%;
  top: 56%;
  width: 2rem;
  height: 2rem;
  transform: rotate(-24deg);
}
.helm-wave-band {
  border-top: 2px dashed rgba(132, 180, 232, 0.46);
  border-radius: 999px;
}
.helm-wave-band-1 {
  left: 14%;
  right: 14%;
  top: 72%;
}
.helm-wave-band-2 {
  left: 22%;
  right: 18%;
  top: 78%;
}
.helm-ticker-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid rgba(216, 173, 114, 0.1);
  background: rgba(216, 173, 114, 0.1);
}
.helm-ticker-row span {
  padding: 0.8rem 0.9rem;
  background: rgba(9, 13, 16, 0.92);
}
.helm-ticker-row strong {
  font-size: 0.98rem;
}
.my-boats-stage {
  position: relative;
  isolation: isolate;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: clamp(1rem, 2vw, 1.6rem);
  background:
    linear-gradient(180deg, rgba(8, 16, 24, 0.06), rgba(8, 16, 24, 0.38)),
    url("myboats-backdrop.png?v=20260527-high-sign") center / cover no-repeat;
}
.my-boats-stage::before {
  content: "";
  position: absolute;
  inset: auto -10% -18% -10%;
  height: 38%;
  z-index: -1;
  opacity: 0.38;
  background:
    repeating-radial-gradient(ellipse at 50% 100%, rgba(71, 216, 197, 0.22) 0 2px, transparent 3px 22px);
  animation: water-drift 9s ease-in-out infinite alternate;
}
.stage-copy {
  position: absolute;
  top: clamp(1rem, 2vw, 1.6rem);
  left: clamp(1rem, 2vw, 1.6rem);
  max-width: min(34rem, 45vw);
  z-index: 3;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.52);
}
.stage-copy h1 {
  font-size: clamp(2rem, 4vw, 4.4rem);
}
.stage-copy p {
  margin: 0.55rem 0 0;
}
.stage-actions {
  position: absolute;
  top: clamp(1rem, 2vw, 1.6rem);
  right: clamp(1rem, 2vw, 1.6rem);
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem;
  max-width: min(34rem, 46vw);
}
.boat-showcase {
  position: absolute;
  inset: clamp(16rem, 34vh, 19.5rem) clamp(1rem, 3vw, 3rem) clamp(0.5rem, 1vh, 0.8rem) clamp(1rem, 3vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 2vw, 1.3rem);
  overflow: visible;
  perspective: 1200px;
}
.garage-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(220, 238, 242, 0.36);
  border-radius: 999px;
  background: transparent;
  color: rgba(246, 252, 253, 0.76);
  text-decoration: none;
  font-size: 1.95rem;
  line-height: 1;
  transform: translateY(-50%);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.78);
  box-shadow: none;
  backdrop-filter: none;
  opacity: 0.72;
  transition: opacity 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.garage-arrow:hover {
  border-color: rgba(71, 216, 197, 0.72);
  color: #ffffff;
  opacity: 1;
  transform: translateY(-50%) scale(1.04);
}
.garage-arrow-left { left: clamp(0.4rem, 2vw, 1.5rem); }
.garage-arrow-right { right: clamp(0.4rem, 2vw, 1.5rem); }
.boat-showcase-card {
  display: none;
  flex: 0 0 clamp(120px, 12vw, 180px);
  height: 100%;
  min-height: 150px;
  opacity: 0.42;
  transform: translateY(2rem) scale(0.72) rotateY(14deg);
  transition: transform 220ms ease, opacity 220ms ease, flex-basis 220ms ease;
}
.boat-showcase-card.active {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: min(56vh, 580px);
  aspect-ratio: 1536 / 1024;
  min-height: 430px;
  opacity: 1;
  transform: scale(1) rotateY(0);
  animation: clipboard-arrive 460ms ease-out both, clipboard-idle 7s ease-in-out 520ms infinite;
}
.boat-showcase-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: #1d252b;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  transform: rotate(-0.8deg);
}
.boat-showcase-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("clipboard-job-sheet.png") center / contain no-repeat;
  filter: brightness(0.84) sepia(0.08) saturate(0.88);
  pointer-events: none;
}
.boat-showcase-link::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: -13%;
  height: 20%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.48), transparent 68%);
  filter: blur(8px);
  z-index: 0;
}
.job-sheet-page {
  position: absolute;
  inset: 0;
  display: block;
  overflow: visible;
  border-radius: 0;
  padding: 0;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  background: transparent;
  box-shadow: none;
  z-index: 1;
}
.job-sheet-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  border-bottom: 2px solid rgba(19, 75, 132, 0.35);
  padding-bottom: 0.34rem;
  color: #123764;
}
.job-sheet-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: clamp(0.68rem, 0.95vw, 0.82rem);
  font-weight: 700;
}
.job-sheet-brand::before {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  background: url("allaboard-dark-transparent.png") left center / auto 1.25rem no-repeat;
}
.job-sheet-title {
  font-size: clamp(0.68rem, 0.95vw, 0.84rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.boat-stage-image {
  position: absolute;
  left: 19.95%;
  top: 28.3%;
  width: 35.5%;
  height: 25.2%;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  clip-path: none;
  transform: none;
  transform-origin: center bottom;
}
.boat-stage-image.has-photo {
  justify-self: auto;
  align-self: auto;
  max-width: none;
  background: transparent;
  box-shadow: none;
}
.boat-stage-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center center !important;
}
.boat-stage-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, 0.16));
}
.boat-stage-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  background:
    linear-gradient(135deg, rgba(20, 162, 141, 0.24), rgba(8, 16, 24, 0.64)),
    radial-gradient(circle at 50% 56%, rgba(71, 216, 197, 0.25), transparent 30%),
    linear-gradient(180deg, #183744, #081018);
}
.boat-stage-empty::after {
  display: none;
}
.boat-stage-silhouette {
  position: relative;
  width: min(52%, 360px);
  aspect-ratio: 2.8 / 1;
  opacity: 0.7;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.32));
  animation: boat-float 5.5s ease-in-out infinite;
}
.boat-stage-silhouette::before,
.boat-stage-silhouette::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.boat-stage-silhouette::before {
  bottom: 28%;
  width: 74%;
  height: 28%;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(180deg, #27d9e5, #0477b6);
}
.boat-stage-silhouette::after {
  bottom: 48%;
  width: 46%;
  height: 70%;
  clip-path: polygon(48% 0, 92% 100%, 10% 100%);
  background: linear-gradient(180deg, #5bf6ff, #08a4c8);
}
.boat-photo-prompt {
  position: absolute;
  z-index: 1;
  bottom: clamp(1rem, 4vh, 2rem);
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  background: rgba(8, 16, 24, 0.35);
}
.boat-details-panel {
  position: absolute;
  left: 57.3%;
  top: 30.6%;
  width: 22.4%;
  height: 23.5%;
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 0.12rem;
  color: #162f45;
  font-size: clamp(0.52rem, 0.76vw, 0.63rem);
}
.boat-details-panel > span:first-child {
  display: none;
}
.boat-details-panel > span:not(:first-child) {
  display: grid;
  grid-template-columns: minmax(3rem, 37%) 1fr;
  align-items: baseline;
  gap: 0.35rem;
  min-height: 0.98rem;
  border-bottom: 1px solid rgba(34, 49, 62, 0.18);
}
.boat-details-panel em {
  color: #263b4b;
  font-size: 0.72em;
  font-style: normal;
  text-transform: uppercase;
}
.boat-details-panel strong {
  overflow: hidden;
  color: #132536;
  font-size: 1em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.job-sheet-notes {
  position: absolute;
  left: 57.55%;
  top: 62.2%;
  width: 22.2%;
  height: 24.2%;
  display: grid;
  align-content: start;
  gap: 0.12rem;
  color: #172b39;
  font-size: clamp(0.48rem, 0.74vw, 0.58rem);
}
.job-sheet-notes span {
  display: flex;
  align-items: center;
  gap: 0.36rem;
}
.job-sheet-notes strong {
  display: none;
}
.job-sheet-notes i {
  width: 0.72rem;
  height: 0.72rem;
  border: 1px solid rgba(34, 49, 62, 0.55);
  background:
    linear-gradient(135deg, transparent 45%, #123764 46% 56%, transparent 57%),
    linear-gradient(45deg, transparent 50%, #123764 51% 61%, transparent 62%);
}
.boat-stage-name {
  position: absolute;
  left: 20%;
  top: 62.2%;
  width: 35.3%;
  height: 24.2%;
  z-index: 1;
  display: grid;
  gap: 0.2rem;
  min-height: 0;
  border-top: 0;
  border-radius: 0;
  padding: 0.18rem 0.22rem;
  background: transparent;
  box-shadow: none;
}
.boat-stage-name::before {
  display: none;
}
.boat-stage-name .eyebrow {
  color: #5d6b70;
  font-weight: 700;
}
.boat-stage-name strong {
  overflow: hidden;
  font-size: clamp(1rem, 2.1vh, 1.35rem);
  font-weight: 700;
  line-height: 0.95;
  color: #1f2d33;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stage-stats {
  position: absolute;
  left: clamp(1rem, 2vw, 1.6rem);
  top: clamp(15rem, 32vh, 18rem);
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
  width: clamp(8rem, 12vw, 10rem);
}
.stage-stats div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.34rem 0.6rem;
  min-width: 0;
  background: rgba(22, 34, 44, 0.78);
  backdrop-filter: blur(10px);
}
.stage-stats span {
  color: var(--muted);
  font-size: 0.86rem;
}
.stage-stats strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.05;
}
.stage-quick-actions {
  position: absolute;
  left: clamp(1rem, 2vw, 1.6rem);
  bottom: clamp(1rem, 2vw, 1.6rem);
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.garage-command-menu {
  position: absolute;
  left: clamp(1rem, 2vw, 1.6rem);
  bottom: clamp(1rem, 2vw, 1.6rem);
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.28rem;
  width: clamp(8rem, 12vw, 10rem);
  transform: none;
}
.garage-command-menu a {
  display: grid;
  gap: 0.12rem;
  min-height: 2.52rem;
  align-content: center;
  border: 1px solid rgba(71, 216, 197, 0.28);
  border-radius: 8px;
  padding: 0.34rem 0.6rem;
  color: var(--ink);
  background: rgba(8, 16, 24, 0.66);
  text-decoration: none;
  backdrop-filter: blur(12px);
}
.garage-command-menu a:hover {
  border-color: var(--accent);
  background: rgba(20, 162, 141, 0.22);
}
.garage-command-menu span {
  color: white;
  font-weight: 800;
}
.garage-command-menu strong {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@keyframes boat-arrive {
  from { transform: translateY(18px) scale(0.94); opacity: 0.3; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes boat-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
@keyframes clipboard-arrive {
  from { transform: translateY(24px) rotate(-4deg) scale(0.94); opacity: 0.25; }
  to { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
}
@keyframes clipboard-idle {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -5px; rotate: 0.35deg; }
}
@keyframes water-drift {
  from { transform: translateX(-2%) translateY(0); }
  to { transform: translateX(2%) translateY(8px); }
}
.page-head, .detail-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
body:not(.my-boats-screen) .page-head,
body:not(.my-boats-screen) .detail-head {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(184, 130, 74, 0.12), transparent 42%),
    var(--panel-glass);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}
body:not(.my-boats-screen) .page-head::after,
body:not(.my-boats-screen) .detail-head::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(216, 173, 114, 0.72), transparent);
  opacity: 0.62;
}
h1 {
  margin: 0;
  font-size: clamp(1.75rem, 2.8vw, 2.55rem);
  line-height: 1.05;
  letter-spacing: 0;
}
h2 {
  font-size: 1.08rem;
  margin: 0 0 0.7rem;
  letter-spacing: 0;
}
p { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.metrics, .grid-two, .asset-grid {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}
.boat-home-grid {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 1.4rem;
}
.boat-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 380px);
  gap: 1rem;
  margin: 1rem 0 1.4rem;
  overflow-x: auto;
  padding: 0 0 0.35rem;
  scroll-snap-type: x mandatory;
}
.boat-select-card {
  scroll-snap-align: start;
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}
.boat-select-link {
  display: grid;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: white;
  text-decoration: none;
  background: #17212b;
}
.boat-select-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.62));
}
.boat-select-card.active .boat-select-link {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(20, 162, 141, 0.24);
}
.boat-visual {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}
.boat-visual-empty {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(20, 162, 141, 0.2), rgba(9, 26, 38, 0.86)),
    linear-gradient(180deg, #1d3442, #0f1820);
}
.boat-visual-empty span {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}
.boat-select-copy {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  gap: 0.2rem;
  padding: 1rem;
}
.boat-select-copy .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}
.boat-select-copy strong {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1;
}
.boat-select-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.selected-pill {
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  color: var(--accent-dark);
  font-weight: 800;
}
.boat-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 1rem;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}
.boat-summary-card h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  margin: 0.25rem 0;
}
.boat-summary-card p {
  margin: 0;
}
.boat-summary-card .task-row {
  grid-column: 1 / -1;
  margin-top: 0;
}
.boat-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(72px, 1fr));
  gap: 0.6rem;
  margin: 0;
}
.boat-card-stats div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
  min-width: 0;
}
.boat-card-stats dd {
  font-size: 1.65rem;
  font-weight: 800;
}
.section-head {
  margin-top: 1.4rem;
}
.metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metrics div, .grid-two > div, .asset-card, .auth-panel, .form-page {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}
body:not(.my-boats-screen) .metrics div,
body:not(.my-boats-screen) .grid-two > div,
body:not(.my-boats-screen) .asset-card,
body:not(.my-boats-screen) .auth-panel,
body:not(.my-boats-screen) .form-page,
body:not(.my-boats-screen) .guided-catalog,
body:not(.my-boats-screen) .advanced-filters,
body:not(.my-boats-screen) .empty-state,
body:not(.my-boats-screen) .catalog-filters,
body:not(.my-boats-screen) .area-card,
body:not(.my-boats-screen) .system-card,
body:not(.my-boats-screen) .systems-intro,
body:not(.my-boats-screen) .systems-work-card,
body:not(.my-boats-screen) .readiness-card {
  background: var(--panel-glass);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.16);
}
.metrics strong { display: block; font-size: 2rem; }
.metrics span { color: var(--muted); }
.grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.asset-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.asset-card img, .detail-head img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.detail-head img { max-width: 320px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
body:not(.my-boats-screen) table {
  background: var(--panel-glass);
}
th, td { text-align: left; padding: 0.65rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 700; font-size: 0.85rem; }
.totals { list-style: none; padding: 0; margin: 0; }
.totals li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 0.75rem 0; }
.facts, .asset-card dl { display: grid; grid-template-columns: 130px 1fr; gap: 0.4rem 0.8rem; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.form { display: grid; gap: 0.8rem; max-width: 760px; }
.form p { display: grid; gap: 0.35rem; margin: 0; color: var(--ink); }
.form fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 1rem;
  background: rgba(8, 16, 24, 0.22);
}
.form legend {
  padding: 0 0.35rem;
  color: var(--accent-dark);
  font-weight: 800;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.form small {
  color: var(--muted);
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.65rem;
  font: inherit;
  background: var(--panel);
  color: var(--ink);
}
body:not(.my-boats-screen) input,
body:not(.my-boats-screen) select,
body:not(.my-boats-screen) textarea {
  background: rgba(8, 16, 24, 0.52);
}
textarea { min-height: 120px; }
.profile-setup,
.guided-catalog,
.advanced-filters,
.empty-state {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}
.profile-setup {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.profile-form ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.profile-form li label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  background: var(--panel);
}
.profile-form input[type="radio"],
.profile-form input[type="checkbox"] {
  width: auto;
}
.area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
.area-card,
.system-card {
  display: grid;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  padding: 1rem;
}
.area-card strong {
  font-size: 2rem;
  line-height: 1;
}
.area-card span,
.system-card strong {
  font-weight: 800;
}
.area-card small,
.system-card span {
  color: var(--muted);
  line-height: 1.35;
}
.area-card:hover,
.area-card.active,
.system-card:hover,
.system-card.active,
.systems-work-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(12, 107, 88, 0.12);
}
.system-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}
.systems-hero-carousel {
  position: relative;
  margin: 0.65rem -0.25rem 1.4rem;
  padding: 0.3rem 3.4rem 0.75rem;
  overflow: hidden;
}
.systems-hero-carousel::before,
.systems-hero-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 3.25rem;
  pointer-events: none;
}
.systems-hero-carousel::before {
  left: 0;
  background: linear-gradient(90deg, #121518 12%, rgba(18, 21, 24, 0));
}
.systems-hero-carousel::after {
  right: 0;
  background: linear-gradient(270deg, #121518 12%, rgba(18, 21, 24, 0));
}
.systems-hero-rail {
  display: flex;
  grid-template-columns: none;
  gap: 1rem;
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.5rem 0.2rem 1.05rem;
  scroll-behavior: smooth;
  scroll-padding-inline: 0.2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(184, 130, 74, 0.7) rgba(236, 229, 211, 0.1);
}
.systems-hero-rail::-webkit-scrollbar {
  height: 0.62rem;
}
.systems-hero-rail::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(236, 229, 211, 0.1);
}
.systems-hero-rail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(184, 130, 74, 0.7);
}
.systems-carousel-button {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 3.8rem;
  border: 1px solid rgba(232, 219, 194, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(35, 38, 38, 0.94), rgba(20, 23, 24, 0.96));
  color: #ead8b8;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 16px 32px rgba(0, 0, 0, 0.34);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.systems-carousel-button:hover {
  border-color: rgba(216, 173, 114, 0.78);
  background:
    linear-gradient(180deg, rgba(65, 53, 38, 0.98), rgba(31, 28, 24, 0.98));
  transform: translateY(-50%) scale(1.04);
}
.systems-carousel-button:disabled {
  cursor: default;
  opacity: 0.35;
  transform: translateY(-50%);
}
.systems-carousel-button-prev {
  left: 0.28rem;
}
.systems-carousel-button-next {
  right: 0.28rem;
}
.systems-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.2fr);
  gap: 1rem;
  align-items: stretch;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(20, 162, 141, 0.18), transparent 48%),
    var(--panel);
}
.systems-intro-copy {
  display: grid;
  align-content: center;
}
.systems-intro-copy h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.3rem);
  margin: 0;
}
.systems-intro-copy p:last-child {
  margin-bottom: 0;
}
.systems-readiness-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}
.readiness-card {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  border: 1px solid rgba(71, 216, 197, 0.24);
  border-radius: 8px;
  padding: 0.8rem;
  background: rgba(8, 16, 24, 0.52);
}
.readiness-card span,
.systems-work-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}
.readiness-card strong {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1;
}
.readiness-card small {
  color: var(--muted);
  line-height: 1.3;
}
.section-title-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin: 1.2rem 0 0.7rem;
}
.section-title-row h2,
.section-title-row p {
  margin: 0;
}
.section-title-row > p {
  max-width: 34rem;
  text-align: right;
}
.systems-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
.systems-work-card {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  min-height: 10.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  color: var(--ink);
  background: var(--panel);
  text-decoration: none;
}
.systems-work-card strong {
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  line-height: 1.05;
}
.systems-work-card small {
  color: var(--muted);
  line-height: 1.4;
}
.systems-work-card em {
  align-self: end;
  margin-top: 0.4rem;
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 800;
}
.system-overview-card {
  position: relative;
  flex: 0 0 clamp(21rem, 46vw, 34rem);
  min-height: 9.6rem;
  overflow: hidden;
  border-color: rgba(170, 144, 105, 0.46);
  background:
    linear-gradient(180deg, rgba(238, 232, 220, 0.98), rgba(218, 205, 184, 0.96)),
    #e3d6bf;
  color: #1f2528;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 -1px 0 rgba(80, 56, 36, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.23);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
  scroll-snap-align: center;
  animation: systems-card-slide-in 420ms ease both;
}
body:not(.my-boats-screen) .system-overview-card {
  border-color: rgba(170, 144, 105, 0.46);
  background:
    linear-gradient(180deg, rgba(238, 232, 220, 0.98), rgba(218, 205, 184, 0.96)),
    #e3d6bf;
  color: #1f2528;
}
.system-overview-card:nth-child(2) { animation-delay: 45ms; }
.system-overview-card:nth-child(3) { animation-delay: 90ms; }
.system-overview-card:nth-child(4) { animation-delay: 135ms; }
.system-overview-card:nth-child(5) { animation-delay: 180ms; }
.system-overview-card:nth-child(6) { animation-delay: 225ms; }
.system-overview-card:nth-child(7) { animation-delay: 270ms; }
@keyframes systems-card-slide-in {
  from {
    opacity: 0;
    transform: translateX(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
.system-overview-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.34rem;
  background: #5f6e73;
}
.system-overview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent 18% 82%, rgba(66, 44, 28, 0.05)),
    repeating-linear-gradient(0deg, rgba(49, 42, 34, 0.025) 0 1px, transparent 1px 8px);
  pointer-events: none;
}
.system-overview-card:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 130, 74, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    0 22px 46px rgba(0, 0, 0, 0.3);
}
.system-overview-card > * {
  position: relative;
  z-index: 1;
}
.system-overview-card .system-card-icon {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  min-width: 3.35rem;
  height: 2.15rem;
  border: 1px solid rgba(42, 51, 55, 0.18);
  border-radius: 4px;
  padding: 0 0.52rem;
  background: rgba(255, 252, 245, 0.42);
  color: #273035;
  font-family: "Aptos", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 5px 12px rgba(0, 0, 0, 0.12);
}
body:not(.my-boats-screen) .system-overview-card .system-card-icon {
  background: rgba(255, 252, 245, 0.42);
  color: #273035;
}
.system-overview-card strong {
  color: #1d2529;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.08;
  font-weight: 800;
  padding-right: 3.4rem;
}
.system-overview-card .system-card-children {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}
.system-overview-card .system-card-children b {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  border: 1px solid rgba(23, 33, 42, 0.14);
  border-radius: 4px;
  padding: 0.28rem 0.48rem;
  background: rgba(255, 252, 245, 0.38);
  color: #263034;
  font-size: 0.76rem;
  line-height: 1;
}
.system-card-propulsion::before { background: #9a5a3f; }
.system-card-tankage::before { background: #4f7b84; }
.system-card-instrumentation-data::before { background: #566f91; }
.system-card-power-electrical-pumps::before { background: #a98242; }
.system-card-exterior::before { background: #61794f; }
.system-card-interior-domestic::before { background: #806848; }
.system-card-safety::before { background: #9f5b4b; }
.system-card-propulsion .system-card-icon {
  border-color: rgba(154, 90, 63, 0.28);
  background: rgba(154, 90, 63, 0.12);
}
body:not(.my-boats-screen) .system-card-propulsion .system-card-icon {
  background: rgba(154, 90, 63, 0.12);
}
.system-card-tankage .system-card-icon {
  border-color: rgba(79, 123, 132, 0.3);
  background: rgba(79, 123, 132, 0.13);
}
body:not(.my-boats-screen) .system-card-tankage .system-card-icon {
  background: rgba(79, 123, 132, 0.13);
}
.system-card-instrumentation-data .system-card-icon {
  border-color: rgba(86, 111, 145, 0.3);
  background: rgba(86, 111, 145, 0.13);
}
body:not(.my-boats-screen) .system-card-instrumentation-data .system-card-icon {
  background: rgba(86, 111, 145, 0.13);
}
.system-card-power-electrical-pumps .system-card-icon {
  border-color: rgba(169, 130, 66, 0.32);
  background: rgba(169, 130, 66, 0.14);
}
body:not(.my-boats-screen) .system-card-power-electrical-pumps .system-card-icon {
  background: rgba(169, 130, 66, 0.14);
}
.system-card-exterior .system-card-icon {
  border-color: rgba(97, 121, 79, 0.3);
  background: rgba(97, 121, 79, 0.13);
}
body:not(.my-boats-screen) .system-card-exterior .system-card-icon {
  background: rgba(97, 121, 79, 0.13);
}
.system-card-interior-domestic .system-card-icon {
  border-color: rgba(128, 104, 72, 0.3);
  background: rgba(128, 104, 72, 0.13);
}
body:not(.my-boats-screen) .system-card-interior-domestic .system-card-icon {
  background: rgba(128, 104, 72, 0.13);
}
.system-card-safety .system-card-icon {
  border-color: rgba(159, 91, 75, 0.3);
  background: rgba(159, 91, 75, 0.13);
}
body:not(.my-boats-screen) .system-card-safety .system-card-icon {
  background: rgba(159, 91, 75, 0.13);
}
.systems-command-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0.9rem 0 1.2rem;
  border: 1px solid rgba(170, 144, 105, 0.3);
  border-radius: 8px;
  padding: 0.65rem;
  background:
    linear-gradient(180deg, rgba(34, 36, 35, 0.94), rgba(21, 24, 24, 0.94));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}
.systems-command-strip > span {
  flex: 0 0 auto;
  color: #d7c6a9;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.systems-command-strip > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}
.systems-command-link {
  display: inline-grid;
  gap: 0.08rem;
  min-width: 9.2rem;
  border: 1px solid rgba(232, 219, 194, 0.16);
  border-radius: 7px;
  padding: 0.48rem 0.62rem;
  background: rgba(232, 219, 194, 0.07);
  color: #f1eadb;
  text-decoration: none;
}
.systems-command-link:hover {
  border-color: rgba(216, 173, 114, 0.66);
  background: rgba(184, 130, 74, 0.17);
}
.systems-command-link strong {
  font-size: 0.94rem;
  font-weight: 780;
}
.systems-command-link small {
  color: rgba(241, 234, 219, 0.64);
  font-size: 0.74rem;
}
.systems-browse-section .section-title-row {
  align-items: center;
  border-bottom: 1px solid rgba(170, 144, 105, 0.26);
  padding-bottom: 0.5rem;
}
.systems-browse-section .section-title-row h2 {
  color: #f1eadb;
  font-size: 1.22rem;
  font-weight: 760;
}
.task-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}
.task-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  color: var(--accent-dark);
  background: var(--panel);
  text-decoration: none;
}
.advanced-filters {
  margin: 1rem 0;
}
.advanced-filters summary {
  cursor: pointer;
  font-weight: 800;
}
.empty-state {
  margin: 0;
}
.empty-state h2 {
  margin-bottom: 0.35rem;
}
.search-bar { display: grid; grid-template-columns: 1fr auto; gap: 0.7rem; margin: 1rem 0; }
.catalog-filters {
  display: grid;
  gap: 0.9rem;
  margin: 1rem 0;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.family-row { padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.filter-block h2 {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
}
.filter-chip:hover,
.filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.catalog-filters a.filter-chip {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
}
.catalog-filters a.filter-chip:hover,
.catalog-filters a.filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.search-select { display: grid; gap: 0.35rem; }
.search-select select { min-height: 2.6rem; }
.muted { color: var(--muted); }
.message { padding: 0.7rem 0.9rem; border-radius: 6px; background: #eef6f3; color: var(--accent-dark); }
.message.warning { background: #fff2ed; color: var(--warn); }
.empty { color: var(--muted); margin: 0; }
.eyebrow {
  color: #d8ad72;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.74rem;
  font-weight: 780;
  margin: 0 0 0.3rem;
}
.log-row { border-bottom: 1px solid var(--line); padding: 0.75rem 0; }

@media (max-width: 760px) {
  .topbar {
    position: sticky;
    top: 0;
    z-index: 80;
    display: flex;
    min-height: 68px;
    padding: 0.5rem 0.8rem;
  }
  .page-head, .detail-head { display: block; }
  .primary-nav {
    position: fixed;
    inset: 68px 0 auto;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 0;
    padding: 0.75rem 0.8rem 0.9rem;
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-bottom: 1px solid var(--line);
    background:
      linear-gradient(180deg, rgba(22, 34, 44, 0.98), rgba(8, 16, 24, 0.96));
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.44);
    transform: translateY(calc(-100% - 68px));
    transition: transform 190ms ease;
  }
  .primary-nav a,
  .primary-nav button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 2.7rem;
    text-align: left;
  }
  .primary-nav form {
    margin: 0;
  }
  .nav-toggle-button {
    display: grid;
  }
  .nav-toggle:checked ~ .nav-toggle-button span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav-toggle:checked ~ .nav-toggle-button span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked ~ .nav-toggle-button span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  .nav-toggle:checked ~ .primary-nav {
    transform: translateY(0);
  }
  .actions { margin-top: 0.75rem; }
  .brand img { width: min(54vw, 185px); }
  .boat-carousel { grid-auto-columns: minmax(240px, 82vw); }
  .metrics, .grid-two, .area-grid, .profile-setup, .boat-summary-card, .boat-card-stats, .form-grid, .systems-intro, .systems-work-grid, .helm-target-list, .helm-ticker-row, .helm-instrument-grid { grid-template-columns: 1fr; }
  .systems-readiness-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .helm-screen .shell {
    height: auto;
    min-height: 0;
  }
  .helm-frame {
    aspect-ratio: auto;
    min-height: 0;
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .helm-panel {
    min-height: 18rem;
  }
  .helm-panel-status {
    justify-content: start;
  }
  .helm-autopilot-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .systems-hero-carousel {
    margin-inline: -0.85rem;
    padding-inline: 2.55rem;
  }
  .systems-hero-carousel::before,
  .systems-hero-carousel::after {
    width: 2.35rem;
  }
  .systems-hero-rail {
    gap: 0.75rem;
    padding-bottom: 0.85rem;
  }
  .system-overview-card {
    flex-basis: min(82vw, 26rem);
    min-height: 13rem;
  }
  .system-overview-card strong {
    font-size: clamp(1.45rem, 7vw, 2.05rem);
  }
  .systems-carousel-button {
    width: 2.25rem;
    height: 3.5rem;
    font-size: 1.85rem;
  }
  .section-title-row {
    display: grid;
    align-items: start;
  }
  .section-title-row > p {
    max-width: none;
    text-align: left;
  }
  .search-bar { grid-template-columns: 1fr; }
  .my-boats-screen .topbar {
    position: fixed;
    inset: 0 0 auto;
    display: flex;
    min-height: 64px;
    padding: 0.45rem 0.8rem;
    border-bottom: 0;
    background: linear-gradient(180deg, rgba(8, 16, 24, 0.42), transparent);
    backdrop-filter: none;
  }
  .my-boats-screen .brand {
    width: 2.75rem;
    height: 2.75rem;
    visibility: hidden;
  }
  .my-boats-screen .primary-nav {
    inset: 64px 0 auto;
  }
  .my-boats-screen .shell {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
  }
  .my-boats-stage {
    padding: 0.85rem;
    background:
      linear-gradient(180deg, rgba(8, 16, 24, 0.04), rgba(8, 16, 24, 0.2)),
      url("myboats-backdrop-mobile.png?v=20260602") center 40% / auto 240% no-repeat;
  }
  .my-boats-stage::before {
    opacity: 0.22;
  }
  .stage-copy {
    top: auto;
    bottom: auto;
    top: 0.7rem;
    left: 1rem;
    max-width: calc(100% - 10rem);
    z-index: 82;
  }
  .stage-copy h1 {
    font-size: clamp(1.75rem, 7vw, 2.2rem);
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.72);
  }
  .stage-copy p {
    display: none;
  }
  .stage-actions {
    left: auto;
    right: 4.7rem;
    top: auto;
    bottom: auto;
    top: 0.55rem;
    max-width: 7.8rem;
    justify-content: flex-end;
    z-index: 82;
  }
  .stage-actions .button {
    min-height: 2.55rem;
    padding: 0.55rem 0.75rem;
    white-space: nowrap;
  }
  .stage-actions .button:nth-child(n+2) {
    display: none;
  }
  .boat-showcase {
    inset: auto 0 calc(11.55rem + env(safe-area-inset-bottom, 0px));
    height: clamp(17.4rem, 43vh, 22.5rem);
    align-items: end;
    padding-top: 0;
    touch-action: pan-y;
  }
  .garage-arrow {
    width: 2.7rem;
    height: 4.2rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(246, 252, 253, 0.68);
    font-size: 2.25rem;
    opacity: 0.58;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.9);
  }
  .garage-arrow:hover {
    color: rgba(246, 252, 253, 0.92);
    opacity: 0.82;
    transform: translateY(-50%);
  }
  .garage-arrow-left {
    left: 0.35rem;
  }
  .garage-arrow-right {
    right: 0.35rem;
  }
  .boat-showcase-card {
    display: none;
  }
  .boat-showcase-card.active {
    display: block;
    width: min(126vw, 500px);
    height: auto;
    min-height: 0;
    aspect-ratio: 1536 / 1024;
  }
  .boat-showcase-link {
    transform: rotate(-0.35deg);
  }
  .boat-showcase-link::after {
    bottom: -11%;
    height: 16%;
  }
  .boat-stage-name strong {
    font-size: clamp(1.05rem, 3.1vh, 1.45rem);
  }
  .boat-stage-image {
    left: 18.2%;
    top: 27%;
    width: 63.6%;
    height: 42%;
    border: 1px solid rgba(30, 45, 56, 0.24);
    background: rgba(245, 242, 232, 0.92);
  }
  .boat-stage-name {
    left: 18.2%;
    top: 72.4%;
    width: 63.6%;
    height: 16%;
    align-content: start;
    justify-items: center;
    text-align: center;
  }
  .job-sheet-page {
    display: block;
    padding: 0;
    gap: 0;
  }
  .job-sheet-page::before {
    content: "";
    position: absolute;
    left: 17.1%;
    top: 17.2%;
    width: 65.8%;
    height: 70.4%;
    z-index: 1;
    border: 1px solid rgba(30, 45, 56, 0.22);
    border-radius: 2px;
    background:
      linear-gradient(180deg, rgba(247, 244, 235, 0.98), rgba(236, 232, 220, 0.98));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
  }
  .boat-stage-image.has-photo {
    justify-self: auto;
  }
  .boat-stage-photo {
    max-height: none;
  }
  .boat-stage-image,
  .boat-stage-name {
    z-index: 2;
  }
  .job-sheet-brand {
    font-size: 0.72rem;
  }
  .job-sheet-title {
    font-size: 0.74rem;
  }
  .boat-details-panel,
  .job-sheet-notes {
    display: none;
  }
  .boat-stage-name .eyebrow {
    font-size: 0.5rem;
    letter-spacing: 0.08em;
    margin: 0;
  }
  .boat-stage-name strong {
    max-width: 100%;
    font-size: clamp(1.2rem, 5vw, 1.7rem);
    line-height: 1.05;
    text-align: center;
  }
  .stage-stats {
    left: 1rem;
    right: 1rem;
    top: auto;
    bottom: calc(8.05rem + env(safe-area-inset-bottom, 0px));
    width: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.36rem;
  }
  .stage-stats div {
    min-height: 3.1rem;
    padding: 0.4rem 0.55rem;
    border-color: rgba(71, 216, 197, 0.24);
    background: rgba(8, 16, 24, 0.72);
  }
  .stage-stats span { font-size: 0.78rem; }
  .stage-stats strong { font-size: 1.15rem; }
  .garage-command-menu {
    left: 50%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    bottom: calc(0.8rem + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 1.4rem);
    gap: 0.35rem;
    transform: translateX(-50%);
  }
  .garage-command-menu a {
    display: grid;
    place-items: center;
    min-height: 3.05rem;
    padding: 0.42rem 0.45rem;
    text-align: center;
    border-color: rgba(71, 216, 197, 0.36);
    background: rgba(8, 16, 24, 0.78);
  }
  .garage-command-menu span {
    font-size: 0.82rem;
    line-height: 1.05;
  }
  .garage-command-menu strong {
    display: none;
  }
  .my-boats-screen .my-boats-return {
    display: none;
  }
  .table-wrap {
    overflow: visible;
  }
  .table-wrap table,
  .table-wrap thead,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap th,
  .table-wrap td {
    display: block;
  }
  .table-wrap thead {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .table-wrap tbody {
    display: grid;
    gap: 0.75rem;
  }
  .table-wrap tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.7rem;
    background: var(--panel-glass);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  }
  .table-wrap td {
    display: grid;
    grid-template-columns: minmax(5.8rem, 34%) 1fr;
    gap: 0.65rem;
    align-items: start;
    min-height: 2.1rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(48, 66, 80, 0.72);
    overflow-wrap: anywhere;
  }
  .table-wrap td:last-child {
    border-bottom: 0;
  }
  .table-wrap td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
  }
  .table-wrap td[colspan] {
    display: block;
  }
  .table-wrap td[colspan]::before {
    display: none;
  }
  .facts,
  .asset-card dl {
    grid-template-columns: minmax(5.8rem, 34%) 1fr;
  }
}

@media (max-width: 420px) {
  .brand img { width: 136px; }
  .stage-copy {
    top: 0.76rem;
    max-width: calc(100% - 9rem);
  }
  .stage-copy h1 {
    font-size: 2rem;
  }
  .boat-showcase {
    inset: auto 0 calc(11.55rem + env(safe-area-inset-bottom, 0px));
    height: clamp(17.4rem, 43vh, 22.5rem);
    padding-top: 0;
  }
  .boat-showcase-card.active {
    width: min(126vw, 500px);
    height: auto;
  }
  .stage-stats {
    left: 0.65rem;
    right: 0.65rem;
    bottom: calc(7.75rem + env(safe-area-inset-bottom, 0px));
  }
  .stage-actions {
    top: 0.58rem;
    right: 4.55rem;
  }
  .stage-actions .button {
    min-height: 2.35rem;
    padding: 0.45rem 0.65rem;
  }
  .garage-command-menu {
    width: calc(100% - 0.8rem);
    gap: 0.25rem;
  }
  .garage-command-menu a {
    min-height: 2.95rem;
  }
  .garage-command-menu span {
    font-size: 0.75rem;
  }
}

@media (max-width: 760px) and (max-height: 720px) {
  .my-boats-stage {
    background-position: center 45%;
    background-size: auto 255%;
  }
  .stage-copy h1 {
    font-size: 1.7rem;
  }
  .stage-actions .button {
    min-height: 2.25rem;
    padding: 0.42rem 0.62rem;
  }
  .boat-showcase {
    bottom: calc(10.6rem + env(safe-area-inset-bottom, 0px));
    height: clamp(11.25rem, 36vh, 13rem);
  }
  .stage-stats {
    bottom: calc(6.85rem + env(safe-area-inset-bottom, 0px));
  }
  .stage-stats div {
    min-height: 2.65rem;
    padding: 0.32rem 0.45rem;
  }
  .stage-stats span {
    font-size: 0.7rem;
  }
  .stage-stats strong {
    font-size: 1rem;
  }
  .garage-command-menu a {
    min-height: 2.62rem;
    padding: 0.32rem 0.34rem;
  }
  .garage-command-menu span {
    font-size: 0.72rem;
  }
}
