/* ==========================================================================
   The workout screen as the app draws it in November 2026 (build 31), built
   from the app's own computed styles: one unit is one iPhone point on a
   440 pt wide screen. The hero plays the live step: set 1 is logged and SET
   moves set 2 up at once (80 rolls to 82.5, "+1 rep" becomes "+2.5 kg", the
   reason opens), then the rest starts.
   ========================================================================== */
.wk { --u: calc(100cqi / 440);
  --ink: #151514; --ink2: #5C5A55; --ink3: #6F6B64; --acc: #24573F; --acc-soft: #E4EDE7; --band: rgb(237 243 239);
  --tray: linear-gradient(180deg, rgb(255 255 255 / .84), rgb(255 255 255 / .6));
  --tray-edge: inset 0 1px 0 rgb(255 255 255 / .95), inset 0 0 0 1px rgb(255 255 255 / .72), 0 1px 2px rgb(21 21 20 / .05), 0 18px 36px -24px rgb(21 21 20 / .3);
  --ctl: rgb(255 255 255 / .92); --ctl-edge: inset 0 0 0 1px rgb(21 21 20 / .07), 0 1px 2px rgb(21 21 20 / .05);
  --ex: #FDFCF9; --ex-edge: 0 0 0 .5px rgb(21 21 20 / .08), 0 1px 2px rgb(21 21 20 / .06), 0 14px 30px -18px rgb(21 21 20 / .3);
  --tool: rgb(21 21 20 / .05); --chip: #F3F1EB; --line: #E4E1D8; --cell: #F3F1EB; --cell-now: #FFFFFF; --inner: #FFFFFF;
  --inner-edge: 0 1px 2px rgb(21 21 20 / .06), 0 0 0 1px rgb(21 21 20 / .04);
  --rec: radial-gradient(90% 150% at 10% -40%, rgb(127 191 156 / .55) 0%, rgb(127 191 156 / .16) 48%, transparent 78%), linear-gradient(180deg, rgb(255 255 255 / .92), rgb(255 255 255 / .76));
  --rec-edge: inset 0 1px 0 rgb(255 255 255 / .95), 0 0 0 1px rgb(21 21 20 / .05), 0 1px 2px rgb(21 21 20 / .05);
  --delta: rgb(36 87 63 / .1); --use: rgb(36 87 63 / .12); --why: rgb(255 255 255 / .9);
  --check-done: rgb(207 227 214); --gold: rgb(200 146 46); --pr-bg: #F7EEDC; --pr-ink: #8A5A12; --next: rgb(21 21 20 / .045); --track: rgb(21 21 20 / .09);
  position: absolute; inset: 0; padding-top: calc(188 * var(--u)); color: var(--ink); font-family: var(--font); font-variant-numeric: tabular-nums; letter-spacing: 0; }
:root[data-theme="dark"] .wk {
  --ink: #F3EEE2; --ink2: #D3D0C8; --ink3: #A6A39B; --acc: #F1F1F0; --acc-soft: rgb(63 61 58); --band: rgb(241 241 240 / .1);
  --tray: linear-gradient(180deg, rgb(243 238 226 / .2), rgb(243 238 226 / .08)), rgb(24 24 22 / .74);
  --tray-edge: inset 0 1px 0 rgb(255 255 255 / .24), inset 0 0 0 1px rgb(255 255 255 / .08), 0 18px 34px -22px rgb(0 0 0 / .9);
  --ctl: rgb(243 238 226 / .1); --ctl-edge: inset 0 0 0 1px rgb(243 238 226 / .12);
  --ex: rgb(46 45 43); --ex-edge: inset 0 1px 0 rgb(255 255 255 / .12), inset 0 0 0 .5px rgb(255 255 255 / .07), 0 14px 30px -16px rgb(0 0 0 / .9);
  --tool: rgb(243 238 226 / .1); --chip: rgb(243 238 226 / .12); --line: rgb(63 62 58); --cell: rgb(48 47 44); --cell-now: rgb(243 238 226 / .1); --inner: rgb(21 21 20);
  --inner-edge: inset 0 1px 0 rgb(255 255 255 / .07);
  --rec: radial-gradient(90% 150% at 10% -40%, rgb(241 241 240 / .32) 0%, rgb(241 241 240 / .09) 50%, transparent 80%), linear-gradient(180deg, rgb(243 238 226 / .16), rgb(243 238 226 / .06));
  --rec-edge: inset 0 1px 0 rgb(255 255 255 / .14), inset 0 0 0 1px rgb(255 255 255 / .06);
  --delta: rgb(241 241 240 / .16); --use: rgb(243 238 226 / .12); --why: rgb(243 238 226 / .12);
  --check-done: rgb(63 61 58); --gold: rgb(226 180 92); --pr-bg: rgb(226 180 92 / .14); --pr-ink: rgb(226 180 92); --next: rgb(243 238 226 / .06); --track: rgb(243 238 226 / .16); }
.wk p { margin: 0; }
.wk .i { stroke-width: 2; }

/* Head */
.wk-head { position: absolute; left: calc(16 * var(--u)); right: calc(16 * var(--u)); top: calc(74 * var(--u)); display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: start; column-gap: calc(6 * var(--u));
  padding: calc(16 * var(--u)) calc(14 * var(--u)) calc(14 * var(--u)); border-radius: calc(26 * var(--u)); background: var(--tray); box-shadow: var(--tray-edge); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); z-index: 2; }
