/* Screens: train, workout, editor, history, progress */
/* Train */
.syncst{text-align:center;font-size:10px;margin:0 0 10px}
.resume{display:flex;align-items:center;gap:10px;padding:11px 13px;margin-bottom:10px;background:var(--accent-soft);border:1px solid var(--accent);border-radius:16px;width:100%;text-align:left}
.resume b{display:block;font-family:var(--display);font-size:14px}
.resume span{color:var(--muted);font-size:10.5px}
.resume .grow{flex:1;min-width:0}
.pulse{width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 0 var(--accent);animation:pulse 1.8s infinite}
@keyframes pulse{70%{box-shadow:0 0 0 8px transparent}100%{box-shadow:0 0 0 0 transparent}}
.routine{display:flex;align-items:center;gap:5px;padding:5px 5px 5px 13px;margin-bottom:8px}
.routine .info{flex:1;min-width:0;padding:6.5px 0;text-align:left}
.routine .nm{font-family:var(--display);font-weight:600;font-size:14.5px}
.routine .ex-list{color:var(--muted);font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.routine .meta{color:var(--accent);font-size:10px;margin-top:2px;font-weight:500}

/* Workout */
.wo-title{flex:1;min-width:0;text-align:center}
.wo-title b{display:block;font-family:var(--display);font-size:15.5px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wo-title span{color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}
.seg{display:flex;gap:3px;margin:5px 0 3px}
.seg i{flex:1;height:4px;border-radius:2px;background:var(--surface2);overflow:hidden;position:relative}
.seg i::after{content:"";position:absolute;inset:0;width:calc(var(--p,0)*100%);background:var(--accent);border-radius:2px;transition:width .25s}
.seg i.full::after{background:var(--warm)}
.ex{margin-bottom:11px;overflow:hidden}
.ex-head{display:flex;align-items:center;gap:6.5px;padding:5px 5px 5px 13px;cursor:pointer;min-height:45.5px}
.ex-name{flex:1;min-width:0;font-family:var(--display);font-weight:600;font-size:14.5px;text-align:center}
.ex-count{order:-1;font-size:10.5px;color:var(--muted);font-variant-numeric:tabular-nums;background:var(--surface2);padding:2px 8px;border-radius:809px}
.ex.is-done .ex-count{background:var(--accent);color:var(--accent-ink);font-weight:600}
.ex.collapsed .ex-body{display:none}
.ex-body{padding:0 10px 11px;text-align:center}
.last{background:var(--surface2);border-radius:11px;padding:8px 10px;margin-bottom:10px;font-size:11px;text-align:center}
.last .lbl{color:var(--muted);font-size:10px;letter-spacing:.06em;text-transform:uppercase;font-weight:600}
.last .vals{margin-top:2px;font-variant-numeric:tabular-nums}
.last .vals span{margin-right:8px;white-space:nowrap}
.sug{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6.5px;margin-top:6.5px;padding-top:6.5px;border-top:1px solid var(--line)}
.sug b{color:var(--accent);font-family:var(--display);font-size:12.5px}
.sug button{height:26px;padding:0 10px;border-radius:8px;background:var(--accent-soft);color:var(--accent);font-weight:600;font-size:11px}
.pb{margin-top:5px;color:var(--muted);font-size:10px}
.pb b{color:var(--warm);font-weight:600}
.set-labels,.set{display:grid;grid-template-columns:35.5px minmax(0,1fr) 10px minmax(0,1fr) 29px;gap:6.5px;align-items:center}
.set-labels{font-size:9.5px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);font-weight:600;padding-bottom:5px;text-align:center}
.set-wrap{position:relative;margin-bottom:6.5px;border-radius:11px;overflow:hidden}
.set-wrap.sw{background:var(--danger)}
.set-wrap .del{opacity:0;position:absolute;right:0;top:0;bottom:0;width:73px;display:grid;place-items:center;color:#fff;font-weight:600}
.set-wrap.sw .del{opacity:1}
.set{background:var(--surface);position:relative;transition:transform .18s}
.set.drag{transition:none}
.set .rm{width:29px;height:29px;display:grid;place-items:center;color:var(--muted);border-radius:8px}
.set .rm svg.i{width:14.5px;height:14.5px}
.set .n{width:35.5px;height:35.5px;border-radius:11px;background:var(--surface2);font-family:var(--display);font-weight:700;font-size:14.5px;display:grid;place-items:center;color:var(--muted);font-variant-numeric:tabular-nums}
.set .n svg.i{width:19.5px;height:19.5px;stroke-width:3}
.set.done .n{background:var(--accent);color:var(--accent-ink)}
.set .in{width:100%;min-width:0;height:35.5px;border-radius:11px;border:1px solid var(--line);background:var(--surface2);text-align:center;font-size:14.5px;font-weight:600;font-family:var(--display);font-variant-numeric:tabular-nums}
.set .in::placeholder{color:var(--muted);font-style:italic;font-weight:500;opacity:.85}
.set .in:focus{border-color:var(--accent);outline:none;background:var(--bg)}
.set .in:focus::placeholder{opacity:.4}
.set.done .in{opacity:.55}
.set .x{color:var(--muted);text-align:center;font-size:10.5px}
.ex-foot{display:flex;justify-content:center;gap:6.5px;margin-top:8px}
.note{display:block;width:100%;min-height:34px;height:34px;margin-top:8px;border-radius:10px;border:1px dashed var(--line);background:transparent;padding:8px 10px;font-size:13px;line-height:1.4;resize:none;overflow:hidden;text-align:center}
.note::placeholder{color:var(--muted)}
.wo-end{display:flex;flex-direction:column;gap:8px;margin-top:16px}

/* Editor */
.ed-ex{margin-bottom:6.5px}
.ed-ex .nm{flex:1;min-width:0;font-weight:600;font-family:var(--display);font-size:13.5px}
.step{display:flex;align-items:center;gap:2px;background:var(--surface2);border-radius:10px}
.step button{width:27.5px;height:32.5px;display:grid;place-items:center;color:var(--muted)}
.step b{min-width:18px;text-align:center;font-family:var(--display);font-variant-numeric:tabular-nums}
.name-in{width:100%;height:43.5px;border-radius:13px;border:1px solid var(--line);background:var(--surface);padding:0 13px;font-size:16px;font-family:var(--display);font-weight:600}
.name-in:focus{outline:none;border-color:var(--accent)}

/* History */
.hs{margin-bottom:8px;overflow:hidden}
.hs-top{display:flex;align-items:center;gap:10px;width:100%;padding:11px 13px;text-align:left}
.hs-top>svg{margin:0 10px;flex:none}
.hs-date{width:37.5px;text-align:center;flex:none}
.hs-date b{display:block;font-family:var(--display);font-size:18px;line-height:1}
.hs-date span{font-size:9.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.hs-mid{flex:1;min-width:0;text-align:center}
.hs-mid b{display:block;font-family:var(--display);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hs-mid span{font-size:10.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.hs-body{padding:0 13px 11px;border-top:1px solid var(--line);text-align:center}
.hs-ex{padding-top:10px}
.hs-ex b{font-weight:600}
.hs-set{display:flex;align-items:center;justify-content:center;gap:6.5px;margin-top:5px;color:var(--muted);font-size:10.5px}
.hs-set .k{width:18px;font-variant-numeric:tabular-nums}
.hs-set input{width:58.5px;height:30.5px;border-radius:8px;border:1px solid var(--line);background:var(--bg);text-align:center;font-size:13px;font-weight:600;font-family:var(--display)}
.hs-body>.btn{display:flex;margin-left:auto;margin-right:auto}
.mo{font-size:10.5px;color:var(--muted);margin:16px 2px 6.5px;font-weight:600;text-align:center}

/* Progress */
.big-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.big{padding:11px 13px}
.big b{display:block;font-family:var(--display);font-size:24.5px;line-height:1.1;font-variant-numeric:tabular-nums}
.big span{font-size:10.5px;color:var(--muted)}
.big.hot b{color:var(--warm)}
.rec{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:10px 13px;margin-bottom:6.5px}
.rec .t{flex:1;min-width:0}
.rec .t b{display:block;font-weight:600;font-family:var(--display);font-size:13.5px}
.rec .t span{font-size:10.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.rec .r{text-align:right;font-family:var(--display);font-weight:700;color:var(--accent);font-variant-numeric:tabular-nums}
.rec .r small{display:block;font-family:var(--body);font-weight:400;color:var(--muted);font-size:10px}
.win{display:flex;align-items:center;gap:8px;padding:8px 11px;margin-bottom:5px;background:var(--warm-soft);border-radius:11px}
.win svg.i{color:var(--warm);width:16px;height:16px;flex:none}
.win span{flex:1;min-width:0;font-weight:500}
.win small{color:var(--muted);white-space:nowrap}
svg.chart{width:100%;height:auto;display:block}
.ch-grid{stroke:var(--line);stroke-width:1;fill:none}
.ch-line{stroke:var(--accent);stroke-width:2.5;fill:none;stroke-linejoin:round;stroke-linecap:round}
.ch-area{fill:var(--accent-soft);stroke:none}
.ch-dot{fill:var(--accent)}
.ch-end{fill:var(--warm)}
.ch-bar{fill:var(--accent)}
.ch-barnow{fill:var(--accent);opacity:.5}
.ch-txt{fill:var(--muted);font-size:9.5px;font-family:var(--body)}
.mrow{display:grid;grid-template-columns:77.5px 1fr 34px;gap:8px;align-items:center;margin-bottom:10px}
.mrow:last-child{margin-bottom:0}
.mrow span{font-weight:500}
.mrow b{text-align:right;font-family:var(--display);font-variant-numeric:tabular-nums}
.mbar{height:10px;border-radius:5px;background:var(--surface2);overflow:hidden}
.mbar i{display:block;height:100%;background:var(--accent);border-radius:5px}

/* Week overview */
.week{padding:13px;margin:10px 0 0}
.week-top{display:flex;align-items:center;gap:13px}
.ring{width:68px;height:68px;flex:none}
.ring-bg{fill:none;stroke:var(--surface2);stroke-width:8}
.ring-fg{fill:none;stroke:var(--accent);stroke-width:8;stroke-linecap:round;transition:stroke-dasharray .4s}
.ring-fg.full{stroke:var(--warm)}
.ring-t{fill:var(--fg);font-family:var(--display);font-weight:700;font-size:15.5px;font-variant-numeric:tabular-nums}
.week-info{flex:1;min-width:0}
.week-info b{display:block;font-family:var(--display);font-size:15.5px}
.week-info span{display:block;color:var(--muted);font-size:11px}
.link{color:var(--accent);font-weight:600;font-size:11px;padding:5px 0 0}
.days{display:flex;justify-content:space-between;margin:13px 3px 3px}
.day{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:10px;color:var(--muted);font-weight:600;width:29px}
.day i{width:24.5px;height:24.5px;border-radius:50%;background:var(--surface2);display:grid;place-items:center;color:var(--accent-ink)}
.day i svg.i{width:13px;height:13px;stroke-width:3}
.day.on i{background:var(--accent)}
.day.today{color:var(--fg)}
.day.today i{box-shadow:0 0 0 2px var(--bg),0 0 0 3px var(--accent)}
.mini{display:grid;grid-template-columns:repeat(3,1fr);gap:6.5px;margin-top:11px;padding-top:11px;border-top:1px solid var(--line);text-align:center}
.mini b{display:block;font-family:var(--display);font-size:18px;line-height:1.1;font-variant-numeric:tabular-nums}
.mini span{font-size:10px;color:var(--muted)}

/* Rep goal chip, plate button */
.goal{display:inline-block;margin:0 0 8px;padding:3px 10px;border-radius:809px;background:var(--accent-soft);color:var(--accent);font-size:10.5px}
.goal b{font-weight:700}
.wl{display:inline-flex;align-items:center;justify-content:center;gap:2px}
.plate-btn{width:18px;height:18px;display:inline-grid;place-items:center;color:var(--muted);border-radius:5px}
.plate-btn svg.i{width:12px;height:12px}
.plate-btn:active{background:var(--surface2)}

/* Editor rows */
.ed-ex{display:block;padding:8px 6.5px 10px 11px}
.ed-row{display:flex;align-items:center;gap:3px}
.ed-opts{margin-top:8px;gap:10px;flex-wrap:wrap;align-items:flex-end}
.ed-f{display:flex;flex-direction:column;gap:3px}
.ed-f>span{font-size:9.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:600}
.range{display:flex;align-items:center;gap:3px}
.range em{color:var(--muted);font-style:normal}

/* Plate calculator */
.plates{display:flex;align-items:center;justify-content:center;gap:3px;margin:13px 0 6.5px;min-height:58.5px}
.bar-end{width:21px;height:10px;border-radius:2px;background:var(--muted)}
.plate{width:24.5px;border-radius:5px;display:grid;place-items:center;background:var(--accent-soft);border:1px solid var(--accent);color:var(--accent);font-weight:700;font-size:9.5px;font-variant-numeric:tabular-nums}

/* routine editor: clearer rep goal + weight step */
.ed-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.ed-grid .wide{grid-column:1/-1}
.ed-f .step{align-self:flex-start}
.ed-f .step b{min-width:35.5px}
.range label{display:flex;flex-direction:column;gap:2px;font-size:9.5px;color:var(--muted)}
.range em{align-self:flex-end;padding-bottom:10px}
.ed-hint{margin:8px 0 0;font-size:10px;line-height:1.45;color:var(--muted)}
.range .step b{font-size:12px;color:var(--fg,var(--ink,inherit))}

/* compact routine editor */
.ed-ex{padding:0!important}
.ed-main{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;padding:10px 3px 10px 11px;color:inherit}
.ed-main .nm{font-weight:600;font-size:13px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ed-sum{font-size:10px;color:var(--muted)}
.ed-ex .ed-row{padding-right:3px}
.ed-panel{padding:3px 11px 10px;border-top:1px solid var(--line,rgba(128,128,128,.18))}
.ed-line{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6.5px 0}
.ed-line>span{font-size:11px;color:var(--muted);font-weight:500}
.ed-line .step button{width:24.5px;height:29px}
.ed-line .step b{min-width:24.5px;font-size:12px}
.ed-line .range{gap:5px}.ed-line .range em{padding:0;align-self:center;font-size:10.5px}
.ed-line .pick{display:flex;align-items:center;gap:5px;height:30.5px;padding:0 8px 0 11px;border-radius:10px;background:var(--surface2);font-weight:600;font-family:var(--display);font-size:12px}
.ed-line .pick svg{width:13px;height:13px;opacity:.6}
.ed-panel .ed-hint{margin:2px 0 0}
.inc-c{display:flex;gap:6.5px;margin-top:3px}.inc-c .search{flex:1;min-width:0}
/* flip card back */
.ex.flipin{animation:flipin .26s ease-out}
@keyframes flipin{from{transform:perspective(729px) rotateX(-65deg);opacity:.3}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.ex.flipin{animation:none}}
.ex.flipped .ex-head .icon[data-act=flip]{color:var(--accent)}
.back{padding:3px 13px 13px}
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:6.5px}
.tiles div{background:var(--surface2);border-radius:10px;padding:8px 5px;text-align:center}
.tiles b{display:block;font-family:var(--display);font-size:13px}
.tiles span{font-size:9.5px;color:var(--muted)}
.exspark{width:100%;height:auto;color:var(--accent);margin-top:5px;overflow:visible}
.spk-g{stroke:var(--line);stroke-width:1;stroke-dasharray:3 3}
.spk-t{fill:var(--muted);font-size:9.5px;font-family:var(--body)}
.spk-v{fill:var(--fg);font-size:10.5px;font-weight:600;font-family:var(--display)}
.sess>div{display:flex;justify-content:space-between;gap:8px;padding:5px 0;font-size:11px;border-top:1px solid var(--line,rgba(128,128,128,.15))}
.sess>div:first-child{border-top:0}.sess span{color:var(--muted);text-align:right}
.back .lbl{text-align:left}

.ed-tap{display:inline-flex;align-items:center;gap:2px;margin-top:4px;font-size:10px;font-weight:600;color:var(--accent)}
.ed-tap svg.i{width:12px;height:12px;transition:transform .2s}
.ed-ex.open .ed-tap svg.i{transform:rotate(180deg)}
.ed-tip{margin:-3.5px 2px 8px;font-size:10.5px;color:var(--muted)}

/* chart caption, balance hints, deload tip, PR celebration, share, routine manage */
.chart-cap{font-size:10.5px;margin:6.5px 2px 3.5px}
.mrow b small{font-size:9.5px;font-weight:600;margin-left:3.5px;font-family:var(--body)}
.mrow b small.up{color:var(--accent)}.mrow b small.down{color:var(--muted)}
.mrow.zero span{color:var(--muted)}
.hint{display:flex;gap:8px;align-items:flex-start;padding:10px 11px;margin-bottom:5.5px;background:var(--warm-soft);border-radius:11px;line-height:1.4}
.hint svg.i{flex:none;width:16px;height:16px;color:var(--warm);margin-top:1px}
.hint.ok{background:var(--accent-soft)}.hint.ok svg.i{color:var(--accent)}
.tip{padding:11.5px 12.5px;margin-bottom:10px;border-color:var(--warm)}
.tip-h{display:flex;gap:7px;align-items:center;margin-bottom:4.5px}.tip-h svg.i{width:17px;height:17px;color:var(--warm)}
.tip p{margin:0 0 9px;color:var(--muted);font-size:11px;line-height:1.45}
.tip-b{display:flex;gap:6.5px}
.pr-banner{display:flex;gap:10px;align-items:center;padding:11px 11.5px;margin:0 0 10px;border-radius:12.5px;background:var(--warm-soft);border:1px solid var(--warm);animation:prpop .5s cubic-bezier(.2,1.4,.4,1)}
.pr-banner svg.i{flex:none;width:25px;height:25px;color:var(--warm)}
.pr-banner b{display:block;font-family:var(--display);font-size:14.5px}.pr-banner span{color:var(--muted);font-size:11px}
@keyframes prpop{from{transform:scale(.85);opacity:0}to{transform:none;opacity:1}}
.confetti{position:absolute;left:0;right:0;top:0;height:0;pointer-events:none;z-index:5}
.confetti i{position:absolute;top:0;left:var(--x);width:6.5px;height:11px;border-radius:2px;background:var(--c);transform:rotate(var(--r));opacity:0;animation:conf 1.6s ease-out var(--d) forwards}
@keyframes conf{0%{opacity:1;transform:translateY(0) rotate(var(--r))}100%{opacity:0;transform:translateY(216px) rotate(calc(var(--r) + 300deg))}}
@media (prefers-reduced-motion:reduce){.confetti{display:none}.pr-banner{animation:none}}
.share-img{display:block;width:100%;max-height:52vh;object-fit:contain;border-radius:12.5px;margin:3.5px 0 10px;border:1px solid var(--line)}
.hs-act{display:flex;gap:7px;margin-top:11px;justify-content:center;flex-wrap:wrap}
.sh-btns{display:flex;gap:5.5px}
.routine.manage .info{cursor:pointer}
.rt-tools{display:flex;gap:1px;flex:none}
.rt-tools .icon:disabled{opacity:.3}

.steps{list-style:none;margin:5.5px 0 0;padding:0;display:grid;gap:8px}
.steps li{display:flex;gap:9px;align-items:flex-start;line-height:1.4}
.steps .n{flex:none;width:20px;height:20px;border-radius:50%;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;font-size:11px;font-weight:700}
.steps svg.i{display:inline;vertical-align:-3.5px;width:15.5px;height:15.5px}
.tip.install{border-color:var(--accent)}.tip.install .tip-h svg.i{color:var(--accent)}

.imp-list{display:grid;grid-template-columns:minmax(0,1fr);gap:6.5px;margin-bottom:5.5px}
.imp-row{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:7px 9px;background:var(--surface2);border-radius:11px;border:1px solid transparent}
.imp-row.need{border-color:var(--warm)}
.imp-row .t{min-width:0;display:flex;flex-direction:column}.imp-row .t b{font-size:11.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.imp-row .t span{font-size:10px;color:var(--muted)}
.imp-row select{flex:none;max-width:48%;height:32.5px;border-radius:9px;border:1px solid var(--line);background:var(--bg);color:var(--fg);padding:0 7px;font:inherit;font-size:11.5px}

.imp-bulk{display:flex;gap:5.5px;flex-wrap:wrap;margin-bottom:8px}
.imp-row.skipped{opacity:.5}

.sheet-h{display:flex;align-items:flex-start;justify-content:space-between;gap:9px}.sheet-h h2{margin:0 0 4.5px;min-width:0}.sheet-h .icon{flex:none;margin:-3.5px -5.5px 0 0}

/* import flow */
.imp-steps{display:flex;gap:4.5px;margin:2px 0 12.5px}
.imp-steps i{flex:1;height:3.5px;border-radius:2px;background:var(--surface2)}
.imp-steps i.done{background:var(--accent-soft)}.imp-steps i.on{background:var(--accent)}
.imp-sub{color:var(--muted);margin:0 0 12.5px;line-height:1.45}
.imp-srcs{display:grid;gap:7px;margin-bottom:11px}
.imp-src{display:flex;align-items:center;gap:11px;width:100%;text-align:left;padding:11px 11px;background:var(--surface2);border:1px solid var(--line);border-radius:14.5px;color:var(--fg)}
.imp-src .ico{flex:none;width:36px;height:36px;border-radius:11px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center}
.imp-src .ico svg{width:18px;height:18px}
.imp-src .tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.imp-src .tx b{font-family:var(--display);font-size:13.5px}.imp-src .tx span{color:var(--muted);font-size:11px;line-height:1.35}
.imp-src>svg.i{flex:none;width:16px;height:16px;color:var(--muted);transform:rotate(-90deg)}
.imp-note{display:flex;gap:7px;align-items:flex-start;color:var(--muted);font-size:11px;line-height:1.45;margin:0}
.imp-note svg.i{flex:none;width:14.5px;height:14.5px;color:var(--accent);margin-top:1px}
.imp-files{list-style:none;margin:0 0 11px;padding:0;display:grid;gap:5.5px}
.imp-files li{display:flex;gap:9px;align-items:center;padding:8px 10px;background:var(--surface2);border-radius:11px}
.imp-files svg.i{flex:none;width:16px;height:16px;color:var(--accent)}
.imp-files span{display:flex;flex-direction:column;min-width:0}.imp-files b{font-size:11.5px}.imp-files i{font-style:normal;color:var(--muted);font-size:10.5px}
.imp-drop{display:flex;flex-direction:column;align-items:center;gap:2.5px;padding:18px 12.5px;border:1.5px dashed var(--accent);border-radius:16px;background:var(--accent-soft);color:var(--fg);text-align:center;cursor:pointer}
.imp-drop svg.i{width:23.5px;height:23.5px;color:var(--accent);margin-bottom:2.5px}
.imp-drop b{font-family:var(--display);font-size:13.5px}.imp-drop span{color:var(--muted);font-size:11px}
.imp-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(93.5px,1fr));gap:7px;margin:0 0 12.5px}
.imp-tiles .tile{background:var(--surface2);border-radius:12.5px;padding:10px 11px;display:flex;flex-direction:column;gap:2px}
.imp-tiles .tile b{font-family:var(--display);font-size:20px;line-height:1.1;font-variant-numeric:tabular-nums}
.imp-tiles .tile span{color:var(--muted);font-size:10.5px}
.imp-done{text-align:center;padding:5.5px 0 2px}.imp-done h2{margin:9px 0 3.5px}
.imp-done .ok{display:inline-grid;place-items:center;width:47px;height:47px;border-radius:50%;background:var(--accent-soft);color:var(--accent)}
.imp-done .ok svg{width:23.5px;height:23.5px}

/* muscles: target ranges */
.mus-sum{text-align:center;margin-bottom:9px;padding:12px}
.mus-sum b{display:block;font-family:var(--display);font-size:22px}
.mus-sum span{color:var(--muted);font-size:11.5px}
.mrow2{margin-bottom:12px}.mrow2:last-of-type{margin-bottom:10px}
.mr-top{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:5px}
.mr-n{font-weight:600}
.mr-v b{font-family:var(--display);font-variant-numeric:tabular-nums;font-size:14px}
.mr-v i{font-style:normal;color:var(--muted);font-size:10.5px;margin-left:6px}
.mtrack{position:relative;height:10px;border-radius:5px;background:var(--surface2);overflow:hidden}
.mtrack .zone{position:absolute;top:0;bottom:0;background:var(--accent);opacity:.2;border-left:1.5px solid var(--accent);border-right:1.5px solid var(--accent)}
.mtrack .fill{position:absolute;left:0;top:2.5px;bottom:2.5px;border-radius:3px;background:var(--muted);opacity:.85}
.mrow2.ok .fill{background:var(--accent);opacity:1}
.mrow2.high .fill{background:var(--warm);opacity:1}
.mrow2.zero .mr-n{color:var(--muted)}
.mus-key{display:flex;flex-wrap:wrap;gap:4px 12px;justify-content:center;margin-top:12px;padding-top:10px;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}
.mus-key span{display:inline-flex;align-items:center;gap:5px}
.mus-key i{width:10px;height:6px;border-radius:2px;display:inline-block}
.k-zone{background:var(--accent);opacity:.25}.k-ok{background:var(--accent)}.k-low{background:var(--muted)}.k-high{background:var(--warm)}
/* body */
.bm-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:10px}
.bm-t{display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:9px 10px;border-radius:14px;background:var(--surface);border:1px solid var(--line);text-align:left;color:var(--fg);min-width:0}
.bm-t span{font-size:10.5px;color:var(--muted);font-weight:600}
.bm-t b{font-family:var(--display);font-size:18px;font-variant-numeric:tabular-nums;line-height:1.25}
.bm-t small{font-size:9.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.bm-t[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft)}
.bm-t[aria-pressed="true"] span{color:var(--accent)}
.bm-hero{padding:14px}
.bm-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.bm-head h2{margin:0;font-size:16px}.bm-head span{font-size:10.5px}
.bm-now{display:flex;align-items:baseline;gap:6px;justify-content:center;margin:8px 0 12px}
.bm-now b{font-family:var(--display);font-size:36px;line-height:1;font-variant-numeric:tabular-nums}
.bm-now span{color:var(--muted);font-weight:600}
.bm-add{margin:13px 0 0}

/* Friends */
.seg3{display:grid;grid-template-columns:repeat(3,1fr);margin:0 0 11px}
#nav button{position:relative}
#nav .dot{position:absolute;top:4px;left:calc(50% + 8px);width:8px;height:8px;border-radius:50%;background:var(--danger,#e5484d)}
.fr-demo{margin:0 0 9px;padding:7px 10px;border-radius:10px;background:var(--accent-soft);color:var(--accent);font-size:11px;text-align:center}
.fr-me{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 2px 9px}
.fr-me .muted{font-size:12px}
.fr-setup h2{margin:0 0 6px}
.fr-setup p{margin:0 0 10px}
.fr-hint{margin:8px 2px 0;font-size:11px;color:var(--muted)}
.fr-err{margin:8px 2px;font-size:11.5px;color:var(--danger,#e5484d)}
.fr-h,.fr-res{display:flex;align-items:center;gap:9px}
.fr-res{padding:10px 12px;margin:0 0 7px}
.fr-who{flex:1;min-width:0;display:flex;flex-direction:column}
.fr-who b{font-family:var(--display);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fr-who span{font-size:11px;color:var(--muted)}
.fr-p .avatar{width:34px;height:34px}
.fr-t{font-family:var(--display);font-weight:700;font-size:16px;margin:9px 0 5px}
.fr-stats{display:flex;gap:12px;font-size:11.5px;color:var(--muted)}
.fr-stats b{color:var(--fg);font-family:var(--display)}
.fr-ex{margin:9px 0 3px;border-top:1px solid var(--line)}
.fr-ex>div{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px solid var(--line);font-size:12px}
.fr-ex i{font-style:normal;color:var(--muted);white-space:nowrap}
.fr-act{display:flex;gap:6px;margin-top:8px}
.fr-act button{display:flex;align-items:center;gap:5px;height:33px;padding:0 11px;border-radius:10px;background:var(--surface2);color:var(--muted);font-weight:600;font-size:12px}
.fr-act button svg.i{width:17px;height:17px}
.fr-act button[aria-pressed="true"]{color:var(--danger,#e5484d)}
.fr-act button[aria-pressed="true"] svg.i{fill:currentColor}
.fr-cm{margin-top:9px;padding-top:9px;border-top:1px solid var(--line)}
.fr-c{display:flex;justify-content:space-between;gap:8px;align-items:flex-start;margin-bottom:8px;font-size:12.5px}
.fr-c small{display:block;color:var(--muted);font-size:10.5px;margin-top:1px}
.fr-rt{display:flex;align-items:center;justify-content:space-between;gap:10px}
.fr-rt>div{min-width:0}

.fr-p,.fr-rt,.fr-box,.fr-setup{padding:12px 13px}
.fr-box .fr-res{padding:12px 0 0}
.fr-res.card{padding:10px 13px}
.fr-ex{margin-top:9px}
.fr-act{margin-bottom:0}

/* History: overview, chips, richer session cards */
.hov{padding:13px 13px 12px;margin-bottom:11px}
.hov-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}
.hov-top b{font-family:var(--display);font-size:13.5px}
.hov-leg{display:flex;align-items:center;gap:3px;font-size:9.5px;color:var(--muted)}
.hov-leg .hz{width:9px;height:9px;margin:0}
.heat{display:flex;gap:4px}
.hc{flex:1;display:grid;grid-template-rows:repeat(7,1fr);gap:4px}
.hz{display:block;aspect-ratio:1;width:100%;border-radius:3.5px;background:var(--surface2);padding:0;border:0}
.hz.off{background:transparent}
.hz.now{box-shadow:0 0 0 1.5px var(--accent) inset}
.hz.l1{background:color-mix(in srgb,var(--accent) 28%,var(--surface2))}
.hz.l2{background:color-mix(in srgb,var(--accent) 52%,var(--surface2))}
.hz.l3{background:color-mix(in srgb,var(--accent) 76%,var(--surface2))}
.hz.l4{background:var(--accent)}
button.hz{cursor:pointer}
button.hz:active{transform:scale(.85)}
.heat-l{display:flex;gap:4px;margin-top:5px}
.heat-l span{flex:1;font-size:9px;color:var(--muted);white-space:nowrap;overflow:visible;min-width:0}
.hchips{display:flex;gap:6.5px;overflow-x:auto;margin:0 -2px 4px;padding:2px;scrollbar-width:none}
.hchips::-webkit-scrollbar{display:none}
.hchips button{flex:none;height:30px;padding:0 12px;border-radius:15px;background:var(--surface2);color:var(--muted);font-weight:600;font-size:11.5px;font-family:var(--display);white-space:nowrap}
.hchips button[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink)}
.hmo{display:flex;align-items:baseline;justify-content:space-between;margin:17px 3px 7px}
.hmo b{font-family:var(--display);font-size:14px}
.hmo span{font-size:10.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.hs{box-shadow:inset 3.5px 0 0 var(--hc,var(--accent));animation:hsIn .38s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--i,0)*35ms)}
@keyframes hsIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.hs{animation:none}}
.hs-top{padding:12px 13px 12px 16px;align-items:flex-start}
.hs-top>svg{margin:6px 0 0 4px;color:var(--muted);transition:transform .2s}
.hs-top[aria-expanded="true"]>svg{transform:rotate(180deg)}
.hs-date{padding-top:1px}
.hs-mid{text-align:left}
.hs-mid b{font-size:15px}
.hs-tags{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px}
.hs-tags em{font-style:normal;font-size:9.5px;font-weight:600;padding:2px 7px 2px 6px;border-radius:9px;color:var(--fg);background:color-mix(in srgb,var(--c) 18%,transparent);display:inline-flex;align-items:center;gap:4px}
.hs-tags em::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--c)}
.hs-top1{display:flex;align-items:center;gap:5px;margin-top:7px;font-size:10.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hs-top1 svg.i{width:12px;height:12px;flex:none;color:var(--hc,var(--accent))}
.hs-bar{display:block;height:4px;border-radius:2px;background:var(--surface2);margin-top:9px;overflow:hidden}
.hs-bar i{display:block;height:100%;border-radius:2px;background:var(--hc,var(--accent));opacity:.85}
.hs-body{padding-left:16px}
.heat .hz{aspect-ratio:auto;height:15px;border-radius:4px}
.hc{gap:3.5px}
.heat{gap:3.5px}

/* Progress: tab bar, KPI tiles, wins, lists with sparklines */
.ptabs{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:4px;margin:0 0 12px;background:var(--surface2);border-radius:15px}
.ptabs button{display:flex;flex-direction:column;align-items:center;gap:3px;padding:7px 2px 6px;border-radius:11px;color:var(--muted);font-weight:600;font-size:10.5px;font-family:var(--display);transition:background .18s,color .18s}
.ptabs button svg.i{width:18px;height:18px}
.ptabs button[aria-pressed="true"]{background:var(--surface);color:var(--accent);box-shadow:0 1px 6px rgba(0,0,0,.18)}
.kpis{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.kpi{padding:12px 13px;position:relative;overflow:hidden}
.kpi b{display:block;font-family:var(--display);font-size:26px;line-height:1.05;font-variant-numeric:tabular-nums;margin-top:9px}
.kpi-i{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:var(--accent-soft);color:var(--accent)}
.kpi-i svg.i{width:16px;height:16px}
.kpi-l{display:block;font-size:10.5px;color:var(--muted);margin-top:1px}
.kpi.hot{background:linear-gradient(150deg,var(--warm-soft),var(--surface) 70%)}
.kpi.hot .kpi-i{background:var(--warm-soft);color:var(--warm)}
.kpi.hot b{color:var(--warm)}
.wins{display:flex;flex-direction:column;gap:6px}
.win2{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:13px;background:var(--surface);border:1px solid var(--line);position:relative;overflow:hidden}
.win2::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--warm)}
.win-i{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--warm-soft);color:var(--warm);flex:none}
.win-i svg.i{width:15px;height:15px}
.win-t{flex:1;min-width:0}
.win-t b{display:block;font-family:var(--display);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.win-t span{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.win2 small{color:var(--muted);font-size:10.5px;white-space:nowrap}
.rchips{margin:8px -2px 8px}
.rchips button{display:inline-flex;align-items:center;gap:6px}
.rchips button i{width:7px;height:7px;border-radius:50%;background:var(--c)}
.rec-dot{width:8px;height:8px;border-radius:50%;background:var(--c);flex:none;align-self:flex-start;margin-top:7px}
.rec-s{display:flex;flex-direction:column;align-items:flex-end;gap:1px;flex:none}
.rec-s em{font-style:normal;font-size:10px;font-weight:700;font-variant-numeric:tabular-nums}
em.up{color:var(--accent)}em.down{color:var(--warm)}em.flat{color:var(--muted)}
svg.spark{width:56px;height:24px;overflow:visible;display:block}
.sp-line{fill:none;stroke:var(--accent);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sp-end{fill:var(--accent)}
.sp-base{stroke:var(--line);stroke-width:1.5;stroke-dasharray:2 3}
.pill{display:inline-flex;align-items:center;gap:3px;height:19px;padding:0 8px;border-radius:10px;font-size:10px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.pill.up{background:var(--accent-soft);color:var(--accent)}
.pill.down{background:var(--warm-soft);color:var(--warm)}
.pill.flat{background:var(--surface2);color:var(--muted)}
.rng{display:inline-flex;gap:3px;padding:3px;border-radius:11px;background:var(--surface2)}
.rng button{height:26px;padding:0 11px;border-radius:8px;color:var(--muted);font-weight:600;font-size:11px;font-family:var(--display)}
.rng button[aria-pressed="true"]{background:var(--surface);color:var(--fg);box-shadow:0 1px 4px rgba(0,0,0,.16)}
.rng.wide{display:grid;grid-template-columns:1fr 1fr;margin:0 0 10px}
.rng.wide button{height:31px}
.rng.in{margin:0 3px 8px}

/* chart parts */
svg.scrub-c{touch-action:pan-y;cursor:crosshair;-webkit-user-select:none;user-select:none}
.ch-val{paint-order:stroke;stroke:var(--surface);stroke-width:4px;stroke-linejoin:round;fill:var(--fg);font-size:11px;font-weight:700;font-family:var(--display)}
.ch-ring{fill:var(--surface);stroke:var(--accent);stroke-width:1.6}
.ch-endr{fill:var(--accent);opacity:.18}
.ch-end{fill:var(--accent);stroke:var(--surface);stroke-width:2}
.ch-dot{fill:var(--accent);opacity:.55}
.sc-line{stroke:var(--muted);stroke-width:1;stroke-dasharray:3 3;opacity:.7}
.sc-dot{fill:var(--surface);stroke:var(--accent);stroke-width:2.4}
.sc-bg{fill:var(--fg)}
.sc-tx{fill:var(--bg);font-size:10.5px;font-weight:600;font-family:var(--body)}
.scrub{pointer-events:none}

/* volume */
.vhero{padding:14px 12px 8px}
.vh-top{padding:0 3px 8px}
.vh-l{font-size:11px;color:var(--muted);font-weight:600;letter-spacing:.02em}
.vh-n{display:flex;align-items:baseline;gap:6px;margin:2px 0 1px;flex-wrap:wrap}
.vh-n b{font-family:var(--display);font-size:34px;line-height:1.05;font-variant-numeric:tabular-nums}
.vh-n small{color:var(--muted);font-size:12px;margin-right:4px}
.vh-s{font-size:11px;color:var(--muted)}
.vhero .rng{margin:0 3px 6px}
.vb{fill:var(--accent);opacity:.38;transition:opacity .15s}
.vb.now{opacity:.62}
.vb.on{opacity:1}
.vb0{stroke:var(--line);stroke-width:2;stroke-linecap:round}
.vavg{stroke:var(--warm);stroke-width:1.4;stroke-dasharray:4 4;opacity:.9}
.ch-txt.avg{fill:var(--warm);font-weight:600}
.ch-txt.on{fill:var(--fg);font-weight:700}
rect.hit{fill:transparent;cursor:pointer}
.vx{margin-bottom:11px}
.vx-t{display:flex;justify-content:space-between;gap:8px;font-size:12px}
.vx-t span{display:flex;align-items:center;gap:7px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vx-t span i{width:7px;height:7px;border-radius:50%;background:var(--c);flex:none}
.vx-t b{font-family:var(--display);font-variant-numeric:tabular-nums;font-size:11.5px;white-space:nowrap}
.vx-b{height:6px;border-radius:3px;background:var(--surface2);margin-top:5px;overflow:hidden}
.vx-b i{display:block;height:100%;border-radius:3px;background:var(--c)}

/* muscles */
.mhero{padding:14px 12px 12px;margin-bottom:11px}
.mh-top{display:flex;align-items:center;gap:13px;padding:0 3px 4px}
.mh-ring{position:relative;width:62px;height:62px;flex:none}
.mh-svg{width:100%;height:100%;display:block}
.mh-ring .ring-bg{fill:none;stroke:var(--surface2);stroke-width:7}
.mh-ring .ring-fg{fill:none;stroke:var(--accent);stroke-width:7;stroke-linecap:round}
.mh-ring b{position:absolute;inset:0;display:grid;place-items:center;font-family:var(--display);font-size:17px;line-height:1}
.mh-ring b small{font-size:10px;color:var(--muted);font-weight:500}
.mh-ring b{display:flex;align-items:center;justify-content:center;gap:0}
.mh-t b{display:block;font-family:var(--display);font-size:16px}
.mh-t span{display:block;font-size:11px;color:var(--muted);line-height:1.35}
.mh-t em{font-style:normal;display:block;font-size:11px;color:var(--accent);font-weight:600;margin-top:3px}
svg.radar{max-width:340px;margin:2px auto 0}
.rd-band{fill:var(--accent);opacity:.14}
.rd-area{fill:var(--accent);fill-opacity:.2;stroke:var(--accent);stroke-width:1.8;stroke-linejoin:round}
.rd-dot{stroke:var(--surface);stroke-width:1.6;fill:var(--accent)}
.rd-dot.low{fill:var(--muted)}
.rd-dot.high{fill:var(--warm)}
.rd-l{font-size:9.5px}
.mr-n i{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--c);margin-right:7px;vertical-align:1px}

/* body */
.bm-t{position:relative;overflow:hidden}
.bm-sp{position:absolute;right:8px;top:9px;opacity:.9}
.bm-sp svg.spark{width:48px;height:16px}
.bm-now{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.bm-now .pill{margin-left:auto}

/* ===== Train: week hero, routine cards, workout cards ===== */
.week{position:relative;overflow:hidden;background:radial-gradient(120% 140% at 0% 0%,var(--accent-soft),var(--surface) 62%);padding:15px 15px 13px}
.week .ring{width:88px;height:88px;filter:drop-shadow(0 0 10px var(--accent-soft))}
.week .ring-bg{stroke-width:9}.week .ring-fg{stroke-width:9}
.week .ring-t{font-size:23px}.ring-s{font-size:13px;fill:var(--muted);font-weight:600}
.week-info .wk-h{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);font-weight:700}
.week-info b{font-size:19px;margin:1px 0 2px}
.week .days{margin:15px 2px 0;padding-top:13px;border-top:1px solid var(--line)}
.kpis.k3{grid-template-columns:repeat(3,1fr);gap:8px;margin-top:8px}
.kpis.k3 .kpi{padding:10px 11px}.kpis.k3 .kpi b{font-size:21px;margin-top:7px}.kpis.k3 .kpi-l{font-size:10px}
.routine{position:relative;overflow:hidden;padding:12px 12px 12px 17px;gap:8px;align-items:center;background:linear-gradient(100deg,color-mix(in srgb,var(--hc,var(--accent)) 13%,var(--surface)),var(--surface) 55%)}
.routine::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--hc,var(--accent))}
.routine .info{padding:0}
.routine .nm{font-size:16px;display:flex;align-items:center;gap:7px}
.routine .up{font-family:var(--body,inherit);font-size:9px;letter-spacing:.06em;text-transform:uppercase;font-weight:700;padding:2px 7px;border-radius:809px;background:var(--accent-soft);color:var(--accent)}
.rt-tags{display:flex;gap:5px;flex-wrap:wrap;margin:5px 0 4px}
.rt-tags em{font-style:normal;font-size:9.5px;font-weight:700;padding:2px 8px;border-radius:809px;color:var(--c);background:color-mix(in srgb,var(--c) 16%,transparent)}
.routine .meta{color:var(--muted);margin-top:4px;font-size:10.5px}
.rt-go{flex:none;width:42px;height:42px;border-radius:50%;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center;box-shadow:0 4px 14px var(--accent-soft)}
.rt-go svg.i{width:18px;height:18px;margin-left:2px}
.routine .rt-edit{position:absolute;top:6px;right:58px;opacity:.7}
.routine.manage{padding-right:8px}
.ex{position:relative;border-left:0}
.ex::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--hc,var(--accent));opacity:.9}
.ex-name{text-align:left;font-size:15px;padding-left:2px}
.ex-name small{display:block;font-family:inherit;font-weight:600;font-size:9.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--hc,var(--muted));margin-top:1px}
.ex-count{order:2}
.ex-body{text-align:left}
.last{text-align:left;background:color-mix(in srgb,var(--hc,var(--accent)) 7%,var(--surface2))}
.last .vals{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.last .vals span{margin:0;padding:3px 8px;border-radius:8px;background:var(--surface);font-size:11px}
.last .vals.muted{display:block}
.sug{justify-content:space-between}
.pb{margin-top:6px;color:var(--muted)}
.goal{display:inline-block}

/* ===== Friends ===== */
.avatar{background:color-mix(in srgb,var(--ah,var(--accent)) 20%,var(--surface2));color:var(--ah,var(--accent));font-family:var(--display);font-weight:700}
.fr-hero{text-align:center;padding:22px 16px 16px!important;background:radial-gradient(120% 120% at 50% 0%,var(--accent-soft),var(--surface) 70%);margin-bottom:9px}
.fr-orb{width:58px;height:58px;border-radius:50%;margin:0 auto 11px;display:grid;place-items:center;background:var(--accent);color:var(--accent-ink);box-shadow:0 6px 22px var(--accent-soft)}
.fr-orb svg.i{width:28px;height:28px}
.fr-hero h2{font-size:21px;margin:0 0 6px}
.fr-hero p{margin:0 auto 14px;max-width:320px;font-size:12.5px;line-height:1.45}
.fr-feats{display:grid;gap:7px;text-align:left}
.fr-feat{display:flex;align-items:center;gap:11px;padding:9px 11px;border-radius:13px;background:var(--surface2)}
.fr-feat>span{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);flex:none}
.fr-feat svg.i{width:17px;height:17px}
.fr-feat b{display:block;font-family:var(--display);font-size:13px}
.fr-feat small{color:var(--muted);font-size:11px}
.fr-un{position:relative}
.fr-at{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--muted);font-weight:600;z-index:1}
.fr-un .search{padding-left:30px}
.fr-me{margin:0 0 10px}
.fr-id{display:flex;align-items:center;gap:9px}
.fr-id .avatar{width:38px;height:38px}
.fr-id b{display:block;font-family:var(--display);font-size:14px}
.fr-id small{color:var(--muted);font-size:11px}
.fr-sec{margin:16px 2px 8px;font-size:10.5px;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);font-weight:700}
.fr-p{position:relative;overflow:hidden;padding:14px 15px!important;margin-bottom:10px}
.fr-p::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--hc,var(--accent))}
.fr-p .avatar{width:38px;height:38px}
.fr-t{font-size:17px;margin:11px 0 6px}
.fr-stats{gap:6px;margin-top:8px}
.fr-stats span{padding:4px 9px;border-radius:809px;background:var(--surface2);color:var(--muted)}
.fr-ex{border-top:0;margin-top:11px;background:var(--surface2);border-radius:12px;padding:3px 11px}
.fr-ex>div:last-child{border-bottom:0}
.fr-act button{height:36px;padding:0 13px;border-radius:809px}
.fr-act button[aria-pressed="true"]{background:color-mix(in srgb,var(--danger,#e5484d) 14%,var(--surface2))}
.fr-rt{position:relative;overflow:hidden;padding:13px 14px 13px 17px!important;margin-bottom:8px;align-items:center}
.fr-rt::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--accent)}
.fr-rt .nm{font-family:var(--display);font-weight:600;font-size:15.5px}
.fr-rt .ex-list{color:var(--muted);font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fr-rt .meta{color:var(--muted);font-size:10.5px;margin-top:3px}
.fr-rt .btn{flex:none}
.fr-res{margin:0 0 8px}
.fr-res .avatar{width:40px;height:40px}
.fr-box{margin-bottom:6px}
.fr-demo{border:1px dashed var(--accent)}

/* no colour strip on the left of cards */
.routine::before,.ex::before,.fr-p::before,.fr-rt::before{display:none}
.routine{padding-left:14px}.fr-rt{padding-left:14px!important}.fr-p{padding-left:15px!important}

/* Theme coherence: cards stay neutral; only the small muscle tags carry category colours */
.hs{box-shadow:none;background:var(--surface)}
.hs-bar i{background:var(--accent)}
.hs-top1 svg.i{color:var(--accent)}
.routine{background:var(--surface)}
.last{background:var(--surface2)}
.last .vals span{background:var(--surface)}
.ex-name small{color:var(--muted)}
.win2::before{display:none}

/* Workout card content centred again */
.ex-body{text-align:center}
.last{text-align:center}
.last .vals{justify-content:center}
.sug{justify-content:center}

/* Toast follows the theme: surface with an accent edge, accent action */
#toast{background:var(--surface2);color:var(--fg);border:1px solid var(--accent);box-shadow:0 6px 24px rgba(0,0,0,.28),0 0 0 3px var(--accent-soft);font-weight:600}
#toast button{color:var(--accent);filter:none}

/* Soft chart swap */
#chart-box.fadein{animation:chIn .28s ease both}
@keyframes chIn{from{opacity:0;transform:translateY(3px)}}
@media (prefers-reduced-motion:reduce){#chart-box.fadein{animation:none}}

/* ===== Account ===== */
.ac-sec{margin:16px 2px 7px;font-size:10.5px;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);font-weight:700}
.ac-card{background:var(--surface2);border:1px solid var(--line);border-radius:16px;padding:2px 13px;margin:0}
.ac-pad{padding:11px 0 4px}
.ac-pad .sws{margin:0}
.ac-row{display:flex;align-items:center;gap:11px;padding:12px 0;border-top:1px solid var(--line)}
.ac-card>.ac-row:first-child,.ac-pad+.ac-row{border-top:0}
.ac-pad+.ac-row{border-top:1px solid var(--line)}
.ac-row.col{display:block}
.ac-rh{display:flex;align-items:center;gap:11px;margin-bottom:8px}
.ac-i{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);flex:none}
.ac-i svg.i{width:16px;height:16px}
.ac-t{flex:1;min-width:0}
.ac-t b{display:block;font-weight:600;font-size:13px}
.ac-t .d{display:block;font-size:10.5px;color:var(--muted);margin-top:1px;line-height:1.35}
.ac-row .opts{margin:0}
.ac-row .btn.sm{flex:none}
.ac-row a.btn{display:inline-flex;align-items:center;text-decoration:none;color:var(--fg)}
.ac-prof{padding:14px 13px 2px}
.ac-who{display:flex;align-items:center;gap:14px;padding-bottom:13px}
.ac-av{position:relative;flex:none;cursor:pointer}
.ac-av .avatar.lg{width:72px;height:72px;font-size:28px}
.ac-cam{position:absolute;right:-3px;bottom:-3px;width:26px;height:26px;border-radius:50%;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center;border:2px solid var(--surface2)}
.ac-cam svg.i{width:13px;height:13px}
.ac-id{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.ac-nm span{display:block;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:700;margin-bottom:4px}
.ac-mail{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ac-link{align-self:flex-start;color:var(--accent);font-size:11px;font-weight:600;padding:0}
.ac-prof .ac-row{border-top:1px solid var(--line)}
.ac-danger{margin-top:10px;border-color:color-mix(in srgb,var(--danger) 35%,var(--line))}
.ac-danger .ac-i{background:color-mix(in srgb,var(--danger) 14%,transparent);color:var(--danger)}
.ac-done{position:sticky;bottom:-14px;margin:14px -13px -14.5px;padding:12px 13px 14.5px;background:linear-gradient(to top,var(--surface) 70%,transparent)}
.ac-row .opts{display:flex;gap:4px;flex-wrap:nowrap}
.ac-row .opts button{flex:1;min-width:0;padding:0 2px;white-space:nowrap}

/* ===== Exercise picker ===== */
.pk-search{margin:2px 0 8px}.pk-search .search{margin:0;height:42px;font-size:14px}
.pk-chips{display:flex;gap:6px;overflow-x:auto;margin:0 -13px 6px;padding:2px 13px 6px;scrollbar-width:none}
.pk-chips::-webkit-scrollbar{display:none}
.pk-chips button{flex:none;height:30px;padding:0 12px;border-radius:809px;background:var(--surface2);color:var(--muted);font-weight:600;font-size:11.5px;border:1px solid var(--line)}
.pk-chips button[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.pk-chips button[style][aria-pressed="true"]{background:var(--c);border-color:var(--c);color:#fff}
.pk-gh{display:flex;align-items:center;gap:7px;margin:12px 2px 2px;font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:700}
.pk-gh i{width:8px;height:8px;border-radius:50%;background:var(--c)}
.pk-gh span{margin-left:auto;font-weight:600;letter-spacing:0}
.list-btn.pk{height:46px;gap:10px;padding:0 4px}
.pk-d{width:8px;height:8px;border-radius:50%;background:var(--c);flex:none}
.pk-n{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.pk-g{font-style:normal;font-size:9.5px;font-weight:700;padding:2px 8px;border-radius:809px;color:var(--c);background:color-mix(in srgb,var(--c) 15%,transparent)}
.list-btn.pk svg.i{width:16px;height:16px;color:var(--accent);flex:none}
.list-btn.pk-new{color:var(--accent);font-weight:600;height:46px}
.list-btn.pk-new span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ===== Routine editor ===== */
.ed-over{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:9px 2px 0;flex-wrap:wrap}
.ed-over .rt-tags{margin:0}.ed-over>span{font-size:10.5px;color:var(--muted)}
.ed-ex{margin-bottom:8px!important}
.ed-no{width:26px;height:26px;border-radius:9px;display:grid;place-items:center;flex:none;margin-left:10px;font-family:var(--display);font-weight:700;font-size:12px;color:var(--c);background:color-mix(in srgb,var(--c) 16%,transparent)}
.ed-main{padding:11px 3px 11px 9px!important;gap:5px!important}
.ed-main .nm{font-size:14px!important}
.ed-meta{display:flex;flex-wrap:wrap;align-items:center;gap:5px}
.ed-g{font-style:normal;font-size:9.5px;font-weight:700;padding:2px 8px;border-radius:809px;color:var(--c);background:color-mix(in srgb,var(--c) 15%,transparent)}
.ed-ch{font-size:10px;color:var(--muted);padding:2px 7px;border-radius:809px;background:var(--surface2)}
.ed-add{margin-top:6px;height:46px}

/* Workout stats strip */
.wo-stats{display:flex;align-items:stretch;gap:6px;margin:4px 0 10px}
.wo-stats>div,.wo-rest{flex:1;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:7px 4px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}
.wo-stats b{font-family:var(--display);font-size:17px;line-height:1.15;font-variant-numeric:tabular-nums;white-space:nowrap}
.wo-stats span{color:var(--muted);font-size:10px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.wo-rest{color:var(--accent);cursor:pointer}
.wo-rest svg.i{width:14px;height:14px}
.wo-rest b{color:var(--fg);font-size:15px}
.wo-rest span{color:var(--muted)}
body.rest-on #toast{bottom:calc(env(safe-area-inset-bottom,0px) + 146px)}
.last>.sug:first-child{border-top:0;margin-top:0;padding-top:0}

/* Stats strip lives in the fixed top area: compact */
#top .wo-stats{margin:4px 0 5px;gap:5px}
#top .wo-stats>div,#top .wo-rest{padding:5px 3px;border-radius:11px}
#top .wo-stats b{font-size:15px}
#top .wo-rest b{font-size:14px}
#top .wo-stats span{font-size:9px}
/* Rest sheet: a centred card that pops from the middle */
#sheet.mid .panel{top:50%;bottom:auto;left:max(16px,env(safe-area-inset-left,0px));right:max(16px,env(safe-area-inset-right,0px));max-width:380px;max-height:80%;border-radius:22px;text-align:center;transform:translateY(-50%);animation:midpop .2s ease-out}
#sheet.mid .panel h2,#sheet.mid .panel p{text-align:center}
#sheet.mid .opts{justify-content:center;flex-wrap:wrap}
@keyframes midpop{from{opacity:0;transform:translateY(-50%) scale(.92)}}
#sheet.mid .grab{display:none}
.note::placeholder{font-size:12px;letter-spacing:.01em;opacity:.85}
.note{min-height:32px}

/* One colour for muscle-group tags (theme accent) instead of one per group */
.rt-tags em,.ed-g{color:var(--accent);background:var(--accent-soft)}
.ed-no{color:var(--accent);background:var(--accent-soft)}
.routine{background:var(--surface)}

/* Personal record on a set */
.set.pr{border-color:var(--warm);box-shadow:0 0 0 3px var(--warm-soft);animation:prpop .5s cubic-bezier(.2,.8,.3,1.3)}
.set.pr .n{background:var(--warm);color:var(--bg)}
.set.pr .n svg.i{width:16px;height:16px}
@keyframes prpop{0%{transform:scale(.97)}50%{transform:scale(1.015)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.set.pr{animation:none}}

/* First-run empty states */
.empty-rich{display:flex;flex-direction:column;align-items:center;gap:6px;padding:26px 20px;line-height:1.45}
.empty-rich .em-i{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);margin-bottom:4px}
.empty-rich .em-i svg.i{width:22px;height:22px}
.empty-rich b{margin:0}
.empty-rich i{font-style:normal;color:var(--fg);font-weight:600}
.empty-rich .btn{margin-top:10px}
.empty-rich .em-t{display:block;max-width:300px}
.ex-pr{display:grid;place-items:center;color:var(--warm);margin-right:-2px}
.ex-pr svg.i{width:16px;height:16px}

/* Superset: two linked exercise cards joined into one block */
.ex.ss-n{margin-bottom:0;border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-bottom-color:transparent}
.ex.ss-p{margin-top:-1px;border-top-left-radius:6px;border-top-right-radius:6px;margin-bottom:11px}
.ex.ss-n.ss-p{margin-bottom:0}
.ex.ss-n+.ex.ss-p{position:relative}
.ex.ss-n+.ex.ss-p::after{content:"";position:absolute;left:50%;top:-7px;width:2px;height:14px;margin-left:-1px;background:var(--accent);border-radius:2px;z-index:1}
.ex-name .ss-l{color:var(--accent);font-weight:700}
.ex.ss-n+.ex.ss-p::after{display:none}
.ex.ss-n,.ex.ss-p{border-color:color-mix(in srgb,var(--accent) 40%,var(--line))}
.ex.ss-n{border-bottom-color:transparent}

/* Finish / edit workout: feeling + note */
.feel{margin:2px 0 8px}
.feel-l{display:block;color:var(--muted);font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;margin-bottom:6px;text-align:center}
.feel .opts{justify-content:center}
.feel-note{display:block;width:100%;resize:none;min-height:56px;height:auto;margin-bottom:12px;padding:10px 12px;line-height:1.4}
.hs-feel{font-style:normal}
.hs-feel.f3{color:var(--warm);background:var(--warm-soft)}
.hs-note{display:flex;gap:8px;align-items:flex-start;margin:2px 0 10px;padding:9px 11px;border-radius:11px;background:var(--surface2);color:var(--muted);font-size:12.5px;line-height:1.4}
.hs-note svg.i{width:15px;height:15px;flex:none;margin-top:2px;color:var(--accent)}
.hs-note span{min-width:0;overflow-wrap:anywhere;color:var(--fg)}
.he-row{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.he-row .search{min-width:0}
.hs-set{position:relative}
.hs-x{margin-left:auto;width:26px;height:26px;border-radius:8px;display:grid;place-items:center;color:var(--muted)}
.hs-x svg.i{width:13px;height:13px}
.hs-add{display:flex;align-items:center;gap:5px;margin:5px 0 4px 26px;color:var(--accent);font-size:12px;font-weight:600}
.hs-add svg.i{width:13px;height:13px}
.hs-act{flex-wrap:wrap}

/* Muscle group trend card (Progress) + tappable muscle rows */
.gcard{padding:13px 14px 11px;margin:2px 0 10px}
.gc-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.gc-top b{display:block;font-family:var(--display);font-size:15px}
.gc-top span{color:var(--muted);font-size:11.5px}
.gc-bars{display:flex;align-items:flex-end;gap:5px;height:56px;margin-top:11px}
.gc-bars i{flex:1;border-radius:4px 4px 2px 2px;background:var(--surface2);min-height:3px}
.gc-bars i.now{background:var(--accent)}
.gc-l{display:flex;justify-content:space-between;margin-top:5px;font-size:9.5px;color:var(--muted)}
.mrow2[data-act]{cursor:pointer;-webkit-tap-highlight-color:transparent}
.mrow2[data-act]:active{opacity:.7}

/* Onboarding */
#onb{position:fixed;inset:0;z-index:90;background:var(--bg);color:var(--fg);display:flex;flex-direction:column;max-width:504px;margin:0 auto;padding:max(env(safe-area-inset-top,0px),10px) max(18px,env(safe-area-inset-right,0px)) max(env(safe-area-inset-bottom,0px),16px) max(18px,env(safe-area-inset-left,0px))}
@media (display-mode:standalone){#onb{padding-top:max(env(safe-area-inset-top,0px),14px)}}
.onb-top{display:flex;align-items:center;justify-content:space-between;min-height:44px;gap:10px}
.onb-top .icon svg.i{transform:rotate(90deg)}
.onb-dots{display:flex;gap:6px}
.onb-dots i{width:7px;height:7px;border-radius:50%;background:var(--surface2);transition:all .25s}
.onb-dots i.done{background:var(--accent);opacity:.5}
.onb-dots i.on{width:22px;border-radius:4px;background:var(--accent)}
.onb-skip{color:var(--muted);font-weight:600;font-size:13.5px;padding:8px 4px;min-width:35px;text-align:right}
.onb-body{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;justify-content:center;gap:0;padding:6px 0 10px;text-align:center;animation:onbIn .32s ease-out both}
.onb-body.back{animation-name:onbBack}
@keyframes onbIn{from{opacity:0;transform:translateX(24px)}}
@keyframes onbBack{from{opacity:0;transform:translateX(-24px)}}
.onb-body h1{font-family:var(--display);font-size:27px;line-height:1.15;margin:0 0 8px;text-wrap:balance}
.onb-sub{margin:0 auto 22px;max-width:330px;color:var(--muted);font-size:14.5px;line-height:1.5}
.onb-hero{display:grid;place-items:center;margin:0 0 22px}
.onb-logo{width:96px;height:96px;border-radius:30px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);box-shadow:0 0 0 10px color-mix(in srgb,var(--accent) 7%,transparent),0 0 0 22px color-mix(in srgb,var(--accent) 4%,transparent)}
.onb-logo svg.i{width:46px;height:46px}
.onb-fld{display:block;text-align:left;max-width:340px;width:100%;margin:0 auto}
.onb-fld span{display:block;color:var(--muted);font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;margin:0 0 6px 2px;text-align:center}
.onb-fld .search{text-align:center;font-size:16px}
.onb-group{margin:0 auto 20px;width:100%;max-width:360px}
.onb-l{display:block;color:var(--muted);font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;margin-bottom:8px}
.onb-group .opts{justify-content:center;flex-wrap:nowrap}
.onb-group small{display:block;margin-top:8px;color:var(--muted);font-size:12px}
#onb .sws{justify-content:center;margin:0 auto 20px;max-width:360px}
.onb-tips{display:flex;flex-direction:column;gap:9px;text-align:left;max-width:380px;margin:0 auto;width:100%}
.onb-tip{display:flex;gap:12px;align-items:flex-start;padding:12px 13px;border-radius:15px;background:var(--surface);border:1px solid var(--line)}
.onb-ti{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;flex:none;background:var(--accent-soft);color:var(--accent)}
.onb-ti svg.i{width:17px;height:17px}
.onb-tip b{display:block;font-size:14px;margin-bottom:2px}
.onb-tip span:not(.onb-ti){color:var(--muted);font-size:12.5px;line-height:1.4}
.onb-foot{flex:none;padding-top:8px}
.onb-skip2{display:block;width:100%;margin-top:6px;padding:11px;color:var(--muted);font-weight:600;font-size:13.5px}
body.onb-on #nav,body.onb-on #restbar{visibility:hidden}
@media (prefers-reduced-motion:reduce){.onb-body{animation:none}}
.onb-top>:first-child,.onb-top>:last-child{width:56px;flex:none}
.onb-top>.icon{justify-content:flex-start}
/* Centred card while typing: sit at the top of the visible area, above the keyboard */
#sheet.mid.typing .panel,#sheet.mid.vv .panel{top:7px;bottom:auto;transform:none;animation:none;max-height:calc(100% - 14px)}

/* History cards: date left, arrow right, the content centred between them */
.hs-top{align-items:center}
.hs-date{width:38px;padding-top:0}
.hs-top>svg{width:38px;margin:0;padding:0 7px;color:var(--muted)}
.hs-mid{text-align:center}
.hs-tags{justify-content:center}
.hs-top1{justify-content:center}
.hs-top1 svg.i{flex:none}
.hs-tags em.hs-feel{background:var(--surface2);color:var(--muted)}
.hs-tags em.hs-feel::before{display:none}
.hs-tags em.hs-feel.f3{background:var(--warm-soft);color:var(--warm)}

/* Centred value tiles and recent wins */
.kpi{text-align:center}
.kpi .kpi-i{margin:0 auto}
.win2{display:grid;grid-template-columns:76px 1fr 76px;gap:6px}
.win-t{text-align:center}
.win2 small{text-align:right}

/* Friends: avatar / button at the sides, content centred between them (same as History) */
.fr-me{display:grid;grid-template-columns:96px 1fr 96px;align-items:center;gap:6px}
.fr-id{display:contents}
.fr-id .avatar{justify-self:start}
.fr-id>span:not(.avatar){text-align:center;min-width:0}
.fr-id b,.fr-id small{display:block}
.fr-me>.btn{justify-self:end}
.fr-sec{text-align:center}
.fr-h{display:grid;grid-template-columns:38px 1fr 38px;align-items:center;gap:6px}
.fr-h .fr-who{align-items:center;text-align:center}
.fr-p .fr-t{text-align:center}
.fr-p .rt-tags,.fr-rt .rt-tags{justify-content:center}
.fr-stats{justify-content:center;flex-wrap:wrap}
.fr-act{justify-content:center}
.fr-rt{display:grid!important;grid-template-columns:88px 1fr 88px;align-items:center;gap:6px;text-align:center}
.fr-rt::before{display:block!important;content:"";position:static;width:auto;height:0;background:none}
.fr-rt>.btn{justify-self:end}
.fr-rt .ex-list,.fr-rt .meta{text-align:center}
.fr-res{display:grid;grid-template-columns:96px 1fr 96px;align-items:center;gap:6px}
.fr-res .avatar{justify-self:start}
.fr-res .fr-who{align-items:center;text-align:center}
.fr-res>.btn,.fr-res>.muted,.fr-two{justify-self:end}
.fr-res>.muted{font-size:11px;text-align:right}
.fr-two{display:flex;flex-direction:column;gap:5px;width:100%}
.fr-two .btn{width:100%}
.fr-feat{padding-right:54px}
.fr-feat>div{flex:1;text-align:center}
.fr-box .fr-res{grid-template-columns:96px 1fr 96px}
.fr-setup .fld,.fr-hint,.fr-err{text-align:center}
.fr-setup .search{text-align:center}
.fr-setup .fr-un .search{text-align:left}

/* History, opened workout: everything centred; the remove-set button floats at the right edge */
.hs-x{position:absolute;right:0;top:50%;transform:translateY(-50%);margin:0}
.hs-add{justify-content:center;margin:6px auto 2px;width:fit-content;padding:5px 10px;border-radius:999px;background:var(--accent-soft)}
.hs-note{justify-content:center;text-align:center;align-items:center}
.hs-ex b{display:block;text-align:center}

/* Note field: small while you read, 16px only while typing (stops iOS zooming in on focus) */
.note{font-size:12px!important;line-height:1.4}
.note:focus{font-size:16px!important}
.note::placeholder{font-size:12px}
/* Focus mode */
.card.ex{transition:filter .28s ease,opacity .28s ease}
.card.ex.dim{filter:blur(3.5px);opacity:.45;cursor:pointer;-webkit-tap-highlight-color:transparent}
@media (prefers-reduced-motion:reduce){.card.ex{transition:none}}
/* room under the last exercise so a tapped card can always scroll up to the top while focusing */
#view.focus-on{padding-bottom:calc(58vh + var(--kb,0px))}
.pw-in{display:block;margin-top:4px}

/* Clients (trainer) */
.cl-row{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:11px 13px;margin:0 0 8px}
.cl-row>svg{transform:rotate(-90deg);opacity:.5;flex:none;width:16px;height:16px}
.cl-wk{display:flex;flex-direction:column;align-items:center;min-width:54px;line-height:1.1}
.cl-wk b{font:600 17px var(--display);color:var(--accent)}.cl-wk b small{font-size:11px;color:var(--muted);font-weight:500}
.cl-wk i{font-style:normal;font-size:10px;color:var(--muted)}
.cl-wk.stale b{color:var(--warm)}
.cl-head{display:flex;align-items:center;gap:11px;margin:2px 0 12px}
.cl-ks{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}
.cl-k{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:11px 6px;text-align:center}
.cl-k b{display:block;font:600 21px var(--display)}.cl-k b small{font-size:12px;color:var(--muted);font-weight:500}
.cl-k span{font-size:10.5px;color:var(--muted)}
.cl-btns{display:flex;gap:8px;margin-bottom:6px}.cl-btns .btn:first-child{flex:1}
.cl-lifts{padding:6px 13px 10px}
.cl-l{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}
.cl-l:last-of-type{border-bottom:0}
.cl-l i{font-style:normal;color:var(--muted);white-space:nowrap}
.cl-l em{font-style:normal;font-size:11px;margin-left:7px;color:var(--muted)}.cl-l em.up{color:var(--accent)}.cl-l em.dn{color:var(--warm)}
.cl-w{padding:0;margin:0 0 8px;overflow:hidden}
.cl-wh{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;text-align:left;padding:11px 13px}
.cl-wh small{display:block;color:var(--muted);font-size:11px;margin-top:1px}
.cl-wh>svg{opacity:.5;flex:none;width:16px;height:16px}
.cl-wh[aria-expanded=true]>svg{transform:rotate(180deg)}
.cl-wx{padding:2px 13px 11px;border-top:1px solid var(--line)}
.cl-wx>div{display:flex;justify-content:space-between;gap:10px;padding:6px 0;font-size:12px}
.cl-wx i{font-style:normal;color:var(--muted);text-align:right}
.cl-pick{display:grid;gap:8px;margin:10px 0}
.cl-p{display:block;width:100%;text-align:left;padding:11px 13px}.cl-p small{display:block;color:var(--muted)}

/* Workout saved recap: centred pop-up, everything centred like the rest of the app */
#sheet.mid .pr-banner{flex-direction:column;gap:3px;text-align:center;padding:11px 12px}
#sheet.mid .pr-banner>div{text-align:center}
#sheet.mid .pr-banner b{font-size:14px}
#sheet.mid .stats{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
#sheet.mid .stats .stat{text-align:center;padding:10px 4px}
#sheet.mid .stats .stat b,#sheet.mid .stats .stat span{display:block;text-align:center}
#sheet.mid .moved{text-align:center}
#sheet.mid .rc{flex-direction:column;align-items:center;gap:5px;text-align:center;padding:11px 4px}
#sheet.mid .rc .t{text-align:center}
#sheet.mid .rc .t b,#sheet.mid .rc .t span{display:block;text-align:center}
#sheet.mid .rc .tag{margin:0}
#sheet.mid .rc{gap:3px;padding:8px 4px}
#sheet.mid .rc .t span{font-size:11.5px}
#sheet.mid .rc .tag{font-size:10.5px;padding:1px 8px}
#sheet.mid .pr-banner{padding:9px 12px}
#nav .jump button:disabled{opacity:.3;pointer-events:none}
.card.ex{transition:filter .28s ease,opacity .28s ease}
