/* Section «Тренировка с клиентом» (live workout, variant Б). Every colour is a kit token.
   All rules are scoped to the live screens (#ph[data-screen^="live"]) so they never leak into other sections;
   .lvmini (the «workout is on» strip over other tab roots) is the only global piece. */

#ph[data-screen^="live"] i[data-i],#ph[data-screen^="live"] .lvi,#ph[data-screen^="live"] .chv,#ph[data-screen^="live"] .ic2{font-style:normal;display:inline-flex;flex:none}
#ph[data-screen^="live"] .btn svg{width:18px;height:18px}
#ph[data-screen^="live"] :is(button,[data-act],input,textarea):focus-visible{outline:2px solid var(--focus);outline-offset:2px}
#ph[data-screen^="live"] .m3{color:var(--ink-3)}
#ph[data-screen^="live"] .lv-p{margin:0;font-size:15px;line-height:1.4;color:var(--ink-2)}
#ph[data-screen^="live"] .lv-empty{margin:0;padding:8px 12px 12px;font-size:15px;color:var(--ink-2)}

/* the status bar over the dark board (wide screen only; phones hide it) */
#ph[data-screen="live"]>.sb{background:var(--board);color:var(--board-ink)}

/* ---------- entry: board with the week and today's card ---------- */
#ph[data-screen^="live"] .hd.hx{flex-wrap:wrap;row-gap:10px;align-items:flex-start}
#ph[data-screen^="live"] .hd.hx>div:not(.week):not(.tday){padding-top:2px}
#ph[data-screen^="live"] .hd .week{flex:0 0 100%;width:100%;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;box-sizing:border-box}
#ph[data-screen^="live"] .hd .week button{min-width:0;min-height:52px;width:auto;padding:6px 0 8px}
#ph[data-screen^="live"] .hd .week button i{width:18px;height:3px;border-radius:2px;margin-top:3px;display:block}
#ph[data-screen^="live"] .tday{flex:0 0 100%;width:100%;box-sizing:border-box;min-width:0;background:var(--board-plate);color:var(--board-ink);border-radius:22px;padding:14px;display:flex;flex-direction:column;gap:10px;margin-bottom:4px}
#ph[data-screen^="live"] .tday .k{display:flex;align-items:center;gap:8px;font:600 13px/1.2 var(--font);letter-spacing:.05em;text-transform:uppercase;color:var(--board-2)}
#ph[data-screen^="live"] .tday .k .live,.lvmini .live{width:8px;height:8px;border-radius:50%;background:var(--ok);flex:none}
#ph[data-screen^="live"] .tday .cl{display:flex;align-items:center;gap:10px;min-width:0}
#ph[data-screen^="live"] .tday .cl>div{min-width:0}
#ph[data-screen^="live"] .tday .cl .av{width:40px;height:40px;border-radius:13px}
#ph[data-screen^="live"] .tday .cl b{display:block;font:700 20px/1.2 var(--font-d)}
#ph[data-screen^="live"] .tday .cl span{display:block;font-size:14px;color:var(--board-2)}
#ph[data-screen^="live"] .tday .ex{font-size:14.5px;color:var(--board-2);line-height:1.4}
#ph[data-screen^="live"] .tday .pr{display:flex;align-items:center;gap:10px;font-size:13.5px;color:var(--board-2);min-width:0}
#ph[data-screen^="live"] .tday .pr>span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:62%}
#ph[data-screen^="live"] .tday .pr .tr{flex:1;min-width:24px;height:5px;border-radius:3px;background:var(--board);overflow:hidden}
#ph[data-screen^="live"] .tday .pr .tr i{display:block;height:100%;background:var(--board-ink);border-radius:3px}
#ph[data-screen^="live"] .tday .pr b{color:var(--board-ink);font-variant-numeric:tabular-nums;white-space:nowrap}
#ph[data-screen^="live"] .tday .last{display:flex;align-items:center;gap:8px;font-size:14.5px;padding-top:10px;border-top:1px solid var(--board)}
#ph[data-screen^="live"] .tday .last svg{width:18px;height:18px;color:var(--board-2)}
#ph[data-screen^="live"] .tday .rs{font-size:14px;color:var(--board-2)}
#ph[data-screen^="live"] .btn.onb{background:var(--board-ink);color:var(--board);min-height:52px;width:100%;flex:none}

