
/* ===== SETUP + BLOCKING ===== */
.setup-steps{display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:1px;
  background:var(--rule-soft); border:1px solid var(--rule-soft); border-radius:8px;
  overflow:hidden; margin-bottom:22px}
.setup-step{padding:14px 16px; background:var(--sheet); display:flex; flex-direction:column; gap:6px}
.setup-step .n{font-family:var(--f-mono); font-size:12.5px; color:var(--target); letter-spacing:.1em}
.setup-step b{font-family:var(--f-disp); font-size:15px; font-weight:600}
.setup-step p{font-size:12.5px; color:var(--ink-3); line-height:1.45; flex:1}
.ownrow{display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:16px}
.ownbar{display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:26px;
  padding:11px 14px; border:1px solid var(--rule); border-radius:8px; background:var(--sheet-2)}
.ownbar .eyebrow{margin-right:auto}
/* ===== CHARTS ===== */
.chart{display:block; overflow:visible}
.chartbox{border:1px solid var(--rule); border-radius:12px; background:var(--sheet); padding:16px 16px 10px; position:relative}
.chartbox-tight{padding:12px}
.ch-tick{font-family:var(--f-mono); font-size:11px; fill:var(--axis); opacity:.85}
.ch-lab{font-family:var(--f-body); font-size:12.5px; fill:var(--ink-2)}
.ch-val{font-family:var(--f-mono); font-size:12.5px; fill:var(--ink-3)}
.ch-hit{cursor:default}
.ch-hit:hover rect[fill="transparent"]{fill:var(--sheet-2); opacity:.55}
.ch-note{font-size:12.5px; color:var(--ink-3); line-height:1.55; margin-top:12px; max-width:74ch}
.legend{display:flex; gap:16px; flex-wrap:wrap; margin-top:12px}
.lg{display:inline-flex; align-items:center; gap:7px; font-size:12.5px; color:var(--ink-2)}
.lg i{width:11px; height:11px; border-radius:4px; flex:none}
.lg b{font-family:var(--f-mono); font-size:12.5px; color:var(--ink-3); font-weight:500}
.cal-heat{max-width:392px}
.cal-heat .cal-cell{font-size:11px}
.ramp{display:flex; align-items:center; gap:4px; margin-top:12px; justify-content:flex-end}
.ramp i{width:15px; height:11px; border-radius:4px}

/* Tooltip: one node, moved and refilled, rather than 365 title elements. */
.chtip{position:fixed; z-index:95; pointer-events:none; opacity:0; transition:opacity .15s;
  background:var(--ink); color:var(--paper); font-size:12.5px; line-height:1.4;
  padding:7px 10px; border-radius:8px; max-width:250px; box-shadow:var(--shadow)}
.chtip[data-on="true"]{opacity:1}

/* ===== KPI ROW ===== */
.kpis{display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:1px;
  background:var(--rule); border:1px solid var(--rule); border-radius:12px; overflow:hidden; margin-top:16px}
.kpi{background:var(--sheet); padding:16px 18px 15px; display:flex; flex-direction:column; gap:3px}
.kpi b{font-family:var(--f-disp); font-size:30px; font-weight:700; letter-spacing:-.025em; line-height:1.05;
  font-variant-numeric:tabular-nums; margin-top:4px}
.kpi b i{font-style:normal; font-size:14px; font-weight:500; color:var(--ink-3); margin-left:5px}
.kpi-sub{font-size:12.5px; color:var(--ink-3)}
.kpi-hero b{font-size:46px; color:var(--target)}

/* ===== RANGE TOGGLE ===== */
.rangebar{display:inline-flex; border:1px solid var(--rule); border-radius:99px; background:var(--sheet); padding:3px; gap:2px}
.rgb{padding:8px 15px; min-height:44px; border-radius:99px; font-size:12.5px; color:var(--ink-3); white-space:nowrap}
.rgb[aria-pressed="true"]{background:var(--ink); color:var(--sheet)}
.rgb:hover[aria-pressed="false"]{color:var(--ink)}
.dtabs{margin-bottom:14px}
.rangebar+.rangebar,.dtabs+.rangebar{margin-top:0}
.rgb-s{display:none}
/* min-width, because the short labels ("1yr", "All") made 38px buttons. */
@media (max-width:520px){ .rgb{padding:8px 12px; min-width:44px} .rgb-l{display:none} .rgb-s{display:inline} }
/* Four data tabs need about 330px. Below that they go two by two rather than
   push the page sideways. */
@media (max-width:380px){ .dtabs{display:grid; grid-template-columns:1fr 1fr; border-radius:24px; width:100%}
  .dtabs .rgb{padding:8px 6px; text-align:center} }

/* ---- the summary sheet ---- */
.sum-ctl{display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; margin:0 0 10px}
.sum-acts{display:flex; flex-wrap:wrap; gap:8px}
.sum-priv{font-size:12.5px; color:var(--ink-3); margin:0 0 6px; max-width:64ch}
.sum-msg{font-size:13.5px; color:var(--ink); margin:0 0 8px; min-height:1px}
.sum-msg:empty{margin:0}
.sum-fallback{display:block; width:100%; max-width:720px; min-height:180px; margin:0 0 12px; padding:12px;
  font-family:var(--f-mono); font-size:12.5px; color:var(--ink); background:var(--sheet);
  border:1px solid var(--rule); border-radius:10px}
.sum-fallback[hidden]{display:none}
.sumdoc{border:1px solid var(--rule); border-radius:12px; background:var(--sheet); padding:20px 22px 16px;
  max-width:720px}
.sumdoc h2{font-size:21px; font-weight:700; letter-spacing:-.015em; margin:0 0 4px; color:var(--ink)}
.sum-sub{font-size:14px; color:var(--ink-2); margin:0 0 6px}
.sum-note{font-size:12.5px; color:var(--ink-3); margin:0; max-width:64ch; line-height:1.5}
.sumdoc h3{font-family:var(--f-mono); font-size:11px; font-weight:500; letter-spacing:.12em; text-transform:uppercase;
  color:var(--ink-3); margin:20px 0 4px}
.sumdoc ul{list-style:none; margin:0; padding:0}
.sumdoc li{font-size:14px; color:var(--ink); line-height:1.5; padding:6px 0; border-top:1px solid var(--rule-soft);
  overflow-wrap:break-word; font-variant-numeric:tabular-nums}
@media (max-width:520px){ .sumdoc{padding:16px 15px 12px} }

/* ---- print ----
   Printing is how the summary reaches a clinic that does not take email, so
   the page prints as the sheet and nothing else: no rail, no tab bar, no
   title bar, no controls. The palette is pinned to the light one, because a
   dark-mode sheet printed on white paper is pale ink on nothing. */
