:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #687589;
  --line: #e2edf7;
  --surface: #ffffff;
  --soft: #f7fbff;
  --soft-2: #e7f7ff;
  --green: #28b8ec;
  --green-dark: #0879b4;
  --orange: #f3ad32;
  --yellow: #f6bd3f;
  --blue: #1aaee8;
  --cyan: #2fc0f3;
  --red: #cf3e52;
  --brown: #69778b;
  --shadow: 0 18px 44px rgba(22, 89, 140, 0.09);
  --shadow-soft: 0 10px 26px rgba(22, 89, 140, 0.06);
  --ring: 0 0 0 3px rgba(47, 192, 243, 0.18);
  --mountain-hero: url("assets/hero/ravitoplus-mountain-banner.png?v=20260530-4");
  --trail-hero: url("assets/hero/ravitoplus-trail-hero.jpg?v=20260530-8");
  --bike-swim-hero: url("assets/hero/ravitoplus-bike-swim-banner.png?v=20260530-1");
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 16% 0%, rgba(47, 192, 243, 0.18), rgba(255, 255, 255, 0) 34rem),
    linear-gradient(180deg, #fbfdff 0, #f7fbff 360px, #ffffff 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

.app-loader {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  padding: 72px 22px 34px;
  background:
    radial-gradient(circle at 50% 37%, rgba(255, 255, 255, 0.98) 0 8rem, rgba(255, 255, 255, 0) 17rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 253, 255, 0.99) 55%, rgba(231, 247, 255, 0.98) 100%),
    var(--soft);
  opacity: 1;
  transition: opacity 0.42s ease, visibility 0.42s ease;
}

.app-loader::before,
.app-loader::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.app-loader::before {
  right: -12%;
  bottom: -7%;
  left: -12%;
  height: 31vh;
  min-height: 190px;
  background:
    linear-gradient(135deg, transparent 0 26%, rgba(99, 188, 232, 0.22) 26.2% 38%, transparent 38.2%),
    linear-gradient(45deg, transparent 0 36%, rgba(39, 159, 221, 0.12) 36.2% 48%, transparent 48.2%),
    linear-gradient(180deg, rgba(226, 247, 255, 0) 0%, rgba(198, 235, 250, 0.8) 100%);
  clip-path: polygon(0 70%, 12% 52%, 22% 64%, 34% 31%, 47% 59%, 58% 25%, 70% 55%, 82% 35%, 100% 67%, 100% 100%, 0 100%);
  opacity: 0.75;
}

.app-loader::after {
  right: 18%;
  bottom: 2.5%;
  width: min(42vw, 330px);
  height: 7vh;
  min-height: 44px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(44, 181, 234, 0.2), rgba(44, 181, 234, 0));
  transform: rotate(-6deg);
  filter: blur(1px);
}

.app-loader.is-done {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.app-loader-wave {
  position: absolute;
  top: 24%;
  left: 50%;
  width: min(1180px, 150vw);
  height: min(260px, 34vh);
  opacity: 0.95;
  transform: translateX(-50%);
}

.app-loader-wave svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.app-loader-wave path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.app-loader-wave-shadow {
  stroke: rgba(26, 174, 232, 0.14);
  stroke-width: 17;
  filter: blur(12px);
}

.app-loader-wave-line {
  stroke: var(--blue);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 930;
  stroke-dashoffset: 930;
  filter: drop-shadow(0 8px 15px rgba(26, 174, 232, 0.22));
  animation: app-loader-wave-draw 2.9s ease-in-out infinite;
}

.app-loader-stage {
  --loader-size: min(54vw, 214px);
  position: relative;
  display: grid;
  width: var(--loader-size);
  height: var(--loader-size);
  place-items: center;
  z-index: 2;
}

.app-loader-stage::before,
.app-loader-stage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.app-loader-stage::before {
  inset: 8%;
  border: 1px solid rgba(24, 126, 188, 0.16);
}

.app-loader-stage::after {
  inset: 24%;
  border: 1px solid rgba(14, 165, 233, 0.2);
  animation: app-loader-pulse 1.7s ease-in-out infinite;
}

.app-loader-orbit {
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  background:
    conic-gradient(from 18deg, rgba(26, 174, 232, 0) 0deg, rgba(26, 174, 232, 0) 205deg, rgba(26, 174, 232, 0.18) 244deg, rgba(26, 174, 232, 0.95) 312deg, rgba(26, 174, 232, 0) 352deg);
  box-shadow: inset 0 0 0 1px rgba(26, 174, 232, 0.12);
  animation: app-loader-spin 2.4s linear infinite;
}

.app-loader-orbit::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.96);
}

.app-loader-orbit::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #12b5f5;
  box-shadow: 0 0 0 6px rgba(18, 181, 245, 0.13), 0 8px 22px rgba(18, 181, 245, 0.46);
  transform: translateX(-50%);
}

.app-loader-sport {
  display: grid;
  gap: 5px;
  place-items: center;
  min-width: 0;
  width: 100%;
  color: rgba(23, 32, 51, 0.5);
  text-align: center;
}

.app-loader-sport svg {
  display: block;
  width: 22px;
  height: 22px;
}

.app-loader-sport small {
  color: rgba(8, 121, 180, 0.52);
  max-width: 100%;
  font-size: clamp(0.43rem, 1.7vw, 0.5rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-loader-core {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(29vw, 116px);
  height: min(29vw, 116px);
  place-items: center;
  border: 1px solid rgba(47, 192, 243, 0.2);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 24px 54px rgba(22, 89, 140, 0.13);
  animation: app-loader-core 1.55s ease-in-out infinite;
}

.app-loader-core img {
  display: block;
  width: 80%;
  height: 80%;
  border-radius: 999px;
  object-fit: cover;
}

.app-loader-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2px;
  text-align: center;
}

.app-loader-copy strong {
  color: var(--ink);
  font-size: clamp(1rem, 4vw, 1.18rem);
  font-weight: 950;
}

.app-loader-copy span {
  color: var(--blue);
  font-size: clamp(0.92rem, 3.6vw, 1.05rem);
  font-weight: 950;
}

.app-loader-progress {
  position: relative;
  z-index: 2;
  width: 54px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(26, 174, 232, 0.12);
}

.app-loader-progress::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  border-radius: inherit;
  background: var(--blue);
  animation: app-loader-progress 1.15s ease-in-out infinite;
}

.app-loader-sports {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: clamp(8px, 2.4vw, 18px);
  width: min(100%, 440px);
  margin-top: 8px;
}

.app-loader-brand {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 4px;
  margin-top: auto;
  color: rgba(8, 121, 180, 0.42);
  text-align: center;
  text-transform: uppercase;
}

.app-loader-brand strong {
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.42em;
}

.app-loader-brand small {
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.app-loader-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

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

@keyframes app-loader-wave-draw {
  0% {
    opacity: 0.15;
    stroke-dashoffset: 930;
    transform: translateX(-34px);
  }

  46% {
    opacity: 1;
    stroke-dashoffset: 0;
  }

  100% {
    opacity: 0.32;
    stroke-dashoffset: -930;
    transform: translateX(34px);
  }
}

@keyframes app-loader-core {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.045);
  }
}

@keyframes app-loader-progress {
  0% {
    transform: translateX(-115%);
  }

  55%,
  100% {
    transform: translateX(260%);
  }
}

@keyframes app-loader-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-loader-orbit,
  .app-loader-core,
  .app-loader-stage::after,
  .app-loader-wave-line,
  .app-loader-progress::before {
    animation: none;
  }
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px 30px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(226, 237, 247, 0.92);
  box-shadow: 0 6px 22px rgba(22, 89, 140, 0.04);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 1px solid rgba(47, 192, 243, 0.18);
  border-radius: 999px;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(22, 89, 140, 0.08);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: #111827;
  font-size: 1.06rem;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 0.8rem;
}

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

.topnav a {
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
  text-decoration: none;
}

.topnav a:hover {
  background: #eef9ff;
  color: var(--green-dark);
}

.topnav a.is-active {
  background: #e4f7ff;
  color: var(--blue-dark);
}

.app {
  width: min(1460px, calc(100% - 44px));
  margin: 22px auto 48px;
}

.dashboard-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: 22px;
  align-items: end;
  min-height: 250px;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 28px;
  border: 1px solid rgba(226, 237, 247, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.84) 34%, rgba(255, 255, 255, 0.2) 72%),
    linear-gradient(180deg, rgba(8, 121, 180, 0.02), rgba(8, 121, 180, 0.1)),
    var(--mountain-hero) center right / cover no-repeat;
  box-shadow: 0 24px 60px rgba(22, 89, 140, 0.12);
}

.dashboard-hero::before,
.dashboard-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.dashboard-hero::before {
  inset: 0;
  background:
    radial-gradient(circle at 14% 24%, rgba(47, 192, 243, 0.16), rgba(47, 192, 243, 0) 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, 0.26));
}

.dashboard-hero::after {
  right: -76px;
  bottom: -92px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 50%;
  background: rgba(47, 192, 243, 0.1);
}

.dashboard-hero-copy,
.dashboard-hero-card,
.dashboard-hero-mascot {
  position: relative;
  z-index: 1;
}

.dashboard-hero-mascot {
  position: absolute;
  top: 12px;
  right: clamp(300px, 25vw, 390px);
  width: clamp(68px, 7vw, 116px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(20, 67, 113, 0.18));
  pointer-events: none;
}

.dashboard-hero-copy {
  display: grid;
  max-width: 680px;
  gap: 10px;
}

.personal-greeting {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  margin: 0 0 2px;
  padding: 7px 11px;
  border: 1px solid rgba(47, 192, 243, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 880;
  box-shadow: 0 12px 26px rgba(22, 89, 140, 0.1);
}

.personal-greeting::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(47, 192, 243, 0.16);
}

.dashboard-hero-copy h1 {
  max-width: 720px;
  margin: 0;
  color: #111827;
  font-size: clamp(2rem, 4.2vw, 4.6rem);
  line-height: 0.96;
}

.dashboard-hero-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: #536173;
  font-size: 1.02rem;
  font-weight: 670;
}

