/* Milo's shared training floor. Loaded inside every trainer shadow root. */
:host {
  --bg:#f1f2f0; --surface:#fff; --surface-2:#f6f6f3; --raised:#fff; --well:#e9eceb;
  --ink:#21272a; --ink-2:#465159; --ink2:#465159; --muted:#5e686f; --faint:#5e686f;
  --border:#d9dddc; --border-2:#838e91;
  --accent:#b44720; --accent-ink:#b44720; --accent-soft:#f9e8df; --on-accent:#fff;
  --selected:#f1cfbb; --hero:#e5e9e8;
  --heat:var(--accent); --heat-ink:var(--accent-ink); --heat-soft:var(--accent-soft);
  --steel:#4e6573; --steel-soft:#e5ebee; --on-steel:#fff;
  --brass:var(--accent); --brass-ink:var(--accent-ink); --brass-soft:var(--accent-soft);
  --iron:var(--accent); --iron-ink:var(--accent-ink); --iron-soft:var(--accent-soft); --on-iron:var(--on-accent);
  --gold:var(--accent); --gold-soft:var(--accent-soft); --ac:var(--accent);
  --btn:var(--accent); --btn-ink:var(--on-accent);
  --grad-heat:var(--accent); --grad-brass:var(--accent); --grad-iron:var(--accent);
  --on-good:#fff; --good:#25704a; --good-ink:#245d3c; --good-soft:#e4f0e8;
  --on-warn:#fff; --on-crit:#fff; --warn:#85540f; --warn-soft:#f8edd6; --crit:#b43636; --crit-soft:#fbe6e4;
  --shadow:none; --shadow-lg:none; --ring:transparent;
  --body:"Public Sans",system-ui,sans-serif; --disp:"Archivo","Public Sans",sans-serif; --mono:var(--body);
  --t-xs:11px; --t-sm:12px; --t-md:14px; --t-lg:17px; --t-xl:22px; --t-2xl:28px;
  --r-sm:8px; --r-md:12px; --r-lg:14px; --r-xl:16px;
  --page-title:28px; --workout-title:28px; --day-number:48px; --field-number:28px;
  display:block; min-width:0; min-height:calc(100dvh - var(--shell-top,112px));
  background:var(--bg); color:var(--ink); font-family:var(--body); font-size:14px; line-height:1.45;
  color-scheme:light; -webkit-font-smoothing:antialiased; -webkit-tap-highlight-color:transparent;
}

/* Explicit and system themes share the same token vocabulary. */
:host([data-theme="dark"]) {
  --bg:#171b1f; --surface:#20262b; --surface-2:#283037; --raised:#303940; --well:#14191e;
  --ink:#f4f3ef; --ink-2:#d0d5d7; --ink2:#d0d5d7; --muted:#abb5bb; --faint:#9ca8af;
  --border:#3a454c; --border-2:#71818a;
  --accent:#f4a070; --accent-ink:#f4a070; --accent-soft:#483126; --on-accent:#2e1d14;
  --selected:#5b3d2c; --hero:#293339;
  --heat:var(--accent); --heat-ink:var(--accent-ink); --heat-soft:var(--accent-soft);
  --steel:#a5becd; --steel-soft:#293c47; --on-steel:#14232b;
  --brass:var(--accent); --brass-ink:var(--accent-ink); --brass-soft:var(--accent-soft);
  --iron:var(--accent); --iron-ink:var(--accent-ink); --iron-soft:var(--accent-soft); --on-iron:var(--on-accent);
  --gold:var(--accent); --gold-soft:var(--accent-soft); --btn:var(--accent); --btn-ink:var(--on-accent);
  --grad-heat:var(--accent); --grad-brass:var(--accent); --grad-iron:var(--accent);
  --on-good:#152b20; --good:#92d0ab; --good-ink:#a7ddb9; --good-soft:#243c30;
  --on-warn:#30220d; --on-crit:#451a17; --warn:#e7c17e; --warn-soft:#3d3222; --crit:#ffaaa1; --crit-soft:#4b2b29;
  --shadow:none; --shadow-lg:none; --ring:transparent; color-scheme:dark;
}
@media (prefers-color-scheme:dark) {
  :host(:not([data-theme="light"])) {
    --bg:#171b1f; --surface:#20262b; --surface-2:#283037; --raised:#303940; --well:#14191e;
    --ink:#f4f3ef; --ink-2:#d0d5d7; --ink2:#d0d5d7; --muted:#abb5bb; --faint:#9ca8af;
    --border:#3a454c; --border-2:#71818a;
    --accent:#f4a070; --accent-ink:#f4a070; --accent-soft:#483126; --on-accent:#2e1d14;
    --selected:#5b3d2c; --hero:#293339;
    --heat:var(--accent); --heat-ink:var(--accent-ink); --heat-soft:var(--accent-soft);
    --steel:#a5becd; --steel-soft:#293c47; --on-steel:#14232b;
    --brass:var(--accent); --brass-ink:var(--accent-ink); --brass-soft:var(--accent-soft);
    --iron:var(--accent); --iron-ink:var(--accent-ink); --iron-soft:var(--accent-soft); --on-iron:var(--on-accent);
    --gold:var(--accent); --gold-soft:var(--accent-soft); --btn:var(--accent); --btn-ink:var(--on-accent);
    --grad-heat:var(--accent); --grad-brass:var(--accent); --grad-iron:var(--accent);
    --on-good:#152b20; --good:#92d0ab; --good-ink:#a7ddb9; --good-soft:#243c30;
    --on-warn:#30220d; --on-crit:#451a17; --warn:#e7c17e; --warn-soft:#3d3222; --crit:#ffaaa1; --crit-soft:#4b2b29;
    --shadow:none; --shadow-lg:none; --ring:transparent; color-scheme:dark;
  }
}

* {font-family:var(--body)!important; box-sizing:border-box; scrollbar-width:thin; scrollbar-color:var(--border-2) transparent}
*::selection {background:var(--selected); color:var(--ink)}
::-webkit-scrollbar {width:7px; height:7px}
::-webkit-scrollbar-thumb {background:var(--border-2); border-radius:8px}
input,textarea {caret-color:var(--accent)}
a {color:var(--accent-ink); text-underline-offset:3px; overflow-wrap:anywhere}
button,input,select,textarea {touch-action:manipulation}
:host(.ios-fixed-scale),:host(.ios-fixed-scale) * {touch-action:pan-x pan-y}
button {line-height:1.35}
button:disabled,[aria-disabled="true"] {opacity:.5; cursor:not-allowed}
:focus-visible {outline:3px solid var(--accent)!important; outline-offset:3px!important}
:is(input,select,textarea):focus {outline:2px solid var(--accent)!important; outline-offset:2px; box-shadow:none!important}
:is(h1,h2,h3,h4,.h2,.h3,.disp,.prog-card .pt,.ev-lib-item .eli-n .t,.lc-t .b) {
  font-family:var(--disp)!important; letter-spacing:-.025em; text-transform:none!important; text-wrap:balance;
}
h1,h2,h3,h4 {line-height:1.2; font-weight:700}
.disp {font-weight:700; letter-spacing:-.02em!important}
.mono,.tnum,.metric .v,.sinput,.tile .tv,.rv,.lv,.bigval,.rpegrid {font-variant-numeric:tabular-nums}
:is(.card,.card.raise,.hero,.meso-hero,.metric,.tile,.btn,.tab,.sheet,.resttimer,.resttimer .inner,.daycard,.rung .dot,.brand .logo,.pr-badge,.seg-tab,.toggle-group button,.resume .rico,.sidx) {box-shadow:none!important}
.eyebrow,.hero .eyebrow {font-size:12px; font-weight:600; letter-spacing:0; text-transform:none; color:var(--muted); line-height:1.5}
.hero .eyebrow {margin-bottom:9px}
.card>p,.tip>p {max-width:75ch}

/* One broad, readable workspace, with a compact navigation rail on phones. */
#app {width:100%; max-width:1120px; padding:0; margin:0 auto; min-height:calc(100dvh - var(--shell-top,112px)); background:var(--bg); box-shadow:none}
.appbar {position:relative; top:auto!important; z-index:2; margin:0; padding:24px 20px 20px!important;
  background:var(--bg); border:0; gap:10px; backdrop-filter:none; -webkit-backdrop-filter:none}
