/* Arete: the same look as the PDF. Dark, light number boxes, volt for today. */

@font-face { font-family: "Barlow Display"; font-weight: 900; font-style: italic; font-display: swap; src: url("fonts/Barlow-BlackItalic.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("fonts/BarlowCondensed-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/BarlowCondensed-Bold.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("fonts/BarlowCondensed-ExtraBold.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: italic; font-display: swap; src: url("fonts/BarlowCondensed-ExtraBoldItalic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/Inter-Bold.woff2") format("woff2"); }

:root {
  --bg: #0A0A0B; --surface: #141416; --surface-2: #1C1C1F; --line: #2A2A2F;
  --fg: #F5F5F7; --muted: #9B9BA3; --dim: #83838C; /* dim: 4.9:1 on surfaces, readable under gym lights */
  --volt: #D4FF3A; --ink: #0A0A0B; --slot: #E9E9ED;
  --red: #FF5A4E;
  /* Volt as a fill (with ink text on it) is the same in both looks; as text, a line or a dot it's the accent. */
  --accent: #D4FF3A; --accent-line: rgba(212, 255, 58, .5);
  --warn: #FFD46B; --warn-line: #8a6f1c; --bad: #FFB4AD; --red-line: #3a1d1b;
  --bg-0: rgba(10, 10, 11, 0); --shadow: rgba(0, 0, 0, .5);
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --bottom-h: 80px;
  color-scheme: dark;
}

/* Light, for a bright gym (More → Screen). Every grey is checked against WCAG AA by the a11y test in both looks. */
html[data-theme="light"] {
  --bg: #F2F2EE; --surface: #FFFFFF; --surface-2: #E8E8E2; --line: #D0D0C8;
  --fg: #0B0B0C; --muted: #4A4A51; --dim: #5B5B63; --slot: #E6E6E0;
  --red: #C42B20; --accent: #3A5500; --accent-line: #8DB000;
  --warn: #7A4F00; --warn-line: #C9A24A; --bad: #B3261E; --red-line: #EDC0BB;
  --bg-0: rgba(242, 242, 238, 0); --shadow: rgba(0, 0, 0, .14);
  color-scheme: light;
}
/* The iPhone status bar is white text over the app (black-translucent), so in light it sits on a dark strip. */
html[data-theme="light"] body::before { content: ""; position: fixed; z-index: 100; top: 0; left: 0; right: 0; height: var(--safe-t); background: #0A0A0B; pointer-events: none; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--fg);
  font: 400 16px/1.45 "Inter", system-ui, sans-serif;
  font-feature-settings: "tnum" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
body.sheet-open { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
button:disabled { opacity: .4; cursor: default; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
b { font-weight: 700; }
p { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { display: inline-flex; width: 1.15em; height: 1.15em; flex: none; }
.icon svg { width: 100%; height: 100%; }
.volt { color: var(--accent); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 13.5px; }
.center { text-align: center; }

/* ---- type ---------------------------------------------------------------- */
.wordmark { font-family: "Barlow Display", var(--cond); font-weight: 900; font-style: italic; letter-spacing: -0.02em; font-size: 24px; line-height: 1; color: var(--fg); }
.wordmark .dot { color: var(--accent); }
.wordmark.huge { font-size: clamp(72px, 30vw, 150px); line-height: .86; display: inline-block; transform: rotate(-7deg); transform-origin: left bottom; }
.display { font-family: var(--cond); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: -0.01em; line-height: .92; margin: 0; }
.display.xl { font-size: clamp(46px, 13vw, 64px); }
.display.l { font-size: clamp(40px, 11vw, 52px); }
.display.m { font-size: 30px; margin-bottom: 14px; }
.kicker { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.kicker.small { font-size: 13px; margin-bottom: 0; }
.kicker.volt { color: var(--accent); }
.note { color: var(--muted); font-size: 14.5px; margin: 16px 0; padding: 14px 16px; background: var(--surface); border-radius: 14px; border-left: 3px solid var(--accent); }
.lead { font-size: 18px; color: var(--fg); margin: 14px 0 20px; }

/* ---- layout -------------------------------------------------------------- */
#app { max-width: 560px; margin: 0 auto; }
.screen { padding: calc(var(--safe-t) + 10px) 18px calc(var(--bottom-h) + 28px); }
/* The start-up message (js/boot.js) and the crash screen: no top bar above them, so they start lower. */
.boot-note, .crash { padding-top: calc(var(--safe-t) + 56px); }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin-bottom: 14px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.back-btn { display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 14px 0 8px; margin-left: -8px; border-radius: 999px; font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 15px; color: var(--muted); }
.back-btn .icon { width: 22px; height: 22px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--surface-2); color: var(--fg); }
.icon-btn .icon { width: 22px; height: 22px; }
.icon-btn.small { width: 38px; height: 38px; background: transparent; color: var(--muted); }
.icon-btn.small .icon { width: 19px; height: 19px; }
.block { margin: 22px 0; }

.week-chip { font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; }
.week-chip b { color: var(--accent); font-size: 16px; }

/* ---- buttons -------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 18px; line-height: 1.1; text-align: center; }
.btn .icon { width: 22px; height: 22px; }
.btn.block { display: flex; width: 100%; margin: 12px 0; }
.btn.big { min-height: 62px; font-size: 21px; }
.btn.primary { background: var(--volt); color: var(--ink); }
.btn.primary:active { filter: brightness(.9); transform: scale(.99); }
.btn.ghost { background: var(--surface-2); color: var(--fg); }
.btn.danger { background: var(--red); color: #fff; }
.btn.danger-ghost { background: transparent; color: var(--red); border: 1.5px solid var(--red-line); }
.btn-row { display: flex; gap: 10px; margin-top: 18px; }
.btn-row .btn { flex: 1; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface-2); font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 14.5px; color: var(--fg); white-space: nowrap; }
.chip-btn .icon { width: 18px; height: 18px; }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--volt); color: var(--ink); font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 14px; line-height: 1.2; white-space: nowrap; }
.pill .icon { width: 15px; height: 15px; }
.pill.outline { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.pill.dim { background: var(--surface-2); color: var(--muted); }
.pill.warn { background: transparent; color: var(--warn); box-shadow: inset 0 0 0 1.5px var(--warn-line); }
.pill.record { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }

/* ---- banners ---------------------------------------------------------------- */
.banner { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 8px 10px 14px; margin: 0 0 14px; }
.banner.warn { border-color: var(--warn-line); }
.banner-text { flex: 1; font-size: 14px; color: var(--muted); }
.banner-btn { flex: none; background: var(--volt); color: var(--ink); font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 14.5px; padding: 9px 14px; border-radius: 999px; }

/* ---- welcome ----------------------------------------------------------------- */
.welcome { background-image: linear-gradient(var(--surface) 1px, transparent 1px), linear-gradient(90deg, var(--surface) 1px, transparent 1px); background-size: 56px 56px; min-height: 100vh; min-height: 100dvh; }
.cover-top { display: flex; justify-content: space-between; font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; color: var(--dim); padding-top: 12px; }
.cover-mark { position: relative; margin: 56px 0 28px; }
.zigzag { display: block; color: var(--accent); }
.cover-zz { width: 78%; max-width: 330px; margin: -4px 0 0 -2px; }
.lt-card.mini { margin: 26px 0 22px; padding: 6px 18px; }
.lt-mini-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.lt-mini-row + .lt-mini-row { border-top: 1px solid var(--line); }
.lt-mini-label { width: 86px; font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: var(--muted); }
.lt-mini-row.today .lt-mini-label, .lt-mini-row.today .lt-mini-val { color: var(--accent); }
.lt-mini-val { flex: 1; font-family: var(--cond); font-weight: 800; font-size: 36px; line-height: 1; }
.lt-mini-val small { font-size: 15px; color: var(--muted); margin: 0 4px 0 2px; font-weight: 700; }
.steps { margin: 0 0 8px; padding-left: 22px; color: var(--fg); font-size: 15px; }
.steps li { margin: 6px 0; }
.steps .icon.inline { width: 18px; height: 18px; vertical-align: -3px; margin-left: 6px; color: var(--accent); }
.welcome-actions { margin-top: 8px; }

/* ---- unlock -------------------------------------------------------------------- */
.unlock-mark { margin: 48px 0 26px; }
.wordmark.big { font-size: 64px; }
.unlock-zz { width: 150px; margin-top: 8px; }
.code-input { font: 600 16px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .02em; text-transform: uppercase; }
.unlock-status { min-height: 22px; font-size: 14.5px; color: var(--muted); margin: 4px 2px 12px; }
.unlock-status.bad { color: var(--bad); }
/* Inside TikTok's or Instagram's browser the screen is short (their bars take room): the way out comes first. */
.open-out .unlock-mark { margin: 28px 0 18px; }
@media (max-height: 740px) { .open-out .unlock-zz { display: none; } .open-out .wordmark.big { font-size: 48px; } }

/* ---- set-up ------------------------------------------------------------------ */
.seg { display: flex; background: var(--surface-2); border-radius: 999px; padding: 4px; gap: 4px; margin-top: 10px; }
.row .seg { margin-top: 0; flex: none; }
.seg-btn { flex: 1; min-height: 46px; padding: 0 14px; border-radius: 999px; font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 16px; color: var(--muted); }
.row .seg-btn { min-height: 38px; min-width: 52px; font-size: 15px; padding: 0 12px; }
.seg-btn.on { background: var(--volt); color: var(--ink); }
.plan-pick { display: grid; gap: 10px; margin-top: 10px; }
.plan-opt { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.plan-opt.on { border-color: var(--accent); }
.plan-days { font-family: var(--cond); font-weight: 800; font-style: italic; font-size: 44px; line-height: 1; width: 34px; color: var(--accent); }
.plan-text { flex: 1; display: flex; flex-direction: column; }
.plan-name { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 19px; }
.plan-who { color: var(--muted); font-size: 14px; }
.radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--dim); flex: none; }
.plan-opt.on .radio { border: 7px solid var(--accent); }

/* ---- today ------------------------------------------------------------------- */
.day-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 8px 0 18px; }
.lift-list { display: grid; gap: 12px; }
.lift-card { display: block; width: 100%; text-align: left; background: var(--surface); border: 1.5px solid var(--surface); border-radius: 20px; padding: 14px 16px 12px; }
.lift-card:active { border-color: var(--line); }
.lift-card.going { border-color: var(--line); }
.lift-card.complete { border-color: var(--accent-line); }
.lc-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.lc-num { font-family: var(--cond); font-weight: 700; color: var(--dim); font-size: 15px; letter-spacing: .06em; }
.lc-name { flex: 1; font-family: var(--cond); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 25px; line-height: 1; }
.lc-sets { font-family: var(--cond); font-weight: 600; color: var(--muted); font-size: 15px; letter-spacing: .04em; white-space: nowrap; }
.lc-swap { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; color: var(--accent); margin: -4px 0 4px; }
.swap-btn { margin: 0 0 12px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--fg); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.chip-row .swap-btn { margin: 0; }
.setup-note { display: flex; align-items: flex-start; gap: 10px; width: 100%; min-height: 44px; margin: 0 0 12px; padding: 11px 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: 15px; line-height: 1.35; text-align: left; overflow-wrap: anywhere; }
.setup-note .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--accent); }
.setup-note b { color: var(--fg); font-weight: 600; }
.lc-row { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.lc-label { width: 50px; flex: none; font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; color: var(--dim); }
.lc-row.today .lc-label { color: var(--accent); }
.lc-val { flex: 1; min-width: 0; font-family: var(--cond); font-weight: 700; font-size: 20px; line-height: 1.15; }
.lc-val.muted { color: var(--muted); font-weight: 600; }
.keep { display: inline-block; max-width: 100%; }

.action-bar { padding: 10px 14px 4px; max-width: 560px; margin: 0 auto; }
.action-bar .btn { margin: 0; box-shadow: 0 8px 30px var(--shadow); }

/* ---- bottom: action, rest dock, tabs ---------------------------------------- */
#bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: linear-gradient(to top, var(--bg) 70%, var(--bg-0)); padding-bottom: var(--safe-b); }
.tabs { display: flex; max-width: 560px; margin: 0 auto; border-top: 1px solid var(--surface-2); background: var(--bg); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 7px; font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--dim); }
.tab .icon { width: 24px; height: 24px; }
.tab.on { color: var(--accent); }

#dock:empty { display: none; }
.dock { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; max-width: 532px; margin: 8px 14px; margin-left: auto; margin-right: auto; width: calc(100% - 28px); background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; padding: 10px 10px 10px 16px; }
.dock-bar { position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform .25s linear; }
.dock-main { flex: 1; display: flex; align-items: baseline; gap: 10px; }
.dock-label { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 14px; color: var(--muted); }
.dock-time { font-family: var(--cond); font-weight: 800; font-size: 38px; line-height: 1; letter-spacing: .01em; }
.dock-btns { display: flex; gap: 6px; }
.dock-btn { min-width: 52px; height: 46px; padding: 0 10px; border-radius: 14px; background: var(--surface); font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 16px; }
/* Rest over: a volt signal you can see from the bench, outlined so the filled button under it is the one to press. */
.dock.done { color: var(--accent); border: 2px solid var(--accent); animation: pulse 1s ease-in-out 4; }
.dock.done .dock-label { color: var(--accent); }
.dock.soon .dock-time { color: var(--accent); }
.dock.done .dock-time { font-size: 26px; font-style: italic; text-transform: uppercase; }
@keyframes pulse { 50% { filter: brightness(1.15); transform: scale(1.015); } }
@keyframes blink { 50% { opacity: .3; } }

/* ---- lift screen -------------------------------------------------------------- */
.lift-screen .topbar { margin-bottom: 4px; }
.lift-screen .topbar-right .kicker { margin-right: 6px; }
.lift-title { margin-bottom: 12px; }
.lift-title.long { font-size: clamp(30px, 9.4vw, 46px); }
.lift-title .alt { font-size: .45em; color: var(--muted); letter-spacing: .02em; white-space: nowrap; }
.facts { display: flex; gap: 8px; margin-bottom: 10px; }
.fact { flex: 1; min-width: 0; flex-wrap: wrap; background: var(--surface); border-radius: 12px; padding: 7px 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.fact-label { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--dim); }
.fact-val { font-family: var(--cond); font-weight: 700; font-size: 19px; white-space: nowrap; }
.counts { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.counts .icon { margin-top: 2px; }
.counts b { color: var(--fg); font-weight: 600; }

.lt-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 14px 16px 16px; margin-bottom: 14px; }
.lt-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; min-height: 30px; }
.lt-head.today { margin-top: 12px; }
.lt-last { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 2px; min-height: 30px; }
.lt-last-val { font-family: var(--cond); font-weight: 800; font-size: 22px; line-height: 1.1; color: var(--fg); }
.lt-last-val small { font-size: 14px; font-weight: 700; color: var(--muted); margin: 0 1px 0 3px; }
.lt-last .lt-date { margin-left: auto; }
.lt-date { font-size: 13.5px; color: var(--dim); }
.lt-slots { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr); align-items: center; gap: 8px; }
.times { color: var(--dim); font-size: 22px; font-weight: 700; }
.slot { background: var(--slot); color: var(--ink); border-radius: 14px; min-height: 66px; display: flex; align-items: baseline; justify-content: center; gap: 4px; padding: 14px 8px 10px; overflow: hidden; }
.slot-num { font-family: var(--cond); font-weight: 800; font-size: 42px; line-height: 1; white-space: nowrap; }
.slot.tight .slot-num { font-size: 31px; }
.slot.tighter .slot-num { font-size: 23px; }
.slot.wrap { align-items: center; }
.slot.wrap .slot-num { font-size: 23px; white-space: normal; line-height: 1.2; text-align: center; }
.slot-unit { font-family: var(--cond); font-weight: 700; font-size: 18px; }
.slot.volt { background: var(--volt); }
.lt-empty { color: var(--muted); font-size: 15px; padding: 6px 0 2px; }
.lt-empty.today { color: var(--fg); }
.rule-line { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rule { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 13.5px; color: var(--dim); }
.rule .icon { width: 15px; height: 15px; }
.rule .arrow { opacity: .6; }
.rule.on { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--fg); }
.rule.on b { color: var(--accent); }
/* Today's target, and why: the whole line is one tap. */
.rule-line.why { width: 100%; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 12px; text-align: left; min-height: 44px; padding: 8px 12px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--accent-line, var(--line)); }
.why-text { font-size: 15px; line-height: 1.35; color: var(--fg); }
.why-text b { color: var(--accent); font-weight: 700; }
.why-q { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--muted); font-family: var(--cond); font-weight: 800; font-size: 16px; }
.why-today { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; font-family: var(--cond); font-size: 22px; }
.why-today b { color: var(--accent); font-weight: 800; }
.method-part { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.method-part > b { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 16px; }
.method-part > span { color: var(--muted); font-size: 14.5px; }
.sources { margin: 6px 0 14px; padding-left: 18px; font-size: 13.5px; color: var(--muted); }
.sources li { margin-bottom: 6px; }
.sources a { color: var(--fg); text-underline-offset: 3px; }
/* A first time: how the last set felt sets the next weight. */
.felt { margin: 4px 0 12px; }
.pad-sign { margin: 0 0 10px; }
.felt-q { font-size: 14.5px; color: var(--fg); }
.felt-seg { margin-top: 8px; }
.felt-seg .seg-btn { min-height: 44px; padding: 0 8px; }
.felt-note { margin: 2px 0 10px; }
.beat-by { display: inline-flex; align-items: center; gap: 8px; font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.beat-by .pill { font-size: 16px; padding: 5px 14px; }

/* Warm-up sets: asked for, ticked off, not logged. */
.warm { background: var(--surface); border-radius: 16px; padding: 4px 16px 8px; margin-bottom: 14px; }
.warm-head { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.warm-head .small { flex: 1; }
.warm-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; border-top: 1px solid var(--line); text-align: left; }
.warm-check { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; }
.warm-row.on .warm-check { background: var(--volt); border-color: var(--volt); color: var(--ink); }
.warm-row.on .wu-w, .warm-row.on .wu-r { color: var(--dim); }
.warm-check .icon { width: 16px; height: 16px; }
.warm-note { padding: 8px 0 4px; border-top: 1px solid var(--line); }
.wu-w { font-family: var(--cond); font-weight: 700; font-size: 18px; width: 84px; flex: none; }
.wu-r { font-family: var(--cond); font-weight: 700; font-size: 18px; width: 38px; flex: none; color: var(--muted); }
.wu-p { font-size: 13.5px; flex: 1; min-width: 0; }
.sets > .chip-btn.warm-add { margin: 2px 8px 10px 0; }

.sets { margin-bottom: 16px; }
.sets-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sets > .chip-btn.add { margin: 2px 0 10px; }
.set-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--surface); border-radius: 14px; padding: 0 14px; min-height: 54px; margin-bottom: 8px; }
.set-row-no { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 14px; color: var(--muted); width: 50px; }
.set-row-val { flex: 1; font-family: var(--cond); font-weight: 700; font-size: 21px; }
/* On a small phone the record pill is just the trophy (still read out as "Record"), so "102.5 kg × 5" stays on one line. */
@media (max-width: 360px) {
  .set-row .rec-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sess-lift .set-row { gap: 8px; padding: 0 10px 0 12px; }
  .sess-lift .set-row-no { width: 44px; letter-spacing: .06em; }
  .sess-lift .set-row-val { font-size: 19px; }
}
/* The lift screen's rows also have the edit pencil: the trophy alone up to a big phone, so "67.5 kg × 10" stays on one line. */
@media (max-width: 420px) {
  .lift-screen .set-row .rec-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.set-row.upcoming { background: transparent; box-shadow: inset 0 0 0 1.5px var(--surface-2); }
.set-row.upcoming .set-row-val { color: var(--dim); }
.set-row .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--volt); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.set-row .tick .icon { width: 16px; height: 16px; }
.row-edit { color: var(--dim); width: 18px; height: 18px; }
.set-card { background: var(--surface); border: 2px solid var(--accent); border-radius: 22px; padding: 14px 14px 4px; margin-bottom: 8px; }
.set-card, .result { scroll-margin-bottom: calc(var(--bottom-h) + 16px); scroll-margin-top: 16px; }
.set-card-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 2px 12px; }
.set-no { font-family: var(--cond); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 22px; }
.set-target { font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; color: var(--muted); }
.set-target b { color: var(--accent); font-size: 17px; letter-spacing: .02em; }
.stepper-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.stepper-label { width: 58px; flex: none; font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--muted); }
.stepper { flex: 1; min-width: 0; display: grid; grid-template-columns: 60px minmax(0, 1fr) 60px; gap: 8px; }
.step { height: 62px; border-radius: 16px; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; color: var(--fg); }
.step:active { background: var(--line); }
.step .icon { width: 26px; height: 26px; }
.step-val { min-width: 0; overflow: hidden; white-space: nowrap; height: 62px; border-radius: 16px; background: var(--slot); color: var(--ink); font-family: var(--cond); font-weight: 800; font-size: 38px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.step-val small { font-size: 17px; margin-left: 3px; }
.step-val.empty { font-size: 17px; white-space: normal; line-height: 1.05; text-align: center; padding: 0 6px; text-transform: uppercase; letter-spacing: .06em; background: var(--surface-2); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.plates { margin: -2px 0 12px 68px; font-size: 14px; color: var(--muted); }
.plates b { color: var(--fg); font-weight: 600; }
/* Each side, as a button: tap for the Plates sheet. 44 px tall, the text where it always was. */
.plates-btn { display: block; width: calc(100% - 68px); min-height: 44px; margin: -12px 0 2px 68px; padding: 11px 0; text-align: left; line-height: 1.35; }
.plates-btn .plates-chev { width: 16px; height: 16px; margin-left: 4px; vertical-align: -3px; color: var(--dim); }
.pad-extra { text-align: center; font-size: 14.5px; color: var(--muted); margin: -4px 0 8px; min-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ---- the Plates sheet ---- */
.pl-total { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 0 0 6px; }
.pl-num { font-family: var(--cond); font-weight: 800; font-style: italic; font-size: 56px; line-height: 1; }
.pl-unit { font-family: var(--cond); font-weight: 700; font-size: 20px; color: var(--muted); text-transform: uppercase; }
.pl-draw { display: flex; align-items: center; height: 116px; margin: 0 0 10px; }
.pl-bar { flex: 0 0 44px; height: 12px; background: var(--line); border-radius: 6px 0 0 6px; }
.pl-collar { flex: none; width: 10px; height: 34px; background: var(--muted); border-radius: 3px; margin-right: 2px; }
.pl-plate { flex: 0 1 auto; min-width: 14px; margin-left: 3px; border-radius: 5px; background: var(--slot); color: var(--ink); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pl-plate span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--cond); font-weight: 800; font-size: 14px; line-height: 1; padding: 0 5px; }
.pl-end { flex: 1 1 24px; min-width: 24px; height: 12px; background: var(--line); border-radius: 0 6px 6px 0; margin-left: 3px; }
.pl-side { text-align: center; font-size: 17px; margin: 0 0 4px; }
.pl-near { text-align: center; margin: 0 0 4px; }
.pl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.pl-chips .chip { min-height: 44px; min-width: 56px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); font-family: var(--cond); font-weight: 700; font-size: 17px; color: var(--muted); }
.pl-chips .chip.on { background: var(--volt); color: var(--ink); }
.plates-sheet .kicker { margin-top: 14px; }
.log-btn { margin: 6px 0 12px !important; min-height: 66px !important; font-size: 23px !important; }
.log-bar { display: flex; align-items: center; gap: 8px; }
.log-bar .log-btn { flex: 1; min-width: 0; padding: 0 14px; gap: 10px; }
.lb-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.02; min-width: 0; }
.lb-main { white-space: nowrap; }
.lb-sub { font-size: 17px; letter-spacing: .05em; opacity: .78; white-space: nowrap; text-transform: none; }
.rep-btn { flex: none; width: 56px; height: 66px; margin: 6px 0 12px; border-radius: 20px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line), 0 8px 30px var(--shadow); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--muted); }
.rep-btn .icon { width: 24px; height: 24px; color: var(--fg); }
.rep-btn:active { background: var(--line); }