.dashboard-hero-card {
  display: grid;
  gap: 6px;
  justify-self: end;
  width: min(100%, 280px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 22px 44px rgba(22, 89, 140, 0.14);
  backdrop-filter: blur(16px);
}

.dashboard-hero-card span,
.dashboard-hero-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboard-hero-card strong {
  color: var(--blue);
  font-size: 2.35rem;
  line-height: 1;
}

.dashboard-hero-card small {
  text-transform: none;
}

.summary-strip {
  position: relative;
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
  margin-bottom: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.summary-strip.has-credits {
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(190px, 0.78fr);
}

.summary-strip > div {
  position: relative;
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
}

.summary-strip span {
  display: block;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.summary-strip strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #121826;
  font-size: 1.32rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-intake {
  position: relative;
  z-index: 2;
}

.summary-help-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 5px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.summary-help-trigger strong {
  margin: 0;
  min-width: 0;
}

.summary-help-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 0;
  border-radius: 999px;
  background: #e3f7ff;
  color: transparent;
  font-size: 0;
  line-height: 0;
  letter-spacing: 0;
  text-transform: none;
}

.summary-help-icon::before {
  content: "?";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(1px);
}

.summary-help-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 14px;
  z-index: 80;
  width: min(360px, calc(100vw - 48px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 46px rgba(22, 89, 140, 0.14);
}

.summary-help-popover strong {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 0.95rem;
}

.summary-help-popover p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.5;
}

.summary-credit {
  display: grid;
  grid-template-columns: auto minmax(42px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.summary-credit span,
.summary-credit strong {
  margin: 0;
}

.summary-credit small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-credit a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e5f7ff;
  color: var(--green-dark);
  font-size: 0.74rem;
  font-weight: 900;
  text-decoration: none;
}

.summary-credit.is-empty strong {
  color: var(--red);
}

.summary-credit.is-stale strong {
  color: var(--orange);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(340px, 390px) minmax(0, 1fr) minmax(300px, 370px);
  gap: 16px;
  align-items: start;
}

body.planner-focus-timeline .workspace,
body.planner-focus-products .workspace {
  grid-template-columns: minmax(0, 1fr);
  width: min(1120px, 100%);
  margin-inline: auto;
}

body.planner-focus-timeline .input-panel,
body.planner-focus-timeline .plan-panel,
body.planner-focus-products .input-panel,
body.planner-focus-products .visual-panel {
  display: none;
}

body.planner-focus-timeline .visual-panel,
body.planner-focus-products .plan-panel {
  position: static;
  grid-column: 1;
}

.input-panel,
.visual-panel,
.plan-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.input-panel,
.plan-panel {
  position: sticky;
  top: 92px;
  padding: 20px;
}

.visual-panel {
  padding: 20px;
}

.plan-beta-body.plan-beta-input-only .summary-strip,
.plan-beta-body.plan-beta-input-only .visual-panel,
.plan-beta-body.plan-beta-input-only .plan-panel {
  display: none;
}

.plan-beta-body.plan-beta-input-only .beta-workspace {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.plan-beta-body.plan-beta-input-only .input-panel {
  position: static;
}

.plan-beta-body.plan-beta-results .dashboard-hero,
.plan-beta-body.plan-beta-results .input-panel {
  display: none;
}

.plan-beta-body.plan-beta-results .beta-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 370px);
}

.plan-beta-body .beta-question-item:not(.beta-question-active) {
  display: none !important;
}

.beta-question-progress {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
}

.beta-question-progress span {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.beta-question-progress strong {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 950;
}

.beta-question-progress p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.45;
}

.beta-question-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.plan-beta-body .beta-question-submit {
  display: none;
}

.plan-beta-body.beta-question-final .beta-question-submit {
  display: inline-flex;
  width: 100%;
}

.plan-beta-body.beta-question-final .beta-question-actions {
  justify-content: flex-start;
}

.beta-final-review {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(47, 192, 243, 0.28);
  border-radius: 8px;
  background: #eaf9ff;
}

.beta-final-review h2,
.beta-final-review p {
  margin: 0;
}

.beta-edit-inputs {
  width: 100%;
}

.panel-heading {
  margin-bottom: 18px;
}

.panel-heading.horizontal {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

h1,
h2 {
  margin-bottom: 0;
  color: #151c2b;
  font-size: 1.58rem;
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.preset-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 16px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3faff;
}

.preset {
  min-height: 38px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

.preset.active {
  background: linear-gradient(135deg, #1eb9ef, #0f91d4);
  color: #fff;
  box-shadow: 0 8px 18px rgba(47, 192, 243, 0.18);
}

.planner-form {
  display: grid;
  gap: 12px;
}

.planner-form label {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 780;
}

.product-choice,
.flavor-choice,
.multisport-panel {
  margin: 2px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.product-choice legend,
.flavor-choice legend,
.multisport-panel legend {
  padding: 0 4px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.multisport-panel[hidden] {
  display: none;
}

.multisport-help {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.42;
}

.multisport-grid {
  display: grid;
  gap: 10px;
}

.multisport-segment {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #d7e4f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.multisport-segment-title {
  display: grid;
  gap: 2px;
}

.multisport-discipline-field {
  grid-column: 1 / -1;
}

.multisport-discipline-field select {
  min-height: 48px;
  color: var(--ink);
  font-weight: 850;
}

.multisport-segment-title {
  align-self: center;
  grid-column: 1 / -1;
  min-width: 0;
  padding-bottom: 2px;
}

.segment-title-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
}

.sport-segment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  order: -1;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid #b9e7f8;
  border-radius: 7px;
  background: #edfaff;
  color: var(--blue-dark);
}

.sport-segment-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.multisport-segment-title strong {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.2;
}

.multisport-segment-title span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
}

.multisport-segment-title > span:last-child {
  display: block;
  margin: 3px 0 0 36px;
}

.multisport-segment label {
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.multisport-segment input {
  min-width: 0;
  min-height: 48px;
  padding: 0 46px 0 12px;
  font-size: 0.92rem;
  font-weight: 850;
}

.multisport-segment label:has(em) input {
  padding-right: 46px;
}

.multisport-segment label em {
  right: 12px;
  bottom: 13px;
}

.multisport-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.multisport-total span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.multisport-total strong {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 950;
}

.flavor-grid {
  display: grid;
  gap: 8px;
}

.flavor-grid label {
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.flavor-grid select {
  min-width: 0;
  height: 36px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 760;
}

.flavor-grid select[multiple] {
  height: auto;
  min-height: 92px;
  padding: 7px 10px;
  line-height: 1.35;
}

.flavor-grid select[multiple] option {
  padding: 3px 0;
}

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

.choice-grid label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.16;
  cursor: pointer;
}

.choice-grid input {
  position: relative;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid #bdd6eb;
  border-radius: 6px;
  appearance: none;
  background: #fff;
}

.choice-grid input::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 7px;
  height: 13px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  opacity: 0;
  transform: rotate(45deg);
}

.choice-grid input:checked {
  border-color: var(--blue);
  background: var(--blue);
}

.choice-grid input:checked::after {
  opacity: 1;
}

.choice-grid input:focus-visible {
  outline: var(--ring);
  outline-offset: 2px;
}

.choice-grid label:has(input:checked) {
  border-color: rgba(47, 192, 243, 0.5);
  background: #effaff;
}

.ta-gummy-mode {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
}

.ta-gummy-mode select {
  width: 100%;
  min-height: 44px;
}

.brand-mix-settings {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.brand-mix-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px;
  border: 1px solid #d7e4f2;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.brand-mix-toggle input {
  position: relative;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 0;
  border: 2px solid #bdd6eb;
  border-radius: 999px;
  appearance: none;
  background: #fff;
}

.brand-mix-toggle input::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: var(--blue);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.brand-mix-toggle input:checked {
  border-color: var(--blue);
}

.brand-mix-toggle input:checked::after {
  opacity: 1;
  transform: scale(1);
}

.brand-mix-toggle span {
  display: grid;
  gap: 2px;
}

.brand-mix-toggle strong {
  font-size: 0.84rem;
  font-weight: 900;
}

.brand-mix-toggle small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 720;
  line-height: 1.35;
}

.brand-mix-grid {
  display: grid;
  gap: 8px;
}

.brand-mix-grid[hidden] {
  display: none;
}

.brand-mix-control {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 9px 10px;
  border: 1px solid #d7e4f2;
  border-radius: 8px;
  background: #f8fcff;
}

.brand-mix-control span {
  display: grid;
  gap: 2px;
}

.brand-mix-control-copy {
  grid-template-columns: minmax(0, 1fr);
}

.brand-mix-control strong {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
}

.brand-mix-control small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 720;
  line-height: 1.3;
}

.brand-mix-control select {
  min-height: 38px;
  padding: 0 28px 0 10px;
  font-size: 0.78rem;
  font-weight: 820;
}

.planner-form input,
.planner-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #d4e3f2;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.sport-select-shell {
  position: relative;
  display: block;
}

.sport-select-shell select {
  padding-right: 54px;
}

.sport-icon-preview {
  position: absolute;
  right: 12px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #111;
  pointer-events: none;
}

.sport-icon-preview svg {
  display: block;
  width: 100%;
  height: 100%;
}

.planner-form input[readonly] {
  background: #f5faff;
  color: var(--muted);
  cursor: help;
}

.field-label-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.field-info,
.effort-help-trigger {
  appearance: none;
  display: inline-grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid #bfe9fb;
  border-radius: 999px;
  background: #e7f7ff;
  color: var(--blue-dark);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(34, 168, 224, 0.12);
  cursor: pointer;
  touch-action: manipulation;
}

.field-info[aria-expanded="true"],
.effort-help-trigger:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.field-info:focus-visible,
.effort-help-trigger:focus-visible {
  outline: var(--ring);
  outline-offset: 2px;
}

.field-help-popover {
  display: grid;
  gap: 5px;
  margin-top: -2px;
  padding: 11px 12px;
  border: 1px solid #bfe9fb;
  border-radius: 8px;
  background: #effaff;
  box-shadow: 0 14px 32px rgba(22, 89, 140, 0.11);
}

.field-help-popover[hidden] {
  display: none;
}

.field-help-popover strong {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.field-help-popover p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 730;
  line-height: 1.42;
}

.field-help-popover a {
  width: fit-content;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.race-search {
  position: relative;
  display: grid;
  gap: 10px;
}

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

.race-mode {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d4e3f2;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.race-mode.active {
  border-color: rgba(47, 192, 243, 0.54);
  background: #eaf9ff;
  color: var(--green-dark);
}

.race-search-results {
  position: absolute;
  z-index: 20;
  top: 76px;
  left: 0;
  right: 0;
  display: grid;
  max-height: 318px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(22, 89, 140, 0.13);
}

.race-search-results[hidden] {
  display: none;
}

.race-search-option {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 0;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.race-search-option strong,
.race-search-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.race-search-option strong {
  font-size: 0.9rem;
  font-weight: 900;
}

.race-search-option span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.race-search-option:hover,
.race-search-option.is-active {
  background: #effaff;
}

.race-search-option.is-external {
  border-left: 3px solid var(--blue);
}

.race-search-empty {
  margin: 0;
  padding: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.race-search-status {
  margin: 0;
  padding: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.race-search-status a {
  color: var(--blue);
  font-weight: 900;
}

.race-search-status.is-error {
  color: #b42318;
}

.planner-form .choice-grid input {
  flex: 0 0 22px;
  width: 22px;
  min-width: 22px;
  max-width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
}

.planner-form .brand-mix-toggle input {
  flex: 0 0 22px;
  width: 22px;
  min-width: 22px;
  max-width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
}

.planner-form input:focus,
.planner-form select:focus {
  border-color: var(--blue);
  box-shadow: var(--ring);
}

.planner-form label em {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  pointer-events: none;
}

.planner-form label:has(em) input {
  padding-right: 42px;
}

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

.single-field-grid {
  grid-template-columns: 1fr;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  margin-top: 4px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #28b8ec, #1596d7);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(47, 192, 243, 0.24);
}

.primary-action:hover {
  filter: saturate(1.05) brightness(0.98);
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.68;
}

.primary-action[aria-busy="true"] {
  cursor: wait;
}

.action-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 900;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(1500px, calc(100% - 40px));
  margin: -20px auto 34px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 720;
}

.site-footer span,
.site-footer a,
.site-footer button {
  font: inherit;
}

.site-footer > * + *::before {
  content: "-";
  margin-right: 10px;
  color: var(--muted);
  font-weight: 720;
  text-decoration: none;
}

.site-footer a,
.footer-contact-button {
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.footer-contact-button:hover {
  color: var(--blue);
}

.contact-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: min(86vh, 820px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 28px 88px rgba(28, 86, 153, 0.2);
}

.contact-dialog::backdrop {
  background: rgba(16, 32, 51, 0.34);
  backdrop-filter: blur(6px);
}

.credit-dialog {
  width: min(440px, calc(100% - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 28px 88px rgba(28, 86, 153, 0.2);
}

.credit-dialog::backdrop {
  background: rgba(16, 32, 51, 0.34);
  backdrop-filter: blur(6px);
}

.effort-help-dialog {
  width: min(460px, calc(100% - 28px));
  padding: 0;
  border: 1px solid #9bc5ff;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 88px rgba(16, 32, 51, 0.24);
}

.effort-help-dialog::backdrop {
  background: rgba(16, 32, 51, 0.2);
  backdrop-filter: blur(3px);
}

.effort-help-body {
  position: relative;
  display: grid;
  gap: 11px;
  max-height: min(86vh, 980px);
  overflow: auto;
  padding: 18px 18px 20px;
}

.effort-help-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f3f6fa;
  font-weight: 900;
}

.effort-help-heading {
  padding-right: 44px;
}

.effort-help-heading .eyebrow {
  margin-bottom: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
}

.effort-help-heading h2 {
  max-width: 270px;
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.16;
}

.effort-coach-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 16px;
  align-items: center;
  padding-right: 44px;
}

.effort-help-copy {
  min-width: 0;
}

.effort-coach-bubbles {
  display: grid;
  gap: 7px;
  width: 100%;
}

.effort-coach-bubbles p {
  width: 100%;
  max-width: 280px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 720;
  line-height: 1.35;
  box-shadow: 0 10px 26px rgba(28, 86, 153, 0.08);
}

.effort-coach-face {
  display: block;
  width: 108px !important;
  max-width: 108px !important;
  height: 108px !important;
  border: 3px solid #dff2fb;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 16px 32px rgba(16, 32, 51, 0.16);
}

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

.effort-zone-card {
  display: grid;
  gap: 8px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.effort-zone-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.effort-zone-title strong {
  display: inline-flex;
  min-width: 64px;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 9px;
  font-size: 0.86rem;
  font-weight: 950;
}

.effort-zone-title h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.2;
}

.effort-zone-card p,
.effort-coach-tip p {
  margin: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.38;
}

.effort-zone-low {
  border-color: #b9e7cc;
  background: linear-gradient(135deg, #f3fff7, #fff);
}

.effort-zone-low .effort-zone-title strong {
  background: #d7f5e0;
  color: #13763a;
}

.effort-zone-tempo {
  border-color: #f6d695;
  background: linear-gradient(135deg, #fff9ed, #fff);
}

.effort-zone-tempo .effort-zone-title strong {
  background: #ffecbd;
  color: #98620a;
}

.effort-zone-high {
  border-color: #ffc3c3;
  background: linear-gradient(135deg, #fff3f3, #fff);
}

.effort-zone-high .effort-zone-title strong {
  background: #ffd7d7;
  color: #c72525;
}

.effort-coach-tip {
  display: grid;
  gap: 6px;
  padding: 12px 13px;
  border: 1px solid #cde8fb;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff9ff, #fff);
}

.effort-coach-tip strong {
  color: var(--blue-dark);
  font-size: 0.86rem;
  font-weight: 950;
}

.credit-dialog-body {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.credit-dialog-body h2,
.credit-dialog-body p {
  margin: 0;
}

.credit-dialog-body p:not(.eyebrow) {
  color: var(--muted);
}

.credit-dialog-balance {
  display: inline-flex;
  width: fit-content;
  padding: 8px 11px;
  border: 1px solid rgba(47, 192, 243, 0.28);
  border-radius: 999px;
  background: #eaf9ff;
  color: var(--green-dark) !important;
  font-size: 0.86rem;
  font-weight: 900;
}

.credit-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.credit-dialog-actions .primary-action,
.credit-dialog-actions .secondary-action {
  min-height: 42px;
  margin-top: 0;
}

.contact-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
}

.dialog-close {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
}

.dialog-close:hover {
  color: var(--ink);
  background: var(--soft);
}

.contact-dialog-body {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1.2fr);
  gap: 18px;
  max-height: calc(86vh - 94px);
  overflow: auto;
  padding: 20px 22px 22px;
}

.contact-details p {
  margin: 0 0 16px;
  color: var(--muted);
}

.contact-details dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.contact-details dl div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.contact-details dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.contact-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 760;
}

.contact-details a {
  color: var(--green-dark);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 780;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d4e3f2;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: var(--ring);
}

.contact-honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
}

.contact-status.success {
  color: var(--green-dark);
}

.contact-status.error {
  color: var(--red);
}

.contact-status a {
  color: inherit;
  font-weight: 850;
}

.route-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.route-meta span {
  padding: 7px 9px;
  border-radius: 999px;
  background: #eaf9ff;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.route-visual {
  position: relative;
  overflow: visible;
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(47, 192, 243, 0.14), rgba(255, 255, 255, 0) 54%),
    linear-gradient(180deg, #fbfdff, #eef9ff);
}

.route-visual[hidden],
.axis[hidden] {
  display: none;
}

.route-visual svg {
  display: block;
  width: 100%;
  height: 330px;
}

.route-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.course-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 10px 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.course-match[hidden] {
  display: none;
}

.course-match strong,
.course-match span {
  display: block;
}

.course-match strong {
  font-size: 0.93rem;
}

.course-match span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.course-match a {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, #28b8ec, #1596d7);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 850;
  text-decoration: none;
}

.route-map-card {
  display: grid;
  gap: 12px;
  margin: 12px 0 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.route-map-card[hidden] {
  display: none;
}

.route-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.route-map-head h3,
.route-map-head p,
.route-map-note {
  margin: 0;
}

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

.route-map-actions a,
.map-toggle {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.route-map-actions a {
  color: var(--blue);
}

.map-toggle.active {
  border-color: rgba(47, 192, 243, 0.48);
  background: #eaf9ff;
  color: var(--blue);
}

.route-map {
  position: relative;
  height: clamp(260px, 38vw, 430px);
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 192, 243, 0.14), rgba(14, 165, 233, 0.08)),
    #edf9ff;
}

.route-map-note {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 740;
}

.gpx-import-field {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.gpx-import-field input {
  width: 100%;
  padding: 8px;
  border: 1px dashed rgba(47, 192, 243, 0.55);
  border-radius: 8px;
  background: #f6fcff;
  font: inherit;
}

.gpx-import-field small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.route-nutrition-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(47, 192, 243, 0.28);
  border-radius: 8px;
  background: #f0fbff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.route-nutrition-progress input {
  min-width: 150px;
  flex: 1;
  accent-color: var(--blue);
}

.route-nutrition-timeline {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 1px 7px;
  scrollbar-color: rgba(47, 192, 243, 0.7) transparent;
}

.route-nutrition-stop {
  display: grid;
  min-width: 118px;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.route-nutrition-stop strong { font-size: 0.78rem; }
.route-nutrition-stop span { color: var(--muted); font-size: 0.72rem; font-weight: 750; }
.route-nutrition-stop.is-official { border-color: rgba(250, 170, 34, 0.5); background: #fffaf0; }

.nutrition-map-marker {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #0ea5e9;
  box-shadow: 0 5px 13px rgba(15, 77, 119, 0.3);
  font-size: 17px;
}

.nutrition-map-marker.official { background: #f59e0b; }
.nutrition-map-marker.runner { background: #11684e; }

.route-map .leaflet-control-attribution {
  font-size: 10px;
}

.route-map .leaflet-tile-pane {
  filter: saturate(1.08) contrast(1.04);
}

.route-map .leaflet-interactive {
  outline: none;
}

.race-map-label {
  padding: 3px 7px;
  border: 1px solid rgba(47, 192, 243, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 850;
  box-shadow: 0 8px 16px rgba(22, 89, 140, 0.1);
}

.marker {
  position: absolute;
  display: grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  z-index: 3;
}

.marker:hover,
.marker:focus,
.marker:focus-within {
  z-index: 30;
}

.marker-dot {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(22, 89, 140, 0.18);
}

.marker:focus-visible .marker-dot {
  outline: 3px solid rgba(47, 192, 243, 0.42);
  outline-offset: 3px;
}

.marker.drink .marker-dot {
  width: 12px;
  height: 12px;
  border-width: 2px;
  background: var(--blue);
  color: transparent;
}

.marker.gel .marker-dot {
  background: var(--yellow);
}

.marker.antioxidant .marker-dot {
  background: #8b5fbf;
}

.marker.bar .marker-dot {
  background: var(--brown);
}

.marker.electrolyte .marker-dot {
  background: var(--blue);
}

.marker-label {
  position: absolute;
  top: calc(-28px - var(--label-row, 0) * 22px);
  left: 50%;
  max-width: 110px;
  padding: 3px 7px;
  border: 1px solid rgba(47, 192, 243, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 850;
  text-align: center;
  transform: translateX(-50%);
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(22, 89, 140, 0.08);
}

.marker.drink .marker-label {
  display: none;
}

.product-tooltip {
  position: absolute;
  bottom: calc(100% + 13px + var(--label-row, 0) * 22px);
  left: 50%;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  width: 268px;
  max-width: min(72vw, 268px);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(47, 192, 243, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  text-align: left;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 8px) scale(0.98);
  transform-origin: bottom center;
  transition: opacity 0.16s ease, transform 0.16s ease;
  box-shadow: 0 18px 38px rgba(22, 89, 140, 0.13);
}

.product-tooltip::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-right: 1px solid rgba(47, 192, 243, 0.22);
  border-bottom: 1px solid rgba(47, 192, 243, 0.22);
  background: rgba(255, 255, 255, 0.98);
  transform: translateX(-50%) rotate(45deg);
}

.product-tooltip img {
  width: 58px;
  height: 58px;
  border-radius: 7px;
  background: var(--soft);
  object-fit: contain;
}

.product-tooltip-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.product-tooltip-copy strong {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.1;
}

.product-tooltip-copy span,
.product-tooltip-copy small,
.product-tooltip-copy em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 760;
  line-height: 1.25;
}

.product-tooltip-copy small {
  color: var(--green-dark);
  font-weight: 900;
}

.marker:hover .product-tooltip,
.marker:focus .product-tooltip,
.marker:focus-within .product-tooltip {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.marker.edge-left .product-tooltip {
  left: -8px;
  transform: translate(0, 8px) scale(0.98);
  transform-origin: bottom left;
}

.marker.edge-left .product-tooltip::after {
  left: 20px;
  transform: rotate(45deg);
}

.marker.edge-left:hover .product-tooltip,
.marker.edge-left:focus .product-tooltip,
.marker.edge-left:focus-within .product-tooltip {
  transform: translate(0, 0) scale(1);
}

.marker.edge-right .product-tooltip {
  right: -8px;
  left: auto;
  transform: translate(0, 8px) scale(0.98);
  transform-origin: bottom right;
}

.marker.edge-right .product-tooltip::after {
  right: 20px;
  left: auto;
  transform: rotate(45deg);
}

.marker.edge-right:hover .product-tooltip,
.marker.edge-right:focus .product-tooltip,
.marker.edge-right:focus-within .product-tooltip {
  transform: translate(0, 0) scale(1);
}

.axis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0 18px;
}

.axis span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.axis span:not(:first-child) {
  text-align: center;
}

.axis span:last-child {
  text-align: right;
}

.plan-summary-details {
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.plan-summary-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
}

.plan-summary-details > summary::-webkit-details-marker {
  display: none;
}

.plan-summary-details > summary > span:first-child {
  display: grid;
  gap: 2px;
}

.plan-summary-details > summary small {
  color: var(--blue-dark);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan-summary-details > summary strong {
  color: var(--ink);
  font-size: 1rem;
}

.plan-summary-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.plan-summary-count::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.plan-summary-details[open] .plan-summary-count::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

.plan-summary-details[open] > summary {
  border-bottom: 1px solid var(--line);
  background: #f8fcff;
}

.plan-summary-hydration {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 14px 0;
  background: #fff;
}

.plan-summary-hydration[hidden] {
  display: none;
}

.plan-summary-sodium {
  padding-top: 10px;
}

.plan-summary-sodium > div {
  background: #fffaf1;
}

.plan-summary-hydration > div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfe;
}

.plan-summary-hydration small,
.plan-summary-hydration strong {
  display: block;
}

.plan-summary-hydration small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.plan-summary-hydration strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.96rem;
}

@media (max-width: 620px) {
  .plan-summary-hydration {
    grid-template-columns: 1fr;
  }
}

.timing-table-card {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.table-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.table-heading h3 {
  margin: 2px 0 0;
  font-size: 1.05rem;
}

.table-heading > span {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: #e7f7ff;
  color: var(--green-dark);
  font-size: 0.74rem;
  font-weight: 900;
}

.timing-table-wrap {
  max-height: 330px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.timing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.78rem;
}

.timing-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 9px 10px;
  background: #f4fbff;
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.timing-table td {
  padding: 10px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  vertical-align: top;
}

.timing-table time,
.timing-table td > strong,
.table-product strong {
  color: var(--ink);
  font-weight: 900;
}

.timing-table small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 740;
  line-height: 1.25;
}

.table-product {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 150px;
}

.table-product-image {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(22, 89, 140, 0.08);
}

.table-product-image img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.digestion-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 27px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.digestion-badge i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
}

.digestion-badge.low {
  background: #e7f7ff;
  color: var(--green-dark);
}

.digestion-badge.medium {
  background: #fff1df;
  color: #b95b12;
}

.digestion-badge.high {
  background: #fde9e7;
  color: #b8322c;
}

.digestion-badge.transition {
  background: #e7f7ff;
  color: #087caf;
}

.timing-transition-row td {
  background: #f4fbff;
  border-color: rgba(26, 174, 232, 0.28);
}

.timing-empty td {
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.energy-panel {
  display: grid;
  grid-template-columns: minmax(170px, 240px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.energy-panel svg {
  display: block;
  width: 100%;
  min-height: 150px;
}

.course-analysis-card {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(47, 192, 243, 0.22);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(22, 89, 140, 0.08);
}

.analysis-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.analysis-tabs span {
  position: relative;
  padding: 4px 8px 11px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 920;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
}

.analysis-tabs span.active {
  color: var(--blue-dark);
}

.analysis-tabs span.active::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--blue), #2fc0f3);
}

.analysis-banner {
  min-height: 130px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(23, 139, 215, 0.94) 0%, rgba(47, 192, 243, 0.62) 54%, rgba(255, 255, 255, 0.1) 100%),
    var(--mountain-hero) center right / cover no-repeat;
  color: #fff;
}

.analysis-banner > div {
  display: grid;
  align-content: end;
  min-height: 130px;
  padding: 18px;
}

.analysis-banner .eyebrow {
  margin: 0 0 5px;
  color: rgba(255, 255, 255, 0.82);
}

.analysis-banner h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  line-height: 1.05;
}

.analysis-banner span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 820;
}

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

.analysis-metrics > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon value";
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  min-height: 76px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 251, 255, 0.78);
}

.analysis-icon {
  grid-area: icon;
  align-self: center;
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #fff;
}

.analysis-icon::before {
  content: "";
  display: block;
  width: 12px;
  height: 18px;
  border-radius: 999px;
  background: currentColor;
}

.analysis-icon.carbs {
  color: #f3ad32;
}

.analysis-icon.hydration {
  color: #2a8fea;
}

.analysis-icon.hydration::before {
  width: 15px;
  height: 18px;
  border-radius: 70% 70% 70% 70% / 88% 88% 55% 55%;
  transform: rotate(45deg);
}

.analysis-icon.sodium {
  color: #25b7e7;
}

.analysis-icon.sodium::before {
  width: 12px;
  height: 18px;
  border: 3px solid currentColor;
  background: transparent;
}

.analysis-metrics small {
  grid-area: label;
  min-width: 0;
  color: var(--muted);
  font-size: clamp(0.68rem, 1.05vw, 0.78rem);
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.analysis-metrics strong {
  grid-area: value;
  min-width: 0;
  color: var(--ink);
  font-size: clamp(1.32rem, 2.2vw, 2.02rem);
  font-weight: 940;
  line-height: 1.02;
  white-space: nowrap;
}

.analysis-chart-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), #fff);
}

.analysis-chart-wrap svg {
  display: block;
  width: 100%;
  min-height: 220px;
}

.stock-card {
  padding: 17px;
  border-radius: 8px;
  background: linear-gradient(135deg, #172033, #0f91d4);
  color: #fff;
}

.stock-card span,
.stock-card small {
  display: block;
}

.stock-card span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stock-card strong {
  display: block;
  margin: 4px 0 6px;
  font-size: 2rem;
  line-height: 1;
}

.stock-card small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
}

.nutrition-notes-card {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(47, 192, 243, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(231, 247, 255, 0.82), rgba(255, 255, 255, 0.96));
  box-shadow: var(--shadow-soft);
}

.nutrition-notes-card[hidden] {
  display: none;
}

.nutrition-notes-card .eyebrow {
  margin: 0;
  color: var(--green-dark);
}

.nutrition-notes-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nutrition-notes-card li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.35;
}

.nutrition-notes-card li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--blue);
}

