/* coach.css — the coach panel (js/ui/coach-panel.js) and its caption over the cube.
 * Builds on rubiks.css (.btn, .chip, .stage, .spinner); colours are site tokens only.
 *
 *   .coach               the panel; data-mode="guided|watch", data-status = the session's status
 *   .coach.is-sheet      docked to the bottom of a narrow screen (CoachPanel `sheet` option);
 *                        .is-open shows the step text and stages too
 *   .coach-caption       a small "next move" pill inside the cube's .stage
 */

.coach {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  min-width: 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}
.coach p { margin: 0; }
.coach [hidden] { display: none !important; }
.coach .coach-btn-icon { display: inline-flex; flex: none; }
.coach .coach-btn-icon svg { width: 18px; height: 18px; }

/* ── top: method · stage · moves, and the progress bar ─────────────────────── */
.coach-top { display: flex; flex-direction: column; gap: 8px; }
.coach-meta {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px;
  font-size: 0.8rem; color: var(--ink-dim);
}
.coach-method {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-text);
}
.coach-stagecount { font-weight: 700; color: var(--ink); }
.coach-progress-text { margin-left: auto; font-variant-numeric: tabular-nums; }
.coach-bar {
  height: 6px; border-radius: var(--radius-pill); overflow: hidden;
  background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--line);
}
.coach-bar-fill {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, var(--safe)), var(--accent));
  transition: width 0.35s ease;
}
.coach[data-status="solved"] .coach-bar-fill { background: var(--safe); }

/* ── notes, the "stage done" flash ────────────────────────────────────────── */
.coach-note {
  font-size: 0.88rem; line-height: 1.45; color: var(--ink-dim);
  padding: 8px 12px; border-radius: var(--radius);
  background: var(--surface-sunken); border: 1px solid var(--line);
}
.coach-note[data-kind="stage-done"], .coach-note[data-kind="recovered"] {
  color: var(--safe-text);
  background: color-mix(in srgb, var(--safe) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--safe) 40%, transparent);
}
.coach-note[data-kind="ready"], .coach-note[data-kind="auto-rotate"] {
  color: var(--ink);
  background: var(--accent-soft); border-color: var(--accent-line);
}

/* a "stage done" banner that covers the method/stage line for a moment */
.coach-flash {
  position: absolute; top: 10px; left: 12px; right: 12px; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 32px; padding: 4px 14px 4px 6px; border-radius: var(--radius-pill);
  font-size: 0.86rem; font-weight: 700; color: var(--accent-ink);
  background: var(--safe); box-shadow: var(--shadow-2);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.coach-flash.is-on { opacity: 1; transform: none; }
.coach-flash-icon { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--accent-ink) 14%, transparent); }
.coach-flash-icon svg { width: 13px; height: 13px; }
.coach-flash-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── off the plan ─────────────────────────────────────────────────────────── */
.coach-off {
  padding: 12px 14px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--warn) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent);
}
.coach-off-title { font-weight: 700; color: var(--ink); margin-bottom: 4px !important; }
.coach-off-title::before {
  content: '!'; display: inline-grid; place-items: center; vertical-align: 1px;
  width: 20px; height: 20px; margin-right: 8px; border-radius: 50%;
  font-size: 0.8rem; font-weight: 800; color: var(--surface); background: var(--warn);
}
.coach-off-text { font-size: 0.88rem; line-height: 1.45; color: var(--ink-dim); }
.coach-off-track {
  height: 3px; margin: 10px 0; border-radius: 2px; overflow: hidden;
  background: color-mix(in srgb, var(--warn) 18%, transparent);
}
.coach-off-bar { display: block; height: 100%; width: 0; background: var(--warn); }
@keyframes coach-countdown { from { width: 0; } to { width: 100%; } }
.coach-off-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.coach-off-actions .btn { gap: 6px; }
.coach-off-actions .coach-btn-icon svg { width: 16px; height: 16px; }