/* rows with an action */
#ph[data-screen^="live"] .arow{display:flex;align-items:center;gap:12px;min-height:64px;padding:8px 0;border-top:1px solid var(--line)}
#ph[data-screen^="live"] .plate>.arow:first-child,#ph[data-screen^="live"] .plate h4+.arow{border-top:0}
#ph[data-screen^="live"] .arow.off .tx b{color:var(--ink-3)}
#ph[data-screen^="live"] .arow .tx{flex:1;min-width:0}
#ph[data-screen^="live"] .arow .tx b{display:block;font-size:16px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ph[data-screen^="live"] .arow .tx>span{display:block;font-size:14px;color:var(--ink-2);overflow-wrap:anywhere}
#ph[data-screen^="live"] .arow .tx .pill{font-size:12.5px;white-space:normal}
#ph[data-screen^="live"] .arow .tm{font:700 15px/1 var(--font-d);font-variant-numeric:tabular-nums;width:52px;flex:none}
#ph[data-screen^="live"] .btn.sm{flex:none;min-height:44px;padding:0 12px;font-size:15px}
#ph[data-screen^="live"] .lv-rowbtn{all:unset;box-sizing:border-box;width:100%;display:flex;align-items:center;gap:12px;cursor:pointer;border-top:0;padding:4px 0;min-height:56px}
#ph[data-screen^="live"] .ic2{width:40px;height:40px;border-radius:12px;background:var(--surface-2);display:grid;place-items:center;flex:none;color:var(--ink-2)}
#ph[data-screen^="live"] .ic2 svg{width:20px;height:20px}
#ph[data-screen^="live"] .chv{color:var(--ink-3)}
#ph[data-screen^="live"] .chv svg{width:18px;height:18px}
#ph[data-screen^="live"] .lnk{all:unset;box-sizing:border-box;min-height:44px;display:inline-flex;align-items:center;gap:4px;padding:0 4px;font-weight:600;font-size:15px;color:var(--ink);cursor:pointer;flex:none}
#ph[data-screen^="live"] .lnk svg{width:16px;height:16px}
#ph[data-screen^="live"] .plate h4{margin-bottom:6px}
#ph[data-screen^="live"] .jrow{all:unset;box-sizing:border-box;width:100%;cursor:pointer;display:flex;align-items:center;gap:12px;min-height:60px;padding:8px 0 8px 12px;border-top:1px solid var(--line);position:relative}
#ph[data-screen^="live"] h4+.jrow{border-top:0}
#ph[data-screen^="live"] .jrow::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:2px;background:var(--ink)}
#ph[data-screen^="live"] .jrow .tx{flex:1;min-width:0}
#ph[data-screen^="live"] .jrow small{display:block;font-size:13px;color:var(--ink-3)}
#ph[data-screen^="live"] .jrow b{display:block;font-size:16px;font-weight:600}
#ph[data-screen^="live"] .jrow .tx>span{display:block;font-size:14px;color:var(--ink-2)}

/* ---------- logger: board ---------- */
#ph[data-screen^="live"] .lvb{flex:none;padding-bottom:34px}
#ph[data-screen^="live"] .lvb .top{display:flex;align-items:center;gap:4px;margin-top:4px;min-width:0}
#ph[data-screen^="live"] .lvb .top .who{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ph[data-screen^="live"] .lvb .ib{cursor:pointer;flex:none}
#ph[data-screen^="live"] .lvb .tt,#ph[data-screen^="live"] .lvb .ck2{display:none}
#ph[data-screen^="live"] .lvb .tt{flex:1;min-width:0;text-align:left}
#ph[data-screen^="live"] .lvb .tt b{display:block;font:700 16px/1.2 var(--font-d);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ph[data-screen^="live"] .lvb .tt span{display:block;font-size:13px;color:var(--board-2);white-space:nowrap}
#ph[data-screen^="live"] .lvb .ck2{font:800 24px/1 var(--font-d);font-variant-numeric:tabular-nums;padding:0 4px}
#ph[data-screen^="live"] .lvb .pz{opacity:.55}
#ph[data-screen^="live"] .lvb.mini{padding-bottom:28px}
#ph[data-screen^="live"] .lvb.mini .big,#ph[data-screen^="live"] .lvb.mini .who{display:none}
#ph[data-screen^="live"] .lvb.mini .tt,#ph[data-screen^="live"] .lvb.mini .ck2{display:block}
#ph[data-screen^="live"] .duo{display:flex;gap:6px;margin-top:10px}
#ph[data-screen^="live"] .duo button{flex:1;min-width:0;min-height:48px;border:0;border-radius:14px;background:var(--board-plate);color:var(--board-ink);display:flex;align-items:center;gap:8px;padding:0 10px;cursor:pointer;text-align:left}
#ph[data-screen^="live"] .duo button.on{background:var(--board-ink);color:var(--board)}
#ph[data-screen^="live"] .duo .av{width:30px;height:30px;border-radius:10px;font-size:12px;background-color:var(--surface-3)}
#ph[data-screen^="live"] .duo span{min-width:0}
#ph[data-screen^="live"] .duo b{display:block;font:600 14px/1.2 var(--font)}
#ph[data-screen^="live"] .duo small{display:block;font-size:12.5px;opacity:.8;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------- logger: the light sheet ---------- */
#ph[data-screen^="live"] .body.lvs{background:var(--ground);border-radius:24px 24px 0 0;margin-top:-20px;position:relative;padding:14px 12px 12px;gap:10px;overflow:hidden}
#ph[data-screen^="live"] .lvs>.scr{margin:0 -12px;padding:2px 12px 10px;gap:10px}
#ph[data-screen^="live"] .lvs>.dock{margin-top:0}
#ph[data-screen^="live"] .lvs>.dock .btn.pri{min-width:0}
#ph[data-screen^="live"] .lvs>.dock .btn.pri>span:last-child{overflow:hidden;text-overflow:ellipsis}