@media print {
  :root, :root[data-theme="dark"]{
    --paper:#FFFFFF !important; --sheet:#FFFFFF !important; --sheet-2:#FFFFFF !important;
    --ink:#14202B !important; --ink-2:#3D4E5C !important; --ink-3:#4D5D67 !important;
    --rule:#C3CCD3 !important; --rule-soft:#D7DDE2 !important; color-scheme:light}
  body{background:#FFFFFF !important}
  .rail, .tabbar, .topbar, .disclaimer, .dtabs, .sum-ctl, .sum-priv, .sum-msg, .sum-fallback,
  .skip, #toast, .sheet-scrim{display:none !important}
  .app, .canvas, #view, .wrap{display:block !important; margin:0 !important; padding:0 !important;
    max-width:none !important; box-shadow:none !important; border:0 !important}
  .sumdoc{border:0; padding:0; max-width:none}
  .sumdoc li{break-inside:avoid}
  .sumdoc h3{break-after:avoid}
  @page{margin:14mm}
  html[data-print="summary"] body > *:not(#print-summary){display:none !important}
  html[data-print="summary"] #print-summary{display:block !important}
  html[data-print="proto"] body > *:not(#print-proto){display:none !important}
  html[data-print="proto"] #print-proto{display:block !important}
}
#print-summary{display:none; color:var(--ink)}
#print-proto{display:none; font-family:var(--f-body, inherit); color:var(--ink)}
#print-proto h1{font-family:var(--f-disp); font-size:22pt; margin:0 0 2pt}
#print-proto .pc-meta{font-size:10pt; color:var(--ink-3); margin-bottom:10pt}
#print-proto .pc-list{list-style:none; padding:0; margin:0; counter-reset:pc}
#print-proto .pc-list li{display:flex; gap:10pt; align-items:flex-start; padding:6pt 0; border-top:1px solid var(--rule); break-inside:avoid; counter-increment:pc}
#print-proto .pc-list li::before{content:counter(pc); font-family:var(--f-mono); font-size:10pt; width:16pt; flex:none; padding-top:2pt}
#print-proto .pc-fig{flex:none; width:56px}
#print-proto b{font-size:12pt}
#print-proto .pc-dose{font-family:var(--f-mono); font-size:9.5pt; color:var(--ink-2)}
#print-proto p{font-size:10pt; line-height:1.4; margin:2pt 0 0}
#print-proto .pc-foot{margin-top:12pt; font-size:9pt; color:var(--ink-3)}

/* ===== SAMPLE DATA ===== */
/* Loud on purpose. Unlabelled sample history is a lie about the user's
   own behaviour, and the label is the only thing separating the two. */
/* Solid, not a tint: inside .sampnote the same 14% wash was landing twice and
   the badge that makes sample data honest was the least readable thing on the
   page at 4.08:1. */
.samp{display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:4px;
  background:var(--caution); color:var(--sheet); font-family:var(--f-mono); font-size:11px;
  font-weight:600; letter-spacing:.07em; text-transform:uppercase}
.sampnote{display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:24px;
  padding:14px 16px; border:1px dashed var(--caution); border-radius:12px; background:var(--caution-bg)}
.sampnote p{flex:1; min-width:220px; font-size:13.5px; color:var(--ink-2); line-height:1.5}

/* ===== HISTORY ===== */
.hday{margin-bottom:22px}
.hday-head{display:flex; align-items:baseline; gap:12px; padding-bottom:9px; margin-bottom:9px;
  border-bottom:1px solid var(--rule); flex-wrap:wrap}
.hday-head b{font-family:var(--f-disp); font-size:16px; font-weight:600}
.hday-tot{margin-left:auto; font-size:12.5px; color:var(--ink-3)}
.hrow{border:1px solid var(--rule); border-radius:12px; background:var(--sheet); margin-bottom:8px; overflow:hidden}
.hrow[data-open="true"]{border-color:var(--ink-3)}
.hrow-main{display:flex; align-items:center; gap:14px; width:100%; text-align:left; padding:13px 16px; min-height:56px}
.hrow-main:hover{background:var(--sheet-2)}
.hrow-time{font-size:12.5px; color:var(--ink-3); width:62px; flex:none}
.hrow-body{flex:1; min-width:0; display:flex; flex-direction:column; gap:2px}
.hrow-body b{font-size:14px; font-weight:600}
.hrow-sub{font-size:12.5px; color:var(--ink-3)}
.hrow-chev{flex:none; width:26px; height:26px; display:grid; place-items:center; border-radius:4px;
  background:var(--sheet-2); color:var(--ink-3); font-size:16px; line-height:1}
.hrow-detail{padding:0 16px 15px; border-top:1px solid var(--rule-soft); padding-top:14px}
.hchips{display:flex; gap:7px; flex-wrap:wrap; margin-bottom:14px}
.hrow-acts{display:flex; gap:8px; flex-wrap:wrap}

/* ===== SETTINGS ===== */
.srow{display:flex; align-items:center; gap:14px; width:100%; text-align:left; min-height:60px;
  padding:13px 16px; border:1px solid var(--rule); border-radius:12px; background:var(--sheet); margin-bottom:8px}
.srow:not(.srow-static):hover{border-color:var(--ink-3); background:var(--sheet-2)}
.srow-static{cursor:default}
.srow-body{flex:1; min-width:0; display:flex; flex-direction:column; gap:2px}
.srow-body b{font-size:14px; font-weight:600}
.srow-body span{font-size:12.5px; color:var(--ink-3); line-height:1.4}
.srow-val{font-size:13.5px; color:var(--ink-3); text-align:right; flex:none; max-width:45%}
.srow-chev{flex:none; color:var(--ink-3); font-size:19px; line-height:1}
.sdetail{margin:-2px 0 14px; padding:15px 16px; border:1px solid var(--rule); border-left:3px solid var(--target);
  border-radius:0 11px 11px 0; background:var(--sheet-2); animation:rise .22s ease both}
.opt{display:block; width:100%; text-align:left; padding:12px 14px; border:1px solid var(--rule);
  border-radius:8px; background:var(--sheet); margin-bottom:8px; min-height:44px}
.opt:last-child{margin-bottom:0}
.opt[aria-pressed="true"]{border-color:var(--target); background:var(--target-soft)}
.opt b{display:block; font-size:14px; font-weight:600; margin-bottom:2px}
.opt span{font-size:12.5px; color:var(--ink-3); line-height:1.45}
.notice{border:1px solid var(--rule); border-left:3px solid var(--t-active); border-radius:0 11px 11px 0;
  background:var(--sheet-2); padding:14px 16px; margin-bottom:12px}
.notice p{font-size:12.5px; color:var(--ink-2); line-height:1.6; max-width:72ch}
.notice p b{color:var(--ink)}
.notice .btnrow{margin-top:10px}
.chan{display:inline-flex; align-items:center; gap:5px; margin-top:5px; font-family:var(--f-mono);
  font-size:11px; letter-spacing:.07em; text-transform:uppercase; color:var(--t-active)}
.chan::before{content:"↳"}
.chan[data-ok="false"]{color:var(--ink-3)}
.datacard{border:1px solid var(--rule); border-radius:12px; background:var(--sheet); padding:17px 18px}
/* Every menu is a touch target (suite 10: 44px). Menus added without a class
   rendered at the browser default, about 19px tall (7 Nov 2026). */
select{min-width:44px; min-height:44px;}
/* Block flow, not flex: a summary that holds a <b> and plain words would become
   two flex items side by side (the Start sheet's Fit today's session row did). */
.datacard summary{min-height:44px; box-sizing:border-box; padding:11px 0; cursor:pointer;}
/* The goal and working-hours fields come from a pack with no styles of its own
   and rendered at the browser's 21 to 24px (14 Nov 2026). */
#goal-target,#wd-start,#wd-end{min-height:44px; padding:0 10px; border:1px solid var(--rule); border-radius:8px; background:var(--sheet); color:var(--ink); font:inherit;}
.rx-more{margin-top:10px}
.rx-more>summary{display:inline-flex; align-items:center; list-style:none; cursor:pointer}
.rx-more>summary::-webkit-details-marker{display:none}
.rx-more>.rx-actions{margin-top:10px}
/* Chromium lays out a closed details' contents (content-visibility) rather
   than removing them, so they measured as sitting on the row below. */
.rx-more:not([open])>.rx-actions{display:none}
.ck-next{margin:14px 0 4px; padding:12px 14px; border:1px solid var(--rule); border-radius:12px}
.ck-next .ck-sub{margin:0 0 10px}
#opening .disclaimer{margin-top:14px; font-size:12.5px}
.datacard select{min-width:44px; min-height:44px; border:1px solid var(--rule); border-radius:8px;
  background:var(--sheet-2); padding:9px 10px; font:inherit; font-size:14px; color:var(--ink); outline:none}
.datacard select:focus{border-color:var(--ink-3)}
#gap-finder .filters input,#gap-finder .filters select{min-height:44px; border:1px solid var(--rule); border-radius:8px;
  background:var(--sheet-2); padding:9px 10px; font:inherit; font-size:14px; color:var(--ink); outline:none}
#gap-finder .filters input:focus,#gap-finder .filters select:focus{border-color:var(--ink-3)}
/* ---- price cards ---- */
/* A fieldset, for the radio group's name; its default min-width is
   min-content, which is how a fieldset pushes a phone page sideways. */
.prices{display:grid; grid-template-columns:repeat(auto-fit, minmax(210px,1fr)); gap:12px; margin:20px 0 0;
  border:0; padding:0; min-width:0}
.price-card{position:relative; display:flex; flex-direction:column; gap:9px; min-width:0; cursor:pointer;
  border:1px solid var(--rule); border-radius:12px; background:var(--sheet); padding:19px 18px 16px; text-align:left}
/* Chosen is the red edge; best value is the badge. They start on the same
   card and part company the moment somebody picks another. */
.price-card[data-sel="true"]{border-color:var(--target); box-shadow:inset 0 0 0 1px var(--target)}
.price-card:hover[data-sel="false"]{border-color:var(--ink-3)}
.price-card:focus-within{outline:2px solid var(--target); outline-offset:3px}
.price-top{display:flex; align-items:center; justify-content:space-between; gap:8px}
.price-dot{flex:none; width:18px; height:18px; border-radius:50%; border:2px solid var(--ink-3)}
.price-card[data-sel="true"] .price-dot{border-color:var(--target); box-shadow:inset 0 0 0 3px var(--sheet); background:var(--target)}
.price-save{font-size:12.5px; color:var(--ink-2); line-height:1.45; font-weight:600}
.price-go{display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; margin-top:14px}
.price-chosen{font-size:14px; color:var(--ink); margin:0; flex:1 1 240px}
.price-badge{position:absolute; top:-10px; left:15px; background:var(--target); color:var(--on-target);
  font-family:var(--f-mono); font-size:11px; letter-spacing:.11em; text-transform:uppercase; padding:3px 9px; border-radius:99px}
.price-amt{font-family:var(--f-disp); font-weight:700; font-size:34px; line-height:1; letter-spacing:-.02em;
  color:var(--ink); font-variant-numeric:tabular-nums; overflow-wrap:break-word}
.price-amt i{font-style:normal; font-size:12.5px; font-weight:500; font-family:var(--f-body); color:var(--ink-3); margin-left:6px}
.price-sub{font-size:12.5px; color:var(--ink-3); min-height:1.35em}
.price-note{font-size:12.5px; color:var(--ink-2); line-height:1.45; overflow-wrap:break-word}
.price-card .btn{margin-top:auto; justify-content:center; width:100%}
.cmpwrap{overflow-x:auto; margin-top:4px}
.cmp{width:100%; border-collapse:collapse; font-size:14px; min-width:320px}
.cmp th{text-align:left; font-family:var(--f-mono); font-size:11px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--ink-3); font-weight:500; padding:0 10px 9px 0}
.cmp th:not(:first-child), .cmp td:not(:first-child){text-align:center; width:96px}
/* Two 96px value columns on a phone left 136px for the feature names, so
   every one of them ran to three lines. "All 119" needs about 60. */
@media (max-width:520px){ .cmp th:not(:first-child), .cmp td:not(:first-child){width:72px} .cmp td{padding:10px 6px} }
.cmp td{padding:10px 10px; border-top:1px solid var(--rule-soft); color:var(--ink-2); vertical-align:top}
.cmp td:first-child{color:var(--ink); padding-left:0}
.cmp .yes{color:var(--target); font-weight:700}
.cmp .no{color:var(--ink-3)}
.pcard[data-locked="true"] .pcard-days{opacity:.5}
.datacard p{font-size:13.5px; color:var(--ink-2); line-height:1.6; max-width:74ch}

/* ===== PLANS ===== */
.plancard{display:flex; align-items:center; gap:18px; flex-wrap:wrap;
  border:2px solid var(--target); border-radius:12px; background:var(--sheet); padding:18px 20px; box-shadow:var(--shadow)}
.plancard-done{border-color:var(--t-passive)}
.plancard-body{flex:1; min-width:200px}
.plancard-body h3{font-size:21px; font-weight:700; letter-spacing:-.02em; margin:4px 0 6px}
.plancard-body p{font-size:13.5px; color:var(--ink-2); line-height:1.5; max-width:60ch}
.plancard-acts{display:flex; gap:9px; flex-wrap:wrap}
.plandrift{display:block; margin-top:9px; font-size:12.5px; color:var(--ink-3); line-height:1.5}
.pring{flex:none}
.pring-n{font-family:var(--f-disp); font-size:23px; font-weight:700; fill:var(--ink);
  font-variant-numeric:tabular-nums}

.pgrid{display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:12px}
.pcard{display:flex; gap:16px; align-items:flex-start; text-align:left; padding:16px 17px;
  border:1px solid var(--rule); border-radius:12px; background:var(--sheet); transition:border-color .15s, transform .15s}
.pcard:hover{border-color:var(--target); transform:translateY(-2px)}
.pcard[data-on="true"]{border-color:var(--target); background:var(--target-soft)}
.pcard-days{flex:none; width:56px; height:56px; border-radius:12px; background:var(--sheet-2);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0}
.pcard-days b{font-family:var(--f-disp); font-size:21px; font-weight:700; line-height:1; color:var(--target)}
.pcard-days i{font-style:normal; font-family:var(--f-mono); font-size:11px; letter-spacing:.09em;
  text-transform:uppercase; color:var(--ink-3)}
.pcard-body{flex:1; min-width:0; display:flex; flex-direction:column; gap:5px}
.pcard-body>b{font-family:var(--f-disp); font-size:16px; font-weight:600}
.pcard-body>span{font-size:12.5px; color:var(--ink-3); line-height:1.5}
.pcard-tags{display:flex; gap:5px; flex-wrap:wrap; margin-top:2px}

.pdays{border:1px solid var(--rule); border-radius:12px; overflow:hidden; margin-top:20px}
.pphase{padding:11px 16px; background:var(--sheet-2); border-bottom:1px solid var(--rule);
  border-top:1px solid var(--rule)}
.pphase:first-child{border-top:none}
.pday{display:flex; align-items:center; gap:15px; padding:12px 16px; background:var(--sheet);
  border-bottom:1px solid var(--rule-soft)}
.pday:last-child{border-bottom:none}
.pday[data-done="true"]{background:var(--sheet-2)}
.pday[data-done="true"] .pday-body b{color:var(--ink-3)}
.pday[data-next="true"]{background:var(--target-soft); box-shadow:inset 3px 0 0 var(--target)}
.pday-n{flex:none; width:28px; height:28px; border-radius:50%; display:grid; place-items:center;
  font-family:var(--f-mono); font-size:12.5px; background:var(--sheet-2); color:var(--ink-3);
  border:1px solid var(--rule)}
.pday[data-done="true"] .pday-n{background:var(--t-passive); border-color:var(--t-passive); color:var(--sheet)}
.pday[data-next="true"] .pday-n{background:var(--target); border-color:var(--target); color:var(--on-target); font-weight:600}
.pday-body{flex:1; min-width:0; display:flex; flex-direction:column; gap:2px}
.pday-body b{font-size:14px; font-weight:600}
.pday-body span{font-size:12.5px; color:var(--ink-3); line-height:1.45}
.pday-meta{flex:none; font-family:var(--f-mono); font-size:11px; color:var(--ink-3); text-align:right}
@media (max-width:560px){
  .pday-meta{display:none}
  .plancard{padding:16px}
  .plancard-acts{width:100%}
  .plancard-acts .btn{flex:1; justify-content:center}
}

/* ===== ROOM MODE =====
   The player, read from the sofa rather than from the desk chair.

   The honest constraint shapes this: a web page cannot reliably start a cast
   itself. The Presentation API is Chrome-desktop-only and needs a separate
   receiver page; the Remote Playback API is for <video>. What every device can
   already do is mirror — Chrome tab casting, AirPlay, an HDMI cable, or just
   opening the app on a TV's own browser. So the app's job is not to cast. It
   is to be worth casting, and that is a layout problem.

   Everything here is sized in vmin so it fills a 55" screen and a laptop the
   same way, and the type floor is a distance you can read from, not a number
   of pixels. */
.player[data-room="1"]{--room-unit:1vmin}
.player[data-room="1"] .pl-top{padding:10px 18px; opacity:.55; transition:opacity .3s}
.player[data-room="1"] .pl-top:hover{opacity:1}
.player[data-room="1"] .pl-progress{max-width:none}
.player[data-room="1"] .pl-set,
.player[data-room="1"] #pl-idx{font-size:15px}

.player[data-room="1"] .pl-main{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:0}
.player[data-room="1"] .pl-stage{padding:2vmin; height:auto}
.player[data-room="1"] .pl-figwrap svg{max-height:74vh; max-width:100%; width:auto; height:auto}
.player[data-room="1"] .pl-dial{position:absolute; top:2vmin; left:3vmin; margin:0; gap:0; display:block}
/* The ring is a countdown you read by its arc, which needs you close enough to
   judge an angle. From the sofa the number does that job on its own, and the
   segmented bar along the top already shows where you are in the session. An
   outline with nothing legible in it is decoration. */
.player[data-room="1"] .pl-ring{display:none}
.player[data-room="1"] .pl-count{font-size:11vmin; line-height:1}
.player[data-room="1"] #pl-unit{font-size:1.9vmin; letter-spacing:.16em}
.player[data-room="1"] .pl-tempo,
/* Room mode hides the inset, so the space reserved for it goes back to the
   figure — which in room mode is the entire point. */
.player[data-room="1"] .pl-stage{padding-bottom:20px}
.player[data-room="1"] .pl-closeup,
.player[data-room="1"] .pl-grab,
.player[data-room="1"] .pl-next,
.player[data-room="1"] #pl-caution .caution-sm p{display:none}
/* Room mode hides the close-ups without display:none, so their animations keep
   running and the beat word by the counter still reads across the room. */
.player[data-room="1"] #pl-hands,
.player[data-room="1"] #pl-feet,
.player[data-room="1"] #pl-hd,
.player[data-room="1"] #pl-eyes{position:absolute; width:1px; height:1px; margin:0; padding:0; border:0;
  overflow:hidden; clip-path:inset(50%); visibility:hidden; pointer-events:none}
.player[data-room="1"] .pl-beat{font-size:3.4vmin; max-width:none}

/* The instruction column stops being a document and becomes a caption: name,
   side, dose, and the two cues that matter while you are actually holding it.
   Cues three and four are for the plate, where you can stand close. */
.player[data-room="1"] .pl-side{padding:4vmin; gap:2.2vmin; justify-content:center; overflow:hidden;
  border-left:1px solid var(--rule); border-top:none}
.player[data-room="1"] .pl-head{position:static; box-shadow:none; padding:0; margin:0}
.player[data-room="1"] .pl-head h2{font-size:6.2vmin; line-height:1.03; margin-top:1.2vmin}
.player[data-room="1"] #pl-dose{font-size:2.4vmin; margin-top:1vmin}
.player[data-room="1"] .sidebadge{font-size:2.2vmin; padding:.7vmin 1.6vmin}
.player[data-room="1"] .tag{font-size:1.7vmin; padding:.6vmin 1.4vmin}
.player[data-room="1"] .pl-cues{font-size:3vmin; line-height:1.4; gap:1.4vmin}
.player[data-room="1"] .pl-cues li:nth-child(n+3){display:none}
.player[data-room="1"] .eyebrow{font-size:1.6vmin}
.player[data-room="1"] .callout{padding:2vmin 2.4vmin}
.player[data-room="1"] #pl-feel{font-size:2.4vmin; line-height:1.4}
/* The cue rows and the feel line carried a 14px of their own (one in the
   markup), which outranked the room sizes above: on a 1080p television the
   instructions were 14px text read from a sofa. The desk size now lives in
   the stylesheet, where the room rules can win. */
