@font-face {
  font-family: "Archivo Display";
  src: url("../fonts/archivo-display.woff2") format("woff2");
  font-weight: 500 800;
  font-stretch: 100% 125%;
  font-display: swap;
}

@font-face {
  font-family: "Inter Text";
  src: url("../fonts/inter-text.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --font-display: "Archivo Display", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Inter Text", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #efefe9;
  --surface-3: #e7e7e0;
  --ink: #0d1014;
  --ink-2: #353c46;
  --muted: #646c78;
  --line: #e3e3dc;
  --line-strong: #cbccc4;
  --button: #0d1014;
  --button-ink: #ffffff;
  --button-hover: #2a3038;
  --link: #1c4fd8;
  --focus: #2b5fd9;
  --danger: #c22b39;
  --success: #1f7a3b;

  --zone-recovery: #7f9bd0;
  --zone-endurance: #2b5fd9;
  --zone-tempo: #0ea5bd;
  --zone-sweetspot: #2f9442;
  --zone-threshold: #f2c230;
  --zone-vo2max: #ee7a26;
  --zone-anaerobic: #d42f3f;
  --zone-sprint: #99207a;
  --zone-rest: #d6d9df;

  --chart-surface: var(--surface);
  --radius: 16px;
  --radius-small: 10px;
  --shadow-card: 0 1px 2px rgba(13, 16, 20, 0.04), 0 10px 30px -18px rgba(13, 16, 20, 0.28);
  --shadow-float: 0 12px 40px -12px rgba(13, 16, 20, 0.28);
  --header-height: 64px;
  --gutter: 16px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1216;
    --surface: #151a20;
    --surface-2: #1b2129;
    --surface-3: #232a33;
    --ink: #f2f4f6;
    --ink-2: #c7ccd3;
    --muted: #8d95a0;
    --line: #252c35;
    --line-strong: #353d48;
    --button: #f2f4f6;
    --button-ink: #0e1216;
    --button-hover: #d9dde2;
    --link: #8db1ff;
    --focus: #8db1ff;
    --danger: #f0646f;
    --success: #5cc47a;

    --zone-recovery: #94a3bd;
    --zone-endurance: #4b84f2;
    --zone-tempo: #1fb6c9;
    --zone-sweetspot: #45a84c;
    --zone-threshold: #f4cb45;
    --zone-vo2max: #f2873a;
    --zone-anaerobic: #ec5260;
    --zone-sprint: #c44bc0;
    --zone-rest: #3a414c;

    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 30px -18px rgba(0, 0, 0, 0.6);
    --shadow-float: 0 16px 40px -12px rgba(0, 0, 0, 0.7);

    color-scheme: dark;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.55;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 750;
  font-stretch: 112%;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--button);
  color: var(--button-ink);
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.container, .container-wide {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container {
  max-width: 1232px;
}

.container-wide {
  max-width: 1432px;
}

@media (min-width: 720px) {
  :root {
    --gutter: 28px;
  }
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.z-recovery { fill: var(--zone-recovery); }
.z-endurance { fill: var(--zone-endurance); }
.z-tempo { fill: var(--zone-tempo); }
.z-sweetspot { fill: var(--zone-sweetspot); }
.z-threshold { fill: var(--zone-threshold); }
.z-vo2max { fill: var(--zone-vo2max); }
.z-anaerobic { fill: var(--zone-anaerobic); }
.z-sprint { fill: var(--zone-sprint); }
.z-rest { fill: var(--zone-rest); }

.z-bg-recovery { background: var(--zone-recovery); }
.z-bg-endurance { background: var(--zone-endurance); }
.z-bg-tempo { background: var(--zone-tempo); }
.z-bg-sweetspot { background: var(--zone-sweetspot); }
.z-bg-threshold { background: var(--zone-threshold); }
.z-bg-vo2max { background: var(--zone-vo2max); }
.z-bg-anaerobic { background: var(--zone-anaerobic); }
.z-bg-sprint { background: var(--zone-sprint); }
.z-bg-rest { background: var(--zone-rest); }


.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand nav actions";
  align-items: center;
  gap: 24px;
  min-height: var(--header-height);
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 750;
  font-stretch: 110%;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand-addition {
  display: block;
  font-family: var(--font-text);
  font-weight: 500;
  font-stretch: 100%;
  font-size: 0.72em;
  letter-spacing: 0;
  color: var(--muted);
  white-space: nowrap;
}

.logo-mark {
  flex: none;
  width: 28px;
  height: 28px;
}

.main-nav {
  grid-area: nav;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 560;
  font-size: 0.95rem;
  color: var(--ink-2);
  white-space: nowrap;
}

.main-nav a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.main-nav a[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.main-nav .icon {
  width: 18px;
  height: 18px;
}

.header-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  min-width: 40px;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 560;
  font-size: 0.95rem;
}

.header-link:hover {
  background: var(--surface-2);
}

.plan-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-ink);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.language-menu {
  position: relative;
}

.language-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

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

.language-menu summary:hover {
  background: var(--surface-2);
}

.language-menu .icon {
  width: 18px;
  height: 18px;
}

.language-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-float);
  min-width: 160px;
}