/* ── the next move ────────────────────────────────────────────────────────── */
.coach-now { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.coach[data-status="off-track"] .coach-now { display: none; }
.coach-move {
  min-width: 78px; height: 78px; padding: 0 12px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent-line);
  color: var(--accent-text);
  font-family: var(--font-mono); font-weight: 800; font-size: 2.35rem; line-height: 1;
  letter-spacing: -0.03em; font-variant-ligatures: none;
  box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--accent) 22%, transparent);
}
.coach-move.is-long { font-size: 1.55rem; }
.coach-move.is-mid { border-style: dashed; }
/* the coach is turning the cube: the tile lights up while the move plays */
.coach-move.is-playing {
  color: var(--accent-ink); background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.coach-move.is-busy { background: var(--surface-sunken); border-color: var(--line); box-shadow: none; }
.coach-move.is-warn, .coach-move.is-bad, .coach-move.is-turn { box-shadow: none; }
.coach-move.is-warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 50%, transparent); }
.coach-move.is-bad { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 50%, transparent); }
.coach-move.is-turn { color: var(--ink); background: var(--surface-hi); border-color: var(--line-strong); }
.coach-move svg { width: 34px; height: 34px; }
.coach-move .spinner { width: 28px; height: 28px; }

.coach-words { min-width: 0; }
.coach-eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: 2px !important;
}
.coach-title { font-weight: 700; font-size: 1.05rem; line-height: 1.3; color: var(--ink); }
.coach-how { margin-top: 2px !important; font-size: 0.9rem; line-height: 1.4; color: var(--ink-dim); }
.coach-link {
  display: inline-flex; align-items: center; gap: 6px;
  min-block-size: 32px; margin-top: 2px; padding: 0; text-align: left;
  font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--accent-text);
  background: none; border: 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px;
}
.coach-link:hover { text-decoration-color: currentColor; }
.coach-link .coach-btn-icon svg { width: 16px; height: 16px; }

/* a Hint pressed again: the move in plain words, big, for a few seconds */
.coach-now.is-hint {
  margin: -6px; padding: 6px; border-radius: var(--radius);
  background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent-line);
  animation: coach-hint-pop 0.35s ease-out;
}
.coach-now.is-hint .coach-title { font-size: 1.15rem; }
.coach-now.is-hint .coach-how { display: block !important; font-size: 0.98rem; font-weight: 600; color: var(--ink); }
@keyframes coach-hint-pop { from { transform: scale(0.97); } to { transform: none; } }

/* "what does this move do?" (wraps to one column in a narrow panel) */
.coach-explain {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  padding: 10px; border-radius: var(--radius);
  background: var(--surface-sunken); border: 1px solid var(--line);
}
.coach-explain-side { flex: 1 1 150px; min-width: 0; }
.coach-explain-stage { flex: none; width: 136px; max-height: none; border-radius: var(--radius); }
.coach-explain-text { font-size: 0.88rem; line-height: 1.45; color: var(--ink-dim); margin-bottom: 8px !important; }
.coach-explain-text strong { color: var(--ink); }
.coach-explain-move { font-family: var(--font-mono); font-size: 1rem; color: var(--accent-text) !important; }
.coach-explain-where { display: block; margin-top: 4px; font-size: 0.8rem; color: var(--ink-faint); }
/* the explainer says how the move goes, so the line above it needn't */
.coach.is-explaining .coach-how { display: none; }

/* ── buttons ──────────────────────────────────────────────────────────────── */
.coach-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.coach-btn {
  flex-direction: column; gap: 3px;
  min-block-size: 58px; min-inline-size: 0; padding: 6px 4px;
  font-size: 0.8rem; line-height: 1.15; text-align: center;
}
.coach-btn .coach-btn-icon svg { width: 20px; height: 20px; }
.coach-btn:not([disabled]):hover { border-color: var(--accent-line); background: color-mix(in srgb, var(--accent) 8%, var(--surface-hi)); }
.coach-btn.primary:not([disabled]):hover { background: var(--accent); }
.coach-btn-label { overflow-wrap: anywhere; }

