/* TrailGoat — Training Plans (/training). Loads AFTER fuel.css for the shared
   tokens (--orange/--moss/--teal…, .panel, .export-btn, .eyebrow, .grad).
   Page accent = gold (Capra's color in the coach cards). */

.tp-wrap { max-width: 1080px; margin: 0 auto; padding: 28px 20px 80px; }

/* ---------- gate (loading / signed out) — mirrors the dashboard gate ---------- */
.tp-gate { text-align: center; padding: 56px 28px; }
.tp-gate h1 { margin: 10px 0 12px; font-size: clamp(28px, 4.5vw, 40px); }
.tp-gate-sub { color: var(--muted); max-width: 52ch; margin: 0 auto 20px; }
.tp-google { display: flex; justify-content: center; margin: 18px 0; }
.tp-gate-note { color: var(--muted); font-size: 13px; }

/* ---------- home: my plans + build CTA ---------- */
.tp-hero { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin: 8px 0 18px; }
.tp-hero h1 { margin: 6px 0 4px; font-size: clamp(26px, 4vw, 36px); }
.tp-hero-sub { color: var(--muted); max-width: 62ch; }
.tp-plans-list { display: flex; flex-direction: column; gap: 10px; }
.tp-plan-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line);
    border-radius: 14px; background: var(--glass); cursor: pointer; text-align: left; width: 100%;
    color: var(--ink); font: inherit; transition: border-color .15s, background .15s; }
.tp-plan-row:hover { border-color: var(--gold); background: var(--glass-2); }
.tp-plan-row .tp-plan-name { font-weight: 700; }
.tp-plan-row .tp-plan-meta { color: var(--muted); font-size: 13px; }
.tp-plan-row .tp-plan-status { margin-left: auto; font-size: 12px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); }
.tp-plan-status.ready { color: var(--moss); border-color: rgba(154, 230, 0, .4); }
.tp-plan-status.building { color: var(--gold); border-color: rgba(255, 210, 63, .4); }
.tp-plan-status.failed { color: var(--coral); border-color: rgba(255, 93, 115, .4); }
.tp-empty { color: var(--muted); padding: 18px 4px; }

/* ---------- wizard ---------- */
.tp-wiz { max-width: 720px; margin: 0 auto; }
.tp-wiz-steps { display: flex; gap: 6px; margin: 4px 0 22px; }
.tp-wiz-steps i { height: 4px; flex: 1; border-radius: 2px; background: var(--glass-2); }
.tp-wiz-steps i.done { background: var(--gold); }
.tp-step[hidden] { display: none; }
.tp-q { font-size: 21px; font-weight: 750; margin: 0 0 4px; }
.tp-hint { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.tp-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.tp-field > label { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tp-row { display: flex; gap: 12px; flex-wrap: wrap; }
.tp-row .tp-field { flex: 1; min-width: 140px; }
.tp-wiz input[type="text"], .tp-wiz input[type="number"], .tp-wiz input[type="date"],
.tp-wiz select, .tp-wiz textarea {
    background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 10px;
    color: var(--ink); font: inherit; padding: 10px 12px; box-shadow: var(--well); width: 100%;
}
.tp-wiz textarea { min-height: 84px; resize: vertical; }
.tp-wiz input:focus-visible, .tp-wiz select:focus-visible, .tp-wiz textarea:focus-visible,
.tp-pill:focus-visible, .tp-terrain:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.tp-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.tp-pill { padding: 10px 0; width: 62px; text-align: center; border-radius: 10px; font-weight: 700; font-size: 14px;
    border: 1px solid var(--line); color: var(--muted); background: var(--glass); cursor: pointer;
    transition: color .12s, border-color .12s, background .12s; }
.tp-pill.on { color: var(--moss); border-color: rgba(154, 230, 0, .55); background: rgba(154, 230, 0, .08); }
.tp-pill.long { color: var(--orange); border-color: rgba(255, 122, 26, .6); background: rgba(255, 122, 26, .1); }
.tp-pill-note { color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.tp-pill-note b.k1 { color: var(--moss); } .tp-pill-note b.k2 { color: var(--orange); }

.tp-terrains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 620px) { .tp-terrains { grid-template-columns: 1fr 1fr; } }
.tp-terrain { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--glass);
    cursor: pointer; text-align: left; color: var(--ink); font: inherit; display: flex; flex-direction: column; gap: 2px; }
.tp-terrain b { font-size: 13.5px; }
.tp-terrain span { font-size: 12px; color: var(--muted); }
.tp-terrain.on { border-color: var(--teal); background: rgba(25, 195, 177, .08); }
.tp-terrain.on b { color: var(--teal); }

.tp-check { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 14.5px; cursor: pointer; }
.tp-check input { width: auto; accent-color: var(--moss); }

.tp-wiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.tp-wiz-skip { background: none; border: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.tp-wiz-skip:hover { color: var(--ink); }
.tp-suggest { position: relative; }
.tp-suggest-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30;
    background: var(--bg-1); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
    max-height: 240px; overflow-y: auto; }
.tp-suggest-list button { display: block; width: 100%; text-align: left; padding: 10px 12px; background: none;
    border: none; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.tp-suggest-list button:hover { background: var(--glass-2); }
.tp-suggest-list .tp-sug-meta { color: var(--muted); font-size: 12px; }

/* ---------- building state ---------- */
.tp-building { text-align: center; padding: 64px 24px; }
.tp-building .tp-goat { width: 84px; height: 84px; object-fit: contain; display: inline-block;
    animation: tp-trot 1.2s ease-in-out infinite; }
@keyframes tp-trot { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-7px) rotate(-4deg) } }
@media (prefers-reduced-motion: reduce) { .tp-building .tp-goat { animation: none; } }
.tp-building h2 { margin: 14px 0 6px; }
.tp-building-status { color: var(--muted); min-height: 22px; }
.tp-building-note { color: var(--muted); font-size: 13px; margin-top: 16px; }