.cart-panel {
  display: grid;
  gap: 8px;
  margin: 14px 0 16px;
}

.cart-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #28b8ec, #1596d7);
  color: #fff;
  font: inherit;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(47, 192, 243, 0.22);
}

.cart-action:hover {
  filter: saturate(1.05) brightness(0.98);
}

.cart-action[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}

.cart-action:disabled,
.secondary-action:disabled,
.secondary-action[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
  text-decoration: none;
}

.cart-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.cart-sheet {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.cart-sheet[hidden] {
  display: none;
}

.cart-sheet-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cart-sheet-heading div {
  display: grid;
  gap: 2px;
}

.cart-sheet-heading strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.cart-sheet-heading span,
.cart-sheet-actions small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.cart-step-label {
  padding: 6px 9px;
  border-radius: 999px;
  background: #e7f7ff;
  color: var(--green-dark) !important;
  white-space: nowrap;
}

.cart-sheet-heading a,
.cart-add-link,
.cart-product-link,
.cart-final-link,
.cart-sheet-actions button {
  min-height: 30px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.cart-lines {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cart-line {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-line img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.cart-line div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.cart-line strong,
.cart-line span {
  overflow-wrap: anywhere;
}

.cart-line strong {
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.2;
}

.cart-line span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 720;
}

.cart-add-link {
  border-color: var(--orange);
  background: linear-gradient(135deg, #28b8ec, #1596d7);
  color: #fff;
}

button.cart-add-link {
  justify-content: center;
  width: 100%;
  cursor: pointer;
}

.cart-add-link:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.cart-sheet-actions {
  display: grid;
  gap: 6px;
}

.cart-sheet-actions strong {
  color: var(--green-dark);
  font-size: 0.8rem;
  line-height: 1.35;
}

.cart-final-link {
  justify-self: start;
  border-color: var(--green);
  background: #e7f7ff;
  color: var(--green-dark);
}

.cart-sheet-actions button {
  justify-self: start;
  cursor: pointer;
}

.cart-share-body {
  background:
    radial-gradient(circle at 18% 0%, rgba(47, 192, 243, 0.18), rgba(255, 255, 255, 0) 30rem),
    linear-gradient(180deg, #f7fbff 0, #ffffff 58%, #f7fbff 100%);
}

.cart-share-shell {
  display: grid;
  min-height: calc(100vh - 82px);
  place-items: start center;
  padding: 48px 16px;
}

.cart-share-panel {
  display: grid;
  gap: 16px;
  width: min(760px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 74px rgba(22, 89, 140, 0.12);
}

.cart-share-panel h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1;
}

.cart-share-panel p {
  margin: 0;
  color: var(--muted);
  font-weight: 730;
  line-height: 1.55;
}

.cart-share-brand-group {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.cart-share-list {
  display: grid;
  gap: 10px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.cart-share-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.cart-share-list div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cart-share-list strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.2;
}

.cart-share-list span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.cart-share-list a,
.cart-share-actions .secondary-action {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.cart-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cart-share-actions .primary-action,
.cart-share-actions .secondary-action {
  width: auto;
  min-height: 44px;
}

.cart-share-status {
  color: var(--green-dark) !important;
  font-size: 0.86rem;
}

.schedule-list {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  max-height: 560px;
  margin: 0;
  padding: 0 2px 0 0;
  overflow: auto;
  list-style: none;
}

.schedule-list li.plan-item {
  display: grid;
  grid-template-columns: 54px 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.plan-empty {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 0.88rem;
}

.schedule-list time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 7px;
  background: #eaf9ff;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.plan-product-image {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  background: #eefaff;
}

.plan-product-image img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.nutrition-guidance-item {
  border-color: rgba(47, 192, 243, 0.32) !important;
  background: #f7fcff !important;
}

.transition-plan-item {
  border-color: rgba(26, 174, 232, 0.42) !important;
  background: #f1faff !important;
}

.plan-guidance-image {
  border: 1px solid rgba(47, 192, 243, 0.2);
}

.plan-item-copy {
  min-width: 0;
}

.schedule-list strong,
.schedule-list span,
.plan-link {
  display: block;
}

.schedule-list strong {
  overflow-wrap: anywhere;
  font-size: 0.92rem;
  line-height: 1.16;
}

.schedule-list span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
}

.plan-role {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-role i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 999px;
  vertical-align: 1px;
}

.plan-link {
  width: fit-content;
  margin-top: 6px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.plan-link:hover {
  text-decoration: underline;
}

.demo-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.field-note,
.save-status {
  margin: -4px 0 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
}

.save-status.success {
  color: var(--green-dark);
}

.save-status.error {
  color: var(--red);
}

@font-face {
  font-display: swap;
  font-family: "Maurten Brand";
  font-style: normal;
  font-weight: 700;
  src: url("assets/brands/maurten-sans-bold.woff2") format("woff2");
}

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

.plan-brand-logo {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 46px;
  margin-bottom: 10px;
}

.plan-brand-logo .brand-logo-card {
  flex: 0 1 auto;
  width: min(190px, 100%);
  min-width: 118px;
  height: 46px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(22, 89, 140, 0.08);
}

.plan-brand-logo.brand-naak .brand-logo-card {
  height: 56px;
}

.plan-brand-logo.brand-naak .brand-logo-img {
  width: 162px;
  height: 54px;
}

.plan-brand-logo.brand-mix {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand-mix-logo-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.plan-brand-logo .brand-mix-logo-card {
  width: 74px;
  min-width: 74px;
  height: 42px;
  padding: 5px 7px;
}

.plan-brand-logo .brand-mix-logo-card .brand-logo-img {
  max-width: 62px;
  max-height: 32px;
}

.brand-mix-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #bfe9fb;
  border-radius: 999px;
  background: #effaff;
  color: var(--blue-dark);
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.brand-choice-label {
  align-items: center;
  overflow: hidden;
  min-height: 68px;
  padding: 8px;
}

.brand-choice-label input {
  position: absolute;
  width: 1px;
  min-width: 1px;
  max-width: 1px;
  height: 1px;
  min-height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.brand-choice-label:has(input:focus-visible) {
  outline: var(--ring);
  outline-offset: 2px;
}

.brand-choice-label:has(input:checked) {
  border-color: rgba(47, 192, 243, 0.56);
  background: #effaff;
  box-shadow: inset 0 0 0 1px rgba(47, 192, 243, 0.1);
}

.brand-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  height: 50px;
  padding: 7px 12px;
  border-radius: 6px;
  background: #fff;
}

.brand-logo-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 30px;
  object-fit: contain;
  object-position: center center;
}

.brand-overstims .brand-logo-img {
  max-width: 138px;
  max-height: 36px;
}

.brand-andros .brand-logo-img {
  max-height: 39px;
}

.brand-ta .brand-logo-card {
  background: #fff;
}

.brand-ta .brand-logo-img {
  max-width: 72px;
  max-height: 32px;
  filter: brightness(0);
}

.brand-meltonic .brand-logo-img {
  max-width: 118px;
  max-height: 41px;
}

.brand-naak .brand-logo-card {
  height: 58px;
  overflow: hidden;
}

.brand-naak .brand-logo-img {
  width: 172px;
  height: 58px;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center center;
}

.brand-maurten .brand-logo-card {
  background: #fff;
}

.brand-maurten-wordmark {
  color: #050505;
  font-family: "Maurten Brand", Arial, sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.brand-decathlon .brand-logo-img {
  max-height: 29px;
}

.brand-baouw .brand-logo-img {
  max-height: 43px;
}

.brand-nutripure .brand-logo-img {
  max-height: 28px;
}

.form-secondary-action,
.cart-secondary-action {
  width: 100%;
  margin-top: 0;
}

.story-secondary-action {
  border-color: rgba(47, 192, 243, 0.38);
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(231,247,255,0.96));
  color: var(--green-dark);
}

.story-preview-dialog {
  width: min(520px, calc(100vw - 24px));
  max-height: min(92vh, 860px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 45, 76, 0.28);
}

.story-preview-dialog::backdrop {
  background: rgba(11, 45, 72, 0.34);
  backdrop-filter: blur(4px);
}

.story-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 12px;
}

.story-preview-head h2 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 1.3rem;
}

.story-preview-body {
  display: grid;
  place-items: center;
  max-height: 68vh;
  padding: 0 18px 16px;
  overflow: auto;
}

.story-preview-body img {
  width: min(100%, 360px);
  height: auto;
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(15, 45, 76, 0.14);
}

.story-preview-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
}

.story-preview-actions .primary-action,
.story-preview-actions .secondary-action {
  min-width: 130px;
}

.home-body,
.auth-body {
  min-height: 100vh;
}

.home-topbar,
.account-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
}

.home-nav,
.account-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-nav a,
.account-nav a,
.secondary-action,
.small-link,
.site-footer a {
  color: var(--green-dark);
  font-weight: 850;
  text-decoration: none;
}

.home-nav a,
.account-nav a {
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.home-nav a:hover,
.account-nav a:hover,
.secondary-action:hover,
.small-link:hover,
.site-footer a:hover {
  text-decoration: underline;
}

.home-nav .nav-cta {
  background: linear-gradient(135deg, #28b8ec, #1596d7);
  color: #fff;
}

.danger-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid rgba(190, 18, 60, 0.32);
  border-radius: 8px;
  background: #be123c;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.danger-action:hover {
  background: #9f1239;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1fr);
  gap: 40px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 112px);
  margin: 0 auto;
  padding: 28px 0 42px;
}

.home-hero-copy {
  display: grid;
  gap: 18px;
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 10vw, 7.4rem);
  line-height: 0.9;
}

.home-hero p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.home-actions,
.checkout-actions,
.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.account-action {
  margin: 0;
  text-decoration: none;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.hero-product-preview {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-weight: 850;
}

.preview-toolbar strong {
  color: var(--orange);
}

.preview-route {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(47, 192, 243, 0.16), rgba(255, 255, 255, 0) 42%),
    linear-gradient(160deg, rgba(14, 165, 233, 0.18), rgba(246, 189, 63, 0.12));
}

.preview-route::before {
  content: "";
  position: absolute;
  inset: 22% -8% 16%;
  background:
    linear-gradient(145deg, transparent 22%, rgba(21, 94, 159, 0.14) 22% 24%, transparent 24% 36%, rgba(14, 165, 233, 0.18) 36% 38%, transparent 38% 100%),
    linear-gradient(20deg, transparent 0 28%, rgba(16, 32, 51, 0.12) 28% 30%, transparent 30% 100%);
  transform: skewY(-4deg);
}

.preview-route span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: grid;
  min-width: 58px;
  min-height: 30px;
  place-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #172033;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(22, 89, 140, 0.14);
}

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

.preview-list div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
}