.coach-speed {
  display: grid; grid-template-columns: auto minmax(0, 1fr) 3.2em; gap: 10px; align-items: center;
  font-size: 0.85rem; font-weight: 600; color: var(--ink-dim);
}
.coach-speed input { width: 100%; }
.coach-speed-out { font-family: var(--font-mono); color: var(--ink); text-align: right; }

/* ── the step, the stages, help ───────────────────────────────────────────── */
.coach-more { display: flex; flex-direction: column; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.coach-step-eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 4px !important;
}
.coach-step-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 6px; font-size: 1.02rem; }
.coach-case { font-size: 0.75rem; }
.coach-step-text { line-height: 1.5; }
.coach-step-more { min-block-size: 32px; margin: 0 0 4px; }
.coach-step-rest { line-height: 1.5; font-size: 0.92rem; color: var(--ink-dim); margin-bottom: 8px !important; }
.coach-turned {
  margin: 4px 0 10px !important; padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: 0.84rem; line-height: 1.45; color: var(--ink-dim);
  background: var(--surface-sunken); border: 1px solid var(--line);
}
.coach-turned .coach-link { min-block-size: 28px; margin: 0; }
.coach-step .coach-chips { margin-top: 10px; }
.coach-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.coach-chip {
  min-block-size: 34px; min-inline-size: 40px; padding: 0 9px;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem; color: var(--ink);
  background: var(--surface-sunken); border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.coach-chip:hover { border-color: var(--line-strong); }
.coach-chip.is-done { color: var(--ink-faint); text-decoration: line-through; text-decoration-thickness: 1px; }
.coach-chip.is-next { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }

.coach-goal summary {
  cursor: pointer; min-block-size: 32px; display: flex; align-items: center; gap: 6px;
  font-size: 0.88rem; font-weight: 600; color: var(--accent-text);
  list-style: none;
}
.coach-goal summary::-webkit-details-marker { display: none; }
/* a small chevron that turns as it opens (the native marker goes with display:flex) */
.coach-goal summary::before {
  content: ''; flex: none; width: 7px; height: 7px; margin: 0 3px 0 1px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform 0.15s;
}
.coach-goal[open] summary::before { transform: rotate(45deg); }
.coach-goal p { font-size: 0.9rem; color: var(--ink-dim); line-height: 1.5; }

.coach-small-title {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-dim); margin: 0 0 6px;
}
.coach-stages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.coach-stage {
  position: relative;
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 5px 8px 5px 4px; border-radius: var(--radius-sm);
  font-size: 0.9rem; color: var(--ink-dim);
}
/* a thread between the dots */
.coach-stage + .coach-stage::before {
  content: ''; position: absolute; left: 14px; top: -5px; width: 2px; height: 10px;
  background: var(--line); border-radius: 1px;
}
.coach-stage-dot {
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--line-strong); background: var(--surface);
}
.coach-stage-dot svg { width: 12px; height: 12px; }
.coach-stage-name { min-width: 0; overflow-wrap: anywhere; }
.coach-stage-meta { font-size: 0.76rem; color: var(--ink-faint); white-space: nowrap; }
.coach-stage[data-status="done"] .coach-stage-dot { background: var(--safe); border-color: var(--safe); color: var(--accent-ink); }
.coach-stage[data-status="done-before"] .coach-stage-dot { border-color: var(--safe); color: var(--safe-text); }
.coach-stage[data-status="skipped"] .coach-stage-dot { border-color: var(--line-strong); color: var(--ink-faint); }
.coach-stage[data-status="done"] .coach-stage-name,
.coach-stage[data-status="done-before"] .coach-stage-name,
.coach-stage[data-status="skipped"] .coach-stage-name { color: var(--ink-faint); }
.coach-stage[data-status="done"] .coach-stage-meta,
.coach-stage[data-status="done-before"] .coach-stage-meta { color: var(--safe-text); }
.coach-stage[data-status="current"] { background: var(--accent-soft); color: var(--ink); font-weight: 700; }
.coach-stage[data-status="current"] .coach-stage-dot { border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 8px var(--accent); }
.coach-stage[data-status="current"] .coach-stage-meta { color: var(--accent-text); font-weight: 600; }