/* ---------- plan view ---------- */
.tp-plan-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin: 4px 0 4px; }
.tp-plan-head h1 { margin: 0; font-size: clamp(24px, 3.6vw, 32px); }
/* Header meta: bold values, receding units, human dates — scannable, not a
   uniform grey run-on. */
.tp-plan-dates { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.tp-meta { display: inline-flex; align-items: baseline; gap: 5px; }
.tp-meta b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.tp-meta-arrow { color: var(--faint); margin: 0 2px; }
.tp-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); flex: none; }
.tp-countdown { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.tp-chip-week, .tp-chip-race { display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; }
.tp-chip-week { color: var(--moss); border-color: rgba(154, 230, 0, .35); background: rgba(154, 230, 0, .07); }
.tp-chip-race { color: var(--gold); border-color: rgba(255, 210, 63, .35); background: rgba(255, 210, 63, .07); }
.tp-chip-race b { font-weight: 800; font-variant-numeric: tabular-nums; }
/* Race week and the run-in get urgency. */
.tp-chip-race.close { color: var(--orange); border-color: rgba(255, 122, 26, .45); background: rgba(255, 122, 26, .1); }
.tp-plan-progress { height: 4px; border-radius: 999px; background: var(--glass-2); overflow: hidden;
    margin: 10px 0 2px; max-width: 520px; }
.tp-plan-progress i { display: block; height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, var(--teal), var(--moss)); }
.tp-plan-progress[hidden] { display: none; }
.tp-back { background: none; border: none; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; padding: 0; }
.tp-back:hover { color: var(--ink); }

/* The mascot + CAPRA wordmark now live in the card's summary header. */
.tp-coach p { margin: 0; color: var(--ink); line-height: 1.65; }
.tp-warnings { color: var(--gold); font-size: 13.5px; margin-top: 10px; }

.tp-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.tp-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.p-base { background: var(--teal); } .p-build { background: var(--orange); }
.p-peak { background: var(--coral); } .p-taper { background: var(--violet); }
.p-maintain { background: var(--aqua); }
.tp-vol { display: flex; align-items: flex-end; gap: 4px; height: 130px; }
.tp-vol .tp-bar { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
    height: 100%; background: none; border: none; padding: 0; cursor: pointer; }
.tp-vol .tp-bar i { display: block; border-radius: 3px 3px 0 0; opacity: .9; }
.tp-vol .tp-bar.cut i { opacity: .45; }
.tp-vol .tp-bar em { font-style: normal; font-size: 9.5px; color: var(--muted); text-align: center;
    font-variant-numeric: tabular-nums; }
.tp-vol .tp-bar.active em { color: var(--gold); font-weight: 700; }
.tp-vol .tp-bar.active i { outline: 2px solid var(--gold); outline-offset: 1px; }
.tp-vol-cap { color: var(--muted); font-size: 12.5px; margin-top: 10px; }