.language-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.language-menu a:hover {
  background: var(--surface-2);
}

.language-menu a[aria-current="true"] {
  font-weight: 650;
}

@media (max-width: 899px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand actions" "nav nav";
    gap: 0 12px;
    padding-top: 6px;
  }

  .main-nav {
    margin-inline: calc(var(--gutter) * -1);
    padding: 2px var(--gutter) 8px;
  }

  .header-plan-label {
    display: none;
  }

  .main-nav a {
    padding: 8px 10px;
    gap: 6px;
  }
}

@media (max-width: 420px) {
  .brand-name {
    font-size: 0.92rem;
  }
}


.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 620;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.button .icon {
  width: 18px;
  height: 18px;
}

.button-primary {
  background: var(--button);
  color: var(--button-ink);
}

.button-primary:hover {
  background: var(--button-hover);
}

.button-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
}

.button-secondary:hover {
  border-color: var(--ink);
}

.button-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-2);
}

.button-ghost:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.button-block {
  width: 100%;
}

.button:active {
  transform: translateY(1px);
}

.button[disabled], .button[aria-busy="true"] {
  opacity: 0.6;
  cursor: progress;
}

.button-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--link);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-size: 0.92rem;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  color: var(--ink-2);
}

.icon-button:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.icon-button .icon {
  width: 18px;
  height: 18px;
}

.icon-button[disabled] {
  opacity: 0.35;
  cursor: default;
}

.icon-button-danger:hover {
  color: var(--danger);
  border-color: var(--danger);
}


.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.eyebrow a {
  text-decoration: none;
}

.eyebrow a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.eyebrow .icon {
  width: 18px;
  height: 18px;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 62ch;
  margin-top: 16px;
}

.lead-prose {
  max-width: 68ch;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 1.06rem;
}

.lead-prose p + p {
  margin-top: 0.8em;
}

.section {
  padding-block: clamp(40px, 6vw, 72px);
}

.section + .section {
  padding-top: 0;
}

.section-band + .section, .section + .section-band {
  padding-top: clamp(40px, 6vw, 72px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 24px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 24px;
}

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

.section-title-small {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  margin-bottom: 18px;
}

.section-lead {
  color: var(--muted);
  max-width: 52ch;
}

.section-label {
  font-family: var(--font-text);
  font-stretch: 100%;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.notice {
  padding: 14px 18px;
  border-radius: var(--radius-small);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.badge {
  display: inline-block;
  vertical-align: middle;
  font-family: var(--font-text);
  font-stretch: 100%;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  text-decoration: none;
}


.page-head {
  padding: clamp(24px, 4vw, 44px) 0 clamp(24px, 3vw, 36px);
}

.page-head h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  max-width: 22ch;
}

@media (max-width: 719px) {
  .page-head h1 {
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

.page-head-compact h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--muted);
}

.breadcrumbs li + li::before {
  content: "/";
  margin: 0 10px;
  color: var(--line-strong);
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.breadcrumbs [aria-current] {
  color: var(--ink-2);
}


.hero {
  position: relative;
  padding-top: clamp(36px, 7vw, 88px);
  overflow: hidden;
}

.hero-inner {
  position: relative;
}

.hero .eyebrow {
  color: var(--ink-2);
}

.hero .eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--zone-endurance), var(--zone-threshold), var(--zone-anaerobic));
}