.result { display: flex; align-items: center; gap: 14px; background: var(--volt); color: var(--ink); border-radius: 20px; padding: 16px 18px; margin: 4px 0 6px; }
.result.dim, .result:not(.beat) { background: var(--surface-2); color: var(--fg); }
.result-icon { width: 34px; height: 34px; }
.result-title { font-family: var(--cond); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 28px; line-height: 1; }
.result-sub { font-size: 15px; margin-top: 3px; opacity: .85; }
.result.beat .result-sub { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 18px; opacity: 1; }

.log-table { margin-top: 26px; }
.lt-grid { background: var(--surface); border-radius: 16px; padding: 4px 14px; }
.lt-grid-row { display: grid; grid-template-columns: 68px 64px 1fr 30px; align-items: center; gap: 8px; min-height: 44px; border-bottom: 1px solid var(--line); font-family: var(--cond); font-weight: 700; font-size: 18px; }
.lt-grid-row:last-child { border-bottom: 0; }
.g-date { color: var(--muted); font-weight: 600; font-size: 16px; }
.g-beat { width: 26px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; }
.g-beat.on { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.g-beat .icon { width: 16px; height: 16px; }

/* ---- summary --------------------------------------------------------------------- */
.summary { padding-top: calc(var(--safe-t) + 40px); }
.summary-zz { width: 160px; margin-bottom: 26px; }
.xp-card { display: block; width: 100%; text-align: left; margin: 0 0 18px; padding: 14px 16px 12px; border-radius: 18px; background: var(--surface); }
.xp-card.up { box-shadow: inset 0 0 0 1.5px var(--accent-line); }
.xp-top { display: flex; align-items: center; gap: 10px; }
.xp-gain { font-family: var(--cond); font-weight: 800; font-style: italic; font-size: 24px; line-height: 1; color: var(--accent); }
.xp-level { flex: 1; min-width: 0; font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; color: var(--muted); }
.xp-card.up .xp-level { color: var(--fg); }
.xp-chev { width: 18px; height: 18px; color: var(--dim); }
.xp-card .level-bar { display: block; margin: 10px 0 2px; height: 8px; }
.xp-goal { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 600; font-size: 15px; }
.xp-goal .icon { width: 18px; height: 18px; color: var(--accent); flex: none; }
.milestone { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--accent-line); }
.milestone > .icon { width: 30px; height: 30px; flex: none; }
.milestone-title { font-family: var(--cond); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 22px; line-height: 1.1; letter-spacing: .01em; }
.milestone-sub { margin-top: 3px; font-size: 14.5px; line-height: 1.35; color: var(--muted); }
.sum-list { display: grid; gap: 8px; margin-bottom: 8px; }
.wnote { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; margin: 12px 0; padding: 12px 16px; background: var(--surface); border-radius: 14px; color: var(--fg); text-align: left; font: inherit; font-size: 15px; }
.wnote.add { color: var(--muted); font-weight: 500; }
.wnote.add .icon { width: 18px; height: 18px; color: var(--accent); }
.wnote-text { flex: 1; min-width: 0; font-style: italic; overflow-wrap: anywhere; }
.sum-row { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 14px; padding: 12px 14px; flex-wrap: wrap; }
.sum-name { font-family: var(--cond); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 19px; flex: 1 1 100%; }
.sum-val { flex: 1; font-family: var(--cond); font-weight: 700; font-size: 18px; color: var(--muted); }
.sum-row > .icon { width: 20px; height: 20px; }
.sum-name .icon { width: 18px; height: 18px; margin-right: 6px; vertical-align: -2px; }
.summary .block .sum-row { margin-top: 8px; }

