/* TRAIN CARD, REFERENCE LAYOUT (Devin approved Nov 20 2026; docs/design/reference-20261120/client-train.html;
   public/train-card.js). Every rule is scoped to body.tcr, which that script sets, so without it nothing here applies.
   One border per exercise, one red main action, quiet text for the rest, nothing under 13 px, 44 px targets. */

/* ---- Both views: alternate results wait behind "Other result"; effort is a full-width row; the demo opens on tap. ---- */
body.tcr #workoutRoot .i1-straight-set>.seg-result>.alt{display:none}
body.tcr #workoutRoot .i1-straight-set>.seg-result[data-i1-other=true]>.alt{display:inline-flex;align-items:center;justify-content:center;flex:1 1 0;min-width:0;min-height:44px;padding:0 4px;border:1px solid var(--ds-line,#2a2f38);border-radius:var(--ds-radius-sm,10px);background:transparent;color:var(--ds-ink-2,#c9ced6);font-size:14px;font-weight:600;text-transform:none;letter-spacing:0}
body.tcr #workoutRoot .i1-straight-set>.seg-result>.i1-other-results{display:block;width:100%;min-height:44px;margin:4px 0 0;padding:4px;border:0;background:transparent;color:var(--ds-ink-2,#c9ced6);font-size:14px;font-weight:600;text-transform:none;letter-spacing:0;text-decoration:underline;text-underline-offset:3px}
body.tcr #workoutRoot .i1-straight-set>.tl2-rir{grid-column:1/-1;margin:4px 0 0}
body.tcr #workoutRoot .tl2-rir-label{font-size:14px}
body.tcr #workoutRoot .tl2-rir-chips button{min-width:0;white-space:nowrap}
body.tcr #workoutRoot .exercise:not([data-tcr-demo="open"]) .ex-video{display:none}
body.tcr #workoutRoot .exercise details.cue-fold>summary{display:none}
body.tcr #workoutRoot .exercise:not([data-tcr-cues="open"]) details.cue-fold{display:none}
body.tcr #workoutRoot .exercise details.cue-fold{border:0;margin:12px 0 0;padding:0}
body.tcr #workoutRoot .exercise details.cue-fold .cues,body.tcr #workoutRoot .exercise details.cue-fold .cues li{font-size:14.5px;line-height:1.4;color:var(--ds-ink,#e3e6eb)}
body.tcr #workoutRoot .tcr-links{display:flex;flex-wrap:wrap;gap:0 18px;margin:10px 0 0;order:9}
body.tcr #workoutRoot .tcr-links button{min-height:44px;min-width:44px;padding:0;border:0;background:transparent;color:var(--ds-ink-2,#c9ced6);font:inherit;font-size:14.5px;font-weight:600;text-align:left;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
body.tcr #workoutRoot .tcr-links button[aria-expanded="true"]{color:var(--ds-ink,#f2f4f7)}
/* Nothing under 13 px on the card. */
body.tcr #workoutRoot .exercise .train-eyebrow,body.tcr #workoutRoot .exercise .train-step-label,body.tcr #workoutRoot .exercise .set-cell .unit,body.tcr #workoutRoot .exercise .train-last-line,body.tcr #workoutRoot .exercise .tl2-rir-label small,body.tcr #workoutRoot .exercise .ex-video small,body.tcr #workoutRoot .exercise .set-n{font-size:13px}

/* ---- Day view (the list): one Log button per set on its own row; only the next set's is red. ---- */
body.tcr #workoutRoot:not(.i1-train-live) .i1-straight-set>.seg-result{display:flex;flex-wrap:wrap;gap:6px 8px;height:auto;min-height:0;max-height:none;overflow:visible;padding:0;border:0;background:transparent}
body.tcr #workoutRoot:not(.i1-train-live) .i1-straight-set>.seg-result>[data-i1-log]{flex:1 0 100%;min-height:48px;border-radius:var(--ds-radius-md,12px);font-size:16px;font-weight:800;text-transform:none;letter-spacing:0}
body.tcr #workoutRoot:not(.i1-train-live) .i1-straight-set>.seg-result>[data-i1-log][aria-pressed="false"]{border:1px solid var(--ds-line-strong,#3a404c);background:transparent;color:var(--ds-ink,#f2f4f7)}
body.tcr #workoutRoot:not(.i1-train-live) .i1-straight-set[data-tcr-now]>.seg-result>[data-i1-log][aria-pressed="false"]{border-color:var(--accent,#e5332a);background:var(--accent,#e5332a);color:#fff}

