/* Workouts - the gym TV's look on the phone (1.3, Nik 2026-10-30: "even the color scheme of the entire workout app i like
   how it looks on the raspberry pi tv i like the whole thing to model that kind of color scheme and style"): deep navy,
   Klaus's teal, green for what is done, gold for personal bests. One dark look, like the TV, whatever the phone is set to.
   Sizes are the phone's (Nik's folded Duo is 466 px wide). */
:root {
  --bg: #0d141c; --bg-2: #111a24; --card: #162130; --card-2: #1d2a3a; --line: #2b3a4b;
  --text: #eef4f9; --muted: #9fb1c3; --faint: #71849a;
  --accent: #80ddd0; --accent-soft: rgba(128, 221, 208, .14); --accent-ink: #06231f;
  --gold: #f5c451; --gold-soft: rgba(245, 196, 81, .16); --good: #5fd38d; --warn: #f0a040; --bad: #f06060; --live: #ff5a5a;
  --tabs: 0px; /* 1.5.0: no bottom tabs */ --radius: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
/* hidden means hidden, whatever a class sets (the talk dock and its bubble set display) */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); min-height: 100dvh;
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 30px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: 20px; line-height: 1.2; font-weight: 750; letter-spacing: -.01em; text-wrap: balance; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon.filled { fill: currentColor; stroke: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

#app {
  max-width: 980px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) max(16px, env(safe-area-inset-right, 0px)) calc(var(--tabs) + env(safe-area-inset-bottom, 0px) + 28px) max(16px, env(safe-area-inset-left, 0px));
}
.boot { min-height: 70dvh; display: grid; place-items: center; color: var(--muted); }

/* ---- top bar ---- */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px 0 12px; margin-top: -8px;
  background: linear-gradient(var(--bg) calc(100% - 8px), transparent); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -.01em; margin-right: auto; }
.brand svg { width: 26px; height: 26px; }
.top .back { margin-right: auto; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.who { font-weight: 700; color: var(--muted); }
.switch { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.switch button { border: 0; background: none; padding: 6px 12px; border-radius: 9px; font-weight: 700; color: var(--muted); cursor: pointer; }
.switch button.on { background: var(--accent); color: var(--accent-ink); }
.offline { width: 100%; font-size: 13px; color: var(--warn); }
.top { flex-wrap: wrap; }

/* ---- tab bar ---- */
.tabs { position: fixed; z-index: 6; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 4px;
  padding: 6px max(12px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 6px) max(12px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--bg-2) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tabs a { flex: 1; max-width: 160px; display: grid; justify-items: center; gap: 2px; padding: 6px 4px; border-radius: 12px; color: var(--faint); font-size: 12px; font-weight: 650; }
.tabs a.on { color: var(--accent); }
.tabs a.on .icon { stroke-width: 2.4; }

/* ---- layout ---- */
.view { display: grid; gap: 14px; }
.grid { display: grid; gap: 14px; }
@media (min-width: 860px) {
  .grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .grid > .hello, .grid > .wide { grid-column: 1 / -1; }
}
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; min-width: 0; }
a.card { transition: transform .15s ease, border-color .15s ease; }
a.card:active { transform: scale(.985); }
.eyebrow { font-size: 12px; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.eyebrow.accent, .accent-text { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.grow { flex: 1; min-width: 0; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hello { padding: 6px 2px 2px; display: grid; gap: 4px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--card-2); color: var(--muted); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }
.pill.live { background: rgba(255, 77, 77, .14); color: var(--live); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } a.card { transition: none; } }

/* ---- stats ---- */
.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { display: grid; gap: 4px; align-content: start; min-width: 0; }
.tile .num { font-size: 32px; line-height: 1; font-weight: 850; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tile .unit { font-size: 13px; color: var(--muted); font-weight: 600; }
.week { display: flex; gap: 4px; margin-top: 4px; }
.week i { width: 10px; height: 10px; border-radius: 3px; background: var(--card-2); border: 1px solid var(--line); }
.week i.on { background: var(--accent); border-color: var(--accent); }
.week i.today { outline: 2px solid var(--muted); outline-offset: 1px; }
.line { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.line b { color: var(--gold); }

/* ---- next up / plan ---- */
.next { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: linear-gradient(160deg, var(--accent-soft), transparent 55%), var(--card); }
.next .day { font-size: 30px; font-weight: 850; letter-spacing: -.02em; }
.plan { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: ex; }
.plan li { display: flex; gap: 12px; align-items: center; min-width: 0; }
.plan-name { font-weight: 700; }
.thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--card-2); border: 1px solid var(--line); flex: none; }
.thumb.none { display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--faint); }
.thumbs { display: flex; gap: 6px; flex: none; }
.thumbs button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card-2); font-weight: 750; cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .6; cursor: default; }
.hint { font-size: 13px; color: var(--muted); }
.hint .icon { width: 15px; height: 15px; vertical-align: -3px; color: var(--accent); }