.preview-list strong {
  color: var(--green-dark);
}

.preview-list span {
  min-width: 0;
  color: var(--muted);
  font-weight: 760;
}

.home-section,
.account-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.home-section {
  padding: 54px 0;
}

.section-heading,
.panel-heading {
  margin-bottom: 18px;
}

.feature-grid,
.offer-grid,
.billing-grid {
  display: grid;
  gap: 14px;
}

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

.offer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.feature-grid article,
.offer-card,
.billing-status,
.offers-panel,
.account-summary,
.auth-panel,
.legal-panel,
.license-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
}

.feature-grid article,
.offer-card,
.billing-status,
.offers-panel,
.license-summary {
  padding: 20px;
}

.feature-grid h3,
.offer-card h3,
.billing-status h2,
.offers-panel h2 {
  margin: 0 0 8px;
}

.feature-grid p,
.offer-card p,
.billing-status p,
.license-summary p {
  margin: 0;
  color: var(--muted);
}

.offer-card {
  display: grid;
  grid-template-rows: auto auto minmax(3.3em, auto) auto;
  gap: 12px;
  align-content: start;
  min-height: 220px;
}

.offer-card p {
  min-height: 3.3em;
}

.offer-card form {
  margin: 0;
}

.offer-card .cart-add-link {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  grid-column: auto;
  white-space: normal;
}