/* ---- The player: label and name, prescription once, Set N of M, inputs, Last time, the red button; then the rest. ---- */
body.tcr #workoutRoot.i1-train-live .exercise:not([data-i1-inactive]) .train-card-body{display:flex;flex-direction:column}
body.tcr #workoutRoot.i1-train-live .exercise:not([data-i1-inactive]) .train-card-body>*{order:2}
body.tcr #workoutRoot.i1-train-live .exercise:not([data-i1-inactive]) .train-card-body>.train-card-extras{order:1}
body.tcr #workoutRoot.i1-train-live .exercise:not([data-i1-inactive]) .train-card-body>.i1-exercise-context{order:5;margin:14px 0 0;padding:12px 14px;border-radius:12px;background:var(--ds-surface-sunken,#141922);font-size:14.5px;line-height:1.4;color:var(--ds-ink,#e3e6eb)}
body.tcr #workoutRoot.i1-train-live .exercise:not([data-i1-inactive]) .train-card-body>details.cue-fold{order:6}
body.tcr #workoutRoot.i1-train-live .exercise:not([data-i1-inactive]) .train-card-body>.ex-video{order:7;margin-top:12px}
body.tcr #workoutRoot.i1-train-live .exercise[data-tcr-sets] .train-card-extras .train-last-line{display:none}
body.tcr #workoutRoot.i1-train-live .exercise .ex-meta{font-size:16px;color:var(--ds-ink,#e3e6eb)}
/* The set being logged: no second box inside the card. */
body.tcr #workoutRoot.i1-train-live .i1-straight-set[data-tcr-now]{border:0;border-radius:0;background:transparent;box-shadow:none;padding:0;margin:14px 0 0}
body.tcr #workoutRoot.i1-train-live .i1-straight-set[data-tcr-now]>.i1-set-caption,body.tcr #workoutRoot.i1-train-live .i1-straight-set[data-tcr-now]>.tl2-last{display:none}
body.tcr #workoutRoot.i1-train-live .i1-straight-set>.tcr-setof{grid-column:1/-1;order:0;margin:0;font-size:15px;font-weight:700;color:var(--ds-ink,#f2f4f7)}
body.tcr #workoutRoot.i1-train-live .i1-straight-set>.i1-stepper{order:1}
body.tcr #workoutRoot.i1-train-live .i1-straight-set>.tcr-last{grid-column:1/-1;order:2;margin:0;font-size:15.5px;color:var(--ds-ink,#f2f4f7)}
body.tcr #workoutRoot.i1-train-live .i1-straight-set>.tcr-last span{color:var(--ds-ink-2,#aab1bb);margin-right:8px}
body.tcr #workoutRoot.i1-train-live .i1-straight-set>.tl2-rir{order:3}
body.tcr #workoutRoot.i1-train-live .i1-straight-set>.i1-rpe{order:3}
body.tcr #workoutRoot.i1-train-live .i1-straight-set>.seg-result{order:4;display:flex;flex-wrap:wrap;gap:6px 8px}
body.tcr #workoutRoot.i1-train-live .i1-straight-set>.seg-result>[data-i1-log]{flex:1 0 100%;min-height:54px;font-size:18px;font-weight:800}
/* Sets still to do and sets done: one compact line each, divided by a line. */
body.tcr #workoutRoot.i1-train-live .i1-straight-set:not([data-tcr-now]){border:0;border-top:1px solid var(--ds-line,#1e232c);border-radius:0;background:transparent;box-shadow:none;padding:0;margin:0;min-height:44px}
body.tcr #workoutRoot.i1-train-live .i1-straight-set[data-tcr-now]+.i1-straight-set{margin-top:14px}
body.tcr #workoutRoot.i1-train-live .i1-straight-set:not([data-tcr-now])>.i1-set-caption{min-height:44px;padding:0;font-size:15px;font-weight:600;color:var(--ds-ink-2,#aab1bb)}
/* Swap moved onto the card as a quiet entry; the footer keeps Next. */
body.tcr #workoutRoot.i1-train-live .i1-train-footer [data-i1-swap]{display:none}
/* The list view's small print (prescription, state chip, Done, Swap, Rest, + Set, Skip, volume) at 13 px or more. */
body.tcr #workoutRoot .exercise .ex-meta,body.tcr #workoutRoot .exercise .train-state-chip,body.tcr #workoutRoot .exercise .ex-toggle,body.tcr #workoutRoot .exercise .mini,body.tcr #workoutRoot .exercise .volume{font-size:13px}
/* "Other result" opens in place: the red button stays where it is, the link under it, the four results under the link. */
body.tcr #workoutRoot .i1-straight-set>.seg-result>[data-i1-log]{order:0}
body.tcr #workoutRoot .i1-straight-set>.seg-result>.i1-other-results{order:1}
body.tcr #workoutRoot .i1-straight-set>.seg-result>.alt{order:2}
body.tcr #workoutRoot .i1-straight-set>.seg-result>.i1-other-results{flex:1 0 100%}
/* The effort box that comes with another result opens under the results, not above the red button. */
body.tcr #workoutRoot.i1-train-live .i1-straight-set>.i1-original-rpe{order:5;grid-column:1/-1}
/* The quiet entries come last on the card, after the coach's cue (the body's own order rule would pull them up). */
body.tcr #workoutRoot.i1-train-live .exercise:not([data-i1-inactive]) .train-card-body>.tcr-links{order:9}
/* List view: Done, Rest and Check my form were three more boxed buttons above the sets, beside Swap. One main action
   (the red Log button); these are quiet text entries, and Swap is the card's own entry below. */