.wk-hg { display: grid; gap: calc(4 * var(--u)); padding: 0 calc(4 * var(--u)); }
.wk-hg strong { font: 700 calc(22 * var(--u))/calc(30 * var(--u)) var(--font); letter-spacing: -.022em; margin-top: calc(-7 * var(--u)); }
.wk-hl { display: flex; align-items: center; gap: calc(8 * var(--u)); }
.wk-time { font: 600 calc(34 * var(--u))/calc(32 * var(--u)) var(--font); letter-spacing: -.02em; }
.wk-pause { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); height: calc(34 * var(--u)); padding: 0 calc(12 * var(--u)) 0 calc(10 * var(--u)); border-radius: 999px; background: var(--ctl); box-shadow: var(--ctl-edge); font: 600 calc(13 * var(--u))/1 var(--font); }
.wk-pause .i { width: calc(13.5 * var(--u)); height: calc(13.5 * var(--u)); fill: currentColor; stroke: none; }
.wk-ring { position: relative; display: grid; place-items: center; width: calc(46 * var(--u)); height: calc(46 * var(--u)); margin-right: calc(6 * var(--u)); }
.wk-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.wk-ring circle { fill: none; stroke-width: 4; }
.wk-ring .t { stroke: var(--track); }
.wk-ring .f { stroke: var(--acc); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p) * 100); transition: stroke-dashoffset .8s var(--ease-pres); }
.wk-ring b { position: relative; display: inline-flex; align-items: center; font: 700 calc(13 * var(--u))/calc(18 * var(--u)) var(--font); letter-spacing: -.02em; white-space: pre; }
.wk-btn { display: grid; place-items: center; width: calc(40 * var(--u)); height: calc(40 * var(--u)); margin-top: calc(3 * var(--u)); border-radius: 50%; background: var(--ctl); box-shadow: var(--ctl-edge); }
.wk-btn .i { width: calc(19 * var(--u)); height: calc(19 * var(--u)); }
.wk-btn + .wk-btn .i { width: calc(21.5 * var(--u)); height: calc(21.5 * var(--u)); }