.hero-title {
  font-size: clamp(2.4rem, 6.2vw, 3.4rem);
  font-weight: 800;
  font-stretch: 118%;
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 17ch;
}

.hero-lead {
  margin-top: 22px;
  font-size: clamp(1.06rem, 1.8vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 54ch;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 620px;
  margin-top: 28px;
  padding: 6px 6px 6px 48px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}

.search-box:focus-within {
  border-color: var(--ink);
}

.search-box > .icon {
  position: absolute;
  left: 18px;
  color: var(--muted);
}

.search-box input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 1.02rem;
  outline: none;
}

.search-box input::placeholder {
  color: var(--muted);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-facts li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hero-facts strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 750;
  font-size: 1.15rem;
}

.hero-visual {
  margin-top: clamp(20px, 3vw, 32px);
  padding-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface-2) 70%, transparent));
}

.profile-hero {
  position: relative;
}

.profile-hero .profile-plot {
  height: clamp(120px, 18vw, 240px);
}

.profile-hero-labels {
  position: relative;
  height: 30px;
  margin-top: 10px;
  border-top: 1px solid var(--line-strong);
}

.profile-hero-label {
  position: absolute;
  top: 8px;
  padding-right: 12px;
  overflow: hidden;
}

.profile-hero-label a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}

.profile-hero-label a span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-hero-label a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.profile-hero-label .icon {
  width: 16px;
  height: 16px;
}

.hero-caption {
  display: flex;
  padding-top: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 18px;
  font-size: 0.86rem;
  color: var(--muted);
}

.zone-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--ink-2);
}

.zone-legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 719px) {
  .profile-hero-label:not(:first-child) {
    display: none;
  }

  .profile-hero-label:first-child {
    width: 100% !important;
  }
}


.profile {
  position: relative;
}

.profile-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.profile-blocks path {
  stroke: var(--chart-surface);
  vector-effect: non-scaling-stroke;
  stroke-linejoin: miter;
}

.profile-plot {
  position: relative;
}

.profile-card {
  height: 52px;
}

.profile-threshold {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid var(--line-strong);
  pointer-events: none;
}

.profile-threshold span {
  position: absolute;
  right: 0;
  bottom: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--chart-surface);
  padding: 0 0 0 6px;
}

.hero .profile-blocks path {
  stroke: var(--bg);
}

.profile-detail .profile-plot {
  height: clamp(160px, 22vw, 250px);
}

.profile-hit {
  fill: transparent;
  stroke: none;
  cursor: crosshair;
}

.profile-blocks.has-active path {
  opacity: 0.38;
  transition: opacity 0.12s ease;
}

.profile-blocks.has-active path.is-active {
  opacity: 1;
}

.profile-tooltip {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  min-width: 160px;
  max-width: 260px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-float);
  font-size: 0.85rem;
  line-height: 1.35;
  pointer-events: none;
}

.profile-tooltip strong {
  display: block;
  font-weight: 650;
  margin-bottom: 2px;
}

.profile-tooltip span {
  color: var(--muted);
}

.profile-axis {
  position: relative;
  height: 22px;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.profile-axis span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
}

.profile-axis span:first-child {
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .profile-detail .profile-blocks, .profile-hero .profile-blocks {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: profile-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}

@keyframes profile-rise {
  from {
    transform: scaleY(0.04);
    opacity: 0.2;
  }

  to {
    transform: scaleY(1);
    opacity: 1;
  }
}


.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 16px;
}