body.tcr #workoutRoot:not(.i1-train-live) .exercise[data-tcr-sets] .ex-actions{justify-content:flex-start;flex-wrap:wrap;gap:0 18px;padding-left:16px;padding-right:16px}
body.tcr #workoutRoot:not(.i1-train-live) .exercise[data-tcr-sets] .ex-actions>button{min-height:44px;min-width:44px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--ds-ink-2,#c9ced6);font-size:14.5px;font-weight:600;text-transform:none;letter-spacing:0;text-decoration:underline;text-underline-offset:3px}
body.tcr #workoutRoot:not(.i1-train-live) .exercise[data-tcr-sets] .ex-actions>[data-i1-header-swap]{display:none}

/* ==== THE OTHER CARD TYPES (Nov 20 2026): warm-up drills, bands, timed sets, supersets, cardio, routines. ==== */
/* The prescription is said once, under the name. The Rounds / Each / Sets / Duration boxes repeated it; what they
   added (rest, zone, heart rate) is one quiet line (.tcr-facts, written by train-card.js). */
body.tcr #workoutRoot .exercise .train-tiles{display:none}
body.tcr #workoutRoot .exercise .train-card-extras:not(:has(>:not(.train-tiles))){display:none}
body.tcr #workoutRoot .exercise .tcr-facts{margin:0;font-size:14.5px;line-height:1.4;color:var(--ds-ink-2,#aab1bb)}
/* Timed sets and cardio: no second box in the card; the set label, the clock, ONE red Start; "Did it" is quiet text;
   the per-set and per-side ticks sit under the action; the planned line (a repeat of the prescription) is not drawn. */