#pl-feel{font-size:14px}
.player[data-room="1"] .pl-cues li{font-size:max(14px, 3vmin); padding:1.1vmin 0; grid-template-columns:max(26px, 4vmin) 1fr}
.player[data-room="1"] .pl-cues li::before{font-size:max(11px, 1.7vmin)}
.player[data-room="1"] #pl-feel-callout #pl-feel{font-size:max(14px, 2.4vmin)}

.player[data-room="1"] .pl-bottom{padding:2vmin; gap:3vmin}
.player[data-room="1"] .pl-btn{width:9vmin; height:9vmin; min-width:56px; min-height:56px}
.player[data-room="1"] .pl-btn svg{width:4vmin; height:4vmin; min-width:22px; min-height:22px}
.player[data-room="1"] .pl-count{font-variant-numeric:tabular-nums}
.player[data-room="1"] .pl-restcount,
.player[data-room="1"] #pl-restcount{font-size:16vmin}
.player[data-room="1"] .pl-rest-screen p{font-size:3vmin}

/* Portrait — a phone mirrored to a TV, or a tablet stood up. The two columns
   cannot both be big, so the figure takes the top and the words take the rest. */
@media (orientation:portrait){
  .player[data-room="1"] .pl-main{grid-template-columns:1fr; grid-template-rows:minmax(0,1fr) auto}
  .player[data-room="1"] .pl-figwrap svg{max-height:42vh}
  .player[data-room="1"] .pl-side{padding:3vmin; justify-content:flex-start}
  .player[data-room="1"] .pl-head h2{font-size:5.4vmin}
  .player[data-room="1"] .pl-cues li:nth-child(n+2){display:none}
}

/* ===== ON A TV =====
   The screen end of "On a TV": the same player, in room mode, following
   another device's clock. Nothing on it takes a touch — a television has no
   finger and a second monitor has nobody standing at it — so every control
   is gone and what is left is the figure, the count, the breath guide and
   the words. The phone or computer that opened it stays the remote. */
.player[data-cast="rx"] #pl-idx,
.player[data-cast="rx"] #pl-steps,
.player[data-cast="rx"] #pl-exit,
.player[data-cast="rx"] .pl-set,
.player[data-cast="rx"] .pl-bottom,
.player[data-cast="rx"] .pl-grab,
.player[data-cast="rx"] #pl-not-today,
.player[data-cast="rx"] #pl-replay,
.player[data-cast="rx"] #pl-restskip,
.player[data-cast="rx"] .turn-hint{display:none !important}
.player[data-cast="rx"] .pl-top{opacity:1}
.player[data-cast="rx"] .pl-figwrap{pointer-events:none}
.cast-rx{position:absolute; inset:0; z-index:6; background:var(--paper); display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:2vmin; padding:6vmin; text-align:center}
.cast-rx[hidden]{display:none}
.cast-rx .eyebrow{font-size:max(12px, 1.8vmin)}
.cast-rx h2{font-size:max(28px, 6vmin); font-weight:700; letter-spacing:-.03em; line-height:1.05; max-width:22ch}
.cast-rx p{font-size:max(15px, 2.6vmin); color:var(--ink-2); max-width:40ch; line-height:1.45}
.cast-quiet{position:absolute; z-index:7; right:3vmin; bottom:3vmin; margin:0; padding:1vmin 2vmin;
  border-radius:99px; border:1px solid var(--rule); background:var(--sheet); color:var(--ink-2);
  font-family:var(--f-mono); font-size:max(12px, 1.6vmin); letter-spacing:.06em; text-transform:uppercase}
.cast-quiet[hidden]{display:none}
.cast-fill{position:absolute; z-index:7; right:3vmin; top:64px}
.cast-fill[hidden]{display:none}
.pl-toggle#pl-tv[aria-pressed="true"]{color:var(--ink); border-color:var(--target)}
.tv-card{max-width:620px}
.tv-card h2{font-size:30px}
.tv-sec{display:flex; flex-direction:column; gap:9px; border-top:1px solid var(--rule); padding-top:14px; margin-top:4px}
.tv-sec:first-child{border-top:none; padding-top:0; margin-top:0}
.tv-sec h3{font-size:15px; font-weight:600; letter-spacing:-.01em}
.tv-sec p{font-size:13.5px; color:var(--ink-2); line-height:1.5; max-width:62ch}
.tv-sec .btnrow{display:flex; gap:8px; flex-wrap:wrap}
.tv-sec .btn{min-height:44px}
.tv-ways{display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:10px}
.tv-way{border:1px solid var(--rule); border-radius:12px; padding:12px 14px; background:var(--sheet);
  display:flex; flex-direction:column; gap:4px}
.tv-way .n{font-family:var(--f-mono); font-size:11px; letter-spacing:.08em; color:var(--ink-3)}
.tv-way b{font-size:14.5px; font-weight:600}
.tv-way p{font-size:13px; color:var(--ink-2); line-height:1.5}
.tv-more summary{cursor:pointer; font-size:13.5px; color:var(--ink-2); min-height:44px; display:flex; align-items:center}
.tv-say{font-size:13.5px; color:var(--ink-2); min-height:1em; margin:0}
.tv-say:empty{display:none}
@media (max-width:620px){
  .tv-card h2{font-size:24px}
  .gate#tvsheet{align-items:flex-start; overflow-y:auto; padding:22px 16px}
}