.card-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  --chart-surface: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

@media (prefers-reduced-motion: no-preference) {
  .card:hover {
    transform: translateY(-2px);
  }
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
}

.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-kicker .icon {
  width: 18px;
  height: 18px;
  color: var(--ink-2);
}

.card-title {
  font-size: 1.16rem;
  font-stretch: 106%;
  font-weight: 720;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.card-title a {
  text-decoration: none;
}

.card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.card-structure {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}

.card .profile-card {
  margin-top: auto;
  border-bottom: 1px solid var(--line);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 0.84rem;
  color: var(--ink-2);
  padding-top: 2px;
}

.card-duration {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.card-duration .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.card-distance {
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}

.card-distance::before {
  content: "· ";
}

.plan-toggle {
  position: relative;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.plan-toggle:hover {
  border-color: var(--ink);
}

.plan-toggle .icon {
  width: 18px;
  height: 18px;
  grid-area: 1 / 1;
}

.plan-toggle .icon-added {
  display: none;
}

.plan-toggle[aria-pressed="true"] {
  background: var(--button);
  border-color: var(--button);
  color: var(--button-ink);
}

.plan-toggle[aria-pressed="true"] .icon-add {
  display: none;
}

.plan-toggle[aria-pressed="true"] .icon-added {
  display: block;
}

.plan-toggle-large {
  display: inline-flex;
  width: 100%;
  height: auto;
  border: 1px solid var(--button);
  background: var(--button);
  color: var(--button-ink);
}

.plan-toggle-large:hover {
  background: var(--button-hover);
}

.plan-toggle-large .icon {
  grid-area: auto;
}

.plan-toggle-large[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.plan-toggle-large[aria-pressed="true"] .icon-added {
  color: var(--success);
}


.level {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.level-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.level-bars i {
  display: block;
  width: 3px;
  border-radius: 1px;
  background: var(--line-strong);
}

.level-bars i:nth-child(1) { height: 5px; }
.level-bars i:nth-child(2) { height: 8px; }
.level-bars i:nth-child(3) { height: 12px; }

.level-1 .level-bars i:nth-child(-n+1),
.level-2 .level-bars i:nth-child(-n+2),
.level-3 .level-bars i:nth-child(-n+3) {
  background: var(--ink);
}

.zone-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.zone-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: none;
}


.sport-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.sport-tile {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon arrow" "name name" "count count" "profile profile";
  gap: 4px 12px;
  padding: 22px 22px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  --chart-surface: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.2s ease;
}

.sport-tile:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.sport-tile-icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--surface-2);
  margin-bottom: 16px;
}

.sport-tile-icon .icon {
  width: 26px;
  height: 26px;
}

.sport-tile-arrow {
  grid-area: arrow;
  justify-self: end;
  color: var(--muted);
}

.sport-tile:hover .sport-tile-arrow {
  color: var(--ink);
}

.sport-tile-name {
  grid-area: name;
  font-family: var(--font-display);
  font-weight: 780;
  font-stretch: 116%;
  font-size: 1.7rem;
  letter-spacing: -0.015em;
  line-height: 1.05;
}

.sport-tile-count {
  grid-area: count;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.sport-tile .profile-card {
  grid-area: profile;
  height: 44px;
}

.category-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--radius-small);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  height: 100%;
}

.category-tile:hover {
  border-color: var(--ink);
}

.category-tile .icon {
  grid-row: span 2;
  color: var(--muted);
}

.category-tile-name {
  font-weight: 650;
  line-height: 1.25;
}

.category-tile-meta {
  font-size: 0.84rem;
  color: var(--muted);
}


.collections {
  display: grid;
  gap: 28px;
}

.collection {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface-2);
}

.collection .card {
  --chart-surface: var(--surface);
}

.collection-head h3 {
  font-size: 1.35rem;
}

.collection-head p {
  margin-top: 6px;
  color: var(--ink-2);
}