.offer-card strong,
.checkout-price {
  color: var(--blue);
  font-size: 2rem;
  font-weight: 950;
}

.featured-offer {
  border-color: rgba(47, 192, 243, 0.5);
}

.license-summary {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 44px;
}

.landing-body {
  background:
    linear-gradient(180deg, #f7fbff 0, #ffffff 52%, #f6fbff 100%);
}

.landing-body main {
  overflow: hidden;
}

.landing-body .home-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  min-height: 78px;
  padding: 0 max(18px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(226, 237, 247, 0.78);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.landing-body .home-nav .nav-cta {
  box-shadow: 0 12px 26px rgba(47, 192, 243, 0.22);
}

.home-nav a.is-current {
  background: #e4f7ff;
  color: var(--blue-dark);
}

.about-body {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 46%, #f2faff 100%);
}

.about-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 64px;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 42px;
  min-height: 330px;
  margin-bottom: 48px;
  padding: 42px;
  overflow: hidden;
  border: 1px solid rgba(226, 237, 247, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(102deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 46%, rgba(255, 255, 255, 0.36) 100%),
    var(--mountain-hero) center right / cover no-repeat;
  box-shadow: 0 22px 52px rgba(22, 89, 140, 0.1);
}

.about-hero h1 {
  max-width: 480px;
  margin: 6px 0 0;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.95;
}

.about-hero-mascot {
  display: block;
  width: clamp(128px, 17vw, 210px);
  height: auto;
  margin: 16px auto 0;
  filter: drop-shadow(0 16px 20px rgba(20, 67, 113, 0.16));
}

.about-hero-copy {
  align-self: center;
}

.about-hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.62;
}

.about-hero-copy p + p {
  margin-top: 16px;
}

.about-team {
  padding: 6px 0;
}

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

.about-person {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 22px;
  min-height: 292px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.about-photo-placeholder {
  display: grid;
  width: 156px;
  height: 156px;
  place-items: center;
  align-self: start;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.7) 0 8%, transparent 8.5%),
    linear-gradient(145deg, var(--placeholder-start), var(--placeholder-end));
  box-shadow: 0 14px 30px rgba(22, 89, 140, 0.16);
  color: #fff;
  text-align: center;
}

.about-person-photo {
  width: 156px;
  height: 156px;
  align-self: start;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 31%;
  box-shadow: 0 14px 30px rgba(22, 89, 140, 0.16);
}

.about-photo-placeholder span {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
  background: rgba(7, 29, 47, 0.26);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.about-person-sarah { --placeholder-start: #2fbded; --placeholder-end: #176ca7; }
.about-person-jonathan { --placeholder-start: #83c756; --placeholder-end: #19704e; }
.about-person-benjamin { --placeholder-start: #4a9de1; --placeholder-end: #243c72; }
.about-person-matteo { --placeholder-start: #f7b34c; --placeholder-end: #d86339; }

.about-role {
  margin: 1px 0 6px;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-person h3 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.about-person-copy > p:not(.about-role) {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.about-person-copy > p + p {
  margin-top: 12px;
}

@media (max-width: 860px) {
  .about-shell {
    padding-top: 28px;
  }

  .about-hero,
  .about-team-grid {
    grid-template-columns: 1fr;
  }

  .about-hero {
    gap: 18px;
    min-height: 0;
    padding: 28px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82)),
      var(--mountain-hero) center / cover no-repeat;
  }

  .about-hero-mascot {
    width: 148px;
    margin: 10px 0 0;
  }
}

@media (max-width: 560px) {
  .about-shell {
    width: min(100% - 24px, 620px);
    padding-bottom: 40px;
  }

  .about-hero {
    padding: 24px 20px;
    margin-bottom: 34px;
  }

  .about-hero h1 {
    font-size: 3rem;
  }

  .about-person {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 16px;
    min-height: 0;
    padding: 18px;
  }

  .about-photo-placeholder {
    width: 94px;
    height: 94px;
    border-width: 3px;
  }

  .about-person-photo {
    width: 94px;
    height: 94px;
    border-width: 3px;
  }

  .about-photo-placeholder span {
    font-size: 0.62rem;
  }

  .about-person h3 {
    font-size: 1.2rem;
  }

  .about-person-copy {
    min-width: 0;
  }

  .about-person-copy > p:not(.about-role) {
    grid-column: 1 / -1;
  }

  .about-person-copy > p:first-of-type {
    margin-top: 4px;
  }
}

.landing-body .home-hero {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  min-height: calc(100svh - 78px);
  margin: 0;
  padding: 82px max(18px, calc((100vw - 1180px) / 2)) 54px;
  background:
    linear-gradient(90deg, rgba(7, 29, 47, 0.78) 0%, rgba(7, 29, 47, 0.56) 35%, rgba(7, 29, 47, 0.18) 68%, rgba(7, 29, 47, 0.02) 100%),
    linear-gradient(180deg, rgba(8, 121, 180, 0.08), rgba(255, 255, 255, 0.04) 68%, #f7fbff 100%),
    var(--trail-hero) center right / cover no-repeat;
}

.landing-body .home-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0), #f7fbff 92%);
}

.landing-body .home-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  min-height: 52vh;
  align-content: center;
  color: #fff;
}

.landing-body .home-hero .eyebrow {
  color: #8fe3ff;
  letter-spacing: 0;
}

.landing-body .home-hero h1 {
  max-width: 760px;
  color: #fff;
  font-size: 5.65rem;
  line-height: 0.92;
  text-wrap: balance;
  text-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
}

.landing-body .home-hero p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
  font-weight: 720;
  line-height: 1.58;
}

.landing-body .home-actions {
  margin-top: 4px;
}

.landing-body .home-actions .secondary-action {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(14px);
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 2px;
}

.store-link {
  display: grid;
  min-width: 158px;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(7, 29, 47, 0.42);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px);
}

.store-link span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.store-link strong {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 950;
}

.store-link[aria-disabled="true"] {
  cursor: default;
}

.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  margin-top: 10px;
}

.hero-proof-grid span {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.84rem;
  font-weight: 780;
  backdrop-filter: blur(14px);
}

.hero-proof-grid strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 940;
}

.landing-body .hero-product-preview {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-top: 28px;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 34px 88px rgba(8, 51, 86, 0.24);
  backdrop-filter: blur(18px);
}

.landing-body .preview-toolbar {
  color: var(--green-dark);
}

.landing-body .preview-toolbar strong {
  color: var(--ink);
}

.landing-body .preview-route {
  min-height: 220px;
  background:
    linear-gradient(180deg, rgba(47, 192, 243, 0.12), rgba(255, 255, 255, 0) 48%),
    var(--mountain-hero) center / cover no-repeat;
}

.landing-body .preview-route::before {
  inset: 48% -8% 12%;
  background:
    linear-gradient(145deg, transparent 24%, rgba(255, 255, 255, 0.74) 24% 25%, transparent 25% 40%, rgba(26, 174, 232, 0.9) 40% 42%, transparent 42% 100%);
}

.home-intro .section-heading {
  display: grid;
  max-width: 760px;
  gap: 8px;
}

.home-intro .section-heading p:not(.eyebrow),
.discipline-visual-copy p,
.showcase-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.6;
}

.home-feature-grid article {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 24px;
}

.home-feature-grid article::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -54px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(47, 192, 243, 0.08);
}

.feature-card-strong {
  border-color: rgba(47, 192, 243, 0.42) !important;
  background:
    linear-gradient(135deg, rgba(231, 247, 255, 0.94), rgba(255, 255, 255, 0.98)) !important;
}

.feature-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 999px;
  background: var(--soft-2);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 940;
}

.home-discipline-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 440px;
  align-items: stretch;
  overflow: hidden;
  margin-top: 8px;
  margin-bottom: 18px;
  padding: 0;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 36%, rgba(255, 255, 255, 0.28) 62%, rgba(255, 255, 255, 0) 100%),
    var(--bike-swim-hero) center right / cover no-repeat;
  box-shadow: 0 28px 74px rgba(22, 89, 140, 0.13);
}

.home-discipline-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0), rgba(247, 251, 255, 0.78));
  pointer-events: none;
  z-index: 0;
}

.discipline-visual-matrix {
  position: absolute;
  top: clamp(22px, 4vw, 48px);
  right: clamp(22px, 4vw, 54px);
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(300px, 30vw);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.32);
  box-shadow: 0 20px 54px rgba(22, 89, 140, 0.16);
  backdrop-filter: blur(16px);
}

.discipline-visual-matrix span {
  display: inline-flex;
  min-width: 0;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(47, 192, 243, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.discipline-visual-matrix span::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(47, 192, 243, 0.12);
}

.discipline-visual-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 16px;
  width: min(560px, 100%);
  min-height: 440px;
  padding: clamp(28px, 5vw, 54px);
}

.discipline-visual-copy h2 {
  margin: 0;
  max-width: 520px;
  color: var(--ink);
}

.discipline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.discipline-tags span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(47, 192, 243, 0.26);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--green-dark);
  font-size: 0.84rem;
  font-weight: 900;
}

.home-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 380px);
  gap: 28px;
  align-items: center;
  overflow: hidden;
  margin-top: 14px;
  margin-bottom: 16px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.82) 52%, rgba(255, 255, 255, 0.24)),
    var(--mountain-hero) center right / cover no-repeat;
  box-shadow: var(--shadow);
}

.showcase-copy {
  display: grid;
  gap: 12px;
  max-width: 640px;
}

.showcase-copy h2 {
  margin: 0;
  max-width: 620px;
}