.tp-week-head { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tp-week-title .tp-week-focus { color: var(--orange); }
.tp-week-meta { font-variant-numeric: tabular-nums; }
.tp-week-nav { display: flex; gap: 8px; }
.tp-week-nav button { background: var(--glass-2); border: 1px solid var(--line); color: var(--ink); border-radius: 8px;
    font: inherit; font-size: 13px; padding: 4px 12px; cursor: pointer; }
.tp-week-nav button:disabled { opacity: .35; cursor: default; }

.tp-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
@media (max-width: 900px) { .tp-days { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tp-days { grid-template-columns: 1fr; } }
.tp-day { border: 1px solid var(--line); border-top: 3px solid var(--line); border-radius: 12px; padding: 10px;
    background: var(--glass); display: flex; flex-direction: column; gap: 5px; min-height: 116px;
    cursor: pointer; position: relative; }
.tp-day.t-easy { border-top-color: var(--teal); } .tp-day.t-long { border-top-color: var(--coral); }
.tp-day.t-workout, .tp-day.t-tempo, .tp-day.t-hills { border-top-color: var(--orange); }
.tp-day.t-recovery, .tp-day.t-hike { border-top-color: var(--moss); }
.tp-day.t-strength, .tp-day.t-cross { border-top-color: var(--violet); }
.tp-day.t-race { border-top-color: var(--gold); background: rgba(255, 210, 63, .06); }
.tp-day.today { outline: 2px solid var(--gold); outline-offset: 1px; }
.tp-day .tp-d { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.tp-day .tp-t { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.tp-day .tp-m { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
/* Done = full color + corner badge (strikethrough read as 'canceled'); future days recede. */
/* Completed badge: a drawn tick inside a ring — no glyph, no emoji. */
.tp-day.done::after { content: ""; position: absolute; top: 6px; right: 8px; width: 18px; height: 18px;
    border-radius: 50%; background: rgba(154, 230, 0, .18); border: 1px solid rgba(154, 230, 0, .6); }
.tp-day.done::before { content: ""; position: absolute; top: 10px; right: 12px; z-index: 1;
    width: 9px; height: 5px; border-left: 2px solid var(--moss); border-bottom: 2px solid var(--moss);
    transform: rotate(-45deg); }
.tp-day.future:not(.t-race) { opacity: .74; filter: saturate(.85); }
.tp-day.future:not(.t-race):hover { opacity: 1; filter: none; }
.tp-day-check { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.tp-day-check input { accent-color: var(--moss); cursor: pointer; }
.tp-day.done .tp-day-check { color: var(--moss); }
.tp-day-detail { grid-column: 1 / -1; border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px;
    background: rgba(0, 0, 0, .2); }
.tp-day-detail[hidden] { display: none; }
.tp-day-detail .tp-steps { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px;
    display: flex; flex-direction: column; gap: 4px; }
.tp-day-detail .tp-note { display: flex; gap: 8px; margin-top: 10px; padding-top: 10px;
    border-top: 1px dashed var(--line); color: var(--muted); font-size: 13px; line-height: 1.55; }

.tp-export-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.tp-export-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--glass);
    display: flex; flex-direction: column; gap: 8px; }
.tp-export-card h4 { margin: 0; font-size: 14.5px; }
.tp-export-card p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.tp-export-card .export-btn { align-self: flex-start; }
.tp-danger { color: var(--coral); background: none; border: 1px solid rgba(255, 93, 115, .4); border-radius: 999px;
    font: inherit; font-size: 13px; padding: 6px 16px; cursor: pointer; }
.tp-danger:hover { background: rgba(255, 93, 115, .1); }
.tp-plan-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.tp-copied { color: var(--moss); font-size: 12.5px; }

.tp-section-gap { display: flex; flex-direction: column; gap: 16px; }
[hidden] { display: none !important; }

/* ---------- wizard preview step ---------- */
.tp-prev-summary { font-size: 15px; margin: 0 0 14px; }
.tp-prev-summary b { color: var(--gold); }
.tp-prev-warn { color: var(--gold); font-size: 13.5px; margin-top: 12px; border: 1px solid rgba(255, 210, 63, .35);
    border-radius: 10px; padding: 10px 14px; background: rgba(255, 210, 63, .06); }

/* ---------- workout type motifs (Coros cue: structure legible at a glance) ---------- */
.tp-motif { width: 100%; height: 12px; margin-top: auto; opacity: .85; display: block; }
.tp-motif { color: var(--line); }
.t-easy .tp-motif { color: var(--teal); }
.t-long .tp-motif { color: var(--coral); }
.t-workout .tp-motif, .t-tempo .tp-motif, .t-hills .tp-motif { color: var(--orange); }
.t-strides .tp-motif { color: var(--aqua); }
.t-recovery .tp-motif, .t-hike .tp-motif { color: var(--moss); }
.t-strength .tp-motif, .t-cross .tp-motif { color: var(--violet); }
.t-race .tp-motif { color: var(--gold); }
.tp-day.t-strides { border-top-color: var(--aqua); }
.tp-day-check { margin-top: 4px; }

/* ---------- season (full-plan) grid view ---------- */
.tp-view-toggle { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.tp-view-toggle button { background: none; border: none; color: var(--muted); font: inherit; font-size: 12.5px;
    padding: 5px 14px; cursor: pointer; }
.tp-view-toggle button.on { background: var(--glass-2); color: var(--ink); font-weight: 700; }
.tp-fp-scroll { overflow-x: auto; }
.tp-fp { min-width: 760px; display: flex; flex-direction: column; gap: 4px; }
.tp-fp-head, .tp-fp-row { display: grid; grid-template-columns: 88px repeat(7, 1fr) 118px; gap: 4px; align-items: stretch; }
.tp-fp-head { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
    font-weight: 700; padding: 2px 0; }
.tp-fp-head span { text-align: center; }
.tp-fp-head span:first-child, .tp-fp-head span:last-child { text-align: left; }
.tp-fp-row { background: none; border: none; padding: 0; cursor: pointer; font: inherit; text-align: left; }
.tp-fp-wk { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 4px 6px;
    border-left: 3px solid var(--line); border-radius: 6px; }
.tp-fp-row.p-row-base .tp-fp-wk { border-left-color: var(--teal); }
.tp-fp-row.p-row-build .tp-fp-wk { border-left-color: var(--orange); }
.tp-fp-row.p-row-peak .tp-fp-wk { border-left-color: var(--coral); }
.tp-fp-row.p-row-taper .tp-fp-wk { border-left-color: var(--violet); }
.tp-fp-row.p-row-maintain .tp-fp-wk { border-left-color: var(--aqua); }
.tp-fp-wk b { font-size: 12.5px; color: var(--ink); }
.tp-fp-wk span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tp-fp-cell { background: var(--glass); border: 1px solid var(--line); border-radius: 6px; padding: 4px 5px 3px;
    display: flex; flex-direction: column; gap: 2px; min-height: 40px; position: relative; }
.tp-fp-cell .tp-motif { height: 8px; opacity: .9; }
.tp-fp-cell em { font-style: normal; font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tp-fp-cell.rest { background: none; border-style: dashed; opacity: .45; }
.tp-fp-cell.done::after { content: ""; position: absolute; top: 4px; right: 5px; width: 7px; height: 4px;
    border-left: 1.6px solid var(--moss); border-bottom: 1.6px solid var(--moss); transform: rotate(-45deg); }
.tp-fp-cell.today { outline: 2px solid var(--gold); outline-offset: 1px; }
.tp-fp-stats { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 4px 8px;
    background: var(--glass); border: 1px solid var(--line); border-radius: 6px;
    font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tp-fp-stats b { color: var(--ink); font-weight: 700; }
.tp-fp-row:hover .tp-fp-cell, .tp-fp-row:hover .tp-fp-stats { border-color: var(--gold); }
.tp-fp-row:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- plan-type mode cards + manage row + home sections ---------- */
.tp-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 18px; }
.tp-mode { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--glass);
    color: var(--muted); font: inherit; cursor: pointer; text-align: left; display: flex;
    flex-direction: column; gap: 3px; }
.tp-mode b { font-size: 15px; color: var(--ink); }
.tp-mode span { font-size: 12.5px; }
.tp-mode.on { border-color: var(--gold); background: rgba(255, 210, 63, .07); }
.tp-mode.on b { color: var(--gold); }
.tp-mode:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.tp-manage { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tp-home-sec { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted); margin: 18px 0 8px; }
.tp-home-sec:first-child { margin-top: 0; }
.tp-plan-row .tp-plan-status.archived { color: var(--faint); }

/* Inline SVG icons — the emoji-free icon language (see brand rules). */
.tp-ico { width: 1.05em; height: 1.05em; vertical-align: -0.18em; flex-shrink: 0; }
.tp-mode b .tp-ico { width: 1.15em; height: 1.15em; color: var(--muted); }
.tp-mode.on b .tp-ico { color: var(--gold); }
.tp-export-card h4 .tp-ico { color: var(--teal); }
.tp-vol .tp-bar em .tp-ico, .tp-bar em .tp-ico { width: 12px; height: 12px; color: var(--gold); vertical-align: middle; }

/* ---------- "Up next" card: next workout + local weather + why it matters ---------- */
.tp-next-when { color: var(--muted); }
.tp-next-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: start; }
@media (max-width: 760px) { .tp-next-grid { grid-template-columns: 1fr; } }
.tp-next-title { font-size: 17px; font-weight: 750; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.tp-next-title .tp-motif { width: 46px; height: 12px; margin: 0; flex-shrink: 0; }
.tp-next-meta { color: var(--muted); font-size: 13.5px; margin-bottom: 8px; }
.tp-next-steps { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px;
    display: flex; flex-direction: column; gap: 4px; }
.tp-next-wx { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--glass);
    display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.tp-next-wx-head { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tp-next-wx-main { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.tp-next-wx-main .wx-ico { width: 30px; height: 30px; color: var(--ink); }
.tp-next-wx-main b { font-size: 17px; font-variant-numeric: tabular-nums; }
.tp-next-wx-rows { display: flex; flex-wrap: wrap; gap: 6px 14px; font-variant-numeric: tabular-nums; }
.tp-next-wx-rows .wx-gl { margin-right: 3px; }
.tp-next-wx-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
    background: none; border: 1px solid var(--line); border-radius: 999px; color: var(--ink);
    font: inherit; font-size: 12.5px; padding: 6px 14px; cursor: pointer; }
.tp-next-wx-btn:hover { border-color: var(--gold); color: var(--gold); }
.tp-next-wx-btn .ico { width: 13px; height: 13px; }
.tp-next-wx-note { font-size: 11.5px; color: var(--faint); }
.tp-next-wx-update { background: none; border: none; padding: 0; color: var(--faint); font: inherit;
    font-size: 11.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; align-self: flex-start; }
.tp-next-wx-update:hover { color: var(--muted); }
.tp-next-fits { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line);
    color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.tp-next-fits .tg-goat { width: 1.2em; height: 1.2em; vertical-align: -0.25em; margin-right: 4px; }
.tp-next-fits b { color: var(--gold); font-weight: 700; }

/* ---------- collapsible plan cards (shared .rd-section pattern from fuel.css) ---------- */
/* The section styling — accent ring, filled header band, chevron — is shared with
   the Run Planner. Only the bits specific to this page live here. */
.tp-card > summary { text-transform: none; letter-spacing: 0; }
.tp-card > summary .coach-brand { font-weight: 800; letter-spacing: .04em; }
.tp-card > summary .tg-goat { width: 17px; height: 17px; vertical-align: -0.2em; }
.tp-card[hidden] { display: none; }
/* Summary sub-labels that carry live data shouldn't wrap awkwardly on mobile. */
@media (max-width: 620px) {
    .tp-card > summary { flex-wrap: wrap; }
    .tp-card > summary .rd-sec-sub { flex-basis: 100%; }
}

/* ---- Fitness analyzer dropzone (wizard step 1) ---- */
.tp-fitzone { border: 1.5px dashed var(--line); border-radius: 12px; padding: 14px 16px;
    background: var(--glass); cursor: pointer; margin: 0 0 18px; transition: border-color .15s, background .15s; }
.tp-fitzone:hover, .tp-fitzone.drag { border-color: rgba(255, 122, 26, .55); background: rgba(255, 122, 26, .05); }
.tp-fitzone.busy { cursor: progress; opacity: .75; }
.tp-fit-cta { display: flex; gap: 12px; align-items: flex-start; }
.tp-fit-ic { color: var(--orange); flex: 0 0 auto; margin-top: 2px; }
.tp-fit-ic .ico { width: 22px; height: 22px; }
.tp-fit-cta b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.tp-fit-cta span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.tp-fit-head { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.tp-fit-head .ico-sm { width: 15px; height: 15px; vertical-align: -0.22em; margin-right: 4px; color: var(--orange); }
.tp-fit-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-fit-chip { font-size: 12.5px; color: var(--muted); border: 1px solid var(--line);
    border-radius: 999px; padding: 3px 10px; background: rgba(0, 0, 0, .2); }
.tp-fit-chip b { color: var(--ink); font-weight: 700; }
.tp-fit-replace { margin-top: 10px; background: none; border: none; padding: 0; cursor: pointer;
    color: var(--orange); font-size: 12.5px; font-weight: 600; }
.tp-fit-replace:hover { text-decoration: underline; }
.tp-fit-err { color: #ff8d7a; font-size: 13px; margin: 10px 0 0; }