/* exercise strip: jump + progress */
#ph[data-screen^="live"] .jstrip{display:flex;gap:6px;padding:2px 2px 4px;flex:none;overflow-x:auto;scrollbar-width:none}
#ph[data-screen^="live"] .jstrip::-webkit-scrollbar{display:none}
#ph[data-screen^="live"] .jstrip button{flex:1 0 44px;min-width:44px;min-height:48px;border:0;border-radius:14px;background:var(--surface-1);box-shadow:var(--sh-1);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;font:700 15px/1 var(--font);color:var(--ink);position:relative}
#ph[data-screen^="live"] .jstrip button i{display:block;width:60%;height:4px;border-radius:2px;background:var(--track);overflow:hidden;font-style:normal}
#ph[data-screen^="live"] .jstrip button i b{display:block;height:100%;background:var(--fill)}
#ph[data-screen^="live"] .jstrip button.dn{background:var(--ok-soft);color:var(--ok)}
#ph[data-screen^="live"] .jstrip button.dn i b{background:var(--ok)}
#ph[data-screen^="live"] .jstrip button.on{box-shadow:inset 0 0 0 2px var(--ink),var(--sh-1)}
#ph[data-screen^="live"] .jstrip button.ss::after{content:"";position:absolute;top:50%;right:-7px;width:8px;height:4px;margin-top:-2px;border-radius:2px;background:var(--ink);z-index:1}

/* cards */
#ph[data-screen^="live"] .lgc.plate{padding:0;border-radius:20px;flex:none}
#ph[data-screen^="live"] .lv-minic{all:unset;box-sizing:border-box;display:block;width:100%;cursor:pointer;background:var(--surface-1);border-radius:20px;box-shadow:var(--sh-1);flex:none}
#ph[data-screen^="live"] .lv-minic .eh{display:flex;align-items:center;gap:10px;padding:12px}
#ph[data-screen^="live"] .lv-minic .tx{flex:1;min-width:0}
#ph[data-screen^="live"] .lv-minic .tx b{display:block;font-size:16px;font-weight:600}
#ph[data-screen^="live"] .lv-minic .tx>span{display:block;font-size:14px;color:var(--ink-2)}
#ph[data-screen^="live"] .lgc .no{flex:none}
#ph[data-screen^="live"] .lgc .no svg{width:16px;height:16px}
#ph[data-screen^="live"] .lgc .no.ss{background:var(--ink);color:var(--surface-1)}
#ph[data-screen^="live"] .lgc .no.ok{background:var(--ok);color:var(--surface-1)}
#ph[data-screen^="live"] .lgc .tg em{display:inline-flex;align-items:center;gap:4px}
#ph[data-screen^="live"] .lgc .tg em.cn{background:var(--info);color:var(--info-ink)}
#ph[data-screen^="live"] .lgc .tg em svg{width:13px;height:13px}
#ph[data-screen^="live"] .lgc .ft{display:grid}
#ph[data-screen^="live"] .lgc .ft button{cursor:pointer;min-height:48px}
#ph[data-screen^="live"] .lv-add{all:unset;box-sizing:border-box;flex:none;min-height:52px;border-radius:18px;border:1.5px dashed var(--surface-3);display:flex;align-items:center;justify-content:center;gap:8px;font:600 16px var(--font);color:var(--ink-2);cursor:pointer}
#ph[data-screen^="live"] .lv-add svg{width:18px;height:18px}
#ph[data-screen^="live"] .lv-emptyp b{display:block;font-size:16px}
#ph[data-screen^="live"] .lv-emptyp p{margin:4px 0 0;font-size:15px;color:var(--ink-2)}