/* ===== VOICE ===== */
.pl-voice{display:none}
.player[data-voice="on"] .pl-voice{
  display:inline-flex; align-items:center; gap:7px; padding:6px 12px; min-height:36px;
  border-radius:99px; border:1px solid var(--rule); background:var(--sheet-2);
  font-family:var(--f-mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase;
  color:var(--ink-3);
}
.player[data-room="1"] .pl-voice{font-size:1.6vmin; padding:1vmin 2vmin; min-height:0}
.pl-voice[data-state="live"]{border-color:var(--target); color:var(--target)}
.pl-voice[data-state="heard"]{background:var(--target); border-color:var(--target); color:var(--on-target)}
.pl-voice[data-state="error"]{border-color:var(--caution); color:var(--caution)}
.pl-mic{flex:none; width:8px; height:8px; border-radius:50%; background:currentColor; opacity:.35}
.pl-voice[data-state="live"] .pl-mic{opacity:1; animation:micPulse 1.9s ease-in-out infinite}
@keyframes micPulse{0%,100%{opacity:1} 50%{opacity:.28}}
@media (prefers-reduced-motion:reduce){ .pl-mic{animation:none !important} }

/* ===== QUICK ROW ===== */
.qrow{display:none}
@media (max-width:820px),
       (max-width:1179px) and (pointer:coarse),
       (max-width:1023px) and (orientation:portrait) and (min-height:1100px){
  .qrow:not([hidden]){display:block}
  body[data-qrow="on"] .canvas{padding-bottom:calc(168px + env(safe-area-inset-bottom))}
}

/* Quick row, styled unconditionally for the same reason as the tab bar. */
.qrow{position:fixed; left:0; right:0; z-index:45;
  /* Clear of the raised Start button, which pokes 20px above the bar. */
  bottom:calc(84px + env(safe-area-inset-bottom));
  background:linear-gradient(to top, var(--paper) 62%, transparent);
  padding:14px 0 8px; pointer-events:none}
.qrow[hidden]{display:none}
.qrow{transition:opacity .2s, transform .2s}
body[data-qrow-away="1"] .qrow{opacity:0; transform:translateY(24px); visibility:hidden}
@media (prefers-reduced-motion: reduce){ .qrow{transition:none} }
.qrow-in{display:flex; gap:8px; overflow-x:auto; padding:0 16px 2px;
  scrollbar-width:none; -webkit-overflow-scrolling:touch; pointer-events:auto}
.qrow-in::-webkit-scrollbar{display:none}
.qchip{flex:none; display:inline-flex; align-items:center; gap:6px; min-height:44px;
  padding:9px 15px; border-radius:99px; border:1px solid var(--rule);
  background:var(--sheet); color:var(--ink); font-size:13.5px; white-space:nowrap;
  box-shadow:0 2px 8px -4px rgba(0,0,0,.28)}
.qchip:active{background:var(--sheet-2)}
.qchip svg{width:15px; height:15px}
.qchip-go{border-color:var(--target); color:var(--target); font-weight:500}

/* ===== TABLET =====
   A tablet is not a large phone and not a small laptop. It has real width and
   no rail eating the left edge, so it gets narrower gutters than the desktop
   and a lower card floor: a portrait iPad Pro shows three protocols a row
   instead of the two the desktop grid gave it. */
@media (min-width:701px) and (max-width:1179px){
  .wrap,.topbar{padding-left:22px; padding-right:22px}
  .disclaimer{margin-left:22px; margin-right:22px}
  .grid-3{grid-template-columns:repeat(auto-fill,minmax(232px,1fr))}
  .grid-4{grid-template-columns:repeat(auto-fill,minmax(178px,1fr))}
}
/* Past ~1600px the 1220px column left 700px of empty gutter. Let the card
   grids use some of it. Prose does not follow: a 1440px line is unreadable,
   so the detail view keeps its own measure below. */
@media (min-width:1600px){
  .wrap,.disclaimer{max-width:1440px}
  /* The figure may grow; the text may not. Reading measure is capped in ch,
     so it holds whatever the user has done to the type size. */
  .plate{grid-template-columns:minmax(0,540px) minmax(0,72ch)}
}

/* ===== LAYOUT OVERRIDE =====
   Everything above is automatic, and right for almost everyone. It is still a
   guess, and a guess about hardware: an iPad in a keyboard case reports a
   mouse, a touchscreen laptop reports a hand, and a phone mirrored to a
   monitor reports neither usefully. So the guess is overridable — from
   Settings, in words about the layout rather than the name of a device.
   Automatic is the default and stays the default; this only fires when
   someone has said otherwise. */
:root[data-nav="rail"] .app{grid-template-columns:var(--rail-w) 1fr}
:root[data-nav="rail"] .rail{display:flex}
:root[data-nav="rail"] .tabbar,
:root[data-nav="rail"] .qrow,
:root[data-nav="rail"] .today-only-mobile{display:none}
:root[data-nav="rail"] .canvas,
:root[data-nav="rail"] body[data-qrow="on"] .canvas{padding-bottom:72px}
:root[data-nav="tabs"] .app{grid-template-columns:1fr}
:root[data-nav="tabs"] .rail{display:none}
:root[data-nav="tabs"] .tabbar{display:grid}
:root[data-nav="tabs"] .today-only-mobile{display:block}
:root[data-nav="tabs"] .qrow:not([hidden]){display:block}
:root[data-nav="tabs"] .canvas{padding-bottom:calc(88px + env(safe-area-inset-bottom))}
:root[data-nav="tabs"] body[data-qrow="on"] .canvas{padding-bottom:calc(168px + env(safe-area-inset-bottom))}

/* ===== QUICK ACTIONS ===== */
.go-primary{display:flex; align-items:center; gap:14px; width:100%; text-align:left; margin-top:10px;
  padding:12px 14px; border:1px solid var(--target); border-radius:12px; background:var(--target-soft); min-height:44px}
.go-primary-fig{flex:none; width:60px; height:60px; display:grid; place-items:center;
  background:var(--sheet); border-radius:8px; overflow:hidden}
.go-more{margin-top:14px; border-top:1px solid var(--rule); padding-top:4px}
.go-more > summary{min-height:44px; display:flex; align-items:center; cursor:pointer; font-weight:600; font-size:14px; color:var(--ink-2)}
.go-primary b{display:block; font-family:var(--f-disp); font-size:17px; font-weight:600}
.go-primary span span{font-size:12.5px; color:var(--ink-3)}
.go-primary>span:nth-child(2){flex:1; min-width:0}
.go-chev{flex:none; color:var(--target); font-size:19px}
.go-pair{display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:9px}
.go-tile{border:1px solid var(--rule); border-radius:12px; background:var(--sheet-2); padding:13px 14px;
  text-align:left; min-height:64px; display:flex; flex-direction:column; gap:2px}
.go-tile:active{background:var(--sheet)}
.go-tile b{font-family:var(--f-disp); font-size:15px; font-weight:600}
.go-tile span{font-size:12.5px; color:var(--ink-3); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.go-areas{display:flex; gap:7px; flex-wrap:wrap; margin-top:8px}
.go-usual{width:100%; margin-top:9px; min-height:56px}
.go-areas .chip{min-height:44px}
.search-hits{margin-top:18px}
.before-row{display:flex; flex-direction:column; gap:8px; margin:-6px 0 20px; font-size:13.5px; color:var(--ink-2)}
.before-row i{font-style:normal; color:var(--ink-3); font-size:12px; margin-left:4px}
.before-row .scale button{min-height:44px; padding:8px 4px; font-size:13px}

/* No top margin of its own: it used to hang 14px under the prescription card
   inside that card's section, and it now has a section of its own, which
   carries the spacing. */
.setup-strip{display:flex; align-items:center; gap:12px; padding:12px 16px;
  border:1px solid var(--target); border-radius:8px; background:var(--target-soft)}
.setup-strip p{flex:1; min-width:0; font-size:13.5px; line-height:1.45; color:var(--ink-2)}
.setup-strip p b{color:var(--ink); font-weight:600}
.setup-dot{flex:none; width:8px; height:8px; border-radius:50%; background:var(--target)}
.setup-x{flex:none; width:44px; height:44px; display:flex; align-items:center; justify-content:center;
  font-size:19px; line-height:1; color:var(--ink-3); border-radius:8px}
.setup-x:hover{color:var(--ink); background:var(--sheet-2)}
.btn-sm{flex:none; padding:9px 14px; font-size:12.5px; min-height:44px}
@media (max-width:600px){ .setup-strip{flex-wrap:wrap} .setup-strip p{flex:1 1 100%; order:1}
  .setup-dot{order:0} .setup-x{order:0; margin-left:auto} .btn-sm{order:2; flex:1 1 auto} }
.block-panel{border:1px solid var(--rule); border-radius:12px; background:var(--sheet); overflow:hidden}
.block-banner{padding:12px 18px; background:var(--caution-bg); color:var(--caution); font-size:12.5px; display:flex; gap:10px; align-items:flex-start; border-bottom:1px solid var(--rule)}
.block-body{padding:20px 22px; display:flex; flex-direction:column; gap:20px}
.switch-row{display:flex; align-items:center; gap:14px; padding:12px 0; border-bottom:1px solid var(--rule-soft)}
.switch-row:last-child{border-bottom:none}
.switch-row .t{flex:1}
.switch-row .t b{font-size:14px; font-weight:600; display:block}
.switch-row .t span{font-size:12.5px; color:var(--ink-3)}
/* The switch reads as 44x25; the hit target is the full 44 square. The extra
   height used to be padding on the box itself, which put the border and the
   99px radius around a 44x45 square — a circle with a rectangular band of
   background clipped inside it, and the knob pinned to the top of the circle.
   It looked like that in every theme at every width. The hit area is now a
   pseudo-element that reaches 10px above and below the pill and paints
   nothing, so the pill is exactly the 44x25 it was always meant to be. */
.sw{width:44px; height:44px; border-radius:8px; background:none; border:0; padding:0;
  position:relative; flex:none}
.sw::before{content:""; position:absolute; left:0; top:9.5px; width:44px; height:25px; box-sizing:border-box;
  border-radius:99px; background:var(--rule); border:1px solid var(--rule); transition:background .15s}
.sw::after{content:""; position:absolute; top:12.5px; left:3px; width:19px; height:19px; border-radius:50%; background:var(--sheet); transition:transform .15s; box-shadow:0 1px 3px rgba(0,0,0,.25)}
.sw[aria-checked="true"]::before{background:var(--target); border-color:var(--target)}
/* A switch that reads "on" while nothing can fire is the same lie as the
   "Reminder active" tag this section replaced. */
.sw[data-inert="1"]{opacity:.4}
.sw[aria-checked="true"]::after{transform:translateX(19px)}
.allow-list{display:flex; gap:7px; flex-wrap:wrap}
.allow{display:inline-flex; align-items:center; gap:6px; padding:6px 11px; border-radius:99px; background:var(--t-passive-bg); color:var(--t-passive); font-size:12.5px; font-weight:500}
.bypass-card{border:1px solid var(--t-passive); border-radius:12px; background:var(--t-passive-bg); padding:16px 18px}
.strict{display:flex; gap:8px; flex-wrap:wrap}
.strict button{border:1px solid var(--rule); border-radius:8px; background:var(--sheet); padding:11px 14px; text-align:left; flex:1; min-width:150px; transition:background .15s, border-color .15s, color .15s, transform .15s}
.strict button:hover{border-color:var(--ink-3)}
.strict button[aria-pressed="true"]{border-color:var(--target); background:var(--target-soft)}
.strict button b{display:block; font-size:14px; font-weight:600; margin-bottom:2px}
.strict button span{font-size:12.5px; color:var(--ink-3)}

/* ---------- media layer + close-up inset ---------- */
.figbox{display:inline-block; line-height:0; max-width:100%}
/* Figures are drawn at a nominal pixel size but carry a viewBox, so letting
   them scale down costs nothing and stops the exercise plate — a 400px
   figure — from running off the side of a 390px phone. */
.figbox svg{max-width:100%; height:auto}
#pl-idx{white-space:nowrap}
.fig-media-wrap{display:inline-block; line-height:0}
.fig-media{border-radius:4px; background:var(--sheet-2)}
.fig-lottie{display:inline-block}

.closeup{display:flex; align-items:center; gap:14px; padding:12px 14px; border:1px solid var(--rule);
  border-radius:12px; background:var(--sheet-2)}
.closeup-art{line-height:0; flex:none}
.closeup-art svg,.closeup-art img{display:block}
.closeup-txt{display:flex; flex-direction:column; gap:3px; min-width:0}
.closeup-txt b{font-size:15px; font-weight:600; letter-spacing:-.01em}
.closeup-sub{font-size:12.5px; color:var(--ink-3); font-family:"IBM Plex Mono",monospace}
/* Where you feel it, ranked.

   The swatch is one colour at three strengths — the same red the mark on the
   body uses — because these are one sensation in different amounts, not three
   different things. A second hue would have said "different kind"; a red /
   amber / green ramp would have said "danger / caution / safe", which is the
   opposite of the truth about a stretch. The rank is written in words beside
   it so nothing depends on telling .55 opacity from .34, and so it still
   reads for the eight per cent of men who cannot separate these tones. */
.feel-list{display:flex; flex-direction:column; min-width:0; margin:2px 0 0; padding:0; list-style:none}
/* 44px is a finger, and every control in the card is at least that, at every
   width and with every pointer. It used to drop to 34px where the pointer is
   fine, from when three of these rows were a list under the figure; they are
   one caption per box now, and a 41px caption on a desk is a laptop with a
   touch screen that cannot hit it. */
.feel-row{display:flex; align-items:center; gap:9px; width:100%; min-width:44px; min-height:44px; padding:4px 6px;
  border:0; background:none; border-radius:8px; cursor:pointer; text-align:left; font:inherit; color:inherit}
.feel-row:hover,.feel-row:focus-visible{background:var(--sheet-2)}
.feel-static{display:flex; align-items:center; gap:9px; min-width:0; padding:3px 6px; min-height:22px}
.feel-dot{width:11px; height:11px; border-radius:50%; flex:none;
  background:var(--target); border:1.5px solid var(--target)}
.feel-dot[data-t="1"]{opacity:var(--feel-2)}
.feel-dot[data-t="2"]{opacity:var(--feel-3)}
/* The same two numbers drive the marks on the body, so the swatch and the
   blob it stands for are never a different strength. */
[data-feel="1"]{opacity:var(--feel-2)}
[data-feel="2"]{opacity:var(--feel-3)}
.feel-dot[data-t="x"]{background:none; opacity:.45}
/* The muscle name is the part that gives way on a narrow screen: the swatch
   and the rank word are both fixed and both carry meaning, and a truncated
   "Latissimus dor…" still names the place. */
.feel-name{font-size:12.5px; font-weight:600; letter-spacing:-.01em; white-space:nowrap;
  min-width:0; flex:1 1 auto; overflow:hidden; text-overflow:ellipsis}
.feel-list{min-width:0}
/* On a phone the round inset and the list cannot share a row: 118px of art
   out of 288px leaves the names truncated to a letter and an ellipsis, which
   names nothing. Stacked, every row gets the full width. */
@media (max-width:560px){
  .closeup:not([data-brief]){flex-direction:column; align-items:stretch; gap:10px}
  .closeup:not([data-brief]) .closeup-art{align-self:center}
  .closeup:not([data-brief]) .closeup-txt{width:100%}
}
.feel-lead{font-size:14px; font-weight:600; letter-spacing:-.01em}
.feel-more{display:flex; flex-wrap:wrap; gap:2px 12px; font-size:12.5px; color:var(--ink-3)}
.feel-more span{display:flex; align-items:center; gap:5px; white-space:nowrap}
.feel-rank{margin-left:auto; padding-left:8px; font-family:"IBM Plex Mono",monospace; font-size:11px;
  color:var(--ink-3); letter-spacing:.07em; text-transform:uppercase; flex:none}
/* Picking a row is the interaction: everything else steps back so the place
   you asked about is the only thing lit. Scoped by attribute rather than to
   the card, so the highlight reaches the full figure above it as well — the
   close-up cannot always frame every site, and the big drawing always can. */
[data-feel-hi] [data-feel]{opacity:.12; transition:opacity .15s ease}
[data-feel-hi~="0"] [data-feel="0"],
[data-feel-hi~="1"] [data-feel="1"],
[data-feel-hi~="2"] [data-feel="2"],
[data-feel-hi~="3"] [data-feel="3"]{opacity:1}
/* Each place has its own callout on the figure, as it has its own box. The
   first one's is always there; the others' appear, at full strength, when
   their place is the one chosen. Choosing "Grip" used to fade every label
   and leave the grip a pale dot with no word beside it. */
[data-lab]:not([data-feel="0"]){display:none}
[data-feel-hi]:not([data-feel-hi~="0"]) [data-lab][data-feel="0"]{display:none}
[data-feel-hi~="1"] [data-lab][data-feel="1"],
[data-feel-hi~="2"] [data-lab][data-feel="2"],
[data-feel-hi~="3"] [data-lab][data-feel="3"]{display:inline}
[data-feel-hi] .feel-row[aria-pressed="true"]{background:var(--target-soft)}
@media (prefers-reduced-motion: reduce){ [data-feel]{transition:none} }
.closeup-sm{padding:9px 11px; gap:11px}
.closeup-sm .closeup-txt b{font-size:13.5px}
.pl-closeup{position:absolute; left:26px; bottom:52px; max-width:330px; backdrop-filter:blur(3px)}
.plate-closeup{margin-top:14px}
/* ---------- one box per place you feel it ----------
   A column: the label, the tabs when there are tabs, the boxes, then any
   place that has no spot on the body as a line of text. */
.feel-card{flex-direction:column; align-items:stretch; gap:8px; --fb:100px; --fcw:calc(var(--fb) + 14px)}
.feel-card > .eyebrow{align-self:flex-start}
.plate-closeup{width:100%}
.feel-stage{display:flex; justify-content:center; align-items:center; gap:14px; min-width:0}
.feel-boxes{display:flex; justify-content:center; align-items:flex-start; gap:12px; min-width:0}
.closeup-sm .feel-boxes{gap:8px}
.feel-box{display:flex; flex-direction:column; align-items:center; gap:2px; flex:none; width:var(--fb);
  min-width:0; border-radius:10px}
.feel-box[hidden]{display:none}
/* As wide as the caption under it, which feelFit already shares the row out
   by: a box only as wide as its picture let each 14px-wider caption button
   overlap its neighbour's, two targets on the same pixels. */
.feel-card[data-mode="row"]:not([data-side]) .feel-box{width:var(--fcw)}
/* One box on its own takes the card's width, so its caption is not squeezed
   into the picture's. */
.feel-card:not([data-mode="row"]) .feel-boxes{flex:1 1 auto}
.feel-card:not([data-mode="row"]) .feel-box{flex:1 1 auto; width:auto}
.feel-card:not([data-mode="row"]) .feel-cap{width:auto; max-width:100%}
/* One box on the desk plate: its name and any place with no box beside the
   picture rather than under it. The column is held to the screen's height,
   so a caption and a line of loose names under a 112px picture were 74px
   taken from the figure, in a card with 300px of empty width beside it. */
@media (min-width:1121px){
  .plate-closeup .feel-card[data-mode="one"]{display:grid; grid-template-columns:auto minmax(0,1fr);
    column-gap:14px; row-gap:2px; align-items:center}
  .plate-closeup .feel-card[data-mode="one"] > .eyebrow{grid-column:1 / -1}
  .plate-closeup .feel-card[data-mode="one"] .feel-stage,
  .plate-closeup .feel-card[data-mode="one"] .feel-boxes,
  .plate-closeup .feel-card[data-mode="one"] .feel-box{display:contents}
  .plate-closeup .feel-card[data-mode="one"] .closeup-art{grid-column:1; grid-row:2 / span 2}
  .plate-closeup .feel-card[data-mode="one"] .feel-cap{grid-column:2; grid-row:2; align-self:end; justify-self:start;
    align-items:flex-start; text-align:left}
  .plate-closeup .feel-card[data-mode="one"] .feel-cap .feel-site{align-items:flex-start}
  .plate-closeup .feel-card[data-mode="one"] .feel-cap.feel-cap-shared{justify-content:flex-start}
  .plate-closeup .feel-card[data-mode="one"] .feel-cap .feel-cap-rank{justify-content:flex-start}
  .plate-closeup .feel-card[data-mode="one"] .feel-list{grid-column:2; grid-row:3; align-self:start; justify-self:start; margin:0}
  .plate-closeup .feel-card[data-mode="one"] .feel-static .feel-rank{margin-left:8px}
  .plate-closeup .feel-card[data-mode="one"]:not(:has(.feel-list)) .feel-cap{grid-row:2 / span 2; align-self:center}
}
/* Four places two by two, where four in a row would each be too small. */
.feel-card[data-cols="2"] .feel-boxes{display:grid; grid-template-columns:repeat(2, var(--fcw));
  justify-content:center; justify-items:center; gap:12px}
.feel-box:focus-visible{outline:2px solid var(--target); outline-offset:3px}
.feel-box .closeup-art svg,.feel-box .closeup-art img{width:var(--fb); height:var(--fb); border-radius:50%}
.feel-card[data-mode="row"] .feel-box .closeup-art{cursor:pointer}
/* The chosen box is shown three ways, none of them colour alone: a ring
   around the picture, the name underlined, and aria-pressed for anyone not
   looking at either. */
.feel-box[data-on] .closeup-art svg,.feel-box[data-on] .closeup-art img{outline:2px solid var(--target); outline-offset:2px}
.feel-box[data-on] .feel-cap .feel-name{text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:3px}
/* Each box marks only its own places, at full strength, whatever the full
   figure beside it is highlighting. */
.closeup .feel-box [data-feel]{opacity:1}
/* Name first, then how strongly: the same order as the tabs, so a place is
   said the same way wherever it is said. */
/* As wide as the picture plus 14px, or, where the row has room to spare and
   the card asks for it (capMax), wider: a name shared by two places is a line
   shorter in 180px than in 126, and on the desk plate every line comes out of
   the figure. --fcw is set by feelFit. */
.feel-cap{flex-direction:column; justify-content:center; gap:1px; width:var(--fcw);
  max-width:var(--fcw); padding:4px 2px; text-align:center}
.feel-site{display:flex; flex-direction:column; align-items:center; min-width:0; max-width:100%}
.feel-and{font-size:11px; color:var(--ink-3); line-height:1.2}
.feel-cap-rank{display:flex; align-items:center; justify-content:center; gap:5px}
.feel-cap .feel-rank,.feel-cap-txt .feel-rank{margin:0; padding:0}
.feel-cap-names{display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden;
  font-size:12.5px; font-weight:600; letter-spacing:-.01em; line-height:1.25; overflow-wrap:break-word}
.feel-cap-names .feel-name{display:inline; white-space:normal; overflow:visible}
.feel-nm-short{display:none}
.feel-cap-meta{display:flex; justify-content:center; align-items:baseline; flex-wrap:wrap; gap:0 8px; margin-top:1px; line-height:1.2}
.feel-cap .feel-name{flex:none; max-width:100%; white-space:normal; overflow-wrap:break-word;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-height:1.25}
.feel-cap-txt{display:none; margin:2px 0 0; text-align:center; max-width:100%}
/* A box two or three names share: the names run on as words ("Pectoralis
   major & Core & Serratus anterior") and the strengths follow on a line of
   their own, in the same order — the deck's caption, in the row's button.
   Stacked a line per name, a line per strength and a line per "&", the
   push-up's caption was eight lines, and on a desk-width plate, whose column
   is held to the height of the screen, every one of them came out of the
   figure above: 316px tall before the boxes, 180 with them. The order is only
   visual; a screen reader still hears each name with its own strength. */
/* Not where the caption sits beside its picture (data-side): there the
   button is sized by its content, and a wrapping row shrank it to one
   letter wide under the next picture. */
.feel-card:not([data-side]) .feel-cap.feel-cap-shared{flex-direction:row; flex-wrap:wrap; align-content:center; justify-content:center; gap:0 4px}
.feel-card:not([data-side]) .feel-cap-shared .feel-site{display:contents}
.feel-card:not([data-side]) .feel-cap-shared .feel-name,.feel-card:not([data-side]) .feel-cap-shared .feel-and,
.feel-card:not([data-side]) .feel-cap-shared .feel-back{order:1}
.feel-card:not([data-side]) .feel-cap-shared .feel-and{line-height:1.25}
.feel-card:not([data-side]) .feel-cap-shared::after{content:""; order:2; flex-basis:100%; height:0}
.feel-card:not([data-side]) .feel-cap-shared .feel-cap-rank{order:3}
.feel-cap-meta .feel-rank{white-space:normal}
/* A name with no box, in the strip beside the player's figure, wraps rather
   than ellipsing: at 130px "Autonomic nervous system" came out as "Auto…",
   which names nothing. Laid out as a line of text, the strength after the
   name, so it wraps between words: kept as a row, "Also" held its own column
   and the name broke inside its words ("Autono / mic / nervou / s").
   plStripFit puts it back on one line (data-tight) only when that is what
   keeps the picture at 72px. */
.pl-closeup .feel-card:not([data-tight]) .feel-static{display:block; position:relative; padding-left:21px; line-height:1.25}
.pl-closeup .feel-card:not([data-tight]) .feel-static .feel-dot{position:absolute; left:4px; top:.2em}
.pl-closeup .feel-card:not([data-tight]) .feel-static .feel-name{display:inline; white-space:normal; overflow:visible}
/* A real space sits between the name and its strength in the markup: two
   spans side by side give the line nowhere to break, so "SLIGHT" ran past the
   card's edge wherever the face was a pixel wider than the one it was tuned on. */
.pl-closeup .feel-card:not([data-tight]) .feel-static .feel-rank{display:inline; margin-left:2px; padding:0; white-space:nowrap}
.feel-back{font-size:11px; font-weight:500; letter-spacing:0; color:var(--ink-3); white-space:nowrap; line-height:1.25}
.feel-pos{font-family:"IBM Plex Mono",monospace; font-size:11px; letter-spacing:0; color:var(--ink-3);
  font-variant-numeric:tabular-nums; white-space:nowrap}
/* The position is not a strength: in the caption it is a line of its own,
   in the text face, under the strength in the mono one. Between the deck's
   arrows it is "1 of 3", in the text face so it fits the 36px between them. */
.feel-cap-meta .feel-pos{flex-basis:100%; text-align:center; font-family:inherit; margin-top:1px}
.feel-nav-pos{font-family:inherit}
.feel-card[data-mode="tabs"] .feel-cap,.feel-card[data-mode="deck"] .feel-cap{display:none}
.feel-card[data-mode="tabs"] .feel-cap-txt,.feel-card[data-mode="deck"] .feel-cap-txt{display:block}
/* The segmented control. Equal widths so the names do not jostle as the
   selection moves; a name gets two lines before it is ellipsized, never
   shrunk below the 11px floor. Selected is a raised segment, a heavier weight
   and a red rule under the name — three cues, so it survives greyscale and a
   colour deficiency alike. */
.feel-tabs{display:flex; gap:3px; padding:3px; border:1px solid var(--rule); border-radius:12px; background:var(--sheet)}
.feel-tabs[hidden]{display:none}
.feel-tab{flex:1 1 0; min-width:min-content; min-height:44px; display:flex; align-items:center; justify-content:center; gap:5px;
  padding:4px 6px; border:0; border-radius:9px; background:none; font:inherit; font-size:12.5px; font-weight:500;
  color:var(--ink-2); cursor:pointer; text-align:left}
.feel-tab-txt{display:flex; flex-direction:column; min-width:0; line-height:1.2}
.feel-tab-txt .feel-site{align-items:flex-start}
.feel-tab-txt .feel-and{align-self:flex-start}
/* Equal shares, but never narrower than the longest word in the name, so
   "Latissimus" takes what "Grip" does not need and no word is cut in half;
   two lines before an ellipsis, so "Shoulder capsule" is never "Shoulder c…". */
.feel-tab-name{min-width:0; white-space:normal; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2;
  overflow:hidden; overflow-wrap:normal; line-height:1.2}
/* The rank is in the caption under the picture; in the tab it is spoken, not
   shown, so the tab's name is "Grip, Slight" here exactly as it is there. */
.feel-tab-rank{position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden;
  clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; border:0}
.feel-tab:hover{background:var(--sheet-2)}
.feel-tab[aria-selected="true"]{background:var(--paper); color:var(--ink); font-weight:700;
  box-shadow:inset 0 -2px 0 var(--target), 0 0 0 1px var(--rule)}
.feel-tab:focus-visible{outline:2px solid var(--target); outline-offset:1px}
.feel-card[data-squeeze] .feel-tab{padding:4px 3px; justify-content:center}
.feel-card[data-squeeze] .feel-tab .feel-dot{display:none}
.feel-card[data-squeeze="2"] .feel-tab{min-width:44px}
.feel-card[data-squeeze="2"] .feel-tab-name{display:block; white-space:nowrap; text-overflow:ellipsis}
.feel-card[data-mode="tabs"] .feel-boxes,.feel-card[data-mode="deck"] .feel-boxes{touch-action:pan-y}
/* Where on the body, beside the one box a phone shows (feelWhere). */
.feel-where{display:none; flex:none; line-height:0}
@media (max-width:599px){
  .feel-card[data-mode="tabs"] .feel-where,.feel-card[data-mode="one"] .feel-where{display:block}
  .feel-card[data-mode="tabs"] .feel-boxes,.feel-card[data-mode="one"] .feel-boxes{flex:0 1 auto}
}
.feel-where svg{display:block; height:var(--fb); width:auto; max-width:96px}
.feel-where-at{opacity:.28}
.feel-where-at[data-on]{opacity:1}
/* ---- the deck: one picture, its name, and a pair of arrows ----
   A grid so the arrows can sit under the picture on a tall strip and either
   side of it on a short one, without the picture and its caption being
   pulled apart. */
.feel-nav[hidden]{display:none}
.feel-card[data-mode="deck"]{display:grid; grid-template-columns:44px minmax(0,1fr) 44px; column-gap:2px; row-gap:4px;
  align-items:start; justify-items:center}
.feel-card[data-mode="deck"] > .eyebrow{grid-column:1 / -1; grid-row:1; justify-self:start}
.feel-card[data-mode="deck"] > .feel-stage{grid-column:1 / -1; grid-row:2; width:100%}
.feel-card[data-mode="deck"] > .feel-nav{display:contents}
.feel-card[data-mode="deck"] > .feel-list{grid-column:1 / -1; grid-row:4; justify-self:stretch}
.feel-prev{grid-column:1; grid-row:3}
.feel-next{grid-column:3; grid-row:3}
.feel-nav-pos{grid-column:2; grid-row:3; align-self:center}
.feel-card[data-mode="deck"] .feel-cap-txt .feel-pos{display:none}
.feel-step{display:flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; margin:0;
  border:1px solid var(--rule); border-radius:50%; background:var(--paper); color:var(--ink); cursor:pointer}
.feel-step:hover{background:var(--sheet-2)}
.feel-step:focus-visible{outline:2px solid var(--target); outline-offset:2px}
.feel-card[data-bare] > .eyebrow{display:none}
/* The brief card, between a phone and a desk: a row rather than a column, so
   adding the boxes costs the figure a caption's height and not a whole card. */
.feel-card[data-brief][data-mode="row"],.feel-card[data-brief][data-mode="one"]{flex-direction:row; align-items:center; gap:12px}
.feel-card[data-brief][data-mode="row"] > .eyebrow,.feel-card[data-brief][data-mode="one"] > .eyebrow{align-self:center; max-width:5.5em; white-space:normal; line-height:1.5}
.feel-card[data-brief] .feel-cap{gap:0; padding:2px}
.feel-card[data-side] .feel-boxes{gap:14px}
.feel-card[data-side] .feel-box{flex-direction:row; width:auto; flex:0 1 auto; gap:6px}
.feel-card[data-side] .feel-cap{width:auto; max-width:104px; align-items:flex-start; text-align:left}
.feel-card[data-side] .feel-site{align-items:flex-start}
.feel-card[data-side] .feel-cap .feel-name{text-align:left}
.feel-in-next{animation:feelInN .18s ease-out}
.feel-in-prev{animation:feelInP .18s ease-out}
@keyframes feelInN{from{transform:translateX(14px); opacity:.35} to{transform:none; opacity:1}}
@keyframes feelInP{from{transform:translateX(-14px); opacity:.35} to{transform:none; opacity:1}}
@media (prefers-reduced-motion: reduce){ .feel-in-next,.feel-in-prev{animation:none} }
/* A fourth place, when the library names one. */
[data-feel="3"]{opacity:var(--feel-3)}
.sidepick{display:flex; gap:3px; padding:3px; margin-bottom:10px; border:1px solid var(--rule);
  border-radius:99px; background:var(--sheet); width:fit-content}
.sidepick .rgb{padding:7px 14px}
.bothsides{font-size:13.5px; color:var(--ink-2); line-height:1.55; margin-bottom:12px; padding:9px 13px;
  border-left:3px solid var(--target); background:var(--target-soft); border-radius:0 8px 8px 0; max-width:60ch}
.bothsides b{color:var(--ink)}

/* ---------- media view ---------- */
.cov{display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px; margin-top:20px}
.cov-item{position:relative; padding:14px 15px 17px; border:1px solid var(--rule); border-radius:12px;
  background:var(--sheet-2); overflow:hidden}
.cov-item b{display:block; font-size:23px; font-weight:700; letter-spacing:-.02em}
.cov-item span{font-size:12.5px; color:var(--ink-3)}
.cov-item i{position:absolute; left:0; bottom:0; height:3px; background:var(--target); transition:width .4s ease}
.btnrow{display:flex; gap:9px; flex-wrap:wrap; margin-top:14px}
/* A row of two buttons that no longer fits a phone wraps into a stack, and a
   stack of buttons at their own widths reads as unfinished — a wide coral one
   over a narrower grey one. Once they wrap, each fills its line. */
@media (max-width:520px){ .rx-actions>.btn, .btnrow>.btn{flex:1 1 auto} }
.btn-xs{padding:6px 12px; font-size:12.5px; min-height:44px}
.mf-in{width:100%; margin-top:12px; padding:12px; border:1px solid var(--rule); border-radius:8px;
  background:var(--sheet); color:var(--ink); font-family:"IBM Plex Mono",monospace; font-size:12.5px; resize:vertical}
.mf-msg{margin-top:10px; font-size:12.5px}
.mf-msg .good{color:var(--t-active)} .mf-msg .bad{color:var(--target)}
/* Settings → Account (only drawn while ACCOUNTS_LIVE is on). Existing tokens
   only; every control is a .btn (44px) or a 44px-tall label row. */
.acct-mono{font-family:var(--f-mono); letter-spacing:.06em}
.acct-code{font-family:var(--f-mono); font-size:19px; letter-spacing:.08em; color:var(--ink); background:var(--sheet-2);
  border:1px solid var(--rule); border-radius:8px; padding:12px 14px; margin:12px 0; word-break:break-all}
.acct-check{display:flex; align-items:center; gap:10px; min-height:44px; font-size:13.5px; color:var(--ink-2); cursor:pointer; margin-top:6px}
.acct-check input{width:22px; height:22px; accent-color:var(--target); flex:none; margin:0}
.acct-pwrow{display:flex; gap:8px; align-items:stretch}
.acct-pwrow input{flex:1 1 auto; min-width:0}
.acct-h{font-size:13.5px; font-weight:600; color:var(--ink); margin:18px 0 8px}
.acct-devs{list-style:none; margin:0; padding:0}
.acct-devs li{display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:44px; border-top:1px solid var(--rule); padding:6px 0; font-size:13.5px; color:var(--ink-2)}
.acct-devs li span{display:flex; flex-direction:column}
.acct-devs small{font-size:12px; color:var(--ink-3)}
.acct-qrbox{margin-top:12px}
.acct-qrbox summary{min-height:44px; display:flex; align-items:center; cursor:pointer; font-size:13.5px; color:var(--ink-2)}
.acct-qr{display:block; width:200px; height:200px; margin-top:8px; border:1px solid var(--rule); border-radius:8px}
.mf-errs{margin:8px 0 0; padding-left:18px; color:var(--ink-3); font-size:12.5px}
.tablewrap{overflow-x:auto; border:1px solid var(--rule); border-radius:12px; margin-top:12px}
.mtable{width:100%; border-collapse:collapse; font-size:13.5px; min-width:520px}
.mtable th{text-align:left; padding:10px 14px; font-size:11px; letter-spacing:.09em; text-transform:uppercase;
  color:var(--ink-3); border-bottom:1px solid var(--rule); font-family:"IBM Plex Mono",monospace}
.mtable td{padding:9px 14px; border-bottom:1px solid var(--rule-soft); vertical-align:middle}
.mtable tr:last-child td{border-bottom:none}
.mrow-sub{display:block; font-size:12.5px; color:var(--ink-3)}
/* There was no `a` rule in this app at all. Nothing inside it linked out, so
   every anchor fell through to the browser's own -webkit-link blue — which on
   the dark panel measures 1.74:1, and the suite caught it the moment the first
   real link was added and then again when the second was. A style that does
   not exist is not neutral; it is a default somebody else chose.

   --on-soft is used rather than --target because --target itself misses in
   both directions: #C43D2E is 4.25:1 on light --paper, and #E2604F is 4.36:1
   on dark --sheet-2. These two clear 4.5:1 on every surface a link can land
   on — 5.63 at worst in light, 5.32 at worst in dark. The underline is not
   decoration either: colour alone cannot be the only thing marking a link. */
a{color:var(--on-soft); text-underline-offset:.18em; text-decoration-thickness:1px}
a:hover{text-decoration-thickness:2px}
/* A link on its own line is a tap target and has to be one. Links inside a run
   of prose inherit the line box instead, which is correct — padding them would
   break the paragraph. */
a.tap{display:inline-flex; align-items:center; min-height:44px}
.linkish{all:unset; cursor:pointer; font-weight:600; display:inline-flex; align-items:center; min-height:44px}
/* Same all:unset, same lost ring. */
.linkish:focus-visible{outline:2px solid var(--target); outline-offset:2px; border-radius:4px}
.linkish:hover{color:var(--target)}
.mdot{display:inline-block; width:9px; height:9px; border-radius:50%; background:var(--rule);
  border:1px solid var(--ink-3)}
.mdot[data-on="true"]{background:var(--t-active); border-color:var(--t-active)}
@media(min-width:600px) and (max-width:900px){ .pl-closeup{position:static; margin:12px auto 0; max-width:none} }
/* On a phone the stage has one band of empty space and it is the left one: the
   rep count takes the top, the figure is a tall narrow drawing in the middle,
   and the bottom is the fold. So the inset stands there, stacked rather than
   side by side — a column is what fits a tall thin strip — and the figure's
   box is padded by the strip's width so the body centres beside it instead of
   over it. Between 600 and 900 there is room for the wide version in the flow. */
@media(max-width:599px){
  /* No padding on the wrapper: the card inside it has its own, and the two
     stacked left 53px for the text in a 150px card — which is why "extensors"
     came out one letter per line. */
  /* Anchored to the bottom of the stage, not centred in it: the card is a
     column of names and a picture, taller than the old one-line inset, and
     centred it rose into the countdown above it. plStripFit keeps its height
     under the room between the two. */
  /* 140px: a picture, its name under it and a pair of 44px arrows under
     that (the deck). The tabs it used to stack needed 150 and gave the
     picture 48 of them. */
  .pl-closeup{position:absolute; left:9px; right:auto; top:auto; bottom:8px;
    transform:none; z-index:1; margin:0; padding:0;
    width:140px; max-width:44%}

  .pl-closeup .closeup{padding:7px; gap:6px}

  /* "Quadriceps" is one word and a narrow column cannot wrap it, so without
     this it was simply cut in half. Breaking inside a word is a last resort —
     the column is wide enough for every name in the library; this is what
     happens if one ever is not. */
  /* break-word, not anywhere. `anywhere` also drives min-content sizing, so
     the flex column collapsed to one character wide and "extensors" came out
     stacked letter by letter. break-word only splits a word that genuinely
     cannot fit a line of its own. */
  .pl-closeup .closeup-txt b{font-size:12.5px; line-height:1.3; overflow-wrap:break-word}

  /* "Feel it here" is a label, not a sentence, and a label that wraps reads as
     two of them. Tracking comes off before size does. It was 10px while it
     shared a 150px row with the round inset; the label now has the card's
     whole width above the boxes, so it is back on the 11px floor. */
  .pl-closeup .eyebrow{font-size:11px; letter-spacing:.04em; white-space:nowrap}

  .pl-closeup .feel-tab{min-height:44px; padding:3px 7px; font-size:12px}

  .pl-closeup .feel-tabs{padding:2px; gap:2px}

  .pl-closeup .closeup{padding:6px; gap:5px}

  .pl-closeup .closeup-sub{font-size:11px}

  /* One box in the strip: the same caption as the deck's, not the desktop's
     button, which stacks a line per name and a line per rank. */
  .pl-closeup .feel-card[data-mode="one"] .feel-cap{display:none}

  .pl-closeup .feel-card[data-mode="one"] .feel-cap-txt{display:block}

  /* Three strengths in the mono face are 143px and the strip is 140: the
     pull-up's "MOST · ALSO · SLIGHT" ran out past both edges of its card. The
     text face, as on a phone held on its side, and a line break between two
     strengths before any of them is cut. */
  .pl-closeup .feel-cap-meta .feel-rank{font-family:inherit; letter-spacing:.02em}

  /* The reserved strip. Padding rather than a narrower stage, so the rep count
     above still gets the full width to centre in — and only where the card is
     actually shown, or the figure would be squeezed into half a screen to make
     room for something that is not there. */
  @media (min-width:360px){
    .pl-figwrap{padding-left:150px}

    /* The figure had only a height cap, which was fine while it had the whole
       width. It does not any more. */
    .pl-figwrap svg{max-width:100%}
  }
}

/* A phone on its side is not a small tall screen, it is a wide short one, and
   the letterbox stack — dial, then figure, then inset, inside 44vh — leaves
   nothing at all for the figure there: at 740x360 it computed to zero and the
   stage showed a clipped rep counter and a floating card. Landscape gets the
   two-column arrangement back, which is what a wide short viewport wants:
   figure on the left with the whole height, words on the right. */
@media (max-width:1120px) and (max-height:560px) and (orientation:landscape){
  .pl-main{grid-template-columns:minmax(0,1fr) minmax(0,290px); grid-template-rows:minmax(0,1fr)}
  /* The beat word takes the place of the unit label ("Reps") rather than a
     line of its own: a line more under the count shrank the feel box below 72px. */
  .pl-dial > div{display:flex; flex-direction:column}
  .pl-dial > div:has(> .pl-beat:not([hidden])) > #pl-unit{display:none}
  .pl-beat{order:-1; font-size:11px; line-height:1.4; margin:0 0 2px; max-width:20ch; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}

  /* The chips go to icons here as they do on a phone held upright, and the
     row scrolls rather than pushing the bar past the screen: with labels, the
     sixth chip (On a TV) took the top bar 15px past a 740px-wide phone in
     room mode, and everything under it shifted to make room. */
  .pl-set{flex:1 1 0; min-width:0; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; padding:1px; margin:-1px 0}
  .pl-set::-webkit-scrollbar{display:none}
  .pl-set > *{flex:none}
  .pl-toggle{width:44px; padding:6px; justify-content:center}
  .pl-toggle span{display:none}

  /* Both corners on the left are spoken for — the count above, the inset
     below — and the stage is too short to stack anything. So the left strip is
     reserved and the figure centres in what is left of the width, rather than
     in the whole of it and on top of both. */
  .pl-stage{height:auto; min-height:0; padding:10px 10px 10px 192px; display:grid;
    place-items:center; border-right:1px solid var(--rule)}

  .pl-dial{position:absolute; top:8px; left:12px; gap:8px}

  .pl-ring{width:46px; height:46px}

  .pl-count{font-size:30px}

  .pl-figwrap{flex:none; height:100%; display:flex; align-items:center; justify-content:center}

  .pl-figwrap svg{max-height:100%; max-width:100%; width:auto}

  /* The same deck as a phone held upright (plStrip / plStripFit), laid on its
     side: the strip is short and the figure here is limited by height, not
     width, so the arrows go either side of the picture rather than under it
     and the strip is wider instead of taller. The place's position moves into
     the caption. */
  .pl-closeup{position:absolute; left:10px; right:auto; bottom:4px; width:174px; max-width:174px; margin:0;
    padding:0}

  /* Every pixel of height is the picture's here: at 740x360 there are 133
     of them between the countdown and the bottom of the stage. */
  .pl-closeup .feel-card[data-mode="deck"]{padding:5px; row-gap:2px}

  .pl-closeup .feel-card[data-mode="deck"][data-bare]{row-gap:0}

  .pl-closeup .feel-card[data-mode="deck"] .feel-cap-names{font-size:12px; line-height:1.2}

  .pl-closeup .feel-card[data-mode="deck"] .feel-cap-txt{margin:0}

  .pl-closeup .feel-card[data-mode="one"] .feel-cap{display:none}

  .pl-closeup .feel-card[data-mode="one"] .feel-cap-txt{display:block; margin:0}

  .pl-closeup .feel-cap-names .feel-nm-long{display:none}

  .pl-closeup .feel-cap-names .feel-nm-short{display:inline}

  .pl-closeup .feel-cap-meta{gap:0 6px}

  /* The strengths in the text face rather than the mono: three of them and
     the position have to share one line of 164px. */
  .pl-closeup .feel-cap-meta .feel-rank{font-family:inherit; letter-spacing:.02em}

  /* A name with no box of its own, under the caption, as a line of text that
     wraps between words. It used to be held to one line (data-tight) to keep
     the picture at 72px, and came out as "Autonomic ne… ALSO", which names
     nothing. Here it is never held to one line: the room is found elsewhere. */
  .pl-closeup .feel-list{margin:0}

  .pl-closeup .feel-static{min-height:0; padding:0 4px; gap:6px; line-height:1.2}

  .pl-closeup .feel-static .feel-name{font-size:12px}

  .pl-closeup .feel-card[data-mode="one"] .feel-cap-names{font-size:12px; line-height:1.2}

  /* One picture and its names: the names beside the picture rather than under
     it, the way a caption sits beside a thumbnail in a list. A float, so a
     name runs on under the picture once it is past it and has the strip's
     whole width there — "Parasympathetic" is wider than the column beside a
     72px picture, and goes under it whole rather than in two pieces. Under
     the picture, the breath movements' two extra places took the picture down
     to 44px. */
  .pl-closeup .feel-card[data-mode="one"]{display:flow-root; text-align:left; padding:5px 4px}
  .pl-closeup .feel-card[data-mode="one"]:not([data-bare]) > .eyebrow{display:block; margin:0 0 4px}
  .pl-closeup .feel-card[data-mode="one"] .feel-stage,
  .pl-closeup .feel-card[data-mode="one"] .feel-boxes,
  .pl-closeup .feel-card[data-mode="one"] .feel-box{display:contents}
  /* 4px of padding and a 6px gutter, so the column beside a 72px picture is
     86 wide: "Glenohumeral" is 81 to 83 depending on the screen's pixel
     ratio, and at 80 the whole caption went under the picture and took the
     picture down to 68px to make room for itself. */
  .pl-closeup .feel-card[data-mode="one"] .closeup-art{float:left; margin:0 6px 2px 0}
  /* The type sizes on the blocks themselves, not only on the words in them: a
     block's line is never shorter than its own font's, and the card's 15px
     at 1.5 made every 12px line 22px tall. */
  .pl-closeup .feel-card[data-mode="one"] .feel-cap-txt{text-align:left; font-size:12px; line-height:1.2}
  .pl-closeup .feel-card[data-mode="one"] .feel-cap-names{display:block; overflow:visible; -webkit-line-clamp:none; overflow-wrap:normal}
  .pl-closeup .feel-card[data-mode="one"] .feel-cap-meta{display:block; margin:0; font-size:11px; line-height:1.25}
  .pl-closeup .feel-card[data-mode="one"] .feel-list,
  .pl-closeup .feel-card[data-mode="one"] .feel-list li{display:block}
  .pl-closeup .feel-card[data-mode="one"] .feel-list{margin-top:3px}

  /* The loose names, in either layout, as words with the swatch in the line:
     a dot held in a padded gutter sat under the floated picture. */
  .pl-closeup .feel-card:not([data-tight]) .feel-static{display:block; position:static; padding:0; margin-top:2px;
    font-size:12px; line-height:1.2}
  /* The swatch is an inline box rather than an inline-block: there is a place
     to wrap either side of an inline-block, and "Parasympathetic" wrapped
     away from its own swatch and left it alone beside the picture. An empty
     inline with no space after it is glued to the first word. */
  .pl-closeup .feel-card:not([data-tight]) .feel-static .feel-dot{position:relative; top:-4px; left:0; display:inline; width:auto; height:auto;
    font-size:0; padding:4.5px; margin:0; box-sizing:content-box}
  .pl-closeup .feel-card:not([data-tight]) .feel-static .feel-dot + .feel-name{padding-left:6px}
  .pl-closeup .feel-card:not([data-tight]) .feel-static .feel-name{display:inline; white-space:normal; overflow:visible; overflow-wrap:normal}
  .pl-closeup .feel-card:not([data-tight]) .feel-static .feel-rank{display:inline; margin-left:6px; padding:0; white-space:nowrap;
    font-family:inherit; letter-spacing:.02em}

  /* The deck's caption, the name and how strongly on one line, so a place
     with no picture can have the line it needs under it. */
  .pl-closeup .feel-card[data-mode="deck"] .feel-cap-names{display:inline; overflow:visible; -webkit-line-clamp:none}
  .pl-closeup .feel-card[data-mode="deck"] .feel-cap-txt{font-size:12px; line-height:1.2}
  /* The strengths as one piece: "MOST ·" on one line and "ALSO · SLIGHT" on
     the next read as two captions. */
  .pl-closeup .feel-card[data-mode="deck"] .feel-cap-meta{display:inline-block; margin-left:6px; font-size:11px; white-space:nowrap}
  .pl-closeup .feel-card[data-mode="deck"] .feel-list{margin-top:1px}
  .pl-closeup .feel-card[data-mode="deck"]{padding:3px 5px}

  .pl-closeup .feel-card[data-mode="deck"] .feel-prev,
  .pl-closeup .feel-card[data-mode="deck"] .feel-next{grid-row:2; align-self:start; margin-top:calc(var(--fb) / 2 - 22px)}

  /* Where the place is among the others goes under the Next arrow, in the
     corner the round picture leaves empty, so it costs the caption no line. */
  .pl-closeup .feel-card[data-mode="deck"] .feel-nav-pos{grid-column:3; grid-row:2; align-self:start;
    margin-top:calc(var(--fb) / 2 + 23px); line-height:1.2}

  .pl-closeup .closeup{padding:6px; gap:5px}

  .pl-closeup .feel-tab{padding:3px 7px; font-size:12px}

  .pl-closeup .feel-tabs{padding:2px; gap:2px}

  /* The grab bar drags the stage shorter to read the cues. In two columns the
     cues are already beside the figure, so there is nothing to trade. */
  .pl-grab{display:none}

  .pl-side{padding:14px 16px; gap:12px}

  .pl-side h2{font-size:19px; margin-top:4px}

  /* 22px of headroom is a third of the panel when the panel is 200px tall. */
  .pl-head{top:0; padding-bottom:6px}

  /* Plus the home indicator: this block's own 8px replaced the inset the
     narrower rule above adds, so on a phone on its side the transport sat in
     the gesture area. */
  .pl-bottom{padding:8px 8px calc(8px + env(safe-area-inset-bottom))}

  /* The breath guide in the transport bar's free left half (guidePlace):
     nowhere on the stage is clear of a figure as tall as the stage. */
  .pl-bottom{position:relative}

  .pl-breath[data-at="bar"]{position:absolute; top:50%; left:12px; right:auto; transform:translateY(-50%);
    flex-direction:row; gap:8px; z-index:1}

  .pl-breath[data-at="bar"] .pl-breath-art{width:52px; height:52px}

  .pl-breath[data-at="bar"] .pl-breath-read{flex-direction:column; align-items:flex-start; gap:2px; min-height:0}

  .pl-breath[data-at="bar"] .pl-breath-word{font-size:11px; letter-spacing:.1em}

  .pl-breath[data-at="bar"] .pl-breath-num{font-size:24px; text-align:left}

  .pl-breath[data-at="bar"][data-still] .pl-breath-num{font-size:30px}

  /* Room mode: the same place, at the size room mode reads at from across a room. */
  .player[data-room="1"] .pl-breath[data-at="bar"]{top:50%; right:auto; left:3vmin; gap:2vmin}

  .player[data-room="1"] .pl-breath[data-at="bar"] .pl-breath-art{width:max(52px, 15vmin); height:max(52px, 15vmin)}

  .player[data-room="1"] .pl-breath[data-at="bar"] .pl-breath-word{font-size:max(15px, 2.6vmin)}

  .player[data-room="1"] .pl-breath[data-at="bar"] .pl-breath-num{font-size:max(30px, 6vmin)}

  .player[data-compact="1"] .pl-stage{height:auto; padding:12px}

  .player[data-compact="1"] .pl-figwrap svg{max-height:100%}
}

/* ===== 400% ZOOM =====
   Four hundred percent of a 1280x1024 desktop is a 320x256 viewport, and
   1.4.10 says the content has to survive it without scrolling in two
   directions. The player did not. Three rows — control bar, stage, transport —
   were asked to share 256px; the stage lost, so the figure computed to zero
   height, the rep dial's absolute corner put the timer underneath the movement
   name, and the instructions were pushed past the bottom of a panel whose only
   way back, the grab bar, is display:none in the two-column layout. A low
   vision user could see neither how many seconds were left nor what to do.

   So at this size the player stops being a fixed frame and becomes one column
   that scrolls: timer, then name, then figure, then instructions, in the order
   you would read them. The transport bar is the only thing still pinned,
   because pause has to be one reach away from wherever you have scrolled to.
   Nothing is clipped any more, which is also why the grab bar stays gone —
   there is no longer a panel for it to trade height with.

   Bounded on both axes on purpose. A wide short window (a phone on its side at
   740x360) still wants the two-column landscape layout above; this is for the
   case where the width has gone as well, which in practice means zoom. */
@media (max-width:560px) and (max-height:420px){
  .player{display:block; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain}

  .pl-top{flex-wrap:wrap; gap:8px; padding:8px 12px}

  .pl-main{display:block; min-height:0}

  /* Back into the flow. Absolutely positioned, the dial was drawn over the
     panel beside it, which is how a 30px numeral ended up under an h2. */
  .pl-stage{position:static; height:auto; min-height:0; padding:10px 12px 12px;
    display:flex; flex-direction:column; align-items:center; gap:8px;
    border-right:none; border-bottom:1px solid var(--rule); overflow:visible}

  .pl-dial{position:static; margin:0; gap:10px}

  .pl-ring{width:42px; height:42px}

  .pl-count{font-size:30px}

  .pl-figwrap{flex:none; height:auto; width:100%; padding-left:0}

  .pl-figwrap svg{max-height:110px; max-width:100%; width:auto; height:auto}

  /* Two drawings of the same body, and no second column to put the small one
     in. The named site is in the "you should feel it" line as text. */
  .pl-closeup{display:none}

  .pl-tempo{position:static; left:auto; right:auto; bottom:auto; width:100%}

  .pl-side{overflow:visible; height:auto; padding:12px 12px 16px; gap:12px}

  .pl-head{position:static; box-shadow:none; padding:0; margin:0}

  .pl-side h2{font-size:19px; margin-top:4px}

  .pl-grab{display:none}

  .pl-next{margin-top:12px}

  /* Sticky rather than fixed: fixed would have taken it out of the scroller
     and back on top of the instructions, which is the bug this block exists
     to fix. It needs its own ground, because the column now runs underneath. */
  .pl-bottom{position:sticky; bottom:0; z-index:6; background:var(--paper); padding:8px 8px calc(8px + env(safe-area-inset-bottom))}

  /* The rest screen covers the player, and the player is now a scroller, so an
     absolute inset:0 would scroll away with the content it is meant to cover.
     Above the transport bar, which has had to be given a layer of its own to
     stay pinned — without this the bar sat on top of "Skip rest". */
  .pl-rest-screen{position:fixed; z-index:8}

  .pl-restcount{font-size:46px}
}

/* ---------- calendar sync view ---------- */
.wk{display:grid; grid-template-columns:repeat(7,1fr); gap:10px}
.wk-day{border:1px solid var(--rule); border-radius:12px; background:var(--sheet-2); padding:12px 12px 14px;
  display:flex; flex-direction:column; gap:10px; min-height:132px; transition:border-color .15s ease}
.wk-day[data-on="true"]{border-color:var(--t-active); background:var(--sheet)}
.wk-head{display:flex; align-items:center; justify-content:space-between}
.wk-head b{font-family:"IBM Plex Mono",monospace; font-size:11px; letter-spacing:.09em; text-transform:uppercase; color:var(--ink-3)}
.dot-on,.dot-off{width:7px; height:7px; border-radius:50%}
.dot-on{background:var(--t-active)} .dot-off{background:var(--rule)}
.wk-body{display:flex; flex-direction:column; gap:7px; flex:1}
.wk-body select{width:100%; padding:8px; min-height:44px; font:inherit; font-size:12.5px; border:1px solid var(--rule);
  border-radius:8px; background:var(--sheet); color:var(--ink)}
.wk-meta{font-family:"IBM Plex Mono",monospace; font-size:11px; color:var(--ink-3)}
.wk-rest{font-size:12.5px; color:var(--ink-3); margin-top:auto}

.exp{display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:14px}
.exp-card{border:1px solid var(--rule); border-radius:12px; background:var(--sheet-2); padding:17px 18px;
  display:flex; flex-direction:column; gap:9px}
.exp-card h3{font-size:14px; font-weight:600; letter-spacing:-.01em}
.exp-card p{font-size:12.5px; color:var(--ink-2); line-height:1.55}
.gcal-links{display:flex; flex-direction:column; gap:5px; margin-top:2px}
.gcal-links a{display:grid; grid-template-columns:34px 1fr auto; align-items:center; gap:9px;
  padding:7px 10px; min-height:44px; border:1px solid var(--rule); border-radius:8px; text-decoration:none;
  color:var(--ink); font-size:12.5px; transition:border-color .15s ease, background .15s ease}
.gcal-links a:hover{border-color:var(--t-active); background:var(--sheet)}
.gcal-links .d{font-family:"IBM Plex Mono",monospace; font-size:11px; color:var(--ink-3); letter-spacing:.06em}
.gcal-links .m{font-family:"IBM Plex Mono",monospace; font-size:11px; color:var(--ink-3)}
.ics-box{width:100%; min-height:230px; padding:13px; border:1px solid var(--rule); border-radius:8px;
  background:var(--sheet-2); color:var(--ink-2); font-family:"IBM Plex Mono",monospace; font-size:11px;
  line-height:1.5; resize:vertical}
.conn{display:flex; align-items:flex-start; gap:14px; padding:15px 17px; border:1px solid var(--rule);
  border-radius:12px; background:var(--sheet-2)}
.conn .logo{flex:none; width:32px; height:32px; border-radius:8px; display:grid; place-items:center;
  background:var(--sheet); border:1px solid var(--rule); font-family:"IBM Plex Mono",monospace;
  font-size:12.5px; color:var(--ink-2)}
.conn .b{flex:1; min-width:0}
.conn .b b{display:block; font-size:14px; font-weight:600; margin-bottom:3px}
.conn .b p{font-size:12.5px; color:var(--ink-2); line-height:1.55}
.conn .btn{flex:none; align-self:center}
/* Same shape as the rule cards that end in a button: on a phone the four
   "Connect" cards were 130px of text beside 90px of button. */
@media (max-width:600px){ .conn{flex-wrap:wrap} .conn .btn{flex:1 1 100%; justify-content:center} }

/* ---------- shared page furniture ---------- */
.h1{font-size:34px; font-weight:700; letter-spacing:-.028em; margin:5px 0 9px}
.lede{font-size:14px; color:var(--ink-2); max-width:70ch; line-height:1.6}
.sub-h{font-size:15px; font-weight:600; padding-bottom:11px; border-bottom:1px solid var(--rule)}
.card{border:1px solid var(--rule); border-radius:12px; background:var(--sheet-2); padding:18px 20px; margin-top:14px}
.card-h{font-size:14px; font-weight:600; letter-spacing:-.01em; margin-bottom:6px}
.card-p{font-size:12.5px; color:var(--ink-2); line-height:1.6; max-width:74ch}
.card-p code{font-family:"IBM Plex Mono",monospace; font-size:12.5px; background:var(--sheet);
  border:1px solid var(--rule); border-radius:4px; padding:1px 5px}
.btn-solid{background:var(--ink); color:var(--sheet); border-color:var(--ink)}
.btn-solid:hover{opacity:.88}
@media(max-width:1000px){ .wk{grid-template-columns:repeat(4,1fr)} }
@media(max-width:640px){ .wk{grid-template-columns:repeat(2,1fr)} }

/* ---------- the sides of a notched phone ----------
   viewport-fit=cover hands this page the whole screen, and every bottom edge
   already pays env(safe-area-inset-bottom) for the home indicator. The sides
   were never paid for. Turned on its side, an iPhone puts the camera housing
   and the rounded corners over the left and right 47-59px, and with cover
   that is page: measured with those insets emulated at 852x393, the page
   title, the search field, the Today tab and every settings row started 22px
   from an edge that was 59px deep. Android does the same with a cutout.

   Last in the sheet and at the specificity of the rules it adds to, so it
   wins on order; every value is zero on a screen with no insets, which is
   every desktop and every phone held upright. The top is left alone on
   purpose: apple-mobile-web-app-status-bar-style is "default", which puts
   the page below the status bar rather than under it. */
.app{padding-left:env(safe-area-inset-left); padding-right:env(safe-area-inset-right)}
.tabbar, .qrow, .player, .sheet{padding-left:env(safe-area-inset-left); padding-right:env(safe-area-inset-right)}
.nudge{padding-left:max(16px, env(safe-area-inset-left)); padding-right:max(16px, env(safe-area-inset-right))}
.gate{padding-left:max(28px, env(safe-area-inset-left)); padding-right:max(28px, env(safe-area-inset-right))}
.skip:focus{left:max(10px, env(safe-area-inset-left))}
/* v95: keep the controls used mid-hold in the bar. Screen and sound
   choices live in a focus-trapped sheet, with their full labels at every size. */
#pl-options-open{width:auto; min-width:44px; padding:6px 12px; color:var(--ink)}
#pl-options-open .pl-options-text{display:inline}
.pl-options-icon{display:none}
@media(max-width:359px){
  .pl-top{gap:2px}
  .pl-set{gap:1px; padding:0}
  #pl-rest{padding-left:4px; padding-right:4px}
  #pl-options-open{width:44px; padding:6px; justify-content:center}
  #pl-options-open .pl-options-icon{display:block}
  #pl-options-open .pl-options-text{display:none}
}
.pl-options{z-index:110}
.pl-options .gate-card{max-height:calc(100dvh - 40px); overflow-y:auto}
.pl-options-list{display:grid; gap:12px; margin:20px 0}
.pl-options-list .pl-toggle{width:100%; min-height:48px; justify-content:flex-start; padding:10px 14px; color:var(--ink)}
.pl-options-list .pl-toggle span{display:inline}
.pl-feel-toggle{display:none}
.pl-replay{align-self:flex-start; display:inline-flex; align-items:center; gap:6px; min-height:44px; min-width:44px; padding:8px 14px; font-size:13px}
/* R3 (14 November 2026): the brand red is for the one primary action, the
   Pro badge and a choice that is selected. Notes, panels and suggestions sat on
   a red wash, which reads as an error in an app with no error red. They keep a
   thin red rule on the leading edge and sit on the neutral sheet. :root raises
   specificity so the rules in later fragments (016, 018) are overridden too. */
:root .setup-strip, :root .sy-hit, :root .ladder-move,
:root .miss-alert, :root .rk-due, :root .go-primary{
  background:var(--sheet); border-color:var(--rule); box-shadow:inset 3px 0 0 var(--target)}
:root .callout, :root .bothsides{background:var(--sheet)}
@media (max-width:430px) and (orientation:portrait) and (min-height:421px){
  /* Fitting the optional inset reads the final stage geometry. A height
     transition used to leave its crop fitted to the collapsed stage. */
  .player:not([data-room="1"]) .pl-stage,
  .player:not([data-room="1"]) .pl-figwrap svg{transition:none}
  /* A timer beside the figure gives the cues the height they need from the
     first hold. The optional close-up restores the larger stage on demand. */
  .player:not([data-room="1"]):not([data-feel-open]) .pl-stage{height:clamp(120px,24dvh,210px); display:grid;
    grid-template-columns:76px minmax(0,1fr); grid-template-rows:minmax(0,1fr); gap:8px; padding:8px 16px}
  .player:not([data-room="1"]):not([data-feel-open]) .pl-dial{margin:0; gap:4px; flex-direction:column}
  .player:not([data-room="1"]):not([data-feel-open]) .pl-ring{display:none}
  /* The 76px timer column holds the unit words too: a long one ("WIEDERHOLUNGEN
     · 8 S HALTEN") wraps inside it instead of pushing the count off the left
     edge (v117). */
  .player:not([data-room="1"]):not([data-feel-open]) .pl-dial,
  .player:not([data-room="1"]):not([data-feel-open]) .pl-dial > div{min-width:0; max-width:100%; align-items:flex-start}
  .player:not([data-room="1"]):not([data-feel-open]) #pl-unit{white-space:normal; overflow-wrap:anywhere; hyphens:auto}
  .player:not([data-room="1"]):not([data-feel-open]) .pl-figwrap{height:100%; padding-left:0}
  .player:not([data-room="1"]):not([data-feel-open]) .pl-figwrap svg{max-height:100%; max-width:100%}
  .player:not([data-room="1"]):not([data-feel-open]) .pl-closeup{display:none}
  .player:not([data-room="1"]):not([data-feel-open]) .pl-tempo{display:none}
  .player:not([data-room="1"])[data-compact="1"]:not([data-feel-open]) .pl-stage{height:18dvh}
  .player:not([data-room="1"])[data-feel-open] .pl-stage{height:44dvh}
  .player:not([data-room="1"])[data-feel-open] .pl-closeup{display:block}
  .player:not([data-room="1"])[data-feel-open] .pl-figwrap{padding-left:150px}
  .player:not([data-room="1"]) .pl-grab{display:none}
  .player:not([data-room="1"]) .pl-head{position:sticky; top:0; padding-bottom:0; margin:0}
  .player:not([data-room="1"]) .pl-side{gap:10px}
  .player:not([data-room="1"]) .pl-head h2{font-size:20px; margin-top:5px}
  .player:not([data-room="1"]) .pl-cues li{padding:6px 0; line-height:1.45}
  .player:not([data-room="1"]) .pl-feel-toggle{display:inline-flex; align-self:flex-start; min-height:44px; min-width:44px}
  /* Once a session ends the stage holds the done card, not a figure and a
     timer: the 76px timer column above squeezed the card into it and cut its
     left edge on every upright phone (found 14 November 2026). The id outranks
     the :not() chains, so the card gets the whole width at every height. */
  #pl-main-wrap[data-done="1"] > .pl-stage{display:flex; height:auto; padding:24px 16px 32px}
}
@media (max-width:430px) and (orientation:portrait) and (min-height:421px) and (max-height:700px){
  .player:not([data-room="1"]):not([data-feel-open]) .pl-stage{height:120px}
  .player:not([data-room="1"])[data-compact="1"]:not([data-feel-open]) .pl-stage{height:100px}
}
/* v114: for a movement whose body figure barely moves (cuLead()), the close-up
   takes the figure's place in the stage and the body becomes a small picture
   of the position, in a corner. Last in the sheet so it outranks the layouts
   above; ids keep it above the room mode's clipping of the close-ups. */
.player[data-lead] .pl-figwrap{position:relative; justify-self:stretch; align-self:stretch; width:100%; min-height:0}
#pl-fig > .pl-lead{display:flex; flex-direction:column; align-items:center; justify-content:center;
  width:100%; height:100%; min-height:0; margin:0}
#pl-fig > .pl-lead > .eyebrow{display:none}
#pl-fig > .pl-lead .headplate, #pl-fig > .pl-lead figure{max-width:none; width:100%; margin:0; display:flex;
  flex-direction:column; align-items:center; min-height:0}