/* ---- records ---------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin: 16px 0 18px; }
.stat { background: var(--surface); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; }
.stat-num { font-family: var(--cond); font-weight: 800; font-size: 42px; line-height: 1; }
.stat-label { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.rec-list { display: grid; gap: 10px; margin-bottom: 18px; }
/* Path: level, goals and where each lift is heading. */
.level-card { background: var(--surface); border-radius: 22px; padding: 18px 18px 16px; margin: 18px 0 4px; box-shadow: inset 0 0 0 1.5px var(--accent-line); }
.level-top { display: flex; align-items: center; gap: 16px; }
.level-badge { flex: none; width: 74px; height: 74px; border-radius: 20px; background: var(--volt); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.level-word { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 11.5px; line-height: 1; }
.level-num { font-family: var(--cond); font-weight: 800; font-style: italic; font-size: 42px; line-height: .95; }
.level-text { min-width: 0; }
.level-rank { font-family: var(--cond); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 30px; line-height: 1; }
.level-sub { margin-top: 4px; font-size: 15px; color: var(--muted); }
.level-bar { height: 10px; border-radius: 999px; background: var(--surface-2); margin: 16px 0 10px; overflow: hidden; }
.level-fill { display: block; height: 100%; border-radius: 999px; background: var(--volt); transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.level-foot { font-size: 13px; color: var(--dim); }
.goal-list { background: var(--surface); border-radius: 20px; padding: 2px 16px; }
.goal-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 58px; padding: 8px 0; text-align: left; border-bottom: 1px solid var(--line); }
.goal-row:last-child { border-bottom: 0; }
.goal-icon { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent-line); }
.goal-icon .icon { width: 16px; height: 16px; }
.goal-row.done .goal-icon { background: var(--volt); color: var(--ink); box-shadow: none; }
.goal-text { display: flex; flex-direction: column; min-width: 0; }
.goal-name { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: 17px; line-height: 1.15; overflow-wrap: anywhere; }
.goal-what { font-size: 14px; color: var(--muted); }
.goal-when { font-family: var(--cond); font-weight: 700; font-size: 16px; color: var(--accent); text-align: right; max-width: 112px; line-height: 1.15; }
.fc-list { display: grid; gap: 10px; }
.fc-card { position: relative; display: block; width: 100%; text-align: left; background: var(--surface); border-radius: 20px; padding: 14px 16px 12px; }
.fc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.fc-name { font-family: var(--cond); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 20px; line-height: 1.05; min-width: 0; overflow-wrap: anywhere; }
.fc-unit { flex: none; font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--dim); }
.fc-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.fc-col { display: flex; flex-direction: column; min-width: 0; }
.fc-col + .fc-col { border-left: 1px solid var(--line); padding-left: 8px; }
.fc-when { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--dim); }
.fc-val { font-family: var(--cond); font-weight: 800; font-size: 26px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.fc-col:not(:first-child) .fc-val { color: var(--accent); }
.fc-range { font-family: var(--cond); font-weight: 600; font-size: 13px; color: var(--muted); white-space: nowrap; min-height: 16px; }
.fc-ahead { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; color: var(--accent); }
.fc-ahead .icon { width: 15px; height: 15px; flex: none; }
.fc-chart svg { display: block; width: 100%; height: auto; overflow: visible; margin: 6px 0 12px; }
.fc-band { fill: var(--accent); opacity: .14; }
.fc-mid { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 4; stroke-linecap: round; }
.fc-mark { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.path-wait { margin-top: 12px; }
/* A lift's goals in its Path sheet, joined into a path: a solid line between goals passed, a faint one ahead. */
.goal-ladder { margin-top: 18px; }
.goal-ladder .kicker { margin-bottom: 8px; }
.goal-ladder .goal-row { position: relative; border-bottom: 0; }
.goal-ladder .goal-row:not(:last-child)::after { content: ""; position: absolute; left: 14px; width: 2px; top: calc(50% + 17px); bottom: calc(-50% + 17px); border-radius: 1px; background: var(--accent-line); }
.goal-ladder .goal-row.done:has(+ .goal-row.done)::after { background: var(--volt); }
.goal-ladder .goal-row.done .goal-when { color: var(--muted); font-weight: 600; }
.path-first { margin-top: 10px; color: var(--muted); }
.path-first b { color: var(--fg); }
.goal-today { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 15px; line-height: 1.35; color: var(--muted); }
.goal-today .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--accent); flex: none; }
.goal-today b { color: var(--fg); }
.path-example { margin-top: 16px; }
.sheet .fc-cols { margin-bottom: 16px; }
.path-how { margin-top: 10px; color: var(--accent); }
.trend-block { margin-bottom: 20px; }
.trend { background: var(--surface); border-radius: 20px; padding: 4px 16px; }
.trend-lead { font-size: 15px; color: var(--muted); padding: 12px 0 10px; border-bottom: 1px solid var(--line); }
.trend-lead b { color: var(--fg); font-weight: 700; }
.trend-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 76px 58px; align-items: center; gap: 12px; width: 100%; min-height: 50px; text-align: left; border-bottom: 1px solid var(--line); }
.trend-row:last-child { border-bottom: 0; }
.trend-name { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: 17px; line-height: 1.15; padding: 6px 0; overflow-wrap: anywhere; }
.trend-row .spark { width: 76px; height: 24px; }
.trend-pct { font-family: var(--cond); font-weight: 800; font-size: 21px; text-align: right; font-variant-numeric: tabular-nums; }
.trend-pct.up { color: var(--accent); }
.trend-pct.flat { color: var(--muted); }
.rec-head { margin-top: 4px; }
.rec-card { display: block; width: 100%; text-align: left; background: var(--surface); border-radius: 20px; padding: 14px 16px; }
.rec-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.rec-name { font-family: var(--cond); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 22px; line-height: 1; }
.spark { display: inline-flex; width: 110px; height: 32px; color: var(--accent); }
.spark svg { width: 100%; height: 100%; overflow: visible; }
/* A lift's progress line, at the top of its log. */
.pc { margin: 4px 0 6px; }
.pc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.pc-read { font-family: var(--cond); font-weight: 700; font-size: 16px; white-space: nowrap; }
.pc-read b { font-size: 19px; color: var(--fg); }
.pc-plot { height: 150px; touch-action: pan-y; cursor: crosshair; }
.pc-plot svg { display: block; overflow: visible; max-width: 100%; }
.pc-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pc-tick { fill: var(--dim); font-family: var(--cond); font-weight: 600; font-size: 12px; }
.pc-area { fill: var(--accent); opacity: .1; }
.pc-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pc-hair { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.pc-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; vector-effect: non-scaling-stroke; }
.pc-up { fill: var(--surface); stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.pc-read-up { color: var(--accent); }
.pc-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.pc-key { flex: none; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--accent); }
.pc-read-up .pc-key { display: inline-block; width: 9px; height: 9px; margin: 0 4px 0 0; vertical-align: 0; }
.rec-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rec-cols > div { display: flex; flex-direction: column; }
.rec-label { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 11.5px; color: var(--dim); }
.rec-val { font-family: var(--cond); font-weight: 800; font-size: 26px; line-height: 1.1; }
.rec-val small { font-size: 14px; margin-left: 2px; color: var(--muted); }
.rec-last { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 15px; }
.rec-last .rec-label { flex: none; }
.rec-last-val { flex: 1; min-width: 0; color: var(--fg); }
.rec-last-date { flex: none; font-size: 13.5px; color: var(--muted); }
.rec-last + .rec-foot { border-top: 0; padding-top: 0; margin-top: 6px; }
.rec-foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.empty-zz { width: 120px; margin: 0 auto 18px; opacity: .8; }