/* set rows */
#ph[data-screen^="live"] .lgr{position:relative}
#ph[data-screen^="live"] .lgr .ck{cursor:pointer;flex:none}
#ph[data-screen^="live"] .lgr.act,#ph[data-screen^="live"] .lgr.next{grid-template-columns:20px minmax(0,1fr) 12px 60px 44px}
#ph[data-screen^="live"] .lgr.act{background:var(--surface-2)}
#ph[data-screen^="live"] .lgr.next .f{background:var(--surface-2)}
#ph[data-screen^="live"] .lgr .f small{font-size:13px}
#ph[data-screen^="live"] input.f{box-sizing:border-box;width:100%;min-width:0;height:48px;border:0;border-radius:12px;background:var(--surface-1);box-shadow:inset 0 0 0 1.5px var(--line);text-align:center;font:600 17px var(--font);font-variant-numeric:tabular-nums;color:var(--ink);padding:0;-webkit-appearance:none;appearance:none}
#ph[data-screen^="live"] input.f:focus{outline:0;box-shadow:inset 0 0 0 2px var(--ink)}
#ph[data-screen^="live"] .bw{height:48px;display:grid;place-items:center;border-radius:12px;background:var(--surface-1);font:600 14px var(--font);color:var(--ink-2);min-width:0}
#ph[data-screen^="live"] .wst{display:flex;align-items:center;height:48px;border-radius:12px;background:var(--surface-1);box-shadow:inset 0 0 0 2px var(--ink);min-width:0}
#ph[data-screen^="live"] .wst button{width:44px;height:44px;margin:2px;border:0;background:none;font:600 22px/1 var(--font);color:var(--ink);cursor:pointer;flex:none;border-radius:10px;touch-action:none;-webkit-user-select:none;user-select:none}
#ph[data-screen^="live"] .wst button:active{background:var(--surface-2)}
#ph[data-screen^="live"] .wst output{flex:1;min-width:0;text-align:center;font:700 18px/1 var(--font);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden}
#ph[data-screen^="live"] .wst output small{font-size:12px;color:var(--ink-3);font-weight:600;margin-left:2px}
#ph[data-screen^="live"] .lgr .ck.go{border-color:var(--ink);color:var(--ink)}
#ph[data-screen^="live"] .lgr .was{grid-column:2/-1;font-size:13px;color:var(--ink-3);margin-top:0}
#ph[data-screen^="live"] .lgr .was.cp{color:var(--ink-2)}
#ph[data-screen^="live"] .lgr.d1{grid-template-columns:20px minmax(0,1fr) auto 44px;padding:6px 12px;min-height:56px}
#ph[data-screen^="live"] .lgr.d1 .v{font:600 16px/1.2 var(--font);white-space:nowrap}
#ph[data-screen^="live"] .lgr.d1 .v small{font-size:13px;color:var(--ink-3);font-weight:600}
#ph[data-screen^="live"] .lgr.d1 .ef{font-size:14px;color:var(--ink-2);white-space:nowrap}
#ph[data-screen^="live"] .lgr.d1 .ef.easy{color:var(--ok)}
#ph[data-screen^="live"] .lgr.d1 .ef.hard{color:var(--out-ink)}
#ph[data-screen^="live"] .lgr.d1 .ck{background:var(--ok);border-color:var(--ok);color:var(--surface-1)}
#ph[data-screen^="live"] .lgr.d1 .ef:empty{display:none}
#ph[data-screen^="live"] .lgr .eff{grid-column:2/-1;display:flex;gap:6px;align-items:center;background:none;padding:0 0 4px;border-radius:0}
#ph[data-screen^="live"] .lgr .eff button{min-height:40px;border:0;border-radius:999px;padding:0 14px;background:var(--surface-2);color:var(--ink-2);font:600 14px/1 var(--font);cursor:pointer}
#ph[data-screen^="live"] .lgr .eff button.easy:hover,#ph[data-screen^="live"] .lgr .eff button.easy:active{background:var(--ok-soft);color:var(--ok)}
#ph[data-screen^="live"] .lgr .eff button.hard:active{background:var(--out);color:var(--out-ink)}
#ph[data-screen^="live"] .lgr .eff .ct{margin-left:auto;width:18px;height:18px;border-radius:50%;flex:none;background:conic-gradient(var(--ink-3) var(--lv-p,0%),var(--track) 0);animation:lv-ct 5s linear forwards}
@property --lv-p{syntax:"<percentage>";inherits:false;initial-value:0%}
@keyframes lv-ct{from{--lv-p:0%}to{--lv-p:100%}}