/* The exercise */
.wk-ex { position: relative; margin: 0 calc(16 * var(--u)); padding: calc(8 * var(--u)); border-radius: calc(26 * var(--u)); background: var(--ex); box-shadow: var(--ex-edge); }
.wk-exh { display: flex; align-items: center; gap: calc(8 * var(--u)); height: calc(58 * var(--u)); padding: calc(4 * var(--u)) calc(4 * var(--u)) calc(10 * var(--u)); }
.wk-exh .grip { width: calc(19 * var(--u)); height: calc(19 * var(--u)); margin: 0 calc(10 * var(--u)) 0 calc(7 * var(--u)); color: var(--ink2); }
.wk-exh strong { font: 700 calc(17 * var(--u))/calc(22 * var(--u)) var(--font); letter-spacing: -.018em; }
.wk-tools { display: flex; gap: calc(4 * var(--u)); margin-left: auto; }
.wk-tools i { display: grid; place-items: center; width: calc(36 * var(--u)); height: calc(36 * var(--u)); border-radius: 50%; background: var(--tool); }
.wk-tools .i { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.wk-exh .chev { width: calc(15.5 * var(--u)); height: calc(15.5 * var(--u)); margin: 0 calc(6 * var(--u)) 0 calc(6 * var(--u)); color: var(--ink3); }
.wk-planl { display: flex; gap: calc(6 * var(--u)); padding: 0 calc(2 * var(--u)); margin-top: calc(-2 * var(--u)) !important; color: var(--ink3); font: 600 calc(11 * var(--u))/calc(15 * var(--u)) var(--font); letter-spacing: .06em; text-transform: uppercase; }
.wk-planl span { font-weight: 500; text-transform: none; letter-spacing: .02em; }
.wk-planl span::before { content: "·"; margin-right: calc(6 * var(--u)); }
.wk-plan { display: flex; gap: calc(4 * var(--u)); margin: calc(6 * var(--u)) 0 calc(8 * var(--u)); padding: 0; list-style: none; }
.wk-pc { position: relative; display: grid; justify-items: center; align-content: center; width: calc(96 * var(--u)); height: calc(44 * var(--u)); padding: calc(5 * var(--u)) calc(2 * var(--u)) calc(4 * var(--u)); border-radius: calc(10 * var(--u)); background: var(--chip); box-shadow: inset 0 0 0 1px transparent;
  transition: background-color .45s ease, box-shadow .45s ease; }
.wk-pc b { display: inline-flex; align-items: center; gap: calc(1 * var(--u)); font: 600 calc(15 * var(--u))/calc(19 * var(--u)) var(--font); letter-spacing: -.01em; transition: color .4s ease; }
.wk-pc small { display: inline-flex; align-items: center; gap: calc(1 * var(--u)); color: var(--ink2); font: 500 calc(12 * var(--u))/calc(16 * var(--u)) var(--font); transition: color .4s ease; }
.wk-pc .up { width: calc(9.5 * var(--u)); height: calc(9.5 * var(--u)); stroke-width: 2.6; }
.wk-pc[data-pc="1"] small { color: var(--acc); }
.wk-live { position: absolute; top: calc(-3 * var(--u)); right: calc(-3 * var(--u)); width: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 calc(2 * var(--u)) var(--ex); opacity: 0; transform: scale(.3); transition: opacity .3s ease, transform .5s var(--spring-bounce); }
/* Set 1 is the current set before logging; after, set 2. */
.wk-pc[data-pc="1"], .wk.is-adv .wk-pc[data-pc="2"] { background: var(--acc-soft); box-shadow: inset 0 0 0 1.5px var(--acc); }
.wk.is-adv .wk-pc[data-pc="1"] { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.wk.is-adv .wk-pc[data-pc="1"] :is(b, small) { color: var(--ink3); font-weight: 500; }
.wk.is-adv .wk-pc[data-pc="2"] b { color: var(--acc); }
.wk.is-adv .wk-live { opacity: 1; transform: none; transition-delay: .3s; }

/* SET recommends */
/* As in the app, the tray keeps 8 pt under its white card, and about 12 under "Use … instead". */
.wk-rec { margin-bottom: calc(8 * var(--u)); padding-bottom: calc(8 * var(--u)); border-radius: calc(18 * var(--u)); background: var(--rec); box-shadow: var(--rec-edge); }
.wk-rech { display: flex; align-items: center; height: calc(44 * var(--u)); padding: 0 calc(8 * var(--u)) 0 calc(16 * var(--u)); color: var(--acc); }
.wk-rech .sig { width: calc(13 * var(--u)); height: calc(13 * var(--u)); margin-right: calc(4 * var(--u)); fill: currentColor; stroke: none; }
.wk-rech b { font: 900 calc(14 * var(--u))/calc(18.7 * var(--u)) var(--font); }
.wk-why { display: inline-flex; align-items: center; gap: calc(3 * var(--u)); height: calc(28 * var(--u)); margin-left: auto; padding: 0 calc(8 * var(--u)) 0 calc(10 * var(--u)); border-radius: 999px; background: var(--why); box-shadow: 0 1px 2px rgb(21 21 20 / .08); font: 700 calc(13 * var(--u))/1 var(--font); }
.wk-why .i { width: calc(14 * var(--u)); height: calc(14 * var(--u)); stroke-width: 2.4; }
.wk-recv { margin: calc(-4 * var(--u)) calc(8 * var(--u)) 0; border-radius: calc(14 * var(--u)); background: var(--inner); box-shadow: var(--inner-edge); }
:root[data-theme="dark"] .wk-recv { background: rgb(243 238 226 / .1); }
.wk-val { display: flex; align-items: center; gap: calc(8 * var(--u)); padding: calc(10 * var(--u)) calc(14 * var(--u)) 0; color: var(--ink2); font: 600 calc(17 * var(--u))/calc(18.7 * var(--u)) var(--font); }
.wk-val strong { color: var(--acc); font: 700 calc(34 * var(--u))/calc(37.4 * var(--u)) var(--font); letter-spacing: -.03em; }
.wk-unit { position: relative; top: calc(5 * var(--u)); margin-left: calc(-3 * var(--u)); }
.wk-delta { display: inline-grid; align-items: center; height: calc(24 * var(--u)); padding: 0 calc(10 * var(--u)); border-radius: 999px; background: var(--delta); color: var(--acc); font: 600 calc(12 * var(--u))/1 var(--font); }
.wk-last { padding: calc(2 * var(--u)) calc(14 * var(--u)) calc(12 * var(--u)); color: var(--ink2); font: 500 calc(14 * var(--u))/calc(16.8 * var(--u)) var(--font); }
.wk-last b { color: var(--ink); font-weight: 600; }
.wk-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease-pres); }
.wk-more > div { min-height: 0; overflow: hidden; opacity: 0; transition: opacity .35s ease; }
.wk-note { padding: calc(8 * var(--u)) calc(12 * var(--u)) calc(8 * var(--u)); color: var(--ink2); font: 400 calc(15 * var(--u))/calc(21 * var(--u)) var(--font); }
.wk-use { display: inline-flex; align-items: center; height: calc(32 * var(--u)); margin: 0 calc(12 * var(--u)) calc(4 * var(--u)); padding: 0 calc(14 * var(--u)); border-radius: 999px; background: var(--use); color: var(--acc); font: 600 calc(14 * var(--u))/1 var(--font); }
.wk.is-adv .wk-more { grid-template-rows: 1fr; }
.wk.is-adv .wk-more > div { opacity: 1; transition: opacity .5s ease .25s; }
.wk-rec { transition: box-shadow .6s ease; }
.wk.is-flash .wk-rec { box-shadow: var(--rec-edge), 0 0 0 calc(3 * var(--u)) color-mix(in srgb, var(--acc) 22%, transparent); }

/* The sets */
.wk-table { padding: calc(14 * var(--u)) calc(14 * var(--u)) calc(12 * var(--u)); border-radius: calc(18 * var(--u)); background: var(--inner); box-shadow: var(--inner-edge); }
.wk-th, .wk-row { display: grid; grid-template-columns: calc(44 * var(--u)) 1fr 1fr calc(56.3 * var(--u)) calc(44 * var(--u)); align-items: center; gap: calc(8 * var(--u)); }
.wk-th { padding-bottom: calc(4 * var(--u)); color: var(--ink3); font: 700 calc(11 * var(--u))/calc(14 * var(--u)) var(--font); letter-spacing: .04em; text-transform: uppercase; text-align: center; }
.wk-th span:last-child { visibility: hidden; }
.wk-th .i { width: calc(11 * var(--u)); height: calc(11 * var(--u)); vertical-align: -.1em; stroke-width: 2.4; }
.wk-row { position: relative; isolation: isolate; height: calc(50 * var(--u)); margin: 0 calc(-8 * var(--u)); padding: calc(3 * var(--u)) calc(8 * var(--u)); }
/* The bands, as the app draws them, from the same left edge: a logged set's band runs from the number to under its tick;
   the current set's band is the whole row, tick included. */