.appbar .logo {display:none}
.brand {gap:0}
.brand h1,.appbar h1 {font-size:var(--page-title); font-weight:700; line-height:1.15; letter-spacing:-.03em; text-transform:none}
.brand p,.appbar p {margin-top:5px; font-size:12px; letter-spacing:0; line-height:1.4; white-space:normal; overflow:visible}
.iconbtn {width:44px; height:44px; border-radius:10px; flex:none; border-color:var(--border); background:var(--surface)}
#view {padding:0 20px calc(112px + var(--tg-strip,0px)); min-height:55vh; animation:none}
#view.resting {padding-bottom:calc(220px + var(--tg-strip,0px))}
.tabbar {position:fixed; top:auto; left:0; right:0; bottom:0; max-width:none; width:auto;
  padding:8px 8px calc(8px + env(safe-area-inset-bottom,0px)); margin:0; min-height:72px;
  background:var(--surface); border-top:1px solid var(--border); border-bottom:0; z-index:40;
  backdrop-filter:none; -webkit-backdrop-filter:none; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:3px}
.tab {min-width:0; min-height:48px; gap:4px; padding:7px 2px; border-radius:9px; font-size:10px; font-weight:650; color:var(--muted)}
.tab svg {width:19px; height:19px}
.tab.active {color:var(--accent-ink); background:var(--accent-soft)}
.tab.active svg {transform:none}
.tab .dot {display:none}
.tab:active,.btn:active,.iconbtn:active {transform:translateY(1px)}

/* Surfaces, buttons, controls, and information hierarchy. */
.stack {gap:20px; min-width:0}
.stack>* {min-width:0}
.card,.ladder-card,.prog-card,.build-day,.tech-item,.survey-muscle,.edex {border-radius:var(--r-lg); border:1px solid var(--border); background:var(--surface)}
.pad,.card.pad {padding:20px}
.section-label {font-size:15px; font-weight:700; letter-spacing:-.015em; text-transform:none; color:var(--ink); margin:3px 0 12px; gap:8px; flex-wrap:wrap}
.section-label .ln {display:none}
.section-label .faint {font-size:12px; margin-left:auto}
.section-label>svg {display:none}
.grouphdr,.grp {font-size:11px; letter-spacing:.06em; margin:20px 0 8px}
.chip,.mtag {border-radius:6px; font-size:11px; padding:4px 7px; white-space:normal; line-height:1.25}
.chip {max-width:100%}
.chip :is(svg),.mtag svg {flex:none}
.btn {min-height:46px; border-radius:9px; padding:12px 16px; font-size:14px; font-weight:650; white-space:normal; text-align:center; line-height:1.3}
.btn.primary,.btn.pri {background:var(--accent); color:var(--on-accent); border-color:var(--accent)}
.btn.ghost {background:var(--surface); border-color:var(--border-2)}
.btn.sm {min-height:40px; padding:9px 12px; border-radius:8px; font-size:12px}
.btn.danger {background:var(--crit-soft); color:var(--crit); border-color:transparent}
.tinybtn {min-height:36px; padding:7px 10px; border-radius:7px; font-size:12px; white-space:normal; text-align:center}
.ev-chip {min-height:36px; border-radius:7px; padding:7px 10px; font-size:12px}
.grid2,.grid3 {gap:12px; min-width:0}
.grid2>* {min-width:0}
.grid3 {grid-template-columns:repeat(3,minmax(0,1fr))}
.metric {padding:16px 13px; min-height:94px; border-radius:0; border:0; border-bottom:1px solid var(--border); background:transparent}
.metric .k {font-size:10px; font-weight:600; letter-spacing:0; text-transform:none; white-space:normal; line-height:1.35; align-items:flex-start; overflow:visible; flex-wrap:wrap}
.metric .k .kt {white-space:normal; overflow:visible}
.metric .k .q {font-size:9px; padding:1px 4px; line-height:1.2; color:var(--muted); background:none; border:0}
.metric .v {font-size:27px; font-weight:650; letter-spacing:-.03em; margin-top:10px}
.metric .v small {font-size:11px}
.row,.spread {min-width:0}
.banner {padding:14px; line-height:1.5; border-radius:10px; font-size:13px}
.banner.warn {background:var(--warn-soft); color:var(--warn)}
.tip {padding:20px; border-radius:14px; background:var(--surface); border:1px solid var(--border)}
.tip .lbl {font-size:13px; font-weight:700; letter-spacing:0; text-transform:none; color:var(--ink); flex-wrap:wrap; gap:7px; margin-bottom:9px}
.tip .lbl>svg {display:none}
.tip p {font-size:13px; line-height:1.65; color:var(--ink-2)}
.conf {font-size:9px; font-weight:650; border-radius:5px; letter-spacing:.03em; padding:3px 6px}
.resume {padding:14px; background:var(--surface); border-radius:10px}
.resume .rico {background:var(--accent); border-radius:8px; width:36px; height:36px}
.resume .rico svg {color:var(--on-accent)}

/* The primary action stays first; useful history follows without manufactured data. */
.hero {padding:24px; background:var(--hero); border:0; border-radius:16px; display:flex; flex-direction:column; justify-content:flex-start}
.hero h2 {font-size:28px; font-weight:750; letter-spacing:-.035em; line-height:1.13; margin:0 0 12px; max-width:24ch}
.hero .sub {font-size:14px; color:var(--ink-2); line-height:1.6; margin:0 0 23px; max-width:58ch}
.hero .btn {min-height:48px}
.hero .chip {background:var(--surface); border-color:transparent}
.hero .nxlist {border-color:var(--border-2); margin-bottom:14px}
.hero .nx {border-color:var(--border-2); padding:12px 0}
.hero .nx span {font-size:14px}
.hero .nx b {font-size:17px}
.current-block {padding:20px 0 0; margin-top:22px; border-top:1px solid var(--border-2); border-radius:0; background:transparent}
.current-block .section-label {font-size:12px; font-weight:500; color:var(--ink-2); letter-spacing:0}
.current-block .spread {align-items:center; gap:14px}
.current-block .btn {flex:none; min-height:40px}
.current-block .mli {background:transparent!important}
.training-week {background:transparent; border:0; border-top:1px solid var(--border); border-radius:0; padding:24px 0 0}
.training-week>header,.training-week-head {display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:18px}
.training-week h3 {font-size:17px; margin:0; letter-spacing:-.02em}
.training-week>header button,.training-week-head button {min-height:36px; padding:7px 0 7px 10px; color:var(--accent-ink); font-size:12px; font-weight:650; display:flex; align-items:center; gap:7px}
.day-strip {display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:8px}
.day-item {display:flex; align-items:center; flex-direction:column; gap:7px; min-width:0; padding:12px 3px; border-radius:6px; background:transparent}
.day-name {font-size:10px; color:var(--muted); font-weight:600}
.day-date {font-size:19px; font-weight:650; line-height:1.2; letter-spacing:-.03em; font-variant-numeric:tabular-nums}
.day-mark {height:16px; width:16px; display:grid; place-items:center; color:var(--faint); font-size:13px}
.day-mark svg {width:14px; height:14px}
.day-item.trained {background:var(--good); color:var(--on-good)}
.day-item.trained :is(.day-name,.day-mark) {color:var(--on-good)}
.day-item.today,.day-item.is-today {outline:1px solid var(--border-2); outline-offset:-1px}
.tg-role {grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; gap:14px; background:transparent; border:0; border-bottom:1px solid var(--border); border-radius:0; padding:0 0 16px}
.tg-role p {margin:0; font-size:13px; line-height:1.55; color:var(--ink-2)}
.tg-role p b {color:var(--ink)}
.tg-role button {flex:none; min-height:36px; color:var(--accent-ink); font-size:12px; font-weight:650; white-space:nowrap}
@media(max-width:560px) { .tg-role {flex-direction:column; align-items:flex-start; gap:8px} }
.training-week-note {margin:15px 0 0; color:var(--muted); font-size:12px; line-height:1.5}

