/* TRAIN LOOP V2 (Nov 20 2026; public/train-loop-v2.js). Every rule is scoped to body.tl2 or to an element only that
   script draws, so with TRAIN_LOOP_V2 off nothing here applies. */
/* Effort: one RIR row on the last set; the per-set RPE row and its label are not drawn. */
body.tl2 #workoutRoot .i1-straight-set .i1-rpe,body.tl2 #workoutRoot .i1-straight-set [data-train-rpe-label]{display:none}
.tl2-rir{display:flex;flex-direction:column;gap:6px;margin:8px 0 4px}
.tl2-rir-label{font-size:var(--ds-fs-small,14px);font-weight:600;color:var(--ds-ink-2,#c9ced6)}
.tl2-rir-label small{font-weight:400;color:var(--ds-ink-muted,#98a2b3);font-size:inherit}
.tl2-rir-chips{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.tl2-rir-chips button{min-height:44px;border-radius:var(--ds-radius-sm,10px);border:1px solid var(--ds-line-strong,#3a404c);background:transparent;color:var(--ds-ink,#f2f4f7);font:inherit;font-weight:700;font-variant-numeric:tabular-nums}
.tl2-rir-chips button[aria-checked="true"]{background:var(--ds-ink,#f2f4f7);color:var(--ds-bg,#0f1115);border-color:var(--ds-ink,#f2f4f7)}
/* Last time on every set row, and the save mark. */
#workoutRoot .tl2-last{margin:-2px 0 6px;font-size:var(--ds-fs-small,13px);font-weight:400;color:var(--ds-ink-muted,#98a2b3)}
.tl2-save{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;margin-left:6px;vertical-align:-4px;border-radius:999px;flex:0 0 auto}
.tl2-save[data-tl2-save="saved"]{color:#3ccf7a;background:rgba(60,207,122,.14)}
.tl2-save[data-tl2-save="waiting"]{color:var(--ds-ink-2,#c9ced6);background:rgba(152,162,179,.18)}
/* Rest bar: −15 s / +15 s take the place of +30 s. */
#timer .tl2-rest-adj{min-height:var(--ds-touch,44px);min-width:var(--ds-touch,44px);padding:0 10px;border-radius:var(--ds-radius-sm,10px);border:1px solid var(--ds-line-strong,#3a404c);background:transparent;color:var(--ds-ink,#f2f4f7);font:inherit;font-size:var(--ds-fs-small,14px);font-weight:700;white-space:nowrap}
body.tl2 #workoutRoot #timer.i1-inline-rest [data-i1-rest-total]{display:none}
/* Mini timer above the tab bar. */
.tl2-mini{position:fixed;z-index:55;left:50%;transform:translateX(-50%);bottom:calc(var(--nav,64px) + env(safe-area-inset-bottom,0px) + 8px);min-height:44px;padding:0 16px;display:inline-flex;align-items:center;gap:8px;border-radius:999px;border:1px solid var(--ds-line-strong,#3a404c);background:var(--card,#181b22);color:var(--ds-ink,#f2f4f7);font:700 15px/1 system-ui,sans-serif;font-variant-numeric:tabular-nums;box-shadow:0 4px 14px rgba(0,0,0,.45)}
.tl2-mini[hidden]{display:none}
.tl2-mini-dot{width:8px;height:8px;border-radius:999px;background:var(--accent,#e5332a)}
/* Finish reward. */
.tl2-reward{position:fixed;inset:0;z-index:70;overflow-y:auto;background:var(--ds-bg,#0f1115);color:var(--ds-ink,#f2f4f7);padding:calc(env(safe-area-inset-top,0px) + 24px) 16px calc(env(safe-area-inset-bottom,0px) + 24px)}
.tl2-reward[hidden]{display:none}
body.tl2-reward-open{overflow:hidden}
.tl2-reward-inner{max-width:520px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.tl2-kicker{margin:0;font-size:var(--ds-fs-small,14px);font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#3ccf7a}
.tl2-reward h2{margin:0;font-size:28px;line-height:1.15;outline:none}
.tl2-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:10px}
.tl2-tile{border:1px solid var(--ds-line,#2a2f38);border-radius:var(--ds-radius-lg,14px);padding:12px;display:flex;flex-direction:column;gap:2px;background:var(--card,#181b22)}
.tl2-tile b{font-size:28px;line-height:1.1;font-variant-numeric:tabular-nums}
.tl2-tile span{font-size:var(--ds-fs-small,13px);color:var(--ds-ink-2,#c9ced6)}
.tl2-card{border:1px solid var(--ds-line,#2a2f38);border-radius:var(--ds-radius-lg,14px);padding:14px;background:var(--card,#181b22)}
.tl2-card h3{margin:0 0 8px;font-size:var(--ds-fs-small,14px);text-transform:uppercase;letter-spacing:.06em;color:var(--ds-ink-2,#c9ced6)}
.tl2-card ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px}
.tl2-card p{margin:0;line-height:1.4}
.tl2-pr-star{color:#f5b942}
.tl2-pr-kind{font-size:var(--ds-fs-small,13px);color:var(--ds-ink-muted,#98a2b3)}
.tl2-top-name{font-weight:700}
.tl2-top-now b{font-variant-numeric:tabular-nums}
.tl2-top-note{font-size:var(--ds-fs-small,13px);color:var(--ds-ink-2,#c9ced6);margin-left:6px}
.tl2-top-note.up{color:#3ccf7a;font-weight:700}
.tl2-top-last{font-size:var(--ds-fs-small,13px);color:var(--ds-ink-muted,#98a2b3)}
.tl2-feel{margin:0;color:var(--ds-ink-2,#c9ced6)}
.tl2-reward [data-tl2-sore-slot]:empty{display:none}
.tl2-reward .sore-scale{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.tl2-reward .sore-scale .btn{min-height:44px;min-width:44px}.tl2-reward [data-soreness-card] label{display:block;margin:6px 0}
.tl2-done{min-height:48px;margin-top:4px}
/* In the player each set row is a two-column grid: the last-time line and the RIR row take the full width, the RIR row
   where the RPE row was (after the weight and reps). */
.i1-train-live .i1-straight-set>.tl2-last{grid-column:1/-1;order:0;margin:-8px 0 0}
.i1-train-live .i1-straight-set>.tl2-rir{grid-column:1/-1;order:2}