.showcase-phone {
  display: grid;
  gap: 12px;
  justify-self: end;
  width: min(100%, 350px);
  padding: 18px;
  border: 1px solid rgba(226, 237, 247, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 26px 68px rgba(22, 89, 140, 0.16);
}

.phone-top,
.phone-next {
  display: grid;
  gap: 2px;
}

.phone-top strong,
.phone-next strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.phone-top span,
.phone-next span {
  color: var(--muted);
  font-weight: 780;
}

.phone-ring {
  display: grid;
  width: 152px;
  height: 152px;
  place-items: center;
  justify-self: center;
  border: 13px solid var(--blue);
  border-left-color: var(--soft-2);
  border-radius: 50%;
}

.phone-ring strong {
  color: var(--blue);
  font-size: 2.4rem;
  line-height: 1;
}

.phone-ring span {
  margin-top: -34px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.phone-bars {
  display: grid;
  gap: 7px;
}

.phone-bars span {
  display: block;
  width: var(--w);
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.landing-body .offers-section {
  padding-top: 72px;
}

.auth-shell,
.legal-shell {
  display: grid;
  min-height: calc(100vh - 90px);
  place-items: center;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 34px 16px;
}

.login-body {
  background:
    radial-gradient(circle at 18% 0%, rgba(47, 192, 243, 0.2), rgba(255, 255, 255, 0) 32rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.94)),
    var(--mountain-hero) center top / cover fixed no-repeat;
}

.login-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.74) 46%, rgba(255, 255, 255, 0.52)),
    radial-gradient(circle at 86% 12%, rgba(246, 189, 63, 0.16), rgba(246, 189, 63, 0) 24rem);
}

.login-shell {
  align-items: center;
  min-height: calc(100vh - 90px);
}

.auth-panel {
  display: grid;
  gap: 16px;
  width: min(460px, 100%);
  padding: 24px;
}

.login-panel {
  position: relative;
  overflow: hidden;
  width: min(520px, 100%);
  padding: 14px 14px 24px;
  box-shadow: 0 28px 78px rgba(22, 89, 140, 0.16);
}

.login-panel > .brand,
.login-panel > h1,
.login-panel > p,
.login-panel > .notice,
.login-panel > .auth-form,
.login-panel > .auth-links {
  margin-inline: 10px;
}

.auth-visual {
  position: relative;
  display: grid;
  min-height: 190px;
  overflow: hidden;
  align-content: space-between;
  padding: 20px;
  border: 1px solid rgba(226, 237, 247, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(11, 45, 72, 0.55), rgba(11, 45, 72, 0.12) 46%, rgba(255, 255, 255, 0.04)),
    var(--mountain-hero) center right / cover no-repeat;
  color: #fff;
}

.auth-visual::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

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

.auth-visual-copy {
  display: grid;
  max-width: 310px;
  gap: 5px;
}

.auth-visual-copy span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-visual-copy strong {
  max-width: 300px;
  font-size: 1.55rem;
  line-height: 1.02;
}

.auth-visual-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.auth-visual-metrics span {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.72rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.wide-auth-panel,
.legal-panel {
  width: min(900px, 100%);
}

.auth-panel h1,
.legal-panel h1,
.account-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.auth-panel p,
.legal-panel p,
.account-hero p {
  margin: 0;
  color: var(--muted);
}

.auth-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(47, 192, 243, 0.28);
  border-radius: 999px;
  background: rgba(231, 247, 255, 0.84);
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 880;
}

.auth-kicker::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(47, 192, 243, 0.14);
}

.auth-form,
.register-grid {
  display: grid;
  gap: 12px;
}

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

.auth-form label,
.plan-radio {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 820;
}

.auth-form input,
.auth-form select {
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.auth-form input:focus,
.auth-form select:focus {
  border-color: var(--blue);
  box-shadow: var(--ring);
}

.auth-form .auth-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.9rem;
}

.auth-form .auth-check input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--blue);
}

.registration-hp {
  position: absolute;
  left: -10000px;
}

.plan-choice {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.plan-choice legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 900;
}

.plan-radio {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.plan-radio span {
  display: grid;
  gap: 4px;
}

.plan-radio strong {
  color: var(--ink);
}

.plan-radio em {
  color: var(--orange);
  font-size: 1.1rem;
  font-style: normal;
  font-weight: 950;
}

.terms-box {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.terms-box h2 {
  margin: 0;
  font-size: 1rem;
}

.terms-box p {
  margin: 0;
  font-size: 0.86rem;
}

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

.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.auth-button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  text-decoration: none;
}

.notice {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--green-dark);
  font-weight: 780;
}

.notice.error {
  border-color: rgba(217, 75, 75, 0.34);
  background: #fde9e7;
  color: #a8322e;
}

.notice.success {
  border-color: rgba(47, 192, 243, 0.3);
  background: #e7f7ff;
  color: var(--green-dark);
}

.account-shell {
  padding: 0 0 46px;
}

.account-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 20px;
  align-items: stretch;
  overflow: hidden;
  margin: 20px 0;
  padding: 26px;
  border: 1px solid rgba(226, 237, 247, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.76) 52%, rgba(255, 255, 255, 0.22)),
    var(--mountain-hero) center right / cover no-repeat;
  box-shadow: 0 24px 58px rgba(22, 89, 140, 0.1);
}

.account-hero > * {
  position: relative;
  z-index: 1;
}

.account-summary {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: var(--line);
}

.account-summary div {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: #fff;
}

.account-summary dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 820;
}

.account-summary dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.billing-grid {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
}

.billing-shell .notice {
  margin-bottom: 14px;
}

.billing-last-checkout {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.billing-last-checkout div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.billing-last-checkout dt,
.billing-last-checkout dd {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 820;
}

.billing-last-checkout dt {
  color: var(--muted);
}

.billing-last-checkout dd {
  color: var(--ink);
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 14px;
  align-items: start;
}

.settings-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
}

.settings-panel h2 {
  margin: 0;
}

.admin-shell {
  width: min(1420px, calc(100% - 32px));
}

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

.admin-panel {
  overflow: hidden;
}

.admin-current-user {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-table {
  width: 100%;
  min-width: 1380px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: var(--soft);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-table td {
  color: var(--ink);
  font-size: 0.9rem;
}

.admin-table td strong,
.admin-table td span {
  display: block;
}

.admin-table td span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-status {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff2e6;
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 900;
}

.admin-status.active {
  background: #e9f3ff;
  color: var(--green-dark);
}

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

.admin-coach-form {
  display: grid;
  justify-items: start;
  gap: 6px;
  margin-top: 8px;
}

.admin-coach-action {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.78rem;
}

.coach-shell {
  width: min(1320px, calc(100% - 32px));
}

.coach-hero {
  align-items: end;
}

.coach-access-badge,
.coach-attention-badge,
.coach-athlete-state {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
}

.coach-access-badge {
  background: #e9f3ff;
  color: var(--green-dark);
}

.coach-stat-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0 0 14px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.coach-stat-grid > div {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  background: #fff;
}

.coach-stat-grid dt,
.coach-stat-grid dd {
  margin: 0;
}

.coach-stat-grid dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 820;
}

.coach-stat-grid dd {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 920;
}

.coach-stat-grid small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 760;
}

.coach-stat-grid .coach-stat-attention {
  background: #fff7ed;
}

.coach-stat-attention dd {
  color: #b54708;
}

.coach-filter-panel {
  margin-bottom: 14px;
}

.coach-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(170px, 0.7fr) minmax(160px, 0.6fr) auto 42px;
  align-items: end;
  gap: 10px;
}

.coach-filters label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.coach-filters input,
.coach-filters select {
  min-width: 0;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.coach-filter-submit,
.coach-filter-reset {
  min-height: 44px;
}

.coach-filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.2rem;
  text-decoration: none;
}

.coach-result-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 780;
}

.coach-athlete-list {
  display: grid;
  gap: 12px;
}

.coach-athlete {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.coach-athlete-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
}

.coach-athlete-header > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.coach-athlete-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.1rem;
}

.coach-athlete-header a {
  overflow: hidden;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 780;
  text-overflow: ellipsis;
}

.coach-athlete-state.active {
  background: #e9f3ff;
  color: var(--green-dark);
}

.coach-athlete-state.inactive {
  background: #f1f4f7;
  color: var(--muted);
}

.coach-attention-badge {
  flex: 0 0 auto;
  background: #fff0e3;
  color: #b54708;
}

.coach-athlete-metrics {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px 0;
  background: var(--line);
}

.coach-athlete-metrics > div {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 11px 14px;
  background: var(--soft);
}

.coach-athlete-metrics dt,
.coach-athlete-metrics dd {
  margin: 0;
}

.coach-athlete-metrics dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.coach-athlete-metrics dd {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 880;
}

.coach-feedback-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
  list-style: none;
}

.coach-feedback-details > summary::-webkit-details-marker {
  display: none;
}

.coach-feedback-details > summary span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  border-radius: 999px;
  background: var(--soft-2);
  color: var(--green-dark);
  font-size: 0.74rem;
}

.coach-feedback-list {
  border-top: 1px solid var(--line);
}

.coach-no-feedback {
  margin: 0;
  padding: 16px 20px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

.coach-feedback-item {
  display: grid;
  gap: 12px;
  padding: 16px 20px 18px;
  border-bottom: 1px solid var(--line);
}

.coach-feedback-item:last-child {
  border-bottom: 0;
}

.coach-feedback-item.needs-attention {
  box-shadow: inset 4px 0 #f28b3c;
}

.coach-feedback-item > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.coach-feedback-item h3,
.coach-feedback-item p {
  margin: 0;
}

.coach-feedback-item h3 {
  color: var(--ink);
  font-size: 0.98rem;
}

.coach-feedback-item time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
}

.coach-feedback-meta,
.coach-feedback-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.coach-feedback-meta span,
.coach-feedback-signals > div {
  padding: 6px 9px;
  border-radius: 6px;
  background: var(--soft);
}

.coach-feedback-meta span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 780;
}

.coach-feedback-signals {
  margin: 0;
}

.coach-feedback-signals dt,
.coach-feedback-signals dd {
  display: inline;
  margin: 0;
  font-size: 0.76rem;
}

.coach-feedback-signals dt {
  color: var(--muted);
  font-weight: 760;
}

.coach-feedback-signals dt::after {
  content: ": ";
}

.coach-feedback-signals dd {
  color: var(--ink);
  font-weight: 900;
}

.coach-feedback-copy {
  display: grid;
  gap: 5px;
  padding-left: 12px;
  border-left: 3px solid var(--green);
}

.coach-feedback-copy.alert {
  border-left-color: #f28b3c;
}

.coach-feedback-copy strong {
  color: var(--ink);
  font-size: 0.8rem;
}

.coach-feedback-copy p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.access-denied-panel {
  margin-top: 34px;
}

.planner-notice {
  margin-bottom: 14px;
}

.preparation-controls,
.pagination-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.preparation-controls p {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.preparation-page-size label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-weight: 850;
}

.preparation-page-size select {
  min-width: 76px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
}

.preparation-grid {
  display: grid;
  gap: 12px;
}

.preparation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.preparation-main {
  min-width: 0;
}

.preparation-card h2 {
  margin: 0 0 6px;
}

.preparation-card p {
  margin: 0;
  color: var(--muted);
}

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

.preparation-actions form {
  margin: 0;
}

.danger-link {
  min-height: 30px;
  padding: 7px 9px;
  border: 1px solid rgba(190, 18, 60, 0.24);
  border-radius: 7px;
  background: #fff5f7;
  color: #be123c;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: normal;
  cursor: pointer;
}

.danger-link:hover {
  background: #ffe4e9;
}

.pagination-nav {
  justify-content: center;
  margin: 14px 0 0;
}

.pagination-nav a,
.pagination-nav span {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: #fff;
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: none;
}

.pagination-nav span {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.race-feedback {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

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

.feedback-time-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 820;
}

.feedback-time-grid input {
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 850;
}

.profile-shell {
  padding-bottom: 56px;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 12px;
  align-items: stretch;
  margin: 16px 0 12px;
}

.profile-card-main,
.profile-metrics,
.profile-stat-grid,
.profile-history-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
}

.profile-card-main {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 188px;
  padding: 20px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78) 56%, rgba(255, 255, 255, 0.32)),
    var(--mountain-hero) center right / cover no-repeat;
}

.profile-avatar {
  display: grid;
  width: 88px;
  height: 88px;
  overflow: hidden;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  box-shadow: 0 18px 44px rgba(22, 89, 140, 0.22);
}

.profile-avatar-wrap {
  position: relative;
  width: 88px;
  height: 88px;
}

