/* 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: #63636B;
  --volt: #D4FF3A; --ink: #0A0A0B; --slot: #E9E9ED;
  --red: #FF5A4E;
  --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;
}

* { 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(--volt); 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(--volt); }
.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(--volt); }
.wordmark.huge { font-size: clamp(96px, 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(--volt); }
.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(--volt); }
.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); }
.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(--volt); 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 #3a1d1b; }
.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: 40px; 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(--volt); box-shadow: inset 0 0 0 1.5px var(--volt); }
.pill.dim { background: var(--surface-2); color: var(--muted); }
.pill.record { background: transparent; color: var(--volt); box-shadow: inset 0 0 0 1.5px var(--volt); }

/* ---- 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: #5a4a12; }
.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; padding-bottom: calc(var(--safe-b) + 24px); }
.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(--volt); }
.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(--volt); }
.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; }
.install-card { background: var(--surface); border: 1.5px solid var(--volt); border-radius: 18px; padding: 16px 18px; margin: 0 0 18px; }
.install-title { font-family: var(--cond); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 22px; margin-bottom: 8px; }
.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(--volt); }
.welcome-actions { margin-top: 8px; }

/* ---- 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; 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 { 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(--volt); }
.plan-days { font-family: var(--cond); font-weight: 800; font-style: italic; font-size: 44px; line-height: 1; width: 34px; color: var(--volt); }
.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(--volt); }

/* ---- 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: rgba(212, 255, 58, .45); }
.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-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(--volt); }
.lc-val { flex: 1; font-family: var(--cond); font-weight: 700; font-size: 20px; line-height: 1.15; }
.lc-val.muted { color: var(--muted); font-weight: 600; }

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

/* ---- 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%, rgba(10, 10, 11, 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(--volt); }

#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(--volt); 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; }
.dock-btn.wide { padding: 0 18px; }
.dock.done { background: var(--volt); color: var(--ink); border-color: var(--volt); animation: pulse 1s ease-in-out 4; }
.dock.done .dock-label { color: var(--ink); }
.dock.done .dock-time { font-size: 26px; font-style: italic; text-transform: uppercase; }
.dock.done .dock-btn { background: var(--ink); color: var(--volt); }
@keyframes pulse { 50% { filter: brightness(1.15); transform: scale(1.015); } }

/* ---- lift screen -------------------------------------------------------------- */
.lift-screen .topbar { margin-bottom: 4px; }
.lift-screen .topbar-right .kicker { margin-right: 6px; }
.lift-title { margin-bottom: 12px; }
.lift-title .alt { font-size: .45em; color: var(--muted); letter-spacing: .02em; }
.facts { display: flex; gap: 8px; margin-bottom: 10px; }
.fact { flex: 1; 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-date { font-size: 13.5px; color: var(--dim); }
.lt-slots { display: grid; grid-template-columns: 1fr auto 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-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(--volt); color: var(--fg); }
.rule.on b { color: var(--volt); }
.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; }

.warmup { background: var(--surface); border-radius: 16px; margin-bottom: 14px; }
.warmup summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; min-height: 48px; }
.warmup summary::-webkit-details-marker { display: none; }
.warmup summary .small { flex: 1; }
.warmup .chev { color: var(--dim); transition: transform .2s; }
.warmup[open] .chev { transform: rotate(180deg); }
.warmup-rows { padding: 0 16px 12px; }
.warmup-row { display: flex; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); align-items: baseline; }
.wu-w { font-family: var(--cond); font-weight: 700; font-size: 18px; width: 92px; }
.wu-r { font-family: var(--cond); font-weight: 700; font-size: 18px; width: 40px; color: var(--muted); }
.wu-p { font-size: 13.5px; }

.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; }
.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(--volt); border-radius: 22px; padding: 14px 14px 4px; margin-bottom: 8px; }
.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(--volt); 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; display: grid; grid-template-columns: 60px 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 { 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: 20px; text-transform: uppercase; letter-spacing: .06em; background: var(--surface-2); color: var(--volt); box-shadow: inset 0 0 0 1.5px var(--volt); }
.plates { margin: -2px 0 12px 68px; font-size: 14px; color: var(--muted); }
.plates b { color: var(--fg); font-weight: 600; }
.log-btn { margin: 6px 0 12px !important; min-height: 66px !important; font-size: 23px !important; }

.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; box-shadow: inset 0 0 0 1.5px var(--line); display: inline-flex; align-items: center; justify-content: center; }
.g-beat.on { box-shadow: inset 0 0 0 1.5px var(--volt); color: var(--volt); }
.g-beat .icon { width: 16px; height: 16px; }

/* ---- summary --------------------------------------------------------------------- */
.summary { padding-top: calc(var(--safe-t) + 40px); }
.summary-zz { width: 160px; margin-bottom: 26px; }
.sum-list { display: grid; gap: 8px; margin-bottom: 8px; }
.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; }
.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; }
.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(--volt); }
.spark svg { width: 100%; height: 100%; overflow: visible; }
.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-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-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-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; }
.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(--volt); 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: 42px; height: 42px; 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 .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(--volt); }

/* ---- 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.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(--volt); }
.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: 6px 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; }
.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(--volt); }

/* 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-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-nudges { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.pad-nudges .chip-btn { justify-content: center; min-height: 48px; font-size: 18px; }
.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; }

/* toast */
#toast { position: fixed; z-index: 60; left: 50%; top: calc(var(--safe-t) + 12px); transform: translate(-50%, -140%); display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); background: var(--surface-2); color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; font-weight: 600; font-size: 15px; transition: transform .25s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
#toast.show { transform: translate(-50%, 0); }
#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; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 600px) {
  body { background: #050506; }
}
