/* CrossCoach: cast iron and chalk, with competition plate colours that carry meaning
   (Push red, Pull blue, Legs yellow, done and recovered green). Fonts are self-hosted (SIL OFL). */
@font-face { font-family: "Big Shoulders"; src: url("fonts/bigshoulders-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Big Shoulders"; src: url("fonts/bigshoulders-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

* { box-sizing: border-box; }
:root {
  color-scheme: dark light;
  --push: #d62839; --pull: #2f62d0; --legs: #f2c230; --full: #2fa05a; --done: #2fa05a;
  --bg: #23272b; --raise: #2c3136; --raise-2: #373d43; --line: #3d444b;
  --ink: #eceeea; --soft: #a3aaaf; --ink-on-focus: #15181b;
  --danger: #e5484d;
  --r: 16px; --tap: 48px;
  --display: "Big Shoulders", "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Barlow", system-ui, sans-serif;
  --focus: var(--full);
  --m-idle: #4a5158; --m-d0: #2fa05a; --m-d1: #6a7a6e; --m-d2: #8a7b45; --m-d3: #b4542f;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #e9ebe7; --raise: #f7f8f5; --raise-2: #dfe2dd; --line: #d0d4ce;
    --ink: #1b1f23; --soft: #5b636a;
    --m-idle: #c9cec8; --m-d0: #2fa05a; --m-d1: #93a99a; --m-d2: #d6b75a; --m-d3: #d0603a;
  }
}

html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.4 var(--text); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- frame: full screen on a phone, a centred column on a desktop ---------- */
.frame { height: 100dvh; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; position: relative; background: var(--bg); }
@media (min-width: 560px) {
  body { background: #1a1d20; }
  .frame { height: calc(100dvh - 48px); margin-top: 24px; border-radius: 28px; overflow: hidden; box-shadow: 0 0 0 1px #ffffff12, 0 30px 80px -30px #000; }
}
@media (min-width: 560px) and (prefers-color-scheme: light) { body { background: #cfd3cd; } .frame { box-shadow: 0 0 0 1px #00000014, 0 30px 80px -30px #0005; } }
#app { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: calc(10px + env(safe-area-inset-top)) 16px 28px; }
#view { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }

/* ---------- tab bar ---------- */
.tabbar { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--raise); border-top: 1px solid var(--line); padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; background: none; border: 0; color: var(--soft); font: 500 12px/1 var(--text); cursor: pointer; border-radius: 12px; position: relative; }
.tab svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab[aria-current="page"] { color: var(--ink); }
.tab[aria-current="page"] svg { stroke-width: 2.3; }
.tab.live::after { content: ""; position: absolute; top: 4px; right: calc(50% - 20px); width: 8px; height: 8px; border-radius: 4px; background: var(--done); }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.sec { font: 700 22px/1 var(--display); letter-spacing: .01em; margin: 6px 0 10px; }
.soft { color: var(--soft); }

/* ---------- buttons ---------- */
.go { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 58px; border: 0; border-radius: var(--r); background: var(--focus); color: var(--ink-on-focus); font: 800 24px/1 var(--display); letter-spacing: .02em; cursor: pointer; }
.go:active { transform: scale(.985); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap); padding: 0 18px; border-radius: 14px; background: var(--raise-2); border: 0; color: var(--ink); font: 600 16px/1 var(--text); cursor: pointer; text-decoration: none; }
.btn.solid { background: var(--ink); color: var(--bg); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 15px; border-radius: 12px; }
.btn:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.textbtn { background: none; border: 0; padding: 10px 0; color: var(--soft); font: 500 16px/1 var(--text); cursor: pointer; }

/* ---------- today: the hero ---------- */
.hero { display: grid; gap: 6px; padding-top: 4px; }
.hero-top { display: flex; justify-content: space-between; align-items: center; }
.date { color: var(--soft); font-weight: 500; }
.why-btn { background: var(--raise-2); border: 0; border-radius: 999px; min-height: 36px; padding: 0 14px; font-weight: 600; cursor: pointer; }
.hero-main { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; }
.focus-word { font: 800 clamp(76px, 25vw, 112px)/.82 var(--display); letter-spacing: -.01em; text-transform: uppercase; margin: 4px 0 0; }
.focus-word::after { content: ""; display: block; height: 10px; width: 64px; margin-top: 12px; border-radius: 5px; background: var(--focus); }
.figs { display: flex; gap: 2px; height: 150px; }
.figs .body { height: 100%; width: auto; }
.lede { font-size: 18px; color: var(--soft); }

/* ---------- swipe rows ---------- */
.sw { position: relative; overflow: hidden; border-radius: 14px; touch-action: pan-y; }
.sw-bg { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 20px; font: 700 18px/1 var(--display); letter-spacing: .03em; opacity: 0; }
.sw-bg.l { justify-content: flex-end; background: var(--danger); color: #fff; }
.sw-bg.r { justify-content: flex-start; background: var(--pull); color: #fff; }
.sw.go-l .sw-bg.l, .sw.go-r .sw-bg.r { opacity: 1; }
.sw-body { position: relative; transition: transform .22s cubic-bezier(.2, .8, .2, 1); will-change: transform; }
.sw.dragging .sw-body { transition: none; }

/* ---------- today: the plan ---------- */
.plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; width: 100%; text-align: left; background: var(--raise); border: 0; border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.pr-name { font-weight: 600; font-size: 17px; line-height: 1.2; }
.pr-last { grid-column: 1; font-size: 14px; color: var(--soft); }
.pr-dose { grid-row: 1 / span 2; grid-column: 2; text-align: right; display: grid; justify-items: end; }
.pr-dose b { font: 700 26px/1 var(--display); }
.pr-dose span { font: 700 17px/1.1 var(--display); color: var(--soft); }
.pr.extra { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 6px; margin-left: 6px; vertical-align: 1px; }
.tag.up { background: color-mix(in srgb, var(--done) 22%, transparent); color: var(--done); }
.tag.down { background: var(--raise-2); color: var(--soft); }
.swipe-hint { text-align: center; font-size: 13px; color: var(--soft); }
.alt-row { display: flex; justify-content: center; margin-top: -10px; }
.go-dock { position: sticky; bottom: -28px; z-index: 3; padding: 18px 0 28px; margin: -18px 0 -28px; background: linear-gradient(to bottom, transparent, var(--bg) 18px); }

/* ---------- other workouts ---------- */
.routines { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; }
.routine { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; background: var(--raise); padding: 10px 12px 10px 14px; }
.routine h3 { font: 700 21px/1.1 var(--display); letter-spacing: .01em; }
.routine p { grid-column: 1; font-size: 14px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.routine .row-btns { grid-row: 1 / span 2; grid-column: 2; gap: 4px; }
.cat-push { --focus: var(--push); } .cat-pull { --focus: var(--pull); } .cat-legs { --focus: var(--legs); } .cat-full, .cat-rest, .cat-done { --focus: var(--full); }

/* ---------- active workout ---------- */
.wk { position: sticky; top: calc(-10px - env(safe-area-inset-top)); z-index: 4; background: var(--bg); padding: 6px 0 10px; margin: -6px 0 0; display: grid; gap: 4px; }
.wk-name { font: 800 34px/1 var(--display); letter-spacing: .01em; color: var(--ink); background: none; border: 0; padding: 0; width: 100%; text-transform: uppercase; }
.wk-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.elapsed { font: 700 22px/1 var(--display); color: var(--soft); font-variant-numeric: tabular-nums; }
.fin { min-height: 44px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--done); color: #fff; font: 800 20px/1 var(--display); letter-spacing: .03em; cursor: pointer; }
.exo { background: var(--raise); border-radius: var(--r); padding: 12px 8px 6px; }
.exo.ss { box-shadow: inset 4px 0 0 var(--pull); }
.ss-tag { display: block; margin: 0 6px 4px; font-size: 13px; font-weight: 600; color: var(--pull); }
.exo-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 6px; }
.exo-name { font: 700 22px/1.05 var(--display); letter-spacing: .01em; text-decoration: none; color: var(--focus); }
.exo-note { margin: 4px 6px 0; font-size: 14px; color: var(--soft); font-style: italic; }
.icon-btn { width: 40px; height: 36px; display: grid; place-items: center; background: var(--raise-2); border: 0; border-radius: 10px; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.sets { display: grid; gap: 4px; margin-top: 8px; }
.set { display: grid; grid-template-columns: 34px minmax(0, 1fr) 68px 60px 46px; gap: 6px; align-items: center; padding: 3px 6px; border-radius: 12px; background: var(--raise); }
.set.head { font-size: 12px; font-weight: 600; color: var(--soft); padding-top: 0; padding-bottom: 0; background: none; }
.set.head span:nth-child(n+3) { text-align: center; }
.set.done { background: color-mix(in srgb, var(--done) 18%, var(--raise)); }
.set-n { width: 32px; height: 32px; border-radius: 9px; border: 0; background: var(--raise-2); font: 700 17px/1 var(--display); cursor: pointer; display: inline-grid; place-items: center; }
.t-warmup .set-n { color: var(--legs); }
.t-drop .set-n, .t-failure .set-n { color: var(--push); }
.prev { font: 700 16px/1.1 var(--display); color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set input { width: 100%; min-height: 42px; text-align: center; font: 700 22px/1 var(--display); color: var(--ink); background: var(--raise-2); border: 0; border-radius: 10px; padding: 0 2px; -moz-appearance: textfield; }
.set input::-webkit-outer-spin-button, .set input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.set input::placeholder { color: var(--soft); opacity: .6; }
.set input:focus { outline: 2px solid var(--focus); outline-offset: 0; }
.set.done input { background: transparent; }
.chk { width: 44px; height: 42px; border-radius: 10px; border: 0; background: var(--raise-2); color: var(--soft); cursor: pointer; display: grid; place-items: center; }
.chk svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chk[aria-pressed="true"] { background: var(--done); color: #fff; animation: pop .25s ease-out; }
@keyframes pop { 50% { transform: scale(1.12); } }
.exo-foot { display: flex; justify-content: space-between; align-items: center; padding: 2px 6px; }
.addset { background: none; border: 0; min-height: 40px; padding: 0; font-weight: 600; color: var(--ink); cursor: pointer; }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.confirm { background: color-mix(in srgb, var(--danger) 16%, var(--raise)); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; }

/* rest timer: a pill above the tab bar */
.restbar { position: absolute; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 6; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 20px; background: var(--ink); color: var(--bg); box-shadow: 0 12px 30px -10px #000a; }
.restbar[hidden] { display: none; }
.resting .scroll { padding-bottom: 96px; }
.ring { width: 44px; height: 44px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring .track { stroke: color-mix(in srgb, var(--bg) 25%, transparent); }
.ring .left { stroke: var(--done); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.rest-t { flex: 1; font: 800 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.rest-b { display: flex; gap: 6px; }
.rest-b button { min-height: 40px; min-width: 46px; border-radius: 12px; border: 0; background: color-mix(in srgb, var(--bg) 14%, transparent); color: var(--bg); font: 700 17px/1 var(--display); cursor: pointer; }
.restbar.over { background: var(--done); color: #fff; }
.restbar.over .rest-b button { color: #fff; }

/* ---------- lists: history, lifts ---------- */
.search { width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--raise); border: 0; border-radius: 14px; min-height: var(--tap); padding: 0 14px; }
.list { display: grid; gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; }
.month { font: 700 18px/1 var(--display); letter-spacing: .02em; color: var(--soft); margin: 14px 2px 8px; }
.hist { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; text-decoration: none; color: var(--ink); background: var(--raise); padding: 12px 14px; }
.h-name { font-weight: 600; font-size: 17px; }
.h-sub { grid-column: 1; font-size: 14px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-right { grid-row: 1 / span 2; grid-column: 2; text-align: right; display: grid; align-content: center; justify-items: end; }
.h-right b { font: 700 22px/1 var(--display); }
.h-right span { font-size: 13px; color: var(--soft); }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; text-decoration: none; color: var(--soft); font-weight: 500; }
.back::before { content: "‹"; font-size: 24px; line-height: 1; margin-top: -3px; }
.title { font: 800 40px/.95 var(--display); letter-spacing: .005em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--raise); border-radius: 14px; padding: 10px 12px; }
.stat b { display: block; font: 700 28px/1 var(--display); }
.stat span { font-size: 13px; color: var(--soft); }
.d-ex { background: var(--raise); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; }
.d-sets { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.d-sets li { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; font: 700 19px/1.1 var(--display); }
.d-sets li .soft { font: 500 13px/1 var(--text); }
.set-n.sm { width: 26px; height: 26px; font-size: 14px; }
.pr-badge { display: inline-block; margin-left: 8px; font: 700 14px/1 var(--display); background: var(--legs); color: var(--ink-on-focus); padding: 4px 7px; border-radius: 6px; vertical-align: 3px; }
.saved { background: color-mix(in srgb, var(--done) 20%, var(--raise)); border-radius: var(--r); padding: 16px; display: grid; gap: 4px; }
.saved h2 { font: 800 30px/1 var(--display); }
.big { font: 800 64px/.9 var(--display); }
.big small { font-size: 26px; color: var(--soft); margin-left: 4px; }
.chart { width: 100%; height: auto; display: block; background: var(--raise); border-radius: 14px; }
.chart polyline { fill: none; stroke: var(--focus); stroke-width: 2.5; stroke-linejoin: round; }
.chart circle { fill: var(--focus); }
.chart text { fill: var(--soft); font: 600 11px var(--text); }
.repmax { display: flex; flex-wrap: wrap; gap: 6px; }
.repmax span { background: var(--raise); border-radius: 10px; padding: 6px 10px; font: 700 18px/1 var(--display); }
.repmax span i { font-style: normal; color: var(--soft); margin-right: 4px; }
.sess { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; }
.sess li { display: grid; grid-template-columns: 70px 1fr; gap: 8px; background: var(--raise); padding: 9px 12px; font-size: 15px; }

/* ---------- you ---------- */
.map { display: flex; justify-content: center; gap: 10px; height: 300px; }
.map .body { height: 100%; width: auto; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 13px; color: var(--soft); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.facts { display: grid; gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; }
.fact { display: grid; grid-template-columns: 110px 1fr; gap: 10px; background: var(--raise); padding: 11px 14px; font-size: 15px; }
.fact > span:first-child { color: var(--soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--raise-2); font: 600 15px/1 var(--text); cursor: pointer; }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
details.fold { background: var(--raise); border-radius: 14px; }
details.fold > summary { list-style: none; cursor: pointer; padding: 13px 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "+"; font: 700 22px/1 var(--display); color: var(--soft); }
details.fold[open] > summary::after { content: "−"; }
details.fold > .fold-body { padding: 0 14px 14px; display: grid; gap: 10px; }
.check { display: grid; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); }
.check:first-child { border-top: 0; padding-top: 0; }
.check h3 { font-size: 16px; font-weight: 600; display: flex; align-items: baseline; gap: 8px; }
.check p { font-size: 14px; color: var(--soft); }
.sev { width: 10px; height: 10px; flex: none; border-radius: 5px; }
.sev-fix { background: var(--push); } .sev-improve { background: var(--legs); } .sev-good { background: var(--done); }
.rid { text-decoration: none; font: 700 13px/1 var(--display); letter-spacing: .03em; padding: 4px 7px; border-radius: 6px; background: var(--raise-2); color: var(--ink); white-space: nowrap; }
a.rid { text-decoration: underline; text-underline-offset: 2px; }
.rid.you { background: color-mix(in srgb, var(--done) 25%, transparent); color: var(--done); }
.rid.own { background: color-mix(in srgb, var(--legs) 25%, transparent); }
.settings { display: grid; gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; }
.setting { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--raise); padding: 8px 14px; min-height: 54px; }
.setting select, .fld input, .fld select, input[type=text] { font: inherit; font-size: 16px; color: var(--ink); background: var(--raise-2); border: 0; border-radius: 10px; min-height: 40px; padding: 0 10px; }
.setting input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--done); }
.fld { display: grid; gap: 4px; font-size: 14px; color: var(--soft); }
.fld input, .fld select { width: 100%; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.days { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.days legend { font-size: 14px; color: var(--soft); margin-bottom: 6px; padding: 0; }
.day-chk { position: relative; }
.day-chk input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.day-chk span { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 10px; background: var(--raise-2); font-size: 14px; font-weight: 600; }
.day-chk input:checked + span { background: var(--ink); color: var(--bg); }
.msgs { display: grid; gap: 6px; }
.msg { font-size: 14px; padding: 8px 12px; border-radius: 10px; }
.msg.ok { background: color-mix(in srgb, var(--done) 18%, var(--raise)); }
.msg.err { background: color-mix(in srgb, var(--danger) 20%, var(--raise)); }
.foot { color: var(--soft); font-size: 13px; text-align: center; }
.empty-hero { display: grid; gap: 14px; padding: 20px 0; }

/* ---------- routine editor ---------- */
.r-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.r-row { display: grid; gap: 8px; background: var(--raise); border-radius: 14px; padding: 10px 12px; }
.r-row.ss { box-shadow: inset 4px 0 0 var(--pull); }
.r-name { font-weight: 600; }
.r-ctl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.r-ctl b { min-width: 24px; text-align: center; font: 700 20px/1 var(--display); }
.r-ctl .icon-btn { width: 40px; height: 36px; font: 700 17px/1 var(--display); }
.r-ctl .icon-btn[aria-pressed="true"] { background: var(--pull); color: #fff; }

/* ---------- sheets ---------- */
.scrim { position: absolute; inset: 0; background: #000a; z-index: 20; animation: fade .18s ease-out; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88%; overflow-y: auto; z-index: 21; background: var(--raise); border-radius: 22px 22px 0 0; padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); animation: up .22s cubic-bezier(.2, .8, .2, 1); display: grid; gap: 12px; }
.sheet::before { content: ""; justify-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin-bottom: 4px; }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
@keyframes fade { from { opacity: 0; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sheet-head h2 { font: 800 28px/1 var(--display); }
.pick-list { display: grid; }
.pick-row { text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 4px; font-size: 16px; cursor: pointer; }
.pick-row.new { color: var(--done); font-weight: 600; }
.menu-list { display: grid; gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; }
.menu-list button { text-align: left; background: var(--raise-2); border: 0; padding: 15px 14px; font-size: 16px; font-weight: 500; cursor: pointer; }
.menu-list .danger-t { color: var(--danger); }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.why-list li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: baseline; font-size: 16px; }
.plates { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.plate { display: inline-grid; place-items: center; min-width: 34px; height: 40px; padding: 0 5px; border-radius: 6px; background: var(--raise-2); font: 700 17px/1 var(--display); }
.plate.kg25, .plate.lb55 { background: var(--push); color: #fff; }
.plate.kg20, .plate.lb45 { background: var(--pull); color: #fff; }
.plate.kg15, .plate.lb35 { background: var(--legs); color: var(--ink-on-focus); }
.plate.kg10, .plate.lb25 { background: var(--full); color: #fff; }
.plates .soft { margin-left: 6px; font-size: 14px; }

/* ---------- muscle figure ---------- */
.body .m { fill: var(--m-idle); }
.body .rest { fill: var(--m-idle); opacity: .55; }
.body .inert, .body .hair { fill: var(--raise-2); }
.body .m.focus { fill: var(--focus); }
.body .m.tired { fill: var(--soft); opacity: .7; }
.body .m.d0 { fill: var(--m-d0); } .body .m.d1 { fill: var(--m-d1); } .body .m.d2 { fill: var(--m-d2); } .body .m.d3 { fill: var(--m-d3); }