/* ---- log ---------------------------------------------------------------------------- */
.log-list { display: grid; gap: 8px; margin-top: 16px; }
.log-week { display: flex; justify-content: space-between; margin: 14px 2px 0; font-family: var(--cond); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.log-week:first-child { margin-top: 0; }
.log-week .dim { font-weight: 600; }
.log-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface); border-radius: 16px; padding: 12px 14px; min-height: 64px; }
.log-main { flex: 1; display: flex; flex-direction: column; }
.log-date { font-family: var(--cond); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 21px; line-height: 1.1; }
.log-day { font-size: 14px; color: var(--muted); }
.log-note { font-size: 13px; color: var(--dim); font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.log-main { min-width: 0; }
.log-score { font-family: var(--cond); font-weight: 600; font-size: 16px; color: var(--muted); }
.log-score b { font-size: 22px; }
.row-chev { color: var(--dim); width: 18px; height: 18px; }
.log-month { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface); border-radius: 16px; padding: 12px 16px; min-height: 56px; margin-top: 6px; }
.log-month-name { flex: 1; font-family: var(--cond); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 22px; line-height: 1.1; }
.log-month-n { font-family: var(--cond); font-weight: 600; font-size: 16px; color: var(--muted); }
.log-month .chev { color: var(--dim); width: 18px; height: 18px; transition: transform .2s; }
.log-month[aria-expanded="true"] { background: var(--surface-2); }
.log-month[aria-expanded="true"] .chev { transform: rotate(180deg); }
.sess-lift { background: var(--surface); border-radius: 18px; padding: 14px; margin: 12px 0; }
.sess-lift .set-row { background: var(--surface-2); margin: 8px 0 0; }
.sess-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.sess-name { font-family: var(--cond); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 22px; }
.session .btn.danger-ghost { margin-top: 26px; }