.section-band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.how-step {
  position: relative;
  padding-top: 20px;
  border-top: 3px solid var(--line);
}

.how-step:nth-child(1) { border-top-color: var(--zone-endurance); }
.how-step:nth-child(2) { border-top-color: var(--zone-threshold); }
.how-step:nth-child(3) { border-top-color: var(--zone-anaerobic); }

.how-step-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 120%;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--muted);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

.how-step h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.how-step p {
  color: var(--ink-2);
}


.faq {
  display: grid;
  gap: 0;
  max-width: 860px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-question {
  font-family: var(--font-text);
  font-stretch: 100%;
  font-size: 1.05rem;
  font-weight: 620;
  letter-spacing: 0;
  line-height: 1.35;
}

.faq-icon {
  color: var(--muted);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 0 20px;
  color: var(--ink-2);
  max-width: 70ch;
}


.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 560;
}

.chip:hover {
  border-color: var(--ink);
}

.chip[aria-current="page"] {
  background: var(--button);
  border-color: var(--button);
  color: var(--button-ink);
}

.chip-large {
  min-height: 44px;
  padding: 0 18px;
  font-size: 1rem;
}

.chip .icon {
  width: 18px;
  height: 18px;
}

.chip-count {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.chip[aria-current="page"] .chip-count {
  color: inherit;
  opacity: 0.7;
}

.hub-categories {
  display: grid;
  gap: 12px;
  padding-bottom: 8px;
}

.listing {
  padding-top: 24px;
  padding-bottom: clamp(32px, 5vw, 56px);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 16px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.filter-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.filter-field {
  display: grid;
  gap: 4px;
}

.filter-field label, .field > span {
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

select, .field input, .personal-field input {
  appearance: none;
  -webkit-appearance: none;
  height: 40px;
  padding: 0 36px 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23646c78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  font-size: 0.94rem;
  min-width: 140px;
  max-width: 100%;
}

.field input, .personal-field input {
  background-image: none;
  padding-right: 12px;
}

select:hover, .field input:hover {
  border-color: var(--ink-2);
}

.filter-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 4px;
  font-size: 0.94rem;
  cursor: pointer;
}

.filter-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--button);
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.filter-actions .button {
  min-height: 40px;
}

.filter-reset {
  font-size: 0.92rem;
  color: var(--link);
}

.results-count {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 560;
}

.results-heading {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.search-sports {
  margin-bottom: 18px;
}

.empty-state {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  text-align: center;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.pagination ol {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination a, .pagination span {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pagination a:hover {
  background: var(--surface-2);
}

.pagination [aria-current="page"] {
  background: var(--button);
  color: var(--button-ink);
}

.pagination .is-disabled {
  color: var(--line-strong);
}


.prose {
  max-width: 70ch;
  color: var(--ink-2);
  font-size: 1.04rem;
}

.prose h2 {
  color: var(--ink);
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  margin: 1.8em 0 0.6em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  color: var(--ink);
  font-size: 1.18rem;
  margin: 1.6em 0 0.5em;
}

.prose p + p {
  margin-top: 0.9em;
}

.prose ul, .prose ol {
  padding-left: 1.2em;
  margin: 0.6em 0 0;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose a {
  color: var(--link);
}

.prose .notice {
  margin-top: 1.2em;
}

.prose-layout {
  padding-bottom: clamp(40px, 6vw, 80px);
}

.prose-section {
  padding-top: 0;
}

.numbered-steps {
  counter-reset: step;
  list-style: none;
  padding: 0 !important;
}

.numbered-steps li {
  position: relative;
  padding-left: 44px;
  min-height: 30px;
}

.numbered-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 0.8em;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.table-wrap + p {
  margin-top: 1em;
}

.platform-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

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

.platform-table thead th {
  font-size: 0.76rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: var(--surface-2);
}

.platform-table tbody th {
  color: var(--ink);
  font-weight: 650;
}

.platform-table tr:last-child th, .platform-table tr:last-child td {
  border-bottom: 0;
}

.zone-list {
  display: grid;
  gap: 2px;
  margin: 1em 0 0;
}

.zone-list div {
  display: grid;
  grid-template-columns: minmax(130px, 180px) 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.zone-list dt {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 650;
}

.zone-list dd {
  margin: 0;
}

.zone-swatch {
  width: 28px;
  height: 14px;
  border-radius: 3px;
  flex: none;
}


.workout-head {
  padding-bottom: 20px;
}

.workout-head h1 {
  max-width: 24ch;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  margin: 28px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}

.stat {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 16px 18px;
  background: var(--surface);
}

.stat dt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat dt .icon {
  width: 16px;
  height: 16px;
}

.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 110%;
  font-weight: 720;
  font-size: 1.45rem;
  line-height: 1.15;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}

.stat dd .level, .stat dd .zone-chip {
  font-family: var(--font-text);
  font-stretch: 100%;
  font-size: 1.02rem;
  font-weight: 650;
  align-self: center;
}

.stat dd .zone-dot {
  width: 12px;
  height: 12px;
}

.stat-note {
  font-family: var(--font-text);
  font-stretch: 100%;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.profile-section {
  padding-bottom: 8px;
}

.profile-card-frame {
  padding: 18px clamp(14px, 2.4vw, 26px) 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  --chart-surface: var(--surface);
}

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

.workout-layout {
  display: grid;
  gap: 32px;
  padding-top: 28px;
  padding-bottom: 24px;
}

@media (min-width: 1000px) {
  .workout-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 56px;
    align-items: start;
  }

  .workout-aside {
    position: sticky;
    top: calc(var(--header-height) + 20px);
  }
}

@media (max-width: 999px) {
  .workout-aside {
    order: -1;
  }
}

.workout-main {
  display: grid;
  gap: 48px;
  min-width: 0;
}

.workout-aside {
  display: grid;
  gap: 16px;
}

.workout-actions {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.download-buttons .button {
  flex: 1 1 auto;
}

.pool-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.pool-select select {
  min-width: 100px;
}

.open-in-tredict {
  width: 100%;
}

.sync-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--muted);
}

.sync-note .icon {
  width: 16px;
  height: 16px;
}

.sync-note a {
  color: inherit;
}

.aside-heading {
  font-family: var(--font-text);
  font-stretch: 100%;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.zone-distribution {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.zone-distribution ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zone-distribution li {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
}

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

.zone-distribution-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--surface-2);
  overflow: hidden;
}

.zone-distribution-bar span {
  display: block;
  height: 100%;
  border-radius: 4px;
}

.zone-distribution-value {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  min-width: 52px;
  text-align: right;
}

.steps-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 14px;
}

.steps-toolbar h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
}

.segmented {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 3px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
}

.segmented legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.segmented label {
  position: relative;
  cursor: pointer;
}

.segmented input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.segmented span {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-2);
}

.segmented input:checked + span {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(13, 16, 20, 0.12), inset 0 0 0 1px var(--line);
}

.segmented input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.personal-panel {
  margin-bottom: 12px;
  border-radius: var(--radius-small);
  border: 1px solid var(--line);
  background: var(--surface);
}

.personal-panel summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 620;
}

.personal-panel summary::-webkit-details-marker {
  display: none;
}

.personal-summary {
  margin-left: auto;
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.personal-form {
  padding: 4px 16px 16px;
  display: grid;
  gap: 12px;
}

.personal-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.personal-field {
  display: grid;
  gap: 4px;
}

.personal-field > span:first-child {
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.input-with-unit {
  position: relative;
  display: flex;
}

.input-with-unit input {
  width: 100%;
  min-width: 0;
  padding-right: 64px;
  font-variant-numeric: tabular-nums;
}

.input-unit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.82rem;
  color: var(--muted);
  pointer-events: none;
}

.personal-help {
  font-size: 0.84rem;
  color: var(--muted);
}

.personal-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.personal-actions .button {
  min-height: 40px;
}

.personal-status {
  font-size: 0.86rem;
  color: var(--success);
}

.target-hint {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.step-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.step-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

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

.step-table thead th {
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

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

.step-number {
  width: 46px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.86rem;
}

.step-main {
  position: relative;
  padding-left: 30px !important;
}

.step-swatch {
  position: absolute;
  left: 14px;
  top: 16px;
  width: 8px;
  height: 14px;
  border-radius: 2px;
}

.step-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  font-weight: 620;
}

.step-zone {
  font-weight: 500;
  font-size: 0.84rem;
  color: var(--muted);
}

.step-note {
  display: block;
  margin-top: 2px;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.step-length, .step-target, .step-cadence {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.step-target {
  font-weight: 560;
}

.step-open {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: normal;
}

.step-rest td {
  color: var(--muted);
}

.step-group {
  background: color-mix(in srgb, var(--surface-2) 45%, var(--surface));
}

.step-group-head th {
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ink);
  padding-top: 10px;
  padding-bottom: 10px;
  background: var(--surface-2);
}

.repeat-badge {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 24px;
  margin-right: 10px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-ink);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.step-group .step-row td:first-child {
  box-shadow: inset 3px 0 0 var(--line-strong);
}

@media (max-width: 639px) {
  .step-table thead {
    display: none;
  }

  .step-table, .step-table tbody, .step-table tr {
    display: block;
  }

  .step-table .step-row {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    grid-template-areas: "number main length" "number target target" "number cadence cadence";
    gap: 2px 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }

  .step-table .step-row td {
    display: block;
    padding: 0;
    border: 0;
  }

  .step-table .step-number { grid-area: number; width: auto; }
  .step-table .step-main { grid-area: main; padding-left: 18px !important; }
  .step-table .step-length { grid-area: length; text-align: right; }
  .step-table .step-target { grid-area: target; padding-left: 18px; color: var(--ink-2); }
  .step-table .step-cadence { grid-area: cadence; padding-left: 18px; color: var(--muted); }
  .step-table .step-target:empty, .step-table .step-cadence:empty { display: none; }

  .step-swatch {
    left: 0;
    top: 4px;
  }

  .step-group-head, .step-group-head th {
    display: block;
  }

  .step-group .step-row {
    box-shadow: inset 3px 0 0 var(--line-strong);
  }

  .step-group .step-row td:first-child {
    box-shadow: none;
  }
}

.workout-description .tips {
  list-style: none;
  padding: 0;
}

.workout-description .tips li {
  position: relative;
  padding-left: 24px;
}

.workout-description .tips li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 10px;
  height: 3px;
  border-radius: 2px;
  background: var(--zone-threshold);
}

.tag-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 1.2em !important;
  font-size: 0.88rem;
}

.tag-line > span:first-child {
  font-weight: 650;
  color: var(--ink);
  margin-right: 4px;
}

.tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
}

.related {
  padding-top: 24px;
}

.related h2 {
  margin-bottom: 24px;
}


.plan-page {
  padding-bottom: clamp(40px, 6vw, 80px);
}

.plan-loading {
  color: var(--muted);
}

.empty-panel {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
}

.empty-panel h2 {
  font-size: 1.5rem;
}

.empty-panel p {
  color: var(--ink-2);
  margin-bottom: 8px;
}

.plan-layout {
  display: grid;
  gap: 28px;
}

@media (min-width: 1000px) {
  .plan-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 48px;
    align-items: start;
  }

  .plan-aside {
    position: sticky;
    top: calc(var(--header-height) + 20px);
  }
}