/* swipe to delete */
#ph[data-screen^="live"] .swp{position:relative;overflow:hidden;border-top:1px solid var(--line);touch-action:pan-y}
#ph[data-screen^="live"] .swp>.lgr{border-top:0;background:var(--surface-1);position:relative;z-index:1;transition:transform .2s var(--ease)}
#ph[data-screen^="live"] .swp>.lgr.act{background:var(--surface-2)}
#ph[data-screen^="live"] .swp .del{position:absolute;right:0;top:0;bottom:0;width:96px;background:var(--danger);color:#fff;display:flex;align-items:center;justify-content:center;gap:6px;font:600 14px var(--font);border:0;cursor:pointer}
#ph[data-screen^="live"] .swp .del svg{width:18px;height:18px}
#ph[data-screen^="live"] .swp.open>.lgr{transform:translateX(-96px)}

/* superset: one card, shared rounds */
#ph[data-screen^="live"] .rdots{display:flex;gap:4px;margin-right:2px;flex:none}
#ph[data-screen^="live"] .rdots i{width:8px;height:8px;border-radius:50%;background:var(--surface-3)}
#ph[data-screen^="live"] .rdots i.d{background:var(--ok)}
#ph[data-screen^="live"] .rdots i.h{background:linear-gradient(90deg,var(--ok) 50%,var(--surface-3) 50%)}
#ph[data-screen^="live"] .sslegend{display:grid;gap:6px;padding:0 12px 10px}
#ph[data-screen^="live"] .sslegend div{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:baseline;gap:8px}
#ph[data-screen^="live"] .sslegend b{font-size:15px;font-weight:600;min-width:0}
#ph[data-screen^="live"] .sslegend small{font-size:14px;color:var(--ink-2);font-variant-numeric:tabular-nums;white-space:nowrap}
#ph[data-screen^="live"] .sscard .k,#ph[data-screen^="live"] .rnd em{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:7px;background:var(--surface-2);font:700 12px/1 var(--font);font-style:normal;color:var(--ink-2)}
#ph[data-screen^="live"] .rgrp{position:relative;margin-left:14px}
#ph[data-screen^="live"] .rgrp::before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:2px;background:var(--ink)}
#ph[data-screen^="live"] .rgrp .gcount{position:absolute;left:-14px;top:50%;transform:translateY(-50%);z-index:2;min-width:32px;height:48px;padding:0 4px;border:0;border-radius:16px;background:var(--ink);color:var(--surface-1);font:700 16px/1 var(--font);font-variant-numeric:tabular-nums;display:grid;place-items:center;align-content:center;box-shadow:0 0 0 3px var(--surface-1);cursor:pointer}
#ph[data-screen^="live"] .rgrp .gcount small{font-size:11px;font-weight:600;opacity:.8;display:block}
#ph[data-screen^="live"] .rnd{display:grid;grid-template-columns:20px minmax(0,1fr) 44px;align-items:center;gap:6px;padding:8px 8px 8px 24px;border-top:1px solid var(--line);min-height:60px}
#ph[data-screen^="live"] .rnd .n{font:600 15px var(--font);color:var(--ink-3);text-align:center}
#ph[data-screen^="live"] .rnd .pr{display:flex;gap:4px 14px;font:600 16px var(--font);font-variant-numeric:tabular-nums;min-width:0;flex-wrap:wrap}
#ph[data-screen^="live"] .rnd .pr>span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
#ph[data-screen^="live"] .rnd .ck{width:44px;height:44px;border-radius:50%;border:2px solid var(--ink-3);display:grid;place-items:center;color:var(--ink-3);background:none;cursor:pointer}
#ph[data-screen^="live"] .rnd .ck svg{width:20px;height:20px}
#ph[data-screen^="live"] .rnd.done .ck,#ph[data-screen^="live"] .rnd .sub.done:not(.pend) .ck{background:var(--ok);border-color:var(--ok);color:var(--surface-1)}
#ph[data-screen^="live"] .rnd:not(.done):not(.act) .pr{color:var(--ink-3)}
#ph[data-screen^="live"] .rnd.act{grid-template-columns:20px minmax(0,1fr);background:var(--surface-2);row-gap:6px}
#ph[data-screen^="live"] .rnd.act .n{grid-row:1/span 4;align-self:start;padding-top:12px}
#ph[data-screen^="live"] .rnd .sub{grid-column:2;display:grid;grid-template-columns:22px minmax(0,1fr) 10px 54px 44px;align-items:center;gap:4px}
#ph[data-screen^="live"] .rnd .sub.done{grid-template-columns:22px minmax(0,1fr) 44px}
#ph[data-screen^="live"] .rnd .sub.pend .v{color:var(--ink-3)}
#ph[data-screen^="live"] .rnd .sub .v{font:600 16px var(--font);font-variant-numeric:tabular-nums}
#ph[data-screen^="live"] .rnd .sub .v small{font-size:13px;color:var(--ink-3)}
#ph[data-screen^="live"] .rnd .sub .x{color:var(--ink-3);text-align:center;font-size:14px}
#ph[data-screen^="live"] .rnd .sub .wst button{width:40px}
#ph[data-screen^="live"] .rnd .sub .wst output small{display:none}
#ph[data-screen^="live"] .rnd .hint{grid-column:2;font-size:13px;color:var(--ink-3)}