/* ---- more ------------------------------------------------------------------------------ */
.group { margin: 22px 0; }
.group > .kicker { margin: 0 4px 8px; }
.group-rows { background: var(--surface); border-radius: 18px; overflow: hidden; }
.group-note { font-size: 14px; color: var(--muted); padding: 14px 16px 6px; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; min-height: 60px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.group-rows > .row:last-child { border-bottom: 0; }
.sheet .row { padding-left: 0; padding-right: 0; }
.row-text { flex: 1; min-width: 0; }
.row-label { font-weight: 600; font-size: 16px; }
.row-sub { font-size: 13.5px; color: var(--muted); }
.row-value { font-family: var(--cond); font-weight: 700; font-size: 18px; color: var(--accent); white-space: nowrap; }
.switch { width: 52px; height: 32px; border-radius: 999px; background: var(--line); position: relative; flex: none; transition: background .15s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--fg); transition: transform .15s; }
.switch.on { background: var(--volt); }
.switch.on span { transform: translateX(20px); background: var(--ink); }
.mini-stepper { display: flex; align-items: center; gap: 6px; flex: none; }
.step.small { width: 44px; height: 44px; border-radius: 12px; }
.step.small .icon { width: 20px; height: 20px; }
.mini-val { min-width: 64px; text-align: center; font-family: var(--cond); font-weight: 800; font-size: 21px; }
.foot { margin-top: 18px; line-height: 1.6; }

/* ---- plan editor ----------------------------------------------------------------------- */
.pe-day { background: var(--surface); border-radius: 20px; padding: 12px 12px 14px; margin: 14px 0; }
.pe-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.pe-name { display: inline-flex; align-items: center; gap: 8px; font-family: var(--cond); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 26px; padding: 4px; }
.pe-name .icon { width: 16px; height: 16px; color: var(--dim); }
.pe-lift { display: flex; align-items: center; gap: 6px; padding: 8px 0 8px 4px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pe-lift-text { flex: 1 1 140px; display: flex; flex-direction: column; min-width: 0; }
.pe-lift-name { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: 18px; }
.pe-lift-text { text-align: left; align-items: flex-start; min-height: 44px; justify-content: center; }
.pe-lift-text .pe-lift-name { display: inline-flex; align-items: center; gap: 6px; }
.pe-lift-text .icon { width: 14px; height: 14px; color: var(--dim); }
.pe-lift .mini-val { min-width: 60px; font-size: 17px; }
.pe-moves { display: flex; }
.chip-btn.add { margin-top: 8px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--accent); }