.coach-help {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  min-block-size: 36px; font-weight: 600; font-size: 0.92rem;
}
.coach-help .coach-btn-icon svg { width: 15px; height: 15px; }
/* the whole label is the 44px touch target, so the box itself can be normal size */
.coach-check {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  min-block-size: 44px; font-size: 0.9rem; color: var(--ink); cursor: pointer;
}
.coach-check input {
  width: 18px; height: 18px; min-block-size: 0; min-inline-size: 0;
  margin: 0; accent-color: var(--accent); flex: none;
}

/* ── solved ───────────────────────────────────────────────────────────────── */
.coach-done {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; align-items: start;
  padding: 14px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--safe) 11%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--safe) 45%, transparent);
}
.coach-done-badge {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--safe); color: var(--accent-ink);
}
.coach-done-badge svg { width: 26px; height: 26px; }
.coach-done-title { margin: 2px 0 4px; font-size: 1.2rem; }
.coach-done-text { color: var(--ink-dim); line-height: 1.45; }
.coach-done-note { margin-top: 6px; font-size: 0.9rem; }
.coach-done-note[hidden] { display: none; }
/* the buttons span the card, under the badge too */
.coach-done-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.coach-done-actions:empty { display: none; }

/* ── the bottom sheet (narrow screens) ────────────────────────────────────── */
.coach-grab { display: none; }
.coach.is-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  gap: 10px;
  /* --coach-sheet-cap: the room below the cube (coach-panel.js), so it never covers it */
  max-height: min(56vh, 480px, var(--coach-sheet-cap, 100vh)); overflow: auto; overscroll-behavior: contain;
  padding: 6px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border-bottom: 0;
  box-shadow: 0 -10px 30px rgb(0 0 0 / 0.22), 0 -1px 0 var(--line);
}
.coach.is-sheet.is-open { max-height: 78vh; }
.coach.is-sheet .coach-grab {
  position: sticky; top: -6px; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: -6px -16px 0; padding: 6px 16px 4px; min-block-size: 34px;
  font: inherit; font-size: 0.76rem; font-weight: 600; color: var(--ink-dim);
  background: var(--surface); border: 0; cursor: pointer;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.coach.is-sheet .coach-grab-bar {
  position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 4px; border-radius: 2px; background: var(--line-strong);
}
.coach.is-sheet .coach-grab-label { margin-top: 8px; }
.coach.is-sheet .coach-grab-icon { display: inline-flex; margin-top: 8px; transition: transform 0.2s; }
.coach.is-sheet .coach-grab-icon svg { width: 14px; height: 14px; }
.coach.is-sheet.is-open .coach-grab-icon { transform: rotate(180deg); }
.coach.is-sheet:not(.is-open) .coach-more { display: none; }
.coach.is-sheet .coach-move { min-width: 64px; height: 64px; font-size: 1.95rem; border-radius: 16px; }
.coach.is-sheet .coach-move.is-long { font-size: 1.3rem; }
.coach.is-sheet .coach-how { font-size: 0.85rem; }
.coach.is-sheet .coach-note { padding: 6px 10px; font-size: 0.84rem; }
.coach.is-sheet .coach-btn { min-block-size: 52px; }
.coach.is-sheet .coach-flash { top: 38px; }
/* things that come and go stay small, so they cover as little of the cube as they can */
.coach.is-sheet[data-status="off-track"] .coach-actions { display: none; }   /* the warning has its own Undo */
.coach.is-sheet .coach-off { padding: 10px 12px; }
.coach.is-sheet .coach-off-track { margin: 8px 0; }
.coach.is-sheet .coach-explain { flex-wrap: nowrap; gap: 10px; padding: 8px; }
.coach.is-sheet .coach-explain-stage { width: 96px; }
/* the explainer says the move, what it means and how: it takes the next move's place */
.coach.is-sheet.is-explaining .coach-now { display: none; }
/* a hint stands out by colour only here, so the sheet doesn't grow over the cube */
.coach.is-sheet .coach-now.is-hint .coach-title { font-size: inherit; }
.coach.is-sheet .coach-now.is-hint .coach-how { font-size: 0.85rem; }
.coach.is-sheet .coach-explain-text { font-size: 0.84rem; }
.coach.is-sheet.is-explaining .coach-note { display: none; }
.coach.is-sheet .coach-done { padding: 12px; }
body.has-coach-sheet { padding-bottom: calc(var(--coach-sheet-h, 0px) + 8px); }
body.has-coach-sheet .toast-host { bottom: calc(var(--coach-sheet-h, 0px) + 12px); }

/* ── the caption over the cube ────────────────────────────────────────────── */
.coach-caption {
  position: absolute; top: 10px; left: 10px; z-index: 2; pointer-events: none;
  display: inline-flex; align-items: center; gap: 10px;
  max-width: calc(100% - 20px);
  padding: 4px 14px 4px 4px; border-radius: var(--radius-pill);
  font-size: 0.84rem; font-weight: 600; color: var(--ink);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.coach-caption .cc-move {
  flex: none; min-width: 2.4em; padding: 4px 10px; border-radius: var(--radius-pill); text-align: center;
  font-family: var(--font-mono); font-size: 1.08rem; font-weight: 800; line-height: 1.2;
  color: var(--accent-ink); background: var(--accent);
}
.coach-caption .cc-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 4px 0; }
.coach-caption[data-status="off-track"] .cc-move,
.coach-caption[data-status="error"] .cc-move { color: var(--surface); background: var(--warn); }
.coach-caption[data-status="rotated"] .cc-move { color: var(--ink); background: var(--surface-hi); }
.coach-caption[data-status="solved"] .cc-move { color: var(--accent-ink); background: var(--safe); }
.coach-caption[data-status="mid-move"] .cc-move { background: transparent; color: var(--accent-text); box-shadow: inset 0 0 0 2px var(--accent); }
.coach-caption:has(.cc-move[hidden]) { padding-left: 14px; }

/* ── watching: a title card as each stage begins ──────────────────────────── */
.coach-stagecard {
  position: absolute; left: 50%; bottom: 14px; z-index: 2; pointer-events: none;
  width: min(calc(100% - 28px), 420px);
  display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center;
  padding: 12px 18px 14px; border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line); box-shadow: var(--shadow-2);
  opacity: 0; transform: translate(-50%, 10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.coach-stagecard.is-on { opacity: 1; transform: translate(-50%, 0); }
.coach-stagecard .csc-eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-text);
}
.coach-stagecard .csc-title { font-size: 1.15rem; font-weight: 800; line-height: 1.25; color: var(--ink); }
.coach-stagecard .csc-goal {
  font-size: 0.86rem; line-height: 1.4; color: var(--ink-dim);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* on a phone the cube is small: just the stage's name (the goal is in the sheet) */
body.has-coach-sheet .coach-stagecard { bottom: 10px; padding: 8px 14px 10px; gap: 1px; }
body.has-coach-sheet .coach-stagecard .csc-goal { display: none; }
body.has-coach-sheet .coach-stagecard .csc-title { font-size: 1.02rem; }

@media (max-width: 420px) {
  .coach { padding: 14px; }
  .coach-actions { gap: 6px; }
  .coach-btn { font-size: 0.74rem; }
  .coach-explain-stage { width: 112px; }
}

@media (prefers-reduced-motion: reduce) {
  .coach-bar-fill, .coach-flash, .coach-grab-icon, .coach-chip, .coach-stagecard, .coach-goal summary::before { transition: none; }
  .coach-now.is-hint { animation: none; }
}