body.tcr #workoutRoot .exercise .activity-entry{display:flex;flex-direction:column;margin:14px 16px 0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
body.tcr #workoutRoot.i1-train-live .exercise .activity-entry{margin:14px 0 0}
body.tcr #workoutRoot .exercise .activity-entry>*{order:4}
body.tcr #workoutRoot .exercise:has(.ex-meta) .activity-entry>[data-activity-planned]{display:none}
body.tcr #workoutRoot .exercise .activity-entry>.act-mode{order:1;margin:0;gap:8px}
body.tcr #workoutRoot .exercise .activity-entry>.activity-sets{order:2;margin:10px 0 0;gap:8px}
body.tcr #workoutRoot .exercise .activity-entry>.activity-timing{order:3}
body.tcr #workoutRoot .exercise .activity-entry .act-setlabel{text-align:left;font-size:15px;font-weight:700;letter-spacing:0;text-transform:none;color:var(--ds-ink,#f2f4f7)}
body.tcr #workoutRoot .exercise .activity-entry .act-row{display:flex;flex-wrap:wrap;gap:0}
body.tcr #workoutRoot .exercise .activity-entry .act-row>[data-act-start]{flex:1 0 100%;min-height:54px;border:1px solid var(--accent,#e5332a);border-radius:var(--ds-radius-md,12px);background:var(--accent,#e5332a);color:#fff;font-size:18px;font-weight:800;text-transform:none;letter-spacing:0}
body.tcr #workoutRoot .exercise .activity-entry .act-row>[data-act-log],body.tcr #workoutRoot .exercise .activity-entry .act-row>[data-act-did]{flex:1 0 100%;width:100%;min-height:44px;margin:4px 0 0;padding:4px;border:0;background:transparent;box-shadow:none;color:var(--ds-ink-2,#c9ced6);font-size:14px;font-weight:600;text-transform:none;letter-spacing:0;text-decoration:underline;text-underline-offset:3px}
body.tcr #workoutRoot .exercise .activity-entry .act-row>[data-act-did][aria-pressed="true"]{color:var(--ok,#22c55e)}
body.tcr #workoutRoot .exercise .activity-entry .activity-set{min-width:56px;padding:0 8px;font-size:14px}
body.tcr #workoutRoot .exercise .i1-bw-seg button{font-size:13px}
body.tcr #workoutRoot .exercise .activity-entry .act-state:empty{display:none}
body.tcr #workoutRoot .exercise .activity-entry .act-state,body.tcr #workoutRoot .exercise .activity-entry .small{font-size:13.5px}
body.tcr #workoutRoot .exercise .activity-entry>details.activity-manual{margin:0;padding:0;border:0;background:transparent}
body.tcr #workoutRoot .exercise .activity-entry>details.activity-manual>summary{display:inline-flex;align-items:center;min-height:44px;font-size:14.5px;font-weight:600;color:var(--ds-ink-2,#c9ced6);text-decoration:underline;text-underline-offset:3px;list-style:none}
body.tcr #workoutRoot .exercise .activity-entry>details.activity-manual>summary::-webkit-details-marker{display:none}
body.tcr #workoutRoot .exercise .activity-entry>details.activity-manual label,body.tcr #workoutRoot .exercise .activity-entry>details.activity-manual select,body.tcr #workoutRoot .exercise .activity-entry>details.activity-manual input{font-size:14.5px}
/* Superset: the group is the one border; its two lifts are divided by a line, and the flow line says the order once. */
body.tcr #workoutRoot.i1-train-live .superset .superset-rule{display:none}
body.tcr #workoutRoot.i1-train-live .superset[data-train-kind=superset] .exercise[data-train-kind]{border:0;border-radius:0;background:transparent;box-shadow:none;padding:8px 4px}
body.tcr #workoutRoot.i1-train-live .superset[data-train-kind=superset] .exercise[data-train-kind]+.exercise[data-train-kind]{border-top:1px solid var(--ds-line,#1e232c)}
body.tcr #workoutRoot .superset .superset-head b,body.tcr #workoutRoot .superset .superset-head span,body.tcr #workoutRoot .superset .superset-flow,body.tcr #workoutRoot .superset .superset-rule{font-size:13px}
/* Warm-up routine: one step, several ticks. The count and each dose are plain text, not more boxes. */
body.tcr #workoutRoot .train-routine .train-routine-count,body.tcr #workoutRoot .train-routine .train-routine-dose{border:0;border-radius:0;background:transparent;padding:0;font-size:14.5px;font-weight:600;color:var(--ds-ink-2,#aab1bb)}
body.tcr #workoutRoot .train-routine .train-eyebrow{font-size:13px}
/* In the player the "Warm-up · <lift>" group is drawn only while one of its drills is the step in hand. On any other
   step it was a 190 px box with nothing to tap; the lift's own one-line note leads to the drills. */