/* ---- sheets ----------------------------------------------------------------------------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .62); display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease-out; }
.sheet { width: 100%; max-width: 560px; max-height: 88vh; max-height: 88dvh; overflow-y: auto; background: var(--surface); border-radius: 26px 26px 0 0; padding: 6px 20px calc(var(--safe-b) + 20px); animation: rise .22s cubic-bezier(.2, .8, .2, 1); overscroll-behavior: contain; }
.sheet:focus { outline: none; }
.sheet.tall { min-height: 60vh; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 6px auto 8px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sheet-title { font-family: var(--cond); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 28px; line-height: 1; margin: 0; }
.sheet-text { font-size: 15.5px; margin: 0 0 12px; color: var(--fg); }
.sheet-text.dim { color: var(--muted); font-size: 14px; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.pick-list { display: grid; gap: 8px; margin-top: 8px; }
.pick { display: flex; flex-direction: column; text-align: left; background: var(--surface-2); border-radius: 16px; padding: 12px 16px; border: 1.5px solid transparent; }
.pick.on { border-color: var(--accent); }
.pick-name { font-family: var(--cond); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 22px; }
.pick-sub { font-size: 13.5px; color: var(--muted); }
.text-input { width: 100%; height: 56px; border-radius: 14px; border: 0; background: var(--slot); color: var(--ink); font: 600 18px "Inter", sans-serif; padding: 0 16px; margin-bottom: 12px; }
.copy-area { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); font: 12px ui-monospace, monospace; padding: 10px; margin: 10px 0 0; resize: vertical; }
.copy-details { margin: 14px 0 4px; }
.copy-details summary { color: var(--muted); font-size: 14px; cursor: pointer; padding: 12px 0; }
.stuck { padding-left: 22px; margin: 0 0 12px; }
.stuck li { margin: 0 0 12px; }
.stuck b { display: block; font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 17px; }
.stuck span { color: var(--muted); font-size: 14.5px; }
.ladder { display: grid; gap: 6px; margin: 2px 0 18px; }
.ladder-row { display: flex; flex-direction: column; background: var(--surface-2); border-radius: 14px; padding: 10px 14px; border-left: 3px solid var(--accent); }
.ladder-row > b, .fix > b { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 16px; }
.ladder-row span, .fix > span { color: var(--muted); font-size: 14.5px; }
.fixes { display: grid; gap: 8px; margin: 8px 0 16px; }
.fix { display: flex; flex-direction: column; background: var(--surface-2); border-radius: 14px; padding: 12px 14px; }
.fix-num { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 15px; }
.fix-num b { color: var(--accent); font-family: var(--cond); font-weight: 800; font-size: 20px; }
.glossary { margin: 0; }
.glossary dt { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 17px; margin-top: 12px; }
.glossary dd { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }
.rule-table { display: grid; gap: 8px; margin-bottom: 16px; }
.rule-table > div { display: flex; flex-direction: column; background: var(--surface-2); border-radius: 14px; padding: 12px 14px; }
.rule-table b { font-family: var(--cond); text-transform: uppercase; letter-spacing: .05em; font-size: 15px; color: var(--muted); }
.rule-table span { font-family: var(--cond); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 22px; color: var(--accent); }

/* home */
.date-chip { font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 14px; color: var(--muted); }
.home > .kicker { margin: 2px 2px 10px; }
.hero { background: var(--surface); border: 1.5px solid var(--line); border-radius: 26px; padding: 16px 16px 8px; }
.hero.live { border-color: var(--accent-line); }
.hero-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hero-head .kicker { margin-bottom: 6px; }
.hero-count { font-family: var(--cond); font-weight: 800; font-style: italic; font-size: 26px; color: var(--muted); line-height: 1; padding-top: 4px; }
.hero-count b { font-size: 44px; color: var(--accent); }
.hero-note { font-size: 14.5px; font-style: italic; color: var(--fg); margin: 0 0 8px; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.hero-note .dim { font-style: normal; }
.back-note { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.last-line { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; margin: -6px 0 6px; text-align: left; font-size: 15px; color: var(--fg); }
.last-line span { flex: 1; }
.last-line .icon { flex: none; width: 18px; height: 18px; }
.lt-card .back-note { margin: -2px 0 6px; }
.hero-meta { font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; color: var(--muted); margin: 10px 0 6px; }
.hero-bar { display: flex; gap: 5px; margin: 14px 0 6px; }
.hero-bar span { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-2); }
.hero-bar span.half { background: linear-gradient(90deg, var(--accent) 50%, var(--surface-2) 50%); }
.hero-bar span.on { background: var(--accent); }
.hero-bar span.skip { background: repeating-linear-gradient(135deg, var(--line) 0 4px, var(--surface-2) 4px 8px); }
.hero-rows { display: grid; }
.hrow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 0; min-height: 62px; }
.hrow + .hrow { border-top: 1px solid var(--line); }
.hrow-num { width: 26px; flex: none; font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: .06em; color: var(--dim); display: inline-flex; }
.hrow-num .icon { width: 22px; height: 22px; color: var(--accent); }
.hrow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hrow-name { font-family: var(--cond); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 21px; line-height: 1.05; }
.hrow-line { font-family: var(--cond); font-weight: 700; font-size: 17px; color: var(--fg); margin-top: 2px; }
.hrow.done .hrow-name, .hrow.done .hrow-line { color: var(--muted); }
.hero-link { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 48px; border-top: 1px solid var(--line); font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 14.5px; color: var(--muted); }
.hero-link .icon { width: 18px; height: 18px; }
.card { display: block; width: 100%; text-align: left; background: var(--surface); border-radius: 20px; padding: 14px 16px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; }
.card-big { font-family: var(--cond); font-weight: 700; font-size: 18px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.card-big b { font-size: 30px; font-weight: 800; color: var(--fg); }
.card-big b.volt { color: var(--accent); }
.card-foot { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13.5px; margin-top: 10px; }
.progress { display: grid; gap: 10px; }
.wk-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 12px; }
.wk-day { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.wk-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.wk-dot .icon { width: 18px; height: 18px; }
.wk-day.on .wk-dot { background: var(--accent); }
.wk-day.now .wk-dot { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--fg); }
.wk-day.later .wk-dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--surface-2); }
.wk-letter { font-family: var(--cond); font-weight: 700; font-size: 13px; color: var(--dim); }
.wk-day.now .wk-letter { color: var(--fg); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; text-align: left; background: var(--surface); border-radius: 20px; padding: 14px 16px; }
.tile-num { display: inline-flex; align-items: center; gap: 6px; font-family: var(--cond); font-weight: 800; font-size: 40px; line-height: 1; }
.tile-num .icon { width: 28px; height: 28px; }
.tile-num small { font-size: 20px; color: var(--muted); }
.tile-label { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.tile-sub { font-size: 13px; color: var(--dim); margin-top: 2px; }
.block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.block > .kicker { margin: 0 2px 8px; }
.text-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 36px; min-width: 44px; font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 13.5px; color: var(--accent); }
.text-btn .icon { width: 16px; height: 16px; }
.add-set { margin-top: 4px; }
.list-card { padding: 2px 16px; }
.rec-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; min-height: 54px; }
.rec-row + .rec-row { border-top: 1px solid var(--line); }
.rec-row > .icon { width: 20px; height: 20px; }
.rec-row-name { flex: 1; min-width: 0; font-family: var(--cond); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-row-val { font-family: var(--cond); font-weight: 700; font-size: 18px; white-space: nowrap; }
.rec-row-date { font-family: var(--cond); font-weight: 600; font-size: 14px; color: var(--dim); width: 46px; text-align: right; white-space: nowrap; }
.last-card, .path-teaser { display: flex; align-items: center; gap: 10px; }
.last-main { flex: 1; display: flex; flex-direction: column; }
.last-name { font-family: var(--cond); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 21px; line-height: 1.1; }
.last-sub { font-size: 14px; color: var(--muted); }
.how { display: grid; gap: 12px; }
.how .kicker { margin: 0; }
.how-step { display: flex; gap: 12px; font-size: 15px; }
.setup-hint { margin: 10px 2px 0; line-height: 1.45; }
.how-foot { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.how-foot b { color: var(--fg); font-weight: 600; }
.enter-last { margin-top: 4px; }
.log-all { margin-top: 8px; min-height: 44px; }
.carry-on { min-height: 44px; margin: 2px 0 4px; }
.summary .carry-on { display: flex; margin: 8px auto 0; }
.how-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--volt); color: var(--ink); font-family: var(--cond); font-weight: 800; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; }
.action-bar.slim { padding-top: 8px; padding-bottom: 0; }
.resume { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 8px 0 16px; border-radius: 18px; background: var(--surface-2); border: 1.5px solid var(--accent-line); text-align: left; }
.resume-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; animation: blink 1.6s ease-in-out infinite; }
.resume-text { flex: 1; min-width: 0; display: flex; align-items: baseline; font-size: 14.5px; color: var(--muted); white-space: nowrap; }
.resume-text b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.resume-tail { flex: none; }
.resume-text b { color: var(--fg); font-family: var(--cond); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 17px; }
.resume-go { display: inline-flex; align-items: center; gap: 4px; background: var(--volt); color: var(--ink); border-radius: 999px; padding: 7px 12px 7px 14px; font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 15px; }
/* The strip on the other tabs mid-workout carries the rest timer too (one bar, not two). */
.strip .resume { position: relative; overflow: hidden; }
.strip .dock-bar { height: 3px; }
.strip .dock-time { font-family: var(--cond); font-weight: 800; font-size: 19px; color: var(--fg); }
.strip.soon .dock-time { color: var(--accent); }
.strip.done .resume { background: var(--volt); border-color: var(--volt); animation: pulse 1s ease-in-out 4; }
.strip.done .resume-text, .strip.done .resume-text b { color: var(--ink); }
.strip.done .resume-go { background: var(--ink); color: var(--volt); }
.resume-go .icon { width: 17px; height: 17px; }

/* form cues */
.form-btn { min-height: 38px; padding: 0 14px; }
.cues { margin: 4px 0 16px; padding: 0; list-style: none; counter-reset: cue; display: grid; gap: 10px; }
.cues li { counter-increment: cue; display: flex; gap: 12px; align-items: flex-start; font-size: 17px; font-weight: 500; }
.cues li::before { content: counter(cue); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--volt); color: var(--ink); font-family: var(--cond); font-weight: 800; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; }

