body { background:#fff; margin:0; padding:0; box-sizing:border-box; min-height:100vh; }
body.has-sidebar { background:#fff; }

.store-wrap { max-width:860px; margin:0 auto; padding:32px 20px 64px; }
.store-logo { display:block; margin:0 auto 20px; max-width:150px; }
.store-head { text-align:center; margin-bottom:24px; }
.store-head__badge {
    display:block; margin:0 auto 10px; width:88px; height:88px; object-fit:contain;
    border-radius:16px; box-shadow:0 2px 10px oklch(0% 0 0 / 0.14);
}
.store-head h1 { margin:0 0 6px; font-size:1.7rem; color:oklch(28% 0.12 155); }
.store-head p { color:#64748b; font-size:1em; margin:0; }

.store-notice { border-radius:8px; padding:12px 16px; font-size:.9em; margin-bottom:16px; }
.store-notice--warn { color:#92400e; background:#fef3c7; border:1px solid #fcd34d; }
.store-notice--err  { color:#991b1b; background:#fee2e2; border:1px solid #fca5a5; }

.store-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:20px; margin-bottom:28px; }

.store-card { background:#fff; border:1px solid #e2e8f0; border-radius:14px; box-shadow:0 2px 12px rgba(0,0,0,.05); padding:24px 22px; display:flex; flex-direction:column; }
.store-card--soon { opacity:.72; }
.store-card__title { margin:0 0 6px; font-size:1.15rem; color:#1a1a2e; }
.store-card__blurb { color:#475569; font-size:.9em; line-height:1.55; margin:0 0 16px; }
.store-card__pill { align-self:flex-start; font-size:.72em; font-weight:700; text-transform:uppercase; letter-spacing:.04em; padding:2px 9px; border-radius:999px; background:#e2e8f0; color:#475569; margin-bottom:12px; }
.store-card__pill--ok { background:oklch(93% 0.05 155); color:oklch(35% 0.14 155); }
.store-card__spacer { flex:1; }

.store-device-note { display:flex; align-items:center; gap:7px; background:#f1f5f9; border:1px solid #e2e8f0; border-radius:8px; padding:8px 12px; font-size:.82em; font-weight:600; color:#334155; margin:0 0 16px; }

.store-plans { display:flex; flex-direction:column; gap:10px; margin-bottom:6px; }
.store-plan { border:1px solid #e2e8f0; border-radius:10px; padding:14px 16px; }
.store-plan--best { border-color:oklch(70% 0.12 155); background:oklch(98% 0.02 155); }
.store-plan__label { font-size:.78em; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:#64748b; }
.store-plan--best .store-plan__label { color:oklch(38% 0.14 155); }
.store-plan__price { font-size:1.5rem; font-weight:700; color:oklch(32% 0.15 155); margin:2px 0 2px; }
.store-plan__save { font-size:.8em; color:oklch(40% 0.13 155); margin:0 0 10px; }
.store-plan__note { font-size:.8em; color:#94a3b8; margin:0 0 10px; }

.store-btn { display:inline-block; width:100%; box-sizing:border-box; text-align:center; background:oklch(45% 0.16 155); color:#fff; border:none; border-radius:8px; padding:11px 20px; font-size:.98em; font-weight:700; cursor:pointer; text-decoration:none; }
.store-btn:hover { background:oklch(37% 0.15 155); }
.store-btn--ghost { background:#fff; color:oklch(40% 0.13 155); border:1px solid oklch(75% 0.1 155); }
.store-btn--ghost:hover { background:oklch(97% 0.02 155); }
.store-btn[disabled] { background:#cbd5e1; cursor:not-allowed; }

.store-sub-summary { font-size:.9em; color:#334155; line-height:1.7; margin:0 0 14px; }
.store-sub-summary strong { color:#1a1a2e; }
.store-sub-badge { display:inline-block; font-size:.72em; font-weight:700; text-transform:uppercase; letter-spacing:.03em; padding:2px 9px; border-radius:999px; }
.store-sub-badge--active { background:oklch(93% 0.05 155); color:oklch(35% 0.14 155); }
.store-sub-badge--trialing { background:#dbeafe; color:#1e40af; }
.store-sub-badge--past_due, .store-sub-badge--canceled { background:#fee2e2; color:#991b1b; }

.store-qty-row { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.store-qty-row select { padding:8px 10px; border:1px solid #cbd5e1; border-radius:6px; font-size:.9em; }
.store-token-balance { font-size:.9em; color:#334155; margin:0 0 12px; }
.store-token-balance strong { font-size:1.15em; color:oklch(32% 0.15 155); }

.store-links { text-align:center; font-size:.9em; color:#6c757d; }
.store-links a { color:oklch(45% 0.16 155); text-decoration:none; }
.store-links a:hover { text-decoration:underline; }

/* ── One-on-one coaching ── */
.store-coaching { display:grid; grid-template-columns:170px minmax(0,1fr); gap:20px 24px; margin-bottom:20px; }
.store-coaching__brand { display:flex; align-items:center; justify-content:center; background:#fff; border:1px solid #e2e8f0; border-radius:12px; padding:14px; align-self:start; }
.store-coaching__brand img { width:100%; height:auto; display:block; }
.store-coaching__body { min-width:0; }
.store-coaching__features { list-style:none; margin:8px 0 0; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr)); gap:8px 18px; font-size:.9em; color:#334155; line-height:1.45; }
.store-coaching__features li { position:relative; padding-left:26px; }
.store-coaching__features li::before { content:"\2713"; position:absolute; left:0; top:1px; width:18px; height:18px; border-radius:5px; background:oklch(93% 0.05 155); color:oklch(40% 0.14 155); font-size:.78em; font-weight:700; display:flex; align-items:center; justify-content:center; }
.store-coaching__buy { grid-column:1 / -1; display:flex; flex-wrap:wrap; align-items:center; gap:10px 20px; border-top:1px solid #eef2f6; padding-top:16px; }
.store-coaching__buy .store-plan__price { margin:0; }
.store-coaching__buy .store-plan__note { margin:0; flex:1 1 200px; }
.store-coaching__buy form { margin:0; }
.store-coaching__buy .store-btn { width:auto; min-width:200px; }
.store-coaching__chip--out { background:#fee2e2; color:#991b1b; }
.store-coaching--soldout .store-coaching__brand { opacity:.7; }
@media (max-width:640px) {
    .store-coaching { grid-template-columns:minmax(0,1fr); }
    .store-coaching__brand { width:150px; }
    .store-coaching__buy .store-btn, .store-coaching__buy form { width:100%; }
}
html.dark-mode .store-coaching__features { color:#cbd5e1; }
html.dark-mode .store-coaching__buy { border-color:#334155; }
html.dark-mode .store-coaching__chip--out { background:#451a1a; color:#fca5a5; }

/* ── Training plans: store listing ── */
.store-plans-section { margin:8px 0 28px; }
.store-section-title { font-size:1.35rem; color:oklch(28% 0.12 155); margin:0 0 4px; }
.store-section-sub { color:#64748b; font-size:.92em; margin:0 0 16px; }
.store-card--plan { text-decoration:none; color:inherit; transition:border-color .15s, box-shadow .15s; }
.store-card--plan:hover, .store-card--plan:focus-visible { border-color:oklch(70% 0.12 155); box-shadow:0 4px 18px rgba(0,0,0,.08); }
.tplan-meta { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.tplan-chip { font-size:.74em; font-weight:700; padding:3px 10px; border-radius:999px; background:#eef2f6; color:#334155; }
.tplan-chip--owned { background:oklch(93% 0.05 155); color:oklch(35% 0.14 155); }
.tplan-author { color:#64748b; font-size:.86em; margin:0 0 10px; }
.tplan-foot { display:flex; align-items:baseline; justify-content:space-between; gap:10px; padding-top:12px; border-top:1px solid #eef2f6; }
.tplan-price { font-size:1.3rem; font-weight:700; color:oklch(32% 0.15 155); }
.tplan-price .tplan-sold { display:block; margin-top:2px; font-size:12px; font-weight:500; color:#64748b; }
.store-plan__note .tplan-sold { font-weight:600; color:#334155; }
html.dark-mode .tplan-price .tplan-sold { color:#94a3b8; }
html.dark-mode .store-plan__note .tplan-sold { color:#cbd5e1; }
.tplan-cta { font-size:.88em; font-weight:700; color:oklch(45% 0.16 155); }

/* ── Training plans: preview page ── */
.tplan-wrap { max-width:1080px; }
.tplan-back { display:flex; flex-wrap:wrap; gap:6px; font-size:.88em; color:#94a3b8; margin-bottom:14px; }
.tplan-back a { color:oklch(45% 0.16 155); text-decoration:none; }
.tplan-back a:hover { text-decoration:underline; }
.tplan-hero { margin-bottom:22px; }
.tplan-hero__img { display:block; width:100%; max-height:340px; object-fit:cover; border-radius:14px; margin:0 0 16px; background:#e2e8f0; }
.tplan-hero h1 { margin:4px 0 4px; font-size:clamp(1.5rem, 3vw, 2.1rem); color:#1a1a2e; line-height:1.2; }
.tplan-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:28px; align-items:start; }
.tplan-buy { position:sticky; top:20px; }
.tplan-buy__price { font-size:2rem; font-weight:700; color:oklch(32% 0.15 155); }
.tplan-buy__note { margin-top:8px; }
.tplan-buy__list { margin:16px 0 0; padding-left:18px; font-size:.86em; color:#475569; line-height:1.7; }
.tplan-author { display:flex; align-items:center; gap:8px; }
.tplan-coach { margin-top:16px; padding-top:14px; border-top:1px solid #eef2f6; }
.tplan-coach__head { display:flex; align-items:center; gap:12px; }
.tplan-coach__label { font-size:.74em; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:#64748b; }
.tplan-coach__name { font-weight:700; color:#1a1a2e; }
.tplan-coach__about { margin:10px 0 0; font-size:.88em; line-height:1.55; color:#475569; white-space:pre-line; }
html.dark-mode .tplan-coach { border-top-color:#334155; }
html.dark-mode .tplan-coach__name { color:#e2e8f0; }
html.dark-mode .tplan-coach__about { color:#cbd5e1; }
.tplan-coach__bio { display:inline-block; margin-top:10px; font-size:.88em; font-weight:600; color:#1d4ed8; text-decoration:none; }
.tplan-coach__bio:hover, .tplan-coach__bio:focus-visible { text-decoration:underline; }
html.dark-mode .tplan-coach__bio { color:#93c5fd; }
html.dark-mode .tplan-coach__label { color:#94a3b8; }

.tplan-section { background:#fff; border:1px solid #e2e8f0; border-radius:14px; padding:20px 22px; margin-bottom:20px; }
.tplan-section h2 { margin:0 0 10px; font-size:1.1rem; color:#1a1a2e; }
.tplan-section__head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.tplan-section__head h2 { margin:0; }
.tplan-section__sub { color:#64748b; font-size:.86em; margin:6px 0 14px; }
.tplan-desc { color:#334155; font-size:.93em; line-height:1.65; overflow-wrap:anywhere; }
.tplan-desc img { max-width:100%; height:auto; }
.tplan-desc h2, .tplan-desc h3 { font-size:1.02rem; margin:18px 0 6px; }
.tplan-desc a { color:oklch(45% 0.16 155); }

.tplan-tabs { display:flex; gap:4px; background:#f1f5f9; padding:3px; border-radius:8px; }
.tplan-tab { border:none; background:none; padding:6px 12px; border-radius:6px; font:inherit; font-size:.84em; font-weight:600; color:#475569; cursor:pointer; }
.tplan-tab.is-active { background:#fff; color:oklch(32% 0.15 155); box-shadow:0 1px 3px rgba(0,0,0,.08); }

.tplan-wrap, .tplan-dialog { --z-easy:#9dc3e6; --z-moderate:#2e75b6; --z-hard:#1f4e79;
    --ph-base:#64748b; --ph-vo2:#2563eb; --ph-lt:#7c3aed; --ph-endurance:#16a34a; --ph-taper:#d97706; }
.tplan-z--easy { background:var(--z-easy); }
.tplan-z--moderate { background:var(--z-moderate); }
.tplan-z--hard { background:var(--z-hard); }
i.tplan-ph--base { background:var(--ph-base); }
i.tplan-ph--vo2 { background:var(--ph-vo2); }
i.tplan-ph--lt { background:var(--ph-lt); }
i.tplan-ph--endurance { background:var(--ph-endurance); }
i.tplan-ph--taper { background:var(--ph-taper); }

.tplan-weekwrap { display:grid; grid-template-columns:minmax(0,1fr) 170px; gap:12px; align-items:start; }
.tplan-weekwrap[hidden] { display:none; }
.tplan-week { display:grid; grid-template-columns:repeat(7, minmax(0,1fr)); gap:6px; }
.tplan-day { background:#f8fafc; border-radius:8px; padding:8px 6px; min-height:120px; display:flex; flex-direction:column; gap:6px; }
.tplan-day__name { font-size:.72em; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:#64748b; }
.tplan-rest { font-size:.78em; color:#94a3b8; }
.tplan-wo { background:#fff; border:1px solid #e2e8f0; border-radius:6px; --sport-dot:oklch(55% 0.14 155);
    font:inherit; text-align:left; cursor:pointer; padding:6px 7px; display:flex; flex-direction:column; gap:3px; min-width:0;
    transition:border-color .12s, box-shadow .12s; }
.tplan-wo:hover, .tplan-wo:focus-visible { border-color:oklch(70% 0.12 155); box-shadow:0 2px 8px rgba(0,0,0,.08); outline:none; }
.tplan-wo--strength { --sport-dot:#7c6fcf; }
.tplan-wo__sport { font-size:.66em; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:#64748b; display:flex; align-items:center; gap:5px; }
.tplan-wo__sport::before { content:''; width:7px; height:7px; border-radius:50%; background:var(--sport-dot); }
.tplan-wo__name { font-size:.8em; font-weight:600; color:#1a1a2e; line-height:1.3; overflow-wrap:anywhere; }
.tplan-wo__dur { font-size:.72em; color:#475569; font-variant-numeric:tabular-nums; line-height:1.4; }

.tplan-bars { display:flex; align-items:flex-end; gap:1px; height:22px; width:100%; }
.tplan-bars i { display:block; min-width:1px; border-radius:1px 1px 0 0; }
.tplan-bars--lg { height:72px; gap:2px; margin:12px 0 4px; border-bottom:1px solid #cbd5e1; }
.tplan-bars--lg i { border-radius:3px 3px 0 0; }

.tplan-totals { margin:0; background:#f8fafc; border-radius:8px; padding:10px 12px; font-size:.82em; font-variant-numeric:tabular-nums; }
.tplan-totals > div { display:flex; justify-content:space-between; gap:8px; padding:3px 0; }
.tplan-totals dt { color:#475569; }
.tplan-totals dd { margin:0; font-weight:700; color:#1a1a2e; }
.tplan-totals__head { font-weight:700; color:#1a1a2e; padding-bottom:6px !important; margin-bottom:4px; border-bottom:1px solid #e2e8f0; }
.tplan-totals__sub dt { padding-left:10px; color:#64748b; }
.tplan-totals__sub dd { font-weight:500; color:#475569; }

.tplan-legend { display:flex; flex-wrap:wrap; gap:6px 14px; margin-top:10px; font-size:.76em; color:#64748b; }
.tplan-legend span { display:inline-flex; align-items:center; gap:5px; }
.tplan-legend i { width:10px; height:10px; border-radius:2px; }
.tplan-legend--zones { margin-top:14px; }

.tplan-zones { margin:22px 0 20px; }
.tplan-zones__head { display:flex; flex-direction:column; margin-bottom:8px; }
.tplan-zones__bar { display:flex; gap:2px; height:14px; border-radius:4px; overflow:hidden; }
.tplan-zones__bar i { display:block; }

.tplan-dialog { border:none; border-radius:14px; padding:22px 24px; width:min(560px, calc(100vw - 32px)); max-height:calc(100vh - 48px);
    background:#fff; color:#334155; box-shadow:0 20px 60px rgba(0,0,0,.3); }
.tplan-dialog::backdrop { background:rgba(15,23,42,.55); }
.tplan-dialog__close { position:absolute; top:10px; right:12px; border:none; background:none; font-size:1.5rem; line-height:1; color:#64748b; cursor:pointer; padding:4px 8px; }
.tplan-detail__kicker { font-size:.72em; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:#64748b; padding-right:28px; }
.tplan-detail__title { margin:4px 0 2px; font-size:1.15rem; color:#1a1a2e; }
.tplan-detail__meta { margin:0; font-size:.86em; color:#475569; font-variant-numeric:tabular-nums; }
.tplan-detail__sub { margin:16px 0 4px; font-size:.86em; color:#1a1a2e; }
.tplan-detail__desc { margin:0; font-size:.88em; line-height:1.6; white-space:pre-line; overflow-wrap:anywhere; }
.tplan-detail__note { margin:8px 0 0; font-size:.76em; color:#64748b; }
.tplan-stepslist, .tplan-stepslist ol { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:4px; }
.tplan-stepslist { margin-top:12px; }
.tplan-step { display:grid; grid-template-columns:minmax(80px, 1fr) auto minmax(0, 1.4fr); gap:10px; align-items:baseline;
    padding:6px 10px; background:#f8fafc; border-radius:6px; font-size:.86em; }
.tplan-zb--easy { --zb:var(--z-easy); }
.tplan-zb--moderate { --zb:var(--z-moderate); }
.tplan-zb--hard { --zb:var(--z-hard); }
.tplan-step__label { font-weight:600; color:#1a1a2e; display:flex; align-items:center; gap:7px; }
.tplan-step__label::before { content:''; flex:none; width:9px; height:9px; border-radius:2px; background:var(--zb); }
.tplan-step__dur { font-variant-numeric:tabular-nums; }
.tplan-step__target { text-align:right; color:#475569; }
.tplan-stepgroup { border:1px dashed #cbd5e1; border-radius:8px; padding:6px; }
.tplan-stepgroup__x { display:block; font-size:.74em; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:#64748b; margin:0 0 5px 4px; }

.tplan-outline { max-height:420px; overflow:auto; border:1px solid #eef2f6; border-radius:8px; }
.tplan-outline table { width:100%; border-collapse:collapse; font-size:.86em; font-variant-numeric:tabular-nums; }
.tplan-outline th, .tplan-outline td { text-align:left; padding:7px 12px; border-bottom:1px solid #eef2f6; white-space:nowrap; }
.tplan-outline thead th { position:sticky; top:0; background:#f8fafc; font-size:.78em; text-transform:uppercase; letter-spacing:.04em; color:#64748b; }
.tplan-outline .num { text-align:right; }
.tplan-outline tr.is-rec td { color:#64748b; font-style:italic; }
.tplan-outline__link { border:none; background:none; padding:0; font:inherit; font-weight:600; color:oklch(45% 0.16 155); cursor:pointer; }
.tplan-outline__link:hover { text-decoration:underline; }
.tplan-dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:7px; }
.tplan-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }

.tplan-topics { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:0 0 20px; font-size:.86em; color:#64748b; }
.tplan-topics .tplan-chip { font-weight:500; text-decoration:none; min-height:28px; display:inline-flex; align-items:center; }
.tplan-topics a.tplan-chip:hover, .tplan-topics a.tplan-chip:focus-visible { background:oklch(93% 0.05 155); color:oklch(35% 0.14 155); outline:none; }
.tplan-related__head { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:8px; }
.tplan-related__all { font-size:.9em; font-weight:600; color:oklch(45% 0.16 155); text-decoration:none; }
.tplan-related__all:hover { text-decoration:underline; }
.tplan-related__list { list-style:none; margin:12px 0 0; padding:0; display:grid; grid-template-columns:repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap:10px; }
.tplan-related__card { display:flex; flex-direction:column; gap:4px; height:100%; box-sizing:border-box; padding:14px; border:1px solid #e2e8f0; border-radius:10px; color:inherit; text-decoration:none; transition:border-color .15s; }
.tplan-related__card:hover, .tplan-related__card:focus-visible { border-color:oklch(55% 0.14 155); outline:none; }
.tplan-related__card strong { color:#1a1a2e; line-height:1.3; }
.tplan-related__chips { font-size:.8em; color:#64748b; }
.tplan-related__price { margin-top:auto; font-weight:700; color:oklch(32% 0.15 155); }
html.dark-mode .tplan-related__card { border-color:#334155; }
html.dark-mode .tplan-related__card strong { color:#e2e8f0; }
html.dark-mode .tplan-related__price { color:oklch(75% 0.13 155); }
.tplan-bottom { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
    background:#fff; border:1px solid #e2e8f0; border-radius:14px; padding:16px 22px; margin-bottom:20px; }
.tplan-bottom__name { font-weight:700; color:#1a1a2e; }
.tplan-bottom__sub { font-size:.86em; color:#64748b; }
.tplan-bottom__action { min-width:200px; }

.tplan-breakdown { width:100%; border-collapse:collapse; font-size:.9em; margin-bottom:0; font-variant-numeric:tabular-nums; }
.tplan-breakdown th, .tplan-breakdown td { text-align:left; padding:8px 10px; border-bottom:1px solid #eef2f6; }
.tplan-breakdown thead th { font-size:.78em; text-transform:uppercase; letter-spacing:.04em; color:#64748b; font-weight:700; }
.tplan-breakdown tbody th { font-weight:600; color:#1a1a2e; }

.tplan-chart { margin:0; }
.tplan-chart figcaption { display:flex; flex-direction:column; margin-bottom:10px; }
.tplan-chart__title { font-weight:700; color:#1a1a2e; font-size:.95em; }
.tplan-chart__sub { color:#64748b; font-size:.82em; }
.tplan-chart__plot { display:flex; gap:8px; height:160px; }
.tplan-chart__axis { display:flex; flex-direction:column; justify-content:space-between; font-size:.72em; color:#94a3b8; text-align:right; min-width:26px; font-variant-numeric:tabular-nums; }
.tplan-chart__bars { position:relative; flex:1; display:flex; align-items:flex-end; gap:2px; border-bottom:1px solid #cbd5e1;
    background:linear-gradient(to bottom, #eef2f6 1px, transparent 1px) 0 0 / 100% 50%; }
.tplan-chart__col { flex:1; height:100%; display:flex; align-items:flex-end; cursor:default; outline:none; --bar:oklch(55% 0.14 155); }
.tplan-chart__col.tplan-ph--base { --bar:var(--ph-base); }
.tplan-chart__col.tplan-ph--vo2 { --bar:var(--ph-vo2); }
.tplan-chart__col.tplan-ph--lt { --bar:var(--ph-lt); }
.tplan-chart__col.tplan-ph--endurance { --bar:var(--ph-endurance); }
.tplan-chart__col.tplan-ph--taper { --bar:var(--ph-taper); }
.tplan-chart__bar { width:100%; background:var(--bar); border-radius:4px 4px 0 0; min-height:2px; transition:filter .12s; }
.tplan-chart__col.is-rec .tplan-chart__bar { opacity:.45; }
.tplan-chart__col.is-sample { cursor:pointer; }
.tplan-chart__col.is-sample .tplan-chart__bar { outline:2px solid #1a1a2e; outline-offset:1px; }
.tplan-chart__col.is-hot .tplan-chart__bar, .tplan-chart__col:focus-visible .tplan-chart__bar { filter:brightness(.8); }
.tplan-chart__tip { position:absolute; bottom:calc(100% + 6px); transform:translateX(-50%); background:#1a1a2e; color:#fff; font-size:.76em; font-weight:600; padding:4px 8px; border-radius:6px; white-space:nowrap; pointer-events:none; }
.tplan-chart__weeks { display:flex; justify-content:space-between; font-size:.72em; color:#94a3b8; margin:4px 0 0 34px; }
.tplan-chart__table { margin-top:10px; font-size:.84em; }
.tplan-chart__table summary { cursor:pointer; color:oklch(45% 0.16 155); font-weight:600; }
.tplan-chart__table table { border-collapse:collapse; margin-top:6px; font-variant-numeric:tabular-nums; }
.tplan-chart__table th, .tplan-chart__table td { padding:3px 14px 3px 0; text-align:left; }

.tplan-steps { margin:0; padding-left:20px; color:#334155; font-size:.92em; line-height:1.7; }

@media (max-width: 900px) {
    .tplan-layout { grid-template-columns:1fr; }
    .tplan-buy { position:static; order:-1; }
    .tplan-weekwrap { grid-template-columns:1fr; }
    .tplan-week { grid-template-columns:1fr; }
    .tplan-day { min-height:0; flex-direction:row; flex-wrap:wrap; align-items:flex-start; }
    .tplan-day__name { width:40px; padding-top:6px; }
    .tplan-wo, .tplan-rest { flex:1; min-width:180px; }
    .tplan-rest { padding-top:6px; }
    .tplan-bottom__action { min-width:0; width:100%; }
}
@media (max-width: 480px) {
    .tplan-step { grid-template-columns:1fr auto; }
    .tplan-step__target { grid-column:1 / -1; text-align:left; }
}


html.dark-mode body, html.dark-mode body.has-sidebar { background:#0f172a; }
html.dark-mode .tplan-section { background:#1e293b; border-color:#334155; }
html.dark-mode .tplan-hero h1, html.dark-mode .tplan-section h2, html.dark-mode .tplan-chart__title,
html.dark-mode .tplan-wo__name, html.dark-mode .tplan-breakdown tbody th { color:#e2e8f0; }
html.dark-mode .tplan-desc, html.dark-mode .tplan-steps, html.dark-mode .tplan-wo__desc,
html.dark-mode .tplan-wo__dur, html.dark-mode .tplan-buy__list { color:#cbd5e1; }
html.dark-mode .tplan-day { background:#0f172a; }
html.dark-mode .tplan-wo { background:#1e293b; border-color:#334155; --sport-dot:oklch(68% 0.13 155); }
html.dark-mode .tplan-wo--strength { --sport-dot:#a59af0; }
html.dark-mode .tplan-chip { background:#334155; color:#e2e8f0; }
html.dark-mode .tplan-tabs { background:#0f172a; }
html.dark-mode .tplan-tab { color:#94a3b8; }
html.dark-mode .tplan-tab.is-active { background:#334155; color:#e2e8f0; }
html.dark-mode .tplan-breakdown th, html.dark-mode .tplan-breakdown td { border-color:#334155; }
html.dark-mode .tplan-chart__bars { border-color:#475569; background:linear-gradient(to bottom, #334155 1px, transparent 1px) 0 0 / 100% 50%; }
html.dark-mode .tplan-wrap, html.dark-mode .tplan-dialog { --z-easy:#5b83a8; --z-moderate:#5b9bd5; --z-hard:#bcd9f2;
    --ph-base:#94a3b8; --ph-vo2:#60a5fa; --ph-lt:#a78bfa; --ph-endurance:#4ade80; --ph-taper:#fbbf24; }
html.dark-mode .tplan-chart__col { --bar:oklch(68% 0.13 155); }
html.dark-mode .tplan-chart__col.is-hot .tplan-chart__bar, html.dark-mode .tplan-chart__col:focus-visible .tplan-chart__bar { filter:brightness(1.25); }
html.dark-mode .tplan-chart__col.is-sample .tplan-chart__bar { outline-color:#e2e8f0; }
html.dark-mode .tplan-totals, html.dark-mode .tplan-step { background:#0f172a; }
html.dark-mode .tplan-totals dd, html.dark-mode .tplan-totals__head, html.dark-mode .tplan-detail__title,
html.dark-mode .tplan-detail__sub, html.dark-mode .tplan-step__label, html.dark-mode .tplan-bottom__name { color:#e2e8f0; }
html.dark-mode .tplan-totals dt, html.dark-mode .tplan-totals__sub dd, html.dark-mode .tplan-detail__meta,
html.dark-mode .tplan-step__target, html.dark-mode .tplan-legend { color:#94a3b8; }
html.dark-mode .tplan-totals__head, html.dark-mode .tplan-bars--lg, html.dark-mode .tplan-stepgroup { border-color:#334155; }
html.dark-mode .tplan-dialog { background:#1e293b; color:#cbd5e1; }
html.dark-mode .tplan-bottom { background:#1e293b; border-color:#334155; }
html.dark-mode .tplan-outline, html.dark-mode .tplan-outline th, html.dark-mode .tplan-outline td { border-color:#334155; }
html.dark-mode .tplan-outline thead th { background:#0f172a; }
html.dark-mode .tplan-outline td { color:#cbd5e1; }
html.dark-mode .tplan-foot { border-color:#334155; }
html.dark-mode .tplan-price, html.dark-mode .tplan-buy__price { color:oklch(75% 0.13 155); }
html.dark-mode .store-card { background:#1e293b; border-color:#334155; }
html.dark-mode .store-card__title { color:#e2e8f0; }
html.dark-mode .store-card__blurb, html.dark-mode .store-sub-summary { color:#94a3b8; }
html.dark-mode .store-plan { border-color:#334155; }
html.dark-mode .store-plan--best { background:#172033; border-color:oklch(45% 0.12 155); }
html.dark-mode .store-head p, html.dark-mode .store-links { color:#64748b; }
html.dark-mode .store-token-balance { color:#94a3b8; }
html.dark-mode .store-device-note { background:#172033; border-color:#334155; color:#cbd5e1; }


/* ── Store redesign (body.rd-page.st-redesign, tokens from tp_redesign.css) ──
   Rules start with .st-redesign so they outrank the html.dark-mode rules above and
   leave the training-plan preview pages (which share this file) unchanged. */
body.st-redesign,
body.st-redesign.has-sidebar,
html.dark-mode body.st-redesign,
html.dark-mode body.st-redesign.has-sidebar { background: var(--rd-surface); font-family: 'IBM Plex Sans', Helvetica, Arial, sans-serif; color: var(--rd-ink); -webkit-font-smoothing: antialiased; }
body.st-redesign { min-height: 100vh; }
body.st-redesign .container { background: var(--rd-surface); }
body.st-redesign .st-head__inner { max-width: 1200px; padding: 22px 28px 20px; gap: 14px; }
body.st-redesign .st-hero { display: flex; align-items: center; gap: 18px; }
body.st-redesign .st-hero .store-head__badge { width: 64px; height: 64px; margin: 0; flex: none; border-radius: 14px; box-shadow: none; border: 1px solid var(--rd-border); }
body.st-redesign .st-hero__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
body.st-redesign .st-head .store-logo { margin: 0 0 4px; max-width: 120px; }
body.st-redesign .store-wrap { max-width: 1200px; padding: 24px 28px 64px; }
body.st-redesign .store-head p { color: var(--rd-muted); }

body.st-redesign .store-notice { border-radius: 10px; font-size: 14px; }
body.st-redesign .store-notice--warn { color: #8a4b00; background: #fff6e5; border-color: #f3d29a; }
html.dark-mode body.st-redesign .store-notice--warn { color: #f0c27a; background: #33260f; border-color: #6b4a1c; }
body.st-redesign .store-notice--err { color: var(--rd-danger); background: var(--rd-danger-soft); border-color: var(--rd-danger-border); }

body.st-redesign .store-card,
html.dark-mode body.st-redesign .store-card { background: var(--rd-surface); border: 1px solid var(--rd-border); border-radius: 12px; box-shadow: none; padding: 22px; }
body.st-redesign .store-card__title,
html.dark-mode body.st-redesign .store-card__title { color: var(--rd-heading); font-size: 17px; font-weight: 600; }
body.st-redesign .store-card__blurb,
html.dark-mode body.st-redesign .store-card__blurb,
body.st-redesign .store-sub-summary,
html.dark-mode body.st-redesign .store-sub-summary,
html.dark-mode body.st-redesign .store-token-balance { color: var(--rd-muted); }
body.st-redesign .store-sub-summary strong,
body.st-redesign .store-token-balance { color: var(--rd-ink); }
body.st-redesign .store-token-balance strong { color: var(--rd-heading); }
body.st-redesign .store-card__pill { background: var(--rd-neutral-soft); color: var(--rd-muted); }
body.st-redesign .store-card__pill--ok { background: var(--rd-success-soft); color: var(--rd-success-ink); }
body.st-redesign .store-device-note,
html.dark-mode body.st-redesign .store-device-note { background: var(--rd-surface-2); border-color: var(--rd-border); color: var(--rd-ink-2); }

body.st-redesign .store-plan,
html.dark-mode body.st-redesign .store-plan { border: 1px solid var(--rd-border); border-radius: 10px; }
body.st-redesign .store-plan--best,
html.dark-mode body.st-redesign .store-plan--best { background: var(--rd-accent-soft); border-color: var(--rd-accent); }
body.st-redesign .store-plan__label { color: var(--rd-muted); }
body.st-redesign .store-plan--best .store-plan__label { color: var(--rd-accent); }
body.st-redesign .store-plan__price { color: var(--rd-heading); }
body.st-redesign .store-plan__save { color: var(--rd-ok-ink); }
body.st-redesign .store-plan__note { color: var(--rd-faint); }

body.st-redesign .store-btn { background: var(--rd-accent); border-radius: 8px; font-family: inherit; font-weight: 600; }
body.st-redesign .store-btn:hover { background: var(--rd-accent-hover); }
body.st-redesign .store-btn--ghost { background: var(--rd-surface); color: var(--rd-ink); border: 1px solid var(--rd-input-border); }
body.st-redesign .store-btn--ghost:hover { background: var(--rd-surface); border-color: var(--rd-accent); color: var(--rd-accent); }
body.st-redesign .store-btn[disabled] { background: var(--rd-switch-off); }
body.st-redesign .store-sub-badge--active { background: var(--rd-success-soft); color: var(--rd-success-ink); }
body.st-redesign .store-sub-badge--trialing { background: var(--rd-accent-soft); color: var(--rd-accent); }
body.st-redesign .store-qty-row select { background: var(--rd-surface); border-color: var(--rd-input-border); color: var(--rd-ink); height: 36px; border-radius: 8px; }
body.st-redesign .store-links,
html.dark-mode body.st-redesign .store-links { color: var(--rd-muted); }
body.st-redesign .store-links a { color: var(--rd-accent); }

/* Training plans listing */
body.st-redesign .store-section-title { color: var(--rd-heading); font-size: 20px; font-weight: 600; }
body.st-redesign .store-section-sub { color: var(--rd-muted); }
body.st-redesign .store-card--plan { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
body.st-redesign .store-card--plan:hover,
body.st-redesign .store-card--plan:focus-visible { transform: translateY(-4px); border-color: var(--rd-accent); box-shadow: 0 12px 28px rgb(15 23 42 / .10); outline: none; }
html.dark-mode body.st-redesign .store-card--plan:hover,
html.dark-mode body.st-redesign .store-card--plan:focus-visible { box-shadow: 0 12px 28px rgb(0 0 0 / .45); }
body.st-redesign .tplan-chip,
html.dark-mode body.st-redesign .tplan-chip { background: var(--rd-neutral-soft); color: var(--rd-muted); }
body.st-redesign .tplan-chip--owned,
html.dark-mode body.st-redesign .tplan-chip--owned { background: var(--rd-success-soft); color: var(--rd-success-ink); }
body.st-redesign .tplan-author { color: var(--rd-muted); }
body.st-redesign .tplan-foot,
html.dark-mode body.st-redesign .tplan-foot { border-top-color: var(--rd-border-soft); }
body.st-redesign .tplan-price,
html.dark-mode body.st-redesign .tplan-price { color: var(--rd-heading); }
body.st-redesign .tplan-cta { color: var(--rd-accent); }

/* Store tabs: real links, one URL per tab */
.store-plan__per { font-size: .5em; font-weight: 500; }
.store-card__form { margin-bottom: 8px; }
.store-coaching__body h3.store-plan__label { margin: 14px 0 0; }
.store-grid--plans { list-style: none; padding: 0; margin-top: 0; }
.store-grid--plans > li { display: flex; min-width: 0; }
.store-grid--plans > li > .store-card { flex: 1; min-width: 0; }
.store-grid--plans > li[hidden] { display: none; }

/* Training plans: search and filters */
.st-finder { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin: 0 0 18px; }
.st-finder__search, .st-finder__status { flex: 1 0 100%; }
.st-finder .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.st-redesign .st-finder__search { position: relative; display: block; }
body.st-redesign .st-finder__search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--rd-faint); pointer-events: none; }
body.st-redesign .st-finder__search input { width: 100%; box-sizing: border-box; height: 46px; padding: 0 14px 0 42px; border: 1px solid var(--rd-input-border); border-radius: 10px; background: var(--rd-surface); color: var(--rd-ink); font: inherit; font-size: 16px; }
body.st-redesign .st-finder__search input::placeholder { color: var(--rd-faint); }
body.st-redesign .st-finder__search input:focus { outline: none; border-color: var(--rd-accent); box-shadow: 0 0 0 3px var(--rd-accent-ring); }
body.st-redesign .st-filter { display: flex; align-items: center; gap: 10px; min-width: 0; }
body.st-redesign .st-filter__label { flex: none; color: var(--rd-muted); font-size: 13px; font-weight: 600; }
body.st-redesign .st-filter__chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
body.st-redesign .st-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--rd-border); border-radius: 999px; background: var(--rd-surface); color: var(--rd-ink-2); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s, color .15s; }
body.st-redesign .st-chip:hover { border-color: var(--rd-accent); color: var(--rd-accent); }
body.st-redesign .st-chip:focus-visible { outline: 2px solid var(--rd-accent); outline-offset: 2px; }
body.st-redesign .st-chip[aria-pressed="true"] { background: var(--rd-accent); border-color: var(--rd-accent); color: #fff; }
body.st-redesign .st-chip__count { font-size: 12px; font-weight: 600; opacity: .7; }
body.st-redesign .st-finder__status { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.st-redesign .st-finder__count { margin: 0; color: var(--rd-muted); font-size: 14px; }
body.st-redesign .st-finder__clear { border: 0; background: none; padding: 6px 0; color: var(--rd-accent); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
body.st-redesign .st-finder__empty { padding: 40px 16px; border: 1px dashed var(--rd-border); border-radius: 12px; text-align: center; color: var(--rd-muted); }
body.st-redesign .st-finder__empty p { margin: 0 0 14px; }
body.st-redesign .st-finder__empty .store-btn { width: auto; }
.st-finder__empty[hidden], .st-finder__clear[hidden] { display: none; }
body.st-redesign .st-head__inner { flex-direction: column; align-items: stretch; }
/* Store top: brand + giving note, then one compact button per section, then the page title. */
body.st-redesign .st-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
body.st-redesign .st-brand { display: flex; align-items: center; gap: 12px; color: var(--rd-heading); text-decoration: none; border-radius: 12px; }
body.st-redesign .st-brand:focus-visible { outline: 2px solid var(--rd-accent); outline-offset: 3px; }
body.st-redesign .st-brand img { flex: none; width: 44px; height: 44px; box-sizing: border-box; border: 1px solid var(--rd-border); border-radius: 12px; object-fit: contain; background: #fff; }
body.st-redesign .st-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
body.st-redesign .st-brand__name { font-size: 20px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
body.st-redesign .st-brand__sub { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--rd-muted); }
body.st-redesign .st-give { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 28px auto 8px; padding: 0 16px; background: var(--rd-surface); color: var(--rd-muted); font-size: 13px; line-height: 1.4; }
body.st-redesign .st-give svg { flex: none; color: var(--rd-danger); }
body.st-redesign .st-give a { color: var(--rd-accent); font-weight: 600; }

body.st-redesign .st-sections { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 6px 0 4px; }
body.st-redesign .st-section { display: flex; align-items: center; gap: 14px; min-height: 76px; box-sizing: border-box; padding: 14px 16px; border: 2px solid var(--rd-border); border-radius: 16px; background: var(--rd-surface); color: inherit; text-decoration: none; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
body.st-redesign .st-section:hover { border-color: var(--rd-accent); }
body.st-redesign .st-section:focus-visible { outline: 3px solid var(--rd-accent); outline-offset: 2px; }
body.st-redesign .st-section.is-active { border-color: var(--rd-accent); background: var(--rd-accent-soft); box-shadow: 0 6px 18px rgba(31, 95, 168, .14); }
body.st-redesign .st-section__img { flex: none; width: 44px; height: 44px; box-sizing: border-box; border: 1px solid var(--rd-border); border-radius: 12px; object-fit: contain; background: #fff; }
body.st-redesign .st-section__img--premium { object-fit: cover; }
body.st-redesign .st-section__icon { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; box-sizing: border-box; border-radius: 12px; border: 1px solid; }
body.st-redesign .st-section__icon--coaching { background: #e5f4ea; border-color: #bfe3cb; color: #1e7a45; }
body.st-redesign .st-section__icon--gait { background: #fdeee4; border-color: #f6cfb5; color: #c2410c; }
html.dark-mode body.st-redesign .st-section__icon--coaching { background: #16301f; border-color: #275a39; color: #6fd296; }
html.dark-mode body.st-redesign .st-section__icon--gait { background: #3a2115; border-color: #6b3a20; color: #f59e6b; }
body.st-redesign .st-section__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.st-redesign .st-section__title { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: 16px; font-weight: 600; color: var(--rd-heading); }
body.st-redesign .st-section__site { font-size: 13px; font-weight: 500; color: var(--rd-muted); }
body.st-redesign .st-section__count { padding: 1px 8px; border-radius: 999px; background: var(--rd-heading); color: var(--rd-surface); font-size: 12px; font-weight: 600; line-height: 1.4; }
body.st-redesign .st-section__desc { font-size: 13px; line-height: 1.35; color: var(--rd-muted); }
body.st-redesign .st-head .st-hero__text { margin-top: 6px; }

@media (max-width: 960px) {
    body.st-redesign .st-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    body.st-redesign .st-sections { gap: 8px; }
    body.st-redesign .st-section { gap: 10px; min-height: 56px; padding: 10px 12px; border-radius: 12px; }
    body.st-redesign .st-section__img,
    body.st-redesign .st-section__icon { width: 34px; height: 34px; border-radius: 9px; }
    body.st-redesign .st-section__icon svg { width: 20px; height: 20px; }
    body.st-redesign .st-section__title { font-size: 14px; gap: 6px; }
    body.st-redesign .st-section__desc { display: none; }
    body.st-redesign .st-head .rd-h1 { font-size: 24px; }
}
@media (max-width: 400px) {
    body.st-redesign .st-section { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Framed by a partner site (?embed=1): size to the content so the host can fit the iframe to it. */
body.st-embed, body.st-redesign.st-embed { min-height: 0; }

/* Distance landing pages and "Browse by distance" */
body.st-redesign .st-distances { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 16px; }
body.st-redesign .st-distances__label { font-size: 13px; font-weight: 600; color: var(--rd-muted); }
body.st-redesign .st-distances__links { display: flex; flex-wrap: wrap; gap: 6px; }
body.st-redesign a.st-chip { text-decoration: none; }
body.st-redesign a.st-chip.is-current { background: var(--rd-accent); border-color: var(--rd-accent); color: #fff; }
body.st-redesign .st-landing__intro { max-width: 72ch; margin: 0 0 24px; font-size: 16px; line-height: 1.65; color: var(--rd-ink-2); }
body.st-redesign .st-landing__intro p { margin: 0 0 14px; }
body.st-redesign .st-landing__cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
body.st-redesign .st-landing__cta .store-btn { width: auto; }
body.st-redesign .st-landing .st-distances { margin-top: 24px; }
body.st-redesign .store-card__img { display: block; width: calc(100% + 44px); max-width: none; margin: -22px -22px 14px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px 12px 0 0; }

/* Gait analysis tab */
body.st-redesign .st-gait { display: flex; flex-direction: column; gap: 24px; margin-bottom: 8px; }
body.st-redesign .st-gait__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; }
body.st-redesign .st-demo { margin: 0; overflow: hidden; border: 1px solid var(--rd-border); border-radius: 12px; background: var(--rd-surface); }
body.st-redesign .st-demo__video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0b1220; object-fit: contain; }
body.st-redesign .st-demo__speed { display: flex; align-items: center; gap: 6px; padding: 10px 14px 0; }
body.st-redesign .st-demo__speed-label { margin-right: 2px; font-size: 13px; font-weight: 600; color: var(--rd-muted); }
body.st-redesign .st-demo__rate { min-width: 52px; min-height: 36px; padding: 0 10px; border: 1px solid var(--rd-border); border-radius: 999px; background: var(--rd-surface); color: var(--rd-ink-2); font: inherit; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
body.st-redesign .st-demo__rate:hover { border-color: var(--rd-accent); color: var(--rd-accent); }
body.st-redesign .st-demo__rate:focus-visible { outline: 2px solid var(--rd-accent); outline-offset: 2px; }
body.st-redesign .st-demo__rate[aria-pressed="true"] { background: var(--rd-accent); border-color: var(--rd-accent); color: #fff; }
body.st-redesign .st-demo__cap { display: flex; flex-direction: column; gap: 12px; padding: 12px 14px 16px; font-size: 14px; color: var(--rd-muted); }
body.st-redesign .st-demo__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
body.st-redesign .st-demo__head strong { color: var(--rd-heading); font-weight: 600; }
body.st-redesign .st-demo__stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 0; }
body.st-redesign .st-demo__stat { padding: 8px 10px; border-radius: 8px; background: var(--rd-surface-2); }
body.st-redesign .st-demo__stat dt { font-size: 12px; color: var(--rd-muted); }
body.st-redesign .st-demo__stat dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; color: var(--rd-heading); font-variant-numeric: tabular-nums; }
body.st-redesign .st-demo__note { margin: 0; font-size: 12px; color: var(--rd-faint); }

/* Cross-links between Store tabs */
body.st-redesign .store-xsell { display: block; margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; background: var(--rd-accent-soft); color: var(--rd-ink-2); font-size: 14px; line-height: 1.5; }
body.st-redesign .store-xsell img { float: left; width: 20px; height: 20px; margin: 1px 8px 0 0; border-radius: 5px; object-fit: cover; }
body.st-redesign .store-xsell a { color: var(--rd-accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
body.st-redesign .store-xsell a:hover { text-decoration: underline; }
body.st-redesign .store-chip--premium,
html.dark-mode body.st-redesign .store-chip--premium { background: #fbf1d6; color: #7a5a0c; }
html.dark-mode body.st-redesign .store-chip--premium { background: #3a2f12; color: #f0d58a; }

@media (max-width: 720px) {
    body.st-redesign .store-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    body.st-redesign .store-card { padding: 18px 16px; }
    body.st-redesign .store-card__img { width: calc(100% + 32px); margin: -18px -16px 14px; }
    body.st-redesign .store-coaching__brand { width: 120px; }
    body.st-redesign .st-finder { flex-direction: column; align-items: stretch; gap: 12px; }
    body.st-redesign .st-filter { flex-direction: column; align-items: stretch; gap: 6px; }
    body.st-redesign .st-filter__label { width: auto; }
    body.st-redesign .st-filter__chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
    body.st-redesign .st-filter__chips::-webkit-scrollbar { display: none; }
    body.st-redesign .st-head__inner { padding: 16px; }
    body.st-redesign .st-hero { align-items: flex-start; gap: 12px; }
    body.st-redesign .st-hero .store-head__badge { width: 48px; height: 48px; }
    body.st-redesign .store-wrap { padding: 16px 16px 48px; }
}

/* ── Custom Race Plan intake (/store/custom-plan) ───────────────────────── */
.cp-wrap { max-width: 720px; }
.cp-steps { margin: 0 0 18px; padding: 0 0 0 1.3em; color: var(--rd-ink); font-size: .95em; line-height: 1.6; }
.cp-steps li { margin-bottom: 4px; }
.cp-wrap:has(.cp-options) { max-width: 1040px; }
.cp-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin: 0 0 14px; }
.cp-option { background: var(--rd-surface); border: 1px solid var(--rd-border); border-radius: 14px; padding: 22px 20px;
    display: flex; flex-direction: column; }
.cp-option--best { border: 2px solid var(--rd-accent); padding: 21px 19px; }
.cp-option__name { font-size: 1.1rem; margin: 0; color: var(--rd-ink); }
.cp-option__for { font-size: .86em; color: var(--rd-muted); margin: 4px 0 14px; }
.cp-option__price { font-size: 2rem; font-weight: 700; color: var(--rd-ink); margin: 0 0 16px; line-height: 1; }
.cp-option__price span { font-size: .95rem; font-weight: 500; color: var(--rd-muted); }
.cp-option__features { list-style: none; margin: 0 0 20px; padding: 0; flex: 1; display: grid; gap: 9px; align-content: start;
    font-size: .92em; color: var(--rd-ink-2, var(--rd-ink)); line-height: 1.45; }
.cp-option__features li { padding-left: 22px; position: relative; }
.cp-option__features li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 5px;
    border-left: 2px solid var(--rd-success); border-bottom: 2px solid var(--rd-success); transform: rotate(-45deg); }
.cp-option .store-btn { min-height: 46px; }
.cp-unsure { font-size: .9em; color: var(--rd-muted); margin: 0 0 28px; }
.cp-unsure a, .cp-chosen a { color: var(--rd-accent); font-weight: 600; }
.cp-how { background: var(--rd-surface); border: 1px solid var(--rd-border); border-radius: 14px; padding: 18px 20px 8px; margin: 0 0 16px; }
.cp-how .store-section-title { margin-top: 0; }
.cp-chosen { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    background: var(--rd-accent-soft); border: 1px solid var(--rd-accent-border); border-radius: 10px;
    padding: 12px 16px; margin: 0 0 16px; color: var(--rd-ink); font-size: .95em; }
.cp-chosen--plain { background: var(--rd-surface); border-color: var(--rd-border); }

.store-card--custom { border-color: var(--rd-accent-border, #c6d4e6); background: var(--rd-accent-soft, #eef4fb); }
.tplan-chip--custom { background: var(--rd-accent, #1d5fa7); color: #fff; }

.cp-form { display: grid; gap: 16px; }
.cp-section { background: var(--rd-surface); border: 1px solid var(--rd-border); border-radius: 14px; padding: 20px 20px 6px; }
.cp-section__title { font-size: 1.05rem; margin: 0 0 14px; color: var(--rd-heading); }
.cp-field { margin-bottom: 18px; }
.cp-field[hidden] { display: none; }
.cp-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cp-label { display: block; font-weight: 600; font-size: .95em; color: var(--rd-ink); margin: 0 0 6px; padding: 0; }
.cp-opt { font-weight: 400; color: var(--rd-faint); font-size: .9em; }
.cp-hint { font-size: .85em; color: var(--rd-muted); margin: -2px 0 8px; line-height: 1.45; }
.cp-field input[type=text], .cp-field input[type=email], .cp-field input[type=url], .cp-field input[type=date],
.cp-field input[type=number], .cp-field select, .cp-field textarea {
    display: block; width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px;
    font: inherit; font-size: 16px; color: var(--rd-ink); background: var(--rd-surface);
    border: 1px solid var(--rd-input-border); border-radius: 8px;
}
.cp-field textarea { resize: vertical; line-height: 1.45; }
.cp-field input:hover, .cp-field select:hover, .cp-field textarea:hover { border-color: var(--rd-input-hover); }
.cp-field input:focus-visible, .cp-field select:focus-visible, .cp-field textarea:focus-visible,
.cp-choice input:focus-visible, .cp-consent input:focus-visible {
    outline: 2px solid var(--rd-accent); outline-offset: 2px;
}
.cp-field.has-error input[type=text], .cp-field.has-error input[type=email], .cp-field.has-error input[type=url],
.cp-field.has-error input[type=date], .cp-field.has-error input[type=number], .cp-field.has-error select,
.cp-field.has-error textarea { border-color: var(--rd-danger); }
.cp-error { color: var(--rd-danger); font-size: .86em; font-weight: 600; margin: 6px 0 0; }
.cp-error::before { content: "! "; }

.cp-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-choice { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; box-sizing: border-box;
    border: 1px solid var(--rd-input-border); border-radius: 8px; background: var(--rd-surface); cursor: pointer;
    font-size: .95em; color: var(--rd-ink); }
.cp-choice:has(input:checked) { border-color: var(--rd-accent); background: var(--rd-accent-soft); }
.cp-choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--rd-accent); }
.cp-choices--days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cp-choices--days .cp-choice { flex-direction: column; justify-content: center; gap: 4px; padding: 8px 2px; font-size: .85em; }

.cp-combo { position: relative; }
.cp-combo__list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px;
    list-style: none; background: var(--rd-surface); border: 1px solid var(--rd-border); border-radius: 10px;
    box-shadow: var(--rd-shadow-pop); max-height: 280px; overflow-y: auto; }
.cp-combo__opt { display: grid; padding: 9px 10px; border-radius: 6px; cursor: pointer; color: var(--rd-ink); }
.cp-combo__opt small { color: var(--rd-muted); font-size: .82em; }
.cp-combo__opt[aria-selected=true], .cp-combo__opt:hover { background: var(--rd-accent-soft); }
.cp-race-facts { font-size: .85em; color: var(--rd-success-ink); margin: 6px 0 0; }

.cp-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92em; line-height: 1.5; color: var(--rd-ink); cursor: pointer; }
.cp-consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--rd-accent); }
.cp-consent a { color: var(--rd-accent); }
.cp-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cp-submit, .cp-actions .store-btn { min-height: 48px; }
.cp-fine { font-size: .84em; color: var(--rd-muted); margin: 10px 0 14px; line-height: 1.5; }

.cp-summary { background: var(--rd-danger-soft); border: 1px solid var(--rd-danger);
    border-radius: 10px; padding: 14px 16px; color: var(--rd-ink); }
.cp-summary:focus { outline: 2px solid var(--rd-danger); outline-offset: 2px; }
.cp-summary__title { font-size: 1rem; margin: 0 0 6px; color: var(--rd-danger); }
.cp-summary ul { margin: 0; padding-left: 1.2em; font-size: .9em; line-height: 1.6; }
.cp-summary a { color: var(--rd-ink); }
.cp-notice { color: var(--rd-success-ink); background: var(--rd-success-soft); border: 1px solid var(--rd-success); }

.cp-card { gap: 4px; }
.cp-card .store-plan { margin: 6px 0 14px; }
.cp-kicker { align-self: flex-start; font-size: .72em; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    padding: 2px 9px; border-radius: 999px; background: var(--rd-success-soft); color: var(--rd-success-ink); margin: 0 0 10px; }

.cp-actions { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center;
    background: var(--rd-surface); padding: 12px 0 max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--rd-border); }
.cp-saved { grid-column: 1 / -1; margin: 0; font-size: .84em; color: var(--rd-muted); min-height: 1.2em; }

html.dark-mode .cp-page .store-card, html.dark-mode .cp-page .store-plan--best { background: var(--rd-surface); border-color: var(--rd-border); }
html.dark-mode .cp-page .store-card__title, html.dark-mode .cp-page .store-plan__price { color: var(--rd-ink); }
html.dark-mode .cp-page .store-card__blurb, html.dark-mode .cp-page .store-section-sub { color: var(--rd-ink-2); }

@media (max-width: 560px) {
    .cp-section { padding: 16px 16px 4px; border-radius: 12px; }
    .cp-actions { grid-template-columns: minmax(0, 1fr); position: static; border-top: 0; }
    .cp-choice { flex: 1 1 auto; }
}

html.dark-mode .store-card--custom { background: #172231; border-color: #4b93e0; }
html.dark-mode .tplan-chip--custom { background: #4b93e0; color: #0f172a; }
.cp-hero-img { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: 14px; margin: 0 0 20px; }
.cp-topics { margin-top: 18px; }

@media (prefers-reduced-motion: reduce) {
    body.st-redesign .store-card--plan,
    body.st-redesign .st-section { transition: none; }
    body.st-redesign .store-card--plan:hover,
    body.st-redesign .store-card--plan:focus-visible,
    body.st-redesign .st-section:hover,
    body.st-redesign .st-section:focus-visible { transform: none; }
}

/* Offer: what you get on the left, prices on the right (Premium and Gait tabs). */
body.st-redesign .st-offer { display: flex; flex-wrap: wrap; align-items: stretch; gap: 20px; margin: 0 0 28px; scroll-margin-top: 16px; }
body.st-redesign .st-offer__info { flex: 1.3 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; box-sizing: border-box; padding: 28px; border: 1px solid var(--rd-border); border-radius: 20px; background: var(--rd-surface); }
body.st-redesign .st-offer__eyebrow { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: #fbf1d6; color: #7a5a0c; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
body.st-redesign .st-offer__features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px 24px; margin: 0; padding: 0; list-style: none; }
body.st-redesign .st-offer__features li { display: flex; align-items: flex-start; gap: 12px; }
body.st-redesign .st-offer__features li > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.4; color: var(--rd-muted); }
body.st-redesign .st-offer__features strong { font-size: 15px; font-weight: 600; color: var(--rd-heading); }
body.st-redesign .st-offer__check { flex: none; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 999px; background: #e5f4ea; color: var(--rd-ok-ink); }
body.st-redesign .st-offer .store-xsell { margin: 0; }
body.st-redesign .st-offer__foot { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--rd-border-soft); font-size: 13px; color: var(--rd-muted); }
body.st-redesign .st-offer__buy { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

body.st-redesign .st-price { display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; padding: 24px 28px; border: 1px solid var(--rd-border); border-radius: 20px; background: var(--rd-surface); }
body.st-redesign .st-price__label { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--rd-muted); }
body.st-redesign .st-price__amount { display: flex; align-items: baseline; gap: 6px; font-size: 52px; font-weight: 700; line-height: 1; color: var(--rd-heading); font-variant-numeric: tabular-nums; }
body.st-redesign .st-price__amount span { font-size: 16px; font-weight: 500; color: var(--rd-muted); }
body.st-redesign .st-price__amount--sm { font-size: 36px; }
body.st-redesign .st-price__plan { font-size: 18px; color: var(--rd-heading); }
body.st-redesign .st-price__save { margin: 0; font-size: 14px; font-weight: 600; color: var(--rd-ok-ink); }
body.st-redesign .st-price__note { margin: 0; font-size: 14px; color: var(--rd-muted); }
body.st-redesign .st-price .store-btn { min-height: 48px; margin-top: 4px; border-radius: 12px; font-size: 16px; }
body.st-redesign .st-price form { margin: 0; }
body.st-redesign .st-price__form { display: flex; flex-direction: column; gap: 10px; }
body.st-redesign .st-price__qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; }
body.st-redesign .st-price__qty select { min-width: 84px; min-height: 40px; padding: 0 10px; border: 1px solid var(--rd-input-border); border-radius: 10px; background: var(--rd-surface); color: var(--rd-ink); font: inherit; }

/* The featured price card: navy with a gold call to action, like the Premium badge. */
body.st-redesign .st-price--feature { gap: 14px; padding: 28px; border-color: #16365e; background: #16365e; color: #fff; }
body.st-redesign .st-price--feature .st-price__label { padding: 4px 12px; border-radius: 999px; background: #f3c14b; color: #3a2a00; font-weight: 700; }
body.st-redesign .st-price--feature .st-price__amount { color: #fff; }
body.st-redesign .st-price--feature .st-price__amount span,
body.st-redesign .st-price--feature .st-price__note,
body.st-redesign .st-price--feature .st-price__qty { color: #c9d7ea; }
body.st-redesign .st-price--feature .st-price__save { color: #9fe0bd; }
body.st-redesign .st-price--feature .st-price__qty select { border-color: #34507a; background: #0f2a4a; color: #fff; }
body.st-redesign .st-price--feature .store-btn.st-price__cta,
html.dark-mode body.st-redesign .st-price--feature .store-btn.st-price__cta { min-height: 52px; background: #f3c14b; color: #3a2a00; font-weight: 700; }
body.st-redesign .st-price--feature .store-btn.st-price__cta:hover { background: #e9b336; }
body.st-redesign .st-price--feature .store-btn.st-price__cta:focus-visible { outline: 3px solid #f3c14b; outline-offset: 3px; }
body.st-redesign .st-price .store-btn--ghost { border: 2px solid var(--rd-accent); color: var(--rd-accent); font-weight: 600; }
html.dark-mode body.st-redesign .st-offer__eyebrow { background: #3a2f12; color: #f0d58a; }
html.dark-mode body.st-redesign .st-offer__check { background: #16301f; }
html.dark-mode body.st-redesign .st-price--feature { border-color: var(--rd-accent-border); background: #0f2a4a; }

@media (max-width: 560px) {
    body.st-redesign .st-offer { gap: 14px; }
    body.st-redesign .st-offer__info,
    body.st-redesign .st-price,
    body.st-redesign .st-price--feature { padding: 20px 18px; border-radius: 16px; }
    body.st-redesign .st-price__amount { font-size: 42px; }
    body.st-redesign .st-price__amount--sm { font-size: 32px; }
}