.wk-row::before { content: ""; position: absolute; z-index: -1; top: calc(3 * var(--u)); bottom: calc(3 * var(--u)); left: calc(8 * var(--u)); right: calc(30 * var(--u)); border-radius: calc(10 * var(--u)); background: var(--band); clip-path: inset(0 100% 0 0 round calc(10 * var(--u))); opacity: 0; transition: clip-path .22s cubic-bezier(.4, 0, 1, 1), opacity .16s ease .06s, top .3s ease, bottom .3s ease, right .3s ease; }
.wk-n { display: flex; align-items: center; justify-content: center; gap: calc(5 * var(--u)); height: calc(44 * var(--u)); color: var(--ink3); font: 600 calc(14 * var(--u))/1 var(--font); }
.wk-n b { display: grid; place-items: center; width: calc(28 * var(--u)); height: calc(28 * var(--u)); border-radius: 50%; font-weight: inherit; transition: background-color .35s ease, color .35s ease; }
.wk-pr { display: none; padding: calc(2 * var(--u)) calc(6 * var(--u)); border-radius: 999px; background: var(--pr-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 55%, transparent); color: var(--pr-ink); font: 800 calc(10 * var(--u))/1.2 var(--font); font-style: normal; letter-spacing: .04em; }
.wk-f { display: grid; place-items: center; height: calc(44 * var(--u)); border-radius: calc(10 * var(--u)); background: var(--cell); font: 600 calc(15 * var(--u))/1 var(--font); transition: background-color .3s ease, box-shadow .3s ease, color .3s ease; }
.wk-rir { font-size: calc(14 * var(--u)); color: var(--ink2); }
.wk-check { display: grid; place-items: center; width: calc(44 * var(--u)); height: calc(44 * var(--u)); border-radius: 50%; box-shadow: inset 0 0 0 2px var(--acc); color: var(--acc); transition: background-color .35s ease, box-shadow .35s ease, transform .3s var(--spring-bounce); }
.wk-check .i { width: calc(15 * var(--u)); height: calc(15 * var(--u)); stroke-width: 2.2; }
/* The current set: a soft band, its number in a green circle, white fields. */
.wk-row.is-now::before { top: 0; bottom: 0; right: calc(8 * var(--u)); border-radius: calc(12 * var(--u)); clip-path: inset(0 0 0 0 round calc(12 * var(--u))); opacity: 1; transition: clip-path .3s cubic-bezier(.22, 1, .36, 1), opacity .25s ease, top .3s ease, bottom .3s ease, right .3s ease; }
.wk-row.is-now .wk-n b { background: var(--acc); color: #FFFFFF; font-weight: 700; }
:root[data-theme="dark"] .wk-row.is-now .wk-n b { color: #1B1A19; }
.wk-row.is-now .wk-f { background: var(--cell-now); }
.wk-row.is-typing .wk-f.wk-rir, .wk-row.is-typing-reps .wk-f.wk-reps { box-shadow: inset 0 0 0 1.5px var(--acc); }
.wk-row[data-row="2"].is-now .wk-kg { box-shadow: inset 0 0 0 1.5px var(--acc); color: var(--acc); }
:root[data-theme="dark"] .wk-row[data-row="2"].is-now .wk-kg { color: var(--ink); }
/* Logged: the band sweeps in, the values settle bold, the tick fills; a record gets its gold ring. */
.wk-row.is-done::before { clip-path: inset(0 0 0 0 round calc(10 * var(--u))); opacity: 1; transition: clip-path .46s cubic-bezier(.22, 1, .36, 1) .03s, opacity .12s ease .03s; }
.wk-row.is-done .wk-f { background: transparent; box-shadow: none; font-weight: 700; }
.wk-row.is-done .wk-n { color: var(--acc); }
.wk-row.is-done .wk-n b { background: transparent; color: var(--acc); font-weight: 700; }
.wk-row.is-done .wk-check { background: var(--check-done); box-shadow: inset 0 0 0 2px var(--gold); animation: wk-pop .42s cubic-bezier(.34, 1.56, .64, 1) both; }
.wk-row.is-done .wk-check .i { stroke-width: 3; color: var(--acc); }
:root[data-theme="dark"] .wk-row.is-done .wk-check .i { color: var(--ink); }
.wk-row.is-done .wk-pr { display: inline-block; animation: wk-pop .5s cubic-bezier(.34, 1.56, .64, 1) .15s both; }
.wk-row:not(.is-done):not(.is-now) .wk-n b { width: auto; }
.wk-acts { display: grid; grid-template-columns: 1fr 1fr; gap: calc(8 * var(--u)); margin-top: calc(8 * var(--u)); }
.wk-acts span { display: flex; align-items: center; justify-content: center; gap: calc(6 * var(--u)); height: calc(44 * var(--u)); border-radius: calc(10 * var(--u)); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--acc); font: 600 calc(14 * var(--u))/1 var(--font); }
.wk-acts .i { width: calc(14 * var(--u)); height: calc(14 * var(--u)); stroke-width: 2.3; }
@keyframes wk-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* Up next */
.wk-next { margin: calc(16 * var(--u)) calc(16 * var(--u)) 0; padding: calc(14 * var(--u)) calc(16 * var(--u)); border-radius: calc(26 * var(--u)); background: var(--next); box-shadow: inset 0 0 0 1px rgb(21 21 20 / .04); }
.wk-next small { display: block; margin-left: calc(14 * var(--u)); color: var(--ink3); font: 700 calc(11 * var(--u))/1.4 var(--font); letter-spacing: .08em; text-transform: uppercase; }
.wk-next p { display: flex; align-items: center; gap: calc(10 * var(--u)); margin-top: calc(4 * var(--u)) !important; }
.wk-next p > span { display: grid; flex: 1; }
.wk-next b { font: 700 calc(17 * var(--u))/1.3 var(--font); letter-spacing: -.015em; }
.wk-next em { color: var(--ink2); font: 500 calc(14 * var(--u))/1.3 var(--font); font-style: normal; }
.wk-next i { color: var(--ink2); font: 600 calc(15 * var(--u))/1 var(--font); font-style: normal; }
.wk-next .grip { width: calc(19 * var(--u)); height: calc(19 * var(--u)); color: var(--ink2); margin-left: calc(-6 * var(--u)); }
.wk-next .chev { width: calc(17 * var(--u)); height: calc(17 * var(--u)); color: var(--ink2); }

/* Rest, and the tab bar */
.wk-rest { position: absolute; left: calc(16 * var(--u)); right: calc(16 * var(--u)); bottom: calc(124 * var(--u)); z-index: 3; display: flex; align-items: center; gap: calc(8 * var(--u)); height: calc(64 * var(--u)); padding: 0 calc(9 * var(--u)) 0 calc(12 * var(--u)); border-radius: 999px;
  background: var(--tray); box-shadow: var(--tray-edge), 0 18px 34px -16px rgb(21 21 20 / .35); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  opacity: 0; transform: translateY(calc(26 * var(--u))) scale(.94); transition: opacity .45s ease, transform .85s var(--spring-bounce); }
:root:not([data-theme="dark"]) .wk-rest { background: linear-gradient(180deg, rgb(255 255 255 / .96), rgb(255 255 255 / .86)); }
.wk.is-rest .wk-rest { opacity: 1; transform: none; }
.wk-rest-ring { position: relative; width: calc(40 * var(--u)); height: calc(40 * var(--u)); flex-shrink: 0; }
.wk-rest-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.wk-rest-ring circle { fill: none; stroke-width: 3.4; }
.wk-rest-ring .t { stroke: var(--track); }
.wk-rest-ring .f { stroke: var(--acc); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--rest-off, 0); transition: stroke-dashoffset 1s linear; }
.wk-rest-copy { display: grid; gap: calc(2 * var(--u)); margin-right: auto; }
.wk-rest-copy small { color: var(--ink2); font: 600 calc(11.5 * var(--u))/1 var(--font); }
.wk-rest-copy b { font: 700 calc(21 * var(--u))/1 var(--font); letter-spacing: -.02em; }
.wk-rest-b, .wk-rest-skip { display: grid; place-items: center; height: calc(42 * var(--u)); border-radius: 999px; font: 600 calc(14 * var(--u))/1 var(--font); }
.wk-rest-b { min-width: calc(48 * var(--u)); background: var(--ctl); box-shadow: var(--ctl-edge); }
.wk-rest-skip { padding: 0 calc(16 * var(--u)); background: var(--acc); color: #FFFFFF; }
:root[data-theme="dark"] .wk-rest-skip { color: #151514; }
.wk .nava { --u: calc(100cqi / 440); bottom: calc(49 * var(--u)); }

/* Two-state text: the first item, then the second once its step has played. It rolls like the app's numbers: the old text
   leaves upward and the new one comes up from below, each inside its own line, so the two never show through each other. */
.wk-sw { display: inline-grid; overflow: hidden; margin-block: -.14em; vertical-align: bottom; }
.wk-sw > i { grid-area: 1 / 1; padding-block: .14em; font-style: normal; transition: opacity .2s ease, transform .5s var(--ease-pres); }
.wk-sw > i + i { opacity: 0; transform: translateY(100%); }
.wk-delta.wk-sw > i + i { transform: translateY(150%); }
.wk-roll { display: inline-grid; overflow: hidden; vertical-align: bottom; }
.wk-roll > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: calc(1 * var(--u)); transition: opacity .3s ease, transform .6s var(--ease-pres); }
.wk-roll .n { opacity: 0; transform: translateY(100%); }
.wk.is-log :is(.wk-ring, [data-row="1"]) .wk-sw > i:first-child,
.wk.is-adv :is(.wk-plan, .wk-rec) .wk-sw > i:first-child { opacity: 0; transform: translateY(-100%); }
.wk.is-log :is(.wk-ring, [data-row="1"]) .wk-sw > i + i,
.wk.is-adv :is(.wk-plan, .wk-rec) .wk-sw > i + i { opacity: 1; transform: none; }
.wk.is-adv .wk-roll .o { opacity: 0; transform: translateY(-100%); }
.wk.is-adv .wk-roll .n { opacity: 1; transform: none; }
.wk.is-adv .wk-rec .wk-roll .n, .wk.is-adv .wk-rec .wk-sw > i + i, .wk-sw.go > i + i { transition-delay: .07s; }
.wk.is-adv [data-row="2"] .wk-roll .n { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  .wk *, .wk *::before { transition: none !important; animation: none !important; }
}
/* Typed values land on their own (before the set is ticked). */
.wk-sw.go > i:first-child { opacity: 0; transform: translateY(-100%); }
.wk.is-adv .wk-delta.wk-sw > i:first-child, .wk-delta.wk-sw.go > i:first-child { transform: translateY(-150%); }
.wk-sw.go > i + i { opacity: 1; transform: none; }
/* The big value keeps only its own width: the number that is not shown leaves the flow. */
.wk-val .wk-roll { position: relative; }
.wk-val .wk-roll .n { position: absolute; left: 0; top: 0; }
.wk.is-adv .wk-val .wk-roll .n { position: static; }
.wk.is-adv .wk-val .wk-roll .o { position: absolute; left: 0; top: 0; }

/* Try it: the same exercise card on its own, filling its column. */
.wk.wk-solo { --u: calc(100cqi / 408); position: relative; inset: auto; padding: 0; }
.wk-solo .wk-ex { margin: 0; box-shadow: var(--ex-edge), 0 40px 70px -40px rgb(21 21 20 / .35); }
.wk-solo .wk-pc.done { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.wk-solo .wk-pc.done :is(b, small) { color: var(--ink3); font-weight: 500; }
.wk-solo .wk-pc.current { background: var(--acc-soft); box-shadow: inset 0 0 0 1.5px var(--acc); }
.wk-solo .wk-pc.current b { color: var(--acc); }
.wk-solo .wk-pc.current .wk-live { opacity: 1; transform: none; }
.wk-solo .wk-pc[data-pc] small { color: inherit; }
.wk-solo .try-roll > span { font: 700 calc(34 * var(--u))/calc(37.4 * var(--u)) var(--font); letter-spacing: -.03em; color: var(--acc); }
.wk-solo .try-more.is-open { grid-template-rows: 1fr; }
.wk-solo .try-more.is-open > div { opacity: 1; transition: opacity .45s ease .2s; }
.wk-solo .wk-note[hidden], .wk-solo .wk-use[hidden] { display: none; }
/* Without the note, "Use … instead" keeps the app's 8 pt under the white card. */
.wk-note[hidden] + .wk-use { margin-top: calc(8 * var(--u)); }
.wk-solo .wk-row.is-now .wk-kg { box-shadow: inset 0 0 0 1.5px var(--acc); color: var(--acc); }
:root[data-theme="dark"] .wk-solo .wk-row.is-now .wk-kg { color: var(--ink); }
.wk-solo .wk-row.is-done .wk-check { animation: none; }
.wk-solo .is-new { animation: wk-fade .45s var(--ease-pres) both; }
.wk-solo.is-deciding .wk-rec { animation: wk-think .7s ease both; }
@keyframes wk-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes wk-think { 0% { box-shadow: var(--rec-edge); } 40% { box-shadow: var(--rec-edge), 0 0 0 calc(3 * var(--u)) color-mix(in srgb, var(--acc) 22%, transparent); } 100% { box-shadow: var(--rec-edge); } }
.wk-row.is-done.no-pr .wk-check { box-shadow: none; }

/* The tour: real screens of the app in one phone that is used like the app. The
   screens move by script (js/sections.js, initTour) the way the app moves:
   Start Push pushes the workout in from the right, a swipe from the left edge
   goes back, a tap on a tab switches it. Transform and opacity only. */
.tour-shots { position: absolute; inset: 0; background: var(--app-canvas); }
.tour-shots .ts-shot { position: absolute; inset: 0; overflow: hidden; visibility: hidden; background: var(--app-canvas); }
.tour-shots .ts-shot.is-on { visibility: visible; }
.tour-shots .ts-shot.is-top { z-index: 2; box-shadow: -14px 0 34px -8px rgb(0 0 0 / .22); }
.tour-shots .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
:root:not([data-theme="dark"]) .tour-shots .shot-d, :root[data-theme="dark"] .tour-shots .shot-l { display: none; }
/* The screen under a pushed one dims a little, as in the app. */
.ts-dim { position: absolute; inset: 0; background: rgb(0 0 0 / .14); opacity: 0; pointer-events: none; }
:root[data-theme="dark"] .ts-dim { background: rgb(0 0 0 / .38); }
/* While screens move, the status bar holds still, as on the phone: a copy of its strip sits on top and fades out after. */
.tour-status { position: absolute; z-index: 4; left: 0; right: 0; top: 0; height: 7.6%; opacity: 0; pointer-events: none; background-repeat: no-repeat; background-size: 100% auto; background-position: top center;
  -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
/* A finger: where the next step is tapped (or the swipe back starts). */
.tour-tap { position: absolute; z-index: 5; left: 0; top: 0; width: 12.5%; aspect-ratio: 1; margin: -6.25% 0 0 -6.25%; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgb(255 255 255 / .62), rgb(255 255 255 / .38) 70%, rgb(255 255 255 / .2));
  box-shadow: 0 0 0 1px rgb(21 21 20 / .12), 0 4px 14px rgb(21 21 20 / .18); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
:root[data-theme="dark"] .tour-tap { background: radial-gradient(closest-side, rgb(255 255 255 / .5), rgb(255 255 255 / .28) 70%, rgb(255 255 255 / .14)); box-shadow: 0 0 0 1px rgb(255 255 255 / .22), 0 4px 14px rgb(0 0 0 / .4); }

/* ---- SET on Apple Watch (the watch app, as the native render shows it) ---- */
.uw-app { padding: calc(12 * var(--u)) calc(17 * var(--u)) calc(14 * var(--u));
  background: radial-gradient(90% 55% at 15% 0%, rgb(36 87 63 / .95), rgb(24 50 38 / .55) 50%, transparent 80%), radial-gradient(60% 40% at 100% 30%, rgb(29 59 45 / .5), transparent 70%), #000; }
.uw-app p { margin: 0; }
.uwa-top { display: flex; align-items: center; justify-content: space-between; height: calc(38 * var(--u)); }
.uwa-more { display: grid; place-items: center; width: calc(34 * var(--u)); height: calc(34 * var(--u)); border-radius: 50%; background: rgb(255 255 255 / .14); }
.uwa-more .i { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.uwa-top b { font: 600 calc(19 * var(--u))/1 var(--font); }
.uwa-ex { margin-top: calc(12 * var(--u)) !important; font: 700 calc(17 * var(--u))/1.2 var(--font); letter-spacing: -.01em; }
.uwa-kick { display: flex; align-items: center; gap: calc(4 * var(--u)); color: #9FD3B5; font: 600 calc(13.5 * var(--u))/1.3 var(--font); }
.uwa-kick .signal { width: calc(11 * var(--u)); height: calc(11 * var(--u)); fill: currentColor; }
.uwa-val { display: flex; align-items: baseline; gap: calc(6 * var(--u)); margin-top: calc(6 * var(--u)) !important; }
.uwa-val strong { font: 700 calc(38 * var(--u))/1 var(--font); letter-spacing: -.03em; }
.uwa-val span { color: rgb(243 238 226 / .78); font: 600 calc(19 * var(--u))/1 var(--font); }
.uwa-set { display: flex; align-items: center; gap: calc(4 * var(--u)); margin-top: calc(6 * var(--u)) !important; color: rgb(243 238 226 / .78); font: 600 calc(14 * var(--u))/1.3 var(--font); }
.uwa-set span { margin-right: auto; }
.uwa-set i { width: calc(14 * var(--u)); height: calc(4 * var(--u)); border-radius: 99px; background: rgb(243 238 226 / .25); }
.uwa-set i.on { background: #7FBF9C; }
.uwa-dbl { display: flex; align-items: center; justify-content: center; gap: calc(6 * var(--u)); margin-top: calc(8 * var(--u)) !important; color: #9FD3B5; font: 600 calc(13 * var(--u))/1.2 var(--font); }
.uwa-dbl .hand { width: calc(15 * var(--u)); height: calc(15 * var(--u)); }
.uwa-log { position: relative; display: flex; align-items: center; justify-content: center; gap: calc(7 * var(--u)); height: calc(42 * var(--u)); margin-top: calc(8 * var(--u)); border-radius: 999px; background: #FFFFFF; color: #000; font: 700 calc(18 * var(--u))/1 var(--font); transition: transform .25s var(--ease-out), background-color .3s ease; }
.uwa-log .i { width: calc(17 * var(--u)); height: calc(17 * var(--u)); stroke-width: 3; }
.uwa-log::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgb(159 211 181 / .7); opacity: 0; }
[data-watch].is-tap .uwa-log { transform: scale(.94); background: #DCEFE3; }
[data-watch].is-tap .uwa-log::after { animation: uwa-ring .8s ease-out; }
[data-watch].is-tap .uwa-dbl .hand { animation: uwa-dbl .5s ease-in-out 2; }
/* After Log set, the watch turns to the rest, as SET's watch app does (RestView.swift): a mint line round the screen's edge that
   empties as the rest runs, the exercise, the time left, the set that follows with SET's signal, and +15 / Skip. */
.uw-app > :not(.uwa-rest):not(.watch-dim) { transition: opacity .28s ease, transform .5s var(--ease-pres); }
.uwa-rest { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; gap: calc(2 * var(--u)); padding: calc(18 * var(--u)) calc(16 * var(--u)) calc(18 * var(--u));
  text-align: center; opacity: 0; transform: scale(1.04); transition: opacity .3s ease, transform .55s var(--ease-pres); pointer-events: none; }
.uwa-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.uwa-ring path { fill: none; stroke-width: 6; }
.uwa-ring .t { stroke: rgb(255 255 255 / .14); }
.uwa-ring .f { stroke: #9FD3B5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--rest-off, 0); transition: stroke-dashoffset 1s linear; }
.uwa-rest-ex { margin-top: auto !important; font: 600 calc(15 * var(--u))/1.2 var(--font); }
.uwa-rest-time { font: 600 calc(44 * var(--u))/1.05 var(--font); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.uwa-rest-next { display: flex; align-items: baseline; justify-content: center; gap: calc(4 * var(--u)); color: rgb(255 255 255 / .62); font: 500 calc(12 * var(--u))/1.25 var(--font); }
.uwa-rest-next .signal { width: calc(9 * var(--u)); height: calc(9 * var(--u)); fill: #9FD3B5; }
.uwa-rest-btns { display: grid; grid-template-columns: 1fr 1fr; gap: calc(6 * var(--u)); width: 100%; margin-top: auto !important; }
.uwa-rest-next { margin-bottom: calc(6 * var(--u)) !important; }
.uwa-rest-btns span { display: grid; place-items: center; height: calc(34 * var(--u)); border-radius: 999px; background: rgb(255 255 255 / .16); font: 600 calc(15 * var(--u))/1 var(--font); }
[data-watch].is-rest .uw-app > :not(.uwa-rest):not(.watch-dim) { opacity: 0; transform: scale(.96); }
[data-watch].is-rest .uwa-rest { opacity: 1; transform: none; transition: opacity .35s ease .12s, transform .6s var(--ease-pres) .08s; }
:root[data-theme="dark"] .uwa-ring .f, :root[data-theme="dark"] .uwa-rest-next .signal { stroke: #F1F1F0; fill: #F1F1F0; }
:root[data-theme="dark"] .uwa-ring .f { fill: none; }
@keyframes uwa-ring { 0% { opacity: 1; box-shadow: 0 0 0 0 rgb(159 211 181 / .7); } 100% { opacity: 0; box-shadow: 0 0 0 calc(14 * var(--u)) rgb(159 211 181 / 0); } }
@keyframes uwa-dbl { 50% { transform: scale(.82); } }

/* ---- The Live Activity on the Lock Screen, as SETRestWidget draws it now ---- */
.live-now { display: grid; gap: calc(10 * var(--u)); padding: calc(14 * var(--u)) calc(16 * var(--u)) calc(14 * var(--u)); }
.live-now .live-top { display: flex; align-items: center; gap: calc(8 * var(--u)); }
.live-now .live-app .wordmark { width: calc(34 * var(--u)); color: #7FBF9C; }
.live-ex { display: grid; gap: calc(2 * var(--u)); margin-right: auto; text-align: left; }
.live-ex strong { color: var(--ivory); font: 600 calc(15 * var(--u))/1.15 var(--font); }
.live-ex small { display: flex; align-items: center; gap: calc(3 * var(--u)); color: var(--ivory-2); font: 500 calc(11.5 * var(--u))/1.2 var(--font); }
.live-ex small i { width: calc(8 * var(--u)); height: calc(3 * var(--u)); border-radius: 99px; background: rgb(243 238 226 / .3); }
.live-ex small i:first-child { background: #7FBF9C; }
.live-ex small i:nth-child(3) { margin-right: calc(4 * var(--u)); }
.live-next { display: flex; align-items: baseline; gap: calc(3 * var(--u)); color: var(--ivory); }
.live-next .signal { width: calc(10 * var(--u)); height: calc(10 * var(--u)); fill: #7FBF9C; align-self: center; }
.live-next b { font: 700 calc(21 * var(--u))/1 var(--font); letter-spacing: -.02em; }
.live-next small { color: var(--ivory-2); font: 500 calc(11 * var(--u))/1 var(--font); }
.live-now .live-mid { display: flex; align-items: center; justify-content: space-between; margin: 0; }
.live-now .live-time { color: var(--ivory); font: 600 calc(40 * var(--u))/1 var(--font); letter-spacing: -.02em; }
.live-btns { display: flex; gap: calc(6 * var(--u)); }
.live-btns b { display: grid; place-items: center; height: calc(32 * var(--u)); padding: 0 calc(12 * var(--u)); border-radius: 999px; background: rgb(243 238 226 / .16); color: var(--ivory); font: 600 calc(13 * var(--u))/1 var(--font); }
.live-btns b.skip { background: #FFFFFF; color: #151514; }
.live-now .live-bar { margin: 0; }
/* The Live Activity in the tile: one line per row, as on the phone. */
.live-now { gap: calc(8 * var(--u)); padding: calc(14 * var(--u)) calc(14 * var(--u)) calc(14 * var(--u)); }
.live-now .live-top { gap: calc(7 * var(--u)); }
.live-now .live-app .wordmark { width: calc(26 * var(--u)); }
.live-ex strong { font-size: calc(13.5 * var(--u)); white-space: nowrap; }
.live-ex small { font-size: calc(10 * var(--u)); white-space: nowrap; }
.live-ex small i { width: calc(6 * var(--u)); }
.live-next { white-space: nowrap; }
.live-next b { font-size: calc(18 * var(--u)); }
.live-next small { font-size: calc(10 * var(--u)); }
.live-now .live-time { font-size: calc(36 * var(--u)); }
.live-btns b { height: calc(28 * var(--u)); padding: 0 calc(11 * var(--u)); font-size: calc(12 * var(--u)); }

/* The bottom of the screen: content fades under the rest bar and the tab bar,
   the way iOS softens what scrolls under floating controls. */
.wk:not(.wk-solo)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: calc(250 * var(--u)); pointer-events: none;
  background: linear-gradient(to top, var(--wk-canvas) 0%, var(--wk-canvas) 30%, color-mix(in srgb, var(--wk-canvas) 70%, transparent) 62%, transparent); }
.wk { --wk-canvas: #EFEDE7; }
:root[data-theme="dark"] .wk { --wk-canvas: #0D0D0C; }
.wk-rest, .wk .nava { z-index: 4; }

/* "Show plan" off, as the app allows (workout menu): no tile row above the advice; the card goes from its head straight to
   SET recommends. The tiles stay in the markup, hidden, so the scripts that fill them keep working. */
.wk-noplan :is(.wk-planl, .wk-plan) { display: none; }
.wk-noplan .wk-exh + .wk-planl + .wk-plan + .wk-rec, .wk-noplan .wk-rec { margin-top: calc(6 * var(--u)); }