/* fuel */
.fuel-num { background: var(--surface-2); border-radius: 18px; padding: 14px 16px; margin: 14px 0 18px; }
.fuel-big { font-family: var(--cond); font-weight: 800; font-size: 64px; line-height: 1; margin: 4px 0 6px; }
.fuel-big small { font-size: 26px; color: var(--muted); margin-left: 4px; }
.fuel-foods { display: grid; margin: 6px 0 6px; }
.fuel-food { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fuel-food-name { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 17px; }
.fuel-food-portion { color: var(--muted); font-size: 14.5px; text-align: right; }
.fuel-habits { margin-top: 16px; }

/* number pad */
.pad-display { display: flex; align-items: baseline; justify-content: center; gap: 6px; background: var(--slot); color: var(--ink); border-radius: 18px; padding: 14px; margin-bottom: 10px; }
.pad-warn { margin: -2px 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); color: var(--warn); font-size: 15px; font-weight: 600; text-align: center; }
.pad-warn.hint { color: var(--muted); font-weight: 500; }
.pad-num { font-family: var(--cond); font-weight: 800; font-size: 56px; line-height: 1; }
.pad-unit { font-family: var(--cond); font-weight: 700; font-size: 22px; }
.pad-top { display: grid; grid-template-columns: 66px minmax(0, 1fr) 66px; gap: 8px; margin-bottom: 10px; }
.pad-top .pad-display { margin-bottom: 0; min-width: 0; padding: 12px 6px; }
.pad-display.long .pad-num { font-size: 40px; }
.pad-display.longer .pad-num { font-size: 32px; }
.pad-nudge { border-radius: 16px; background: var(--surface-2); color: var(--fg); font-family: var(--cond); font-weight: 700; font-size: 17px; white-space: nowrap; }
.pad-nudge:active { background: var(--line); }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; }
.pad-key { height: 62px; border-radius: 16px; background: var(--surface-2); font-family: var(--cond); font-weight: 800; font-size: 30px; display: inline-flex; align-items: center; justify-content: center; }
.pad-key:active { background: var(--line); }
.pad-key .icon { width: 28px; height: 28px; }
/* A short screen (an iPhone SE, or most phones once the typo line shows): shorter keys, so Done stays in view. */
@media (max-height: 700px) {
  .pad-key { height: 54px; }
  .pad-num { font-size: 48px; }
  .pad-display { padding: 10px; }
  .pad-warn { padding: 7px 10px; font-size: 14px; margin-bottom: 8px; }
}
@media (max-height: 600px) {
  .pad-key { height: 48px; }
  .pad .pad-key { font-size: 27px; }
  .sheet .sheet-head { margin-bottom: 8px; }
  .sheet { max-height: 94vh; max-height: 94dvh; }
}

/* toast */
#toast { position: fixed; z-index: 60; left: 0; right: 0; margin: 0 auto; width: max-content; top: calc(var(--safe-t) + 12px); transform: translateY(-160%); display: flex; align-items: center; gap: 10px; max-width: calc(100% - 24px); background: var(--surface-2); color: var(--fg); border: 1px solid var(--line); border-radius: 24px; padding: 12px 18px; font-weight: 600; font-size: 15px; transition: transform .25s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 10px 30px var(--shadow); }
#toast.show { transform: translateY(0); }
/* A toast over the top bar lets taps through to Back and ⋯ underneath; only Undo is its own. */
#toast { pointer-events: none; }
#toast .toast-btn { pointer-events: auto; }
/* A small phone wraps a long one ("New record: 107.5 kg × 6" and Undo) rather than cut the number off. */
#toast > span { min-width: 0; line-height: 1.25; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
#toast.record { background: var(--volt); color: var(--ink); border-color: var(--volt); font-family: var(--cond); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 20px; letter-spacing: .02em; }
#toast .icon { width: 22px; height: 22px; flex: none; }
/* Small-looking buttons get a 44 px hit area, for sweaty hands between sets. */
.icon-btn.small, .banner-btn, .text-btn, .form-btn, .toast-btn, .row .seg-btn { position: relative; }
.icon-btn.small::after, .toast-btn::after { content: ""; position: absolute; inset: -3px; }
.banner-btn::after, .form-btn::after { content: ""; position: absolute; inset: -3px 0; }
.text-btn::after, .row .seg-btn::after { content: ""; position: absolute; inset: -4px 0; }
.toast-btn { flex: none; margin: -6px -8px -6px 4px; padding: 8px 14px; border-radius: 999px; background: var(--volt); color: var(--ink); font-family: var(--cond); font-weight: 800; font-style: normal; text-transform: uppercase; letter-spacing: .08em; font-size: 15px; }
#toast.record .toast-btn { background: var(--ink); color: var(--volt); }

/* The exercise list (0.2.20): search and body-part chips stay at the top while the list scrolls. */
.ex-top { position: sticky; top: -6px; z-index: 2; background: var(--surface); margin: 0 -20px; padding: 6px 20px 8px; border-bottom: 1px solid var(--line); }
.ex-input { margin-bottom: 10px; -webkit-appearance: none; appearance: none; }
.ex-chips { display: flex; gap: 6px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ex-chips::-webkit-scrollbar { display: none; }
.ex-chip { flex: none; min-height: 40px; padding: 0 15px; border-radius: 999px; background: var(--surface-2); font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 15px; color: var(--muted); }
.ex-chip.on { background: var(--volt); color: var(--ink); }
.ex-list { padding-top: 6px; }
.ex-group { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: var(--muted); margin: 16px 2px 4px; }
.ex-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; text-align: left; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.ex-row:active { background: var(--surface-2); }
.ex-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ex-name { font-family: var(--cond); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 20px; line-height: 1.1; overflow-wrap: anywhere; }
.ex-sub { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ex-tag { font-family: var(--cond); font-weight: 700; letter-spacing: .08em; font-size: 11.5px; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); border-radius: 6px; padding: 1px 5px; }
.ex-plus { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--surface-2); color: var(--accent); }
.ex-added { flex: none; display: inline-flex; align-items: center; gap: 4px; font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13.5px; color: var(--muted); }
.ex-added .icon { width: 16px; height: 16px; }
.ex-row.added .ex-name { color: var(--muted); }
.ex-row.make { border-bottom: 0; margin-top: 4px; padding: 10px 14px; border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--line); }
.ex-row.make .ex-name { color: var(--accent); }
.ex-none { color: var(--muted); font-size: 15px; margin: 14px 2px; }
.ex-row.added.on .ex-name { color: var(--fg); }
.ex-row.added.on .ex-added { color: var(--accent); }
.ex-done { position: sticky; bottom: 0; margin: 14px 0 0; box-shadow: 0 -14px 18px 6px var(--surface); }
.form-label { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: var(--muted); margin: 4px 2px 0; }
.form-hint { margin: 8px 2px 4px; line-height: 1.4; }
.sheet .seg-btn { padding: 0 8px; }

/* Set-up: the split cards and the week they build. */
.split-days { margin: 8px 2px 2px; }
.split-days .row { min-height: 52px; padding: 6px 4px; border: 0; }
.wk-ex { display: flex; align-items: center; gap: 8px; padding: 8px 0 8px 4px; border-top: 1px solid var(--line); }
.wk-ex-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wk-ex-name { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: 18px; line-height: 1.15; }
.warn-text { color: var(--warn); }
.add-ex { margin: 12px 0 0; }

/* Home: the days of the plan, next one lit. Swipe when there are many. */
.day-chips { display: flex; gap: 6px; overflow-x: auto; margin: 10px -16px 2px; padding: 0 16px 2px; scrollbar-width: none; }
.day-chips::-webkit-scrollbar { display: none; }
.day-chip { flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; color: var(--muted); white-space: nowrap; }
.day-chip.on { background: var(--volt); color: var(--ink); }

/* The clock for timed sets. */
.hold-btn { margin: 12px 0 0; min-height: 56px; }
.hold-big { font-family: var(--cond); font-weight: 800; font-style: italic; font-size: 84px; line-height: 1; text-align: center; padding: 14px 0 6px; font-variant-numeric: tabular-nums; }
.hold-big.ready { color: var(--muted); }
.hold-big.reached { color: var(--accent); }
.hold-note { margin: 10px 2px 0; }
.hold-bar .rep-btn { width: 64px; }
.hold-stop.reached { animation: pulse 1s ease-in-out 3; }

/* Timed exercises: one wide slot of seconds. Bodyweight: BW in the weight box. */
.lt-slots.one { grid-template-columns: minmax(0, 1fr); }
.step-val .bw { font-size: 30px; letter-spacing: .04em; }

