.plans-page { min-height: 100svh; display: flex; flex-direction: column; --plan-accent: #46cbf6; }
.plans-page .plans-main { width: min(960px, calc(100% - 96px)); margin: 0 auto; padding: 40px 0 80px; flex: 1; }
.plans-page .plans-header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 16px 40px; margin-bottom: 32px; }
.plans-page h1 { color: #ffffff; font-size: 48px; line-height: 56px; font-weight: 700; letter-spacing: -.04em; }
.plans-page .plans-chapter { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 40px; padding: 32px 0; border-top: 1px solid #ffffff26; }
.plans-page .plans-chapter h2 { font-size: 24px; line-height: 32px; letter-spacing: -.02em; }
.plans-page .plans-chapter-body { min-width: 0; }
.plans-page .plans-chapter-body > p { max-width: 65ch; color: #ffffffcc; font-size: 18px; line-height: 28px; margin-bottom: 20px; }
.plans-page .profile-routing { display: grid; grid-template-columns: minmax(0,1fr) 56px 120px; gap: 16px; align-items: center; max-width: 640px; }
.plans-page .profile-route-inputs { display: grid; gap: 20px; }
.plans-page .profile-route-inputs h3 { font-size: 16px; line-height: 24px; letter-spacing: 0; font-weight: 600; }
.plans-page .profile-route-inputs span { color: #ffffffa3; font-size: 14px; line-height: 24px; }
.plans-page .profile-route-inputs ul { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px 12px; list-style: none; margin: 8px 0 0; padding: 0; }
.plans-page .profile-route-inputs li { color: #ffffffb8; font-size: 15px; line-height: 24px; }
.plans-page .profile-routing-line { align-self: stretch; }
.plans-page .profile-routing-line svg { display: block; width: 100%; height: 100%; min-height: 148px; overflow: visible; }
.plans-page .profile-routing-line path { fill: none; stroke: #ffffff77; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.plans-page .profile-routing figcaption { font-size: 17px; line-height: 26px; font-weight: 600; }
.plans-page .level-example, .plans-page .phase-example { margin-top: 8px; }
.plans-page .level-example > figcaption, .plans-page .phase-example > figcaption { color: #ffffff; font-size: 16px; line-height: 24px; margin-bottom: 16px; }
.plans-page .plot-label, .plans-page .phase-plot-label { display: flex; justify-content: space-between; color: #ffffffa3; font-size: 14px; line-height: 22px; }
.plans-page .plot-label { margin-bottom: 8px; }
.plans-page .level-geometry { position: relative; height: 160px; border-bottom: 1px solid #ffffff40; color: var(--plan-accent); }
.plans-page .level-geometry svg, .plans-page .phase-geometry svg { display: block; width: 100%; height: 100%; overflow: visible; }
.plans-page .plot-line { fill: none; stroke: var(--plan-accent); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.plans-page .plot-fill { fill: var(--plan-accent); fill-opacity: .07; }
.plans-page .plot-marker { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #ffffff; transform: translate(-50%,-50%); }
.plans-page .plot-marker.selected { width: 9px; height: 9px; background: var(--plan-accent); }
.plans-page .plot-zero { color: #ffffffa3; font-size: 13px; line-height: 20px; margin-top: 4px; }
.plans-page .level-labels { position: relative; height: 56px; margin-top: 8px; }
.plans-page .level-labels > div { position: absolute; left: var(--level-x); transform: translateX(-50%); white-space: nowrap; }
.plans-page .level-labels > div:first-child { transform: none; }
.plans-page .level-labels > div:last-child { transform: translateX(-100%); }
.plans-page .level-labels span { display: block; color: #ffffffa3; font-size: 14px; line-height: 22px; }
.plans-page .level-labels strong { display: block; font-size: 20px; line-height: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.plans-page .level-labels small { font-size: 14px; font-weight: 400; }
.plans-page .level-labels .selected strong { color: var(--plan-accent); }
.plans-page .phase-geometry { height: 84px; border-bottom: 1px solid #ffffff40; }
.plans-page .phase-plot-label { margin: 16px 0 8px; }
.plans-page .plot-selection { fill: var(--plan-accent); fill-opacity: .18; }
.plans-page .phase-axis { display: flex; justify-content: space-between; color: #ffffffa3; font-size: 14px; line-height: 24px; margin-top: 8px; }
.plans-page .phase-selected { font-size: 15px; line-height: 24px; margin-top: 16px; color: #ffffffb8; font-variant-numeric: tabular-nums; }
.plans-page .phase-selected strong { color: var(--plan-accent); font-weight: 600; }
.plans-page .plans-chapter-body .plans-practical { font-size: 15px; line-height: 24px; margin: 20px 0 8px; }
.plans-page .plans-text-link { display: inline-flex; align-items: center; min-height: 36px; font-size: 15px; line-height: 24px; text-decoration: underline; }
.plans-page .plans-reference { border-top: 1px solid #ffffff26; padding: 32px 0; }
.plans-page .plans-reference > header { margin-bottom: 24px; }
.plans-page .plans-reference h2 { font-size: 28px; line-height: 36px; letter-spacing: -.02em; }
.plans-page .plans-reference header p { color: #ffffffb8; font-size: 16px; line-height: 26px; max-width: 70ch; margin-top: 8px; }
.plans-page .reference-part { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 40px; margin: 28px 0 0; }
.plans-page .reference-part > h3 { font-size: 17px; line-height: 26px; letter-spacing: 0; }
.plans-page .plans-math { margin: 0; }
.plans-page .plans-math > div { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 24px; margin-bottom: 16px; }
.plans-page .plans-math dt { color: #ffffffa3; font-size: 14px; line-height: 24px; }
.plans-page .plans-math dd { margin: 0; color: #ffffffdd; font-size: 15px; line-height: 25px; min-width: 0; }
.plans-page .plans-math code { font-size: 14px; overflow-wrap: anywhere; }
.plans-page .plans-table-scroll { min-width: 0; overflow-x: auto; }
.plans-page .plans-examples { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 24px; font-variant-numeric: tabular-nums; }
.plans-page .plans-examples caption { text-align: left; color: #ffffffa3; font-size: 14px; line-height: 24px; margin-bottom: 12px; }
.plans-page .plans-examples th, .plans-page .plans-examples td { padding: 10px 8px; border-bottom: 1px solid #ffffff26; text-align: left; font-weight: 400; }
.plans-page .plans-examples th:first-child { padding-left: 0; }
.plans-page .plans-examples thead th { color: #ffffffa3; font-size: 14px; }
.plans-page .plans-examples tbody th { font-weight: 600; }
.plans-page .plans-examples td:nth-last-child(-n+2), .plans-page .plans-examples th:nth-last-child(-n+2) { text-align: right; }
.plans-page .plans-examples tr[data-program="sprint"] th { color: #00e998; }
.plans-page .plans-examples tr[data-program="fat-loss"] th { color: #ff9d00; }
.plans-page .plans-examples tr[data-program="stamina"] th { color: #46cbf6; }
.plans-page .plans-examples tr[data-program="hills"] th { color: #f5ef00; }
.plans-page .plans-source-index { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); list-style: none; padding: 0; margin: 24px 0 0; gap: 24px 32px; }
.plans-page .plans-source-index li { min-width: 0; }
.plans-page .plans-source-index a { display: inline-flex; align-items: center; min-height: 36px; font-size: 18px; line-height: 28px; font-weight: 600; text-decoration: underline; }
.plans-page .plans-source-index p { max-width: 44ch; margin: 4px 0 0; color: #ffffffb8; font-size: 16px; line-height: 24px; }
.plans-page .guide-library { border-top: 1px solid #ffffff26; padding-top: 32px; }
.plans-page .guide-library h2 { font-size: 20px; line-height: 28px; margin-bottom: 16px; }
.plans-page .guide-library div { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.plans-page .guide-library a { display: inline-flex; align-items: center; min-height: 36px; font-size: 15px; line-height: 24px; text-decoration: underline; }
@media (max-width:760px) {
  .plans-page .plans-main { width: calc(100% - 40px); padding: 24px 0 56px; }
  .plans-page h1 { width: 100%; font-size: 36px; line-height: 44px; }
  .plans-page .plans-header { justify-content: center; gap: 12px; text-align: center; }
  .plans-page .plans-jump { justify-content: center; }
  .plans-page .plans-chapter, .plans-page .reference-part { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .plans-page .plans-chapter { padding: 24px 0; }
  .plans-page .plans-chapter-body > p { font-size: 16px; line-height: 26px; margin-bottom: 16px; }
  .plans-page .profile-routing { grid-template-columns: minmax(0,1fr) 32px 76px; gap: 8px; }
  .plans-page .profile-route-inputs ul { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 8px; }
  .plans-page .profile-route-inputs li { font-size: 14px; }
  .plans-page .profile-routing figcaption { font-size: 15px; line-height: 24px; }
  .plans-page .level-geometry { height: 120px; }
  .plans-page .level-labels strong { font-size: 18px; }
  .plans-page .level-labels small { font-size: 12px; }
  .plans-page .phase-geometry { height: 72px; }
  .plans-page .plans-math > div { grid-template-columns: 88px minmax(0,1fr); gap: 16px; }
  .plans-page .plans-reference h2 { font-size: 24px; line-height: 32px; }
  .plans-page .plans-source-index { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .plans-page .plans-examples { font-size: 14px; }
  .plans-page .plans-examples th, .plans-page .plans-examples td { padding: 10px 6px; }
}

.plans-page .plans-scale-code { display: block; line-height: 28px; }
.plans-page .plans-offsets { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 24px; }
.plans-page .plans-offsets th, .plans-page .plans-offsets td { padding: 8px 0; border-bottom: 1px solid #ffffff26; text-align: left; font-weight: 400; }
.plans-page .plans-offsets thead th { color: #ffffffa3; font-size: 14px; }
.plans-page .plans-offsets td, .plans-page .plans-offsets th:last-child { text-align: right; font-variant-numeric: tabular-nums; padding-left: 20px; }
@media (max-width:760px) {
  .plans-page .plans-math > .plans-scale-row { grid-template-columns: 1fr; gap: 4px; }
}

.plans-page .plans-jump { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; color: #ffffffa3; font-size: 14px; line-height: 24px; }
.plans-page .plans-jump a { display: inline-flex; align-items: center; min-height: 36px; }