.plan-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.plan-settings {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.field {
  display: grid;
  gap: 4px;
}

.field-title input {
  width: 100%;
  height: 46px;
  font-size: 1.05rem;
  font-weight: 600;
}

.plan-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.plan-controls .segmented span {
  height: 36px;
}

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

.plan-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  --chart-surface: var(--surface);
}

.plan-item.is-missing {
  opacity: 0.6;
}

.plan-item-order {
  display: grid;
  gap: 6px;
}

.plan-item-kicker {
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan-item-title {
  font-size: 1.1rem;
  font-stretch: 106%;
  margin: 2px 0 4px;
}

.plan-item-title a {
  text-decoration: none;
}

.plan-item-title a:hover {
  text-decoration: underline;
}

.plan-item-structure {
  font-size: 0.86rem;
  color: var(--muted);
}

.plan-item-profile .profile-card {
  height: 38px;
  margin-top: 10px;
  border-bottom: 1px solid var(--line);
}

.plan-item-meta {
  margin-top: 8px;
  font-size: 0.84rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.plan-item-controls {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.field-day select {
  min-width: 108px;
}

@media (max-width: 639px) {
  .plan-item {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "body body" "order controls";
  }

  .plan-item-body { grid-area: body; }
  .plan-item-order { grid-area: order; display: flex; align-self: end; }
  .plan-item-controls { grid-area: controls; display: flex; align-items: flex-end; }
}

.plan-week {
  display: grid;
  gap: 18px;
}

.plan-week-row h3 {
  font-family: var(--font-text);
  font-stretch: 100%;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.plan-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.plan-day {
  min-height: 112px;
  padding: 8px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  align-content: start;
  gap: 6px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.plan-day.is-drop-target {
  border-color: var(--ink);
  background: var(--surface-2);
}

.plan-day-label {
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--muted);
}

.plan-chip {
  display: grid;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 0.78rem;
  line-height: 1.25;
  cursor: grab;
  --chart-surface: var(--surface-2);
}

.plan-chip strong {
  font-weight: 620;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.plan-chip .profile-card {
  height: 18px;
}

.plan-chip span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 719px) {
  .plan-week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-day {
    min-height: 72px;
  }
}

.plan-aside {
  display: grid;
  gap: 14px;
}

.plan-box {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.plan-box h2 {
  font-size: 1.15rem;
}

.plan-box p {
  font-size: 0.92rem;
  color: var(--ink-2);
}

.plan-summary p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.plan-zones {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  gap: 2px;
  background: var(--surface);
}

.plan-zones span {
  display: block;
  height: 100%;
}

.send-result {
  padding: 12px 14px;
  border-radius: var(--radius-small);
  background: var(--surface-2);
  font-size: 0.92rem;
}

.send-result.is-error {
  color: var(--danger);
}

.send-result a {
  color: var(--link);
  font-weight: 620;
}


.not-found {
  display: grid;
  justify-items: start;
  gap: 18px;
  padding-block: clamp(48px, 8vw, 110px);
}

.not-found h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.not-found .search-box {
  width: 100%;
  margin-top: 8px;
}

.not-found a {
  color: var(--link);
}


main {
  flex: 1 0 auto;
}

.site-footer {
  margin-top: clamp(32px, 5vw, 64px);
  padding: clamp(36px, 5vw, 56px) 0 28px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 28px;
}

.footer-brand .brand {
  grid-area: auto;
}

.footer-brand {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  max-width: 46ch;
  color: var(--muted);
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.6fr repeat(4, 1fr);
  }

  .footer-brand {
    grid-column: auto;
  }
}

.footer-column h2 {
  font-family: var(--font-text);
  font-stretch: 100%;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.footer-column h2 a {
  text-decoration: none;
}

.footer-column ul, .footer-languages ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column li + li {
  margin-top: 8px;
}

.footer-column a, .footer-languages a {
  text-decoration: none;
  color: var(--ink-2);
}

.footer-column a:hover, .footer-languages a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-bottom .risk-note {
  margin: 0;
}

.risk-note {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}

.risk-note a {
  color: inherit;
}

.risk-note a:hover {
  color: var(--ink);
}

.legal-date {
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-languages ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-languages a[aria-current="true"] {
  color: var(--ink);
  font-weight: 650;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .site-footer, .workout-aside, .plan-toggle, .personal-panel, .segmented {
    display: none !important;
  }
}