/* Small phones (320 px wide, or Display Zoom on an iPhone SE or mini). */
@media (max-width: 359px) {
  /* Records' numbers a size down, so "57.5 × 6" stays on one line at 320 px. */
  .rec-cols { grid-template-columns: 1.35fr 1fr 1fr; }
  .rec-val { font-size: 22px; }
  .rec-val small { font-size: 12px; }
  /* A record's lift name gets its own line: "Bench press" was cut to "Bench pr…" at 320 px. */
  .rec-row { flex-wrap: wrap; column-gap: 10px; row-gap: 0; padding: 8px 0; }
  .rec-row-name { flex: 1 1 calc(100% - 30px); }
  .rec-row-val { margin-left: 30px; flex: 1; }
  .trend-row { grid-template-columns: minmax(0, 1fr) 60px 52px; gap: 10px; }
  .trend-row .spark { width: 60px; }
  .row-value.wraps { white-space: normal; text-align: right; max-width: 42%; } /* "Strength and muscle" on two lines, so its label isn't squeezed to four */
  .seg-btn { padding: 0 8px; letter-spacing: .05em; white-space: nowrap; } /* "A while" on one line */
  .stepper-label { width: 44px; letter-spacing: .06em; }
  .facts { gap: 6px; }
  .lt-grid { padding: 4px 12px; }
  .lt-grid-row { grid-template-columns: 54px 50px minmax(0, 1fr) 26px; gap: 6px; }
  .fact { padding: 7px 8px; gap: 4px; }
  .fact-label { letter-spacing: .06em; }
  .fact-val { font-size: 18px; }
  .stepper { grid-template-columns: 50px minmax(0, 1fr) 50px; gap: 6px; }
  .step-val { font-size: 31px; }
  .step-val small { font-size: 15px; }
  .slot { padding: 14px 5px 10px; }
  .slot-num { font-size: 33px; }
  .slot.tight .slot-num { font-size: 25px; }
  .slot.tighter .slot-num { font-size: 19px; }
  .slot.wrap .slot-num { font-size: 19px; }
  .slot-unit { font-size: 15px; }
  .dock { gap: 8px; padding-left: 12px; }
  .dock-main { gap: 6px; min-width: 0; }
  .dock-time { font-size: 32px; }
  .dock-btns { gap: 4px; }
  .dock-btn { min-width: 44px; padding: 0 7px; letter-spacing: .02em; }
  .log-btn { font-size: 19px !important; letter-spacing: .04em; padding: 0 16px; gap: 8px; }
  .log-bar { gap: 6px; }
  .log-bar .log-btn { padding: 0 10px; gap: 6px; }
  .rep-btn { width: 46px; }
  .lb-sub { font-size: 15px; }
}
/* Zoomed in: Android's largest display size, or Safari at 125 to 150% on a small iPhone (250 to 300 px).
   Numbers shrink with the screen instead of being cut off, and rows that can't fit side by side stack. */
@media (max-width: 309px) {
  .screen { padding-left: 14px; padding-right: 14px; }
  .lift-pos { display: none; }
  .slot-num { font-size: 9vw; }
  .slot.tight .slot-num { font-size: 7vw; }
  .slot.tighter .slot-num, .slot.wrap .slot-num { font-size: 5.6vw; }
  .slot-unit { font-size: 4.8vw; }
  .lt-slots { gap: 6px; }
  .stepper-row { flex-wrap: wrap; gap: 6px 10px; }
  .stepper-label { flex-basis: 100%; width: auto; }
  .step-val { font-size: 10vw; }
  .wk-row { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
  .wk-dot { width: 8.4vw; height: 8.4vw; }
  .wk-dot .icon { width: 60%; height: 60%; }
  .chip-btn { white-space: normal; text-align: left; line-height: 1.15; padding-top: 8px; padding-bottom: 8px; }
  .log-bar { gap: 4px; }
  .log-bar .log-btn { padding: 0 8px; gap: 4px; }
  .log-btn { font-size: 17px !important; }
  .lb-sub { font-size: 13px; }
  .rep-btn { width: 38px; }
  .dock { gap: 8px; padding-left: 12px; }
  .dock-main { flex-direction: column; align-items: flex-start; gap: 0; min-width: 0; }
  .dock-label { font-size: 11px; }
  .dock-time { font-size: 30px; }
  .dock-btns { gap: 4px; }
  .dock-btn { min-width: 40px; padding: 0 5px; font-size: 14px; letter-spacing: 0; }
  .set-row, .sess-lift .set-row { gap: 6px; padding: 0 10px; }
  .set-row-no, .sess-lift .set-row-no { width: 38px; letter-spacing: .04em; font-size: 13px; }
  .set-row-val, .sess-lift .set-row-val { font-size: 18px; min-width: 0; }
  .set-row .pill.record { padding: 4px 6px; }
  .pad-num { font-size: 15vw; }
  .pad-display.long .pad-num { font-size: 11.5vw; }
  .pad-display.longer .pad-num { font-size: 9.5vw; }
  .pad-unit { font-size: 6vw; }
  .pad-top { grid-template-columns: 54px minmax(0, 1fr) 54px; gap: 6px; }
  .sheet { padding-left: 14px; padding-right: 14px; }
  .ex-top, .ex-chips { margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
  .banner { flex-wrap: wrap; row-gap: 8px; }
  .banner-text { flex-basis: 100%; }
  .banner-btn { margin-right: auto; }
  .seg { flex-wrap: wrap; border-radius: 24px; }
  .seg-btn { flex: 1 1 auto; padding: 0 8px; letter-spacing: .02em; font-size: 14px; }
  .row .seg { flex: 0 1 auto; min-width: 0; }
  .row .seg-btn { min-width: 0; padding: 0 8px; font-size: 14px; }
  .resume-go { padding: 6px 8px 6px 10px; letter-spacing: .02em; font-size: 13px; }
  #toast { padding: 10px 14px; }
  #toast.record { font-size: 17px; }
  .rec-card { padding: 14px 12px; }
  .rec-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .rec-val { font-size: 8.4vw; }
  .rec-val small { font-size: 11px; }
}
/* Motion: small and quick, never in the way. A new screen eases in, a logged set's tick pops,
   and the arrow draws itself on the welcome and workout-done screens. All of it is off with
   Reduce Motion, and each one ends where the still version starts. */
.enter { animation: enter .2s cubic-bezier(.2, .7, .2, 1); }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } }
.set-row.fresh { animation: fresh .7s ease-out; }
.set-row.fresh .tick { animation: pop .34s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes fresh { from { box-shadow: inset 0 0 0 2px var(--accent); } }
@keyframes pop { from { transform: scale(.4); } }
.cover-zz path, .summary-zz path { stroke-dasharray: 190; animation: draw .6s .12s cubic-bezier(.45, 0, .2, 1) both; }
.cover-zz path + path, .summary-zz path + path { stroke-dasharray: 56; animation: draw-head .22s .66s ease-out both; }
@keyframes draw { from { stroke-dashoffset: 190; } }
@keyframes draw-head { from { stroke-dashoffset: 56; } }
@media (max-width: 359px) {
  .fc-val { font-size: 21px; }
  .fc-range { font-size: 11.5px; }
  .fc-col + .fc-col { padding-left: 5px; }
  .level-badge { width: 62px; height: 62px; }
  .level-num { font-size: 36px; }
  .level-rank { font-size: 25px; }
  .goal-when { max-width: 86px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 600px) {
  html:not([data-theme="light"]) body { background: #050506; }
}

/* A phone on its side: the Log button and rest timer sit side by side and get
   shorter, so the set card still has room. */
@media (orientation: landscape) and (max-height: 500px) {
  #bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: 10px; padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  #bottom > .tabs { grid-column: 1 / -1; width: 100%; max-width: 640px; }
  #bottom > #dock:empty { display: none; }
  #bottom:has(> #dock:empty) > :not(#dock):not(.tabs) { grid-column: 1 / -1; }
  .action-bar { padding: 4px 0 2px; max-width: none; width: 100%; }
  .btn.big { min-height: 52px; }
  .log-btn { min-height: 52px !important; margin: 4px 0 6px !important; font-size: 20px !important; }
  .lb-sub { font-size: 15px; }
  .rep-btn { height: 52px; margin: 4px 0 6px; }
  .dock { margin: 4px 0; width: 100%; max-width: none; padding: 6px 8px 6px 14px; }
  .dock-time { font-size: 28px; }
  .dock.done .dock-time { font-size: 22px; }
  .dock-btn { height: 40px; }
  .tab { flex-direction: row; justify-content: center; gap: 6px; padding: 6px 0 5px; }
}
.nowrap { white-space: nowrap; }