.profile-avatar-edit {
  position: absolute;
  right: 7px;
  bottom: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(117, 132, 153, 0.34);
  border-radius: 999px;
  background: rgba(244, 247, 251, 0.94);
  color: #6b7789;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  box-shadow: 0 8px 18px rgba(16, 32, 51, 0.18);
  transform: scale(0.9);
  transition: opacity 0.16s ease, transform 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.profile-avatar-wrap:hover .profile-avatar-edit,
.profile-avatar-edit:focus-visible {
  opacity: 1;
  transform: scale(1);
}

.profile-avatar-edit:hover {
  background: #fff;
  color: #16598c;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar img.profile-avatar-mascot {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.profile-avatar span {
  font-size: 1.7rem;
  font-weight: 950;
}

.profile-card-main h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 3.8vw, 3.15rem);
  line-height: 0.98;
}

.profile-card-main p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 820;
}

.profile-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.profile-chip-row span,
.profile-history-sport {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid rgba(47, 192, 243, 0.28);
  border-radius: 999px;
  padding: 6px 11px;
  background: #e7f7ff;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.profile-metrics,
.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  gap: 1px;
  background: var(--line);
}

.profile-metrics div,
.profile-stat-grid div {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 86px;
  padding: 13px 14px;
  background: #fff;
}

.profile-metrics dt,
.profile-stat-grid dt,
.profile-history-item dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.profile-metrics dd,
.profile-stat-grid dd,
.profile-history-item dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 950;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.76fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.profile-account-footer {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin: 18px 0 4px;
  text-align: right;
}

.profile-delete-link {
  appearance: none;
  -webkit-appearance: none;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  box-shadow: none;
  margin-left: auto;
}

.profile-delete-link:hover {
  color: #be123c;
}

.profile-delete-dialog {
  width: min(520px, calc(100% - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 28px 88px rgba(28, 86, 153, 0.2);
}

.profile-delete-dialog::backdrop {
  background: rgba(16, 32, 51, 0.34);
  backdrop-filter: blur(6px);
}

.profile-delete-dialog-body {
  display: grid;
  gap: 14px;
  padding: 20px 22px 22px;
}

.profile-delete-dialog-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 18px;
}

.profile-delete-dialog-head .dialog-close {
  justify-self: end;
}

.profile-delete-dialog-head h2 {
  margin: 0;
}

.profile-delete-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.profile-delete-dialog-actions .secondary-action,
.profile-delete-dialog-actions .primary-action,
.profile-delete-dialog-actions .danger-action {
  min-height: 42px;
  margin-top: 0;
  padding: 11px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
}

.profile-delete-dialog-actions .primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(42, 143, 234, 0.34);
  background: linear-gradient(135deg, #28b8ec, #1596d7);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(28, 86, 153, 0.14);
}

.profile-delete-dialog-actions .primary-action:hover {
  background: linear-gradient(135deg, #1596d7, #087fc0);
  text-decoration: none;
}

.profile-delete-dialog-actions .secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(117, 132, 153, 0.32);
  background: #f4f7fb;
  color: #16598c;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(28, 86, 153, 0.08);
}

.profile-delete-dialog-actions .secondary-action:hover {
  background: #eaf4fb;
  border-color: rgba(42, 143, 234, 0.34);
  text-decoration: none;
}

.profile-delete-dialog-actions .danger-action {
  border-color: rgba(190, 18, 60, 0.32);
  background: #be123c;
  color: #fff;
  font-weight: 900;
}

.profile-sports-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-sports-picker legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 900;
}

.profile-sports-picker label {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid rgba(226, 237, 247, 0.9);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
}

.profile-history-panel {
  margin-top: 14px;
}

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

.profile-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.profile-history-item h3 {
  margin: 8px 0 5px;
  color: var(--ink);
}

.profile-history-item p {
  margin: 0;
  color: var(--muted);
  font-weight: 780;
}

.profile-history-item dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.profile-history-item dl div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(226, 237, 247, 0.9);
  border-radius: 8px;
  background: var(--soft);
}

.profile-history-actions {
  display: grid;
  gap: 8px;
  min-width: 132px;
}

.race-feedback summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
  list-style: none;
}

.race-feedback summary::-webkit-details-marker {
  display: none;
}

.race-feedback summary em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 760;
}

.feedback-recap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-recap span {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--soft-2);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
}

.feedback-recap strong {
  color: var(--ink);
}

.feedback-form {
  display: grid;
  gap: 12px;
}

.feedback-form fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.feedback-form legend {
  padding: 0 6px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.feedback-form label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.feedback-form fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feedback-textarea {
  display: grid;
  gap: 7px;
}

.feedback-textarea span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.feedback-textarea textarea {
  min-width: 0;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  resize: vertical;
  outline: none;
}

.feedback-textarea textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.feedback-submit {
  justify-self: start;
  min-height: 40px;
}

.print-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.print-actions {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 16px;
}

.print-preview-copy {
  display: grid;
  gap: 3px;
  color: var(--ink);
}

.print-preview-copy span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.print-preview-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.print-panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(18, 67, 105, 0.08);
}

.print-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 2px solid #d9edf9;
}

.print-brand-block {
  display: grid;
  grid-template-columns: 72px 66px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.print-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
}

.print-mascot {
  width: 66px;
  height: 78px;
  object-fit: contain;
}

.print-footer-mascot {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.print-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.print-recipient {
  display: grid;
  justify-items: end;
  gap: 3px;
  min-width: 170px;
  text-align: right;
}

.print-recipient span,
.print-recipient small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.print-recipient strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.print-document-section {
  min-width: 0;
}

.print-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin: 0 0 12px;
}

.print-section-heading .eyebrow,
.print-section-heading h2 {
  margin: 0;
}

.print-section-heading h2 {
  margin-top: 3px;
  font-size: 1.55rem;
  letter-spacing: 0;
}

.print-section-count {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #bde7fa;
  border-radius: 6px;
  background: #f3fbff;
  color: #087caf;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.print-section-intro {
  max-width: 760px;
  margin: -2px 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.45;
}

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

.print-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 24px;
}

