/* r13-plan.css — release 13, Lane L3a: Morning (the Plan stop) with its fixes, her Morning, Edit mode, Settings, and the shell in the new look.
   Rules start with :root[data-look='new'] and use the --r13-* tokens of r13-base.css (light, dark, the palettes, right to left by
   logical properties). Loaded after r13-base.css and before look.css. The classic controls are moved here, never redrawn: these
   rules only place and restyle them. */

/* ── Morning: the place chip ── */
:root[data-look='new'] .r13-place{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
:root[data-look='new'] .r13-place-chip{min-height:44px;gap:6px;border-radius:999px}
:root[data-look='new'] .r13-place-panel{width:100%}
:root[data-look='new'] .r13-place-panel .place-row{margin:0}

/* ── Morning: the title block (the classic workout card, without its card chrome) ── */
:root[data-look='new'] .r13-plan-title{display:flex;flex-direction:column;gap:10px;min-width:0}
:root[data-look='new'] .r13-plan-hero{padding:0;border:0;background:none;box-shadow:none}
:root[data-look='new'] .r13-plan-hero>.card-kicker,:root[data-look='new'] .r13-plan-hero>.row-sb>.card-kicker{display:none}
:root[data-look='new'] .r13-plan-hero>.hero-cta{display:none}
:root[data-look='new'] .r13-plan-hero>.today-chips>.chip:nth-child(-n+2){display:none}
:root[data-look='new'] .r13-plan-kicker{margin:0;font-size:14px;color:var(--r13-muted)}
:root[data-look='new'] .lawha-theme .r13-plan-hero>h2{margin:2px 0 4px;font:400 30px/1.08 var(--lawha-display, Georgia, serif);color:var(--r13-ink)}
:root[data-look='new'] .r13-plan-numbers{margin:0;font-size:15px;font-weight:600;color:var(--r13-ink)}
:root[data-look='new'] .r13-plan-title .today-folds{border-radius:var(--r13-card-radius)}

/* ── Morning: the fixes ── */
:root[data-look='new'] .r13-fixes{display:flex;flex-direction:column;gap:6px;min-width:0}
:root[data-look='new'] .r13-fix-classic .r13-fix-words>*{margin:0}
:root[data-look='new'] .r13-fix-classic .joint-line,:root[data-look='new'] .r13-fix-classic .pc-status{padding:0;border:0;background:none;box-shadow:none}
:root[data-look='new'] .r13-fix-classic .form-note{font-size:13px}
:root[data-look='new'] .r13-close-slot:empty{display:none}
:root[data-look='new'] .r13-close-slot{display:contents}
:root[data-look='new'] .r13-her-first{min-width:0}
:root[data-look='new'] .r13-her-first .preg-card{background:var(--r13-insight)}
/* her stop signs are never folded and never hidden (her safety rule) */
:root[data-look='new'] .r13-her-first .preg-stop{display:block}
/* her stop signs: two columns inside the yellow box (the owner's yes, 23 Oct 2026); one column on narrow phones, nothing cut */
:root[data-look='new'] .r13-stop-list .r13-stop-words{display:block;font-size:14px}
:root[data-look='new'] .r13-stop-signs{margin:6px 0 0;padding-inline-start:18px;columns:2;column-gap:24px;font-size:13px;line-height:1.35}
:root[data-look='new'] .r13-stop-signs>li{break-inside:avoid;margin:0 0 4px;overflow-wrap:anywhere}
@media (max-width:359px){:root[data-look='new'] .r13-stop-signs{columns:1}}
:root[data-look='new'] .r13-her-counts{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 0}
/* walk 13 L11: the coach's changes one tap away — the two counts are the buttons that open the classic lines under them */
/* the review of release 13 (S16, dark): the counts are buttons in the theme's own colours — the sage of a soft button, the ink, a line —
   never the classic chip's sunk colour, which in dark sat as a near-black hole in her card */
:root[data-look='new'] .r13-her-chip{min-height:44px;border:1px solid var(--r13-line);background:var(--r13-raised);color:var(--r13-ink);cursor:pointer;font:inherit;font-size:13px;font-weight:600}
/* release 14 gate (the review's own check, 4.5 : 1 words and a button that stands out from her card): the sage sat within 1.1 : 1 of
   her card's tint in dark purple, so a button reads as a lighter chip in light and a darker one in dark, in every theme */
:root[data-look='new'][data-theme='dark'] .r13-her-chip{background:var(--r13-paper)}
:root[data-look='new'] .r13-her-chip[aria-expanded='true']{box-shadow:inset 0 0 0 2px var(--r13-accent)}
:root[data-look='new'] .r13-her-first .preg-lines[hidden]{display:none}
/* walk 13 L10: a classic fix row's dot sits beside its title (the first line), not in the middle of its words */
:root[data-look='new'] .r13-fix.r13-fix-classic{align-items:flex-start}
:root[data-look='new'] .r13-fix.r13-fix-classic>.r13-fix-dot{margin-block-start:5px}

/* ── Morning: the week body card (the figure, the week line, WHOOP and why) ── */
:root[data-look='new'] .r13-figure-card{display:flex;flex-direction:column;gap:8px;padding:10px 12px;border-radius:var(--r13-card-radius)}
:root[data-look='new'] .r13-figure-slot{display:flex;flex-direction:column;gap:6px;min-width:0}
:root[data-look='new'] .r13-figure-slot>.r13-figure{min-width:0}
:root[data-look='new'] .r13-figure-words{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;min-width:0}
:root[data-look='new'] .r13-figure-card .ws-check{display:none}
:root[data-look='new'] .r13-why{display:flex;flex-direction:column;gap:8px;min-width:0}

/* ── Morning: the plan rows, the dock, Other plans ── */
:root[data-look='new'] .r13-plan-rows{display:flex;flex-direction:column;gap:var(--r13-gap);min-width:0}
:root[data-look='new'] .r13-plan-dock{display:flex;flex-direction:column;gap:8px;min-width:0}
:root[data-look='new'] .r13-plan-dock .r13-start{width:100%;min-height:56px;font-size:17px}
:root[data-look='new'] .r13-dock-row{display:flex;flex-wrap:wrap;gap:10px}
:root[data-look='new'] .r13-dock-row>*{flex:1 1 auto;min-width:0;min-height:44px}
:root[data-look='new'] .r13-others-go{flex-wrap:wrap;white-space:normal;height:auto;row-gap:2px}
:root[data-look='new'] .r13-dock-row>.r13-others-go{flex:1.4}
:root[data-look='new'] .r13-badge{margin-inline-start:6px;padding:1px 8px;border-radius:999px;background:var(--r13-min);color:var(--r13-surface);font-size:13px;font-weight:700}
:root[data-look='new'] .r13-others{display:flex;flex-direction:column;gap:var(--r13-gap);min-width:0}
:root[data-look='new'] .r13-others[hidden]{display:none}
:root[data-look='new'] .r13-others>h2{margin:6px 0 0}
/* the three ways: ONE copy in the new look, inside Other plans on both layouts (the review of 1f77ce2) — the classic website copy
   the shell takes into its title line stays out of sight while Morning is the new one */
@media (min-width:900px){:root[data-look='new'] .r13-others .flex-mode.phone-only{display:grid!important}
:root[data-look='new'] .tab-content:has(.r13-frame[data-r13='plan']) .title-line>.flex-mode.title-act{display:none}}
:root[data-look='new'] .r13-quiet[data-resting]{display:block;margin-top:2px}
/* walk 13 M2: a pair of buttons side by side (Close the week's "Start — close the week" beside "Two sessions") wraps its words
   inside the button, never cut off at the new look's larger type */
:root[data-look='new'] .r13-frame .eq2>.btn{height:auto;min-height:48px;padding-block:8px;white-space:normal;line-height:1.2;overflow-wrap:anywhere}

/* ── Edit mode (the classic editor, restyled): the rows as cards, the end stretch, + Add and Back to the coach's plan ── */
:root[data-look='new'] .edit-sheet{border-radius:var(--r13-card-radius) var(--r13-card-radius) 0 0}
:root[data-look='new'] .edit-sheet .ed-row,:root[data-look='new'] .edit-card .ed-row{border-radius:14px;background:var(--r13-surface)}
:root[data-look='new'] .edit-sheet .ed-mark,:root[data-look='new'] .edit-card .ed-mark{color:var(--r13-accent)}
:root[data-look='new'] .edit-sheet .ed-remove,:root[data-look='new'] .edit-card .ed-remove{color:var(--r13-min)}

/* ── Settings in the new look: the classic groups as the new look's cards (every line and control unchanged) ── */
:root[data-look='new'] .r13-settings .settings-summary,:root[data-look='new'] .r13-settings.settings-page{border-radius:var(--r13-card-radius)}
:root[data-look='new'] .r13-settings .setting-line{min-height:48px}
:root[data-look='new'] .r13-settings .account-card{border-radius:var(--r13-card-radius)}

/* ── The shell in the new look: the tab bar steps aside while a workout is on Today (the phone); ⌄ "Show the tabs" brings it
      back (data-tabs-shown, set by showTabs in src/client/views/shell.ts) ── */
@media (max-width:899px){
:root[data-look='new'] #app:has(.screen-today .r13-frame[data-workout]) .tab-bar:not([data-tabs-shown]){display:none}
/* the release 13 gate: with the tabs shown in a workout, the dock sits above the tab bar again (it was drawn over it) */
:root[data-look='new'] #app:has(.tab-bar[data-tabs-shown]) .r13-frame[data-layout='phone'][data-workout] .r13-dock{bottom:calc(86px + env(safe-area-inset-bottom))}
}

/* RELEASE 15 ENHANCED (picture 1, #10): before Start the one list is the plan and the editor; the classic rows stay in the page out
   of sight (the classic Edit path and its sheets still work from them) and no separate Edit item shows */
:root[data-look='new'] .r15e-classic-rows .plan-list,:root[data-look='new'] .r15e-classic-rows [data-focus-key='edit-open:today']{display:none}
:root[data-look='new'] .r15e-list-wrap{display:flex;flex-direction:column;gap:6px;min-width:0}
:root[data-look='new'] .r15e-list-wrap > .r13-live:empty,:root[data-look='new'] .r15e-week-slot:empty,:root[data-look='new'] .r15e-short-slot:empty{display:none}