body.tcr #workoutRoot.i1-train-live details.train-warmup-card:not(:has(.train-warmup-child:not([data-i1-inactive]))){display:none}
/* "Warm-up first": one line (was about 100 px), so "Log set 1" stays on the first screen. */
body.tcr #workoutRoot .exercise .train-lock-reason[data-tcr-warm]{display:flex;align-items:center;justify-content:space-between;gap:12px;height:38px;min-height:0;margin:0 0 8px;padding:0 12px;border:0;border-radius:10px;background:var(--ds-surface-sunken,#141922);font-size:0;line-height:0}
body.tcr #workoutRoot .exercise .train-lock-reason[data-tcr-warm]::before{content:"\26A0\00A0 Warm-up first \00B7  " attr(data-tcr-warm) " done";flex:1 1 0;width:0;min-width:0;font-size:13.5px;line-height:1.3;font-weight:600;color:var(--warn,#f5b84a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.tcr #workoutRoot .exercise .train-lock-reason[data-tcr-warm]>.btn{display:inline-flex;align-items:center;flex:0 0 auto;width:auto;min-height:44px;margin:-3px 0;padding:0;border:0;background:transparent;box-shadow:none;color:var(--ds-ink,#f2f4f7);font-size:14px;font-weight:600;text-transform:none;letter-spacing:0;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
/* ==== 150% zoom and narrow phones (300 px and under): "Set N of M" and the red button on the first screen. ====
   Each stepper is one row (label, minus, value, plus); the exercise jump strip is not drawn (Next and swipe move
   between exercises); the header sits tighter. */
@media(max-width:300px){
body.tcr #workoutRoot.i1-train-live .train-jump{display:none}
body.tcr #workoutRoot.i1-train-live .i1-train-head{margin-bottom:8px}
body.tcr #workoutRoot.i1-train-live .i1-straight-set[data-tcr-now]{margin-top:8px}
body.tcr #workoutRoot.i1-train-live .i1-straight-set[data-tcr-now]>.i1-stepper:not(.i1-stepper-text){grid-template-columns:minmax(0,1fr) 44px 60px 44px;padding:2px 0}
body.tcr #workoutRoot.i1-train-live .i1-straight-set[data-tcr-now]>.i1-stepper:not(.i1-stepper-text) .train-step-label{grid-column:auto;padding:0 4px 0 10px}
body.tcr #workoutRoot.i1-train-live .i1-straight-set[data-tcr-now]>.i1-stepper:not(.i1-stepper-text)>.unit{display:none}
body.tcr #workoutRoot.i1-train-live .i1-straight-set[data-tcr-now]>.i1-stepper:not(.i1-stepper-text)>input{height:44px;min-height:44px;padding:0;font-size:20px}
body.tcr #workoutRoot.i1-train-live .i1-straight-set[data-tcr-now]>.i1-stepper:not(.i1-stepper-text)>.i1-step{height:44px;min-height:44px}
body.tcr #workoutRoot.i1-train-live .i1-straight-set>.seg-result>[data-i1-log]{min-height:48px}
body.tcr #workoutRoot.i1-train-live .i1-straight-set[data-tcr-now]{row-gap:6px}
body.tcr #workoutRoot.i1-train-live .exercise:not([data-i1-inactive]) .ex-name{font-size:20px;line-height:1.2}
body.tcr #workoutRoot .exercise .train-lock-reason[data-tcr-warm]::before{content:"\26A0\00A0 " attr(data-tcr-warm) " done"}
}