.print-summary-card {
  display: grid;
  gap: 4px;
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.print-key-grid .print-summary-card {
  min-height: 82px;
  border-color: #cce9f7;
  background: linear-gradient(180deg, #fafdff 0%, #f3faff 100%);
}

.print-summary-card span,
.print-summary-card small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.print-summary-card strong {
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 950;
  line-height: 1;
}

.print-strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.print-strategy-item {
  display: grid;
  gap: 4px;
  min-height: 66px;
  padding: 11px 13px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.print-strategy-item:nth-child(2n) {
  border-right: 0;
}

.print-strategy-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.print-strategy-item:only-child,
.print-strategy-source:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-right: 0;
  border-bottom: 0;
}

.print-strategy-item span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.print-strategy-item strong {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.3;
}

.print-material-heading {
  margin-top: 4px;
}

.print-material-grid {
  margin-bottom: 0;
}

.print-page-section {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 2px solid #d9edf9;
}

.print-table {
  width: 100%;
  margin: 12px 0 24px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.print-table th,
.print-table td {
  padding: 9px 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.print-table th {
  width: 180px;
  background: var(--soft);
}

.print-detail-table {
  table-layout: fixed;
}

.print-detail-table thead th {
  width: auto;
  border-color: #c8e3f2;
  background: #eaf7fd;
  color: #087caf;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.print-detail-table tbody tr:nth-child(even) {
  background: #f9fcfe;
}

.print-detail-table td {
  color: var(--ink);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.print-detail-table td:first-child {
  color: #087caf;
  font-weight: 900;
  white-space: nowrap;
}

.print-detail-table td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1.3;
}

.print-col-time {
  width: 11%;
}

.print-col-product {
  width: 32%;
}

.print-col-detail {
  width: 39%;
}

.print-col-carbs {
  width: 10%;
}

.print-col-quantity {
  width: 17%;
}

.print-col-cart-product {
  width: 35%;
}

.print-col-type {
  width: 20%;
}

.print-col-brand {
  width: 20%;
}

.print-col-check {
  width: 8%;
}

.print-check-cell {
  text-align: center !important;
  vertical-align: middle !important;
}

.print-check-cell span {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #8ba6b8;
  border-radius: 4px;
  background: #fff;
}

.print-product {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 170px;
}

.print-product.no-image {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.print-product-thumb {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.print-product-thumb img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.print-product-copy strong,
.print-product-copy small {
  display: block;
  line-height: 1.25;
}

.print-product-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
}

.print-disclaimer {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-left: 3px solid #21afe2;
  background: #f3faff;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.45;
}

.print-document-footer {
  display: none;
}

.print-note-list {
  display: grid;
  gap: 7px;
  margin: 10px 0 24px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.checkout-panel {
  width: min(620px, 100%);
}

.legal-shell {
  align-items: start;
}

.legal-panel {
  display: grid;
  gap: 14px;
  padding: 26px;
}

.legal-panel h2 {
  margin: 10px 0 0;
  font-size: 1.1rem;
}

@media (max-width: 1320px) {
  .coach-stat-grid,
  .coach-athlete-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .workspace {
    grid-template-columns: minmax(320px, 370px) minmax(0, 1fr);
  }

  .input-panel {
    position: static;
  }

  .plan-panel {
    position: static;
    grid-column: 1 / -1;
  }

  .schedule-list {
    grid-template-columns: 1fr;
    max-height: none;
  }
}

@media (max-width: 820px) {
  .coach-filters {
    grid-template-columns: 1fr 1fr;
  }

  .coach-filter-submit {
    width: 100%;
  }

  .coach-filter-reset {
    width: 44px;
  }

  .coach-stat-grid,
  .coach-athlete-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar {
    position: static;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 14px 18px;
  }

  .topnav {
    display: none;
  }

  .home-topbar,
  .account-topbar {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .home-nav,
  .account-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .home-hero,
  .account-hero,
  .profile-hero,
  .profile-grid,
  .profile-history-item,
  .billing-grid,
  .settings-grid,
  .license-summary {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
    padding-top: 12px;
  }

  .feature-grid,
  .offer-grid {
    grid-template-columns: 1fr;
  }

  .offer-card {
    min-height: 0;
  }

  .offer-card p {
    min-height: 0;
  }

  .app {
    width: min(100% - 24px, 760px);
    margin-top: 14px;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
    min-height: 360px;
    align-items: end;
    padding: 22px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.8) 44%, rgba(255, 255, 255, 0.38) 100%),
      var(--mountain-hero) center right / cover no-repeat;
  }

  .dashboard-hero-mascot {
    top: 16px;
    right: 18px;
    width: 78px;
  }

  .dashboard-hero-card {
    justify-self: start;
  }

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

  .summary-strip.has-credits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-strip > div,
  .summary-strip > div:first-child,
  .summary-strip > div:nth-child(2),
  .summary-strip > div:last-child,
  .summary-strip:not(.has-credits) > div:nth-child(3) {
    border-radius: 8px;
  }

  .summary-credit {
    grid-column: 1 / -1;
    border-radius: 8px;
  }

  .workspace,
  .energy-panel {
    grid-template-columns: 1fr;
  }

  .analysis-metrics {
    grid-template-columns: 1fr;
  }

  .profile-card-main {
    min-height: 0;
  }

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

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

  .contact-dialog-body {
    grid-template-columns: 1fr;
  }

  .input-panel {
    position: static;
  }

  .panel-heading.horizontal {
    display: block;
  }

  .route-meta {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .course-match {
    align-items: flex-start;
    flex-direction: column;
  }

  .table-heading {
    display: grid;
  }

  .schedule-list {
    grid-template-columns: 1fr;
  }

  .multisport-segment {
    grid-template-columns: 1fr 1fr;
  }

  .multisport-segment-title {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .coach-shell {
    width: min(100% - 20px, 540px);
  }

  .coach-filters,
  .coach-stat-grid,
  .coach-athlete-metrics {
    grid-template-columns: 1fr;
  }

  .coach-athlete-header,
  .coach-feedback-item > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-strip,
  .field-grid,
  .register-grid,
  .profile-metrics,
  .profile-stat-grid,
  .profile-sports-picker,
  .profile-history-item dl,
  .feedback-time-grid,
  .brand-choice-grid,
  .brand-mix-control,
  .preset-row,
  .choice-grid,
  .contact-details dl div {
    grid-template-columns: 1fr;
  }

  .summary-strip.has-credits {
    grid-template-columns: 1fr;
  }

  .profile-card-main {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }

  .profile-avatar {
    width: 78px;
    height: 78px;
  }

  .profile-avatar-wrap {
    width: 78px;
    height: 78px;
  }

  .profile-avatar-edit {
    width: 32px;
    height: 32px;
  }

  .profile-history-actions {
    grid-template-columns: 1fr;
  }

  .summary-strip > div:nth-child(2),
  .summary-strip > div:last-child,
  .summary-strip > div:first-child,
  .summary-strip:not(.has-credits) > div:nth-child(3),
  .summary-credit {
    border-radius: 8px;
  }

  .multisport-segment {
    grid-template-columns: 1fr;
  }

  .schedule-list li.plan-item {
    grid-template-columns: 46px 52px minmax(0, 1fr);
    gap: 8px;
  }

  .cart-sheet-heading {
    display: grid;
  }

  .cart-line {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .cart-add-link,
  .cart-product-link {
    grid-column: 2;
    justify-self: start;
  }

  .cart-share-list li {
    grid-template-columns: 1fr;
  }

  .cart-share-list a {
    justify-self: start;
  }

  .plan-product-image {
    width: 52px;
    height: 52px;
  }

  .plan-product-image img {
    width: 48px;
    height: 48px;
  }

  .input-panel,
  .visual-panel,
  .plan-panel {
    padding: 16px;
  }

  .route-visual {
    min-height: 270px;
  }

  .route-visual svg {
    height: 270px;
  }

  .timing-table-card {
    padding: 10px;
  }

  .timing-table {
    min-width: 620px;
  }

  .print-table {
    font-size: 0.78rem;
  }

  .print-table th,
  .print-table td {
    padding: 7px 6px;
  }

  .print-product {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 7px;
    min-width: 0;
  }

  .print-product-thumb {
    width: 34px;
    height: 34px;
    border-radius: 7px;
  }

  .print-product-thumb img {
    width: 30px;
    height: 30px;
  }

  .marker-label {
    display: none;
  }

  .product-tooltip {
    grid-template-columns: 48px minmax(0, 1fr);
    width: min(236px, 82vw);
    padding: 9px;
  }

  .product-tooltip img {
    width: 48px;
    height: 48px;
  }

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

  .preparation-controls,
  .pagination-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .preparation-actions {
    flex-wrap: wrap;
  }

  .credit-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .field-info,
  .effort-help-trigger {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    min-height: 40px;
    font-size: 1rem;
  }

  .effort-help-body {
    padding: 18px 14px 18px;
  }

  .effort-help-heading {
    padding-right: 34px;
  }

  .effort-coach-row {
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 10px;
    padding-right: 34px;
  }

  .effort-help-heading h2 {
    font-size: 1.05rem;
  }

  .effort-coach-bubbles p {
    max-width: 250px;
  }

  .effort-coach-face {
    width: 76px !important;
    max-width: 76px !important;
    height: 76px !important;
    border-width: 2px;
  }

  .effort-zone-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

@media (max-width: 900px) {
  .landing-body .home-topbar {
    align-items: flex-start;
    flex-wrap: wrap;
    min-height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .landing-body .home-nav {
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .landing-body .home-hero {
    min-height: auto;
    padding-top: 56px;
    padding-bottom: 42px;
    background:
      linear-gradient(180deg, rgba(7, 29, 47, 0.76) 0%, rgba(7, 29, 47, 0.48) 52%, rgba(7, 29, 47, 0.16) 100%),
      var(--trail-hero) center right / cover no-repeat;
  }

  .landing-body .home-hero-copy {
    min-height: auto;
  }

  .landing-body .home-hero h1 {
    font-size: 3.9rem;
  }

  .hero-proof-grid,
  .home-discipline-visual,
  .home-showcase {
    grid-template-columns: 1fr;
  }

  .home-discipline-visual {
    min-height: 520px;
    align-items: end;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.72) 54%, rgba(255, 255, 255, 0.98) 100%),
      var(--bike-swim-hero) center top / 100% auto no-repeat;
  }

  .discipline-visual-copy {
    min-height: auto;
    padding-top: 220px;
  }

  .discipline-visual-matrix {
    display: none;
  }

  .showcase-phone {
    justify-self: stretch;
  }
}

@media (max-width: 620px) {
  .landing-body .home-hero {
    padding-top: 38px;
  }

  .landing-body .home-nav .nav-cta {
    display: none;
  }

  .landing-body .home-hero h1 {
    font-size: 3.05rem;
  }

  .landing-body .home-hero p {
    font-size: 1rem;
  }

  .hero-proof-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-proof-grid span {
    flex: 0 0 190px;
  }

  .landing-body .hero-product-preview {
    display: none;
  }

  .home-showcase {
    padding: 20px;
  }

  .home-discipline-visual {
    min-height: 500px;
  }

  .discipline-visual-copy {
    padding: 210px 20px 24px;
  }

  .phone-ring {
    width: 132px;
    height: 132px;
  }

  .phone-ring strong {
    font-size: 2rem;
  }
}

@media screen and (max-width: 700px) {
  .print-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .print-preview-actions {
    justify-content: space-between;
  }

  .print-body .print-shell {
    padding-inline: 10px;
  }

  .print-body .print-panel {
    padding: 18px 12px;
  }

  .print-body .print-header {
    display: grid;
    gap: 14px;
  }

  .print-body .print-brand-block {
    grid-template-columns: 58px 54px minmax(0, 1fr);
  }

  .print-body .print-logo {
    width: 58px;
    height: 58px;
  }

  .print-body .print-mascot {
    width: 54px;
    height: 64px;
  }

  .print-body .print-recipient {
    justify-items: start;
    min-width: 0;
    text-align: left;
  }

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

  .print-body .print-key-grid,
  .print-body .print-strategy-grid {
    grid-template-columns: 1fr;
  }

  .print-body .print-strategy-item,
  .print-body .print-strategy-item:nth-child(2n),
  .print-body .print-strategy-item:nth-last-child(-n + 2) {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .print-body .print-strategy-item:last-child {
    border-bottom: 0;
  }

  .print-body .print-section-heading {
    align-items: start;
  }

  .print-body h2 {
    font-size: clamp(1.55rem, 8vw, 2.3rem);
    line-height: 1.08;
  }

  .print-detail-table {
    display: block;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.96rem;
  }

  .print-detail-table thead {
    display: none;
  }

  .print-detail-table tbody {
    display: grid;
    gap: 12px;
  }

  .print-detail-table tr {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(22, 89, 140, 0.08);
  }

  .print-detail-table th,
  .print-detail-table td {
    display: grid;
    grid-template-columns: minmax(84px, 0.34fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    width: auto;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    overflow-wrap: anywhere;
  }

  .print-detail-table td:last-child {
    border-bottom: 0;
  }

  .print-detail-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .print-detail-table .print-product {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
    max-width: 100%;
  }

  .print-detail-table .print-product-thumb {
    width: 50px;
    height: 50px;
  }

  .print-detail-table .print-product-thumb img {
    width: 44px;
    height: 44px;
  }

  .print-detail-table .print-product-copy {
    min-width: 0;
  }

  .print-detail-table .print-product-copy strong,
  .print-detail-table .print-product-copy small {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .print-timing-table td:first-child,
  .print-cart-table td:first-child {
    background: #f7fbff;
    color: var(--ink);
    font-weight: 850;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 11mm 10mm 18mm;
  }

  html,
  body {
    min-width: 0;
    background: #fff;
  }

  body.print-body {
    color: #111827;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9pt;
    line-height: 1.35;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .print-body .app-loader,
  .print-body .site-header,
  .site-footer,
  .print-actions {
    display: none !important;
  }

  .print-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .print-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .print-header {
    margin: 0 0 6mm;
    padding: 0 0 4mm;
    border-bottom: 1.5pt solid #25afe2;
  }

  .print-brand-block {
    grid-template-columns: 15mm 13mm minmax(0, 1fr);
    gap: 4mm;
  }

  .print-logo {
    width: 15mm;
    height: 15mm;
    border-radius: 2mm;
  }

  .print-mascot {
    width: 13mm;
    height: 17mm;
  }

  .print-footer-mascot {
    width: 7mm;
    height: 7mm;
  }

  .print-header h1 {
    font-size: 20pt;
    line-height: 1.04;
  }

  .print-header .eyebrow {
    margin-bottom: 1mm;
    color: #0780b5;
    font-size: 7pt;
  }

  .print-recipient {
    min-width: 43mm;
  }

  .print-recipient span,
  .print-recipient small {
    font-size: 6.8pt;
  }

  .print-recipient strong {
    font-size: 9pt;
  }

  .print-document-section {
    break-inside: auto;
  }

  .print-overview-section {
    break-after: page;
    page-break-after: always;
  }

  .print-page-section {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    break-before: page;
    page-break-before: always;
  }

  .print-overview-section + .print-page-section {
    break-before: auto;
    page-break-before: auto;
  }

  .print-section-heading {
    margin-bottom: 3mm;
  }

  .print-section-heading h2 {
    margin-top: 0.8mm;
    font-size: 14pt;
  }

  .print-section-heading .eyebrow {
    font-size: 6.8pt;
  }

  .print-section-count {
    padding: 1.5mm 2.2mm;
    border-radius: 1.5mm;
    font-size: 6.5pt;
  }

  .print-section-intro {
    margin: -1mm 0 3mm;
    font-size: 7.6pt;
    line-height: 1.35;
  }

  .print-key-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5mm;
    margin: 3mm 0;
  }

  .print-table th,
  .print-table td {
    padding: 1.4mm 2mm;
    border-color: #cbd9e2;
    font-size: 7.7pt;
    line-height: 1.28;
  }

  .print-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5mm;
    margin: 3mm 0 0;
  }

  .print-summary-card {
    min-height: 20mm;
    padding: 3mm;
    background: #fff;
    border-color: #cbdde8;
    border-radius: 2mm;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-key-grid .print-summary-card {
    min-height: 18mm;
    background: #f5fbfe;
  }

  .print-summary-card span,
  .print-summary-card small {
    font-size: 6.2pt;
  }

  .print-summary-card strong {
    font-size: 13pt;
  }

  .print-strategy-grid {
    margin: 0 0 5mm;
    border-color: #cbdde8;
    border-radius: 2mm;
  }

  .print-strategy-item {
    min-height: 14mm;
    padding: 2.5mm 3mm;
    border-color: #dce7ee;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-strategy-item span {
    font-size: 6.2pt;
  }

  .print-strategy-item strong {
    font-size: 8pt;
  }

  .print-material-heading {
    margin-top: 1mm;
  }

  .print-table {
    margin: 3mm 0 0;
    border-collapse: collapse;
  }

  .print-detail-table {
    table-layout: fixed;
  }

  .print-detail-table thead {
    display: table-header-group;
  }

  .print-detail-table tfoot {
    display: table-footer-group;
  }

  .print-detail-table tr,
  .print-detail-table td,
  .print-detail-table .print-product {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-detail-table thead th {
    padding-top: 2mm;
    padding-bottom: 2mm;
    background: #eaf7fd;
    color: #067eae;
    font-size: 6.5pt;
  }

  .print-product {
    grid-template-columns: 7.5mm minmax(0, 1fr);
    gap: 2mm;
    min-width: 0;
  }

  .print-product-thumb {
    width: 6.5mm;
    height: 6.5mm;
    border-radius: 1.5mm;
  }

  .print-product-thumb img {
    width: 5.8mm;
    height: 5.8mm;
  }

  .print-product-copy strong {
    font-size: 7.5pt;
  }

  .print-product-copy small,
  .print-detail-table td small {
    font-size: 6.4pt;
  }

  .print-check-cell span {
    width: 4.5mm;
    height: 4.5mm;
    border-width: 0.6mm;
    border-radius: 1mm;
  }

  .print-disclaimer {
    margin-top: 4mm;
    padding: 2.5mm 3mm;
    border-left-width: 1mm;
    background: #f3faff;
    font-size: 6.7pt;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-document-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -13mm;
    display: flex;
    justify-content: space-between;
    margin-top: 0;
    padding-top: 2.5mm;
    border-top: 0.5pt solid #cbdde8;
    color: #64748b;
    font-size: 6.3pt;
    font-weight: 700;
  }

  .print-page-counter::after {
    content: counter(page);
  }

}
