/* coach14.css — RELEASE 14, lane LUI: the new pieces of "the coach learns" (the owner-approved pictures, 24 Oct 2026): the WHOOP day
   card, the strain line, the lighter-week offer and line, the weekly cardio goal, "Details", the "was 3" tag and the why lines, the
   coach notes, the warm-up line and the cardio pace hint. Tokens only (--r13-*, --lawha-*, --kgym-*), so light, dark, her palettes and
   right to left (logical properties) follow. Loaded after r13-web.css, before look.css. Every control at least 44 px tall. */

/* ── the WHOOP day card: the ring, "WHOOP RECOVERY · YELLOW", the line, Use my normal plan ── */
.lawha-theme .r14-whoop{display:flex;align-items:flex-start;gap:12px;margin:0;padding:12px 14px;border-inline-start:6px solid var(--kgym-met);border-radius:var(--r13-card-radius,18px);background:var(--lawha-surface)}
.lawha-theme .r14-whoop.band-yellow{border-inline-start-color:var(--kgym-low)}
.lawha-theme .r14-whoop.band-red{border-inline-start-color:var(--kgym-min)}
.lawha-theme .r14-ring{flex:none;width:48px;height:48px}
.lawha-theme .r14-ring-track{fill:none;stroke:var(--lawha-line);stroke-width:4}
.lawha-theme .r14-ring-arc{fill:none;stroke:var(--kgym-met);stroke-width:4;stroke-linecap:round}
.lawha-theme .r14-ring.band-yellow .r14-ring-arc{stroke:var(--kgym-low)}
.lawha-theme .r14-ring.band-red .r14-ring-arc{stroke:var(--kgym-min)}
.lawha-theme .r14-ring-score{fill:var(--lawha-ink);font:400 17px/1 var(--lawha-display, Georgia, serif)}
.lawha-theme .r14-whoop-words{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}
.lawha-theme .r14-whoop-words>p{margin:0}
.lawha-theme .r14-whoop-k{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--lawha-muted)}
.lawha-theme .r14-band{margin-inline-start:4px;padding:1px 8px;border-radius:999px;letter-spacing:.04em;background:var(--kgym-met);color:#ffffff}
.lawha-theme .r14-band.band-yellow{background:var(--kgym-low);color:#17211c}
.lawha-theme .r14-band.band-red{background:var(--kgym-min);color:#ffffff}
[data-theme='dark'] .lawha-theme .r14-band{color:#17211c}
.lawha-theme .r14-whoop-line{font-size:15px;line-height:1.4;color:var(--lawha-ink);overflow-wrap:anywhere}
.lawha-theme .r14-normal{min-height:44px;margin-top:2px;border-radius:999px;white-space:normal}

/* ── the strain line, the lighter-week line, the warm-up line, the pace hint: one quiet row each ── */
.lawha-theme .r14-strain,.lawha-theme .r14-pace{display:flex;align-items:flex-start;gap:10px;margin:0;padding:10px 14px;border-radius:16px;background:var(--kgym-insight);color:var(--lawha-ink)}
.lawha-theme .r14-strain p,.lawha-theme .r14-pace p{margin:0;font-size:15px;line-height:1.4}
.lawha-theme .r14-strain-words,.lawha-theme .r14-pace-words{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.lawha-theme .r14-strain>.ui-glyph,.lawha-theme .r14-pace>.ui-glyph,.lawha-theme .r14-lighter-line>.ui-glyph,.lawha-theme .r14-warmup-line>.ui-glyph{flex:none;margin-top:2px}
/* lane MOVES-SWAP (the owner, 31 Oct 2026: "Don't use the links type of buttons"): a soft button, never an underlined link */
.lawha-theme .r14-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:0 16px;border:0;border-radius:999px;background:var(--kgym-sunk, var(--lawha-sage));color:var(--lawha-ink);font:inherit;font-size:15px;font-weight:600;text-decoration:none;cursor:pointer}
.lawha-theme .r14-link:disabled{opacity:.6;cursor:default}
.lawha-theme .r14-lighter-line{display:flex;align-items:flex-start;gap:10px;margin:0;padding:12px 14px;border:1.5px dashed var(--lawha-muted);border-radius:16px;font-size:15px;line-height:1.4;color:var(--lawha-ink)}
.lawha-theme .r14-warmup-line{display:flex;align-items:flex-start;gap:10px;margin:0;padding:10px 14px;border-radius:16px;background:var(--kgym-warn);color:var(--kgym-warn-ink);font-size:15px;line-height:1.4}

/* ── the lighter-week offer ── */
.lawha-theme .r14-lighter{display:flex;flex-direction:column;gap:6px;margin:0;padding:14px 16px;border-radius:var(--r13-card-radius,18px);background:var(--kgym-insight)}
.lawha-theme .r14-lighter-t{margin:0;font:400 24px/1.15 var(--lawha-display, Georgia, serif);color:var(--lawha-ink)}
.lawha-theme .r14-lighter-cause{margin:0;font-size:15px;color:var(--lawha-ink)}
.lawha-theme .r14-two{display:flex;gap:10px;margin-top:6px}
.lawha-theme .r14-two>.btn{flex:1 1 0;min-width:0;min-height:44px;border-radius:999px}

/* ── the weekly cardio goal ── */
.lawha-theme .r14-cardio{display:flex;flex-direction:column;gap:8px;margin:0;padding:12px 14px;border-radius:16px;background:var(--lawha-surface)}
.lawha-theme .r14-cardio p{margin:0;font-size:15px;color:var(--lawha-ink)}
.lawha-theme .r14-bar{display:block;width:100%;height:6px}
.lawha-theme .r14-bar-track{fill:var(--lawha-line)}
.lawha-theme .r14-bar-fill{fill:var(--lawha-accent)}
.lawha-theme .r14-chase{font-size:14px;line-height:1.4}

/* ── Details: a folded row; inside, the pieces that used to stand on the first screen ── */
.lawha-theme .r14-details{display:flex;flex-direction:column;gap:0;margin:0;padding:0;border-radius:16px;overflow:hidden}
.lawha-theme .r14-details-row{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;padding:8px 16px;border:0;background:var(--lawha-surface);color:var(--lawha-ink);font:inherit;font-size:15px;text-align:start;cursor:pointer}
.lawha-theme .r14-details-sub{flex:1;min-width:0;font-size:13px;color:var(--lawha-muted)}
.lawha-theme .r14-details-row>.ui-glyph{flex:none;transition:transform .15s}
.lawha-theme .r14-details-row[aria-expanded='true']>.ui-glyph{transform:rotate(90deg)}
[dir='rtl'] .lawha-theme .r14-details-row>.ui-glyph,.lawha-theme[dir='rtl'] .r14-details-row>.ui-glyph{transform:scaleX(-1)}
.lawha-theme .r14-details-body{display:flex;flex-direction:column;gap:10px;padding:4px 14px 14px;background:var(--lawha-surface)}
.lawha-theme .r14-details-body[hidden]{display:none}
.lawha-theme .r14-details-body>.card{box-shadow:none}
.lawha-theme .r14-routine{display:flex;flex-direction:column;gap:6px}
.lawha-theme .r14-routine .plan-length{margin:0}

/* ── the plan rows: "was 3" and the why line under each exercise ── */
.lawha-theme .r14-was{display:inline-block;margin-inline-start:8px;padding:0 7px;border-radius:999px;background:var(--kgym-warn);color:var(--kgym-warn-ink);font-size:12px;font-weight:700}
.lawha-theme .plan-why.r14-why{display:block;font-size:13px;color:var(--lawha-ink)}
.lawha-theme .r14-normal-min{font-weight:400;font-size:13px;color:var(--lawha-muted)}
.lawha-theme .r13-why.is-cut{padding:8px 12px;border-radius:14px;background:var(--kgym-warn);color:var(--kgym-warn-ink);font-weight:700}

/* ── the coach notes: at most 2, Why? and Got it ── */
.lawha-theme .r14-notes{display:flex;flex-direction:column;gap:8px;min-width:0}
.lawha-theme .r14-note{display:flex;flex-direction:column;gap:4px;margin:0;padding:12px 14px;border-radius:16px;background:var(--kgym-insight)}
.lawha-theme .r14-note-t{margin:0;font-size:15px;line-height:1.4;color:var(--lawha-ink)}
.lawha-theme .r14-note-why{margin:0;font-size:13px;line-height:1.4;color:var(--lawha-ink)}
.lawha-theme .r14-note-why[hidden]{display:none}
.lawha-theme .r14-note-a{display:flex;align-items:center;justify-content:space-between;gap:10px}
.lawha-theme .r14-gotit{min-height:44px;border-radius:999px}
.lawha-theme .r14-notes-foot{margin:0;font-size:13px;color:var(--lawha-muted)}
.lawha-theme .r14-notes-empty{margin:0;font-size:15px;color:var(--lawha-muted)}

/* ── the rest reason (soreness) on Your week and the muscle sheet ── */
.lawha-theme .r14-sore-rest{display:flex;align-items:flex-start;gap:6px;margin:4px 0 0;font-size:13px;color:var(--lawha-ink)}

/* ── the start piece on the phone: in the flow, right under the WHOOP line (never fixed over the screen) ── */
:root[data-look='new'] .r13-frame[data-r13='plan'][data-layout='phone'] .r13-main>.r13-plan-dock{position:static}
:root[data-look='new'] .r14-start-again{width:100%;min-height:56px;font-size:17px}
@media (min-width:900px){
  /* W1: Start, Edit and Other plans side by side in one row (anything else of the start piece, the glucose check, takes the row above) */
  :root[data-look='new'] .r13-frame[data-r13='plan'][data-layout='web'] .r13-main>.r13-plan-dock{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,.75fr) minmax(0,1fr);align-items:stretch;gap:10px}
  :root[data-look='new'] .r13-frame[data-r13='plan'][data-layout='web'] .r13-main>.r13-plan-dock>:not(.r13-start):not(.r13-dock-row){grid-column:1/-1}
  :root[data-look='new'] .r13-frame[data-r13='plan'][data-layout='web'] .r13-main>.r13-plan-dock>.r13-start{width:auto;min-width:0;white-space:normal}
  :root[data-look='new'] .r13-frame[data-r13='plan'][data-layout='web'] .r13-main>.r13-plan-dock>.r13-dock-row{display:contents}
  :root[data-look='new'] .r13-frame[data-r13='plan'][data-layout='web'] .r13-main>.r13-plan-dock>.r13-dock-row>*{min-width:0;min-height:56px}
}

/* ── Settings → Routine: "Cardio goal a week" (NEW) and its note ── */
.lawha-theme .r14-new{display:inline-block;margin-inline-start:8px;padding:1px 7px;border-radius:999px;background:var(--lawha-accent);color:var(--lawha-surface);font-size:11px;font-weight:700;letter-spacing:.04em;vertical-align:middle}
.lawha-theme .r14-goal-note{margin:6px 4px 0;font-size:13px;color:var(--lawha-muted)}

/* ── History → Lifts: "What KGYM has learned" ── */
.lawha-theme .r14-learned-box[hidden]{display:none}
.lawha-theme .r14-learned{display:flex;flex-direction:column;gap:8px;margin:0 0 10px;padding:14px 16px;border-radius:var(--r13-card-radius,18px)}
.lawha-theme .r14-learned-t{margin:0;font:400 24px/1.15 var(--lawha-display, Georgia, serif);color:var(--lawha-ink)}
.lawha-theme .r14-learned-sub{margin:0;font-size:13px;color:var(--lawha-muted)}
.lawha-theme .r14-learned-k{margin:6px 0 0;font-size:13px;font-weight:700;color:var(--lawha-muted)}
.lawha-theme .r14-learned-lifts,.lawha-theme .r14-learned-parts{display:flex;flex-direction:column;gap:6px;margin:0;padding:0;list-style:none}
.lawha-theme .r14-learned-lifts>li,.lawha-theme .r14-learned-parts>li{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;padding:6px 0;border-top:1px solid var(--lawha-line);font-size:15px;color:var(--lawha-ink)}
.lawha-theme .r14-learned-name,.lawha-theme .r14-learned-parts>li>span:first-child{flex:1 1 140px;min-width:0}
.lawha-theme .r14-learned-before,.lawha-theme .r14-learned-nums{font-size:13px;color:var(--lawha-muted)}
.lawha-theme .r14-learned-stats{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:4px}
.lawha-theme .r14-learned-stat{margin:0;font-size:14px;color:var(--lawha-ink)}
.lawha-theme .r14-learned-stat>b{font:400 22px/1 var(--lawha-display, Georgia, serif)}
.lawha-theme .r14-week-notes{display:flex;flex-direction:column;gap:10px;min-width:0}
.lawha-theme .r14-rail-cardio{display:flex;flex-direction:column;gap:4px;flex-basis:100%;min-width:0}
.lawha-theme .rail-week:has(.r14-rail-cardio){flex-wrap:wrap}

/* the title block: the classic chips row holds only the two chips the title already says (minutes, exercises) on most days —
   then it takes no room, so the WHOOP line sits right under the title (picture 1) */
:root[data-look='new'] .r13-plan-hero>.today-chips:not(:has(>.chip:nth-child(3))){display:none}
.lawha-theme .coach-t.r14-pace-line{font-weight:400}
.lawha-theme .r14-plus{font-weight:700}