#pl-fig > .pl-lead .hp-key{display:none}
#pl-fig > .pl-lead svg{width:min(560px, 100%); height:auto; max-height:min(58vh, 460px); max-width:100%; margin:0 auto}
#pl-fig > .pl-body{position:absolute; right:6px; bottom:6px; width:min(24%, 132px); padding:4px 4px 2px;
  background:var(--paper); border:1px solid var(--rule); border-radius:10px; text-align:center; z-index:1}
#pl-fig > .pl-body .eyebrow{display:block; font-size:11px; line-height:1.2}
#pl-fig > .pl-body svg{display:block; width:100%; height:auto; max-height:none; max-width:100%}
.player[data-room="1"] #pl-fig > .pl-lead{position:static; width:100%; height:100%; overflow:visible;
  clip-path:none; visibility:visible; pointer-events:auto}
.player[data-room="1"] #pl-fig > .pl-lead svg{max-height:66vh}
@media (max-width:900px), (max-height:500px){
  #pl-fig > .pl-lead svg{max-height:100%}
  /* the beat word is by the counter and the words are in Do this; the stage
     keeps the drawing */
  /* clipped, never display:none: the beat word by the counter is read off
     these words' running animations, and display:none runs none */
  #pl-fig > .pl-lead figcaption{position:absolute; width:1px; height:1px; margin:0; padding:0; border:0;
    overflow:hidden; clip-path:inset(50%); visibility:hidden; pointer-events:none}
  #pl-fig > .pl-lead figure{height:100%; justify-content:center}
  #pl-fig > .pl-body{width:min(20%, 78px)}
}