/* ---- choose the workout (the main page) ---- */
.choose { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: linear-gradient(160deg, var(--accent-soft), transparent 50%), var(--card); gap: 12px; }
.choose .day { font-size: 32px; font-weight: 850; letter-spacing: -.02em; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; margin: 0 -4px; padding-inline: 4px; }
.days::-webkit-scrollbar { display: none; }
.day-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); font-weight: 750; cursor: pointer; }
.day-chip small { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.day-chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.day-chip.on small { color: var(--bg); opacity: .75; }
.who-row { display: grid; gap: 8px; padding-top: 4px; border-top: 1px solid var(--line); }
.who-row .eyebrow { margin-top: 10px; }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle { min-height: 44px; padding: 8px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); font-weight: 750; color: var(--muted); cursor: pointer; }
.toggle.on { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.btn.start { min-height: 60px; font-size: 19px; font-weight: 850; border-radius: 16px; }
.btn.start .icon { width: 22px; height: 22px; }
.btn.end { justify-self: start; }
.live-link { display: grid; gap: 6px; }

/* ---- a start or an end on its way (the PC's own progress lines) ---- */
.job { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.job.failed { border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); }
.job-status { font-weight: 750; font-size: 17px; }
.job-lines { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--muted); font-size: 14px; }
.job-error { color: var(--bad); font-weight: 700; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

/* ---- live ---- */
.live { border-color: color-mix(in srgb, var(--live) 45%, var(--line)); }
.now { display: grid; gap: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.now-name { font-weight: 750; }

/* ---- sets ---- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 11px; background: var(--card-2); border: 1px solid transparent;
  font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px; }
.chip small { color: var(--faint); font-weight: 800; font-size: 11px; }
.chip em { font-style: normal; color: var(--muted); font-weight: 600; font-size: 13px; }
.chip.best { background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold) 55%, transparent); }
.chip.best .icon { width: 15px; height: 15px; color: var(--gold); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.struggled { background: var(--warn); }
.dot.failed { background: var(--bad); }

/* ---- lists ---- */
.list { padding: 4px 16px; gap: 0; }
.hrow, .prow, .erow, .kv { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.list > :last-child { border-bottom: 0; }
.erow { display: grid; gap: 8px; }
.date { width: 44px; flex: none; display: grid; justify-items: center; line-height: 1.05; }
.date b { font-size: 22px; font-weight: 850; font-variant-numeric: tabular-nums; }
.date span { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.hname { font-weight: 750; display: flex; align-items: center; gap: 8px; }
.hrow > .icon, .prow > .icon, .last .icon { color: var(--faint); }
.month { display: grid; gap: 8px; }
.month > .eyebrow { padding: 6px 2px 0; }
.kv { justify-content: space-between; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-weight: 700; text-align: right; }

/* ---- workout ---- */
.whead { display: grid; gap: 6px; padding: 4px 2px; }
.ex-list { gap: 0; padding: 4px 16px; }
.ex { display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ex:last-child { border-bottom: 0; }
.ex-name { font-weight: 750; font-size: 17px; }
.ex.skipped { opacity: .55; }

/* ---- progress ---- */
.spark { width: 84px; height: 30px; flex: none; }
.spark polyline, .chart polyline { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.chart { width: 100%; height: auto; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart text { fill: var(--faint); font-size: 10px; font-weight: 700; }
.chart circle { fill: var(--card); stroke: var(--accent); stroke-width: 2; }
.chart circle.best { fill: var(--gold); stroke: var(--gold); }
.big { font-size: 26px; font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ---- program ---- */
.day-card.is-next { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
details summary { cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 700; }
details p { margin-top: 6px; color: var(--muted); }

/* ---- link a phone ---- */
.link-page { max-width: 440px; margin: 0 auto; min-height: 88dvh; display: grid; align-content: center; gap: 16px; text-align: center; padding-block: 24px; }
.link-page .already { text-align: left; border-color: var(--accent); }
.link-page .already p { margin: 0; }
.logo-big svg { width: 76px; height: 76px; margin: 0 auto; }
.link { text-align: left; gap: 12px; }
.link label { font-weight: 700; }
.link input { width: 100%; font-size: 30px; font-weight: 800; letter-spacing: .3em; text-align: center; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); font-variant-numeric: tabular-nums; }
.msg { min-height: 1.4em; color: var(--muted); font-size: 14px; }

/* ---- talking to Klaus: hold to talk or type; his answers pop up in front of everything (the TV's bubble) ---- */
.slot { display: contents; }
body.talking #app { padding-bottom: calc(var(--tabs) + env(safe-area-inset-bottom, 0px) + 214px); }
.talk-dock { position: fixed; z-index: 7; left: 0; right: 0; bottom: calc(var(--tabs) + env(safe-area-inset-bottom, 0px) + 12px);
  display: grid; justify-items: center; gap: 10px; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); pointer-events: none; }
.talk-dock > * { pointer-events: auto; }
.talk-row { display: flex; align-items: center; gap: 12px; }
.talk-status { padding: 6px 14px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 650; }
.type-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--accent); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 28px rgba(0, 0, 0, .3); }
.talk-dock.typing .talk-row { display: none; }
.compose { width: min(560px, 100%); display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--accent); box-shadow: 0 10px 28px rgba(0, 0, 0, .4); }
.say-input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--bg-2); font-size: 17px; }
.say-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.compose .send { height: 44px; padding: 0 18px; }
.compose .close { width: 40px; height: 40px; font-size: 24px; line-height: 1; }
.buzz { position: fixed; left: -100px; top: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
/* What Klaus says: a speech bubble in front of everything (the gym TV's), a thin bar running down the time it stays. */
.say { position: fixed; z-index: 40; left: 50%; top: 42%; width: min(560px, calc(100vw - 32px)); transform: translate(-50%, -50%); padding: 18px 20px 20px;
  border-radius: 24px; background: #fffbea; color: #10202b; box-shadow: 0 0 0 4px var(--gold), 0 0 50px rgba(245, 196, 81, .35), 0 24px 70px rgba(0, 0, 0, .65);
  cursor: pointer; transition: opacity .55s ease; overflow: hidden; }
.say::after { content: ''; position: absolute; left: 50%; bottom: -22px; margin-left: -18px; border: 18px solid transparent; border-top: 22px solid #fffbea; border-bottom: 0; }
/* 1.4.7 (Nik 2026-11-05: "more animated so it seems like it's on top of the screen and sort of maybe breathing at us"; 11-10:
 * "the text should stay the same. It should just be the outer layer of it getting bigger and smaller"): like the TV - the glow
 * around it breathes, the words stay still, and the screen behind dims while it shows. */
.say { --ring: var(--gold); --halo: rgba(245, 196, 81, .35); --halo-2: rgba(245, 196, 81, .7); }
.say.error { --ring: var(--bad); --halo: rgba(240, 96, 96, .3); --halo-2: rgba(240, 96, 96, .6); }
.say.friend { --ring: var(--accent); --halo: rgba(128, 221, 208, .35); --halo-2: rgba(128, 221, 208, .7); }
.say.pop { animation: say-in .55s cubic-bezier(.2, 1.5, .4, 1) both, say-glow 2.8s ease-in-out .55s infinite; }
@keyframes say-glow { 0%, 100% { box-shadow: 0 0 0 4px var(--ring), 0 0 50px var(--halo), 0 24px 70px rgba(0, 0, 0, .65); } 50% { box-shadow: 0 0 0 9px var(--ring), 0 0 100px var(--halo-2), 0 24px 70px rgba(0, 0, 0, .65); } }
@keyframes say-dim { from { opacity: 0; } to { opacity: 1; } }
.say.fading { opacity: 0; }
.say-head { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8a5a00; }
.say-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 5px rgba(240, 160, 64, .25); }
.say-text { margin-top: 8px; font-size: 21px; line-height: 1.3; font-weight: 700; }
.say-timer { position: absolute; left: 22px; right: 22px; bottom: 10px; height: 3px; border-radius: 2px; background: var(--warn); transform-origin: left; animation: say-timer linear forwards; }
.say.error { background: #fff1f1; box-shadow: 0 0 0 4px var(--bad), 0 24px 70px rgba(0, 0, 0, .65); }
.say.error::after { border-top-color: #fff1f1; }
.say.error .say-head { color: #a32020; }
.say.error .say-timer { background: var(--bad); }
@keyframes say-in { from { opacity: 0; transform: translate(-50%, -38%) scale(.7); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes say-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.talk { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 220px; height: 64px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--accent-ink); font-weight: 850; font-size: 17px; cursor: pointer; box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.talk .icon { width: 26px; height: 26px; stroke-width: 2.4; }
.talk.on { background: var(--live); color: #fff; transform: scale(1.04); }
.talk.on .icon { animation: pulse 1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .talk.on .icon { animation: none; } }

/* ---- picture overlay ---- */
.overlay { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .86); display: grid; place-items: center; align-content: center; gap: 12px; padding: 24px; cursor: zoom-out; }
.overlay img { max-height: 78dvh; border-radius: 16px; }
.overlay p { color: #fff; font-weight: 700; text-align: center; }

/* ---- friends (Nik 2026-10-30): the week together, a friend's news, asks and the sharing switch ---- */
.tabs a { position: relative; }
.tabs .badge { position: absolute; top: 5px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg-2); }
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.board li { display: grid; grid-template-columns: minmax(0, 1fr) auto 3.6em 2.6em; align-items: center; gap: 10px; }
.board .who-name { font-weight: 750; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board li.me .who-name { color: var(--accent); }
.board .week { margin-top: 0; }
.board .count { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; font-weight: 650; text-align: right; }
.board .bests, .gold { color: var(--gold); font-weight: 750; font-size: 14px; }
.board .bests { text-align: right; }
.nudge { font-weight: 650; }
.friends-card .icon { color: var(--faint); }
.news { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.news p { font-size: 17px; }
.ask { border-color: var(--accent); }
.row-gap { display: flex; flex-wrap: wrap; gap: 8px; }
.row-gap .btn { flex: 1; min-width: 120px; }
.btn.slim { min-height: 40px; padding: 8px 14px; font-size: 15px; border-radius: 12px; }
.news .btn.slim { justify-self: start; }
.friend { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 850; flex: none; }
.list-head { padding-top: 12px; }
.remove { padding: 12px 0; }
.remove summary { color: var(--muted); font-size: 14px; cursor: pointer; }
.remove .btn { margin-top: 8px; margin-right: 8px; }
.switch-btn { width: 52px; height: 32px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-2); position: relative; flex: none; cursor: pointer; padding: 0; }
.switch-btn i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--muted); transition: transform .15s ease; }
.switch-btn.on { background: var(--accent); border-color: var(--accent); }
.switch-btn.on i { transform: translateX(20px); background: var(--accent-ink); }
.note { color: var(--warn); font-weight: 650; }
@media (prefers-reduced-motion: reduce) { .switch-btn i { transition: none; } }
.pref { padding: 4px 0; }

/* ---- the workout going on, in full (Nik 2026-10-30): progress, now with its pictures, last time and best, up next, all ---- */
.prog { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.prog progress { width: 100%; height: 10px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; background: var(--card-2); overflow: hidden; }
.prog progress::-webkit-progress-bar { background: var(--card-2); border-radius: 999px; }
.prog progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
.prog progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }
.big-name { font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.shots button { padding: 0; border: 0; background: none; cursor: zoom-in; display: grid; gap: 4px; min-width: 0; text-align: left; }
.shots img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); }
.shots span { font-size: 12px; color: var(--muted); font-weight: 650; }
.past { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--card-2); }
.past p { display: grid; gap: 2px; }
.past-sets { font-weight: 650; }
.next-up { display: flex; gap: 12px; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); min-width: 0; }
.all summary { cursor: pointer; color: var(--muted); font-weight: 650; padding: 6px 0; }
.live-plan li { align-items: flex-start; }
.live-plan .mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); color: var(--muted); font-weight: 800; font-size: 13px; flex: none; }
.live-plan li.done .mark { background: var(--good); color: var(--bg); }
.live-plan li.cur .mark { background: var(--accent); color: var(--accent-ink); }
.live-plan li.skipped { opacity: .6; }

/* ---- 1.3: the workout going on - the gym TV's column on the phone (Nik and Davis 2026-10-30) ---- */
.lv { display: grid; gap: 12px; min-width: 0; }
.lv-top { display: grid; gap: 8px; }
/* 1.54.2 + Friend mid-workout, beside the people (the same height as the names' line) */
.lv-people { display: inline-flex; align-items: center; gap: 8px; }
.lv-addfriend { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-2); color: var(--accent); font-weight: 800; font-size: 14px; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.lv-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.lv-title h2 { font-size: 26px; }
.lv-clock { font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--muted); }
.lv-tally { margin-left: auto; color: var(--gold); font-weight: 800; }
.lv-list { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
/* Every row is a box with a thin rim; its colour, corners and glow change with what the row is, so the card that turns into
   a bar (or the next exercise that opens into the card) changes shape in one movement. */
.lv-row { position: relative; overflow: hidden; flex: none; padding: 1px; border-radius: 12px; background: #263445;
  transition: background-color .6s ease, border-radius .6s ease, box-shadow .6s ease, padding .6s ease; }
.lv-swap { animation: lv-swap .45s ease-out .22s both; }
.lv-row.done { background: #2d5a44; }
.lv-row.skipped { background: #222e3b; }
.lv-bar { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 11px; background: #142a20; font-size: 15px; white-space: nowrap; }
.lv-row.skipped .lv-bar { min-height: 30px; background: #121a23; color: var(--faint); font-size: 13px; }
.lv-check { color: var(--good); font-weight: 800; flex: none; }
.lv-row.skipped .lv-check { color: var(--faint); }
.lv-num { flex: none; font-size: 12px; font-weight: 750; letter-spacing: .03em; color: var(--faint); white-space: nowrap; }
.lv-bar .lv-num { color: #6fa88a; }
.lv-bar-name { font-weight: 650; flex: 1 1 auto; min-width: 0; white-space: normal; line-height: 1.15; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } /* 1.54.4 (Nik 12-04: "just checkmark, green highlight keep everything in one line"): one slim row - a long name may take two short lines inside it, never cut */
.lv-bar-sets { margin-left: auto; color: var(--muted); flex: none; font-variant-numeric: tabular-nums; }
.lv-row.next { background: #2f4a57; }
/* 1.4.6: bars and rows open with a tap; an opened card has a plain rim (the green one stays with the card being done). */
.lv-tap { width: 100%; border: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lv-tap:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.lv-more { flex: none; margin-left: 6px; color: var(--faint); font-size: 13px; }
.lv-coming .lv-more { margin-left: auto; }
.lv-row.open { padding: 1px; border-radius: 16px; background: #3b4c60; }
.lv-card.peek .lv-card-in { border-radius: 15px; background: #131d2a; }
.lv-card.peek .lv-head { background: none; padding: 0; }
.lv-card.peek .lv-head .lv-more { margin-left: auto; font-size: 18px; color: var(--muted); }
.lv-shut { justify-self: center; min-height: 40px; padding: 8px 18px; }
.lv-back { position: fixed; z-index: 8; left: 50%; top: auto; bottom: calc(var(--tabs) + env(safe-area-inset-bottom, 0px) + 92px); /* 1.49.0: above Hold to talk, never on the header */ transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 8px 18px; border-radius: 999px; border: 0; background: #2a6e67; color: #fff; font: inherit; font-weight: 800; cursor: pointer;
  box-shadow: 0 0 0 2px rgba(128, 221, 208, .5), 0 10px 30px rgba(0, 0, 0, .55); }
.lv-back[hidden] { display: none; }
.lv-back-arrow { font-size: 18px; line-height: 1; }
.lv-coming { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 14px; border-radius: 11px; background: #101923; color: var(--muted); font-size: 15px; white-space: nowrap; overflow: hidden; }
/* 1.54.4 (Nik 12-04: "Up next minimized card ... makes that tab/card larger than the others"): Up next is the same height as every row
   to come - its colour and UP NEXT (a small line over the name) mark it; every name on one line. */
.lv-row.next .lv-coming { background: #122029; }
.lv-next-col { display: flex; flex-direction: column; justify-content: center; flex: none; line-height: 1.2; }
.lv-upnext { flex: none; font-size: 10px; letter-spacing: .14em; color: var(--accent); font-weight: 800; }
.lv-coming-name { min-width: 0; white-space: normal; line-height: 1.15; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } /* 1.54.4: two short lines inside the row's height, never "…" (1.49.0, Nik + Davis) */
.lv-row.next .lv-coming-name { color: var(--text); font-weight: 650; }
.lv-coming-name.breathe { transform-origin: 0 60%; animation: lv-breathe 4.8s ease-in-out infinite; }
/* The card being done: a brighter rim with one light moving around it (Nik: "it should still be the center of attention
   maybe moving light around the card area"). */
.lv-row.active { padding: 2px; border-radius: 18px; background: #2a6e67; box-shadow: 0 0 30px rgba(128, 221, 208, .16), 0 0 0 1px rgba(128, 221, 208, .12); }
.lv-row.active.completing { background: #2f7a52; box-shadow: 0 0 30px rgba(95, 211, 141, .28); }
.lv-row.alldone { padding: 2px; border-radius: 18px; background: var(--good); }
/* 1.49.0 (Nik 12-03): the move on now shrunk - one row, its own colour (teal, a soft glow), NOW on it, so "where I'm at" is easy to find. */
.lv-row.active.shut { border-radius: 14px; }
.lv-now { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: 12px; background: #0f3a36; color: var(--text); font-size: 17px; white-space: nowrap; overflow: hidden; }
.lv-now-tag { flex: none; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; letter-spacing: .12em; font-weight: 800; }
.lv-now .lv-num { color: #9fe6dc; }
.lv-now-name { font-weight: 750; flex: 1 1 auto; min-width: 6em; white-space: normal; line-height: 1.2; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } /* never "…" on one line */
@media (max-width: 480px) { .lv-now { flex-wrap: wrap; gap: 2px 8px; padding-top: 7px; padding-bottom: 7px; } }
.lv-now-set { margin-left: auto; flex: none; color: var(--accent); font-weight: 750; font-size: 14px; font-variant-numeric: tabular-nums; }
.lv-now .lv-more { color: #9fe6dc; }
.lv-head-now { cursor: pointer; }
.lv-head-now > .lv-more { margin-left: auto; align-self: center; font-size: 18px; color: var(--muted); }
.lv-card { position: relative; }
.lv-orbit { position: absolute; left: 50%; top: 50%; width: 160%; aspect-ratio: 1; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0deg 276deg, rgba(128, 221, 208, .45) 312deg, #f0fffc 343deg, rgba(128, 221, 208, .75) 352deg, transparent 360deg);
  transform: translate(-50%, -50%); animation: lv-orbit 7s linear infinite; }
.lv-card-in { position: relative; z-index: 1; border-radius: 16px; background: var(--card); padding: 14px; display: grid; gap: 10px; }
.lv-alldone { text-align: center; padding: 22px 14px; }
.lv-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lv-num.pill { padding: 3px 10px; border: 1px solid #3c6e69; border-radius: 999px; color: var(--accent); font-size: 13px; background: #14262b; text-transform: none; letter-spacing: .02em; }
.lv-name { font-size: 22px; font-weight: 750; line-height: 1.15; min-width: 0; text-wrap: balance; }
/* 1.4.5: a swap - "instead of" under its name, a name card until its picture shows, "new picture" on one made on the PC */
.lv-title-col { display: flex; flex-direction: column; min-width: 0; }
.lv-instead { margin: 2px 0 0; font-size: 13px; font-style: italic; color: var(--muted); }
.lv-shotwrap { position: relative; max-width: min(100%, 300px); margin: 0 auto; } /* 1.49.0: a done move's picture never pushes its sets away */
.lv-newpic { position: absolute; right: 8px; top: 8px; background: #f5c451; color: #14202b; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 3px 8px; pointer-events: none; }
.lv-namecard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; background: #fff; color: #14202b; border-radius: 14px; padding: 18px 14px; margin: 8px 0; }
.lv-namecard strong { font-size: 22px; line-height: 1.15; } .lv-namecard span { font-size: 15px; color: #2c4a5a; } .lv-namecard em { font-size: 13px; color: #6a7884; }
.lv-making { font-size: 13px; font-weight: 650; color: #2c7d75; animation: lv-making 2.4s ease-in-out infinite; }
@keyframes lv-making { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .lv-making { animation: none; } }
.lv-setline { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.lv-setpos { font-size: 14px; font-weight: 800; letter-spacing: .06em; color: var(--accent); white-space: nowrap; }
.lv-target { font-size: 20px; font-weight: 750; text-align: right; }
.lv-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.lv-shot { padding: 0; border: 0; background: none; cursor: zoom-in; display: grid; gap: 4px; min-width: 0; text-align: left; color: var(--muted); font-size: 13px; line-height: 1.3; }
.lv-frame { display: block; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.lv-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.lv-frame img.fitted { opacity: 1; }
.lv-cap b { color: var(--text); font-weight: 750; }
.lv-sets { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #111b26; font-variant-numeric: tabular-nums; }
.lv-sets th, .lv-sets td { padding: 0 10px; height: 44px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 18px; }
.lv-sets th { height: 30px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: #1d2a3a; }
.lv-sets .n { width: 44px; text-align: center; color: var(--muted); }
.lv-sets .last { color: var(--faint); font-style: italic; }
.lv-sets .today { font-weight: 750; color: var(--accent); text-overflow: clip; }
.lv-sets .today.empty { color: var(--faint); font-weight: 400; }
.lv-sets td.today { white-space: normal; } /* 1.49.0: the numbers never cut; the marks wrap first */
.lv-today { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 2px 6px; min-height: 44px; }
.lv-today-text { flex: none; white-space: nowrap; }
.lv-today .dot { margin-left: 0; }
/* (Nik 2026-10-30: "you lost the effort level markings after set"): bigger effort dots, ringed so they stand out on the
   current row; the folded bars keep one small dot per set. */
/* 1.54.4: a saved set's dot is a button (tap: normal -> hard -> failed); the row opens the fix box */
.lv-eff { display: inline-grid; place-items: center; min-width: 34px; min-height: 34px; margin: -10px -6px -10px 0; padding: 0; border: 0; background: none; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.lv-eff .dot { margin-left: 0; }
.lv-sets tr.fix-row { cursor: pointer; }
.lv-sets .dot { display: inline-block; width: 13px; height: 13px; border-radius: 50%; margin-left: 6px; vertical-align: 1px; background: var(--good); box-shadow: 0 0 0 2px rgba(8, 13, 18, .55); }
.lv-sets .dot.struggled, .lv-trail .dot.struggled { background: var(--warn); }
.lv-sets .dot.failed, .lv-trail .dot.failed { background: var(--bad); }
.lv-trail { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; flex: none; }
.lv-trail + .lv-bar-sets { margin-left: 10px; }
.lv-trail .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.lv-star { display: inline-block; margin-left: 4px; color: var(--gold); }
/* 1.4.7: rep bests in blue (the TV's colour), weight bests stay gold; the tally shows both. */
.lv-star.reps, .tally .reps, .chip.best.reps .icon { color: #5fb4ff; }
.tally { display: inline-flex; gap: 8px; } .tally .gold { color: var(--gold); }
.chip.best.reps { border-color: rgba(95, 180, 255, .55); }
.milestone.reps { box-shadow: 0 0 0 1px rgba(95, 180, 255, .65), 0 18px 60px rgba(0, 0, 0, .6), 0 0 46px rgba(95, 180, 255, .22); }
.milestone.reps .ms-body small { color: #5fb4ff; } .milestone.reps .ms-medal { filter: drop-shadow(0 0 12px rgba(95, 180, 255, .4)) hue-rotate(170deg); }
/* 1.4.7: the day's review (the TV's, on the phone) */
.review { gap: 12px; } .lv-row.review { padding: 0; background: none; overflow: visible; } .review.in-live { margin-top: 6px; background: var(--bg-2); }
.rv-recs { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--gold-soft); border: 1px solid rgba(245, 196, 81, .35); }
.rv-rechead { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.rv-rec { display: flex; align-items: baseline; gap: 10px; min-width: 0; } .rv-rec .rv-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-rec strong { font-variant-numeric: tabular-nums; } .rv-rec small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.rv-rec.reps small, .rv-rec.reps strong { color: #5fb4ff; }
.rv-asks { display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); }
.rv-askhead { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.rv-ask { display: grid; gap: 2px; min-width: 0; } .rv-ask small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rv-ask p { font-size: 15px; overflow-wrap: anywhere; }
.rv-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.rv-box { padding: 10px 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); min-width: 0; }
.rv-title { font-size: 13px; font-weight: 800; display: flex; gap: 6px; } .rv-names { font-size: 14px; color: var(--muted); margin-top: 4px; }
.rv-box.up .rv-title { color: var(--good); } .rv-box.new .rv-title { color: var(--accent); } .rv-box.down .rv-title { color: var(--warn); } .rv-box.skip .rv-title, .rv-box.flat .rv-title { color: var(--muted); }
.goal { font-size: 13px; color: var(--muted); margin-top: 6px; } .goal.hit { color: var(--good); font-weight: 700; }
.lv-sets tr.cur > * { background: #1f4140; }
.lv-sets tr.cur > td { animation: lv-ripple 3.6s ease-in-out infinite; }
.lv-sets tr.cur .n { color: var(--text); font-weight: 800; box-shadow: inset 4px 0 0 var(--accent); }
.lv-sets tr.landed > td { animation: lv-landed 1.6s ease-out; }
/* 1.49.0: a set still to do opens the set box with a tap; the box shows it was pulled up; an open card's Return to exercise */
.lv-sets tr.tap-row { cursor: pointer; touch-action: manipulation; }
.ql-wrap.pulled .ql { animation: ql-pulled 1.2s ease-out; }
@keyframes ql-pulled { 0% { box-shadow: 0 0 0 0 rgba(128, 221, 208, .9); } 100% { box-shadow: 0 0 0 14px rgba(128, 221, 208, 0); } }
.lv-peek-acts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.lv-return { min-height: 40px; padding: 8px 18px; background: #2a6e67; color: #fff; border: 0; }
.lv-sets tr.landed .lv-today-text { animation: lv-slide-in .5s ease-out; }
.lv-sets tr.pr-new > td { background-image: linear-gradient(100deg, transparent 35%, rgba(255, 226, 150, .55) 50%, transparent 65%); background-size: 300% 100%; background-repeat: no-repeat; animation: lv-sweep 1.8s ease-out .15s both; }
.lv-sets tr.pr-new .lv-star { animation: lv-star 1s cubic-bezier(.2, 1.6, .4, 1) .55s both; }
.lv-record { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border: 2px solid var(--gold); border-radius: 13px;
  background: linear-gradient(90deg, rgba(245, 196, 81, .16), rgba(245, 196, 81, .04)); }
.lv-record small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.lv-record em { display: block; font-style: normal; font-size: 13px; color: var(--muted); }
.lv-record strong { font-size: 24px; font-weight: 800; color: var(--gold); white-space: nowrap; }
.lv-setline + .lv-record, .lv-shotwrap + .lv-record { margin: 8px 0; } /* 1.49.0: above the sets */
.lv-record.today { box-shadow: 0 0 22px rgba(245, 196, 81, .35); }
.lv-record.shine::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 236, 170, .35), transparent);
  transform: translateX(-120%) skewX(-18deg); animation: lv-shine 1.5s ease-in-out .9s both; }
.lv-notes summary { color: var(--muted); font-size: 14px; cursor: pointer; }
/* The finished exercise: a check draws itself in a ring over the card, then the card turns into its bar. */
.lv-complete { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 6px; border-radius: 16px; background: rgba(14, 38, 28, .94); animation: lv-fade .3s ease-out both; }
.lv-complete svg { width: 84px; height: 84px; fill: none; stroke: var(--good); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 14px rgba(95, 211, 141, .45)); }
.lv-complete circle { stroke-dasharray: 176; stroke-dashoffset: 176; transform: rotate(-90deg); transform-origin: 32px 32px; animation: lv-draw .55s ease-out .1s forwards; }
.lv-complete path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: lv-draw .35s ease-out .55s forwards; }
.lv-complete b { font-size: 22px; font-weight: 750; animation: lv-rise .35s ease-out .6s both; }
.lv-complete span { font-size: 15px; color: var(--muted); animation: lv-rise .35s ease-out .7s both; }
.lv-foot { display: grid; gap: 12px; }
/* A new best: the medal card at the top of the screen (Nik: "make it look like a milestone ... without being cheesy"). */
.milestone { position: fixed; z-index: 30; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 12px); width: min(520px, calc(100vw - 24px)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(120deg, rgba(34, 28, 12, .97), rgba(14, 19, 26, .97) 62%); box-shadow: 0 0 0 1px rgba(245, 196, 81, .6), 0 18px 60px rgba(0, 0, 0, .6), 0 0 46px rgba(245, 196, 81, .2);
  animation: ms-in .7s cubic-bezier(.2, .9, .25, 1) both; }
.milestone.out { animation: ms-out .7s ease-in forwards; }
.ms-medal { flex: none; width: 56px; height: 56px; filter: drop-shadow(0 0 10px rgba(245, 196, 81, .35)); animation: ms-medal .9s cubic-bezier(.2, 1.4, .4, 1) .15s both; }
.ms-medal svg { display: block; width: 100%; height: 100%; }
.ms-body { min-width: 0; display: grid; gap: 2px; }
.ms-body small { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; color: var(--gold); }
.ms-body strong { font-size: 28px; font-weight: 800; line-height: 1.05; color: #fff; }
.ms-body span { font-size: 14px; color: #cdbd92; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-line { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, #f5c451 18%, #fff2c4 50%, #f5c451 82%, transparent); transform: scaleX(0); transform-origin: left; animation: ms-line .9s ease-out .35s forwards; }
.ms-sweep { position: absolute; top: 0; bottom: 0; left: 0; width: 38%; background: linear-gradient(100deg, transparent, rgba(255, 236, 170, .2), transparent); transform: translateX(-120%) skewX(-18deg); animation: lv-shine 1.7s ease-in-out .7s both; }
@keyframes lv-swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes lv-orbit { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes lv-breathe { 0%, 100% { transform: scale(1); opacity: .92; } 50% { transform: scale(1.045); opacity: 1; } }
@keyframes lv-ripple { 0%, 64%, 100% { background-color: #1f4140; } 32% { background-color: #2c605c; } }
@keyframes lv-landed { 0% { background-color: rgba(128, 221, 208, .38); } 100% { background-color: rgba(128, 221, 208, 0); } }
@keyframes lv-slide-in { from { transform: translateX(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lv-sweep { from { background-position: 120% 0; } to { background-position: -30% 0; } }
@keyframes lv-star { 0% { transform: scale(0) rotate(-40deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes lv-shine { to { transform: translateX(330%) skewX(-18deg); } }
@keyframes lv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lv-draw { to { stroke-dashoffset: 0; } }
@keyframes lv-rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ms-in { from { opacity: 0; transform: translate(-50%, -24px); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes ms-out { to { opacity: 0; transform: translate(-50%, -24px); } }
@keyframes ms-medal { from { opacity: 0; transform: scale(.5) rotate(-25deg); } to { opacity: 1; transform: none; } }
@keyframes ms-line { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .lv-swap, .lv-orbit, .lv-coming-name.breathe, .lv-sets tr.cur > td, .milestone, .ms-medal, .say.pop { animation: none; }
  .lv-orbit { display: none; }
}

/* ---- 1.3: training together - the partner's strip, "you're up", messages ---- */
.lv-partners { display: grid; gap: 6px; }
.lv-partner { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .5s, box-shadow .5s; }
.lv-partner.up { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 22px rgba(128, 221, 208, .25); }
.lv-partner-who { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #24605b; color: #eafffb; font-weight: 800; font-size: 16px; }
.lv-partner-name { font-size: 15px; color: var(--muted); line-height: 1.3; }
.lv-partner-name b { color: var(--text); }
.lv-partner-last { font-size: 14px; color: var(--muted); }
.lv-partner-last b { color: var(--accent); font-variant-numeric: tabular-nums; }
.lv-partner-last .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-left: 5px; vertical-align: 1px; background: var(--good); }
.lv-partner-last .dot.struggled { background: var(--warn); }
.lv-partner-last .dot.failed { background: var(--bad); }
.lv-up { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; animation: up-pulse 1.6s ease-in-out infinite; }
.up-toast { position: fixed; z-index: 31; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 12px); width: min(520px, calc(100vw - 24px)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(14, 30, 34, .97);
  box-shadow: 0 0 0 1px var(--accent), 0 18px 50px rgba(0, 0, 0, .55), 0 0 36px rgba(128, 221, 208, .2); animation: ms-in .6s cubic-bezier(.2, .9, .25, 1) both; }
.up-toast.out { animation: ms-out .6s ease-in forwards; }
.up-toast small { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--accent); }
.up-toast strong { display: block; font-size: 24px; font-weight: 800; color: #fff; line-height: 1.1; }
.up-toast span:last-child { display: block; font-size: 14px; color: var(--muted); }
.chat-btn { position: relative; }
.chat-badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--live); color: #fff; font-size: 12px; font-weight: 800; font-style: normal; display: grid; place-items: center; }
.talk-dock.chatting .talk-row { display: none; }
.chat-sheet { position: fixed; z-index: 8; left: 50%; bottom: calc(var(--tabs) + env(safe-area-inset-bottom, 0px) + 10px); transform: translateX(-50%);
  width: min(560px, calc(100vw - 24px)); max-height: min(70dvh, 560px); display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--accent); box-shadow: 0 18px 60px rgba(0, 0, 0, .6); animation: sheet-in .35s cubic-bezier(.2, .9, .25, 1) both; }
.chat-head { display: flex; align-items: center; gap: 8px; }
.chat-title { font-size: 17px; }
.chat-head .close { margin-left: auto; width: 36px; height: 36px; font-size: 24px; line-height: 1; }
.chat-apart { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--bg-2); font-size: 14px; color: var(--muted); cursor: pointer; }
.chat-apart input { flex: none; width: 22px; height: 22px; accent-color: var(--accent); }
.chat-list { list-style: none; margin: 0; padding: 4px 2px; overflow-y: auto; min-height: 90px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.chat-list li { max-width: 82%; padding: 8px 12px; border-radius: 16px; display: grid; gap: 2px; }
.chat-list li.theirs { align-self: flex-start; background: var(--bg-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.chat-list li.mine { align-self: flex-end; background: #24605b; color: #eafffb; border-bottom-right-radius: 6px; }
.chat-list li small { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--accent); }
.chat-list li p { font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.chat-list li time { font-size: 11px; color: var(--faint); justify-self: end; }
.chat-list li.mine time { color: #a8d8d2; }
.chat-list li.chat-empty { align-self: center; max-width: none; color: var(--faint); font-size: 14px; text-align: center; }
.chat-quick { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.chip-btn { flex: none; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font-size: 14px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.chip-btn:active { background: var(--accent-soft); }
.chat-send { width: 100%; border-color: var(--line); box-shadow: none; }
/* A message from the partner while the sheet is closed: the speech bubble in their colour. */
.say.friend { background: #eafffb; box-shadow: 0 0 0 4px var(--accent), 0 0 50px rgba(128, 221, 208, .35), 0 24px 70px rgba(0, 0, 0, .65); top: 30%; }
.say.friend::after { border-top-color: #eafffb; }
.say.friend .say-head { color: #1d6b63; }
.say.friend .say-dot { background: var(--accent); box-shadow: 0 0 0 5px rgba(128, 221, 208, .3); }
.say.friend .say-timer { background: var(--accent); }
@keyframes up-pulse { 0%, 100% { transform: none; } 50% { transform: scale(1.06); } }
@keyframes sheet-in { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .lv-up, .up-toast, .chat-sheet { animation: none; } }

/* ---- 1.4: a day's movements full size (Nik 2026-11-06), and the demo ---- */
.plan-open { display: flex; gap: 12px; align-items: center; min-width: 0; flex: 1; color: inherit; text-decoration: none; padding: 4px; margin: -4px; border-radius: 14px; }
.plan-open:active { background: var(--card-2); }
.plan-go { font-size: 26px; color: var(--faint); flex: none; line-height: 1; }
.see-all, .demo-btn { width: 100%; }
.btn.ghost { background: transparent; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); text-decoration: none; }
.pill.demo { background: rgba(245, 196, 81, .16); color: #f5c451; }
.dv { display: grid; gap: 12px; min-width: 0; }
.dv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.dv-head h1 { margin: 2px 0 0; font-size: 26px; }
.dv-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.dv-track::-webkit-scrollbar { display: none; }
.dv-page { scroll-snap-align: start; scroll-snap-stop: always; min-width: 0; padding: 0 2px; }
.dv-in { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 12px; min-width: 0; }
.dv-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dv-title h2 { margin: 0; font-size: 24px; line-height: 1.15; }
.dv-shots { display: grid; gap: 8px; }
.dv-shots.two { grid-template-columns: 1fr 1fr; }
.dv-shot { padding: 0; border: 0; background: none; cursor: zoom-in; display: grid; gap: 4px; min-width: 0; text-align: left; color: var(--muted); font-size: 13px; }
.dv-frame { display: block; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.dv-frame img { width: 100%; aspect-ratio: 4 / 5; max-height: 52dvh; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.dv-shots:not(.two) .dv-frame img { aspect-ratio: 4 / 3; }
.dv-frame img.fitted { opacity: 1; }
.dv-noshot { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: 14px; background: var(--card-2); }
.dv-do { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 10px; }
.dv-do small, .dv-last small, .dv-best small, .dv-notes small { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 750; }
.dv-do strong { display: block; font-size: 22px; }
.dv-past { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.dv-last, .dv-best { background: #111b26; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.dv-last ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.dv-last li { display: flex; gap: 8px; align-items: baseline; }
.dv-last li span:first-child { color: var(--faint); font-size: 13px; min-width: 42px; }
.dv-last li b { font-size: 17px; white-space: nowrap; }
.dv-last li { flex-wrap: nowrap; min-width: 0; }
.dv-best { border-color: rgba(245, 196, 81, .45); }
.dv-best strong { font-size: 22px; color: #f5c451; font-variant-numeric: tabular-nums; }
.dv-best em { font-style: normal; color: var(--muted); font-size: 13px; }
.dv-notes p { margin: 4px 0 0; color: var(--text); line-height: 1.45; }
.dv-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dv-nav .icon-btn { width: 48px; height: 48px; font-size: 26px; color: var(--text); }
.dv-where { display: grid; justify-items: center; gap: 6px; }
.dv-count { font-weight: 800; font-variant-numeric: tabular-nums; }
.dv-dots { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; max-width: 60vw; }
.dv-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.dv-dots i.on { background: var(--accent); transform: scale(1.3); }
@media (min-width: 700px) { .dv-track .dv-in { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .dv-track .dv-title, .dv-track .dv-notes { grid-column: 1 / -1; } .dv-shots { grid-row: span 3; } .dv-past { grid-template-columns: 1fr; } }
@media (max-width: 380px) { .dv-past { grid-template-columns: 1fr; } }
/* 1.4: on a phone the whole set shows ("10 × 195 lb", never "10 × 1…") - smaller type and a narrower set column there. */
@media (max-width: 480px) { .lv-sets th, .lv-sets td { font-size: 16px; padding: 0 6px; } .lv-sets .n { width: 34px; } .lv-sets .last { width: 40%; }
  .lv-sets .last { width: 34%; } .lv-today { gap: 2px 3px; } .lv-today .cue { padding: 0; border: 0; background: none; } .lv-today .cue i { width: 18px; height: 18px; font-size: 10px; } .lv-sets .dot { width: 12px; height: 12px; } /* 1.49.0: the marks stay on the set's line */
  .lv-record { padding: 6px 12px; } .lv-record em { display: none; } .lv-record strong { font-size: 20px; } .lv-today .cue .cue-word { display: none; } .lv-today .cue { padding: 2px; }
  .ql-go.same { font-size: 16px; padding: 0 12px; } } /* 1.54.4: the done bar and Up next no longer wrap here (one line, as on 1.48) */

/* 1.4.1: start and finish in one frame, fading into each other like the gym TV (a 7 s round). */
.morph { padding: 0; border: 0; background: none; cursor: zoom-in; display: grid; gap: 6px; width: 100%; min-width: 0; text-align: left; color: var(--muted); font-size: 13px; line-height: 1.3; }
/* 1.4.14 (Nik 2026-11-15: "movements are cropped wrong. there needs to be a final pass to ensure nothing is cropped out under the review of the movements images"): the whole picture always shows - it fits inside the frame (contain), never fills it by cutting the top, the hands or
 * the weights off. The frame is shaped like the pictures (3:2) and white like them, so what is left over blends in. */
.m-frame { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.dv-morph .m-frame { max-height: 56dvh; }
.m-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; opacity: 0; transition: opacity .5s ease; }
.m-frame img.fitted { opacity: 1; }
.morph.two .m-frame img.fitted.m0 { animation: m-a 7s ease-in-out infinite; }
.morph.two .m-frame img.fitted.m1 { animation: m-b 7s ease-in-out infinite; }
@keyframes m-a { 0%, 39% { opacity: 1; } 50%, 89% { opacity: 0; } 100% { opacity: 1; } }
@keyframes m-b { 0%, 39% { opacity: 0; } 50%, 89% { opacity: 1; } 100% { opacity: 0; } }
/* 1.4.14: START / FINISH in a row under the picture, not over its feet and bench. */
.m-tags { display: flex; justify-content: center; gap: 6px; }
.m-tag { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: transparent; color: var(--muted); border: 1px solid var(--line); }
.m-tag.m0 { animation: m-tag-a 7s ease-in-out infinite; } .m-tag.m1 { animation: m-tag-b 7s ease-in-out infinite; }
@keyframes m-tag-a { 0%, 44% { background: #fff; color: #0d141c; } 50%, 94% { background: transparent; color: var(--muted); } 100% { background: #fff; color: #0d141c; } }
@keyframes m-tag-b { 0%, 44% { background: transparent; color: var(--muted); } 50%, 94% { background: #fff; color: #0d141c; } 100% { background: transparent; color: var(--muted); } }
@media (prefers-reduced-motion: reduce) { .morph.two .m-frame img.fitted.m1 { animation: none; opacity: 0; } .morph.two .m-frame img.fitted.m0, .m-tag.m0, .m-tag.m1 { animation: none; } .m-tag.m0 { background: #fff; color: #0d141c; } }
/* 1.4.1: the demo's dock, where Hold to talk sits in a real workout - he drives the demo. */
.demo-dock { position: fixed; z-index: 7; left: 0; right: 0; bottom: calc(var(--tabs) + env(safe-area-inset-bottom, 0px) + 10px); display: grid; justify-items: center; gap: 8px;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); pointer-events: none; }
.demo-dock > * { pointer-events: auto; }
.demo-heard { margin: 0; padding: 5px 14px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); max-width: min(520px, 100%); text-align: center; }
.demo-row { display: flex; gap: 8px; }
.demo-row .btn { min-height: 40px; padding: 0 14px; background: var(--card); }
/* 1.4.15: "Did you mean …?" - Yes stands out. */
.demo-ask .btn.primary { background: var(--accent); color: #06231d; border-color: transparent; }
.demo-dock.done .btn { box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }

/* 1.4.4: inside Klaus's Workout tab - Klaus's own bar is above, so no brand of ours; the rest of the bar stays (who, back). */
.embedded .top .brand { display: none; }
.embedded .top { padding-top: 6px; margin-top: 0; }
.embedded .top:empty { display: none; }

/* ---- 1.4.9: day cards, the movements full screen, the loading screen, the demo bar ---- */
.choose-list { display: grid; gap: 12px; }
.day-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.day-card { display: grid; gap: 8px; color: inherit; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.day-card:active { transform: scale(.985); }
.day-card.next { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: linear-gradient(160deg, var(--accent-soft), transparent 55%), var(--card); }
.day-card .day { font-size: 26px; font-weight: 850; letter-spacing: -.02em; }
.day-strip { display: flex; gap: 6px; overflow: hidden; }
.day-strip .thumb { flex: none; width: 52px; height: 52px; }
.thumb.more { display: grid; place-items: center; font-weight: 800; color: var(--muted); background: var(--card-2); border-radius: 10px; }
.start-panel { display: grid; gap: 12px; margin-top: 14px; }
.btn.demo-go { width: 100%; background: rgba(245, 160, 64, .14); color: #f5a040; border: 1px solid rgba(245, 160, 64, .5); font-weight: 800; }
.pv { position: fixed; inset: 0; z-index: 70; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: calc(env(safe-area-inset-top) + 10px) 16px calc(env(safe-area-inset-bottom) + 14px);
  background: #05080c; color: #fff; touch-action: pan-y; animation: pv-in .2s ease-out both; }
.pv.out { opacity: 0; transition: opacity .25s ease; }
@keyframes pv-in { from { opacity: 0; } }
.pv-top { display: flex; align-items: center; justify-content: space-between; } .pv-count { font-weight: 800; color: var(--muted); }
.pv-body { display: grid; align-content: safe center; gap: 10px; min-height: 0; overflow: auto; text-align: center; }
.pv-name { font-size: 26px; font-weight: 850; } .pv-do { color: var(--muted); }
.pv-shots { display: grid; gap: 10px; } .pv-shots.two { grid-template-columns: 1fr 1fr; }
.pv-shots figure { margin: 0; display: grid; gap: 6px; } .pv-shots img { width: 100%; max-height: 62vh; object-fit: contain; border-radius: 14px; background: #fff; }
.pv-shots figcaption { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.pv-none { display: grid; justify-items: center; gap: 10px; }
.pv-nav { display: flex; justify-content: space-between; } .pv-nav .icon-btn { width: 56px; height: 56px; font-size: 30px; }
.loading { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px 16px; background: var(--bg, #0b1016); opacity: 0; transition: opacity .3s ease; }
.loading.in { opacity: 1; } .loading.out { opacity: 0; pointer-events: none; }
.ld-in { width: min(440px, 100%); display: grid; gap: 14px; justify-items: center; text-align: center; }
.ld-logo { position: relative; width: 96px; height: 96px; display: grid; place-items: center; } .ld-logo svg, .ld-logo img { width: 52px; height: 52px; }
.ld-ring { position: absolute; inset: 0; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--accent); border-right-color: var(--accent); animation: spin 1.1s linear infinite; }
.loading.demo .ld-ring { border-top-color: #f5a040; border-right-color: #f5a040; }
.ld-in h2 { font-size: 24px; font-weight: 850; } .ld-time { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; }
.ld-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; width: 100%; text-align: left; }
.ld-steps li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--muted); transition: color .3s ease; }
.ld-mark { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 14px; font-weight: 900; transition: background .3s ease, border-color .3s ease; }
.ld-steps li.done { color: var(--text); } .ld-steps li.done .ld-mark { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.ld-steps li.now { color: var(--text); font-weight: 750; } .ld-steps li.now .ld-mark { border-color: var(--accent); border-top-color: transparent; animation: spin .9s linear infinite; }
.ld-steps li.skip { display: none; }
.ld-line { min-height: 1.4em; } .ld-foot { display: grid; gap: 10px; width: 100%; }
.demo-bar { position: sticky; top: calc(env(safe-area-inset-top) + 62px); z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; margin-bottom: 10px;
  border-radius: 14px; background: #3a2508; border: 1px solid rgba(245, 160, 64, .55); color: #f5c08a; font-size: 14px; }
.demo-bar[hidden] { display: none; } .demo-bar b { color: #f5a040; letter-spacing: .12em; }
.demo-exit { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: #f5a040; color: #1a1205; font-weight: 850; font-size: 15px; }
.demo-exit[disabled] { opacity: .6; }
@media (prefers-reduced-motion: reduce) { .ld-ring, .ld-steps li.now .ld-mark { animation-duration: 3s; } .pv { animation: none; } }

/* 1.4.10: Demo asks Phone only or Phone + TV and remote */
.demo-pick { display: grid; gap: 8px; }
.demo-pick .btn.demo-go { display: grid; gap: 2px; text-align: center; padding: 12px 14px; }
.demo-pick .btn.demo-go small { font-weight: 500; opacity: .85; font-size: .82rem; }
.demo-pick .btn.demo-go.tv { background: rgba(245, 160, 64, .06); }

/* ---- 1.5.0 Home hub (Nik 2026-11-19): Home, then each section full screen with Home top left; no bottom tabs ---- */
.home-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 12px 0 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-weight: 750; }
.home-btn .icon { width: 18px; height: 18px; }
.top-title { margin: 0 auto 0 0; font-size: 19px; font-weight: 800; letter-spacing: -.01em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top:has(.top-title) .home-btn, .top:has(.top-title) .back { margin-right: 0; }
.hub { display: grid; gap: 14px; }
.hub-side { display: grid; gap: 14px; min-width: 0; }
@media (min-width: 760px) { .hub { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; } .hub > .job { grid-column: 1 / -1; } }
.hub-card { gap: 12px; }
.hub-card.live { border-color: color-mix(in srgb, var(--live) 45%, var(--line)); }
.hub-head { display: flex; gap: 14px; align-items: center; min-width: 0; }
.hub-day { margin: 2px 0 0; font-size: 28px; line-height: 1.1; font-weight: 850; letter-spacing: -.02em; }
.live-text { color: var(--live); display: flex; align-items: center; gap: 4px; }
.hub-bar { display: flex; gap: 4px; }
.hub-bar i { flex: 1; height: 7px; border-radius: 4px; background: var(--line); }
.hub-bar i.on { background: var(--accent); }
.hub-bar i.now { background: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.hub-where { margin: 0; }
.hub-go { min-height: 60px; font-size: 19px; }
.hub-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 700; color: var(--accent); }
.hub-links a { min-height: 32px; display: inline-flex; align-items: center; }
.hub-card .start-panel { background: none; border: 0; padding: 0; border-radius: 0; }
.hub-card .start-panel .start { min-height: 60px; font-size: 19px; }
.hub-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hub-stat { display: grid; gap: 2px; align-content: start; padding: 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.hub-stat .eyebrow { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-num { font-size: 24px; font-weight: 850; letter-spacing: -.02em; }
.hub-num small { font-size: 13px; font-weight: 650; color: var(--muted); }
.hub-sub { font-size: 12px; color: var(--muted); }
.hub-sub.good { color: var(--good); }
.hub-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hub-tile { min-height: 92px; display: grid; align-content: space-between; gap: 6px; padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.hub-tile:active { transform: scale(.985); }
.hub-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.hub-ico .icon { width: 19px; height: 19px; }
.hub-name { font-weight: 800; font-size: 16px; }
.hub-note { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* one frame, start and finish fading into each other (Nik 2026-11-19) */
.thumb.xf { position: relative; display: block; overflow: hidden; padding: 0; background: #fff; }
.thumb.xf img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.thumb.xf img.xb { animation: xf 4.8s ease-in-out infinite; }
@keyframes xf { 0%, 38% { opacity: 0; } 50%, 88% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .thumb.xf img.xb { animation: none; opacity: 0; } }
.thumb.big { width: 96px; height: 96px; border-radius: 14px; }
/* sections */
.seg { justify-self: start; }
.lib { gap: 12px; }
.lib-find { width: 100%; box-sizing: border-box; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; }
.lib-list { display: grid; gap: 2px; }
@media (min-width: 760px) { .lib-list { grid-template-columns: 1fr 1fr; column-gap: 14px; } }
.lib-row { display: flex; gap: 12px; align-items: center; width: 100%; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.lib-row[hidden] { display: none; }
.lib-row .grow { display: grid; gap: 1px; min-width: 0; }
.lib-row .hname, .lib-row .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- 1.6.0 Build my own (Nik 2026-11-17/19): who plans, your own days, the library with filters, the home gym ---- */
.mode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.mode button { min-height: 44px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-weight: 750; cursor: pointer; }
.mode button.on { background: var(--accent); color: var(--accent-ink); }
.home-only { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: var(--bg-2); }
.home-only .grow { min-width: 0; }
.sw { position: relative; flex: none; width: 52px; height: 32px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-2); cursor: pointer; padding: 0; }
.sw i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--muted); transition: transform .15s; }
.sw.on { background: var(--accent); border-color: var(--accent); }
.sw.on i { transform: translateX(20px); background: var(--accent-ink); }
.f-more { display: grid; gap: 8px; }
.f-more summary { min-height: 40px; display: flex; align-items: center; gap: 8px; font-weight: 750; cursor: pointer; }
.f-row { display: grid; gap: 4px; min-width: 0; margin-top: 6px; }
.f-row .eyebrow { font-size: 11px; }
.f-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.f-chips.wrap { flex-wrap: wrap; overflow: visible; }
.f-chip { flex: none; min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--text); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.f-chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.more-btn { justify-self: center; margin-top: 8px; }
.pill.good { background: rgba(95, 211, 141, .14); color: var(--good); margin-left: 6px; }
.nowrap { white-space: nowrap; }
.build { display: grid; gap: 14px; }
.b-left { display: grid; gap: 12px; min-width: 0; align-content: start; }
@media (min-width: 760px) { .build { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .lib-list .more-btn, .lib-list > p { grid-column: 1 / -1; } .b-add .lib-list { grid-template-columns: 1fr; } }
.day-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.day-tabs button { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.day-tabs button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.day-tabs .add-day { border-style: dashed; color: var(--muted); }
.b-day { gap: 10px; }
.day-name { flex: 1; min-width: 0; min-height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--text); font: inherit; font-size: 22px; font-weight: 800; }
.day-name:hover, .day-name:focus { border-color: var(--line); background: var(--bg-2); }
.b-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.b-row { border-radius: 12px; border: 1px solid var(--line); padding: 6px 8px; min-width: 0; }
.b-row.open { border-color: var(--accent); }
.b-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.b-line .thumb { width: 44px; height: 44px; }
.b-n { width: 20px; flex: none; font-weight: 800; color: var(--muted); font-size: 13px; text-align: center; }
.b-name { flex: 1; min-width: 0; min-height: 44px; display: grid; align-content: center; gap: 1px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; padding: 0; }
.b-name > * { min-width: 0; }
.b-day .row-between { flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.b-day .day-name { flex: 1 1 180px; }
.b-name .hname, .b-name .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-sets { flex: none; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--accent); font: inherit; font-weight: 800; font-variant-numeric: tabular-nums; cursor: pointer; }
.b-acts { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 2px 28px; }
.b-empty { margin: 0; padding: 14px; border-radius: 12px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.own-start { gap: 6px; }
.save-note { margin: 0; }
.add-row { padding: 6px 0; }
.add-look { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; padding: 0; }
.add-btn { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent); font-size: 22px; font-weight: 800; cursor: pointer; }
.add-btn.in { background: var(--accent); color: var(--accent-ink); }
.sheet-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .6); display: grid; align-items: end; justify-items: center; padding: env(safe-area-inset-top, 0px) 0 0; }
.sheet { width: min(100%, 640px); max-height: 92dvh; overflow-y: auto; display: grid; gap: 10px; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); border-radius: 20px 20px 0 0; background: var(--card); border: 1px solid var(--line); box-sizing: border-box; }
.sheet h2 { margin: 0; }
.thumb.huge { width: 100%; height: auto; aspect-ratio: 3 / 2; max-height: 40dvh; border-radius: 14px; }
.cues { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.add-to { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.add-to .eyebrow { width: 100%; margin: 0; }
.gym .f-row { margin-top: 10px; }

/* ---- 1.7.0 Places (Nik 2026-11-19): where you train today, and each place's equipment and days ---- */
.places { display: grid; gap: 4px; min-width: 0; }
.places .eyebrow { font-size: 11px; margin: 0; }
.f-chip.add { display: inline-flex; align-items: center; border-style: dashed; color: var(--muted); text-decoration: none; }
.places-list { display: grid; gap: 8px; }
.place { border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.place.now { border-color: var(--accent); }
.place-head { display: flex; gap: 10px; align-items: center; width: 100%; min-height: 56px; padding: 8px 12px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.place-head .grow { display: grid; gap: 2px; min-width: 0; }
.place-head .pill { margin-left: 8px; }
.place-head[aria-expanded="true"] .icon { transform: rotate(90deg); }
.place-body { display: grid; gap: 8px; padding: 0 12px 12px; min-width: 0; }
.place-body .btn { justify-self: start; }
.new-place { display: grid; gap: 8px; }
.new-place .row-gap { flex-wrap: wrap; }

/* ---- 1.8.0 My current program (Nik 2026-11-19): every move of Klaus's days, Remove (all days) and the Removed list ---- */
.prog-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.prog-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); min-width: 0; }
.prog-row:first-child { border-top: 0; }
.prog-row > .grow { min-width: 0; }
.prog-row .plan-name { overflow-wrap: anywhere; }
.prog-open { flex: none; display: block; }
.prog-row .btn.slim { flex: none; white-space: nowrap; }
.btn.danger.sure { background: var(--bad); color: #fff; border-color: var(--bad); }
.prog-busy { flex: none; display: inline-flex; align-items: center; gap: 6px; max-width: 42%; font-size: 13px; color: var(--muted); }
.prog-busy .spinner { flex: none; width: 14px; height: 14px; }
.prog-fail { margin: 4px 0 0; font-size: 13px; color: var(--bad); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.small.faint, .faint { color: var(--faint); }
.prog-note { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--accent); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.prog-removed .thumb { opacity: .6; }

/* ---- 1.9.0 Home B "Peek" (Nik 2026-11-19: "i like new home B Peek"): one glowing hero card with the day's pictures to swipe; a
   light panel below, apart from the dark top, with the numbers as one line and six one-word buttons, one colour per section ---- */
:root { --sec-plan: #3b7cf5; --sec-library: #8a5cf6; --sec-progress: #1f9d63; --sec-klaus: #ef7d1a; --sec-friends: #e2487f; --sec-settings: #5f6f80; }
.hub-b { display: grid; gap: 14px; grid-template-rows: auto 1fr; }
.view:has(> .hub-b) { min-height: calc(100dvh - 72px - env(safe-area-inset-top, 0px)); grid-template-rows: 1fr; }
.hub-b:has(> .job) { grid-template-rows: auto auto 1fr; }
.ring { display: grid; padding: 2px; border-radius: 22px; min-width: 0; background: linear-gradient(115deg, #1f3b37 0%, #1f3b37 35%, #7fdccb 48%, #d6fff7 50%, #7fdccb 52%, #1f3b37 65%, #1f3b37 100%); background-size: 300% 300%; animation: sweep 6s linear infinite; }
.ring.live { background: linear-gradient(115deg, #3b1f22 0%, #3b1f22 35%, #ff6b6b 48%, #ffd6d6 50%, #ff6b6b 52%, #3b1f22 65%, #3b1f22 100%); background-size: 300% 300%; animation-duration: 3s; }
@keyframes sweep { 0% { background-position: 100% 0; } 100% { background-position: -50% 100%; } }
.hero-b { border-radius: 20px; background: #101821; padding: 14px 0; display: grid; gap: 12px; min-width: 0; align-content: start; }
.hero-head { display: flex; align-items: center; gap: 12px; padding: 0 14px; min-width: 0; }
.hero-head .grow { min-width: 0; }
.hero-b .hub-day { font-size: 28px; }
.go-pill { flex: none; min-height: 52px; padding: 0 22px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font-size: 17px; font-weight: 850; box-shadow: 0 6px 18px rgba(127, 220, 203, .25); }
.go-pill .icon { width: 18px; height: 18px; }
.go-pill.live { background: #ff6b6b; color: #2a0606; box-shadow: 0 6px 18px rgba(255, 107, 107, .3); }
.go-pill[aria-expanded="true"] { background: var(--card-2); color: var(--text); box-shadow: none; }
.hero-b .start-panel { background: none; border: 0; border-radius: 0; padding: 0 14px; }
.hero-b .start-panel .start { min-height: 58px; font-size: 19px; }
.peek { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 14px; padding: 0 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.peek::-webkit-scrollbar { display: none; }
.peek-card { flex: none; width: 74%; scroll-snap-align: center; display: grid; gap: 6px; min-width: 0; }
.peek-card.done { opacity: .55; }
.peek-pic { position: relative; display: block; height: clamp(170px, 30dvh, 250px); border-radius: 14px; overflow: hidden; background: #fff; }
.peek-pic.xf img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.peek-pic.xf img.xb { animation: xf 4.8s ease-in-out infinite; }
.peek-pic.none { display: grid; place-items: center; background: var(--card-2); color: var(--faint); font-size: 34px; font-weight: 850; }
.peek-tick { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 800; color: #06231d; background: #7fdccb; border-radius: 999px; padding: 3px 8px; }
.peek-tick.is-now { background: #ff6b6b; color: #2a0606; }
.peek-cap { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; padding: 0 2px; min-width: 0; }
.peek-cap b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.peek-cap span { flex: none; color: var(--muted); }
.quiet { margin: 2px -16px calc(-28px - env(safe-area-inset-bottom, 0px)); padding: 14px 14px calc(28px + env(safe-area-inset-bottom, 0px)); border-radius: 22px 22px 0 0; background: #eef2f5; color: #14202b; display: grid; gap: 12px; align-content: start; }
.quiet-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 2px 4px; font-size: 13px; color: #5b6773; }
.quiet-stats a { display: inline-block; line-height: 28px; }
.quiet-stats b { color: #14202b; font-size: 15px; margin-right: 3px; }
.quiet-stats b.gold { color: #b7791f; }
.quiet-stats .up { color: #1f8a5b; font-weight: 700; }
.quiet-stats .down { color: #b54a2c; font-weight: 700; }
.quiet-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.q-tile { position: relative; min-height: 76px; border-radius: 16px; background: #fff; border: 1px solid #e1e7ec; box-shadow: 0 1px 2px rgba(20, 32, 43, .06); display: grid; justify-items: center; align-content: center; gap: 6px; min-width: 0; }
.q-tile:active { transform: scale(.97); }
.q-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--sec, #5f6f80); box-shadow: 0 3px 8px color-mix(in srgb, var(--sec, #5f6f80) 30%, transparent); }
.q-ico .icon { width: 20px; height: 20px; }
.q-name { font-size: 14px; font-weight: 700; color: #14202b; }
.q-badge { position: absolute; top: 8px; right: 10px; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px; background: #f5c451; color: #2a1d00; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.q-tile:focus-visible { outline-color: var(--sec); }
body.talking .quiet { margin-bottom: calc(-242px - env(safe-area-inset-bottom, 0px)); padding-bottom: calc(242px + env(safe-area-inset-bottom, 0px)); }
.sec-plan { --sec: var(--sec-plan); } .sec-library { --sec: var(--sec-library); } .sec-progress { --sec: var(--sec-progress); }
.sec-klaus { --sec: var(--sec-klaus); } .sec-friends { --sec: var(--sec-friends); } .sec-settings { --sec: var(--sec-settings); }
@media (min-width: 760px) {
  .hub-b, .hub-b:has(> .job) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto; align-items: stretch; }
  .hub-b > .job { grid-column: 1 / -1; }
  .quiet { margin: 0; border-radius: 20px; padding: 14px; }
  .peek-card { width: 62%; }
  .peek-pic { height: clamp(200px, 46dvh, 330px); }
  .q-tile { min-height: 92px; }
}
@media (prefers-reduced-motion: reduce) { .ring, .ring.live { animation: none; background: #7fdccb; } .ring.live { background: #ff6b6b; } .peek-pic.xf img.xb { animation: none; opacity: 1; } }

/* ---- 1.10.0 the screens behind Home's buttons, light and in their section's colour (Nik 2026-11-19: "the second pages are still
   monotone, very dark and busy ... streamline like the home page"). The look is the same variables, light; the title bar is the
   section's colour, like its button on Home. ---- */
body[data-sec] {
  --bg: #eef2f5; --bg-2: #e6ebf0; --card: #ffffff; --card-2: #f1f4f7; --line: #dfe5eb;
  --text: #14202b; --muted: #5b6773; --faint: #8a96a2;
  --accent: var(--sec); --accent-soft: color-mix(in srgb, var(--sec) 12%, transparent); --accent-ink: #ffffff;
  --gold: #b7791f; --gold-soft: rgba(245, 196, 81, .22); --good: #1f8a5b; --warn: #b8650f; --bad: #c2413b;
  color-scheme: light;
}
body[data-sec="plan"] { --sec: #3b7cf5; } body[data-sec="library"] { --sec: #8a5cf6; } body[data-sec="progress"] { --sec: #1f9d63; }
body[data-sec="klaus"] { --sec: #ef7d1a; } body[data-sec="friends"] { --sec: #e2487f; } body[data-sec="settings"] { --sec: #5f6f80; }
body[data-sec] .top { background: var(--sec); color: #fff; margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); margin-bottom: 4px;
  margin-top: calc(-8px - env(safe-area-inset-top, 0px)); padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
body[data-sec] .top .home-btn, body[data-sec] .top .icon-btn { background: rgba(255, 255, 255, .22); border-color: transparent; color: #fff; }
body[data-sec] .top-title, body[data-sec] .top .who { color: #fff; }
body[data-sec] .top .switch { background: rgba(255, 255, 255, .18); border-color: transparent; }
body[data-sec] .top .switch button { color: rgba(255, 255, 255, .85); }
body[data-sec] .top .switch button.on { background: #fff; color: var(--sec); }
body[data-sec] .top .offline { color: #fff; }
body[data-sec] .card { box-shadow: 0 1px 2px rgba(20, 32, 43, .06); }
body[data-sec] .btn.primary { color: #fff; }
body[data-sec] .thumb { background: #fff; }
.find-row { display: flex; gap: 8px; align-items: stretch; min-width: 0; }
.find-row .lib-find { flex: 1; min-width: 0; }
.f-btn { flex: none; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); color: var(--muted); font-weight: 750; cursor: pointer; }
.f-btn.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.f-panel { display: grid; gap: 10px; padding: 12px; border-radius: 14px; background: var(--accent-soft); }
.f-panel .home-only { padding: 0; border: 0; background: none; }
.f-panel .btn { justify-self: stretch; }
.mv-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.mv-row::-webkit-scrollbar { display: none; }

/* ---- 1.10.1 (Nik 2026-11-19, Duo open in portrait: "the image needs to be static at the top of display, and the scrolling through
   the workout would only do the weights and exercises"; "the green animation highlight on the phone is also too thin ... only go
   around the actual weight rep card section and exclude the image"): the picture of the exercise being done sits in a dock under
   the top bar; the sets, the other exercises and the rest scroll under it; the light runs round the sets card only, thicker. ---- */
.lv-dock { position: sticky; top: 52px; z-index: 4; margin: -4px -16px 0; padding: 4px 16px 10px; background: var(--bg); box-shadow: 0 10px 14px -10px rgba(0, 0, 0, .55); }
.lv-dock .morph { max-width: 520px; margin: 0 auto; gap: 4px; }
.lv-dock .m-frame { aspect-ratio: auto; height: clamp(150px, 27dvh, 250px); }
.lv-dock .m-tags { gap: 4px; }
.lv-dock .m-tag { padding: 2px 8px; font-size: 10px; }
.lv-dock .lv-namecard { max-width: 520px; margin: 0 auto; }
.lv-row.active { padding: 4px; }
.lv-row { scroll-margin-top: 300px; }
@media (max-height: 700px) and (min-width: 760px) { .lv-dock .m-frame { height: clamp(110px, 21dvh, 160px); } } /* 1.48.4: 24dvh -> 21dvh, the Duo open (890x626): the SET line + 3 rows fit above Hold to talk */
/* 1.48.4: a phone held upright with a short screen (Nik's 466x678) - a smaller picture so the row he's on fits above Hold to talk */
@media (max-height: 720px) and (max-width: 759px) { .lv-dock .m-frame { height: clamp(120px, 21dvh, 170px); } }

/* ---- 1.10.2 Change workout on the Home card (Nik 2026-11-19) ---- */
.change-day { margin-top: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 14px; cursor: pointer; }
.change-day[aria-expanded="true"] { background: var(--accent); color: var(--accent-ink); }
.day-pick { display: flex; gap: 8px; overflow-x: auto; padding: 0 14px 2px; scrollbar-width: none; }
.day-pick::-webkit-scrollbar { display: none; }
.day-chip { flex: none; display: grid; gap: 1px; text-align: left; min-height: 52px; padding: 7px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.day-chip b { font-size: 15px; }
.day-chip span { font-size: 12px; color: var(--muted); }
.day-chip.on { border-color: var(--accent); background: var(--accent-soft); }
.day-chip.on span { color: var(--accent); }
.day-chip.on b { color: var(--text); }

/* ---- 1.10.2 one smooth move-on (Nik 2026-11-19: "super choppy ... appears to collapse like three times") ---- */
.dock-none { max-width: 520px; margin: 0 auto; height: clamp(150px, 27dvh, 250px); border-radius: 14px; border: 1px dashed var(--line); display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; padding: 0 16px; }
.lv-dock .dock-none { margin-bottom: 23px; } /* the same height as a picture with its START / FINISH row */
.dock-none b { font-size: 22px; font-weight: 800; }
.dock-none span { font-size: 13px; color: var(--muted); }
.dock-in { animation: dock-in .5s ease-out both; }
@keyframes dock-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-height: 700px) and (min-width: 760px) { .dock-none { height: clamp(110px, 24dvh, 160px); } }
@media (prefers-reduced-motion: reduce) { .dock-in { animation: none; } }

/* ---- 1.10.3 the dock's pictures slide like the cards: the old one shrinks away, the next grows into its place ---- */
.dock-slot { overflow: hidden; }

/* ---- 1.10.4 (Nik 2026-11-19, Home on the open Duo: "the tabs on the bottom seem like they don't flow with the rest of the app ...
   a lot of space down low ... that section that is white seems slightly off"): Home is one dark screen - the workout card grows
   into the space and the six sections are a slim dark dock at the bottom, colour only in their icons. ---- */
.hub-b { grid-template-rows: 1fr auto; }
.hub-b:has(> .job) { grid-template-rows: auto 1fr auto; }
.hub-b > .ring { min-height: 0; }
.hero-b { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
.hero-b > .peek { flex: 1 1 auto; min-height: 0; }
.peek-card { grid-template-rows: minmax(0, 1fr) auto; }
.peek-pic { height: auto; min-height: clamp(170px, 30dvh, 250px); max-height: 560px; }
.quiet { background: #111a24; color: var(--text); border-top: 1px solid var(--line); gap: 10px; padding-top: 12px; }
.quiet-stats { color: var(--muted); justify-content: center; text-align: center; }
.quiet-stats b { color: var(--text); }
.quiet-stats b.gold { color: var(--gold); }
.quiet-stats .up { color: var(--good); }
.quiet-stats .down { color: var(--warn); }
.quiet-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; }
.q-tile { min-height: 66px; background: none; border: 0; box-shadow: none; border-radius: 14px; gap: 5px; }
.q-tile:hover, .q-tile:focus-visible { background: rgba(255, 255, 255, .04); }
.q-ico { width: 42px; height: 42px; border-radius: 13px; box-shadow: 0 4px 12px color-mix(in srgb, var(--sec, #5f6f80) 35%, transparent); }
.q-name { font-size: 12px; font-weight: 700; color: var(--muted); }
.q-badge { top: 2px; right: calc(50% - 30px); }
@media (min-width: 760px) {
  .hub-b, .hub-b:has(> .job) { grid-template-rows: auto; }
  .quiet { border: 1px solid var(--line); }
  .quiet-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .q-tile { min-height: 92px; background: var(--card); border: 1px solid var(--line); }
  .quiet { grid-template-rows: auto 1fr; } .quiet-tiles { grid-auto-rows: 1fr; }
  .q-name { font-size: 14px; color: var(--text); }
  .peek-pic { min-height: clamp(150px, 34dvh, 300px); }
}
/* 1.10.4 (Nik's screenshot, Duo open: the Nik / Davis switch sat under the camera and the time): installed on the home screen,
   the page runs under the status bar; on the open Duo the camera island is top right, so the top bar keeps clear of it. */
@media (display-mode: standalone) and (min-width: 600px) {
  .top { padding-right: 112px; }
  body[data-sec] .top { padding-right: calc(max(16px, env(safe-area-inset-right, 0px)) + 112px); }
}

.view:has(> .hub-b) { min-height: calc(100dvh - 76px - env(safe-area-inset-top, 0px)); }

/* 1.10.4 (Nik 2026-11-19: "the demo icon (orange) when trying demo is right in the space where the image is"): the demo bar scrolls
   away with the page instead of sitting over the picture dock; End by the talk button still ends the demo. */
.demo-bar { position: static; }

/* ---- 1.10.5 the demo's help under a ? button; the Set heading fits ---- */
.demo-heard.help { font-size: 13px; }
.demo-help { min-width: 44px; padding: 0 12px; font-weight: 850; }
.demo-help[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.lv-sets th.n { text-overflow: clip; padding: 0 2px; }

/* ---- 1.10.7 (Nik's screen recording 2026-11-19: "all the animation sliding up and down multiple times"): the rows' places are
   measured from the list itself. Measured from the page, every change slid every card up from hundreds of pixels below. ---- */
.lv-list { position: relative; }

/* ---- 1.11.0 Link another device ---- */
.link-code { font-size: 44px; font-weight: 850; letter-spacing: .12em; font-variant-numeric: tabular-nums; margin: 4px 0 0; }
.link-code span { margin-left: .35em; }
.link-card .btn { justify-self: start; }

/* ---- 1.12.0 Home 2 (Nik + Davis 2026-11-19): stats first, today's workout as a small card, All my workouts + Build or tweak, three
   tiles, the gear for Settings; the whole workout with a ✕ on each move and its sheet; the calendar ---- */
.gear { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); flex: none; }
.gear .icon { width: 20px; height: 20px; }
.hub-2 { display: grid; gap: 14px; align-content: start; }
.view:has(> .hub-2) { min-height: calc(100dvh - 72px - env(safe-area-inset-top, 0px)); }
.home-stats { background: #101821; border: 1px solid #1c2733; border-radius: 18px; padding: 14px; display: grid; gap: 12px; min-width: 0; }
.home-stats .eyebrow { margin: 0; }
.hs-more { font-size: 13px; color: var(--muted); padding: 6px 0; }
.hs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hs-tile { display: grid; gap: 2px; background: #0b1016; border-radius: 12px; padding: 10px; min-width: 0; }
.hs-tile b { font-size: 24px; font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hs-tile b.gold { color: #f5c451; } .hs-tile b.up { color: var(--accent); } .hs-tile b.down { color: #ff8a7a; }
.hs-tile span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.hs-day { display: grid; justify-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.hs-day.today { color: var(--accent); font-weight: 800; }
.hs-day i { width: 9px; height: 9px; border-radius: 5px; border: 1.5px solid #2a3a48; box-sizing: border-box; }
.hs-day i.on { background: var(--accent); border-color: var(--accent); }
.hs-day.today i { box-shadow: 0 0 0 3px rgba(127, 220, 203, .25); }
.hero-t { border-radius: 20px; background: #101821; padding: 12px; display: grid; gap: 8px; min-width: 0; }
.hero-t .change-day { margin-top: 0; justify-self: start; }
.hero-t .day-pick { padding: 0 0 2px; }
.hero-t .start-panel { background: none; border: 0; border-radius: 0; padding: 0; }
.hero-t .start-panel .start { min-height: 58px; font-size: 19px; }
.ht-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ht-open { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.ht-pics { display: grid; grid-template-columns: repeat(2, 54px); grid-auto-rows: 38px; gap: 2px; border-radius: 10px; overflow: hidden; flex: none; }
.thumb.ht { width: 100%; height: 100%; border-radius: 0; border: 0; }
.ht-text { display: grid; gap: 1px; min-width: 0; }
.ht-text .eyebrow { font-size: 11px; }
.ht-text .hub-day { font-size: 24px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ht-more { font-size: 13px; color: var(--accent); margin-top: 2px; }
.home-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.big-act { min-height: 66px; border-radius: 16px; border: 1px solid #22303d; background: #101821; color: var(--text); display: flex; align-items: center; gap: 10px; padding: 10px 12px; text-decoration: none; min-width: 0; }
.big-act:active { transform: scale(.98); }
.ba-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.ba-ico .icon { width: 20px; height: 20px; } .ba-ico.teal { background: var(--accent); color: #06231d; } .ba-ico.blue { background: #3b7cf5; color: #fff; }
.ba-text { display: grid; min-width: 0; } .ba-text b { font-size: 15px; } .ba-text small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-2 .quiet { margin-top: 2px; }
.hub-2 .quiet-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 600px) { .hs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ht-pics { grid-template-columns: repeat(2, 64px); grid-auto-rows: 44px; } }
@media (min-width: 760px) {
  .hub-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .hub-2 > .job, .hub-2 > .home-stats { grid-column: 1 / -1; }
}

/* the whole workout, before it starts */
.dayplan { display: grid; gap: 10px; padding-bottom: 12px; min-width: 0; }
.dp-head { display: flex; align-items: center; gap: 10px; }
.dp-head h2 { margin: 0; font-size: 24px; }
.dp-big { margin: 0; position: relative; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.dp-pic { height: clamp(170px, 32dvh, 300px); border-radius: 0; }
.dp-big figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 10px; background: linear-gradient(to top, rgba(8,12,18,.85), rgba(8,12,18,0)); color: #fff; display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.dp-help { margin: 2px; }
.dp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dp-row { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px; min-width: 0; }
.dp-row.on { border: 2px solid var(--accent); padding: 7px; }
.dp-row.skipped .dp-text b { text-decoration: line-through; color: var(--faint); }
.dp-row.skipped .dp-thumb { opacity: .4; }
.dp-pick { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; border: 0; background: none; padding: 0; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.thumb.dp-thumb { width: 66px; height: 44px; border-radius: 8px; }
.dp-text { display: grid; min-width: 0; }
.dp-text b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-text small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-text small.swap { color: var(--accent); } .dp-text small.gold { color: var(--gold, #b7791f); } .dp-text small.bad { color: var(--bad, #c2413b); }
.dp-dose { flex: none; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card-2); color: var(--text); font-weight: 700; font-size: 13px; cursor: pointer; }
.dp-x { flex: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid #f1d3d3; background: #fff5f5; color: #c0392b; font-size: 17px; font-weight: 800; cursor: pointer; }
.dp-row.skipped .dp-x { border-color: var(--line); background: var(--card-2); color: var(--text); }
.dp-dose:disabled, .dp-x:disabled { opacity: .45; cursor: default; }
.sheet-wrap { position: fixed; inset: 0; z-index: 40; display: grid; align-items: end; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(8, 12, 18, .45); animation: fade .2s ease-out; }
.sheet { position: relative; max-height: 88dvh; overflow-y: auto; background: #fff; color: #14202b; border-radius: 22px 22px 0 0; display: grid; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); box-shadow: 0 -10px 30px rgba(0,0,0,.25); animation: sheetup .25s ease-out;
  width: min(100%, 640px); justify-self: center; box-sizing: border-box; }
@keyframes sheetup { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet-handle { width: 40px; height: 5px; border-radius: 3px; background: #d6dee5; justify-self: center; }
.sh-head { display: flex; gap: 12px; align-items: center; }
.sh-head .thumb { width: 72px; height: 48px; border-radius: 8px; }
.sh-head b { font-size: 18px; } .sh-head small, .sh-opt small, .sh-alt small { display: block; font-size: 12px; color: #5b6773; }
.sh-box { border: 1px solid #e1e7ec; border-radius: 14px; padding: 10px; display: grid; gap: 8px; }
.sh-box .btn.slim { justify-self: start; }
.sh-steps { display: flex; gap: 10px; flex-wrap: wrap; }
.sh-step { flex: 1 1 140px; display: flex; align-items: center; justify-content: space-between; gap: 6px; border: 1px solid #e1e7ec; border-radius: 12px; padding: 6px; }
.sh-step button { width: 44px; height: 44px; border-radius: 10px; border: 0; background: #eef2f5; font-size: 22px; cursor: pointer; color: #14202b; }
.sh-step span { display: grid; text-align: center; } .sh-step b { font-size: 20px; font-variant-numeric: tabular-nums; } .sh-step small { font-size: 11px; color: #5b6773; }
.sh-opt { display: flex; gap: 12px; align-items: center; min-height: 58px; border: 1px solid #e1e7ec; border-radius: 14px; background: #fff; padding: 8px 12px; cursor: pointer; color: inherit; font: inherit; text-align: left; }
.sh-opt.danger { border-color: #f1d3d3; background: #fff7f7; } .sh-opt.danger b { color: #c0392b; } .sh-opt.danger.sure { background: #c0392b; } .sh-opt.danger.sure b, .sh-opt.danger.sure small { color: #fff; }
.sh-emo { font-size: 20px; width: 28px; text-align: center; flex: none; }
.sh-scope { display: inline-flex; background: #eef2f5; border-radius: 999px; padding: 3px; gap: 2px; }
.sh-scope button { border: 0; border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 700; cursor: pointer; background: transparent; color: #3b4652; }
.sh-scope button.on { background: #14202b; color: #fff; }
.sh-why { margin: 0; color: #b8650f; }
.sh-alt { display: flex; gap: 10px; align-items: center; border: 1px solid #e1e7ec; border-radius: 12px; background: #fbfcfd; padding: 8px; cursor: pointer; text-align: left; color: inherit; font: inherit; }
.sh-alt .thumb { width: 60px; height: 40px; border-radius: 6px; }
.sh-use { font-size: 13px; font-weight: 800; color: #2b5a7a; flex: none; }
.sh-done { min-height: 48px; }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-scrim { animation: none; } }

/* All my workouts */
.calendar .seg, .cal-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; background: var(--bg-2); border-radius: 12px; padding: 4px; justify-self: stretch; grid-column: 1 / -1; }
.cal-seg button { min-height: 42px; border-radius: 9px; border: 0; font-size: 15px; font-weight: 700; cursor: pointer; background: transparent; color: var(--text); }
.cal-seg button.on { background: var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
/* 1.19.0 group layout: three choices in one row. */
.layout-seg { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 8px 0 6px; }
.layout-seg button { font-size: 14px; padding: 0 4px; }
.cal-card h2 { margin: 0; font-size: 18px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-head span { text-align: center; font-size: 11px; color: var(--faint); }
.cal-cell { min-height: 44px; border-radius: 10px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 14px; display: grid; justify-items: center; align-content: center; gap: 3px; cursor: pointer; padding: 0; }
.cal-cell.blank { cursor: default; }
.cal-cell.today { box-shadow: inset 0 0 0 1.5px var(--sec, #1f9d63); }
.cal-cell.later { color: var(--faint); }
.cal-cell.on { background: var(--text); color: var(--bg); font-weight: 800; }
.cal-dots { display: flex; gap: 3px; height: 6px; }
.cal-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--sec, #1f9d63); }
.cal-cell.on .cal-dots i { background: var(--bg); }
.cal-key { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); margin: 0; }
.cal-key i { display: inline-block; width: 8px; height: 8px; border-radius: 4px; margin-right: 5px; vertical-align: 1px; }
.cal-key .k-app { background: var(--sec, #1f9d63); } .cal-key .k-health { border: 1.5px solid #3b7cf5; box-sizing: border-box; }
.cal-day h2 { margin: 0; font-size: 17px; }
.cal-w { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 8px; color: inherit; }
.pd-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: inherit; }
.pd-row b { display: block; font-size: 16px; } .pd-row small { display: block; }
.pd-row .ht-pics { grid-template-columns: repeat(2, 34px); grid-auto-rows: 24px; border-radius: 8px; }
.set-row { display: flex; align-items: center; gap: 12px; color: inherit; }
.set-row b { display: block; } .set-row small { display: block; }

/* ---- 1.13.0 the shorthand box above Hold to talk (Nik 2026-11-19): who, "12x155", ✓ - and what it read, before it is saved ---- */
.ql-slot { display: contents; }
.ql-wrap { width: min(560px, 100%); min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; } /* 1.49.0: never wider than the phone (the ✓ 10 × 135 pushed it off a 375 screen) */
.ql { display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
.ql-who { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--bg-2); flex: none; }
.ql-who button { border: 0; background: none; color: var(--muted); font-weight: 750; font-size: 14px; padding: 0 12px; height: 38px; border-radius: 999px; cursor: pointer; }
.ql-who button.on { background: var(--accent); color: var(--accent-ink); }
.ql-input { flex: 1; min-width: 0; width: 0; height: 42px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--bg-2); color: var(--text); font-size: 18px; font-weight: 750; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.ql-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.ql-go { flex: none; width: 46px; height: 42px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 20px; font-weight: 900; cursor: pointer; }
.ql-go:disabled { opacity: .5; }
.ql-preview { margin: 0; justify-self: center; max-width: 100%; box-sizing: border-box; padding: 3px 12px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 650; color: var(--text); white-space: normal; text-align: center; line-height: 1.3; } /* 1.49.0: where a typed set goes reads in full */
.ql-preview:empty { display: none; }
.ql-wrap.demo { width: min(520px, 100%); }
.talk-dock.typing .ql-wrap, .talk-dock.chatting .ql-wrap { display: none; }

/* ---- 1.14.0 Add equipment ---- */
.gear-snap h2 { margin: 0; }
.gear-found { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.gear-pick { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 8px; border-radius: 12px; background: var(--card-2); }
.gear-pick input { width: 22px; height: 22px; accent-color: var(--accent); }
.gear-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gear-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.gear-row small { overflow: hidden; text-overflow: ellipsis; }
.gear-link { justify-self: start; }
.place-body > .btn.primary.slim { justify-self: start; }
.grid.gear { grid-template-columns: minmax(0, 1fr); }
.grid.gear > * { min-width: 0; grid-column: 1 / -1; }
.grid.gear > .f-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.grid.gear { width: 100%; justify-self: stretch; box-sizing: border-box; }

/* ---- 1.16.0 the rest timer: the card's rim fills as a ring, big seconds top right, amber the last 10 s, GO at 0 ---- */
.lv-row.active.resting { --rc: #80ddd0; padding: 5px; background: conic-gradient(from -90deg, var(--rc) calc(var(--p, 1) * 360deg), #24323f 0); box-shadow: none; }
.lv-row.active.rest-amber { --rc: #f5b84b; }
.lv-row.active.rest-go { padding: 5px; background: #5fe08a; animation: rest-go 1s ease-in-out infinite; }
.lv-row.active.resting .lv-orbit, .lv-row.active.rest-go .lv-orbit { display: none; }
@keyframes rest-go { 50% { box-shadow: 0 0 0 6px rgba(95, 224, 138, .25), 0 0 40px rgba(95, 224, 138, .35); } }
.rest-clock { position: absolute; top: 12px; right: 16px; z-index: 4; text-align: right; line-height: 1; pointer-events: none; }
.rest-clock b { display: block; font-size: 46px; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--rc, #80ddd0); text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.rest-go .rest-clock b { color: #5fe08a; }
.rest-clock small { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #9fb1c3; }
/* 1.49.0: the move on now shrunk to its NOW row - the rest clock sits small where "Set N of M" was (never on top of it) */
.lv-row.active.shut .rest-clock { top: 50%; right: 40px; transform: translateY(-50%); padding: 2px 6px; border-radius: 8px; background: #0f3a36; }
.lv-row.active.shut .rest-clock b { font-size: 22px; }
.lv-row.active.shut .rest-clock small { display: none; }
.lv-row.active.shut.resting .lv-now-set, .lv-row.active.shut.rest-go .lv-now-set { visibility: hidden; }
.lv-row.active { position: relative; }
.rest-mini { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; color: #80ddd0;
  background: radial-gradient(closest-side, var(--card, #162130) 78%, transparent 80%), conic-gradient(from -90deg, currentColor calc(var(--p, 1) * 360deg), #24323f 0); }
.rest-mini.amber { color: #f5b84b; } .rest-mini.go { color: #5fe08a; }
@media (prefers-reduced-motion: reduce) { .lv-row.active.rest-go { animation: none; } }
.rest-clock small { display: none; }
.rest-clock b { font-size: 42px; }
.rest-clock { top: 8px; }

/* ---- 1.17.0 set cues: Klaus's word on a set - a purple chip with a K; tap for what he meant; a new one glows ---- */
.cue { display: inline-flex; align-items: center; gap: .35em; flex: none; background: #2a2140; color: #c9a7ff; border: 1px solid #4a3a6e; border-radius: 999px;
  padding: 2px 9px 2px 3px; font: inherit; font-size: 12px; font-weight: 800; line-height: 1.3; white-space: nowrap; vertical-align: middle; margin-left: 6px; cursor: default; }
button.cue { cursor: pointer; } button.cue[aria-expanded="true"] { background: #3a2c5a; }
.cue i { width: 16px; height: 16px; border-radius: 50%; background: #c9a7ff; color: #1b1030; font-style: normal; font-size: 10px; font-weight: 900; display: grid; place-items: center; }
.cue.new { animation: cue-new 1.2s ease-in-out 3; }
@keyframes cue-new { 50% { box-shadow: 0 0 0 4px rgba(201, 167, 255, .3); } }
.cue-bubble { background: #1e2b3b; border: 1px solid var(--line, #2b3a4b); border-radius: 12px; padding: 9px 11px; margin: 8px 0 2px; font-size: 14px; line-height: 1.4; }
.cue-bubble .cue { margin: 0 6px 0 0; }
.chip .cue { margin-left: 2px; font-size: 11px; }
.cue-sum h2 { margin: 0 0 8px; font-size: 16px; }
.cue-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 5px 0; font-size: 14px; }
.cue-row .cue { margin: 0; } .cue-row small { flex-basis: 100%; }
@media (prefers-reduced-motion: reduce) { .cue.new { animation: none; box-shadow: 0 0 0 3px rgba(201, 167, 255, .3); } }
body[data-sec] .cue { background: #f1eaff; color: #5b3ea8; border-color: #d9c9ff; } body[data-sec] .cue i { background: #6d4bc4; color: #fff; }

/* 1.18.0 Scan a new place */
.scan-root { display: grid; gap: 12px; }
.scan-head h2 { margin: 0; }
.scan-stage { position: relative; border-radius: 16px; overflow: hidden; background: #0b1118; aspect-ratio: 3 / 4; max-height: 62vh; }
.scan-cam { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-count { position: absolute; top: 10px; right: 12px; background: rgba(0,0,0,.55); color: #fff; font-weight: 800; padding: 4px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.scan-tip { margin: 0; font-size: 15px; }
.scan-btns { flex-wrap: wrap; }
.scan-shutter { min-width: 140px; }
.scan-running { background: var(--card2, rgba(0,0,0,.05)); border-radius: 12px; padding: 8px 12px; }
.scan-running p { margin: 4px 0 0; }
.scan-wait { display: grid; justify-items: center; text-align: center; gap: 6px; }
.scan-q { margin-top: 10px; }
.scan-q p { margin: 0 0 6px; font-weight: 700; }
.scan-check { display: flex; align-items: center; gap: 6px; padding: 6px 0; }
.scan-switches { margin-top: 10px; }
.scan-switches summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.place.test { border-left: 3px solid #c9a7ff; }
.board-nums { display: block; margin-top: 2px; }
.rough { padding: 8px 0; border-top: 1px solid var(--line); }
.rough p { margin: 4px 0 6px; }

/* 1.21.0 Build today (#anywhere) */
.home-acts .bt-act { grid-column: 1 / -1; }
.ba-ico.amber { background: #f5a623; color: #2a1a00; }
.bt-link { text-decoration: none; color: inherit; }
.bt .bt-pick, .bt .bt-where { display: flex; flex-direction: column; gap: 8px; grid-column: 1 / -1; }
.bt-row { display: flex; flex-direction: column; gap: 6px; }
.bt-or { align-self: center; padding: 0 2px; }
.bt-pick.asking { border-color: var(--accent); }
.bt-q { margin: 0; font-size: 18px; }
.bt-main { color: var(--accent); font-weight: 750; }
.bt-day .b-name .hname, .bt-day .b-name .muted { white-space: normal; }
.bt-day .b-name { cursor: zoom-in; }
.bt-day .b-sets { flex: 0 1 auto; max-width: 32%; min-height: 0; padding: 0; border: 0; background: none; text-align: right; font-size: 14px; cursor: default; }
.bt-missing p { margin: 4px 0 0; }
.bt-why summary { cursor: pointer; font-weight: 650; font-size: 14px; }
.bt-why ul { margin: 6px 0 0; padding-left: 18px; }
.bt-why li { margin: 3px 0; color: var(--muted); }
.bt-gaps { margin-top: 4px; padding: 10px 12px; border: 1px solid var(--accent); border-radius: 12px; background: var(--accent-soft); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.bt-gaps.off { border-color: var(--line); background: none; }
.bt-gaps ul { margin: 0; padding-left: 18px; }
.bt-gaps li { margin: 2px 0; }
.bt-gaps .eyebrow { margin: 0; }
.build-card { display: flex; flex-direction: column; gap: 10px; }

/* 1.21.1 the teacher on the scan scoreboard */
.teach-kind { padding: 10px 0; border-top: 1px solid var(--line, rgba(127,127,127,.25)); }
.teach-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.teach-head .pill.ok { background: var(--accent-soft); color: var(--accent); }
.teach-bar { height: 6px; border-radius: 3px; background: rgba(127,127,127,.2); overflow: hidden; margin: 6px 0; }
.teach-bar span { display: block; height: 100%; background: var(--accent, #3a8); }
.teach-lessons { margin: 6px 0 0; padding-left: 18px; }
.teach-lessons li { margin: 3px 0; overflow-wrap: anywhere; }

/* ---- 1.22.0 the new Home (Workout home redesign-1, mock-up v3): one gradient per job - today teal->blue, away amber->red,
   friends pink->violet, scan cyan->indigo; filled icon tiles; the app's own exercise pictures on the card. ---- */
:root { --g-today: linear-gradient(135deg, #16d0b0 0%, #2a7bff 100%); --g-away: linear-gradient(135deg, #ffb21e 0%, #ff5a36 100%);
  --g-friends: linear-gradient(135deg, #ff4f9a 0%, #8b5cf6 100%); --g-scan: linear-gradient(135deg, #22d3ee 0%, #6366f1 100%); --g-gold: linear-gradient(135deg, #ffd166 0%, #ff9f43 100%);
  --c-today: #2fd4c0; --c-away: #ffb21e; --c-live: #ff4d5e; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.home3 { display: grid; gap: 14px; min-width: 0; }
.h3-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.h3-top .grow { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.h3-top b { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h3-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 850; background: var(--g-today); color: #04121a; text-decoration: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px rgba(255,255,255,.25); }
.h3-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 46%; padding: 8px 12px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h3-chip .icon { width: 17px; height: 17px; color: var(--c-today); flex: none; }
.h3-chip.away { background: rgba(255,178,30,.14); border-color: rgba(255,178,30,.45); color: #ffd58a; }
.h3-chip.away .icon { color: var(--c-away); }
.h3-split { display: grid; gap: 14px; min-width: 0; }
.h3-col { display: grid; gap: 14px; align-content: start; min-width: 0; }
@media (min-width: 760px) { .h3-split { grid-template-columns: 1.05fr 1fr; align-items: start; } }
.h3-hero { position: relative; overflow: hidden; border-radius: 24px; padding: 18px; display: grid; gap: 10px; background: var(--g-today); color: #04121a; box-shadow: 0 10px 30px rgba(42,123,255,.28); }
.h3-hero::after { content: ""; position: absolute; right: -20%; top: -40%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.16); pointer-events: none; }
.h3-hero > * { position: relative; z-index: 1; min-width: 0; }
.h3-hero.away { background: var(--g-away); color: #2a0e00; box-shadow: 0 10px 30px rgba(255,90,54,.28); }
.h3-hero .eyebrow { color: inherit; opacity: .8; margin: 0; }
.h3-day { margin: 0; font-size: 34px; line-height: 1.05; font-weight: 900; letter-spacing: -.02em; overflow-wrap: anywhere; }
.h3-sub { margin: 0; font-weight: 650; opacity: .85; font-size: 14px; }
.h3-why { margin: 0; font-weight: 700; font-size: 13px; }
.h3-gaps { display: block; color: inherit; text-decoration: none; }
.h3-pics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.h3-pics .thumb.h3, .h3-pic-more .thumb.h3 { width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; border: 0; }
.h3-pic-more { position: relative; display: block; }
.h3-pic-more .n { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 12px; background: rgba(4,18,26,.55); color: #fff; font-weight: 850; font-size: 18px; }
.h3-btns { display: flex; gap: 8px; }
.h3-start, .h3-alt { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 16px; border: 0; font: inherit; font-weight: 850; text-decoration: none; cursor: pointer; }
.h3-start { flex: 1.6; background: #0a0f1e; color: #fff; font-size: 18px; }
.h3-start.wait { font-size: 14px; font-weight: 700; background: rgba(10,15,30,.75); }
.h3-start[disabled] { opacity: .6; }
.h3-alt { flex: 1; background: rgba(255,255,255,.3); color: inherit; font-size: 16px; }
.h3-start .icon, .h3-alt .icon { width: 20px; height: 20px; }
.h3-else { justify-self: start; background: none; border: 0; color: inherit; font: inherit; font-weight: 800; font-size: 14px; padding: 4px 0; cursor: pointer; opacity: .85; }
.h3-hero .day-pick, .h3-hero .start-panel { color: var(--text); }
.h3-hero .start-panel { background: var(--card); }
.h3-week { display: grid; gap: 8px; text-decoration: none; color: var(--text); }
.h3-sentence { margin: 0; font-size: 17px; line-height: 1.45; font-weight: 650; }
.h3-sentence .a { color: var(--c-today); } .h3-sentence .gd { color: var(--gold); }
.h3-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; font-size: 12px; font-weight: 750; color: var(--faint); }
.h3-dots i { display: block; height: 8px; border-radius: 8px; background: var(--card-2); margin-top: 5px; }
.h3-dots .on i { background: var(--g-today); } .h3-dots .now { color: var(--text); } .h3-dots .now i { outline: 2px solid var(--gold); outline-offset: -1px; }
.is-away .h3-sentence .a { color: var(--c-away); }
.h3-faces { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; }
.h3-face { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 68px; flex: none; font-size: 13px; font-weight: 650; text-align: center; color: var(--text); text-decoration: none; }
.h3-face > span:not(.ring), .h3-face small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h3-face .ring { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; padding: 3px; background: var(--card-2); font-weight: 850; font-size: 18px; color: #fff; }
.h3-face .ring span { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: var(--g-friends); }
.h3-face .ring.live { background: conic-gradient(var(--c-live), #ff9f43, var(--c-live)); }
.h3-face .ring.add { background: transparent; border: 2px dashed var(--muted); color: var(--muted); }
.h3-face .tag { font-size: 12px; color: var(--c-live); font-weight: 850; }
@media (prefers-reduced-motion: no-preference) { .h3-face .ring.live { animation: h3pulse 2s infinite; } @keyframes h3pulse { 50% { box-shadow: 0 0 0 6px rgba(255,77,94,.15); } } }
.h3-tile { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.h3-tile .icon { width: 22px; height: 22px; }
.h3-tile.today { background: var(--g-today); color: #04121a; } .h3-tile.away { background: var(--g-away); color: #2a0e00; } .h3-tile.friends { background: var(--g-friends); }
.h3-tile.scan { background: var(--g-scan); } .h3-tile.gold { background: var(--g-gold); color: #3a2300; }
.h3-card, .h3-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; min-width: 0; }
.h3-card .grow, .h3-row .grow { display: flex; flex-direction: column; min-width: 0; }
.h3-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h3-row .thumb.h3 { width: 60px; height: 60px; }
.h3-go { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--g-today); color: #04121a; }
.is-away .h3-go { background: var(--g-away); color: #2a0e00; }
.h3-go.off { background: none; color: var(--faint); }
.h3-go .icon { width: 18px; height: 18px; }
.h3-list { display: grid; gap: 8px; }
.h3-away-text { color: var(--c-away); margin: 0; }
.h3-scan { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 128px; border-radius: 22px; text-decoration: none; color: #fff;
  background: radial-gradient(120% 90% at 85% 0%, rgba(99,102,241,.55), transparent 60%), radial-gradient(90% 90% at 0% 100%, rgba(34,211,238,.45), transparent 60%), #0b1424; border: 1px solid rgba(76,201,240,.35); }
.h3-scan .in { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; }
.h3-scan .grow { display: flex; flex-direction: column; min-width: 0; }
.h3-scan small { color: #cfe9ff; }
.h3-scan .corners i { position: absolute; width: 22px; height: 22px; border: 3px solid #4cc9f0; z-index: 1; }
.h3-scan .corners i:nth-child(1) { top: 12px; left: 12px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.h3-scan .corners i:nth-child(2) { top: 12px; right: 12px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.h3-scan .corners i:nth-child(3), .h3-scan .corners i:nth-child(4) { display: none; }
.h3-scan .beam { position: absolute; left: 10%; right: 10%; top: 30%; height: 2px; background: linear-gradient(90deg, transparent, #4cc9f0, transparent); box-shadow: 0 0 12px #4cc9f0; z-index: 1; }
@media (prefers-reduced-motion: no-preference) { .h3-scan .beam { animation: h3beam 3.2s ease-in-out infinite; } @keyframes h3beam { 0%, 100% { top: 16%; } 50% { top: 42%; } } }
.h3-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.h3-small { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 750; min-width: 0; }
.h3-small .h3-tile { width: 34px; height: 34px; border-radius: 11px; }
.h3-small .h3-tile .icon { width: 19px; height: 19px; }
/* My workouts by place */
.h3-search input { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; }
.h3-group { display: grid; gap: 8px; }
.h3-placehead { display: flex; align-items: center; gap: 10px; font-weight: 850; min-width: 0; }
.h3-placehead .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h3-placehead .h3-tile { width: 32px; height: 32px; border-radius: 10px; }
.h3-placehead .h3-tile .icon { width: 18px; height: 18px; }
.h3-here { color: var(--c-away); font-size: 13px; font-weight: 850; }
.h3-mini { flex: none; min-height: 34px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
@media (min-width: 760px) { .h3-places { grid-template-columns: 1fr 1fr; align-items: start; } .h3-places .h3-search { grid-column: 1 / -1; } }
/* Change today on the day page */
.dp-change { display: grid; gap: 8px; }
.dp-add { justify-self: start; display: inline-flex; align-items: center; gap: 6px; }
.dp-add .icon { width: 18px; height: 18px; }
.dp-addbox { display: grid; gap: 8px; }
.dp-addbox input { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); color: var(--text); font: inherit; }
.dp-row.added .dp-text small { color: var(--accent); }
/* 1.22.1: the pictures open every move; Demo on the card */
button.h3-pics { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; text-align: left; }
a.h3-pics { text-decoration: none; }
.h3-row2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.h3-demo { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.h3-all { margin: 0; padding: 10px 12px 10px 30px; border-radius: 14px; background: rgba(10,15,30,.18); display: grid; gap: 4px; font-size: 14px; }
.h3-all li b { font-weight: 800; } .h3-all li span { opacity: .8; margin-left: 6px; }
/* 1.24.0: the pictures slide with a finger (every move, its number and name) */
.h3-strip { display: flex; gap: 9px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -4px; padding: 2px 4px 4px; }
.h3-strip::-webkit-scrollbar { display: none; }
/* 1.25.0 (Nik v3 marks): about 3.4 pictures at a time, the row fading at the right edge until it is slid to the end */
.h3-strip { -webkit-mask-image: linear-gradient(to right, #000 80%, transparent); mask-image: linear-gradient(to right, #000 80%, transparent); }
.h3-strip.at-end { -webkit-mask-image: none; mask-image: none; }
.h3-slide { --tile: calc((100% - 3 * 9px) / 3.4); flex: 0 0 var(--tile); width: var(--tile); scroll-snap-align: start; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.h3-slide .thumb.h3 { width: 100%; height: auto; aspect-ratio: 1; border-radius: 14px; border: 0; }
.h3-tcap { font-size: 13px; line-height: 1.25; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h3-tcap b { display: inline-grid; place-items: center; min-width: 19px; height: 19px; margin-right: 5px; border-radius: 10px; background: rgba(255,255,255,.22); font-size: 11.5px; }
@media (min-width: 700px) { .h3-slide { --tile: calc((100% - 4 * 9px) / 4.4); } }
/* 1.25.0 Change today: a grip to drag (left), Replace and the sets under the name */
.dp-row { flex-wrap: wrap; touch-action: pan-y; transition: box-shadow .15s; }
.dp-grip { flex: none; width: 30px; height: 44px; margin: -4px -2px -4px -4px; border: 0; background: none; color: var(--faint); font-size: 22px; line-height: 1; cursor: grab; touch-action: none; border-radius: 8px; }
.dp-grip:focus-visible { outline: 2px solid var(--accent); }
.dp-row.lift { position: relative; z-index: 5; border: 2px solid var(--accent); padding: 7px; box-shadow: 0 10px 28px rgba(0,0,0,.18); background: var(--card); }
.dp-row.lift .dp-grip { cursor: grabbing; color: var(--accent); }
.dp-acts { flex: 1 0 100%; display: flex; gap: 8px; padding-left: 94px; }
.dp-rep { min-height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--accent); background: none; color: var(--accent); font-weight: 800; font-size: 13px; cursor: pointer; }
.dp-acts .dp-dose { min-height: 34px; }
.dp-rep:disabled { opacity: .45; cursor: default; }
.dp-hint { margin: 4px 0 0; } .dp-hint b { color: var(--accent); font-size: 15px; }
.linkish { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.lv-rep { margin: 8px 0 0; }
/* 1.24.0: Klaus's swap pop-up - a sheet with the other moves' pictures */
.swp-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.swp-scrim { position: absolute; inset: 0; background: rgba(4,10,18,.55); animation: swp-fade .25s ease-out; }
.sheet.swp { position: relative; width: min(560px, 100%); max-height: 86vh; overflow-y: auto; animation: swp-up .32s cubic-bezier(.2,.8,.2,1); }
.swp-opts { display: grid; gap: 10px; margin: 12px 0; }
.swp-opt { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: 16px; border: 1.5px solid var(--line, rgba(127,127,127,.3)); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.swp-opt.on { border-color: var(--accent, #2bb3a3); }
.swp-opt[disabled] { opacity: .65; } .swp-opt.on[disabled] { opacity: 1; }
.swp-opt .thumb.swp { width: 84px; height: 84px; border-radius: 12px; }
.swp-text { display: grid; gap: 3px; } .swp-text b { font-size: 16px; } .swp-text small { opacity: .8; } .swp-text em { font-style: normal; font-weight: 700; color: var(--accent, #2bb3a3); }
.swp-note { position: fixed; left: 50%; bottom: calc(150px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; width: min(520px, calc(100% - 32px)); padding: 12px 16px; border-radius: 14px; background: #10202c; color: #fff; font-weight: 650; box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.lv-libpic .dp-pic { width: 100%; height: auto; aspect-ratio: 1; max-height: 42vh; }
@keyframes swp-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes swp-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet.swp, .swp-scrim { animation: none; } }

/* ---- 1.26.0 R5 Photos + progress timeline (mock-up ob-consent, ob-photos, ph-privacy, ph-timeline): the frames keep the dark
   camera look on the light Settings screens; the outline and the cut-away band are the same on the camera, an upload and the
   result, so what is sent is what was shown. ---- */
.ph-split { display: grid; gap: 14px; min-width: 0; }
@media (min-width: 760px) { .ph-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; } }
.ph-intro h2 { font-size: 22px; }
.ph-points, .ph-stage, .ph-compare { gap: 12px; }
.ph-point { display: flex; gap: 12px; align-items: flex-start; }
.ph-point .q-ico { width: 34px; height: 34px; flex: none; }
.ph-point b, .ph-point small { display: block; }
.ph-tick { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card-2); font-weight: 750; cursor: pointer; }
.ph-tick input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.ph-keep { display: grid; gap: 6px; }
.ph-two { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; }
.ph-two > .btn { min-width: 0; text-align: center; }
.ph-note { color: var(--warn); font-weight: 650; }
.ph-lock { display: flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; }
.ph-lock .icon { width: 18px; height: 18px; }
.ph-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ph-skip, .ph-back, .ph-more { justify-self: center; color: var(--accent); font-weight: 750; background: none; border: 0; padding: 6px; cursor: pointer; }
.ph-back { justify-self: start; }
.ph-frame { position: relative; display: block; aspect-ratio: 3 / 4; width: min(100%, calc((100dvh - 300px) * .75)); min-width: 180px; margin: 0 auto; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, #1d2c55, #0f1834); border: 2px solid #3d4f86; color: #fff; padding: 0; }
.ph-video, .ph-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; touch-action: none; }
.ph-video.mirror { transform: scaleX(-1); }
.ph-fig.ph-guide { position: absolute; left: 0; top: 4%; width: 100%; height: 92%; fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 1.4; stroke-dasharray: 4 4; pointer-events: none; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .7)); }
.ph-cut { position: absolute; left: 0; right: 0; top: 0; background: rgba(6, 10, 24, .78); border-bottom: 2px dashed #ffd36b; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.ph-cut span { display: flex; align-items: center; gap: 6px; padding: 4px 8px; font-size: 12px; font-weight: 800; color: #ffd36b; }
.ph-cut .icon { width: 15px; height: 15px; }
.ph-result img { position: absolute; left: 0; bottom: 0; width: 100%; object-fit: cover; }
.ph-count { position: absolute; inset: 0; display: grid; place-items: center; font-size: 96px; font-weight: 900; color: #fff; text-shadow: 0 4px 18px rgba(0, 0, 0, .6); }
.ph-zoom { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.ph-zoom input { flex: 1; accent-color: var(--accent); }
.ph-tools { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ph-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ph-mini { width: 100%; min-width: 0; border-style: dashed; cursor: pointer; }
.ph-mini.on { border-color: var(--accent); border-style: solid; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.ph-mini.done { border-style: solid; border-color: #2fb59f; background: #0f2a30; }
.ph-fig { position: absolute; left: 15%; top: 8%; width: 70%; height: 78%; fill: none; stroke: #8ea3e6; stroke-width: 2; stroke-dasharray: 5 5; }
.ph-mini.done .ph-fig, .ph-tiny.done .ph-fig { fill: #6fd6c4; stroke: none; }
.ph-lbl { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 13px; font-weight: 800; color: #c9d4f5; }
.ph-mini.done .ph-lbl { color: #7ff0dc; }
.ph-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ph-row b, .ph-row small { display: block; }
.ph-tiny { width: 48px; min-width: 48px; flex: none; margin: 0; border-radius: 12px; border-width: 1.5px; }
.ph-confirm { display: grid; gap: 10px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--bad) 10%, transparent); }
.ph-promises { gap: 12px; }
.ph-pico { color: var(--accent); display: grid; }
.ph-safe ul, .ph-log ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.ph-log ul { list-style: none; padding: 0; gap: 0; }
.ph-log-row { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.ph-log-row:first-child { border-top: 0; }
.ph-ask { background: linear-gradient(135deg, #123a4a, #1b2a5e); color: #fff; border-color: transparent; }
.ph-ask small { display: block; color: rgba(255, 255, 255, .82); }
.ph-ask .q-ico { background: #2fb59f; flex: none; }
.ph-ask .btn:not(.primary) { background: rgba(255, 255, 255, .12); border-color: transparent; color: #fff; }
.ph-ask .btn.primary { background: #80ddd0; border-color: #80ddd0; color: #06231f; }
.ph-door .q-ico { flex: none; }
.ph-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.ph-pt { flex: none; width: 64px; display: grid; gap: 4px; justify-items: center; font-size: 12px; font-weight: 750; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; }
.ph-ph { position: relative; display: block; width: 100%; aspect-ratio: 3 / 3.18; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, #1d2c55, #0f1834); }
.ph-ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-ph .ph-fig { top: -22%; height: 120%; }
.ph-pt.cur .ph-ph { box-shadow: 0 0 0 2.5px var(--accent); }
.ph-pt.cur { color: var(--text); }
.ph-pt.next { cursor: default; }
.ph-pt.next .ph-ph { background: transparent; border: 1.5px dashed #8ea3e6; }
.ph-cmp-head { text-align: center; }
.ph-cmp { position: relative; width: min(100%, calc((100dvh - 330px) * .94), 360px); min-width: 180px; aspect-ratio: 3 / 3.18; margin: 0 auto; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, #26324f, #141b30); touch-action: none; user-select: none; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
.ph-cmp-a, .ph-cmp-b { position: absolute; inset: 0; }
.ph-cmp-b { background: linear-gradient(180deg, #123f4c, #0c2330); }
.ph-cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ph-cmp .ph-fig { top: -22%; height: 120%; fill: #6fd6c4; stroke: none; opacity: .6; }
.ph-tag { position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 800; color: #fff; background: rgba(0, 0, 0, .5); padding: 2px 9px; border-radius: 999px; }
.ph-tag.r { left: auto; right: 10px; }
.ph-cmp-line { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; transform: translateX(-50%); pointer-events: none; }
.ph-knob { position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #0b1020; display: grid; place-items: center; font-weight: 900; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.ph-cmp-range { width: min(100%, 360px); justify-self: center; accent-color: var(--accent); }
.ph-split > .grid { grid-template-columns: minmax(0, 1fr); align-content: start; }
.ph-log-row > .grow { min-width: 12em; }
body .ph-ask a.btn.primary { color: #06231f; }

/* ---- 1.26.0 R3 Getting started (#start; mock-up ob-*): all dark, the today gradient for what moves you on, filled icon tiles; one
   column on the folded phone, two (picture | words) when wide. Fills the screen edge to edge like Home. ---- */
.ob { display: grid; gap: 18px; min-width: 0; min-height: calc(100dvh - 120px); align-content: start; }
.ob-col { display: grid; gap: 12px; align-content: start; min-width: 0; }
@media (min-width: 760px) { .ob { grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; } .ob-head { position: sticky; top: 70px; } }
.ob-steps { display: flex; gap: 6px; }
.ob-steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--card-2); }
.ob-steps i.on { background: var(--g-today); }
.ob-title { font-size: 26px; }
.ob-big { font-size: 30px; line-height: 1.12; }
.ob-accent { color: var(--c-today); margin: 0; }
.ob-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ob-pic { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--g-today); opacity: .95; }
.ob-pic:nth-child(even) { background: var(--g-scan); }
.ob-pic img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 759px) { .ob-welcome .ob-art { grid-template-columns: repeat(6, 1fr); gap: 6px; } .ob-welcome .ob-pic { border-radius: 12px; } }
.ob-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ob-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.ob-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--g-today); color: #04121a; font-size: 14px; }
.ob .grow { flex: 1; min-width: 0; }
.ob .h3-start { flex: 1.6; background: var(--g-today); color: #04121a; box-shadow: 0 8px 22px rgba(42,123,255,.28); }
.ob .h3-start[disabled] { background: var(--card-2); color: var(--faint); box-shadow: none; }
.ob-go { width: 100%; }
/* 1.54.6: the welcome's Start holder - no box of its own (in place where it fits), sticks above the bottom edge where it doesn't */
.ob-gohold { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 5; }
.ob-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 750; text-decoration: none; }
.ob-ghost .icon { width: 19px; height: 19px; color: var(--c-today); }
.ob-skip { min-height: 46px; padding: 0 14px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 750; cursor: pointer; }
.ob-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.ob-opts { display: grid; gap: 8px; }
.ob-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.ob-opt .grow { display: flex; flex-direction: column; }
.ob-opt.on { border-color: var(--c-today); background: rgba(47,212,192,.10); }
.ob-check { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; flex: none; font-weight: 900; color: #04121a; }
.ob-opt.on .ob-check { background: var(--g-today); border-color: transparent; }
.ob-words { display: grid; gap: 8px; padding: 12px; border-radius: 16px; border: 1.5px solid var(--c-today); background: var(--card); min-width: 0; }
.ob-words-h { font-size: 14px; font-weight: 800; color: var(--c-today); }
.ob-text { width: 100%; min-height: 76px; resize: vertical; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; font-size: 16px; }
.ob-words .lib-find { width: 100%; }
.ob-hold { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-2); color: var(--text); font: inherit; font-weight: 750; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.ob-hold .icon { width: 18px; height: 18px; color: var(--c-today); }
.ob-hold.on { background: var(--g-today); color: #04121a; border-color: transparent; }
.ob-hold.on .icon { color: #04121a; }
.ob-note { color: var(--warn); }
.ob-center { text-align: center; }
.ob-scan { width: 100%; border: 1px solid rgba(76,201,240,.35); font: inherit; text-align: left; cursor: pointer; min-height: 150px; }
.ob-kinds { justify-content: center; }
.ob-chip { display: inline-flex; align-items: center; gap: 6px; min-width: 48px; justify-content: center; }
.ob-chip .icon { width: 17px; height: 17px; color: var(--c-today); }
.ob-chip.on { background: rgba(47,212,192,.14); border-color: var(--c-today); color: var(--text); }
.ob-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-fact { padding: 6px 12px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); font-size: 14px; font-weight: 750; }
.ob-finish .h3-row { margin-top: 0; }

/* ---- R4 friends invite / join (home redesign 4a-4c): the friends colour pink -> violet; code, QR, the accept card, the Join sheet ---- */
.fr-card { display: grid; gap: 14px; }
.fr-col { display: grid; gap: 10px; align-content: start; min-width: 0; }
.fr-c { text-align: center; justify-items: center; }
.fr-qr { width: min(240px, 70vw); aspect-ratio: 1; justify-self: center; background: #fff; border-radius: 18px; padding: 10px; box-sizing: border-box; box-shadow: 0 0 0 4px rgba(255,79,154,.35), 0 10px 30px rgba(139,92,246,.3); }
.fr-qr-svg { display: block; width: 100%; height: 100%; }
.fr-code { margin: 0; text-align: center; font: 850 44px/1.1 ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: .12em; font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #ff4f9a 0%, #8b5cf6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fr-code span { margin-left: .35em; }
.fr-left { text-align: center; margin: 0; }
.btn.fr-go { background: linear-gradient(135deg, #ff4f9a 0%, #8b5cf6 100%); color: #fff; border: 0; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn.fr-go .icon { width: 20px; height: 20px; }
.fr-share { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); }
.fr-share-head { font-weight: 800; margin: 0; }
.fr-share .hint { margin: 2px 0 0; }
.fr-note { margin: 0; font-weight: 650; color: #b4235a; }
.fr-they { margin: 0; }
.fr-face { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #ff4f9a 0%, #8b5cf6 100%); color: #fff; font-weight: 850; }
.fr-face.big { width: 72px; height: 72px; font-size: 26px; justify-self: center; }
.fr-done { text-align: center; justify-items: center; }
.fr-input { font: 800 32px ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: .2em; text-align: center; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); width: 100%; box-sizing: border-box; background: var(--bg-2, #fff); color: inherit; }
.fr-mine { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.fr-mine .chip-btn.on { background: linear-gradient(135deg, #ff4f9a 0%, #8b5cf6 100%); color: #fff; border-color: transparent; }
.fr-mine .chip-btn[disabled] { opacity: .5; }
.fr-add .row-gap { flex-wrap: wrap; }
.fr-who { display: flex; align-items: center; gap: 12px; }
.fr-who b { font-size: 19px; }
.fr-who small { display: block; }
.fr-ring { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; padding: 3px; flex: none; background: conic-gradient(#ff4d5e, #ff9f43, #ff4d5e); box-sizing: border-box; }
.fr-ring span { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #ff4f9a 0%, #8b5cf6 100%); color: #fff; font-weight: 850; }
.fr-live { font-size: 12px; font-weight: 850; color: #ff4d5e; text-transform: uppercase; letter-spacing: .06em; }
.fr-pics { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.fr-pics .thumb.fr { width: 64px; height: 64px; flex: none; border-radius: 12px; }
.fr-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fr-sheet .btn.fr-go { width: 100%; }
.fr-joined { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fr-joined .grow { min-width: 0; flex: 1 1 140px; }
.fr-joined small { display: block; }
@media (min-width: 760px) { .fr-invite, .fr-accept { grid-template-columns: 1fr 1fr; align-items: center; } }
.fr-sheet .btn:not(.fr-go):not(.ghost) { background: #eef1f6; color: #14202b; border: 1px solid #d6dee5; }
.fr-sheet .btn.ghost { color: #b4235a; border-color: #e7b6c8; }

/* ---- 1.26.1 Test mode: an amber bar under the top bar on every screen while the phone acts as the test person ---- */
.tm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 16px; background: #f5b638; color: #241500; font-size: 13px; }
.tm-bar b { letter-spacing: .08em; font-size: 12px; }
.tm-bar .grow { flex: 1 1 8em; min-width: 0; }
.tm-btn { min-height: 34px; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(36, 21, 0, .35); background: rgba(255, 255, 255, .55); color: #241500; font: inherit; font-weight: 750; cursor: pointer; }
.tm-btn.armed { background: #8a1c1c; border-color: #8a1c1c; color: #fff; }
.tm-note { flex-basis: 100%; }
.tm-card { border-color: #f5b638; }

/* ---- 1.26.2 getting started: goals any number + which matters most, "Anything else" on its own, what to train, change the moves,
   who the run is for (the lead), the test-mode line ---- */
.ob-most { display: grid; gap: 8px; padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.ob-else { margin-top: 10px; }
.ob-else-h { margin: 0; font-size: 18px; }
.ob-else p { margin: 0; }
.ob-what { display: grid; gap: 8px; }
.ob-what .eyebrow { margin: 0; }
button.ob-ghost { width: 100%; font: inherit; font-weight: 750; cursor: pointer; }
.ob-ghost .icon { flex: none; }
.ob-ed { display: grid; gap: 8px; min-width: 0; }
.ob-ed p { margin: 0; }
.ob-ed .dp-list { margin: 0; }
.ob-ed-row { flex-wrap: wrap; }
.ob-alts { flex-basis: 100%; display: grid; gap: 6px; padding: 4px 0 2px 44px; }
.ob-who { min-height: 76px; }
.ob-who .icon:last-child { width: 18px; height: 18px; color: var(--muted); flex: none; }
.ob-testing { margin: 0; padding: 8px 12px; border-radius: 12px; background: rgba(255, 184, 77, .14); border: 1px solid rgba(255, 184, 77, .55); color: #ffcf85; font-weight: 750; font-size: 14px; }

/* ---- 1.27.0 sore spots: the chips under the note, the easy box on built days and at home, the check-in, heavy moves in pick lists ---- */
.lim { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); min-width: 0; }
.lim p, .lim small { margin: 0; }
.lim-chip { display: inline-flex; align-items: stretch; border-radius: 999px; border: 1.5px solid var(--c-today); background: rgba(47, 212, 192, .10); overflow: hidden; }
.lim-chip.on { box-shadow: 0 0 0 2px rgba(47, 212, 192, .35); }
.lim-chip.red { border-color: var(--warn); background: rgba(255, 120, 90, .12); }
.lim-name, .lim-x { border: 0; background: none; color: var(--text); font: inherit; font-weight: 750; cursor: pointer; min-height: 38px; }
.lim-name { padding: 0 6px 0 14px; }
.lim-x { padding: 0 12px 0 6px; color: var(--muted); }
.lim-edit { display: grid; gap: 8px; padding: 10px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.lim-pro { color: var(--warn); font-weight: 700; margin: 0; }
/* 1.40.0 "Anything to work around?": the small question labels, the live line, the quiet get-it-checked link */
.lim-q { margin: 4px 0 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.lim-effect { margin: 2px 0 0; color: var(--gold); font-weight: 650; }
.lim-red { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; text-align: left; padding: 6px 0; cursor: pointer; min-height: 38px; }
.lim-name { white-space: normal; text-align: left; }
.lim-heavy { color: var(--warn); }
.ease .eyebrow { margin: 0; }
.ease ul { margin: 6px 0; padding-left: 18px; }
.ease-none { margin: 6px 0 0; }
.lim-ask { display: grid; gap: 8px; }
.lim-ask h2 { margin: 0; font-size: 19px; }
.lim-ask .eyebrow { margin: 0; }

/* ---- 1.28.0 the scan records only on Record (Nik 11-28), and in getting started the way on is always in sight ---- */
.scan-stage { transition: box-shadow .2s; }
.scan-stage.rec { box-shadow: 0 0 0 4px #ff3b30, 0 0 22px rgba(255,59,48,.55); animation: scan-rec 1.6s ease-in-out infinite; }
@keyframes scan-rec { 50% { box-shadow: 0 0 0 4px #ff3b30, 0 0 6px rgba(255,59,48,.2); } }
.scan-over { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.scan-big { font-size: 120px; font-weight: 900; color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,.6); font-variant-numeric: tabular-nums; }
.scan-rec-badge { position: absolute; top: 10px; left: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.6); color: #fff; font-weight: 850; padding: 5px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.scan-idle { position: absolute; top: 10px; left: 12px; background: rgba(0,0,0,.55); color: #fff; font-weight: 750; padding: 4px 10px; border-radius: 999px; font-size: 14px; }
.scan-dot { width: 12px; height: 12px; border-radius: 50%; background: #ff3b30; display: inline-block; flex: none; }
.scan-rec-badge .scan-dot { animation: scan-blink 1s steps(2) infinite; }
@keyframes scan-blink { 50% { opacity: .2; } }
.scan-sq { width: 14px; height: 14px; border-radius: 3px; background: currentColor; display: inline-block; }
.scan-btns .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.scan-record, .scan-stop { min-height: 58px; flex: 1 1 100%; font-size: 19px; font-weight: 850; border-radius: 16px; }
.scan-record { background: #ff3b30; color: #fff; border: 0; }
.scan-record .scan-dot { background: #fff; }
.scan-stop { background: #0a0f1e; color: #fff; border: 0; }
.scan-send { min-height: 52px; flex: 1 1 100%; font-size: 17px; }
.scan-sum { margin: 0; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.scan-nudge { font-weight: 800; color: var(--gold, #b7791f); }
.scan-note { color: var(--text); background: var(--card-2); border-radius: 10px; padding: 8px 10px; margin: 0; }
.scan-late { display: grid; gap: 8px; justify-items: center; }
.scan-later { justify-self: center; }
.scan-found .f-chip.on { background: #16a37f; border-color: #16a37f; color: #fff; }
.ob-scanning .scan-head h2 { font-size: 18px; }
.ob-resume { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; font: inherit; color: inherit; cursor: pointer; }
.ob-bar { position: sticky; bottom: 0; z-index: 5; display: grid; gap: 6px; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: var(--bg); box-shadow: 0 -10px 14px -6px var(--bg), 0 -1px 0 var(--line); }
.ob-bar p { margin: 0; text-align: center; }
@media (prefers-reduced-motion: reduce) { .scan-stage.rec, .scan-rec-badge .scan-dot { animation: none; } }

/* ---- 1.28.0 "Building your plan" and the plan looked over before it's final ---- */
.ob-build { position: relative; display: grid; gap: 14px; justify-items: center; padding: 8px 0 4px; }
.ob-build-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; min-height: 40px; }
.ob-fly { opacity: 0; padding: 7px 12px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); font-weight: 750; font-size: 14px;
  animation: ob-fly .9s cubic-bezier(.3,.7,.3,1) forwards; animation-delay: calc(var(--i, 0) * 150ms); }
.ob-fly.fly-goal { border-color: #2a7bff; } .ob-fly.fly-lim { border-color: #ffb21e; } .ob-fly.fly-gear { border-color: #16d0b0; } .ob-fly.fly-photo, .ob-fly.fly-week { border-color: #a07cff; }
@keyframes ob-fly { 0% { opacity: 0; transform: translateY(-14px) scale(.9); } 55% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: .45; transform: translateY(26px) scale(.86); } }
.ob-build-card { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 4px; width: min(260px, 80%); padding: 18px 12px; border-radius: 20px; background: var(--g-today); color: #04121a; box-shadow: 0 10px 30px rgba(42,123,255,.28); animation: ob-breathe 1.6s ease-in-out infinite; }
.ob-build-card .icon { width: 30px; height: 30px; }
.ob-build-card b { font-size: 18px; }
.ob-build-glow { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-100%); animation: ob-shine 1.8s ease-in-out infinite; }
@keyframes ob-breathe { 50% { transform: scale(1.03); } }
@keyframes ob-shine { to { transform: translateX(100%); } }
.ob-build.stuck .ob-build-card { animation-duration: 3s; }
.ob-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ob-ticks li { opacity: 0; font-weight: 750; animation: ob-tick .4s ease-out forwards; animation-delay: calc(var(--i, 0) * 150ms + 300ms); }
.ob-ticks li.ok { color: var(--text); } .ob-ticks li.skip { color: var(--muted); font-weight: 600; }
@keyframes ob-tick { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .ob-fly { animation: none; opacity: 1; } .ob-build-card, .ob-build-glow { animation: none; } .ob-build-glow { display: none; }
  .ob-ticks li { animation: ob-tick-still .01s linear forwards; animation-delay: calc(var(--i, 0) * 150ms); }
}
@keyframes ob-tick-still { to { opacity: 1; } }
.ob-review { margin: 0; font-size: 15px; }
.ob-week { display: grid; gap: 10px; }
.ob-week .eyebrow { margin: 0; }
.ob-wk { display: grid; gap: 6px; }
.ob-wk-h { font-weight: 750; font-size: 14px; color: var(--muted); }
.ob-pdays { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ob-pday { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card-2); color: inherit; text-decoration: none; min-height: 48px; }
.ob-pday b { flex: 1; } .ob-pday .icon { width: 18px; height: 18px; }
.ob-askwhat { display: grid; gap: 8px; border: 1px solid var(--gold, #b7791f); }
.ob-askwhat p { margin: 0; font-weight: 800; }
.ob-backbar { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 12px 14px; border-radius: 14px; background: var(--g-today); color: #04121a; font-weight: 850; text-decoration: none; }
.ob-backbar .icon { width: 18px; height: 18px; }
.ob-sets { display: inline-flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.ob-set { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--card-2); color: var(--text); font: inherit; font-weight: 850; cursor: pointer; padding: 0; }
.ob-set[disabled] { opacity: .4; }
.ob-final { font-size: 17px; }
/* Record / Stop / Send stay in sight on a phone (Nik's Duo at 466x678 had Record under the fold in the headless run). */
.scan-dyn .scan-btns { position: sticky; bottom: 0; z-index: 4; padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 82%, transparent); }
.ob-scanning .scan-stage { max-height: 40vh; }
.scan-stage { justify-self: center; width: 100%; }
.ob-fly { flex: none; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
.ob-build-chips { width: 100%; }

/* ---- 1.30.0 photos: the shutter on the camera picture; importing older photos ---- */
.ph-take .ph-stage { order: -1; }
.ph-onpic { position: absolute; top: auto; bottom: 92px; left: 0; right: 0; z-index: 3; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 0 8px; }
.ph-pchip { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 0; background: rgba(0,0,0,.55); color: #fff; font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; }
.ph-pchip.on { background: #16a37f; }
.ph-shutter { position: absolute; z-index: 3; left: 50%; bottom: 14px; transform: translateX(-50%); width: 70px; height: 70px; border-radius: 50%; border: 4px solid #fff; background: rgba(255,255,255,.25); padding: 0; cursor: pointer; display: grid; place-items: center; }
.ph-shutter i { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: block; }
.ph-shutter:active i { transform: scale(.9); }
.ph-shutter[disabled] { opacity: .5; }
.ph-hint { text-align: center; margin: 0; }
.ph-import { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ph-import .icon { width: 18px; height: 18px; }
.ph-center { text-align: center; display: block; }
.ph-impbar { display: grid; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--card-2); }
.ph-impbar .eyebrow { margin: 0; }
.ph-date { display: flex; align-items: center; gap: 10px; font-weight: 750; flex-wrap: wrap; }
.ph-date input { min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 0 10px; font: inherit; }

/* ---- 1.30.0 body weight and connected apps ---- */
.body-card { display: grid; gap: 8px; }
.body-card h2 { margin: 0; }
.body-now { margin: 0; font-size: 18px; } .body-now b { font-size: 28px; }
.body-spark { width: 100%; height: 60px; color: var(--accent); }
.body-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.body-add input { flex: 1 1 150px; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); color: var(--text); padding: 0 12px; font: inherit; min-width: 0; }
.body-cardio { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.body-imp { display: grid; gap: 10px; }
.body-eg { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--card-2); font-size: 14px; white-space: pre-wrap; }
.body-text { width: 100%; min-height: 160px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); color: var(--text); padding: 10px 12px; font: 16px/1.4 ui-monospace, monospace; box-sizing: border-box; } /* 1.42.1: 16px, or the iPhone zooms in on focus */
.body-prev { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.body-prev p { margin: 0; } .body-list { margin: 0; padding-left: 18px; }
.body-door, .strava-row { display: flex; align-items: center; gap: 12px; }
.strava-row .row-gap { flex: none; }
.hs { display: grid; gap: 10px; }
.hs-key { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--card-2); }
.hs-code { display: block; padding: 8px 10px; border-radius: 8px; background: var(--bg); font: 13px ui-monospace, monospace; word-break: break-all; user-select: all; }
.hs-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.hs-step { display: grid; gap: 6px; }

/* ---- 1.29.0 the build grinds, then the plan explains itself ---- */
.ob-grind { display: grid; gap: 10px; }
.ob-grind-track { height: 8px; border-radius: 4px; background: var(--card-2); overflow: hidden; }
.ob-grind-bar { display: block; height: 100%; width: 100%; background: var(--g-today); transform-origin: left; transform: scaleX(0); animation: ob-grind var(--dur, 7s) cubic-bezier(.4,.1,.3,1) forwards; }
@keyframes ob-grind { to { transform: scaleX(1); } }
.ob-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ob-stages li { display: flex; align-items: center; gap: 10px; opacity: 0; font-weight: 700; animation: ob-stage-in .3s ease-out forwards; animation-delay: var(--at, 0ms); }
.ob-stage-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; border: 2px solid var(--accent); border-right-color: transparent; animation: ob-spin .7s linear infinite, ob-stage-done .01s linear forwards; animation-delay: 0s, var(--end, 0ms); }
@keyframes ob-stage-in { to { opacity: 1; } }
@keyframes ob-spin { to { transform: rotate(360deg); } }
@keyframes ob-stage-done { to { border-color: #16a37f; background: #16a37f; animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce) { .ob-grind-bar { animation-timing-function: linear; } .ob-stage-dot { animation: ob-stage-done .01s linear forwards; animation-delay: var(--end, 0ms); } }
.ob-sched { margin: 0; }
.ob-why { display: grid; gap: 8px; }
.ob-why .eyebrow { margin: 0; } .ob-why p { margin: 0; } .ob-why ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.ob-sore { border: 1px solid #ffb21e; }
.ob-pday-n { font-size: 12px; font-weight: 850; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; min-width: 44px; }
.ob-firstday { margin: 6px 0 0; }
/* 1.30.0: the stages in sight on a phone - a smaller card, the stages right under it */
.ob-build-card { padding: 10px 12px; }
.ob-build-card .icon { width: 22px; height: 22px; }
.ob-build-chips { min-height: 0; }
.ob-build .ob-fly { font-size: 13px; padding: 5px 10px; }
.ob-build { gap: 8px; padding: 0; }
.ob-build .ob-fly { font-size: 12px; padding: 4px 9px; }
.ob-build-chips { gap: 6px; }
.ob-grind { gap: 6px; }
.ob-stages { gap: 2px; }
.ob-stages li { font-size: 15px; }

/* ---- 1.31.0 getting started as one guided path ---- */
.ob-row.ob-bar { display: flex; align-items: center; gap: 10px; }
.ob-row.ob-bar .h3-start { flex: 1; }
.ob-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ob-slot { display: grid; gap: 6px; justify-items: center; }
.ob-slot-pic { position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 16px; border: 2px dashed var(--line); background: var(--card-2); display: grid; place-items: center; overflow: hidden; padding: 0; cursor: pointer; color: var(--muted); }
.ob-slot.full .ob-slot-pic { border: 2px solid #16a37f; }
.ob-slot-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ob-slot-pic .ph-fig { position: absolute; }
.ob-slot-add { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-weight: 850; color: var(--accent); }
.ob-slot-lbl { font-size: 15px; letter-spacing: .06em; }
.ob-slot.full .ob-slot-lbl { color: #16a37f; }
.ob-slot-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.ob-slot-h { margin: 0; text-align: center; font-size: 26px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.ob-swap { justify-self: center; }
.ob-ph-points { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.ob-wcard { display: grid; gap: 8px; }
.ob-wcard.first { border: 1px solid var(--accent); }
.ob-wname { font-size: 18px; }
.ob-wsore { margin: 0; color: #b7791f; font-weight: 700; }
.ob-wbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.ob-wbtns .btn { flex: 1 1 140px; }
.ob-gym .row-gap { align-items: center; }
.ob-unsure { border-style: dashed; }
.spinner.small { width: 18px; height: 18px; border-width: 3px; }
.ob-back { justify-self: start; color: var(--accent); font-weight: 800; text-decoration: none; padding: 4px 0; }

/* ---- 1.32.0 getting started: easy for anyone (Nik 11-29: "even a senior citizen would be able to navigate") ---- */
.ob { font-size: 18px; }
.ob .h3-start { min-height: 58px; font-size: 19px; }
.ob .btn { min-height: 50px; font-size: 17px; }
.ob .muted, .ob .small { font-size: 16px; }
.ob-backbtn { flex: none; min-height: 58px; min-width: 96px; padding: 0 16px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-weight: 850; font-size: 18px; cursor: pointer; }
.ob-range .f-chip { min-width: 56px; min-height: 52px; font-size: 19px; }
.ob-range-say { margin: 6px 0 0; font-weight: 850; font-size: 20px; color: var(--accent); }
/* the story */
.st-bar { display: flex; gap: 6px; margin-top: 4px; }
.st-bar i { flex: 1; height: 8px; border-radius: 4px; background: var(--card-2); transition: background .3s; }
.st-bar i.on { background: var(--g-today); }
.st-card { display: grid; gap: 12px; padding: 20px; min-height: 300px; align-content: start; animation: st-in .25s ease-out; touch-action: pan-y; }
@keyframes st-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .st-card { animation: none; } }
.st-card .eyebrow { margin: 0; }
.st-big { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 900; letter-spacing: -.01em; }
.c-goal { color: #4fb3ff; } .c-week { color: #2fd3a8; } .c-gym { color: #ffbe3d; } .c-sore { color: #ff8a65; }
.st-facts { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 18px; }
.st-facts b { color: var(--text); }
.st-order { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 20px; }
.st-order b { padding: 6px 12px; border-radius: 12px; background: var(--card-2); }
.st-arrow { color: var(--muted); font-weight: 900; margin: 0 4px; }
.st-small { margin: 0; font-size: 16px; color: var(--muted); }
.st-swaps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 18px; }
.st-swaps li { padding: 10px 12px; border-radius: 12px; background: var(--card-2); }
.st-swaps s { color: var(--muted); }
.st-weeks { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-size: 18px; }
.st-suggest { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px; border-radius: 14px; border: 2px solid var(--accent); }
.st-suggest span { flex: 1 1 200px; }
.st-change { justify-self: start; }
/* the workouts */
.ob-wopen { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 10px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ob-wopen .ob-wn { grid-row: span 2; padding: 6px 10px; border-radius: 10px; background: var(--card-2); font-weight: 850; font-size: 14px; }
.ob-wopen .ob-wname { font-size: 22px; } .ob-wopen small { grid-column: 2; font-size: 16px; } .ob-wopen .icon { grid-row: 1 / span 2; grid-column: 3; width: 22px; height: 22px; }
.ob-wsore { margin: 0; font-weight: 800; color: #ff8a65; font-size: 16px; }
.ob-wstart { width: 100%; }
.ob-moves { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ob-move { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 76px; padding: 10px 12px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ob-move.on { border-color: var(--accent); }
.ob-move .thumb { width: 60px; height: 60px; flex: none; border-radius: 12px; }
.ob-move b { display: block; font-size: 18px; } .ob-move small { display: block; font-size: 16px; color: var(--muted); }
.ob-move-dots { font-size: 26px; font-weight: 900; color: var(--muted); padding: 0 4px; }
.ob-easytag, .ob-swaptag { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 8px; font-size: 14px; font-weight: 800; }
.ob-easytag { background: rgba(255,138,101,.16); color: #ff8a65; } .ob-swaptag { background: var(--card-2); color: var(--muted); }
.ob-sheet { display: grid; gap: 10px; padding: 14px; border-radius: 18px; border: 2px solid var(--accent); background: var(--bg-2); }
.ob-sheet-h { margin: 0; font-weight: 900; font-size: 20px; }
.ob-sheet-btn { width: 100%; min-height: 56px; font-size: 18px; }
.ob-sheet-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ob-remove { color: var(--bad, #e5484d); }
.ob-alt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 8px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ob-alt .thumb { width: 56px; height: 56px; flex: none; }
.ob-alt b { display: block; font-size: 18px; }
.ob-alt-use { font-weight: 900; color: var(--accent); }
/* the away card: no more orange background with brown text - dark, white text, an orange accent (Nik: "a little much on the eyes") */
.h3-hero.away { background: linear-gradient(160deg, #222a38 0%, #1a202b 100%); color: #f4f6fa; box-shadow: inset 4px 0 0 #ffa53d, 0 10px 30px rgba(0,0,0,.3); }
.h3-hero.away .eyebrow { color: #ffbe3d; }
.h3-hero.away .h3-sub, .h3-hero.away p { color: #d6dbe4; }
.is-away .h3-go { background: #ffa53d; color: #1a1205; }
/* J11 (readable): no label under 14px in getting started */
.ob .eyebrow { font-size: 15px; }
.ob .h3-tcap b { font-size: 14px; min-width: 24px; min-height: 24px; }

/* ---- 1.33.0 ---- */
/* the sore-spot swaps inside today's card (no separate list, no arrows) */
.h3-ease { display: grid; gap: 8px; padding: 12px 14px; border-radius: 16px; background: rgba(4, 18, 26, .16); }
.h3-ease-h { margin: 0; font-weight: 850; font-size: 16px; }
.h3-ease ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 16px; }
.h3-ease .lim-pro { color: inherit; }
.h3-ease-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.h3-ease-btns .btn { min-height: 48px; }
.h3-ease-btns .btn:not(.primary) { background: rgba(255, 255, 255, .55); color: #04121a; border-color: transparent; }
.h3-ease-btns .btn.primary { background: #04121a; color: #fff; border-color: transparent; }
.h3-easy { margin: 0; font-weight: 750; font-size: 15px; }
/* the walk-through as today's card, before the first workout */
.h3-hero.h3-walk { background: linear-gradient(160deg, #222a38 0%, #1a202b 100%); color: #f4f6fa; box-shadow: inset 4px 0 0 var(--accent), 0 10px 30px rgba(0,0,0,.3); }
.h3-walk .eyebrow { color: var(--accent); opacity: 1; }
.h3-walk .h3-sub { color: #d6dbe4; }
.h3-walk .h3-start { background: var(--accent); color: var(--accent-ink); }
.h3-walk .h3-else { color: #d6dbe4; }
/* place step: the two "not there" choices */
.ob-later, .ob-nogear { min-height: 64px; }
.ob-later small, .ob-nogear small { font-size: 15px; }
/* the story's 6th card: photos, weight, Apple Health */
.c-track { color: #b49bff; }
.st-track { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--card-2); flex-wrap: wrap; }
.st-track .grow { display: flex; flex-direction: column; min-width: 160px; flex: 1; }
.st-track b { font-size: 18px; } .st-track small { font-size: 15px; color: var(--muted); }
.st-track .btn { min-height: 48px; min-width: 76px; }
.st-track.ok { box-shadow: inset 4px 0 0 var(--good); }
.st-tick { font-size: 24px; font-weight: 900; color: var(--good); }
.st-wform { display: flex; gap: 8px; align-items: center; }
.st-wform input { width: 96px; min-height: 48px; padding: 0 10px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg-2); color: var(--text); font-size: 18px; }
.st-swaps li b { color: var(--text); }
.prog-more { width: 100%; min-height: 50px; margin-top: 6px; }

/* One look (Nik 11-29: "is it as clean and smooth as the onboarding?"): the screens behind Home keep Home's dark colours and
   cards; each keeps its section colour as the line under its title bar and as its accent. (The 1.10.0 light look is the block
   above; deleting this block brings it back.) */
body[data-sec] {
  --bg: #0d141c; --bg-2: #111a24; --card: #162130; --card-2: #1d2a3a; --line: #2b3a4b;
  --text: #eef4f9; --muted: #a9bacb; --faint: #8193a8;
  --accent: var(--sec-on-dark, #8fb4ff); --accent-soft: rgba(143, 180, 255, .16); --accent-ink: #06121c;
  --gold: #f5c451; --gold-soft: rgba(245, 196, 81, .16); --good: #5fd38d; --warn: #f0a040; --bad: #f06060;
  color-scheme: dark;
}
body[data-sec] .top { background: var(--bg); color: var(--text); box-shadow: inset 0 -3px 0 var(--sec); }
body[data-sec] .top .home-btn, body[data-sec] .top .icon-btn { background: var(--card-2); color: var(--text); }
body[data-sec] .top-title, body[data-sec] .top .who { color: var(--text); }
body[data-sec] .top .switch { background: var(--card-2); }
body[data-sec] .top .switch button { color: var(--muted); }
body[data-sec] .top .switch button.on { background: var(--accent); color: var(--accent-ink); }
body[data-sec] .top .offline { color: var(--text); }
body[data-sec] .card { box-shadow: none; }
body[data-sec] .btn.primary { color: var(--accent-ink); }
body[data-sec] .thumb { background: #fff; }
body[data-sec] .cue { background: var(--accent-soft); color: var(--text); border-color: var(--line); }
/* Settings in four groups */
.set-group { display: grid; gap: 12px; }
.set-group-h { margin: 18px 2px 0; font-size: 15px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.set-more > summary { cursor: pointer; list-style: none; padding: 14px 16px; border-radius: var(--radius); background: var(--card); font-weight: 800; min-height: 50px; }
.set-more > summary::-webkit-details-marker { display: none; }
.set-more[open] > summary { margin-bottom: 12px; }
.set-more > .grid, .set-more > div { display: grid; gap: 12px; }
body[data-sec="plan"] { --sec-on-dark: #8fb4ff; } body[data-sec="library"] { --sec-on-dark: #b9a2ff; } body[data-sec="progress"] { --sec-on-dark: #6fe0a6; }
body[data-sec="klaus"] { --sec-on-dark: #ffb070; } body[data-sec="friends"] { --sec-on-dark: #ff9cc0; } body[data-sec="settings"] { --sec-on-dark: #b8c4d0; }
/* readable on every screen behind Home (the same bar as getting started: text 14px+, buttons 50px+) */
body[data-sec] .view .eyebrow, body[data-sec] .view .unit, body[data-sec] .view .goal, body[data-sec] .view small, body[data-sec] .view .small,
body[data-sec] .view .hint, body[data-sec] .view .pill, body[data-sec] .view .h3-here { font-size: 14px; }
body[data-sec] .view .btn { min-height: 50px; }
body[data-sec] .view .thumb.none { color: #4a5663; }
body[data-sec] .view .thumb.more { color: #2b3540; }
body[data-sec] .view .h3-mini { font-size: 14px; min-height: 44px; padding: 0 14px; }

/* 1.34.0: a bottom bar without the step's main button sits at the end of the page, never over the choices (Nik's dad 11-30: the
   place step's bar with only Back took the taps meant for the buttons under it); the four ways to tell us the equipment; focus chips */
.ob-bar.ob-bar-flat { position: static; box-shadow: none; background: transparent; }
.ob-time { margin: 4px 0 0; text-align: center; }
.ob-focus { display: grid; gap: 8px; margin-top: 6px; }
.ob-focus .f-chip, .ob-gear-group .f-chip, .ob-heard .f-chip { min-height: 44px; font-size: 15px; }
.ob-way { min-height: 72px; }
.ob-picks-h { margin: 10px 0 0; }
.ob-pick { min-height: 60px; }
.ob-heard { display: grid; gap: 8px; }
.ob-gear-group { display: grid; gap: 6px; }
.ob-gear-group .eyebrow { margin: 6px 0 0; }
.ob-totap { justify-self: center; }
.ob-bar .ob-skip { min-height: 50px; }

/* 1.35.0 Update equipment: the preview (what's added, what's taken off, the next workout before and after) and a home's switch */
.eq-card { display: grid; gap: 8px; }
.f-chip.eq-add { border-color: var(--c-today); color: var(--text); }
.f-chip.eq-out { opacity: .85; text-decoration: line-through; }
.eq-new b, .eq-gone b { color: var(--c-today); }
.eq-switch .f-chip, .eq-open, .eq-here { min-height: 44px; }
.eq-here { margin-top: 8px; }
.place-body .f-chip, .eq-switch .f-chip { max-width: 100%; white-space: normal; } /* 1.35.0: a chip never makes the page wider than the phone */

/* 1.36.0 Demo: the chip at the top of every screen, its question, and the amber bar; the equipment step's four tiles; talk in the camera */
.demo-chip { min-height: 36px; padding: 4px 14px; border-radius: 999px; border: 1.5px solid #f5b638; background: rgba(245, 182, 56, .14); color: inherit; font: inherit; font-weight: 750; cursor: pointer; }
.demo-ask { display: grid; gap: 8px; margin: 0 0 12px; padding: 12px; border-radius: 16px; border: 1.5px solid #f5b638; background: var(--card); }
.demo-ask-h { margin: 0; display: grid; gap: 2px; }
.demo-ask-h small { color: var(--muted); }
.demo-ask .btn { display: grid; justify-content: start; justify-items: start; text-align: left; gap: 2px; min-height: 56px; padding: 10px 16px; }
.demo-ask .btn small { font-weight: 500; opacity: .85; }
.demo-ask .demo-cancel { justify-self: start; min-height: 44px; }
.ob-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ob-ways .ob-way { flex-direction: column; align-items: flex-start; gap: 6px; min-height: 118px; padding: 12px; }
.ob-ways .ob-way .grow { gap: 2px; }
.ob-ways .ob-way small { font-size: 14px; }
.ob-snap { display: inline-flex; align-items: center; gap: 8px; }
.scan-shut-wrap { position: absolute; left: 0; right: 0; bottom: 14px; display: grid; justify-items: center; gap: 6px; pointer-events: none; }
.scan-shut-say { color: #fff; font-weight: 800; font-size: 15px; text-shadow: 0 1px 4px rgba(0,0,0,.9); }
.scan-shut { pointer-events: auto; width: 78px; height: 78px; border-radius: 50%; border: 5px solid #fff; background: rgba(0,0,0,.28); display: grid; place-items: center; padding: 0; cursor: pointer; box-shadow: 0 2px 12px rgba(0,0,0,.45); }
.scan-shut:disabled { opacity: .55; cursor: default; }
.scan-shut-dot { width: 56px; height: 56px; border-radius: 50%; background: #ff3b30; }
.scan-shut-sq { width: 30px; height: 30px; border-radius: 6px; background: #ff3b30; }
.scan-rec-badge { background: #ff3b30 !important; animation: scan-flash 1.2s ease-in-out infinite; }
@keyframes scan-flash { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .scan-rec-badge { animation: none; } }
.ob-notebox { display: grid; gap: 6px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.ob-notebox-h { font-size: 14px; font-weight: 750; color: var(--muted); }
.ob-notebox-row { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.ob-notebox-row .ob-note-text { flex: 1 1 12em; min-height: 52px; }

/* 1.37.0 the goal areas as tiles; + Add equipment */
.ob-focus-h { margin: 14px 0 0; font-size: 19px; }
.ob-ftiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.ob-ftile { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-weight: 750; font-size: 16px; text-align: left; cursor: pointer; }
.ob-ftile .ob-check { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 14px; line-height: 1; }
.ob-ftile.on { border-color: var(--c-today); background: rgba(47,212,192,.10); }
.ob-ftile.on .ob-check { background: var(--g-today); border-color: transparent; color: #06231f; }
.add-gear { display: grid; gap: 10px; }
.add-gear .ob-notebox { margin-top: 0; }
.add-gear-more { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* 1.38.0 Workouts: the rest of the week, something different, the bottom bar; the sore-spot line; who plans */
.wo .h3-hero { grid-column: 1 / -1; }
.wo-week { display: grid; gap: 8px; }
.wo-week .eyebrow { margin: 6px 2px 0; }
.wo-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; text-align: left; cursor: pointer; min-height: 64px; }
.wo-row .grow { display: grid; gap: 2px; }
.wo-row b { font-size: 17px; }
.wo-diff { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; border: 1.5px dashed var(--line); color: var(--text); text-decoration: none; min-height: 64px; }
.wo-diff .grow { display: grid; gap: 2px; }
.wo-foot { margin: 4px 2px 0; }
.wo-bar { position: sticky; bottom: 0; z-index: 3; padding: 10px 0 12px; background: linear-gradient(to bottom, transparent, var(--bg) 24%); }
.wo-bar .card { margin: 0; }
.bt .wo-bar { grid-column: 1 / -1; }
.wo-go { width: 100%; display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
.ease-line { display: block; width: 100%; margin-top: 8px; padding: 6px 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 750; font-size: 15px; text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.plan-who-card { display: grid; gap: 8px; }
.plan-who .grow { display: grid; gap: 2px; }

/* 1.39.0 tap to talk with a spinner; Talk it through; "A different workout" small pictures; who's training */
.ob-hold.on { background: #be185d; color: #fff; border-color: transparent; animation: talk-pulse 1.2s ease-in-out infinite; }
@keyframes talk-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(236,72,153,.45); } 50% { box-shadow: 0 0 0 8px rgba(236,72,153,0); } }
.ob-hold .spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; display: inline-block; }
@media (prefers-reduced-motion: reduce) { .ob-hold.on, .ob-hold .spin { animation: none; } }
.ob-talk-go { display: flex; justify-content: center; margin: 8px 0; }
.ob-talk-go .ob-hold { min-height: 56px; padding: 0 22px; font-size: 17px; }
.ob-gx { font-weight: 750; }
.wo-minis { display: flex; gap: 4px; margin-top: 4px; }
.thumb.wo-mini { width: 44px; height: 44px; border-radius: 9px; font-size: 12px; }
.ob-notebox-row .ob-hold, .ob-talk-go .ob-hold { min-width: 14.5em; justify-content: center; } /* (its words change; its place doesn't) */
.who-add { margin-top: 6px; }

/* 1.41.0 no surprises at Start: the saved changes, the Replace confirm, the Demo chip off during a workout */
.start-changes { display: grid; gap: 8px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid #f5b638; background: rgba(245, 182, 56, .10); }
.start-changes p { margin: 0; font-size: 15px; }
.start-undo { justify-self: start; min-height: 44px; }
.sh-opt.picked, .sh-alt.picked { border-color: var(--c-today); background: rgba(47,212,192,.12); }
.sh-confirm { position: sticky; bottom: 0; display: grid; gap: 8px; padding: 12px; margin-top: 4px; border-radius: 14px; border: 1.5px solid var(--c-today); background: #0f1c2b; color: #fff; box-shadow: 0 -6px 18px rgba(0,0,0,.35); }
.sh-confirm p { margin: 0; font-weight: 750; color: #fff; } /* (found in the 1.41 run: dark on dark inside the light sheet) */
.sh-yes { min-height: 50px; }
.demo-chip.off { opacity: .4; border-color: var(--line); background: none; cursor: default; }

/* 1.41.0 the Replace sheet, dark like the app (mock-up workout-platform/mockups/1.41-replace) */
.sheet.sh2 { background: #121b28; color: var(--text); border-top: 1px solid var(--line); }
.sheet.sh2 .sheet-handle { background: #3a4a62; }
.sheet.sh2 .sh-head small, .sheet.sh2 .sh-act small, .sheet.sh2 .sh-alt small { color: var(--muted); font-size: 14px; }
.sheet.sh2 .sh-head .thumb { width: 56px; height: 56px; border-radius: 12px; background: #fff; }
.sh-act { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.sh-act .grow { display: grid; gap: 2px; } .sh-act b { font-size: 17px; }
.sh-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex: none; color: #fff; }
.sh-skip .sh-ic { background: linear-gradient(135deg, #14b8a6, #3b82f6); } .sh-swap .sh-ic { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.sh-remove .sh-ic { background: #3a1d24; color: #ff8a8a; } .sh-remove b { color: #ffb4b4; } .sh-back .sh-ic { background: #1d2a3d; }
.sh-chev { color: var(--muted); font-size: 22px; }
.sh-act.picked { border-color: var(--c-today); background: rgba(47,212,192,.10); }
.sheet.sh2 .linkish { color: #c9d3e0; font-weight: 700; justify-self: center; min-height: 44px; }
.sh-back { justify-self: start !important; }
.sh-title { margin: 0; font-size: 18px; font-weight: 800; }
.sh-search { display: flex; gap: 8px; align-items: center; }
.sh-search .sh-find { flex: 1; min-width: 0; min-height: 48px; border: 1.5px solid var(--c-today); background: var(--card); color: var(--text); }
.sh-search .ob-hold { min-width: 0; flex: none; }
.sheet.sh2 .sh-alt { background: var(--card); border: 1px solid var(--line); border-radius: 14px; min-height: 60px; color: var(--text); }
.sheet.sh2 .sh-alt.picked { border-color: var(--c-today); background: rgba(47,212,192,.12); }
.sh-tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #3a4a62; display: grid; place-items: center; font-size: 14px; flex: none; }
.sh-alt.picked .sh-tick { background: var(--c-today); border-color: transparent; color: #06231f; }
.sh-custom { min-height: 48px; border: 1.5px dashed #3a4a62; border-radius: 14px; background: none; color: #c9d3e0; font: inherit; font-weight: 750; cursor: pointer; }
.sh-custom.picked { border-style: solid; border-color: var(--c-today); color: var(--text); }
.sh-bar { position: sticky; bottom: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 0 4px; background: linear-gradient(to bottom, transparent, #121b28 22%); }
.sh-bar .sh-swap-go { flex: 1 1 12em; min-height: 52px; }
.sheet.sh2 .sh-scope { background: var(--card); border: 1px solid var(--line); }
.sheet.sh2 .sh-scope button { color: var(--text); font-size: 14px; min-height: 40px; }
.sheet.sh2 .sh-scope button.on { background: var(--c-today); color: #06231f; }
.sheet.sh2 .sh-step { border-color: var(--line); } .sheet.sh2 .sh-step button { background: #1d2a3d; color: var(--text); } .sheet.sh2 .sh-step small { color: var(--muted); }

/* 1.41.0 J42: a redraw of an open sheet (a pick, a letter, a choice) does not slide it up again */
.sheet-wrap.still .sheet, .sheet-wrap.still .sheet-scrim { animation: none; }

/* ---- 1.42.1 iPhone sweep (Nik 12-01 on his iPhone: "long tap or double tap causes text select to populate and it grabs everything
   ... pulling the card down it is going up and gets stuck ... everything I moved around stayed highlighted"). The desktop engine the
   journey used never selects text like an iPhone, so these are set for every screen here and checked by journey ios142. ---- */
html { touch-action: manipulation; -webkit-tap-highlight-color: transparent; } /* no double-tap zoom anywhere; pinch still works */
body, body * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; } /* a long press never selects or pops a menu */
input, textarea, select, [contenteditable], [contenteditable] * { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
:where(button, a[href], [role=button], label, summary, input, select, textarea) { touch-action: manipulation; }
textarea, select { font: inherit; color: inherit; } /* 16px like the rest, so the iPhone never zooms in on a typing box */
/* an open sheet or picture keeps the page behind it still */
html:has(.sheet-wrap, .swp-wrap, .pv, .overlay) { overflow: hidden; }
.sheet, .swp-sheet, .pv, .overlay, .chat-sheet { overscroll-behavior: contain; }
.sheet-scrim, .swp-scrim { touch-action: none; }

/* 1.43.0 live order (Nik 11-30 / 12-01): hold and drag the moves to come, × to skip or remove (only mine); done like the TV - the last
 * 2 done, "✓ N more done", skipped on one dimmed line at the bottom. */
.lv-move { display: flex; align-items: center; gap: 6px; }
.lv-move > .lv-coming { flex: 1; min-width: 0; }
.lv-grip { flex: none; width: 30px; height: 42px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--faint); font-size: 20px; line-height: 1; cursor: grab; touch-action: none; }
.lv-grip:focus-visible, .lv-x:focus-visible { outline: 2px solid var(--accent); }
.lv-x { flex: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.lv-move.busy { opacity: .55; }
.lv-row.lift { position: relative; z-index: 5; overflow: visible; }
.lv-row.lift .lv-coming { outline: 2px solid var(--accent); box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.lv-row.lift .lv-grip { color: var(--accent); cursor: grabbing; }
.lv-moredone { display: block; width: 100%; min-height: 36px; padding: 0 14px; border: 0; border-radius: 11px; background: none; color: var(--muted); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.lv-skipline { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; padding: 8px 14px; border-radius: 11px; color: var(--faint); font-size: 14px; }
.lv-skip-name { padding: 6px 2px; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline dotted; cursor: pointer; }
.lo-opts { display: grid; gap: 10px; margin: 12px 0; }
.lo-opt { display: grid; gap: 3px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.lo-opt.on { border-color: var(--accent); background: rgba(43,179,163,.12); }
.lo-opt b { font-size: 16px; } .lo-opt small { opacity: .8; }
.lo-cancel { display: block; margin: 0 auto; padding: 8px 12px; }
.lo-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lo-undo { flex: none; padding: 6px 4px; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 750; cursor: pointer; }
/* coach release 2 (1.44.0): whose week Next up follows (Settings), a coach day's time chips, how long they have lifted */
.plan-week-q { display: grid; gap: 8px; margin-top: 6px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
.plan-week[disabled] { opacity: .55; }
.coach-times { display: grid; gap: 6px; margin-bottom: 4px; }
.coach-times .f-chip[disabled] { opacity: .55; }
.coach-time-one { margin: 0 0 4px; }

/* 1.46.0 one screen before Start (Nik 12-01: "Two taps is fine"): Start workout fixed at the bottom of every workout's screen, already in
 * view; the page keeps room under it. And "Short on time? Adjust workout length" on the one fitter. */
.dayplan.dp-has-go { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
.dayplan .start-panel .start-bar { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); width: min(560px, calc(100% - 32px)); display: flex; gap: 8px; margin: 0; }
.dayplan .start-panel .start-bar .btn { min-height: 56px; margin: 0; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.dayplan .start-panel .start-bar .btn.primary.start { flex: 1.4; }
.fit-row { margin: 10px 0 4px; }
.fit-row .eyebrow { margin: 0 0 6px; }

/* 1.46.1 live touches (Nik 12-01, mock-up 1.44-lookahead OK'd): ⇄ Swap and × on every move to come, × on the move on now once a set is
 * saved, looking ahead switches the picture (amber) with one big "Back to …" button, and "Short on time?" during a workout. */
.lv-sw { flex: none; width: 40px; height: 40px; padding: 0; border: 1.5px solid #5b8cff; border-radius: 50%; background: none; color: #9db8ff; font-size: 17px; font-weight: 800; line-height: 1; cursor: pointer; }
/* 1.54.4: a small phone (375/390): the moves to come keep their names whole on two short lines - the row's buttons a little tighter
   (36 px, still a thumb), the name 14 px, UP NEXT closer set (cardfit C2/C5: "Incline Dumbbell Press" had 102 px) */
@media (max-width: 400px) {
  .lv-move { gap: 4px; } .lv-grip { width: 24px; } .lv-sw, .lv-x { width: 36px; height: 36px; }
  .lv-move > .lv-coming { padding: 0 10px; gap: 8px; } .lv-coming-name { font-size: 14px; } .lv-upnext { letter-spacing: .06em; }
}
.lv-sw:focus-visible { outline: 2px solid var(--accent); }
.lv-x-cur { margin-left: auto; align-self: flex-start; }
.lv-short { display: block; width: 100%; margin: 0 0 10px; }

/* 1.48.0 friends step 1: [Start] [Start with a friend] side by side, and the one friend card (friendPicker) */
.start-bar { display: flex; gap: 8px; align-items: stretch; }
.start-bar .btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.start-friend { background: var(--card-2, #1d2836); color: var(--text); border: 1.5px solid var(--accent); font-weight: 750; }
.h3-friend { white-space: nowrap; }
.h3-diff { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }
.fp-list { display: grid; gap: 8px; margin: 12px 0; }
.fp-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1.5px solid #cfd6df; border-radius: 14px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.fp-row.on { border-color: var(--accent); background: #e6f6f3; }
.fp-row b { display: block; font-size: 17px; } .fp-row small { color: #4b5668; font-size: 14px; }
.fp-face { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #0e141d; color: #fff; font-weight: 800; }
.fp-tick { flex: none; width: 28px; font-size: 22px; font-weight: 900; color: var(--accent); text-align: center; }
.fp-go { width: 100%; min-height: 54px; margin: 4px 0 8px; }

/* 1.48.1 "Train together again?" + streak (friendCards) and the invite row in the friend card */
.fc-list { display: grid; gap: 10px; margin: 0 0 12px; }
.fc-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0; }
.fc-card b { display: block; font-size: 17px; } .fc-card small { display: block; margin-top: 2px; }
.fc-card .fp-face { background: var(--accent); color: #04161f; }
.fc-go { flex: none; white-space: nowrap; }
.fp-invite { text-decoration: none; border-style: dashed; }
.fp-face.plus { background: none; color: var(--accent); border: 2px dashed var(--accent); font-size: 24px; }
/* 1.48.2 Change workout on Home's card + the one sets stepper (getting started's editor and the change screen) */
.h3-change { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; opacity: 1; }
.h3-change .icon { width: 18px; height: 18px; }
.set-step { display: inline-flex; align-items: center; gap: 6px; }
.set-step .set-n { min-width: 4.2em; text-align: center; font-weight: 800; }
.dp-acts .set-step .ob-set { width: 34px; height: 34px; }

/* 1.48.7 a workout already going: Open it (the main way) and Start the other day instead, both full width on the white sheet */
.going .going-open, .going .going-new { width: 100%; min-height: 54px; }
.going .going-new { background: #fff; color: #14202b; border: 1.5px solid #cfd6df; }
/* 1.48.7 a sheet already open stays still through a redraw (it slid up once, when it opened) */
.swp-wrap.still > .sheet.swp, .swp-wrap.still > .swp-scrim { animation: none; }

/* 1.48.9 same as last: an empty box's ✓ carries the next set ("✓ 8 × 50") */
.ql-go.same { width: auto; padding: 0 16px; font-size: 18px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ql-go.done { width: auto; padding: 0 16px; white-space: nowrap; }

/* 1.49.0 (Nik 12-03): the set box only after the highlighted set is tapped; Hold to talk steps aside while it is open */
.talk-dock:not(.ql-open) .ql-wrap:not(.demo) { display: none; }
.talk-dock.ql-open .talk-row { display: none; }
/* 1.54.4: typing a set - the picture and cues step aside so the row typed for fits above the keyboard (back when the box closes) */
body.ql-typing .lv-dock { display: none; }
/* ... and the page has room below its last row, so the row typed for can always come up above the keyboard and the box */
body.ql-typing #app { padding-bottom: 75vh; }
.ql-same { justify-self: start; min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--accent); background: var(--card); color: var(--accent); font: inherit; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; cursor: pointer; touch-action: manipulation; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.ql-same[hidden] { display: none; }
.lv-tapto { font-size: 15px; font-weight: 700; color: var(--accent); font-style: normal; }
.lv-sets td.today .rest-clock { position: static; display: inline; pointer-events: none; }
.lv-sets td.today .rest-clock b { display: inline; font-size: 17px; font-weight: 800; letter-spacing: 0; text-shadow: none; color: var(--rc, #80ddd0); }
.lv-sets td.today:has(.rest-clock) .lv-tapto { display: none; }
.prog-tap { width: 100%; padding: 4px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; touch-action: manipulation; }
.talk-tip { justify-self: center; max-width: 100%; margin: 0 0 6px; padding: 7px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 13px; font-weight: 650; text-align: center; cursor: pointer; touch-action: manipulation; }
.talk-tip[hidden] { display: none; }
.talk-tip-x { margin-left: 8px; color: var(--muted); }

/* 1.49.0 (MC-9 12-03: things floated over the card and the record sat half under Hold to talk): the bottom is one solid bar - Hold to talk,
   the set box with its chip, Return to exercise. The page scrolls clear of it; nothing shows through or sits half under a button. */
.talk-dock { bottom: 0; padding-top: 10px; padding-bottom: calc(var(--tabs) + env(safe-area-inset-bottom, 0px) + 12px); gap: 8px; pointer-events: auto;
  background: linear-gradient(to bottom, rgba(13, 20, 28, 0), var(--bg) 12px); border-top: 0; }
.talk-dock .lv-back { position: static; transform: none; box-shadow: none; min-height: 38px; padding: 6px 16px; font-size: 15px; }
.talk-dock.ql-open { padding-top: 12px; box-shadow: 0 -1px 0 var(--line); background: var(--bg); }
.talk-dock .ql-preview { background: none; border: 0; padding: 0 8px; color: var(--muted); }
.talk-dock .ql-same, .talk-dock .ql, .type-btn { box-shadow: none; }

/* 1.50.0 the cue window under the picture (D6/D10, option A): Klaus's colour, big readable text, one line at a time; never over a set */
.cw-slot { padding: 6px 0 2px; }
.lv-dock.away .cw-slot { display: none; } /* 1.54.4: scrolled away from the move on now - the bubble never sits over the list */
.cw { width: min(100%, 560px); margin: 0 auto; border-radius: 14px; background: #1b1530; border: 1px solid #4a3a6e; color: var(--text); text-align: left; box-sizing: border-box; }
.cw-head { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .12em; color: #c9a7ff; }
.cw-head b { flex: 1; min-width: 0; }
.cw-k { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #c9a7ff; color: #1b1030; font-size: 11px; font-weight: 900; display: grid; place-items: center; letter-spacing: 0; }
.cw-dots { display: flex; gap: 4px; } .cw-dots i { width: 6px; height: 6px; border-radius: 50%; background: #4a3a6e; } .cw-dots i.on { background: #c9a7ff; }
.cw-x { flex: none; width: 30px; height: 30px; margin: -6px -6px -6px 0; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 18px; cursor: pointer; touch-action: manipulation; }
.cw.loop { padding: 8px 12px 10px; cursor: pointer; touch-action: manipulation; }
.cw-row { min-height: 2.6em; display: flex; align-items: center; margin-top: 2px; }
.cw-text { font-size: 16px; font-weight: 650; line-height: 1.3; }
.cw.paused .cw-head b::after { content: ' · PAUSED'; color: var(--muted); }
.lv-dock .cw-slot.fold { position: absolute; right: 16px; bottom: 8px; padding: 0; }
.cw.folded { display: inline-flex; align-items: center; gap: 6px; width: auto; padding: 3px 10px 3px 4px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 800; color: #c9a7ff; cursor: pointer; touch-action: manipulation; }
.cw.folded .cw-k { width: 18px; height: 18px; font-size: 10px; }
.cw-more { color: var(--muted); }
.cw.tip { padding: 8px 12px; } .cw.tip .cw-head { font-size: 14px; letter-spacing: 0; color: var(--text); }
.cw-on { flex: none; padding: 6px 14px; border: 0; border-radius: 999px; background: #c9a7ff; color: #1b1030; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; touch-action: manipulation; }
.cw.intro { padding: 10px 14px 12px; background: #1e1733; border-color: #6b55a0; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
.cw.intro .cw-head { font-size: 15px; letter-spacing: 0; color: var(--text); } .cw.intro .cw-head small { color: var(--muted); font-weight: 600; }
.cw.intro ul { margin: 6px 0 8px; padding-left: 18px; font-size: 15px; line-height: 1.35; } .cw.intro li { margin: 3px 0; }
.cw-acts { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
/* the picture gives the window its room on short screens, always the whole figure (contain), never cropped */
.lv-dock.has-cue .m-frame { height: clamp(130px, 23dvh, 220px); }
@media (max-height: 720px) { .lv-dock.has-cue .m-frame { height: clamp(96px, 16dvh, 130px); } }
@media (max-height: 720px) { .cw.intro { padding: 8px 12px 10px; } .cw.intro ul { margin: 4px 0 6px; font-size: 14px; line-height: 1.3; } .cw.intro li:nth-child(n+3) { display: none; } .cw-on { padding: 5px 12px; } }
.compose { box-sizing: border-box; min-width: 0; } .compose .send { flex: none; } .compose .icon-btn.close { flex: none; } /* 1.50.0: never wider than the phone (375) */

/* 1.51.0 Settings: Workout screen (D19) - and what each switch hides */
.card.scr { display: grid; gap: 4px; }
.scr-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.scr-row:first-child { border-top: 0; }
.scr-row .grow { min-width: 0; } .scr-row .sw { flex: none; }
.scr-row.cues { flex-wrap: wrap; } .scr-row.cues .f-chips { flex: none; }
.scr-note { color: var(--warn); }
.scr-muted { margin: 0 0 4px; color: var(--muted); } .linkish { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
body.no-dots .lv-sets .dot, body.no-dots .lv-trail { display: none; }
body.no-record .lv-record { display: none; }
body.no-pics .lv-dock .dock-slot, body.no-pics .lv-shotwrap { display: none; }
body.no-pics .lv-dock .cw-slot.fold { position: static; display: flex; justify-content: flex-end; padding: 4px 0 0; } /* no picture: the Cues pill takes its own line, never on the progress text */
/* MC-9 12-04: on vs off at a glance - on = Klaus's teal with a check, off = dim; the word beside it; the chosen cue level filled */
.scr .sw { width: 54px; background: #0b1118; border-color: #34465a; }
.scr .sw i { background: #5b6b7d; }
.scr .sw.on { background: #80ddd0; border-color: #80ddd0; }
.scr .sw.on i { background: #06231f; }
.scr .sw.on i::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 900; color: #80ddd0; font-style: normal; }
.sw-state { flex: none; width: 2.2em; text-align: right; font-size: 13px; font-weight: 800; color: var(--faint); }
.sw-state.on { color: #80ddd0; }
.scr .f-chips .chip-btn { background: var(--card-2); color: var(--muted); border: 1px solid var(--line); }
.scr .f-chips .chip-btn.on { background: #80ddd0; color: #06231f; border-color: #80ddd0; font-weight: 800; box-shadow: 0 0 0 2px rgba(128, 221, 208, .25); }

/* 1.52.0 (Nik 12-04: the cues scroll for everyone "if it's not invasive"): on a short phone the window is one compact line - K, the tip
   (two lines at most), × - and the picture gives a little more room; the whole figure still shows (contain) */
@media (max-height: 720px) {
  .cw.loop { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; }
  .cw.loop .cw-head { display: contents; } .cw.loop .cw-head b, .cw.loop .cw-dots { display: none; }
  .cw.loop .cw-k { order: 0; } .cw.loop .cw-row { order: 1; flex: 1; min-width: 0; min-height: 0; margin: 0; } .cw.loop .cw-x { order: 2; margin: 0; }
  .cw.loop .cw-text { font-size: 15px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .cw.loop.paused .cw-text { opacity: .7; }
  .lv-dock.has-cue .m-frame { height: clamp(90px, 14dvh, 110px); }
}

/* 1.53.0 (D27, Nik 12-04: "like text bubbles as Coach is talking to you ... and fades away" / "The red or orange writing makes it look like there
   was a bunch of error"): the cues are Klaus / Coach talking - a small teal avatar and one grey chat bubble at a time; calm colours, red only for errors */
.cw-k { background: #80ddd0; color: #06231f; }
.cw.loop { display: flex; align-items: flex-end; gap: 8px; padding: 0; background: none; border: 0; min-height: 42px; }
.cw.loop .cw-head { display: contents; } .cw.loop .cw-head b, .cw.loop .cw-dots { display: none; }
.cw.loop .cw-k { order: 0; width: 26px; height: 26px; font-size: 12px; }
.cw.loop .cw-row { order: 1; flex: 0 1 auto; min-width: 0; min-height: 0; margin: 0; padding: 8px 11px; border-radius: 14px 14px 14px 4px; background: var(--card-2); }
.cw.loop .cw-text { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--text); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.cw.loop .cw-x { order: 2; display: none; } .cw.loop.paused .cw-x { display: grid; place-items: center; }
.cw.loop.paused .cw-row { opacity: .75; }
.cw.intro, .cw.tip { background: var(--card-2); border: 0; border-radius: 14px 14px 14px 4px; box-shadow: none; }
.cw.intro .cw-head, .cw.tip .cw-head { color: var(--text); }
.cw-on { background: #80ddd0; color: #06231f; }
@media (prefers-reduced-motion: reduce) { .cw.loop .cw-row { transition: none; } }
.lv-record.first { border-color: var(--line); border-style: dashed; }
.lv-record.first small { color: #80ddd0; } .lv-record.first em { display: block; color: var(--muted); }
/* the colour pass: notes that are not errors are calm (grey, teal for what to notice); --bad stays for real errors only */
.note { color: var(--text); font-weight: 600; border-left: 3px solid #80ddd0; padding-left: 10px; }
.ph-note, .ob-note, .lim-pro, .lim-heavy, .quiet-stats .down, .rv-box.down .rv-title, .offline, .scr-note { color: var(--muted); }
.scr-note::before { content: 'ⓘ '; color: #80ddd0; }
.ob-easytag { background: var(--card-2); color: var(--muted); font-weight: 700; } .ob-easytag b { color: #80ddd0; font-weight: 800; }
.cw.loop { height: 58px; min-height: 0; } /* a steady height: a one- or two-line bubble never moves the page (nor re-fits it while he looks elsewhere) */