/* drop set / rest-pause: steps inside one set */
#ph[data-screen^="live"] .stp{display:grid;grid-template-columns:20px minmax(0,1fr) 44px;align-items:center;gap:8px;padding:8px 12px;border-top:1px solid var(--line);min-height:60px}
#ph[data-screen^="live"] .stp .n{font:600 15px var(--font);color:var(--ink-3);text-align:center}
#ph[data-screen^="live"] .stp .sv{font:600 16px var(--font);font-variant-numeric:tabular-nums;min-width:0}
#ph[data-screen^="live"] .stp .sv small{font-size:13px;color:var(--ink-3)}
#ph[data-screen^="live"] .stp .ck{width:44px;height:44px;border-radius:50%;border:2px solid var(--ink-3);display:grid;place-items:center;color:var(--ink-3);background:none;cursor:pointer}
#ph[data-screen^="live"] .stp .ck svg{width:20px;height:20px}
#ph[data-screen^="live"] .stp.done .ck{background:var(--ok);border-color:var(--ok);color:var(--surface-1)}
#ph[data-screen^="live"] .stp.act{grid-template-columns:20px minmax(0,1fr);background:var(--surface-2);align-items:start}
#ph[data-screen^="live"] .stp.act .n{padding-top:12px}
#ph[data-screen^="live"] .stl{display:flex;flex-direction:column;gap:6px;border-left:2px dashed var(--line);padding-left:10px;min-width:0}
#ph[data-screen^="live"] .st{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:40px}
#ph[data-screen^="live"] .st.act{grid-template-columns:22px minmax(0,1fr) 12px 60px;gap:6px}
#ph[data-screen^="live"] .st em{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:7px;background:var(--surface-1);font:700 12px/1 var(--font);font-style:normal;color:var(--ink-2)}
#ph[data-screen^="live"] .st em svg{width:13px;height:13px}
#ph[data-screen^="live"] .st .v{font:600 16px var(--font);font-variant-numeric:tabular-nums}
#ph[data-screen^="live"] .st .v small{font-size:13px;color:var(--ink-3)}
#ph[data-screen^="live"] .st:not(.done):not(.act):not(.pause) .v{color:var(--ink-3)}
#ph[data-screen^="live"] .st .ok{width:22px;height:22px;border-radius:50%;background:var(--ok);color:var(--surface-1);display:grid;place-items:center}
#ph[data-screen^="live"] .st .ok svg{width:13px;height:13px}
#ph[data-screen^="live"] .st .x{color:var(--ink-3);text-align:center;font-size:14px}
#ph[data-screen^="live"] .st .tmr{display:flex;align-items:center;gap:8px}
#ph[data-screen^="live"] .st .tmr>b{font:700 16px var(--font);font-variant-numeric:tabular-nums}
#ph[data-screen^="live"] .st .tmr i{width:64px;height:6px;border-radius:3px;background:var(--surface-3);overflow:hidden;display:block}
#ph[data-screen^="live"] .st .tmr i b{display:block;height:100%;background:var(--ink);transition:width .5s linear}
#ph[data-screen^="live"] .stl .hint{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;color:var(--ink-3);min-height:44px}