/* Programs and goal ladders use rows and clear, meaningful progression. */
.meso-hero {background:var(--surface); border-radius:14px; padding:22px}
.meso-hero h2 {font-size:23px; line-height:1.2}
.meso-hero .top {gap:14px}
.daycard {padding:18px; margin-bottom:14px; border-radius:12px}
.daycard.next {border-color:var(--accent)}
.daycard h3 {font-size:17px}
.daycard .dnum,.daycard.next .dnum {border-radius:8px}
.daycard.next .dnum {background:var(--accent); color:var(--on-accent)}
.daycard .dsub,.daycard .ds {font-size:12px; line-height:1.5; margin-top:4px}
.exline,.slotline {padding-top:11px; padding-bottom:5px; border-top-style:solid}
.exline .exn,.build-ex .ben {white-space:normal; line-height:1.4}
.prog-card {padding:20px; margin-bottom:14px}
.prog-card .pt {font-size:22px; font-weight:700; line-height:1.2}
.prog-card .pm {margin:10px 0}
.prog-card p {font-size:13px; line-height:1.65; max-width:70ch}
.ladder-card {padding:18px; margin-bottom:12px}
.lc-t .a {font-size:11px; letter-spacing:0; text-transform:none}
.lc-t .b {font-size:17px; line-height:1.25; white-space:normal}
.lc-foot {font-size:12px; margin-top:12px}
.rung {padding:13px 0; gap:12px}
.rung .body .n {font-size:15px; line-height:1.4}
.rung .body .g {font-size:12px; line-height:1.4}
.rung .body .cue {font-size:13px; line-height:1.6}
.rung.current {background:var(--accent-soft); margin-left:0; padding-left:10px; border-radius:10px}
.rung.current .dot {background:var(--accent); color:var(--on-accent)}
.rung.cleared .dot,.rung.goal.cleared .dot,.daycard.done .dnum {background:var(--good); color:var(--on-good)}
.rung .mark::before {background:var(--border-2)}
.weekdots i.dl {background:var(--well); border:1px dashed var(--border-2)}
.tile {padding:18px; border-radius:12px}
.tile .tk {font-size:12px; letter-spacing:0; text-transform:none; font-weight:600}
.tile .tv {font-size:29px; letter-spacing:-.03em}
.tile .ts {font-size:12px; line-height:1.45; padding-top:10px}
.board {gap:12px}
.total {padding-top:15px; font-size:13px}
.lrow {padding:14px 0}
.lrow .lb .a {font-size:14px; line-height:1.4; white-space:normal}
.lrow .lb .b {line-height:1.5}
.lrow .lv {font-size:14px}