/* Muscle explainers (23 November 2026). The drawings carry their own light
   colours as fallbacks; dark mode supplies these. */
.mx-figs{display:flex; gap:12px; flex-wrap:wrap; margin:14px 0 10px}
.mx-fig{flex:1 1 240px; max-width:420px; background:var(--sheet-2); border-radius:10px; overflow:hidden; display:flex; align-items:center; justify-content:center; min-height:200px}
.mx-fig svg{display:block; width:100%; height:auto; max-height:440px}
.mx-latin{color:var(--ink-2); font-style:italic; margin:0 0 6px}
.mx-key{list-style:none; padding:0; margin:6px 0 14px; display:grid; gap:7px}
.mx-key li{display:flex; gap:9px; align-items:center}
.mx-sw{flex:none; width:14px; height:14px; border-radius:3px}
.mx-t1{background:var(--mx-t1,#C8473B)} .mx-t2{background:var(--mx-t2,#4E6FB5)} .mx-t3{background:var(--mx-t3,#4E9467)} .mx-t4{background:var(--mx-t4,#9469AE)}
.mx-n{flex:none; width:20px; height:20px; border-radius:50%; font:700 11px/20px var(--f-body); text-align:center; background:var(--ink); color:var(--sheet)}
.mx-n.mx-ins{background:var(--sheet); color:var(--ink); box-shadow:inset 0 0 0 2.5px var(--ink)}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .mx-page{
  --mx-skin:#1D2934; --mx-skin-ink:#4A5B68; --mx-bone:#56616B; --mx-bone-shade:#434D56; --mx-muscle:#5B4441; --mx-muscle-shade:#4A3633;
  --mx-t1:#D9574A; --mx-t1-shade:#B1443A; --mx-t2:#6584CC; --mx-t2-shade:#4E6AAC; --mx-t3:#57A578; --mx-t3-shade:#43875F; --mx-t4:#A07CC0; --mx-t4-shade:#8462A1;
  --mx-ink:#0C1218; --mx-ink-strong:#05080B; --mx-mark:#F1F4F6; --mx-mark-ring:#0F171E } }
:root[data-theme="dark"] .mx-page{
  --mx-skin:#1D2934; --mx-skin-ink:#4A5B68; --mx-bone:#56616B; --mx-bone-shade:#434D56; --mx-muscle:#5B4441; --mx-muscle-shade:#4A3633;
  --mx-t1:#D9574A; --mx-t1-shade:#B1443A; --mx-t2:#6584CC; --mx-t2-shade:#4E6AAC; --mx-t3:#57A578; --mx-t3-shade:#43875F; --mx-t4:#A07CC0; --mx-t4-shade:#8462A1;
  --mx-ink:#0C1218; --mx-ink-strong:#05080B; --mx-mark:#F1F4F6; --mx-mark-ring:#0F171E }

/* The muscle lengthening (draft, 24 November 2026): the arrow on an anatomy
   drawing flows from the middle out toward the two attachments. */
.mx-arrow line{stroke-linecap:round;fill:none}
.mx-arrow-halo line{stroke:var(--mx-mark-ring,#fff);stroke-width:19;opacity:.9}
.mx-arrow-line line{stroke:var(--mx-mark,#1F1A17);stroke-width:9;stroke-dasharray:22 16;animation:mxflow 1.4s linear infinite}
@keyframes mxflow{to{stroke-dashoffset:-38}}
@media (prefers-reduced-motion:reduce){.mx-arrow-line line{animation:none}}
html[data-still] .mx-arrow-line line{animation:none}
.mxb{margin:22px 0 6px}
.mxb h3{margin:0 0 10px}
.mxb-fig{max-width:342px; box-sizing:border-box; margin:0 0 10px; background:var(--sheet); border:1px solid var(--rule); border-radius:10px; padding:10px 10px 8px}
.mxb-pair{display:flex; gap:12px; flex-wrap:wrap}
.mxb-pair .mxb-fig{flex:1 1 200px; margin:0}
.mxb-pair figcaption{font-size:13px; font-weight:600; color:var(--ink-2); text-align:center; margin-top:4px}
.mxb-svg{display:block; width:100%; height:auto; max-width:320px; max-height:300px; margin:0 auto}
.mxb-bone{fill:none; stroke:var(--mx-bone-shade,#C9C3B6); stroke-width:15; stroke-linecap:round; stroke-linejoin:round}
.mxb-lab{font-weight:600; font-family:system-ui,sans-serif; fill:var(--ink-2)}
.mxb-front{font-weight:600; font-family:system-ui,sans-serif; fill:var(--ink-2)}
.mxb-mid{stroke:var(--ink-3); stroke-width:1.2; stroke-dasharray:4 4}
.mxb-joint{fill:var(--mx-bone,#E2DED5); stroke:var(--mx-bone-shade,#C9C3B6); stroke-width:3}
.mxb-end{fill:var(--mx-bone-shade,#C9C3B6); stroke:none}
.mxb-mus{fill:none; stroke:var(--mx-t1,#C8473B); stroke-width:7; stroke-linecap:round; stroke-linejoin:round; opacity:.92}
.mxb-o{fill:var(--mx-mark,#1F1A17); stroke:var(--mx-mark-ring,#fff); stroke-width:2}
.mxb-i{fill:var(--mx-mark-ring,#fff); stroke:var(--mx-mark,#1F1A17); stroke-width:3}
.mxb-meter{position:relative; height:8px; border-radius:4px; background:var(--sheet-2); margin:10px 0 4px; overflow:hidden}
.mxb-fill{position:absolute; inset:0; background:var(--mx-t1,#C8473B); transform-origin:left center; transform:scaleX(.5)}
.mxb-tick{position:absolute; top:0; bottom:0; width:2px; background:var(--ink); z-index:1}
.mxb-ends{display:flex; justify-content:space-between; font-size:12px; color:var(--ink-3)}
#mxb-pause{min-height:44px; margin:0 0 6px}
.mxb-says{margin:6px 0 8px; display:grid; gap:6px}
.mxb-says div{display:flex; gap:8px; flex-wrap:wrap; padding:4px 8px; border-radius:8px}
.mxb-says dt{font-weight:600; min-width:7.5em}
.mxb-says dd{margin:0}
.mxb[data-lit="short"] .mxb-short, .mxb[data-lit="long"] .mxb-long{background:var(--sheet-2); box-shadow:inset 3px 0 0 var(--mx-t1,#C8473B)}