/* rest bars above the dock */
#ph[data-screen^="live"] .lv-rest{flex:none;padding:6px 6px 6px 14px}
#ph[data-screen^="live"] .lv-rest span{min-width:0}
#ph[data-screen^="live"] .lv-rest button{min-height:44px;cursor:pointer;flex:none}
#ph[data-screen^="live"] .lv-rest.other{background:var(--board-plate)}
#ph[data-screen^="live"] .lv-rest.other button{background:var(--board)}
#ph[data-screen^="live"] .lvi svg{width:18px;height:18px}
#ph[data-screen^="live"] .swp .del .lvi svg{width:16px;height:16px}
#ph[data-screen^="live"] .tday .ex{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* sheets opened from the live screens */
#ph[data-screen^="live"] .mlist{display:flex;flex-direction:column}
#ph[data-screen^="live"] .mlist button{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:12px;min-height:56px;padding:6px 2px;border-top:1px solid var(--line);cursor:pointer}
#ph[data-screen^="live"] .mlist button:first-child{border-top:0}
#ph[data-screen^="live"] .mlist button[hidden]{display:none}
#ph[data-screen^="live"] .mlist button:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:10px}
#ph[data-screen^="live"] .mlist .lvi svg{width:22px;height:22px;color:var(--ink-2)}
#ph[data-screen^="live"] .mlist .tx{flex:1;min-width:0}
#ph[data-screen^="live"] .mlist .tx b{display:block;font-size:16px;font-weight:600}
#ph[data-screen^="live"] .mlist .tx>span{display:block;font-size:14px;color:var(--ink-2)}
#ph[data-screen^="live"] .mlist .dg,#ph[data-screen^="live"] .mlist .dg .lvi svg{color:var(--danger)}
#ph[data-screen^="live"] .mlist .off .tx b{color:var(--ink-3);text-decoration:line-through;text-decoration-color:var(--ink-3)}
#ph[data-screen^="live"] .mlist .off .tx>span{color:var(--ink-3)}
#ph[data-screen^="live"] .mlist .av{width:40px;height:40px;border-radius:13px}
#ph[data-screen^="live"] .restr{display:flex;gap:8px;align-items:flex-start;background:var(--attn);color:var(--attn-ink);border-radius:14px;padding:10px 12px;font-size:15px}
#ph[data-screen^="live"] .restr svg{width:18px;height:18px;flex:none;margin-top:2px}
#ph[data-screen^="live"] .srch{min-height:48px;border-radius:14px;background:var(--surface-2);display:flex;align-items:center;gap:8px;padding:0 12px;color:var(--ink-3);flex:none}
#ph[data-screen^="live"] .srch svg{width:18px;height:18px}
#ph[data-screen^="live"] .srch input{flex:1;min-width:0;border:0;background:none;font:16px var(--font);color:var(--ink);height:46px;outline:0}
#ph[data-screen^="live"] .srch:focus-within{box-shadow:inset 0 0 0 2px var(--ink)}
#ph[data-screen^="live"] .chips{display:flex;gap:6px;flex-wrap:wrap}
#ph[data-screen^="live"] .chips .pill{font-size:13.5px;white-space:normal}
#ph[data-screen^="live"] .chips .chip{min-height:40px;font-size:14px}
#ph[data-screen^="live"] .psheet .dock{margin-top:4px}
#ph[data-screen^="live"] .wsum div{background:var(--surface-2)}
#ph[data-screen^="live"] .wsum b{white-space:nowrap}
#ph[data-screen^="live"] .lv-ta{width:100%;box-sizing:border-box;min-height:76px;border:0;border-radius:14px;background:var(--surface-2);padding:12px;font:16px/1.4 var(--font);color:var(--ink);resize:none}
#ph[data-screen^="live"] .lv-ta::placeholder{color:var(--ink-3)}
#ph[data-screen^="live"] .lv-bigstep{display:flex;align-items:center;justify-content:center;gap:20px}
#ph[data-screen^="live"] .lv-bigstep button{width:56px;height:56px;border-radius:18px;border:0;background:var(--surface-2);font:600 26px/1 var(--font);color:var(--ink);cursor:pointer}
#ph[data-screen^="live"] .lv-bigstep button[aria-disabled="true"]{color:var(--ink-3);cursor:not-allowed}
#ph[data-screen^="live"] .lv-bigstep output{font:800 40px/1 var(--font-d);min-width:64px;text-align:center}
#ph[data-screen^="live"] .lv-rhd{display:flex;flex-direction:column;gap:2px}
#ph[data-screen^="live"] .lv-rhd h4{font-size:20px}
#ph[data-screen^="live"] .lv-rx{background:var(--surface-2);border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:4px}
#ph[data-screen^="live"] .lv-rxh{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:2px}
#ph[data-screen^="live"] .lv-rxh b{font-size:16px;min-width:0}
#ph[data-screen^="live"] .lv-rxh .m3{font-size:13.5px;white-space:nowrap}
#ph[data-screen^="live"] .lv-sr{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:8px;align-items:center;min-height:36px;border-top:1px solid var(--line);font-size:16px}
#ph[data-screen^="live"] .lv-sr .n{color:var(--ink-3);font-size:14px;text-align:center}
#ph[data-screen^="live"] .lv-nk{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--line);padding:4px 0;font-size:15px}
#ph[data-screen^="live"] .lv-nk>span:first-child{min-width:0}
#ph[data-screen^="live"] .lv-mst{display:flex;align-items:center;flex:none}
#ph[data-screen^="live"] .lv-mst button{width:44px;height:44px;border:0;border-radius:12px;background:var(--surface-1);font:600 20px/1 var(--font);color:var(--ink);cursor:pointer}
#ph[data-screen^="live"] .lv-mst output{min-width:76px;text-align:center;font:700 16px var(--font);white-space:nowrap}
#ph[data-screen^="live"] .lv-mst output small{font-size:12px;color:var(--ink-3)}
#ph[data-screen^="live"] .lv-sdock{position:sticky;bottom:0;background:var(--surface-1);padding:10px 0 0;box-shadow:0 18px 0 var(--surface-1);z-index:2}

