/* Plan: what waits on top, the week strip, one day, and the plan folded at the end. */
#programming > p.eyebrow, #programming > p.muted { display:none; }
#programming > h2 { margin-bottom:2px; }
.plan-where { margin:0 0 12px; font-family:var(--font-num); font-size:12px; letter-spacing:.6px; color:var(--muted); text-transform:uppercase; }
.plan-waiting { display:grid; gap:12px; margin:4px 0 16px; scroll-margin-top:calc(var(--app-header-height,60px) + 8px); }
.plan-waiting .plan-proposal, .plan-waiting .proposal-card { margin:0; }
.plan-building { display:flex; align-items:flex-start; gap:12px; padding:14px 16px; border:1px solid var(--line-strong); border-radius:14px; background:var(--accent-soft); }
.plan-building .build-spinner { flex:none; margin-top:3px; }
.plan-building-text { display:grid; gap:2px; min-width:0; }
.plan-building-text strong { font-size:15px; overflow-wrap:anywhere; }
.plan-building-text .muted { margin:0; font-size:13px; }
.plan-proposal-summary { font-size:15px; line-height:1.45; }
.plan-proposal-day { grid-template-columns:auto minmax(0,1fr); align-items:baseline; column-gap:12px; }
.plan-proposal-day strong { white-space:nowrap; }
.plan-proposal-day.is-shown { border-color:var(--clay); background:#FBF1EC; }
.plan-proposal-after { color:var(--ink); font-size:14px; }
.plan-proposal-actions { display:grid !important; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:10px; }
.plan-proposal-actions button { margin:0; min-height:48px; }
.plan-proposal-actions button:disabled { opacity:.5; }
.plan-proposal-hint { font-size:13px; }
.plan-declined { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; margin:0 0 12px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; }
.plan-declined p { margin:0; }
.plan-declined button { margin:0; }
/* Week strip: past days quieter, done days ticked, proposed days marked. */
.strip-day.is-past:not([aria-pressed=true]) { opacity:.55; }
.strip-day { position:relative; }
.strip-day.is-done .strip-weekday::after { content:' ✓'; }
.strip-day.is-proposed::before { content:''; position:absolute; top:5px; right:6px; width:7px; height:7px; border-radius:50%; background:var(--clay); }
/* One day. */
.plan-day { scroll-margin-top:calc(var(--app-header-height,60px) + 8px); }
.plan-day .week-day-head { margin-bottom:10px; }
.plan-compare { display:grid; grid-template-columns:1fr 1fr; gap:0; margin:0 0 12px; padding:3px; border:1px solid var(--line-strong); border-radius:12px; }
.plan-compare-option { margin:0; min-height:40px; border:0; border-radius:9px; background:transparent; color:var(--ink); font-weight:600; }
.plan-compare-option[aria-pressed=true] { background:var(--ink); color:var(--on-accent); }
.plan-session-head { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.plan-session-head h4 { margin:0; min-width:0; overflow-wrap:anywhere; }
.plan-session-meta { flex:none; font-family:var(--font-num); font-size:12px; color:var(--muted); text-transform:capitalize; }
.plan-session-state { flex:none; }
.plan-session-state.is-active { background:var(--signal); color:var(--ink); border-color:var(--signal); }
.plan-session .plan-session-parts { margin:8px 0 10px; padding-left:20px; }
.plan-session .plan-session-parts li { margin:3px 0; overflow-wrap:anywhere; }
.plan-outline + .plan-outline, .plan-session + .plan-session { margin-top:14px; padding-top:14px; border-top:1px solid var(--line); }
.plan-diff { display:grid; gap:2px; margin:8px 0; }
.plan-diff-row { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:10px; padding:6px 0; border-bottom:1px solid var(--line); }
.plan-diff-name { min-width:0; overflow-wrap:anywhere; }
.plan-diff-dose { text-align:right; font-family:var(--font-num); font-size:13px; color:var(--accent); }
.plan-diff-mark { grid-column:1 / -1; font-size:12px; color:var(--clay-text); }
.plan-diff-row.is-new .plan-diff-name::before, .plan-diff-row.is-changed .plan-diff-name::before { content:''; display:inline-block; width:6px; height:6px; margin:0 6px 2px 0; border-radius:50%; background:var(--clay); }
.plan-rest { margin:6px 0 10px; }
.plan-day-tools { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 4px; }
.plan-day-tools button { margin:0; min-height:44px; }
.plan-earlier { margin:10px 0; }
.plan-earlier > summary { min-height:44px; display:flex; align-items:center; font-size:14px; }
.plan-earlier button { margin:4px 0; }
/* About this plan: block timeline first, then folds. */
.program-more-group .block-timeline { margin-bottom:8px; }
@media (max-width:420px){ .plan-proposal-actions { grid-template-columns:1fr; } }
/* Dashboard: readiness in the Today card (moved from the top of Coach). */
.dash-ready { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:16px 0 0; border-top:1px solid var(--night-line); border-bottom:1px solid var(--night-line); }
.dash-ready-cell { display:grid; gap:2px; padding:10px 10px 10px 0; min-width:0; }
.dash-ready-cell + .dash-ready-cell { padding-left:12px; border-left:1px solid var(--night-line); }
.dash-ready-label { font-family:var(--font-num); font-size:11px; letter-spacing:.6px; color:var(--night-muted); }
.dash-ready-value { font-family:var(--font-num); font-size:20px; font-weight:700; color:#F4F2EA; white-space:nowrap; }
.dash-ready-unit { font-size:12px; font-weight:500; color:var(--night-muted); }
.dash-ready-trend { font-size:12px; color:var(--night-muted); }
.dash-ready-trend.is-good { color:var(--signal); }
.dash-ready-trend.is-low { color:#F2C14E; }
/* Month totals sit inside the Consistency card. */
.dash-card .dash-stats { grid-column:auto; margin:4px 0 14px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.dash-card .week-summary { margin:10px 0 0; padding:0; border:0; background:transparent; }
.weekly-movement.is-new > summary, .weekly-movement.is-changed > summary { border-left:3px solid var(--clay); padding-left:8px; }
.weekly-movement > summary .plan-diff-mark { display:block; margin-top:2px; font-size:12px; font-weight:500; color:var(--clay-text); }
/* Today card: a long plan name and the block's focus never push the day off the screen. */
.dash-hero-title.is-long { font-size:clamp(24px,6.6vw,40px); }
.dash-hero .dash-focus { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
/* Apple Watch read of a session, and the Dashboard endurance card. */
.session-watch { margin:16px 0; padding:14px 16px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.session-watch h4 { margin:2px 0 6px; overflow-wrap:anywhere; }
.watch-summary { font-family:var(--font-num); font-size:13px; color:var(--accent); }
.watch-candidate { display:grid; gap:8px; padding:10px 0; border-top:1px solid var(--line); }
.watch-candidate button { margin:0; justify-self:start; min-height:44px; }
.watch-block { margin:12px 0 0; padding-top:12px; border-top:1px solid var(--line); }
.watch-block-name { display:block; font-size:15px; overflow-wrap:anywhere; }
.watch-chart { width:100%; height:auto; margin:8px 0 4px; }
.watch-bar { fill:var(--accent); }
.watch-bar.tone-1 { fill:#5B8F73; } .watch-bar.tone-2 { fill:var(--clay); } .watch-bar.tone-3 { fill:#8A7A3D; }
.watch-low { fill:var(--ink); opacity:.55; }
.watch-stations { margin:8px 0 2px; }
.watch-station { display:grid; grid-template-columns:minmax(0,1fr) 52px 52px; gap:8px; padding:6px 0; border-top:1px solid var(--line); font-size:14px; }
.watch-station.header { border-top:0; font-size:12px; color:var(--muted); font-weight:650; }
.watch-station > span:nth-child(n+2) { text-align:right; font-family:var(--font-num); }
.watch-station > span:first-child { min-width:0; overflow-wrap:anywhere; }
.watch-station.is-hardest > span:first-child { font-weight:700; color:var(--clay-text); }
.watch-hint { font-size:12px; }
.watch-zones { display:flex; height:22px; margin:8px 0; border-radius:6px; overflow:hidden; background:var(--line); }
.watch-zone { display:flex; align-items:center; justify-content:center; min-width:0; overflow:hidden; font-family:var(--font-num); font-size:10px; color:#fff; white-space:nowrap; }
.watch-zone.z1 { background:#9DB5A8; color:var(--ink); } .watch-zone.z2 { background:#5B8F73; } .watch-zone.z3 { background:var(--accent); } .watch-zone.z4 { background:#C07A3E; } .watch-zone.z5 { background:var(--clay); }
.watch-compare { margin:10px 0 0; padding:10px 12px; border-radius:10px; background:var(--accent-soft); }
.watch-compare p { margin:4px 0; }
.watch-reading { font-weight:600; }
.watch-tools { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.watch-tools button { margin:0; min-height:44px; }
.dash-bars-small { height:110px; }
.dash-sport { margin:6px 0; font-size:14px; }
.dash-pieces { margin-top:10px; }
.dash-piece { display:grid; gap:2px; padding:8px 0; border-top:1px solid var(--line); }
.dash-piece strong { overflow-wrap:anywhere; }
.dash-piece-reading { font-size:13px; color:var(--accent); }
/* Chat / Session tabs: the labels never wrap on a narrow phone. */
body[data-view=today] .pane-tabs button { white-space:nowrap; padding-left:10px; padding-right:10px; }

/* A block change at the top of a waiting proposal. */
.block-change { border:1px solid var(--line); border-radius:10px; padding:12px 14px; margin:10px 0; background:var(--surface); }
.block-change h3 { margin:0 0 4px; font-size:16px; }
.block-change-reason { margin:0 0 8px; }
.block-change-targets, .block-change-lines { list-style:none; margin:0; padding:0; display:grid; gap:6px; }
.block-change-lines { margin-top:8px; padding-left:18px; list-style:disc; }
.block-change-target { display:flex; flex-wrap:wrap; gap:4px 10px; align-items:baseline; min-width:0; }
.block-change-target strong { overflow-wrap:anywhere; }
.block-change-status { font-weight:600; }
.block-change-target.is-met .block-change-status { color:var(--accent); }
.block-change-target.is-behind .block-change-status { color:var(--clay); }

/* The athlete's season strip: blocks scroll inside their own lane on a phone. */
.season-strip { border:1px solid var(--line); border-radius:10px; padding:10px 12px; margin:8px 0; background:var(--surface); min-width:0; }
.season-strip-goal { margin:0 0 6px; font-weight:600; }
.season-strip-lane { display:flex; gap:6px; overflow-x:auto; padding-bottom:4px; scroll-snap-type:x proximity; }
.season-strip-block { flex:0 0 auto; display:grid; min-width:96px; padding:6px 8px; border-radius:8px; border:2px solid transparent; background:var(--accent-soft); scroll-snap-align:start; }
.season-strip-block strong { font-size:13px; }
.season-strip-block span { font-size:12px; }
.season-strip-block.is-now { border-color:var(--accent); }
.season-strip-now { margin:8px 0 2px; font-weight:600; }
.season-strip-purpose { margin:0 0 6px; }
.season-strip-targets { list-style:none; margin:0; padding:0; display:grid; gap:4px; }
.season-strip-target { display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 10px; min-width:0; }
.season-strip-target.is-met strong { color:var(--accent); }
.season-strip-target.is-behind strong { color:var(--clay); }
.season-strip-drafts { margin:6px 0 0; font-size:13px; }