/* Logging retains compact, editable set tables and generous completion controls. */
.train-head {gap:12px; margin-bottom:20px; align-items:flex-start}
.train-head h2 {font-size:25px; font-weight:700; line-height:1.2; letter-spacing:-.025em; white-space:normal; text-wrap:balance}
.train-head .el {font-size:12px; line-height:1.4; margin-top:7px}
.excard {margin-bottom:20px; border-radius:14px}
.excard.ss-member {border-left-width:1px; border-color:var(--accent)}
.exhead {padding:20px 18px 12px}
.exhead h3 {font-size:18px; font-weight:700; line-height:1.3; letter-spacing:-.02em; margin-bottom:8px}
.exhead .sub {font-size:12px; line-height:1.5}
.exhead .mm {gap:5px}
.setmenu {width:36px; height:36px; flex:none; color:var(--muted)}
.setgrid {padding:4px 12px 12px}
.setrow-head {padding-bottom:9px}
.setrow-head span {font-size:10px; letter-spacing:.025em; font-weight:600; color:var(--muted)}
.setrow {padding-top:8px; padding-bottom:8px; border-radius:0; border-bottom:1px solid var(--border)}
.setrow.next,.setrow.done {border-radius:6px; border-bottom-color:transparent}
.setrow.next {background:var(--accent-soft)}
.sinput {height:44px; font-size:16px; font-weight:650; border:1px solid var(--border-2); border-radius:7px; background:var(--surface-2)}
.sinput[data-field="weight"] {font-size:16px}
.sinput::placeholder {color:var(--muted)}
.sidx {font-size:11px; letter-spacing:0; border-radius:5px}
.setrow.next .sidx {color:var(--on-accent); background:var(--accent)}
.setrow.done .sidx,.setrow.done .donebtn {color:var(--on-good); background:var(--good)}
.donebtn,.setopt {height:44px; border-radius:7px; border-width:1px}
.donebtn {background:var(--surface); color:var(--muted); border-color:var(--border-2)}
.setopt {color:var(--muted)}
.excard-actions {padding:0 16px 16px; gap:8px; mask-image:none; -webkit-mask-image:none; scrollbar-width:thin}
.target-row {padding:0 18px 14px}
.tinput input {flex:none; width:25px; min-width:25px; font-size:14px}
.tinput input[data-field="tRest"] {width:36px; min-width:36px}
.tinput label {font-size:10px; letter-spacing:0; text-transform:none}
.wellness-grid {display:grid; gap:0 28px}
@media(min-width:700px) {.wellness-grid {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px) {
  .target-row {grid-template-columns:1fr 1fr; gap:6px}
  .target-row>.tinput:first-child {grid-column:1/-1}
  .tinput {min-height:40px}
}
.tinput {padding:8px 6px; border-radius:6px}
.tinput label {font-size:9px; letter-spacing:0}
.tinput input {font-size:13px; min-height:22px}
.prevtxt,.pl {font-size:11px; line-height:1.5}
.exnote {font-size:12px; line-height:1.55}
.stepper button {width:32px; height:36px}
.stepper .sv {min-width:28px}
.empty,.empty-train {padding:66px 20px; max-width:640px; margin:0 auto; font-size:14px; line-height:1.6}
.empty .ei,.empty-train .ei {width:48px; height:48px; border-radius:12px; margin-bottom:20px; background:var(--accent-soft); color:var(--accent); border:0}
.empty .ei svg,.empty-train .ei svg {width:24px; height:24px; color:var(--accent)}
.empty h3,.empty-train h3 {font-size:24px; font-weight:700; letter-spacing:-.025em; line-height:1.2; margin-bottom:11px}
.empty p,.empty-train p {max-width:40ch; margin:0 auto 22px; color:var(--muted); font-size:14px; line-height:1.65}
.resttimer {bottom:calc(84px + env(safe-area-inset-bottom,0px) + var(--tg-strip,0px)); border-radius:12px; border-color:var(--border-2)}
.resttimer .inner {border-radius:12px; padding:13px; border-color:var(--border-2)}
.resttimer .rl,.rt-info .rl {font-size:11px; letter-spacing:0; text-transform:none}
.resttimer .rv,.rt-info .rv {font-size:24px; font-weight:650; margin-top:3px}
.rt-btn {min-height:40px; border-radius:7px; padding:9px 12px}
.rt-btn.skip {background:var(--accent); color:var(--on-accent)}
.resttimer.flash {box-shadow:none}
.rbar i {background:var(--accent)}
.volfill,.stdbar i {background:var(--steel)}

/* Search, evidence, settings, and all existing sheets. */
.seg-tabs {background:var(--well); padding:4px; border-radius:9px; margin-bottom:24px; gap:3px}
.seg-tab {min-height:40px; border-radius:6px; font-size:12px; padding:9px 12px; font-weight:650}
.seg-tabs.scroll .seg-tab {padding-left:6px; padding-right:6px}
.seg-tab.on {background:var(--surface); color:var(--accent-ink)}
.liftpick {margin-bottom:18px}
.liftpick button,.fchip {min-height:36px; border-radius:7px; padding:8px 12px; font-size:12px}
.liftpick button.on,.fchip.on {background:var(--accent); color:var(--on-accent)}
.searchbar {min-height:48px; padding:10px 13px; border-radius:9px; border-color:var(--border-2)}
.searchbar input {font-size:16px}
.searchbar:focus-within {outline:2px solid var(--accent); outline-offset:2px}
.searchbar input:focus {outline:none!important}
.exlist-item {padding:17px 4px; gap:12px; border-radius:0; border:0; border-bottom:1px solid var(--border); background:transparent}
.pick-group {padding:18px 4px 6px; font-size:12.5px; font-weight:700; color:var(--muted); border-bottom:1px solid var(--border)}
.toppick {color:var(--accent-ink); font-weight:700}
.exlist-item .xn .t {font-size:14px; white-space:normal; line-height:1.4}
.exlist-item .xn .s {font-size:12px; line-height:1.4; white-space:normal}
.exlist-item .xi {display:none}
.exlist-item .add {width:40px; height:40px; border-radius:8px; background:var(--accent-soft); color:var(--accent-ink); border:0}
.ev-source {padding:14px; border-radius:10px; background:var(--surface-2)}
.ev-source .c {font-size:13px; line-height:1.5}
.ev-source .u {font-size:11px; line-height:1.45; overflow-wrap:anywhere}
.ev-lib-item,.ev-item {padding:20px 4px; border-radius:0; border:0; border-bottom:1px solid var(--border); margin-bottom:0; gap:16px; background:transparent}
.ev-lib-item .eli-n .t,.ev-item .en .t {font-size:15px; line-height:1.4}
.ev-lib-item .eli-n .s,.ev-item .en .s {font-size:12px; line-height:1.6; margin-top:5px}
.scrim {background:rgb(16 22 27 / .58); backdrop-filter:none; -webkit-backdrop-filter:none}
.sheet {max-width:600px; border-radius:16px 16px 0 0; background:var(--surface); max-height:90dvh; border:1px solid var(--border)}
.scrim.center .sheet {border-radius:16px; max-width:540px}
.sheet-head {padding:16px 20px; gap:14px; border-bottom:1px solid var(--border)}
.sheet-head h3 {font-size:20px; letter-spacing:-.025em; font-weight:700; line-height:1.25}
.sheet-body {padding:20px 20px calc(24px + env(safe-area-inset-bottom,0px)); line-height:1.55; overscroll-behavior:contain}
.sheet-body.tight {padding:10px}
.sheet-grab {margin:10px auto 0; width:32px; height:4px; background:var(--border-2)}
.actitem {min-height:48px; border-radius:8px; font-size:14px; padding:13px 12px}
.actitem .sub {font-size:12px; line-height:1.5}
.field {margin-bottom:18px}
.field label,.field>label,.edlbl {font-size:12px; letter-spacing:0; text-transform:none; font-weight:650; color:var(--ink-2); margin-bottom:8px}
.field input,.field select,.field textarea,.field input[type=text],.numrow input,.edin,.edtext {border:1px solid var(--border-2); border-radius:8px; font-size:16px; min-height:44px; color:var(--ink); background:var(--surface-2)}
.field textarea,.edtext {line-height:1.55}
.field input::placeholder,.field textarea::placeholder,.edtext::placeholder {color:var(--muted); opacity:1}
.pillpick {gap:8px}
.pillpick button,.pills button,.readi-opt button,.optrow button {min-height:40px; border-radius:8px; font-size:12px; padding:9px 11px; line-height:1.35}
.pillpick button.on,.readi-opt button.on,.tog.on {background:var(--selected); color:var(--ink); border-color:transparent}
.pillpick button {white-space:normal}
.settings-row {padding:16px 0; gap:16px}
.settings-row .sl {font-size:14px; line-height:1.45}
.settings-row .sd {font-size:12px; line-height:1.5; max-width:31ch; margin-top:5px}
.toggle-group {padding:3px; border-radius:8px; gap:2px; flex:none}
.toggle-group button {min-height:36px; padding:7px 10px; border-radius:5px; font-size:12px}
.toggle-group button.on {background:var(--surface); color:var(--accent-ink)}
.review-hero h2 {font-size:30px; font-weight:750; letter-spacing:-.035em}
.pr-badge {background:var(--accent); color:var(--on-accent); border-radius:5px}
.optrow button.on.n {background:var(--accent); color:var(--on-accent)}
.optrow button.on.g {background:var(--good); color:var(--on-good)}
.optrow button.on.w {background:var(--warn); color:var(--on-warn)}
.optrow button.on.c {background:var(--crit-soft); color:var(--crit); border:1px solid var(--crit)}
.review-hero .rk {display:none}
.review-hero p {font-size:14px; line-height:1.6}
.rstat {padding:18px 10px; border-radius:10px}
.rstat .v {font-size:25px; font-weight:700}
.rstat .k {font-size:11px; text-transform:none; letter-spacing:0}
.howto {font-size:14px; line-height:1.75}
.howto .ht-l {font-size:13px; font-weight:700; letter-spacing:0; text-transform:none; color:var(--ink); margin:20px 0 8px}
.howto .ht-note {background:var(--accent-soft); border:0; border-radius:9px; padding:14px; line-height:1.6}
.tech-item {padding:18px}
.tech-item h4 {font-size:17px; margin-bottom:10px}
.tech-item .what,.tech-item .how {font-size:13px; line-height:1.65}
.tech-item .note {font-size:12px; line-height:1.6; border-top-style:solid}
.metro-face {background:var(--accent-soft); border:0; border-radius:12px; padding:28px}
.metro-phase {font-size:32px; letter-spacing:-.03em}
#toast,.toast {max-width:calc(100vw - 32px); background:var(--ink); color:var(--bg); border:0; border-radius:9px; padding:13px 17px; font-size:13px; line-height:1.5; box-shadow:none; bottom:calc(88px + env(safe-area-inset-bottom,0px) + var(--tg-strip,0px))}
#toast.act {white-space:normal}
#toast svg {color:var(--bg)}

/* Together uses the same rules while retaining its integrated calendar. */
:host(#m-mix) .appbar {margin:0}
:host(#m-mix) .card {padding:22px; border-radius:14px}
:host(#m-mix) .h2 {font-size:28px; margin:0 0 8px; line-height:1.2}
:host(#m-mix) .h2.train-day {font-size:21px; margin:6px 0 14px}
:host(#m-mix) .h3 {font-size:17px; line-height:1.3}
:host(#m-mix) .lead {font-size:14px; line-height:1.65; max-width:65ch}
.pick {border-radius:10px; padding:15px; margin-bottom:10px}
.pick.on {background:var(--accent-soft); border-color:var(--accent)}
.pick.on .ck,.pick.on .rn {background:var(--accent); color:var(--on-accent)}
.celebico,.unl-ico {background:var(--good); color:var(--on-good); box-shadow:none}
.pick .pt2 span {line-height:1.55; margin-top:5px}
.pick .dot,.logo i {background:var(--accent)!important}
.part {padding:17px 0; gap:13px}
.ph {align-items:flex-start}
.ph b {font-size:15px; line-height:1.4}
.pn {background:var(--accent-soft)!important; color:var(--accent)!important; border-radius:7px}
.ps,.pt {line-height:1.65}
.pacts {gap:8px; margin-top:12px}
.note {border-radius:8px; padding:12px; line-height:1.6}
.note.warn {background:var(--warn-soft); color:var(--warn)}
.tog {min-height:40px; border-radius:8px}
.day {grid-template-columns:60px minmax(0,1fr) auto; padding:14px 0; gap:12px}
.dchip {border-radius:6px; min-height:32px; padding:6px 9px; font-size:11px}
button.dchip {min-height:36px}
.dchip.on {background:var(--accent-soft); color:var(--accent-ink)}
.dchip i {background:var(--accent)!important}
.dchip.done {background:var(--good-soft); color:var(--good-ink)}
.scale {gap:6px}
.scale button {min-height:44px; border-radius:8px}
.scale button.on,.pills button.on {background:var(--accent); color:var(--on-accent)}
.srow {padding:9px 0}
.srow input[type=range] {height:36px}
.rules summary {min-height:44px}
.rule {padding:16px 0}
.rule p {font-size:13px; line-height:1.65}
.rule b {font-size:14px}

/* A day is a sequence of real work. Its number belongs to the workout,
   while supporting choices and program disclosures use quiet ruled rows. */
.workout-heading {display:flex; align-items:center; gap:22px; min-width:0}
.workout-order {display:flex; flex-direction:column; align-items:center; gap:1px; min-width:62px; padding-right:22px; border-right:1px solid var(--border-2); color:var(--muted); font-size:11px; line-height:1.4; flex:none}
.workout-order b {font-family:var(--disp)!important; font-size:var(--day-number); font-weight:700; line-height:1; letter-spacing:-.03em; color:var(--ink); font-variant-numeric:tabular-nums}
.workout-title {min-width:0}
.workout-title h2 {font-size:var(--workout-title); line-height:1.12; letter-spacing:-.03em; margin:0 0 10px; text-align:left; overflow-wrap:anywhere}
.workout-duration {display:flex; align-items:center; gap:6px; font-size:12px; color:var(--muted)}
.workout-duration svg {width:15px; height:15px; flex:none}
.workout-start {margin-top:24px}
:host(#m-mix) .card.next-session {padding:24px; border-color:var(--border-2)}
.next-session .workout-warmup {margin:12px 0 4px; max-width:65ch; line-height:1.6}
.next-session .copyfold {margin:12px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border)}
.workout-options {display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:16px}
.workout-options .row2 {display:flex; flex-wrap:wrap; flex:1 1 250px; margin:0; gap:8px}
.workout-options .row2>* {flex:1 1 110px; min-height:44px; border-color:var(--border-2)}
.workout-options>[data-a="skip-day"] {width:auto; min-height:44px; padding:10px 12px; background:none; border-color:transparent; font-size:12px; color:var(--muted)}
.workout-options>.pills {flex-basis:100%; order:1}
.copyfold>summary {min-height:52px; font-size:14px; font-weight:600; gap:12px; color:var(--ink)}
.copyfold>summary::after {content:""; width:7px; height:7px; border-right:1.5px solid var(--muted); border-bottom:1.5px solid var(--muted); transform:rotate(45deg); margin:0 4px 4px 0; flex:none}
.copyfold[open]>summary::after {transform:rotate(225deg); margin-bottom:-4px}
.copyfold>summary>svg {display:none}
.foldlist {border-bottom:1px solid var(--border)}
.foldlist>.copyfold {margin:0; border-top:1px solid var(--border); padding:0 2px}
.foldlist>.copyfold>.card {background:transparent; border:0; border-radius:0; padding:16px 0 24px}
.foldlist>.copyfold[open]>summary {border-bottom:1px solid var(--border)}
.today-main>button[data-a="edit"] {justify-self:start; width:auto; padding-left:0; background:none; border-color:transparent; color:var(--accent-ink); text-align:left}
.session-status {margin:6px 0 0; font-size:12px; line-height:1.5; color:var(--muted)}
.today-main>.backto .h3 {overflow-wrap:anywhere}
.today-main>.backto .spread {gap:16px}
.today-main .running-day [data-a="open"] {background:var(--surface); color:var(--ink); border-color:var(--border-2)}
.today-main .running-day [data-a="open"]:hover {background:var(--surface-2)}
.ciline .pills {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); flex:1 1 100%}
.ciline [data-a="ci-edit"] {width:100%}
:host(#m-mix) .pills.even {display:grid; grid-template-columns:repeat(auto-fit,minmax(44px,1fr))}
.secdot {display:inline-block; width:8px; height:8px; border-radius:99px; margin-right:7px; vertical-align:1px}
.nw {white-space:nowrap}
/* A swap shows what each day of the week has for that muscle or area. */
.weekpeek {margin:10px 16px 4px; padding:10px 12px; border:1px solid var(--border); border-radius:8px; background:var(--surface-2,var(--well))}
.wp-h {margin-bottom:2px; font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--muted)}
.wp-row {display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:4px 10px; align-items:baseline; padding:6px 0; border-top:1px solid var(--border); font-size:13px; line-height:1.4}
.wp-h+.wp-row {border-top:0}
.wp-row b {font-weight:650; color:var(--ink); white-space:nowrap}
.wp-row span {min-width:0; color:var(--ink-2,var(--ink)); overflow-wrap:anywhere}
.wp-row em {font-style:normal; font-size:11px; font-weight:600; color:var(--accent-ink,var(--accent)); white-space:nowrap}
.wp-note {margin:4px 0 0; font-size:12px; color:var(--muted)}
/* Progress and Library carry their page title, and a section's evidence button, above the filters (the shell's
   subhead), so a section's own header gives way. */
:host(.subnav-head) .appbar {display:none}
.first>.field[aria-label="Train"] {display:grid; grid-template-columns:minmax(0,1fr); gap:10px; max-width:none}
.first .pick {margin:0; min-width:0; min-height:86px; align-items:center}
.first .pick .pt2 {overflow-wrap:anywhere}
.first .pick .dot {display:none}
.first .pick.on {background:var(--accent-soft); border-color:var(--accent)}
.first .pick .pt2 b {font-family:var(--disp)!important; font-size:18px}
.first .pick .pt2 span {font-size:13px; line-height:1.5}
.first .pick .ck {width:28px; height:28px; border-radius:7px; flex:none}
.first .pick .ck .rank {font-size:15px; font-weight:800; line-height:1; font-variant-numeric:tabular-nums}
.first .field {margin-top:24px}
.first .btn.big {margin-top:12px}
.stat {background:transparent; border:0; border-radius:0; padding:14px 0}
.cond-history th {font-weight:600; color:var(--muted)}
#cond-form,#goal-form {margin-top:24px}
.sheet .sheet-body p {max-width:70ch}
.sheet-body .card:has(>.howto) {padding:0; border:0; border-radius:0; background:transparent}
.liblist {gap:0; margin-top:16px}
.librow {min-height:68px; padding:14px 0; border:0; border-bottom:1px solid var(--border); border-radius:0; background:transparent}
.librow>span {gap:5px}
.librow b {font-weight:600}
.librow:hover {background:var(--surface-2)}

@media(min-width:600px) {
  .first>.field[aria-label="Train"] {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:1000px) {
  :host {--page-title:32px; --workout-title:32px; --day-number:60px}
  :host(#m-mix) #view>.today-main {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:24px}
  :host(#m-mix) #view>.today-main>* {grid-column:1/-1}
  :host(#m-mix) #view>.today-main>.card:has([data-a="cond-log"]),:host(#m-mix) #view>.today-main>#cicard {grid-column:auto; height:100%}
  :host(#m-mix) .card.next-session {padding:30px}
  .next-session:not(.running-day) {display:grid; grid-template-columns:minmax(0,1fr) 200px; gap:0 28px; align-items:center}
  .next-session:not(.running-day)>* {grid-column:1/-1; min-width:0}
  .next-session:not(.running-day)>.workout-heading {grid-column:1}
  .next-session:not(.running-day)>.workout-start {grid-column:2; margin:0}
  .next-session .workout-warmup {margin-top:22px}
  .workout-options .row2 {flex:0 1 auto}
  .workout-options .row2>* {flex:0 1 auto; padding-left:16px; padding-right:16px}
  .workout-options>[data-a="skip-day"] {margin-left:auto}
}
@media(max-width:389px) {
  .workout-heading {gap:16px}
  .workout-order {padding-right:16px; min-width:50px}
  :host(#m-mix) .card.next-session {padding:20px}
}

@media(hover:hover) {
  .btn:hover:not(:disabled),.iconbtn:hover,.tinybtn:hover,.exlist-item:hover,.actitem:hover,.ev-source:hover,.ev-item:hover,.ev-lib-item:hover,.ladder-card:hover,.prog-card:hover,.pick:hover,.sesrow:hover {background:var(--surface-2); border-color:var(--border-2)}
  .btn.primary:hover,.btn.pri:hover {background:color-mix(in srgb,var(--accent) 89%,var(--ink)); color:var(--on-accent); border-color:var(--accent)}
  .tab:hover:not(.active) {background:var(--surface-2); color:var(--ink)}
  .pillpick button:hover:not(.on),.pills button:hover:not(.on),.seg-tab:hover:not(.on) {background:var(--surface)}
  .donebtn:hover {border-color:var(--accent); color:var(--accent)}
}

@media(min-width:720px) and (max-width:999px) {
  #app {max-width:760px}
  .appbar {padding:28px 32px 22px!important}
  #view {padding:0 32px calc(112px + var(--tg-strip,0px))}
  .hero {padding:28px}
  .board {grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(min-width:1000px) {
  .appbar {padding:30px 40px 23px!important}
  #view {padding:0 40px calc(80px + var(--tg-strip,0px))}
  #view.resting {padding-bottom:calc(140px + var(--tg-strip,0px))}
  .appbar .brand p,.appbar p {font-size:13px}
  .appbar .iconbtn {width:40px; height:40px; border:0; background:transparent}
  .tabbar {position:sticky; top:var(--shell-top,64px); left:auto; right:auto; bottom:auto; z-index:10;
    margin:0 40px 26px; width:auto; max-width:none; min-height:48px; height:auto; display:flex;
    gap:25px; padding:0; background:var(--bg); border-top:0; border-bottom:1px solid var(--border-2)}
  .tab {position:relative; flex-direction:row; gap:8px; min-height:47px; padding:12px 0 13px; font-size:13px;
    font-weight:600; border-radius:0; background:transparent; color:var(--muted)}
  .tab svg {width:16px; height:16px}
  .tab.active {background:transparent; color:var(--accent-ink); font-weight:700}
  .tab.active::after {content:""; position:absolute; bottom:-1px; height:2px; left:0; right:0; background:var(--accent)}
  .tab:hover:not(.active) {background:transparent; color:var(--ink)}
  .hero {padding:28px; min-height:260px}
  .hero h2 {font-size:32px; max-width:23ch}
  .hero .sub {font-size:14px; margin-bottom:24px}
  .hero>.grid2 {margin-top:auto}
  .hero>.btn:last-child {margin-top:auto}
  .metric {min-height:105px; padding:16px 13px}
  .metric .v {font-size:30px}
  .metric .k {font-size:11px}
  .tip {padding:22px}
  .tip p {font-size:13px}
  .training-week {padding:28px 0 0}
  .day-item {padding:12px 8px}
  .day-date {font-size:23px}
  .day-name {font-size:11px}
  .board {grid-template-columns:repeat(3,minmax(0,1fr))}
  .pad,.card.pad {padding:24px}
  .daycard {padding:22px}
  .excard {max-width:820px}
  .exhead {padding:23px 24px 15px}
  .exhead h3 {font-size:20px}
  .setgrid {padding:4px 22px 17px}
  .excard-actions {padding:0 24px 20px}
  .target-row {padding:0 24px 18px}
  .train-head {max-width:820px}
  .train-head h2 {font-size:28px}
  .resttimer {left:236px; right:20px; bottom:calc(24px + var(--tg-strip,0px)); max-width:580px}
  .scrim {padding-left:216px}
  .sheet {left:216px; right:0; max-width:600px; max-height:calc(100dvh - 100px)}
  .scrim .sheet {left:auto; right:auto}
  .scrim.center .sheet {margin:0 24px}
  .sheet-body {padding:24px 28px 28px}
  .sheet-head {padding:17px 28px}
  #toast,.toast {left:calc(50% + 108px); bottom:calc(26px + var(--tg-strip,0px)); max-width:calc(100vw - 264px)}
  .empty,.empty-train {padding-top:85px; padding-bottom:85px}
  .empty h3,.empty-train h3 {font-size:28px}
  .settings-row .sd {max-width:40ch}
  .volrow {padding:10px 0}
  .volrow .nm {width:110px; font-size:13px}
  .volrow .vn {font-size:13px}
  .ev-lib-item,.ev-item {padding:22px 4px}
  .ev-lib-item .eli-n .t,.ev-item .en .t {font-size:16px}
  .exlist-item {padding:20px 4px}
  .rpegrid {font-size:15px}
  .rpegrid td {padding:12px 10px}
  .rpegrid th {padding:9px 10px; font-size:11px}
  :host(#m-mix) #view>.stack:not(.today-main) {display:grid; grid-template-columns:1.3fr 1fr; align-items:start; gap:22px}
  :host(#m-mix) #view>.stack>:first-child {grid-column:1/-1}
  :host(#m-mix) .field {max-width:720px}
}

@media(min-width:1100px) {
  .today-layout,.today-layout>.stack {display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); gap:20px; align-items:start}
  .today-layout>*,.today-layout>.stack>* {grid-column:1/-1}
  .today-layout>.hero,.today-layout>.stack>.hero {grid-column:1; grid-row:1/span 2; height:100%; min-height:300px}
  .today-layout>.grid3,.today-layout>.stack>.grid3 {grid-column:2; grid-row:1}
  .today-layout>.tip,.today-layout>.stack>.tip {grid-column:2; grid-row:2; height:100%}
  :host(#m-cal) .today-layout>.hero {grid-row:1; min-height:250px}
  :host(#m-cal) .today-layout>.grid3 {height:100%; align-content:start; grid-template-columns:1fr}
  :host(#m-cal) .today-layout>.grid3 .metric {min-height:70px; flex-direction:row; align-items:center; padding:16px 20px}
  :host(#m-cal) .today-layout>.grid3 .metric .v {margin:0; font-size:25px}
  :host(#m-cal) .today-layout>.grid3 .metric .k {font-size:12px}
  .training-week {grid-column:1/-1}
}

@media(max-width:389px) {
  .appbar {padding:21px 16px 18px!important; gap:7px}
  .brand h1,.appbar h1 {font-size:18px}
  .brand p,.appbar p {font-size:11px}
  .appbar .iconbtn {width:38px; height:40px}
  #view {padding-left:14px; padding-right:14px}
  .hero {padding:20px}
  .hero h2 {font-size:26px; line-height:1.17}
  .hero .sub {font-size:13px; margin-bottom:20px}
  .grid2,.grid3 {gap:8px}
  .btn {padding-left:11px; padding-right:11px; font-size:13px}
  .metric {padding:13px 9px; min-height:86px}
  .metric .k {font-size:10px}
  .metric .v {font-size:25px}
  .tip,.pad,.card.pad {padding:17px}
  .training-week {padding:22px 0 0}
  .training-week h3 {font-size:16px}
  .day-strip {gap:4px}
  .day-item {padding:10px 2px}
  .day-date {font-size:18px}
  .day-name {font-size:9px}
  .section-label {font-size:14px}
  .section-label .faint {font-size:10px}
  .exhead {padding:16px 13px 11px; gap:6px}
  .exhead h3 {font-size:17px}
  .setgrid {padding-left:7px; padding-right:7px}
  .target-row {padding-left:12px; padding-right:12px; gap:4px}
  .tinput {padding:7px 4px; gap:3px}
  .tinput label {font-size:10px}
  .tinput input {width:21px}
  :host(#m-str) .setrow,:host(#m-str) .setrow-head {grid-template-columns:28px minmax(0,1fr) 40px 36px 38px 24px; gap:4px}
  :host(#m-str) .sidx {width:28px}
  :host(#m-lift) .setrow,:host(#m-lift) .setrow-head,:host(#m-lift) .seg {grid-template-columns:22px minmax(0,1fr) minmax(0,.9fr) 32px 38px 24px; gap:4px}
  .setrow-head span {font-size:9px; letter-spacing:0}
  .sinput {font-size:15px}
  .sheet-body {padding-left:16px; padding-right:16px}
  .sheet-head {padding-left:16px; padding-right:16px}
  .sheet-head h3 {font-size:18px}
  .settings-row {align-items:flex-start; flex-wrap:wrap; gap:10px}
  .settings-row .sd {max-width:none}
  .toggle-group {max-width:100%}
  .optrow button,.readi-opt button {font-size:11px; padding:9px 5px}
  .field .grid2 {gap:8px}
  .btn.sm {padding:9px 10px; font-size:11px}
  .day {grid-template-columns:43px minmax(0,1fr) auto; gap:7px}
  .dchip {padding:5px 6px; font-size:10px}
  .dmin {font-size:11px}
  .ph {flex-wrap:wrap; gap:3px 8px}
  .ph span {font-size:11px}
  .srow {grid-template-columns:76px minmax(0,1fr) 22px; gap:7px}
  .srow .nm {font-size:12px}
  :host(#m-mix) .card {padding:17px}
  :host(#m-mix) .h2 {font-size:25px}
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {animation:none!important; transition:none!important; scroll-behavior:auto!important}
}

/* During a session toasts sit at the top, clear of the set rows and the Done button. */
:host(.training) #toast,:host(.training) .toast {top:calc(var(--shell-top,64px) + 10px); bottom:auto}
/* Both ways of logging keep the same fields, with room for a thumb and a keyboard. */
.session-sr {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
/* The session's header: the day and its clock, Finish, and the switch between the set you're on and every set. */
.session-top {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 0 14px;border-bottom:1px solid var(--border);margin-bottom:20px}
.session-title {display:flex;flex-direction:column;gap:3px;min-width:0}
.session-title [data-session-day] {font-family:var(--disp)!important;font-size:19px;font-weight:700;line-height:1.25;color:var(--ink);overflow-wrap:anywhere;text-wrap:balance}
.session-title #elapsed {font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.session-finish {padding:0 22px}
.session-views {grid-column:1/-1;display:flex;gap:4px;padding:4px;border-radius:12px;background:var(--well);min-width:0}
.session-views button {flex:1 1 0;min-height:44px;border:0;border-radius:9px;background:none;color:var(--ink-2);font-size:14px;font-weight:650;cursor:pointer}
.session-views button[aria-pressed=true] {background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.16)!important;cursor:default}
.session-stage {max-width:640px;margin:0 auto}
.session-card {padding:28px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg)}
.session-card h2 {font-size:32px;line-height:1.15;margin:10px 0;overflow-wrap:anywhere}
.session-count {display:inline-flex;align-items:center;min-height:28px;padding:4px 8px;background:var(--well);border-radius:5px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.session-target {font-size:16px;color:var(--ink-2);margin:0 0 24px}
.session-cue {font-size:13.5px;line-height:1.5;color:var(--muted);margin:-12px 0 16px}
.session-card .setrow {display:flex!important;flex-direction:column;align-items:stretch;gap:20px;padding:24px 0 0;border:0;border-top:1px solid var(--border);border-radius:0;background:none}
.session-card .setwrap,.session-card .lr {display:contents}
.session-field {display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:650;min-width:0}
.session-step {display:grid;grid-template-columns:48px minmax(0,1fr) 48px;gap:8px;align-items:center}
.session-step input.sinput {width:100%;height:56px;min-width:0;font-size:var(--field-number);text-align:center;max-width:none;background:var(--surface);border-color:var(--border-2)}
.session-step button {height:48px;width:48px;padding:12px;border:1px solid var(--border-2);border-radius:var(--r-sm);background:var(--surface);color:var(--ink)}
.session-step svg {width:22px;height:22px}
.session-card .session-clean {display:flex;gap:12px;align-items:center;font-size:14px;margin:16px 0}
.session-clean input {width:44px;height:44px;flex:none;accent-color:var(--accent)}
.session-method {font-size:13px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:16px}
.session-effort {display:grid;grid-template-columns:repeat(auto-fit,minmax(44px,1fr));gap:8px;margin-top:20px}
.session-effort button {min-width:44px;min-height:44px;padding:8px;border:1px solid var(--border-2);border-radius:var(--r-sm);background:var(--surface);color:var(--ink)}
.session-effort button[aria-pressed=true] {background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
.session-done {min-height:60px;width:100%;font-size:18px;margin:24px 0 12px}
.session-card .session-done {margin-bottom:0}
@media(min-width:600px) {
  /* The field editor replaces each trainer's more specific six-column log. */
  .session-card .setrow {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px!important;max-width:none}
  .session-field:first-child {grid-column:1/-1}
  .session-card .setrow>.session-clean {grid-column:1/-1}
  .session-step {grid-template-columns:44px minmax(44px,1fr) 44px;gap:6px}
  .session-step button {width:44px}
}
@media(max-width:500px) {
  .session-card {padding:18px}
  .session-card h2 {font-size:28px}
  .session-target {font-size:14px;margin-bottom:16px}
  .session-cue {margin-top:-8px}
  .session-card .setrow {gap:12px;padding-top:16px}
  .session-field {gap:6px}
  .session-step {grid-template-columns:44px minmax(0,1fr) 44px;gap:6px}
  .session-step button {width:44px;height:44px;padding:10px}
  .session-step input.sinput {height:48px}
  .session-card .session-effort {gap:6px;margin-top:12px}
  .session-effort button {font-size:12px;padding:6px}
  .session-card .session-done {min-height:52px;margin-top:16px}
  .session-plates {min-height:58px}
  [data-session-plates] {margin-top:12px}
}
@media(max-width:359px) {
  .session-card {padding:16px 12px}
  .session-card h2 {font-size:24px}
}
[data-session-plates] {margin-top:20px;font-size:13px;color:var(--muted)}
.session-plates {display:flex;flex-wrap:wrap;align-items:center;gap:4px;position:relative;min-height:76px;padding:5px 10px;isolation:isolate}
.session-bar {position:absolute;height:8px;left:0;right:0;top:calc(50% - 4px);background:var(--steel);z-index:-1}
.session-plate {min-width:28px;background:var(--steel);color:var(--surface);font-size:12px;display:flex;align-items:center;justify-content:center;border-radius:3px;font-style:normal}
.session-rest {text-align:center;padding:20px 0}
.session-rest h2 {font-size:28px;margin:0 0 20px}
.session-clock {position:relative;width:min(240px,100%);aspect-ratio:1;margin:0 auto}
.session-clock svg {width:100%;height:100%;transform:rotate(-90deg)}
.session-clock circle {fill:none;stroke:var(--accent);stroke-width:5;stroke-dasharray:283;stroke-linecap:round}
.session-clock .session-track {stroke:var(--border);stroke-dasharray:none}
.session-clock span {position:absolute;inset:0;display:grid;place-items:center;font-size:clamp(32px,10vw,48px);font-variant-numeric:tabular-nums;font-weight:650}
.session-rest p {font-size:15px;color:var(--muted);line-height:1.5}
.session-rest-actions {display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:24px}
:host(.session-focus) #rest,:host(.session-focus) #resttimer,:host(.session-focus) header,:host(.session-focus) #tabbar {display:none!important}
:host(.session-focus) main {padding-top:16px;padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
@media(min-width:1000px) {:host(.session-focus) main {padding-bottom:24px}}
:host(.session-focus) .sheet {left:0}
:host(.session-focus) .scrim {padding-left:0}
:host(.session-focus) #toast,:host(.session-focus) .toast {left:50%;max-width:calc(100vw - 32px)}
.session-card [hidden],.session-stage>[hidden] {display:none!important}
.excard-actions {flex-wrap:wrap;overflow:visible;gap:8px}
.excard-actions .tinybtn,.exhead .setmenu,.setopt,.donebtn {min-width:44px;min-height:44px}
.setrow,.setrow-head,:host(#m-str) .setrow,:host(#m-str) .setrow-head,:host(#m-lift) .setrow,:host(#m-lift) .setrow-head {grid-template-columns:34px minmax(60px,1.15fr) minmax(52px,.95fr) 44px 44px 44px;gap:8px}
:host(#m-cal) .setrow,:host(#m-cal) .setrow-head {grid-template-columns:24px minmax(64px,1fr) 44px 44px 44px;gap:8px}
.sinput {font-size:16px;min-width:0}
.targetrow input,.targetline input,.targets input,.tinput input {min-height:44px;min-width:44px}
.setrow {scroll-margin-top:30vh;max-width:680px}
@media(min-width:760px) {.setgrid {max-width:680px}}
@media(max-width:500px) {
  .setrow,.setrow-head,:host(#m-str) .setrow,:host(#m-str) .setrow-head,:host(#m-lift) .setrow,:host(#m-lift) .setrow-head {grid-template-columns:24px minmax(44px,1.15fr) minmax(44px,.95fr) 44px 44px 44px;gap:8px}
  .setrow .sidx,:host(#m-str) .setrow .sidx {width:24px;font-size:10px}
  .setgrid {padding-left:8px;padding-right:8px}
}
@media(max-width:359px) {
  .setrow-head {display:none!important}
  .setrow,:host(#m-str) .setrow,:host(#m-lift) .setrow,:host(#m-cal) .setrow {display:flex;flex-wrap:wrap;gap:8px;padding:10px 4px;align-items:center}
  .setrow .sidx {width:24px;flex:none}
  .setrow .setwrap {flex:1 1 60px;min-width:44px}
  .setrow>.sinput {flex:1 1 60px;width:60px}
  .setrow .lr {flex:1 1 112px;min-width:0;gap:8px}
  .setrow .lr input {min-width:44px}
  .setrow>.donebtn,.setrow>.setopt {margin-top:0;flex:0 0 44px}
  .setrow>.pl,.setrow>.calrow {flex:1 1 100%;min-width:0;overflow-wrap:anywhere}
  .session-title [data-session-day] {font-size:17px}
}
@media(max-width:259px) {
  main {padding-left:8px!important;padding-right:8px!important}
  .exhead {padding-left:8px;padding-right:8px;gap:8px;flex-wrap:wrap}
  .exhead .en {width:100%}
  .excard-actions {padding-left:8px;padding-right:8px}
  .train-head {flex-wrap:wrap}
  .train-head .tt {flex-basis:calc(100% - 56px)}
  .session-step {grid-template-columns:44px minmax(0,1fr) 44px}
  .session-step button {width:44px}
  .session-step input.sinput {font-size:20px}
}
.exercise-targets {display:flex;align-items:center;min-height:32px;margin:0 18px 12px}
.target-summary {display:flex;flex:1;flex-wrap:wrap;align-items:baseline;gap:4px 12px;min-width:0;color:var(--muted);font-size:13px;line-height:1.5}
.target-summary>span {white-space:nowrap}
.target-summary b {color:var(--ink-2);font-weight:600;font-variant-numeric:tabular-nums}
@media(min-width:900px) {.exercise-targets {margin-left:24px;margin-right:24px}}
@media(max-width:380px) {.exercise-targets {margin-left:12px;margin-right:12px}}
@media(max-width:259px) {
  .target-summary {gap:2px 8px}
  .first .pick {flex-wrap:wrap;padding:12px;gap:8px}
  .first .pick .pt2 {flex-basis:100%}
  .workout-heading {flex-direction:column;align-items:flex-start;gap:12px}
  .workout-order {flex-direction:row;min-width:0;padding:0;border:0;gap:8px}
  .workout-order b {font-size:32px}
  .workout-title h2 {font-size:24px}
}
.session-top {position:sticky;top:var(--shell-safe-top,0px);z-index:20;background:var(--bg)}
:host(.session-focus) #toast,:host(.session-focus) .toast {top:calc(var(--shell-safe-top,0px) + 8px);bottom:auto}
:host(.session-running) #view button,:host(.session-running) #view input:not([type=range]) {min-height:44px;min-width:44px}
:host(.session-running) #view .pillpick,:host(.session-running) #view .row {gap:8px!important}
:host(.session-running) .train-head {gap:8px}

/* Session context is compact; the first exercise is the working heading. */
:host(.session-running) .train-head {display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:start;gap:8px;margin-bottom:12px}
:host(.session-running) .train-head .tt {min-width:0;padding-inline-start:8px}
:host(.session-running) .train-head h2 {font-size:20px;line-height:1.25;overflow-wrap:anywhere}
:host(.session-running) .train-head .el {margin-top:4px}
.train-head .session-tools {grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr);grid-auto-flow:column;grid-auto-columns:auto;align-items:center;gap:8px}
.train-head .session-tools .tinybtn {margin:0;background:transparent;border-color:var(--border-2);color:var(--ink-2);font-size:12px;padding:8px 12px}
.train-head .session-tools .session-views {min-width:0}
.session-views button {min-width:0; padding:0 8px; overflow-wrap:anywhere}
.train-head .session-tools .setmenu {margin-left:auto}
.session-prep {max-width:820px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin:0 0 20px}
.session-prep>summary {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:8px 0;box-sizing:border-box;list-style:none;cursor:pointer;font-size:12px;font-weight:650;color:var(--muted)}
.session-prep>summary::-webkit-details-marker {display:none}
.prep-chevron {display:flex;flex:none}
.prep-chevron svg {width:16px;height:16px;transform:rotate(90deg)}
.session-prep[open] .prep-chevron svg {transform:rotate(-90deg)}
.session-prep-body {padding:0 0 12px;display:grid;gap:8px}
.session-readiness {display:flex;align-items:center;gap:8px;width:100%;padding:8px 0;text-align:left;background:transparent;border:0;border-radius:6px;color:var(--ink-2);font:inherit;font-size:13px;line-height:1.5;cursor:pointer}
.session-readiness>svg {width:16px;height:16px;flex:none;color:var(--steel)}
.session-readiness>span:not(.prep-edit) {flex:1;min-width:0;overflow-wrap:anywhere}
.session-readiness .prep-edit {flex:none;color:var(--steel);font-size:12px;font-weight:650}
.session-readiness .prep-edit svg {width:16px;height:16px}
.session-readiness.warn {padding:12px;background:var(--warn-soft);color:var(--warn)}
.session-readiness.warn>svg,.session-readiness.warn .prep-edit {color:var(--warn)}
.session-prep .warmline {margin:0;padding:8px 0;border:0;background:transparent;border-radius:0}
@media(hover:hover) {.session-prep>summary:hover,.train-head .session-tools .tinybtn:hover {color:var(--accent-ink)}.session-readiness:hover .prep-edit {text-decoration:underline;text-underline-offset:3px}}
@media(min-width:1000px) {:host(.session-running) .train-head h2 {font-size:24px}}
@media(max-width:359px) {:host(.session-running) .train-head {grid-template-columns:44px minmax(0,1fr)}:host(.session-running) .train-head>[data-act="finish"] {grid-column:2;justify-self:start}.train-head .session-tools .tinybtn {flex:1}}

.cond-timer {text-align:center;padding:24px}
.cond-clock {font-size:clamp(3rem,14vw,6rem);font-variant-numeric:tabular-nums;margin:24px 0}
.cond-history {overflow-x:auto}
.cond-history table {width:100%;border-collapse:collapse;text-align:left;font-size:13px}
.cond-history th,.cond-history td {padding:10px 6px;border-bottom:1px solid var(--border)}
progress {display:block;width:100%;height:10px;accent-color:var(--accent);margin:6px 0;max-width:100%}
#cond-form input,#cond-form select,#goal-form input,#goal-form select,[data-cond-setting] {width:100%;min-width:0;max-width:100%;min-height:44px;background:var(--surface-2);color:var(--ink);border:1px solid var(--border-2);border-radius:8px;padding:10px;font:inherit}

:host(.session-running) .appbar,:host(.session-running) #tabbar {display:none!important}
:host(.session-running) #view {padding-top:16px}
:host(.session-running) .sheet {left:0}
:host(.session-running) .scrim {padding-left:0}
/* In a workout the header is gone (--shell-top is 0), so a message sits under the status bar and Dynamic Island, not on them.
   #toast as well as .toast: the Train rule above names the id, which would otherwise win. */
:host(.session-running) #toast,:host(.session-running) .toast {left:50%;top:calc(var(--shell-safe-top,0px) + 8px);bottom:auto;max-width:calc(100vw - 32px)}
/* Ladder's recommendation: one goal in front, the others in a fold beside it. */
.trec .trow.best {border:1px solid var(--accent); border-radius:10px; padding:12px; background:var(--accent-soft)}
.trec-more {margin-top:10px}
.trec-more>summary {cursor:pointer; font-size:13.5px; font-weight:650; color:var(--ink-2); padding:8px 0; min-height:44px; display:flex; align-items:center}
.trec-more>summary::-webkit-details-marker {display:none}
.trec-more>summary::after {content:""; width:8px; height:8px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); margin:-4px 0 0 10px}
.trec-more[open]>summary::after {transform:rotate(225deg); margin-top:4px}
.workout-preview {margin:14px 0 0; font-size:14.5px; line-height:1.55; color:var(--ink-2)}
.workout-preview .sr {position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%)}