/* toast above the dock on the logger */
#ph[data-screen="live"] .ptoast{bottom:calc(84px + env(safe-area-inset-bottom,0px))}

/* ---------- «workout is on» strip over other tab roots (idea) ---------- */
.lvmini{flex:none;display:flex;align-items:center;gap:10px;min-height:48px;margin:0 12px 8px;padding:0 6px 0 14px;border:0;border-radius:16px;background:var(--board);color:var(--board-ink);cursor:pointer;text-align:left;box-shadow:var(--sh-2);position:relative;z-index:6}
#ph:has(>.fab.float) .lvmini{margin-right:88px}
.lvmini .tx{flex:1;min-width:0;font-size:15px}
.lvmini .tx b{font-weight:600;white-space:nowrap}
.lvmini .go{font:600 14px var(--font);background:var(--board-plate);border-radius:12px;min-height:36px;display:grid;place-items:center;padding:0 12px}

@media (prefers-reduced-motion:reduce){
  #ph[data-screen^="live"] .lgr .eff .ct{animation:none;--lv-p:40%}
  #ph[data-screen^="live"] .swp>.lgr,#ph[data-screen^="live"] .st .tmr i b{transition:none}
}
#ph[data-screen^="live"] .rnd.act em{background:var(--surface-1)}

/* «Сегодня в зале» card folds: its own button pins it, scrolling the list folds it for a while. */
#ph[data-screen^="live"] .tday .k .kt{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#ph[data-screen^="live"] .tday .tfold{flex:none;width:44px;height:44px;margin:-12px -10px -12px 0;border:0;background:none;color:var(--board-2);display:grid;place-items:center;cursor:pointer;border-radius:12px}
#ph[data-screen^="live"] .tday .tfold svg{width:20px;height:20px;transform:rotate(-90deg);transition:transform .2s ease}
#ph[data-screen^="live"] .tday.mini .tfold svg{transform:rotate(90deg)}
#ph[data-screen^="live"] .tday .ls{display:none}
#ph[data-screen^="live"] .tday.mini{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 10px;padding:10px 12px 12px}
#ph[data-screen^="live"] .tday.mini .k{grid-column:1/-1}
#ph[data-screen^="live"] .tday.mini :is(.ex,.pr,.last,.rs){display:none}
#ph[data-screen^="live"] .tday.mini .cl .av{width:32px;height:32px;border-radius:10px}
#ph[data-screen^="live"] .tday.mini .cl b{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ph[data-screen^="live"] .tday.mini .cl span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ph[data-screen^="live"] .tday.mini .btn{min-height:44px;padding:0 14px;width:auto}
#ph[data-screen^="live"] .tday.mini .lf{display:none}
#ph[data-screen^="live"] .tday.mini .ls{display:inline}
@media (prefers-reduced-motion:reduce){#ph[data-screen^="live"] .tday .tfold svg{transition:none}}
#ph[data-screen^="live"] .tday .ps{font-style:normal}
#ph[data-screen^="live"] .tday.mini .ps{display:none}
