/* fonts bundled locally (OFL) so the prototype works without a CDN */
@font-face{ font-family:'Cormorant Garamond'; font-weight:500; font-style:italic; font-display:swap; src:url('./fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2'); }
@font-face{ font-family:'Archivo'; font-weight:100 900; font-style:normal; font-display:swap; src:url('./fonts/archivo-latin-wght-normal.woff2') format('woff2'); }

/* ==========================================================================
   FailUp — design tokens + components
   No build step. Each screen is styled with plain classes so a React rebuild
   can lift these 1:1 into CSS modules / styled components.
   ========================================================================== */

:root {
  /* canvas + surfaces */
  --bg:        #ebebeb;   /* paper/cream — the gray app canvas */
  --bg-soft:   #f4f4f5;
  --surface:   #ffffff;
  --hair:      #ececee;   /* hairline divider */
  --track:     #ebebeb;   /* inert control track */
  --field:     #f2f3f4;

  /* ink */
  --ink:       #111111;
  --ink-2:     #141414;
  --sec:       #5f636b;   /* secondary label */
  --sub:       #828282;   /* tertiary / dates */
  --ghost:     #9fa2a8;

  /* brand / accents */
  --purple:    #6c5ce7;   /* overload + progress. ALWAYS purple on the tracker. */
  --purple-dk: #5346c4;
  --red:       #cf2a0f;   /* highlight only; no longer "exercises" */
  --navy:      #426e8f;

  /* shape */
  --r-card:    16px;
  --r-lg:      20px;
  --r-pill:    999px;
  --shadow:    0 8px 24px rgba(20,20,23,.08);
  --shadow-sm: 0 2px 8px rgba(20,20,23,.10);

  /* type */
  --sans: 'Archivo', -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
  --display: 'Archivo', sans-serif;

  /* ---- 12 workout colors (cool-forward, all AA 4.9:1 on white for small text) ---- */
  --wc-slate:   #4573A8;
  --wc-ocean:   #25799D;
  --wc-teal:    #177D81;
  --wc-pine:    #1E805F;
  --wc-fern:    #258144;
  --wc-indigo:  #6B64C9;
  --wc-violet:  #835ACB;
  --wc-grape:   #A24BBD;
  --wc-magenta: #BD3F93;
  --wc-rose:    #C34264;
  --wc-clay:    #A95C3B;
  --wc-amber:   #8E6B26;
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  background:#d9d9dc;
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display:flex; justify-content:center;
  min-height:100vh;
}

/* phone frame on desktop; full-bleed on small screens */
.device {
  width:393px; height:852px;
  background:var(--bg);
  position:relative; overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
}
@media (max-width:440px){
  body{background:var(--bg);}
  .device{width:100%; height:100vh; height:100dvh; box-shadow:none;}
}

.app { height:100%; overflow-y:auto; background:var(--bg); -webkit-overflow-scrolling:touch; }
.app::-webkit-scrollbar{ width:0; height:0; }
.overlay{ position:absolute; inset:0; z-index:40; }
.overlay:empty{ display:none; }

button { font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- status bar ---------- */
.statusbar{
  height:54px; display:flex; align-items:center; justify-content:space-between;
  padding:0 24px 0 28px; background:var(--surface);
  font-weight:700; font-size:1rem;
}
.statusbar .sb-right{ display:flex; gap:7px; align-items:center; }

/* ---------- generic nav header ---------- */
.nav{
  display:flex; align-items:center; gap:12px;
  padding:6px 16px 12px; background:var(--surface);
  position:relative;
}
.nav .nav-title{
  position:absolute; left:50%; transform:translateX(-50%);
  font-weight:700; font-size:1.125rem; letter-spacing:-.01em; white-space:nowrap;
}
.icon-btn{
  width:44px; height:44px; border-radius:var(--r-pill);
  background:var(--surface); border:1px solid var(--hair);
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-sm);
}
.icon-btn svg{ display:block; }

/* ======================================================================
   OVERLOAD TRACKER (exercise tracker screen)
   ====================================================================== */
.tracker{ background:var(--bg); min-height:852px; }

.tk-hero{ background:var(--surface); padding:0 0 18px; }

.tk-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 16px 10px; gap:12px;
}
.tk-title{ font-weight:600; font-size:2rem; letter-spacing:-.02em; line-height:1; }
.tk-sortbtn{
  width:46px; height:40px; border-radius:var(--r-pill);
  background:var(--track); display:flex; align-items:center; justify-content:center; flex:none;
}

.tk-equip{
  display:flex; align-items:center; gap:12px; padding:2px 16px 4px;
}
.tk-equip-img{
  width:56px; height:48px; border-radius:8px; object-fit:cover; background:#dcdce0; flex:none;
}
.tk-equip-text{ flex:1; min-width:0; }
.tk-equip-label{ font-size:0.8125rem; font-weight:500; color:var(--sec); }
.tk-equip-name{ font-size:1rem; font-weight:700; color:#000; letter-spacing:-.01em; }

/* chart */
.tk-chart{ padding:14px 8px 4px; }
.tk-chart svg{ display:block; width:100%; height:auto; }

/* goal-displayed row */
.tk-goalrow{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 16px 14px; gap:10px;
  border-top:1px solid var(--hair);
}
.tk-goalrow .g-label{ font-size:0.8125rem; color:var(--sec); font-weight:500; }
.tk-goalrow .g-value{ font-size:1.062rem; font-weight:600; letter-spacing:-.01em; margin-top:2px; }
.tk-goalrow .g-value .lbs{ color:var(--purple); }
.tk-goalrow .g-actions{ display:flex; gap:8px; }
.pill-btn{
  height:42px; padding:0 14px; border-radius:var(--r-pill);
  background:var(--track); display:flex; align-items:center; gap:7px;
  font-weight:600; font-size:0.9375rem;
}
.pill-btn.circle{ width:42px; padding:0; justify-content:center; }

/* segmented range control */
.tk-seg{
  margin:4px 16px 0; height:42px; border-radius:var(--r-pill);
  background:var(--track); display:flex; padding:4px; gap:2px;
}
.tk-seg button{
  flex:1; border-radius:var(--r-pill);
  font-weight:800; font-size:0.8125rem; color:var(--ink);
  display:flex; align-items:center; justify-content:center;
}
.tk-seg button.on{ background:var(--ink); color:#fff; }

/* legend */
.tk-legend{
  display:flex; gap:22px; align-items:center; justify-content:center;
  padding:16px 16px 20px; background:var(--surface);
}
.tk-legend .lg{ display:flex; align-items:center; gap:8px; font-size:0.9375rem; }
.tk-legend .lg .swatch-line{ width:22px; height:4px; border-radius:2px; background:var(--purple); }
.tk-legend .lg .swatch-dot{ width:10px; height:10px; border-radius:50%; background:var(--purple); }
.tk-legend .lg .sub{ color:var(--sec); font-size:0.75rem; }

/* explanation + history (on gray) */
.tk-body{ padding:16px; display:flex; flex-direction:column; gap:18px; }
.card{
  background:var(--surface); border-radius:var(--r-card); box-shadow:var(--shadow);
}
.tk-explain{ padding:18px 18px 20px; }
.tk-explain h3{ margin:0 0 10px; font-size:1.125rem; font-weight:600; }
.tk-explain p{ margin:0; font-size:1rem; line-height:1.5; color:var(--ink); }

.tk-month{ font-size:1.25rem; font-weight:800; letter-spacing:-.01em; margin:4px 2px 0; }
.tk-history{ padding:4px 16px; }
.tk-hrow{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0; border-bottom:1px solid var(--hair);
}
.tk-hrow:last-child{ border-bottom:none; }
.tk-hrow .h-weight{ font-size:1.062rem; font-weight:600; letter-spacing:-.01em; }
.tk-hrow .h-date{ font-size:0.9375rem; color:var(--sub); margin-top:2px; }
.tk-hrow .h-delta{ display:flex; align-items:center; gap:6px; font-size:0.9375rem; font-weight:600; color:var(--purple); }
.tk-hrow .h-delta.first{ color:var(--sec); font-weight:500; }

/* ======================================================================
   SLIDE-UP MODAL (set tracker / volume filter) 
   ====================================================================== */
.scrim{
  position:absolute; inset:0; background:rgba(13,13,18,.45);
  display:flex; align-items:flex-end; z-index:20;
  animation:fade .18s ease;
}
@keyframes fade{ from{opacity:0} to{opacity:1} }
.sheet{
  width:100%; background:var(--surface);
  border-radius:26px 26px 0 0;
  box-shadow:0 -6px 28px rgba(0,0,0,.18);
  padding:0 0 28px; animation:rise .24s cubic-bezier(.22,.61,.36,1);
}
@keyframes rise{ from{transform:translateY(100%)} to{transform:translateY(0)} }
.sheet-grab{ width:40px; height:5px; border-radius:3px; background:#dcdce0; margin:10px auto 2px; }

.sheet-head{ padding:10px 20px 6px; }
.sheet-title{
  font-family:var(--display); font-weight:400; font-size:2.625rem; line-height:.92;
  text-transform:uppercase; letter-spacing:.01em;
}
.sheet-sub{ font-size:0.9375rem; color:var(--sec); margin-top:6px; }

.sheet-summary{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 20px 8px; gap:12px;
}
.sheet-summary .ss-main{ font-size:1rem; font-weight:600; }
.sheet-summary .ss-main .lbs{ color:var(--purple); }
.sheet-summary .ss-sub{ font-size:0.8125rem; color:var(--sec); margin-top:3px; }
.sheet-summary .ss-icon{
  width:46px; height:46px; border-radius:var(--r-pill); background:var(--track);
  display:flex; align-items:center; justify-content:center; flex:none;
}

/* steppers */
.stepper-group{ display:flex; gap:12px; padding:16px 16px 8px; }
.stepper{ flex:1; text-align:center; }
.stepper .st-label{ font-size:0.9375rem; color:var(--sec); font-weight:500; margin-bottom:8px; }
.stepper .st-row{ display:flex; align-items:center; justify-content:center; gap:9px; }
.st-btn{
  width:46px; height:46px; border-radius:var(--r-pill); background:var(--track);
  display:flex; align-items:center; justify-content:center; font-size:1.5rem; font-weight:500; color:var(--ink);
}
.st-value{
  min-width:62px; height:58px; border-radius:15px; background:var(--ink); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:1.562rem; font-weight:700;
}

/* sheet footer buttons */
.sheet-actions{ display:flex; gap:12px; padding:18px 16px 0; }
.btn{
  height:56px; border-radius:16px; font-weight:700; font-size:1rem;
  display:flex; align-items:center; justify-content:center; flex:1;
}
.btn.ghost{ background:var(--surface); border:1.5px solid var(--ink); color:var(--ink); }
.btn.solid{ background:var(--ink); color:#fff; }

/* ======================================================================
   EXERCISE SELECTION (browse + facet filtering)
   ====================================================================== */
.ex-screen{ background:var(--surface); min-height:852px; }

.nav .nav-create{
  margin-left:auto; height:40px; padding:0 18px; border-radius:var(--r-pill);
  background:var(--surface); border:1px solid var(--hair); box-shadow:var(--shadow-sm);
  font-weight:600; font-size:1rem;
}

.ex-search{
  margin:4px 16px 0; height:50px; border-radius:var(--r-pill);
  border:1.5px solid var(--ink); background:var(--surface);
  display:flex; align-items:center; gap:10px; padding:0 18px;
}
.ex-search svg{ flex:none; }
.ex-search input{
  border:none; outline:none; background:none; flex:1; min-width:0;
  font-family:inherit; font-size:1rem; color:var(--ink);
}
.ex-search input::placeholder{ color:#9a9da3; }

.ex-filters{ display:flex; flex-wrap:wrap; gap:8px; padding:14px 16px 4px; }
.chip-drop{
  height:36px; padding:0 12px 0 14px; border-radius:var(--r-pill);
  background:var(--surface); border:1px solid #d8d8dc;
  display:flex; align-items:center; gap:6px; font-weight:600; font-size:0.9375rem;
}
.chip-drop.active{ border-color:var(--red); color:var(--red); }
.chip-active{
  height:36px; padding:0 10px 0 14px; border-radius:var(--r-pill);
  background:var(--red); color:#fff; display:flex; align-items:center; gap:8px;
  font-weight:600; font-size:0.9375rem;
}
.chip-active button{ display:flex; color:#fff; opacity:.9; }

.ex-sectionrow{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px 8px;
}
.ex-sectionrow .sec-label{ font-size:0.9375rem; color:var(--sec); font-weight:500; }
.ex-sectionrow .sec-sort{ font-size:0.8125rem; font-weight:800; color:var(--ink); display:flex; gap:3px; align-items:center; }

.ex-row{
  display:flex; align-items:center; gap:14px; padding:12px 16px;
  border-bottom:1px solid var(--hair); width:100%; text-align:left;
}
.ex-row .ex-tile{
  width:48px; height:48px; border-radius:10px; background:#e9e9ec; flex:none;
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:0.75rem; color:#8a8d93; letter-spacing:.02em;
}
.ex-row .ex-meta{ flex:1; min-width:0; }
.ex-row .ex-name{ display:block; font-weight:700; font-size:1rem; letter-spacing:-.01em; color:#000; }
.ex-row .ex-sub{ display:block; font-size:0.9375rem; color:var(--sec); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ex-row .ex-sub .mus{ color:var(--red); font-weight:600; }
.ex-row .ex-chev{ flex:none; }

.ex-showmore{
  width:100%; text-align:center; font-weight:700; font-size:1rem;
  padding:18px 0; border-bottom:1px solid var(--hair);
}
.ex-empty{ padding:40px 24px; text-align:center; color:var(--sec); font-size:0.9375rem; }

/* filter sheet (muscle / equipment) */
.sheet.filter{ max-height:88%; display:flex; flex-direction:column; }
.filter-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 20px 6px;
}
.filter-title{
  font-family:var(--display); font-weight:400; font-size:2.625rem; line-height:.92;
  text-transform:uppercase; color:var(--red);
}
.filter-clear{
  height:40px; padding:0 18px; border-radius:var(--r-pill);
  background:var(--track); font-weight:700; font-size:1rem;
}
.filter-sub{ padding:0 20px 8px; font-size:0.9375rem; color:var(--sec); }
.filter-list{ overflow-y:auto; padding:0 4px; }
.filter-list::-webkit-scrollbar{ width:0; }
.fl-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px; border-bottom:1px solid var(--hair);
}
.fl-row .fl-name{ font-weight:700; font-size:1.062rem; }
.fl-row .fl-right{ display:flex; align-items:center; gap:16px; }
.fl-row .fl-count{ font-size:0.9375rem; color:var(--sec); }
.fl-check{
  width:26px; height:26px; border-radius:6px; border:2px solid #cdced2; background:var(--surface);
  display:flex; align-items:center; justify-content:center; flex:none;
}
.fl-check.on{ background:var(--red); border-color:var(--red); }

/* ======================================================================
   CREATE A WORKOUT (workout builder + 12-color picker)
   ====================================================================== */
.cw-screen{ background:var(--bg); min-height:852px; display:flex; flex-direction:column; }
.cw-body{ flex:1; overflow-y:auto; padding:16px 16px 120px; }
.cw-body::-webkit-scrollbar{ width:0; }

.cw-label{ font-size:0.8125rem; font-weight:500; color:var(--sec); }
.cw-name{ display:flex; align-items:center; gap:10px; margin:6px 0 20px; }
.cw-name .cw-name-text{ font-size:1.625rem; font-weight:600; letter-spacing:-.02em; color:var(--ink-2); }
.cw-name .cw-pencil{ display:flex; opacity:.8; }

.cw-fields{ display:flex; gap:16px; margin-bottom:22px; }
.cw-field{ width:106px; }
.cw-field .cw-label{ margin-bottom:8px; }
.cw-swatch{
  width:100%; height:64px; border-radius:12px; position:relative;
  display:flex; align-items:center; justify-content:center;
}
.cw-swatch .cw-chev{ position:absolute; right:10px; bottom:8px; display:flex; color:#fff; opacity:.9; }
.cw-swatch.icon{ background:var(--surface); border:2px solid var(--cw-current,#4573A8); }
.cw-swatch.icon .cw-chev{ color:var(--cw-current,#4573A8); }

.cw-listlabel{ font-size:0.8125rem; font-weight:500; color:var(--sec); margin-bottom:10px; }

.cw-ex-card{ background:var(--surface); border-radius:16px; box-shadow:var(--shadow); margin-bottom:12px; overflow:hidden; }
.cw-ex-row{ display:flex; align-items:center; gap:14px; padding:14px; width:100%; text-align:left; }
.cw-badge{
  width:44px; height:44px; border-radius:8px; background:var(--surface);
  border:2px solid var(--cw-current,#4573A8); color:var(--cw-current,#4573A8);
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:1.125rem; flex:none;
}
.cw-ex-meta{ flex:1; min-width:0; }
.cw-ex-name{ display:block; font-weight:600; font-size:1rem; color:var(--ink); letter-spacing:-.01em; }
.cw-ex-sub{ display:block; font-size:0.9375rem; color:var(--sec); font-weight:500; margin-top:2px; }
.cw-ex-sub .lbs{ color:var(--purple); font-weight:600; }
.cw-ex-caret{ flex:none; color:#8a8d93; display:flex; }

.cw-ex-detail{ padding:4px 16px 16px; border-top:1px solid var(--hair); }
.cw-eq{ display:flex; align-items:flex-end; justify-content:space-between; padding:14px 0 6px; gap:10px; }
.cw-eq .cw-eq-text .cw-label{ margin-bottom:3px; }
.cw-eq .cw-eq-name{ font-size:1rem; font-weight:700; color:#000; letter-spacing:-.01em; }
.cw-eq .cw-eq-swap{ width:40px; height:40px; border-radius:var(--r-pill); background:var(--track); display:flex; align-items:center; justify-content:center; flex:none; }

.cw-steppers{ display:flex; gap:12px; padding:10px 0 4px; }
.cw-stepper{ flex:1; }
.cw-stepper .cw-st-label{ font-size:0.8125rem; color:var(--sec); font-weight:500; margin-bottom:6px; }
.cw-st-row{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.cw-st-btn{ width:44px; height:44px; border-radius:var(--r-pill); background:var(--track); display:flex; align-items:center; justify-content:center; font-size:1.5rem; color:var(--ink); flex:none; }
.cw-st-val{ flex:1; text-align:center; font-size:1.75rem; font-weight:600; color:var(--ink-2); }

.cw-goal{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:14px 0 10px; }
.cw-goal .cw-goal-text .cw-label{ margin-bottom:3px; }
.cw-goal .cw-goal-val{ font-size:1rem; font-weight:600; letter-spacing:-.01em; }
.cw-goal .cw-goal-val .lbs{ color:var(--purple); }
.cw-edit{ height:40px; padding:0 16px; border-radius:var(--r-pill); background:var(--track); display:flex; align-items:center; gap:7px; font-weight:600; font-size:0.9375rem; }

.cw-actions{ display:flex; gap:8px; padding-top:4px; }
.cw-act{ flex:1; height:40px; border-radius:10px; background:var(--field); display:flex; align-items:center; justify-content:center; gap:5px; font-weight:600; font-size:0.8125rem; color:var(--ink-2); }
.cw-act.del{ color:var(--red); }

.cw-add{ width:100%; background:var(--surface); border-radius:16px; box-shadow:var(--shadow); padding:18px; display:flex; align-items:center; justify-content:center; gap:10px; font-weight:600; font-size:0.9375rem; }

.cw-footer{
  position:absolute; left:0; right:0; bottom:0; display:flex; gap:12px;
  padding:14px 16px 28px; background:var(--bg); border-top:1px solid var(--hair);
}

/* color picker sheet */
.color-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; padding:14px 20px 4px; }
.color-cell{ aspect-ratio:1; border-radius:14px; position:relative; display:flex; align-items:center; justify-content:center; }
.color-cell.on{ box-shadow:0 0 0 3px #fff, 0 0 0 6px currentColor; }
.color-name{ text-align:center; font-size:0.6875rem; color:var(--sec); margin-top:6px; font-weight:500; }
.color-cellwrap{ display:flex; flex-direction:column; }

/* icon picker sheet */
.icon-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; padding:14px 20px 4px; }
.icon-cell{ aspect-ratio:1; border-radius:14px; background:var(--field); display:flex; align-items:center; justify-content:center; }
.icon-cell.on{ background:var(--surface); box-shadow:inset 0 0 0 2px var(--cw-current,#4573A8); }

/* ======================================================================
   WIZARD (stepped creation flows — Exercise, Equipment, Plan)
   ====================================================================== */
.wiz-screen{ background:var(--surface); min-height:852px; display:flex; flex-direction:column; }
.wiz-header{ display:flex; align-items:center; gap:12px; padding:8px 16px 10px; }
.wiz-progress{ display:flex; gap:5px; flex:1; }
.wiz-seg{ flex:1; height:5px; border-radius:3px; background:var(--hair); }
.wiz-seg.on{ background:var(--ink); }
.wiz-count{ font-size:0.8125rem; color:var(--sec); font-weight:500; white-space:nowrap; }

.wiz-body{ flex:1; overflow-y:auto; padding:14px 20px 130px; }
.wiz-body::-webkit-scrollbar{ width:0; }
.wiz-title{ font-size:1.625rem; font-weight:600; letter-spacing:-.02em; color:var(--ink); line-height:1.2; }
.wiz-help{ font-size:0.9375rem; color:var(--sec); margin-top:7px; line-height:1.45; }

.wiz-input{
  width:100%; height:56px; border-radius:14px; border:1.5px solid var(--ink);
  background:var(--surface); padding:0 16px; margin-top:22px;
  font-family:inherit; font-size:1.062rem; font-weight:600; color:var(--ink); outline:none;
}
.wiz-input::placeholder{ color:#9a9da3; font-weight:400; }

.wiz-quick{ display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.wiz-quick .qchip{ height:38px; padding:0 15px; border-radius:var(--r-pill); border:1px solid var(--hair); background:var(--surface); font-weight:600; font-size:0.9375rem; }

.wiz-list{ margin-top:20px; border-top:1px solid var(--hair); }
.wiz-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 2px; border-bottom:1px solid var(--hair); width:100%; text-align:left; }
.wiz-row .wr-name{ font-weight:600; font-size:1.062rem; color:var(--ink); }
.wiz-rowright{ display:flex; align-items:center; gap:14px; }
.wiz-row .wr-count{ font-size:0.9375rem; color:var(--sec); }
.wiz-radio{ width:24px; height:24px; border-radius:50%; border:2px solid #cdced2; display:flex; align-items:center; justify-content:center; flex:none; }
.wiz-radio.on{ border-color:var(--ink); }
.wiz-dot{ width:12px; height:12px; border-radius:50%; background:var(--ink); }
.wiz-check{ width:26px; height:26px; border-radius:7px; border:2px solid #cdced2; background:var(--surface); display:flex; align-items:center; justify-content:center; flex:none; }
.wiz-check.on{ background:var(--ink); border-color:var(--ink); }

.wiz-img{
  width:100%; aspect-ratio:1/1; max-height:320px; margin-top:22px;
  border-radius:18px; background:var(--field); border:1.5px dashed #d3d4d8;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; color:var(--sec);
}
.wiz-addphoto{ height:48px; padding:0 22px; border-radius:12px; background:var(--ink); color:#fff; font-weight:600; font-size:0.9375rem; display:flex; align-items:center; gap:8px; }

.wiz-footer{
  position:absolute; left:0; right:0; bottom:0; display:flex; gap:12px;
  padding:14px 16px 28px; background:var(--surface); border-top:1px solid var(--hair);
}
.wiz-footer .btn.back{ flex:0 0 112px; }

/* ---- wizard corrections to match Figma (Exercise creation) ---- */
.wiz-screen{ background:var(--bg); }
.wiz-seg.on{ background:var(--ink); }
.wiz-title{ font-weight:700; font-size:1.562rem; line-height:1.2; }
.wiz-input{ border:none; box-shadow:var(--shadow); }
.wiz-input::placeholder{ color:#9a9da3; font-weight:500; }

.wiz-grouplabel{ font-size:0.9375rem; font-weight:700; color:var(--ink); margin:22px 0 10px; }
.wiz-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.wiz-card{
  background:var(--surface); border-radius:14px; box-shadow:var(--shadow);
  border:2px solid transparent; padding:22px 12px; text-align:center;
  font-weight:700; font-size:1rem; color:var(--ink);
}
.wiz-card.on{ border-color:var(--red); }

/* equipment step */
.wiz-eqcard{ background:var(--surface); border-radius:18px; box-shadow:var(--shadow); padding:16px; margin-top:22px; }
.wiz-eqnote{ display:flex; align-items:flex-start; gap:12px; justify-content:space-between; padding-bottom:4px; }
.wiz-eqnote p{ margin:0; font-size:0.8125rem; color:var(--sec); line-height:1.4; }
.wiz-eqadd{ height:40px; padding:0 16px; border-radius:var(--r-pill); background:var(--track); font-weight:600; font-size:0.9375rem; flex:none; }
.wiz-eqsection{ display:flex; align-items:center; justify-content:space-between; padding:14px 0 2px; }
.wiz-eqsection .lbl{ font-size:0.8125rem; color:var(--sec); font-weight:500; }
.wiz-eqsection .sort{ font-size:0.75rem; font-weight:800; color:var(--ink); }
.wiz-eqrow{ display:flex; align-items:center; gap:12px; padding:12px 0; border-top:1px solid var(--hair); width:100%; text-align:left; }
.wiz-eqrow .eqimg{ width:48px; height:48px; border-radius:8px; background:#e9e9ec; flex:none; display:flex; align-items:center; justify-content:center; }
.wiz-eqrow .eqtext{ flex:1; min-width:0; }
.wiz-eqrow .eqname{ display:block; font-weight:700; font-size:1rem; color:var(--ink); }
.wiz-eqrow .eqloc{ display:block; font-size:0.8125rem; color:var(--sec); margin-top:1px; }
.wiz-check.red.on{ background:var(--red); border-color:var(--red); }

/* image step */
.wiz-imgcard{ background:var(--surface); border-radius:18px; box-shadow:var(--shadow); padding:40px 24px; margin-top:22px; display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; }
.wiz-imgcard .imgglyph{ width:64px; height:64px; border-radius:14px; border:2px solid #c7c9ce; display:flex; align-items:center; justify-content:center; margin-bottom:10px; }
.wiz-imgcard .imgt1{ font-weight:600; font-size:1rem; color:var(--ink); }
.wiz-imgcard .imgt2{ font-size:0.8125rem; color:var(--sec); max-width:230px; line-height:1.4; }
.wiz-imgcard .imgbtn{ margin-top:14px; height:46px; padding:0 22px; border-radius:12px; background:var(--red); color:#fff; font-weight:600; font-size:0.9375rem; display:flex; align-items:center; }

/* ======================================================================
   EQUIPMENT creation wizard (Save Equipment)
   ====================================================================== */
.wiz-locard{
  width:100%; background:var(--surface); border-radius:14px; box-shadow:var(--shadow);
  border:2px solid transparent; padding:20px 16px; text-align:center;
  font-weight:700; font-size:1rem; color:var(--ink); margin-bottom:12px;
}
.wiz-locard.on{ border-color:var(--ink); }
.wiz-locard.add{
  box-shadow:none; border:1.5px dashed #c9cace; background:transparent;
  display:flex; align-items:center; justify-content:center; gap:8px;
}
.wiz-loclist{ margin-top:22px; }

.wiz-namecard{ background:var(--surface); border-radius:14px; box-shadow:var(--shadow); padding:16px; margin-top:22px; }
.wiz-namecard input{ width:100%; border:none; outline:none; background:none; font-family:inherit; font-size:1.125rem; font-weight:700; color:var(--ink); }
.wiz-namecard input::placeholder{ color:#9a9da3; font-weight:500; }
.wiz-namecard .loc{ font-size:0.8125rem; color:var(--sec); margin-top:5px; }

.wiz-unitcard{ background:var(--surface); border-radius:16px; box-shadow:var(--shadow); padding:16px; margin-top:22px; }
.wiz-unitcard .ulbl{ font-size:0.8125rem; color:var(--sec); font-weight:500; margin-bottom:12px; }
.unit-pills{ display:flex; flex-wrap:wrap; gap:10px; }
.unit-pill{ height:44px; padding:0 18px; border-radius:var(--r-pill); background:var(--track); font-weight:600; font-size:0.9375rem; color:var(--ink); }
.unit-pill.on{ background:var(--red); color:#fff; }

/* ======================================================================
   PLAN creation wizard (Create a Plan)
   ====================================================================== */
/* step 2 — split length stepper */
.plan-stepper{ display:flex; flex-direction:column; align-items:center; margin-top:28px; }
.plan-stepper .ps-label{ font-size:0.8125rem; color:var(--sec); font-weight:500; margin-bottom:10px; }
.plan-stepper .ps-row{ display:flex; align-items:center; gap:18px; }
.plan-info{
  display:flex; align-items:center; gap:12px; margin-top:28px;
  background:var(--surface); border:1.5px solid var(--navy); border-radius:14px; padding:14px 16px;
}
.plan-info .pi-icon{ width:40px; height:40px; border-radius:var(--r-pill); background:#e6edf2; display:flex; align-items:center; justify-content:center; flex:none; }
.plan-info .pi-t1{ font-weight:700; font-size:0.9375rem; color:var(--ink); }
.plan-info .pi-t2{ font-size:0.7812rem; color:var(--sec); margin-top:1px; }

/* step 3 — assign days */
.plan-daycard{ background:var(--surface); border-radius:18px; box-shadow:var(--shadow); padding:4px 0; margin-top:22px; overflow:hidden; }
.plan-dayrow{ display:flex; align-items:center; gap:13px; padding:13px 16px; width:100%; text-align:left; border-top:1px solid var(--hair); }
.plan-dayrow:first-child{ border-top:none; }
.plan-daybadge{ width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:0.8125rem; flex:none; }
.plan-daybadge.work{ color:#fff; }                 /* bg set inline to workout color */
.plan-daybadge.rest{ background:var(--surface); border:2px solid var(--navy); color:var(--navy); }
.plan-daybadge.empty{ background:var(--field); color:var(--sec); }
.plan-daytext{ flex:1; min-width:0; }
.plan-dayname{ display:block; font-weight:600; font-size:1rem; color:var(--ink); }
.plan-dayname.empty{ color:var(--ghost); }
.plan-daysub{ display:block; font-size:0.8125rem; color:var(--sec); margin-top:1px; }
.plan-daychev{ flex:none; color:#b9bbc0; display:flex; }

/* step 4 — dates */
.plan-datefields{ display:flex; gap:12px; margin-top:22px; }
.plan-datefield{ flex:1; background:var(--surface); border-radius:13px; box-shadow:var(--shadow); border:2px solid transparent; padding:12px 14px; }
.plan-datefield.on{ border-color:var(--ink); }
.plan-datefield .pf-label{ font-size:0.75rem; color:var(--sec); font-weight:500; }
.plan-datefield .pf-value{ font-size:1.062rem; font-weight:700; margin-top:3px; letter-spacing:-.01em; }

.cal-card{ background:var(--surface); border-radius:20px; box-shadow:var(--shadow); padding:14px 10px 12px; margin-top:16px; }
.cal-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:2px 0; }
.cal-cell{ aspect-ratio:1; display:flex; align-items:center; justify-content:center; position:relative; }
.cal-num{ width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:0.9375rem; font-weight:500; color:#000; }
.cal-num.dim{ color:#c2c4c9; }
.cal-num.range{ background:#d7e0e7; }
.cal-num.end{ background:var(--navy); color:#fff; font-weight:700; }
.cal-today-dot{ position:absolute; bottom:3px; left:50%; transform:translateX(-50%); width:4px; height:4px; border-radius:50%; background:#000; }
.cal-dows{ display:grid; grid-template-columns:repeat(7,1fr); border-top:1px solid var(--hair); margin-top:8px; padding-top:8px; }
.cal-dows span{ text-align:center; font-size:0.75rem; color:var(--sec); }
.cal-foot{ display:flex; align-items:center; justify-content:space-between; padding:12px 6px 2px; }
.cal-month{ font-size:1.25rem; font-weight:800; letter-spacing:-.01em; }
.cal-nav{ display:flex; background:var(--track); border-radius:var(--r-pill); }
.cal-nav button{ width:46px; height:36px; display:flex; align-items:center; justify-content:center; }
.cal-nav button:first-child{ border-right:1px solid #dcdce0; }

/* step 5 — review */
.plan-review{ display:flex; flex-direction:column; gap:14px; margin-top:22px; }
.plan-rcard{ background:var(--surface); border-radius:16px; box-shadow:var(--shadow); padding:16px; }
.plan-rhead{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.plan-rcard .rc-label{ font-size:0.7812rem; color:var(--sec); font-weight:500; }
.plan-rcard .rc-value{ font-size:1.125rem; font-weight:700; letter-spacing:-.01em; margin-top:3px; }
.plan-rcard .rc-sub{ font-size:0.8125rem; color:var(--navy); font-weight:600; margin-top:2px; }
.plan-redit{ height:36px; padding:0 14px; border-radius:var(--r-pill); background:var(--track); display:flex; align-items:center; gap:7px; font-weight:700; font-size:0.8125rem; flex:none; }
.plan-lineup{ margin-top:12px; }
.plan-lurow{ display:flex; align-items:center; gap:12px; padding:9px 0; border-top:1px solid var(--hair); }
.plan-lurow:first-child{ border-top:none; }
.plan-luname{ font-weight:600; font-size:0.9375rem; }
.plan-luname.rest{ color:var(--sec); }

/* day-assignment picker (plan builder) */
.pick-row{ display:flex; align-items:center; gap:13px; padding:14px 20px; width:100%; text-align:left; border-top:1px solid var(--hair); }
.pick-row:first-of-type{ border-top:none; }
.pick-dot{ width:14px; height:14px; border-radius:50%; flex:none; }
.pick-text{ flex:1; min-width:0; }
.pick-name{ display:block; font-weight:600; font-size:1rem; color:var(--ink); }
.pick-sub{ display:block; font-size:0.8125rem; color:var(--sec); margin-top:1px; }
.pick-radio{ width:24px; height:24px; border-radius:50%; border:2px solid #cdced2; background:var(--surface); display:flex; align-items:center; justify-content:center; flex:none; }
.pick-radio.on{ background:var(--navy); border-color:var(--navy); }
.pick-rest .pick-dot{ background:#e7e9ec; display:flex; align-items:center; justify-content:center; }

/* ======================================================================
   WORKOUT SESSION (live set logging)
   ====================================================================== */
.sess-screen{ background:var(--bg); min-height:852px; display:flex; flex-direction:column; }
.sess-top{ background:var(--surface); padding:0 0 10px; }

.sess-exhead{ padding:14px 16px 0; }
.sess-excard{ display:flex; align-items:center; gap:13px; }
.sess-exbadge{
  width:44px; height:44px; border-radius:8px; background:var(--surface);
  border:2px solid var(--sess-color,#cf2a0f); color:var(--sess-color,#cf2a0f);
  display:flex; align-items:center; justify-content:center; font-weight:800; font-size:1.125rem; flex:none;
}
.sess-exmeta{ flex:1; min-width:0; }
.sess-exname{ display:block; font-weight:700; font-size:1.125rem; letter-spacing:-.01em; }
.sess-exmuscle{ display:block; font-size:0.8125rem; color:var(--sess-color,#cf2a0f); font-weight:600; margin-top:1px; }
.sess-exsub{ display:block; font-size:0.8125rem; color:var(--sec); }
.sess-excaret{ flex:none; color:#8a8d93; display:flex; }

.sess-exdetail{ margin:12px 0 0; border-top:1px solid var(--hair); }
.sess-drow{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; }
.sess-drow + .sess-drow{ border-top:1px solid var(--hair); }
.sess-drow .dlabel{ font-size:0.8125rem; color:var(--sec); font-weight:500; }
.sess-drow .dval{ font-size:1rem; font-weight:700; color:#000; margin-top:2px; }
.sess-drow .dval.goal{ color:var(--purple); }
.sess-drow .dimg{ width:46px; height:46px; border-radius:8px; background:#e9e9ec; display:flex; align-items:center; justify-content:center; flex:none; }
.sess-dpill{ width:40px; height:40px; border-radius:var(--r-pill); background:var(--track); display:flex; align-items:center; justify-content:center; flex:none; }
.sess-dleft{ display:flex; align-items:center; gap:12px; min-width:0; }

/* progress + transport */
.sess-prog{ display:flex; gap:5px; padding:16px 16px 6px; }
.sess-progseg{ flex:1; height:6px; border-radius:3px; background:#d4d5da; }
.sess-progseg.done{ background:var(--sess-color,#cf2a0f); }
.sess-progseg.cur{ background:var(--ink); }
.sess-transport{ display:flex; align-items:center; gap:12px; padding:0 16px 14px; }
.sess-exlabel{ font-size:0.9375rem; color:var(--sec); font-weight:500; flex:1; }
.sess-tbtn{ width:48px; height:48px; border-radius:50%; background:var(--surface); border:1px solid var(--hair); box-shadow:var(--shadow-sm); display:flex; align-items:center; justify-content:center; }
.sess-tbtn.sq{ border-radius:13px; }

/* set list */
.sess-sets{ flex:1; overflow-y:auto; padding:18px 16px 110px; display:flex; flex-direction:column; gap:12px; }
.sess-sets::-webkit-scrollbar{ width:0; }
.sess-setrow{ display:flex; align-items:center; gap:14px; }
.sess-setbadge{ width:34px; height:34px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:0.9375rem; flex:none; }
.sess-setbadge.pending{ background:#dfe0e3; color:#9a9da3; }
.sess-setbadge.done{ background:var(--ink); color:#fff; }
.sess-setbadge.warm{ background:#c9ccd1; color:#fff; }
.sess-settext{ font-size:1.062rem; font-weight:600; }
.sess-setrow.pending .sess-settext{ color:#a9acb2; font-weight:500; }
.sess-setrow .feeltag{ margin-left:auto; font-size:0.75rem; font-weight:700; padding:3px 9px; border-radius:var(--r-pill); }

.sess-footer{
  position:absolute; left:0; right:0; bottom:0; display:flex; gap:16px;
  padding:14px 16px 28px; background:var(--bg); border-top:1px solid var(--hair);
}
.sess-footer .btn{ flex:1; height:64px; border-radius:var(--r-pill); }
.sess-footer .btn.warm{ border-width:2px; }
.sess-footer .btn.setbtn{ background:var(--sess-color,#cf2a0f); border:none; color:#fff; }

/* ---- SetWidget sheet (log a set) ---- */
.sw-label{ font-size:0.8125rem; font-weight:700; color:var(--sec); letter-spacing:.04em; padding:12px 20px 0; }
.sw-hint{ margin:10px 20px 2px; border:1.5px solid #ddd8f7; border-radius:12px; padding:12px 14px; color:var(--purple); font-weight:600; font-size:0.9375rem; }
.sw-group{ padding:14px 16px 2px; }
.sw-glabel{ text-align:center; font-size:0.9375rem; color:var(--sec); font-weight:500; margin-bottom:10px; }
.sw-grow{ display:flex; align-items:center; justify-content:center; gap:10px; }
.sw-adj{ height:52px; min-width:52px; padding:0 14px; border-radius:var(--r-pill); background:var(--track); font-weight:700; font-size:1rem; color:var(--ink); display:flex; align-items:center; justify-content:center; }
.sw-val{ min-width:96px; height:62px; border-radius:16px; background:var(--ink); color:#fff; display:flex; align-items:baseline; justify-content:center; gap:4px; font-size:1.5rem; font-weight:900; }
.sw-val .u{ font-size:0.9375rem; font-weight:600; opacity:.7; }

.sw-feelwrap{ padding:16px 16px 4px; }
.sw-feel{
  position:relative; height:54px; border-radius:var(--r-pill); overflow:hidden; cursor:pointer;
  background:linear-gradient(90deg, #ffffff 0%, #c8c2f3 45%, #6c5ce7 100%);
  border:1.5px solid #e4e1f6;
}
.sw-feel .ff-text{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:0.8125rem; font-weight:700; letter-spacing:.04em; color:#5f636b; pointer-events:none; }
.sw-feel .ff-f{ position:absolute; right:18px; top:50%; transform:translateY(-50%); font-weight:800; font-size:1.125rem; color:#fff; pointer-events:none; }
.sw-feel .ff-thumb{ position:absolute; top:4px; bottom:4px; width:46px; border-radius:var(--r-pill); background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.2); }
.sw-done{ display:flex; justify-content:flex-end; padding:16px 16px 0; }
.sw-donebtn{ height:54px; padding:0 36px; border-radius:16px; background:var(--ink); color:#fff; font-weight:700; font-size:1rem; }

/* choose a workout (session entry) */
.qs-screen{ background:var(--bg); min-height:852px; }
.qs-body{ padding:16px; }
.qs-title{ font-size:1.625rem; font-weight:700; letter-spacing:-.02em; }
.qs-help{ font-size:0.9375rem; color:var(--sec); margin-top:6px; }
.qs-seclabel{ font-size:0.8125rem; color:var(--sec); font-weight:500; margin:20px 2px 10px; }
.qs-card{ background:var(--surface); border-radius:16px; box-shadow:var(--shadow); padding:16px; margin-bottom:14px; }
.qs-top{ display:flex; align-items:flex-start; gap:13px; }
.qs-icon{ width:46px; height:46px; border-radius:11px; display:flex; align-items:center; justify-content:center; flex:none; color:#fff; }
.qs-name{ font-weight:700; font-size:1.125rem; letter-spacing:-.01em; }
.qs-sub{ font-size:0.9375rem; color:var(--sec); margin-top:2px; }
.qs-meta{ font-size:0.9375rem; color:var(--sec); }
.qs-actions{ display:flex; justify-content:flex-end; gap:10px; margin-top:12px; }
.qs-btn{ height:42px; padding:0 20px; border-radius:var(--r-pill); font-weight:700; font-size:0.9375rem; }
.qs-btn.details{ background:var(--track); color:var(--ink); }
.qs-btn.start{ background:var(--ink); color:#fff; }

/* ---- session fidelity fixes (contained card, left-aligned) ---- */
.sess-screen{ background:var(--bg); }
.sess-card{ background:var(--surface); border-radius:16px; box-shadow:var(--shadow); margin:14px 16px 2px; overflow:hidden; }
.sess-exrow{ display:flex; align-items:center; gap:13px; padding:15px 16px; width:100%; text-align:left; }
.sess-exrow .sess-exmeta{ flex:1; min-width:0; text-align:left; }
.sess-exrow .sess-exname{ display:block; font-weight:700; font-size:1.125rem; color:var(--ink); letter-spacing:-.01em; }
.sess-exrow .sess-exmuscle{ display:block; font-size:0.8125rem; font-weight:600; color:var(--sess-color,#cf2a0f); margin-top:1px; }
.sess-exrow .sess-exsub{ display:block; font-size:0.8125rem; color:var(--sec); }
.sess-exdetail{ margin:0; padding:0 16px 14px; border-top:1px solid var(--hair); }
.sess-exdetail .sess-drow:first-child{ padding-top:14px; }
.sess-prog{ padding:18px 16px 8px; }
.sess-transport{ padding:0 16px 10px; }

/* ---- SetWidget fidelity fixes (rounded-rect adjust buttons) ---- */
.sw-adj{ border-radius:16px; height:50px; min-width:56px; background:#efefef; font-weight:700; }
.sw-val{ min-width:92px; }

/* ======================================================================
   SESSION + SETWIDGET — exact match to Figma 83461 / 85237
   ====================================================================== */
/* one white full-width widget grouping exercise card + progress + transport */
.sess-widget{ background:var(--surface); box-shadow:0 2px 6px rgba(0,0,0,.10); padding:0 0 10px; }
.sess-exrow{ display:flex; align-items:center; gap:13px; width:100%; text-align:left; padding:16px 16px 14px; }
.sess-exdetail{ margin:0; padding:0 16px 8px; border-top:1px solid var(--hair); }
.sess-exdetail .sess-drow:first-child{ padding-top:14px; }
.sess-prog{ padding:14px 16px 10px; }
.sess-transport{ padding:0 16px 4px; }
.sess-sets{ padding-top:20px; }

/* SetWidget: circular 48px adjust buttons */
.sw-group{ padding:16px 16px 4px; }
.sw-grow{ gap:12px; }
.sw-adj{ width:48px; min-width:48px; height:48px; border-radius:999px; background:#ebebeb; padding:0; font-weight:700; font-size:0.9375rem; }
/* value boxes: centered content */
.sw-val{ min-width:100px; height:64px; border-radius:14px; align-items:center; gap:3px; }
.sw-val .u{ font-size:0.8125rem; }
/* effort slider: 64px tall pill */
.sw-feelwrap{ padding:18px 16px 4px; }
.sw-feel{ height:64px; }
.sw-feel .ff-thumb{ top:5px; bottom:5px; width:48px; }
/* DONE: pill */
.sw-done{ padding:18px 16px 0; }
.sw-donebtn{ border-radius:999px; height:48px; padding:0 36px; }

/* ======================================================================
   OVERLOAD GOAL modal (adjust goal weight) — Figma 82940
   ====================================================================== */
.sheet-title.purple{ color:var(--purple); }
.goal-card{
  margin:14px 16px 0; background:var(--surface); border-radius:16px; box-shadow:var(--shadow);
  padding:18px 16px; text-align:center;
}
.goal-exname{ font-weight:700; font-size:1.125rem; letter-spacing:-.01em; color:var(--ink); }
.goal-exmeta{ font-size:0.9375rem; color:var(--sec); margin-top:5px; }
.goal-exmeta .mus{ color:var(--red); font-weight:600; }
.goal-exequip{ font-size:0.9375rem; color:var(--sec); margin-top:2px; }
.goal-wlabel{ text-align:center; font-size:0.625rem; font-weight:700; color:var(--purple); letter-spacing:.07em; margin:18px 0 12px; }

/* modal titles */
.sheet-title{ white-space:nowrap; }

/* progress segments: PR (overload hit) = purple, done = dark, current = workout color */
.sess-progseg.pr{ background:var(--purple); }
.sess-progseg.done{ background:#2e2e33; }
.sess-progseg.cur{ background:var(--sess-color,#cf2a0f); }

/* ======================================================================
   SESSION — exercise cell is a distinct shadowed card inside the white
   widget; progress + transport below it (Figma 83461). Exact.
   ====================================================================== */
.sess-widget{ background:var(--surface); box-shadow:0 2px 8px rgba(0,0,0,.08); padding:14px 16px 14px; }
.sess-excard{ display:block; background:var(--surface); border-radius:16px; box-shadow:0 0 8px rgba(20,20,23,.20); overflow:hidden; }
.sess-exrow{ display:flex; align-items:center; gap:13px; width:100%; text-align:left; padding:15px 16px; }
.sess-exdetail{ margin:0; padding:0 16px 12px; border-top:1px solid var(--hair); }
.sess-exdetail .sess-drow:first-child{ padding-top:14px; }
.sess-prog{ padding:18px 0 8px; }
.sess-transport{ padding:0 0 2px; }
.sess-sets{ padding:20px 16px 110px; }

/* ---- effort slider: 10 discrete color bands (Figma 85237 "Frame 740") ---- */
.sw-feel{ position:relative; height:64px; border-radius:999px; overflow:hidden; display:flex; cursor:pointer; background:none; border:none; }
.sw-feel .ff-seg{ flex:1; height:100%; }
.sw-feel .ff-text{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:0.8125rem; letter-spacing:.04em; pointer-events:none; }
/* white moving handle */
.sw-feel .ff-thumb{ position:absolute; top:4px; width:56px; height:56px; border-radius:50%; background:#fff; box-shadow:0 2px 6px rgba(0,0,0,.25); pointer-events:none; }
/* fixed "Failure" terminus: a purple circle with a navy "F" at the right end */
.sw-feel .ff-end{ position:absolute; right:0; top:0; width:64px; height:64px; border-radius:50%; background:#6c5ce7; display:flex; align-items:center; justify-content:center; pointer-events:none; }
.sw-feel .ff-f{ position:static; transform:none; color:#fff; font-family:'Archivo',sans-serif; font-weight:700; font-size:1.625rem; line-height:1; }

/* ======================================================================
   Workout lists — Quick Select / Logs / Assign to Plan (Figma 84765, 84838, 84897)
   ====================================================================== */
.wl-screen{ background:var(--bg); min-height:852px; }
.wl-body{ display:flex; flex-direction:column; gap:24px; padding:24px 16px 48px; }
.wl-titleblock{ display:flex; flex-direction:column; gap:6px; }
.wl-title{ font-size:1.625rem; font-weight:600; line-height:1.938rem; color:#141414; }
.wl-help{ font-size:0.9375rem; font-weight:400; line-height:1.312rem; color:#5f636b; }
.wl-list{ display:flex; flex-direction:column; gap:12px; }
.wl-label{ font-size:0.8125rem; font-weight:500; line-height:1rem; color:#5f636b; }

/* shared workout card: white, r16, 137 tall */
.wcard{ background:#fff; border-radius:16px; padding:16px; box-shadow:0 8px 24px rgba(20,20,23,.08), 0 1px 2px rgba(20,20,23,.05); }
.wcard-top{ display:flex; align-items:flex-start; gap:12px; }
.wcard-tile{ width:46px; height:46px; border-radius:8px; flex:none; display:flex; align-items:center; justify-content:center; color:#fff; }
.wcard-text{ flex:1; min-width:0; }
.wcard-name{ font-size:1rem; font-weight:600; line-height:1.188rem; color:#111; }
.wcard-sub{ font-size:0.9375rem; font-weight:500; line-height:1.062rem; color:#646464; }
.wcard-actions{ display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }

/* 32px pills */
.wpill{ height:32px; padding:0 20px; border-radius:999px; background:#ebebeb; color:#141414; font-size:0.7812rem; font-weight:600; display:inline-flex; align-items:center; flex:none; }
.wpill.dark{ background:#111; color:#fff; }

/* rest-day option: 78 tall, 2px white outline, no fill */
.wl-rest{ display:flex; align-items:center; gap:12px; padding:14px; border:2px solid #fff; border-radius:14px; }
.wl-moon{ width:46px; height:46px; border-radius:12px; background:#fff; flex:none; display:flex; align-items:center; justify-content:center; font-size:1.25rem; font-weight:500; color:#5f636b; }
.wl-resttext{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.wl-restname{ font-size:1rem; font-weight:600; line-height:1.188rem; color:#141414; }
.wl-restsub{ font-size:0.7812rem; font-weight:500; line-height:0.9375rem; color:#5f636b; }
.statusbar{ color:var(--ink); }
.statusbar.light{ background:transparent; color:#fff; }

/* equipment photo tiles (Figma: 64×64 image) */
.sess-drow .dimg{ width:64px; height:64px; border-radius:8px; overflow:hidden; background:none; }
.sess-drow .dimg img{ width:100%; height:100%; object-fit:cover; display:block; }

/* ======================================================================
   Start Page / home (Figma 1164:85363)
   ====================================================================== */
.home{ position:relative; height:852px; background:#111; overflow:hidden; color:#fff; }
.home-hero{ position:absolute; left:0; top:0; width:393px; height:666px; object-fit:cover; }
.home-top{ position:absolute; left:0; right:0; top:0; height:132px; background:#111; }
.home-top .statusbar{ height:54px; }
.home-bar{ position:absolute; left:20px; right:20px; top:64px; height:48px; display:flex; align-items:center; gap:10px; }
.home-logo{ flex:1; font-family:var(--sans); font-size:3rem; line-height:3rem; color:#fff; }
.home-logo .fail{ color:#6c5ce7; }
.home-icons{ display:flex; gap:10px; }
.home-ibtn{ width:48px; height:48px; border-radius:8px; background:#fff; display:flex; align-items:center; justify-content:center; }
.home-headline{ position:absolute; left:16px; right:32px; top:152px; font-family:var(--sans); font-size:4.5rem; line-height:4.375rem; color:#fff; }
.home-headline .hl{ color:#8e80ff; }
.home-panel{ position:absolute; left:0; right:0; top:636px; bottom:0; background:#111; padding:24px 16px 0; display:flex; flex-direction:column; gap:16px; }
.home-cta{ height:58px; border-radius:8px; background:#fff; color:#111; display:flex; align-items:center; justify-content:center; gap:4px; font-size:0.9375rem; font-weight:600; box-shadow:0 8px 24px rgba(20,20,23,.08), 0 1px 2px rgba(20,20,23,.05); }
.home-cta.quick{ background:#f5b82e; }

/* ======================================================================
   Exercise cards — shared by Create A Workout + Today's Lineup (Figma 1164:84197)
   ====================================================================== */
.cw-ex-card{ margin-bottom:12px; box-shadow:0 8px 24px rgba(20,20,23,.08), 0 1px 2px rgba(20,20,23,.05); }
.cw-ex-row{ padding:16px; gap:12px; }
.cw-badge{ width:44px; height:44px; border-radius:8px; border:4px solid var(--cw-current,#4573A8); background:none; color:#111; font-size:1rem; font-weight:800; display:flex; align-items:center; justify-content:center; flex:none; }
.cw-ex-name{ line-height:1.188rem; }
.cw-ex-sub{ line-height:1.062rem; margin-top:0; }
.cw-ex-caret{ color:#1c1b1f; }
.cw-ex-card.open .cw-ex-row{ border-bottom:1px solid #ebebeb; }
.cw-ex-detail{ padding:0 0 16px; border-top:none; }
.cw-detail-main{ border-bottom:1px solid #ebebeb; padding-bottom:16px; margin-bottom:24px; display:flex; flex-direction:column; gap:12px; }
.cw-eq{ padding:12px 16px 12px; align-items:center; }
.cw-eq .cw-eq-text .cw-label{ margin-bottom:4px; }
.cw-eq .cw-eq-name{ font-weight:600; }
.cw-eq .cw-eq-swap{ width:24px; height:24px; background:none; }
.cw-steppers{ padding:0 16px; gap:14px; }
.cw-stepper .cw-st-label{ margin-bottom:4px; }
.cw-st-row{ height:48px; border-radius:999px; background:#f2f3f4; padding:7px; gap:0; }
.cw-st-btn{ width:34px; height:34px; background:#fff; }
.cw-st-val{ font-size:1.75rem; font-weight:600; color:#141414; line-height:1; }
.cw-goal{ padding:0 16px; }
.cw-goal .cw-goal-val{ font-weight:500; color:#111; }
.cw-goal .cw-goal-val .lbs{ font-weight:600; }
.cw-edit{ height:40px; padding:0 16px; gap:4px; background:#ebebeb; font-size:1rem; }
.cw-actions{ padding:0 16px; gap:8px; }
.cw-act{ height:40px; border-radius:11px; background:#f6f7f8; gap:7px; font-size:0.7812rem; color:#141414; }
.cw-act.del{ color:#cf2a0f; }
.cw-add{ height:52px; padding:0; gap:9px; box-shadow:0 8px 24px rgba(20,20,23,.08), 0 1px 2px rgba(20,20,23,.05); }

/* Today's Lineup header */
.lu-screen .cw-body{ padding:24px 16px 48px; }
.lu-head{ display:flex; flex-direction:column; gap:8px; margin-bottom:12px; }
.lu-titlerow{ display:flex; align-items:center; gap:8px; }
.lu-tile{ width:46px; height:46px; border-radius:8px; flex:none; display:flex; align-items:center; justify-content:center; color:#fff; }
.lu-title{ font-size:1.625rem; font-weight:600; line-height:1.938rem; color:#141414; }
.lu-loc{ display:flex; align-items:center; gap:12px; padding:16px 0; }
.lu-loctext{ flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.lu-locname{ font-size:1rem; font-weight:600; line-height:1.188rem; color:#000; }
.lu-locpill{ width:55px; height:40px; border-radius:999px; background:#fff; display:flex; align-items:center; justify-content:center; flex:none; }
.lu-screen .cw-listlabel{ margin-bottom:12px; }
.cw-tile{ margin:8px 0 20px; }

/* ======================================================================
   Logged sets (Figma 1164:85036 / 84982)
   ====================================================================== */
.sess-sets{ gap:0; }
.set-list{ border-radius:8px; box-shadow:0 0 8px rgba(0,0,0,.2); overflow:hidden; margin-bottom:10px; }
.set-cell{ height:52px; padding:8px; display:flex; align-items:center; gap:12px; background:#fff; }
.set-badge{ width:36px; height:36px; border-radius:4px; flex:none; display:flex; align-items:center; justify-content:center; font-size:1rem; font-weight:900; color:#fff; background:#111; }
.set-badge.working{ background:#6c5ce7; }
.set-badge.warm{ background:#828282; }
.set-text{ flex:1; min-width:0; display:flex; align-items:baseline; gap:4px; color:#111; }
.set-text b{ font-size:1rem; font-weight:500; }
.set-text i{ font-style:normal; font-size:0.9375rem; font-weight:400; }
.set-tag{ height:28px; padding:0 10px; border-radius:4px; border:1px solid #6c5ce7; color:#8174e7; font-size:0.75rem; font-weight:700; display:flex; align-items:center; flex:none; background:#fff; }
.set-tag.fail{ width:28px; padding:0; justify-content:center; background:#6c5ce7; color:#fff; border-width:2px; }
.set-cell.ghost{ background:none; opacity:.3; }
.set-cell.ghost .set-text b{ font-weight:600; }
.set-extra{ margin-top:6px; height:52px; border-radius:8px; background:#fff; display:flex; align-items:center; justify-content:center; gap:9px; font-size:0.9375rem; font-weight:600; color:#111; box-shadow:0 8px 24px rgba(20,20,23,.08), 0 1px 2px rgba(20,20,23,.05); }

/* footer: Set X is black in Figma; Warmup is a 2px #111 outline */
.sess-footer{ background:#ebebeb; padding:16px 16px 32px; border-top:none; }
.sess-footer .btn.setbtn{ background:#111; color:#fff; border:none; }
.sess-footer .btn.warm{ background:none; border:2px solid #111; }
.sess-footer .btn.nextbtn{ flex:1; gap:4px; font-size:1rem; font-weight:700; }

/* Exercise list + filter sheets — Figma 1164:87743 / 87836 / 87978 */
.ex-row{ height:72px; padding:12px 16px; gap:10px; border-bottom:1px solid #ebebeb; background:#fff; }
.ex-row .ex-tile{ width:48px; height:48px; border-radius:8px; background:#ebebeb; font-size:0.8125rem; font-weight:800; color:#646464; letter-spacing:0; }
.ex-row .ex-name{ font-weight:800; font-size:1rem; line-height:1.188rem; color:#111; letter-spacing:0; }
.ex-row .ex-sub{ font-size:0.9375rem; font-weight:500; line-height:1.062rem; margin-top:0; color:#646464; }
.ex-row .ex-sub .mus{ font-weight:500; color:#cf2a0f; }
.ex-row .ex-chev{ display:flex; }
.fl-row{ height:72px; padding:12px 16px; border-bottom:1px solid #ebebeb; }
.fl-row .fl-name{ font-weight:800; font-size:1rem; color:#111; }
.fl-row .fl-right{ gap:12px; }
.fl-row .fl-count{ font-size:0.9375rem; font-weight:500; color:#646464; }
.fl-check{ width:24px; height:24px; border-radius:4px; display:flex; align-items:center; justify-content:center; }
.fl-check.on{ background:#cf2a0f; border-color:#cf2a0f; }
.fl-check.on svg{ width:18px; height:18px; }
.sheet.filter{ overflow:hidden; }
.filter-list{ flex:1; min-height:0; padding:0; }
.fl-row{ background:#fff; }
.overlay.settled .scrim, .overlay.settled .sheet{ animation:none; }

/* ======================================================================
   Exercise detail (Figma 1164:85595)
   ====================================================================== */
.xd-screen{ background:#ebebeb; min-height:852px; }
.xd-hero{ position:relative; height:300px; background:#fff; display:flex; align-items:center; justify-content:center; }
.xd-hero .statusbar{ position:absolute; top:0; left:0; right:0; }
.xd-back{ position:absolute; left:16px; top:62px; }
.xd-empty{ width:240px; display:flex; flex-direction:column; align-items:center; gap:12px; text-align:center; margin-top:34px; }
.xd-empty-title{ font-size:1rem; font-weight:600; color:#595c63; }
.xd-empty-help{ font-size:0.8125rem; line-height:1rem; color:#5f636b; }
.xd-addphoto{ height:39px; padding:0 18px; border-radius:12px; background:#cf2a0f; color:#fff; font-size:0.9375rem; font-weight:600; }
.xd-content{ padding:16px 16px 28px; display:flex; flex-direction:column; gap:14px; }
.xd-card{ background:#fff; border-radius:20px; box-shadow:0 8px 24px rgba(20,20,23,.08); }
.xd-details{ padding:20px; display:flex; flex-direction:column; gap:14px; }
.xd-name{ font-size:1.5rem; font-weight:600; line-height:1.875rem; color:#141414; }
.xd-tags{ display:flex; flex-wrap:wrap; gap:8px; }
.xd-tag{ height:27px; padding:0 11px; border-radius:9px; background:#f4f4f5; font-size:0.7812rem; font-weight:500; color:#4d5259; display:inline-flex; align-items:center; }
.xd-rule{ height:1px; background:#ececee; }
.xd-kv{ display:flex; justify-content:space-between; gap:8px; font-size:0.9375rem; font-weight:500; line-height:1.062rem; color:#141414; }
.xd-kv span:first-child{ color:#5f636b; }
.xd-kv .mus{ color:#cf2a0f; }
.xd-logged{ padding:20px 16px 16px; display:flex; flex-direction:column; gap:14px; }
.xd-hgroup{ display:flex; flex-direction:column; gap:3px; padding-left:4px; }
.xd-h{ font-size:1.188rem; font-weight:600; line-height:1.438rem; color:#141414; }
.xd-sub{ font-size:0.8438rem; line-height:1rem; color:#5f636b; }
.xd-stats{ display:flex; gap:12px; }
.xd-stat{ flex:1; background:#f7f8f9; border-radius:14px; padding:13px 14px; display:flex; flex-direction:column; gap:8px; align-items:flex-start; min-height:80px; }
.xd-statlabel{ font-size:0.9375rem; font-weight:600; color:#141414; }
.xd-statval{ font-size:1rem; font-weight:700; color:#646464; }
.xd-statval.purple{ color:#6c5ce7; }
.xd-related{ padding:20px 0 0; overflow:hidden; }
.xd-relhead{ display:flex; align-items:flex-start; justify-content:space-between; gap:3px; padding:0 16px; }
.xd-relhead .xd-hgroup{ padding-left:0; }
.xd-add{ height:40px; padding:0 16px; border-radius:999px; background:#ebebeb; font-size:1rem; font-weight:600; color:#111; flex:none; }
.xd-sechdr{ display:flex; justify-content:space-between; padding:14px 16px 0; margin-top:24px; font-size:0.6875rem; font-weight:700; letter-spacing:1px; color:#646464; }
.xd-sechdr + .xd-eqrow{ margin-top:0; }
.xd-sechdr .sort{ color:#111; letter-spacing:0; }
.xd-eqrow{ width:100%; height:96px; padding:16px; display:flex; align-items:center; gap:12px; text-align:left; }
.xd-eqimg{ width:64px; height:64px; border-radius:4px; object-fit:cover; flex:none; }
.xd-eqimg.generic{ background:#949494; }
.xd-eqtext{ flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.xd-eqname{ font-size:1rem; font-weight:600; line-height:1.188rem; color:#000; }
.xd-eqsub{ font-size:0.8125rem; font-weight:500; line-height:1rem; color:#5f636b; }
.xd-eqsub .goals{ color:#6c5ce7; }
.xd-chev{ display:flex; flex:none; }
.xd-actions{ padding-bottom:40px; }
.xd-act{ width:100%; height:72px; padding:12px 16px; display:flex; align-items:center; gap:10px; text-align:left; border-bottom:1px solid #ebebeb; font-size:1rem; font-weight:600; color:#111; }
.xd-act > span:nth-child(2){ flex:1; }
.xd-acticon{ width:48px; height:48px; border-radius:999px; background:#e0e0e0; display:flex; align-items:center; justify-content:center; flex:none; }
.xd-acticon.del{ background:#eecece; }
.wiz-eqrow .eqimg img{ width:100%; height:100%; object-fit:cover; border-radius:inherit; display:block; }
.xd-empty-help{ max-width:200px; }
.xd-sechdr{ margin-top:10px; }

/* ======================================================================
   Saved equipment list + equipment detail (Figma 1164:85478 / 82231)
   ====================================================================== */
.eql-screen{ background:#fff; min-height:852px; }
.eql-head{ padding:16px 16px 12px; display:flex; flex-direction:column; gap:7px; }
.eql-title{ font-size:1.625rem; font-weight:600; line-height:2rem; color:#141414; }
.eql-help{ font-size:0.9375rem; line-height:1.312rem; color:#5f636b; }
.eql-listhdr{ display:flex; justify-content:space-between; align-items:center; padding:14px 16px 0; font-size:0.8125rem; font-weight:500; color:#5f636b; }
.eql-listhdr .sort{ font-size:0.75rem; font-weight:600; color:#111; }
.eql-listhdr .sort i{ font-style:normal; font-size:0.6875rem; color:#646464; }
.eqd-hero{ background:#000; overflow:hidden; display:block; }
.eqd-hero img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.eqd-hero .statusbar{ z-index:1; }
.eqd-hero .xd-back{ z-index:1; }
.eqd-name{ text-align:center; }
.eqd-loc{ width:100%; background:#fff; border-radius:16px; box-shadow:0 0 8px rgba(0,0,0,.2); padding:16px; display:flex; flex-direction:column; gap:4px; text-align:left; }
.eqd-locval{ font-size:1rem; font-weight:600; color:#000; }
.eqd-units{ padding:20px 16px; display:flex; flex-direction:column; gap:12px; }
.eqd-units .xd-hgroup{ padding-left:0; }
.eqd-unitslbl{ margin-top:12px; }
.eqd-unitrow{ display:flex; flex-wrap:wrap; gap:12px 10px; }
.eqd-unit{ height:40px; padding:0 16px; border-radius:999px; background:#ebebeb; font-size:1rem; font-weight:600; color:#111; }
.eqd-unit.on{ background:#cf2a0f; color:#fff; }
.eqd-exlist{ padding:12px 0; }
.eqd-exrow{ width:100%; padding:16px; display:flex; align-items:center; gap:10px; text-align:left; border-bottom:1px solid #ebebeb; background:#fff; }
.eqd-exrow:last-child{ border-bottom:none; }
.eqd-exrow .ex-tile{ width:48px; height:48px; border-radius:8px; background:#ebebeb; flex:none; display:flex; align-items:center; justify-content:center; font-size:0.8125rem; font-weight:800; color:#646464; }
.eqd-extext{ flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.eqd-exname{ font-size:1rem; font-weight:600; line-height:1.188rem; color:#111; }
.eqd-chips{ display:flex; gap:8px; }
.eqd-chip{ height:29px; padding:0 10px; border-radius:4px; background:rgba(108,92,231,.2); color:#6c5ce7; font-size:0.9375rem; font-weight:700; display:inline-flex; align-items:center; }
.home-logo{ min-width:0; }

/* ======================================================================
   Equipment Swap (Figma 1164:88151)
   ====================================================================== */
.swp-screen{ background:#ebebeb; min-height:852px; }
.swp-body{ padding:18px 16px 40px; display:flex; flex-direction:column; gap:16px; }
.swp-current{ display:flex; align-items:center; gap:12px; padding:16px; height:96px; }
.swp-h{ font-size:1.125rem; font-weight:800; color:#111; line-height:1.375rem; }
.swp-list{ padding:20px 0 0; overflow:hidden; }
.swp-help{ display:flex; align-items:center; justify-content:space-between; gap:3px; padding:0 16px; font-size:0.8438rem; line-height:1rem; color:#5f636b; }
.swp-help span{ max-width:262px; }
.swp-hdr{ display:flex; justify-content:space-between; align-items:center; padding:16px 16px 8px; margin-top:10px; font-size:0.8125rem; font-weight:500; color:#5f636b; }
.swp-hdr .sort{ font-size:0.75rem; font-weight:600; color:#111; }
.swp-hdr .sort i{ font-style:normal; font-size:0.6875rem; color:#646464; }
.swp-generic{ width:100%; height:72px; padding:12px 16px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #ebebeb; font-size:1rem; font-weight:800; color:#111; text-align:left; background:#fff; }
.swp-generic:last-child{ border-bottom:none; }

/* Update Goal Weight sheet (Figma 1164:85154) */
.ug-body{ padding:12px 16px 32px; display:flex; flex-direction:column; gap:48px; }
.ug-titleblock{ display:flex; flex-direction:column; gap:4px; }
.ug-title{ font-family:var(--sans); font-size:3.375rem; line-height:3rem; color:#6c5ce7; text-transform:uppercase; }
.ug-text{ font-size:0.9375rem; font-weight:500; line-height:1.062rem; color:#646464; }
.ug-graphic{ position:relative; width:291px; height:136px; margin:0 auto; }
.ug-kb{ position:absolute; }
.ug-kb.big{ left:0; top:0; }
.ug-kb.small{ left:199px; top:24px; }
.ug-kb span{ position:absolute; left:0; right:0; text-align:center; color:#fff; font-weight:700; display:flex; flex-direction:column; }
.ug-kb span b{ color:#6c5ce7; font-weight:700; }
.ug-kb.big span{ top:57px; font-size:1.5rem; line-height:1.5rem; }
.ug-kb.small span{ top:45px; font-size:1rem; line-height:1rem; }
.ug-arrow{ position:absolute; left:124px; top:61px; }
.ug-summary{ text-align:center; font-size:1.25rem; font-weight:700; color:#111; line-height:1.5rem; }
.ug-summary span{ color:#6c5ce7; }
.ug-actions{ display:flex; gap:16px; }
.ug-btn{ flex:1; height:56px; border-radius:16px; background:#fff; border:1px solid #ececee; font-size:1rem; font-weight:600; color:#141414; }
.ug-btn.dark{ background:#141414; color:#fff; border-color:#141414; }

/* Workout Details — read-only exercise cards (Figma 1164:87271) */
.cw-ex-card.ro .cw-ex-detail{ padding-bottom:0; }
.cw-ex-card.ro .cw-detail-main{ border-bottom:none; margin-bottom:0; }
.cw-stepper.ro{ flex:none; }
.cw-st-row.ro{ width:66px; justify-content:center; padding:0; }

/* ======================================================================
   Wizards — exact Figma specs (Create an Exercise 1164:85816…86900; shared by
   Save Equipment and Create a Plan)
   ====================================================================== */
.wiz-body{ padding:14px 16px 130px; }
.wiz-title{ font-size:1.625rem; font-weight:600; line-height:2rem; letter-spacing:0; color:#141414; }
.wiz-help{ font-size:0.9375rem; font-weight:400; line-height:1.312rem; color:#5f636b; margin-top:0; }
.wiz-input{ height:54px; border-radius:14px; border:none; box-shadow:0 8px 24px rgba(20,20,23,.08); font-size:1.062rem; font-weight:600; color:#141414; margin-top:20px; }
.wiz-grouplabel{ font-size:1.125rem; font-weight:800; line-height:1.375rem; color:#111; margin:20px 0 12px; }
.wiz-card{ font-size:1rem; font-weight:800; color:#111; border-radius:12px; }
.wiz-footer{ padding:16px 16px 32px; gap:12px; background:#fff; border-top:none; box-shadow:0 0 4px rgba(0,0,0,.25); }
.wiz-footer .btn{ flex:1; height:53px; border-radius:16px; font-size:1rem; font-weight:600; }
.wiz-footer .btn.back{ flex:1; background:#fff; border:1px solid #ececee; color:#141414; }
.wiz-footer .btn.solid{ background:#141414; }
/* equipment step */
.wiz-eqcard{ border-radius:20px; box-shadow:0 8px 24px rgba(20,20,23,.08); padding:20px 0 0; margin-top:20px; overflow:hidden; }
.wiz-eqnote{ padding:0 16px; }
.wiz-eqnote p{ font-size:0.8438rem; line-height:1rem; color:#5f636b; max-width:262px; }
.wiz-eqsection{ padding:16px 16px 8px; }
.wiz-eqrow{ height:96px; padding:16px; border-top:none; gap:12px; }
.wiz-eqrow .eqimg{ width:64px; height:64px; border-radius:4px; }
.wiz-eqrow .eqname{ font-size:1rem; font-weight:600; color:#000; line-height:1.188rem; }
.wiz-eqrow .eqloc{ font-size:0.8125rem; font-weight:500; color:#5f636b; margin-top:4px; }
.wiz-eqrow.generic{ height:72px; padding:12px 16px; border-bottom:1px solid #ebebeb; background:#fff; }
.wiz-eqrow.generic:last-child{ border-bottom:none; }
.wiz-eqrow.generic .eqname{ font-weight:800; color:#111; }
.wiz-check{ width:24px; height:24px; border-radius:4px; border:2px solid #dbdbdb; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.08); }
.wiz-check.on, .wiz-check.red.on{ background:#cf2a0f; border-color:#cf2a0f; }
.wiz-check.on svg{ width:18px; height:18px; }
.wiz-imgcard{ height:300px; padding:0 60px; border-radius:8px; box-shadow:none; justify-content:center; gap:12px; margin-top:20px; }
.wiz-imgcard .imgt1{ font-size:1rem; font-weight:600; color:#595c63; }
.wiz-imgcard .imgt2{ font-size:0.8125rem; line-height:1rem; color:#5f636b; max-width:200px; }
.wiz-imgcard .imgbtn{ height:39px; padding:0 18px; border-radius:12px; background:#cf2a0f; color:#fff; font-size:0.9375rem; font-weight:600; }
/* Save Equipment location options (Figma 1164:85890): 72 tall, r8, 16 gap */
.wiz-loclist{ margin-top:20px; display:flex; flex-direction:column; gap:16px; }
.wiz-locard{ height:72px; margin:0; border-radius:8px; font-size:1rem; font-weight:800; color:#111; }
.wiz-locard.add{ background:transparent; border:2px solid #fff; gap:16px; }
/* Create a Plan — day badges are navy for every workout (Figma 1164:86257) */
.plan-daycard{ border-radius:16px; padding:4px 0; }
.plan-dayrow{ padding:13px 14px; gap:12px; border-top:1px solid #ececee; }
.plan-daybadge{ width:30px; height:30px; border-radius:15px; font-size:0.8125rem; font-weight:600; }
.plan-daybadge.work{ background:#426e8f; color:#fff; border:none; }
.plan-daybadge.rest{ background:none; border:2px solid #426e8f; color:#111; }
.plan-daybadge.empty{ background:#f2f3f4; color:#5f636b; border:none; }
.plan-dayname{ font-size:0.9375rem; font-weight:600; color:#141414; }
.plan-dayname.empty{ font-weight:500; color:#9ea1a8; }
.plan-daysub{ font-size:0.7812rem; font-weight:500; color:#5f636b; }
.plan-daychev svg{ width:18px; height:18px; }
.plan-redit{ height:32px; padding:0 8px 0 20px; gap:0; font-size:0.7812rem; font-weight:600; color:#141414; background:#ebebeb; }

/* ======================================================================
   Volume sheet (Figma 1164:82713 / 83574 / 83727) + Choose a color / icon
   (1164:84652 / 84561)
   ====================================================================== */
.vs-body{ padding:12px 16px 32px; display:flex; flex-direction:column; gap:55px; }
.vs-top{ display:flex; flex-direction:column; gap:32px; }
.vs-titleblock{ display:flex; flex-direction:column; gap:4px; }
.vs-title{ font-family:var(--sans); font-size:3.375rem; line-height:3rem; color:#111; text-transform:uppercase; }
.vs-sub{ font-size:0.9375rem; font-weight:500; line-height:1.062rem; color:#646464; }
.vs-info{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.vs-main{ font-size:0.9375rem; font-weight:500; color:#111; line-height:1.25rem; }
.vs-main .lbs{ color:#6c5ce7; font-weight:600; }
.vs-meta{ font-size:0.8125rem; color:#5f636b; line-height:1rem; }
.vs-graph{ width:56px; height:40px; border-radius:999px; background:#ebebeb; display:flex; align-items:center; justify-content:center; flex:none; }
.vs-steppers{ display:flex; flex-direction:column; gap:12px; }
.vs-group{ display:flex; flex-direction:column; align-items:center; gap:8px; }
.vs-label{ font-size:0.625rem; font-weight:700; letter-spacing:.08em; color:#bbb; text-transform:uppercase; }
.vs-row{ display:flex; align-items:center; gap:20px; }
.vs-val{ width:100px; height:64px; border-radius:16px; background:#111; color:#fff; display:flex; align-items:center; justify-content:center; font-size:1.5rem; font-weight:900; }

.pk-body{ padding:12px 16px 32px; display:flex; flex-direction:column; gap:48px; }
.pk-titleblock{ display:flex; flex-direction:column; }
.pk-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:22px 16px; margin-top:-26px; }
.pk-swatch{ height:64px; border-radius:8px; display:flex; align-items:center; justify-content:center; border:4px solid transparent; }
.pk-swatch.on{ border-color:#111; }
.pk-check{ width:38px; height:38px; border-radius:999px; background:#fff; display:flex; align-items:center; justify-content:center; }
.pk-check svg{ width:20px; height:20px; }
.pk-check svg path{ fill:#111; }
.pk-icon{ height:64px; border-radius:8px; border:1px solid #646464; background:#fff; display:flex; align-items:center; justify-content:center; color:#111; }
.pk-icon svg{ width:32px; height:32px; }
.pk-icon.on{ border:4px solid #000; }
.pk-icon.empty{ border-style:dashed; border-color:#d6d6d6; background:#fafafa; }
.pk-actions{ display:flex; gap:10px; }
.pk-btn{ flex:1; height:64px; border-radius:999px; border:2px solid #111; background:#fff; font-size:1rem; font-weight:700; color:#111; }
.pk-btn.dark{ background:#111; color:#fff; }

/* ======================================================================
   Photos, locations, delete & merge
   ====================================================================== */
label.xd-addphoto, label.imgbtn{ display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
.xd-heroimg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.xd-hero .statusbar, .xd-hero .xd-back{ z-index:1; }
.xd-changephoto{ position:absolute; right:16px; bottom:16px; z-index:1; height:36px; padding:0 14px; border-radius:999px; background:rgba(255,255,255,.92); color:#111; font-size:0.8125rem; font-weight:600; display:inline-flex; align-items:center; cursor:pointer; box-shadow:0 2px 8px rgba(0,0,0,.15); }
.eqd-hero:not(:has(img)){ background:#fff; display:flex; }
.ex-tile.photo{ padding:0; overflow:hidden; }
.ex-tile.photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.wiz-imgcard.filled{ position:relative; padding:0; overflow:hidden; }
.wiz-imgcard.filled img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }

.loc-body{ gap:24px; }
.loc-body .wiz-loclist{ margin-top:0; }
.loc-body .wiz-locard{ background:#f4f4f5; box-shadow:none; }
.loc-body .wiz-locard.on{ background:#fff; border-color:#111; }
.loc-body .wiz-locard.add{ background:transparent; border:2px solid #ebebeb; }

.cf-body{ gap:40px; }
.vs-title.danger{ color:#cf2a0f; }
.ug-btn.danger{ background:#cf2a0f; border-color:#cf2a0f; color:#fff; }

.mg-search{ margin:8px 16px 12px; height:48px; border-radius:999px; border:2px solid #111; display:flex; align-items:center; gap:8px; padding:0 16px; }
.mg-search input{ flex:1; border:none; outline:none; font:inherit; font-size:1rem; background:none; }
.mg-empty{ padding:24px 16px; color:#5f636b; font-size:0.9375rem; }

/* ============================================================================
   Release 1.0 system: persistence-era components
   ============================================================================ */
button:disabled{ opacity:.4; cursor:default; }
.toast{ position:absolute; left:50%; bottom:110px; transform:translate(-50%,12px); background:#111; color:#fff; font-size:0.9375rem; font-weight:600; padding:12px 18px; border-radius:999px; opacity:0; pointer-events:none; transition:opacity .2s, transform .2s; z-index:50; max-width:340px; text-align:center; }
.toast.on{ opacity:1; transform:translate(-50%,0); }
.wiz-err{ margin-top:10px; color:var(--red); font-size:0.9375rem; font-weight:600; line-height:1.188rem; }

/* sets: black by default, purple when they meet the overload goal */
button.set-cell{ width:100%; text-align:left; font:inherit; border:0; border-bottom:1px solid #f1f1f3; }
.set-list .set-cell:last-child{ border-bottom:0; }
.set-badge.working{ background:#111; }
.set-badge.pr{ background:#6c5ce7; }
.sess-tip{ text-align:center; font-size:0.75rem; color:#9fa2a8; margin-top:12px; }
.sess-progseg{ border:0; padding:0; cursor:pointer; }
.sess-drow .dimg.generic{ background:#e0e0e0; }
.dval.sm{ font-size:0.9375rem; font-weight:500; }
.sess-tbtn:disabled{ opacity:.3; }

/* set sheet: typeable values */
.sw-val{ cursor:text; }
.sw-in{ width:64px; background:none; border:0; outline:0; color:#fff; font:inherit; font-size:1.5rem; font-weight:900; text-align:center; padding:0; font-variant-numeric:tabular-nums; }
.sw-val:has(.u) .sw-in{ width:58px; text-align:right; }
.sw-delete{ display:block; margin:6px auto 22px; color:var(--red); font-size:0.9375rem; font-weight:600; padding:10px 16px; }
.sheet .sw-in::selection{ background:#6c5ce7; }

/* pause sheet extras */
.pz-more{ display:flex; justify-content:center; gap:24px; margin-top:-24px; }
.pz-link{ font-size:0.9375rem; font-weight:600; color:#111; padding:8px 4px; text-decoration:underline; text-underline-offset:3px; }
.pz-link.danger{ color:var(--red); }

/* exercise picker */
.ex-hint{ margin:0 16px 4px; padding:10px 12px; border-radius:10px; background:#f2f3f4; font-size:0.8125rem; color:#5f636b; }
.ex-row.picked{ background:#f4f2ff; }
.ex-screen.has-footer{ padding-bottom:110px; }
.ex-screen .cw-footer{ background:#fff; }
.wiz-eqempty, .swp-empty{ padding:12px 4px 16px; font-size:0.9375rem; color:#5f636b; }

/* workout editor + lineup */
.cw-name{ cursor:text; }
.cw-name-input{ flex:1; min-width:0; border:0; outline:0; background:none; font:inherit; font-size:1.625rem; font-weight:600; letter-spacing:-.02em; color:var(--ink-2); padding:0; }
.cw-name-input::placeholder{ color:#b5b7bc; }
.cw-empty{ padding:22px 16px; text-align:center; color:#5f636b; font-size:0.9375rem; background:#fff; border-radius:16px; margin-bottom:12px; }
.cw-eq-loc, .tk-equip-loc{ font-weight:500; color:#5f636b; }
.lu-count{ font-size:0.9375rem; font-weight:500; color:#5f636b; margin-top:2px; }
.lu-help{ font-size:0.8125rem; color:#5f636b; margin:-4px 0 12px; }
.lu-screen.has-footer .cw-body{ padding-bottom:130px; }
.cw-footer .btn.lu-go, .cw-footer .btn{ height:56px; border-radius:999px; font-size:1rem; font-weight:700; }
.lu-go{ flex:1; letter-spacing:.02em; }

/* workout lists */
.wcard-kebab{ width:36px; height:36px; margin:-6px -8px 0 0; display:flex; align-items:center; justify-content:center; border-radius:999px; flex:none; }
.wl-tabs{ margin:0; }
.wl-hist{ width:100%; display:flex; align-items:center; gap:12px; padding:12px 14px; background:#fff; border-radius:14px; text-align:left; box-shadow:0 8px 24px rgba(20,20,23,.06); }
.wl-histtext{ flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.wl-edited{ display:inline-block; margin-left:8px; padding:2px 6px; border-radius:4px; background:#ebebeb; color:#5f636b; font-size:0.625rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; vertical-align:2px; }
.hm-date{ width:44px; height:48px; border-radius:6px; border:2px solid var(--wc,#111); background:#fff; display:flex; flex-direction:column; align-items:center; justify-content:center; flex:none; color:#111; }
.hm-date span{ font-size:0.5625rem; font-weight:800; letter-spacing:.06em; color:var(--wc,#111); line-height:0.6875rem; }
.hm-date b{ font-size:1.25rem; font-weight:900; line-height:1.375rem; }

.nav-create.icon{ width:44px; padding:0; display:flex; align-items:center; justify-content:center; }

/* exercise history */
.hx-screen{ background:#ebebeb; }
.hx-screen .eql-head{ background:#fff; padding-bottom:16px; }
.hx-fails{ color:#6c5ce7; font-weight:600; }
.hx-list{ padding:16px; display:flex; flex-direction:column; gap:18px; padding-bottom:40px; }
.hx-date{ display:flex; justify-content:space-between; font-size:0.8125rem; font-weight:700; color:#111; margin:0 4px 8px; }
.hx-date span{ font-weight:500; color:#5f636b; }
.hx-card{ background:#fff; border-radius:12px; padding:12px 8px 4px; }
.hx-head{ font-size:0.75rem; font-weight:700; color:#5f636b; padding:0 6px 6px; }
.hx-card .set-list{ box-shadow:none; }

/* exercise detail: logged card is tappable */
button.xd-logged{ width:100%; text-align:left; font:inherit; color:inherit; border:0; }
.xd-hrow{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.eqd-nogoal{ font-size:0.75rem; color:#9fa2a8; }
.mg-empty.sm{ padding:12px 0; }
.mg-empty{ text-align:center; line-height:1.25rem; }
.tk-note{ margin-top:12px !important; color:#5f636b !important; font-size:0.9375rem !important; }

/* option menus */
.mn-head{ padding:12px 16px 8px; display:flex; flex-direction:column; gap:2px; }
.mn-list{ padding-bottom:28px; }
.mn-list .xd-act:last-child{ border-bottom:0; }

/* plan calendar is tappable */
button.cal-cell{ padding:0; font:inherit; }
button.plan-datefield{ text-align:left; font:inherit; color:inherit; }

/* settings */
.st-content{ gap:14px; }
.st-act{ cursor:pointer; }
.st-act > span:nth-child(2){ display:flex; flex-direction:column; gap:2px; }
.st-label{ font-size:1rem; font-weight:600; }
.st-sub{ font-size:0.8125rem; font-weight:500; color:#5f636b; }
.st-card{ padding:20px 16px; }
.st-stats{ margin-top:12px; font-size:0.9375rem; font-weight:600; }
.st-warn{ background:#fdeceb; color:#a1220c; border-radius:12px; padding:12px 14px; font-size:0.9375rem; font-weight:600; line-height:1.188rem; }
.st-screen .eqd-unitrow .eqd-unit{ flex:1; }
.mn-head .vs-title{ white-space:normal; line-height:.95; }

/* ---- real phones: drop the mock status bar, respect the notch and home bar ---- */
@media (max-width:440px){
  .statusbar{ height:max(env(safe-area-inset-top), 12px); padding:0; }
  .statusbar > *, .statusbar .sb-right{ display:none !important; }
  .home-top{ height:calc(max(env(safe-area-inset-top), 12px) + 78px); }
  .home-bar{ top:calc(max(env(safe-area-inset-top), 12px) + 10px); }
  .home-headline{ top:calc(max(env(safe-area-inset-top), 12px) + 98px); }
  .xd-back{ top:calc(max(env(safe-area-inset-top), 12px) + 8px) !important; }
  .cw-footer, .wiz-footer, .sess-footer, .wc-footer{ padding-bottom:max(env(safe-area-inset-bottom), 16px); }
  .sheet{ padding-bottom:env(safe-area-inset-bottom); }
  .app, .device{ min-height:0; }
  input, textarea{ font-size:max(16px, 1em); }   /* stops iOS zooming into fields */
}
@media (max-width:440px){
  .home:not(.withplan){ height:100%; min-height:600px; }
  .home-hero{ width:100%; }
}
@media (max-width:389px){
  .home-icons{ gap:8px; }
  .home-ibtn{ width:44px; height:44px; }
  .home-logo{ font-size:2.625rem; }
  .sw-grow{ gap:6px !important; }
  .sw-adj{ width:46px !important; min-width:46px !important; height:46px !important; font-size:0.9375rem; }
  .sw-val{ min-width:86px !important; }
}

/* ---- Release 1.0 flows in the Dev File style ---- */
/* home: same hero + dark panel as the Start Page; plan and today are white cards */
.home-panel{ top:auto; bottom:0; padding:20px 16px 34px; }
.home.withplan{ height:auto; min-height:852px; }
.home.withplan .home-panel{ gap:14px; }
.hm-card{ box-shadow:none; }
.hm-card .wcard-actions{ align-items:center; }
.hm-planhead{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.hm-planname{ font-size:1.625rem; font-weight:600; line-height:1.938rem; color:#fff; }
.hm-planmeta{ font-size:0.9375rem; line-height:1.312rem; color:#9fa2a8; margin-top:2px; }
.hm-kebab{ width:44px; height:44px; border-radius:999px; background:#fff; display:flex; align-items:center; justify-content:center; flex:none; }
.hm-label{ font-size:0.8125rem; font-weight:500; line-height:1rem; color:#9fa2a8; margin-bottom:-4px; }
.hm-resttile{ background:#ebebeb; color:#5f636b; font-size:1.25rem; }
.hm-done{ margin-right:auto; display:flex; align-items:center; gap:6px; color:#6c5ce7; font-size:0.9375rem; font-weight:600; }
@media (max-width:440px){ .home.withplan{ height:auto; min-height:100%; } }

/* My Workouts history rows */
.wl-hist .wcard-tile{ flex:none; }
.wl-edited{ margin-left:8px; vertical-align:2px; font-size:0.6875rem; }

/* Workout Complete / past workout */
.wc-screen{ background:#ebebeb; min-height:100%; padding-bottom:110px; }
.wc-body{ padding-top:20px; gap:16px; }
.wc-navbtn{ margin-left:auto; }
.wc-list{ display:flex; flex-direction:column; gap:12px; }
.wc-card{ background:#fff; border-radius:16px; box-shadow:0 8px 24px rgba(20,20,23,.08), 0 1px 2px rgba(20,20,23,.05); padding-bottom:12px; overflow:hidden; }
.wc-goal{ padding:0 16px 12px !important; }
.wc-card .set-list{ margin:0 12px; box-shadow:none; border:1px solid #ececee; }
.wc-screen .cw-footer .btn{ flex:1; }
.wc-screen .sess-tip{ margin-top:0; }

/* pause sheet: second row of actions */
.pz-stack{ display:flex; flex-direction:column; gap:12px; }
.ug-btn.danger-ghost{ color:#cf2a0f; }

/* ---- fixed headers + footers with a soft shadow ---- */
:root{ --sb-h:54px; --bar-shadow:0 2px 8px rgba(20,20,23,.08); --foot-shadow:0 -2px 8px rgba(20,20,23,.08); }
@media (max-width:440px){ :root{ --sb-h:max(env(safe-area-inset-top), 12px); } }
.statusbar:has(+ .nav){ position:sticky; top:0; z-index:10; background:#fff; }
.nav{ position:sticky; top:var(--sb-h); z-index:10; background:#fff; box-shadow:var(--bar-shadow); }
.nav:has(+ .wiz-header){ box-shadow:none; }
.wiz-header{ position:sticky; top:calc(var(--sb-h) + 62px); z-index:10; background:#fff; box-shadow:var(--bar-shadow); padding:0 16px 14px; }
.cw-footer, .sess-footer, .wiz-footer{ z-index:10; border-top:none; box-shadow:var(--foot-shadow); }
.cw-footer, .wiz-footer{ background:#fff; }

/* plan split stepper: white buttons */
.plan-stepper .st-btn{ background:#fff; box-shadow:0 1px 2px rgba(20,20,23,.06); border:1px solid #ececee; }

/* RPE slider: number on the thumb */
.sw-feel{ touch-action:none; user-select:none; -webkit-user-select:none; }
.sw-feel .ff-thumb{ z-index:2; display:flex; align-items:center; justify-content:center; }
.ff-num{ font-size:1.375rem; font-weight:800; color:#111; font-variant-numeric:tabular-nums; }

/* Overload Tracker: history link at the bottom */
.tk-actions{ margin-top:8px; }

/* workout card buttons: standard size */
.wpill{ height:40px; padding:0 22px; font-size:0.9375rem; }
.wcard-actions{ gap:10px; }

/* Workout Complete: celebration + actions above the sets */
.wc-hero{ display:flex; flex-direction:column; align-items:center; text-align:center; margin:-8px 0 4px; }
.wc-anim{ width:150px; height:150px; }
.wc-cheer{ font-size:1.625rem; font-weight:600; line-height:2rem; color:#141414; margin-top:-6px; }
.wc-cheersub{ font-size:0.9375rem; line-height:1.312rem; color:#5f636b; margin-top:2px; max-width:300px; }
.wc-actions{ display:flex; gap:12px; }
.wc-actions .cw-add{ flex:1; width:auto; }
.wc-share{ width:52px; height:52px; flex:none; border-radius:16px; background:#fff; display:flex; align-items:center; justify-content:center; box-shadow:0 8px 24px rgba(20,20,23,.08), 0 1px 2px rgba(20,20,23,.05); }
.nav{ min-height:62px; box-sizing:border-box; }

/* ---- home: quote / paused workout / today's plan centered on the photo ---- */
.home, .home.withplan{ display:flex; flex-direction:column; height:852px; min-height:0; }
.home-center{ position:relative; z-index:1; flex:1; display:flex; flex-direction:column; justify-content:center; gap:10px; padding:150px 16px 24px; }
.home-panel, .home.withplan .home-panel{ position:relative; top:auto; bottom:auto; flex:none; }
.home-quote{ margin:0 auto; max-width:300px; text-align:center; color:#fff; text-shadow:0 1px 12px rgba(0,0,0,.55); }
.home-quote blockquote{ margin:0; font-family:'Cormorant Garamond', Georgia, serif; font-style:italic; font-weight:500; font-size:1.5rem; line-height:1.875rem; }
.home-quote figcaption{ margin-top:10px; font-size:0.75rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; opacity:.8; }
.home-center .hm-label{ color:#fff; margin:0 0 -2px; text-shadow:0 1px 8px rgba(0,0,0,.5); }
.home-center .wcard{ box-shadow:0 12px 32px rgba(0,0,0,.35); }
@media (max-width:440px){
  .home, .home.withplan{ height:100%; min-height:640px; }
  .home-center{ padding-top:calc(max(env(safe-area-inset-top), 12px) + 96px); }
}

/* session: exercise number is black inside the workout-colored box */
.sess-exbadge{ color:#111; }
.home-top{ z-index:2; }

/* ---- micro-interactions: quick, soft press feedback ---- */
button, .home-cta, .wpill, label.xd-act{ transition:transform .14s cubic-bezier(.2,.8,.2,1), background-color .18s ease, box-shadow .18s ease, opacity .18s ease; }
button:not(:disabled):active, label.xd-act:active{ transform:scale(.97); }
.cw-ex-row:active, .sess-exrow:active, .ex-row:active, .xd-eqrow:active, .wl-hist:active, .xd-act:active, .set-cell:active, .fl-row:active{ transform:none; background-color:rgba(20,20,23,.03); }
.cw-ex-caret, .sess-excaret{ display:flex; transform-origin:50% 50%; }
@media (prefers-reduced-motion: reduce){ button, .home-cta, .wpill{ transition:none; } button:active{ transform:none !important; } }


/* ============================================================================
   Accessibility pass: bigger small text, better contrast, 44px tap targets
   ============================================================================ */
/* smallest text up to 13px, gray labels up to 14px */
.device .xd-sechdr, .device .set-tag, .device .home-quote figcaption, .device .tk-legend .sub, .device .xd-tag{ font-size:0.8125rem; }
.cw-act{ font-size:0.9375rem; }
.device .wl-label, .device .cw-label, .device .cw-listlabel, .device .cw-st-label, .device .sess-exsub, .device .sess-exmuscle, .device .dlabel, .device .sw-label, .device .tk-equip-label, .device .g-label, .device .wiz-count, .device .xd-empty-help, .device .xd-sub, .device .sec-sort, .device .tk-seg button, .device .hm-label{ font-size:0.9375rem; }
/* contrast */
.set-tag{ color:#5a4bd1; border-color:#5a4bd1; }
.set-tag.fail{ color:#fff; background:#5a4bd1; border-color:#5a4bd1; }
.sw-feel .ff-text{ color:#2a2266; }
/* tap targets: at least 44px */
.wpill, .nav-create, .cw-edit, .cw-act, .xd-add, .lu-locpill, .chip-drop, .qchip{ height:auto; min-height:44px; }
.sess-dpill, .pill-btn.circle{ width:44px; height:44px; }
.pill-btn{ min-height:44px; }
.tk-sortbtn{ height:44px; min-width:44px; }
.cw-st-btn{ width:44px; height:44px; }
.tk-seg button{ min-height:44px; }
.device .cw-eq .cw-eq-swap{ width:44px; height:44px; margin:-10px; background:none; }   /* 24px icon, 44px tap area */
.sess-progseg{ cursor:default; }

/* session progress pips — Dev File "pip": 8px, 8px gap, inner shadow for depth */
.sess-prog{ gap:8px; }
.sess-progseg{ height:8px; border-radius:999px; background:#fff; box-shadow:inset 0 2px 8px rgba(0,0,0,.25); }
.sess-progseg.done{ background:#5a5961; box-shadow:inset 0 2px 8px rgba(0,0,0,.25); }
.sess-progseg.pr{ background:#6c5ce7; box-shadow:inset 0 4px 8px rgba(0,0,0,.25); }
.sess-progseg.cur{ background:var(--sess-color,#cf2a0f); box-shadow:none; }
.sess-prog{ position:relative; }
.sess-pipblob{ position:absolute; border-radius:999px; pointer-events:none; z-index:1; }

/* Equipment Swap: empty state CTA for saved machines */
.swp-cta{ background:#fff; border-radius:16px; box-shadow:0 8px 24px rgba(20,20,23,.08), 0 1px 2px rgba(20,20,23,.05); padding:24px 20px 20px; display:flex; flex-direction:column; align-items:center; text-align:center; margin-bottom:16px; }
.swp-cta-icon{ width:64px; height:64px; border-radius:18px; background:#f0eeff; display:flex; align-items:center; justify-content:center; }
.swp-cta-icon svg{ width:32px; height:32px; }
.swp-cta-title{ margin-top:14px; font-size:1.25rem; line-height:1.625rem; font-weight:700; letter-spacing:-.01em; color:#141414; }
.swp-cta-text{ margin-top:6px; font-size:0.9375rem; line-height:1.3125rem; color:#5f636b; max-width:300px; }
.swp-cta-points{ list-style:none; margin:16px 0 0; padding:0; display:flex; flex-direction:column; gap:8px; align-self:stretch; }
.swp-cta-points li{ display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:12px; background:#f6f7f8; font-size:0.9375rem; font-weight:600; color:#141414; text-align:left; }
.swp-cta-points li svg{ flex:none; width:20px; height:20px; }
.swp-cta-btn{ margin-top:18px; align-self:stretch; height:52px; border-radius:999px; font-size:1rem; font-weight:700; }
.swp-cta .btn.swp-cta-btn{ flex:none; width:100%; min-height:52px; padding:0 20px; }

/* Workout Complete cards: tracker button + goal band */
.wc-exrow{ align-items:center; }
.wc-trk{ margin-left:auto; }
.wc-band{ display:flex; align-items:center; gap:12px; margin:12px 12px 0; padding:12px 14px; border-radius:12px; background:#f6f7f8; }
.wc-band.hit{ background:#6c5ce7; color:#fff; }
.wc-band-icon{ width:32px; height:32px; flex:none; border-radius:999px; background:#fff; display:flex; align-items:center; justify-content:center; }
.wc-band.hit .wc-band-icon{ background:rgba(255,255,255,.2); }
.wc-band-icon svg{ width:18px; height:18px; }
.wc-band-label{ font-size:0.8125rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.wc-band-val{ font-size:0.9375rem; font-weight:500; margin-top:1px; }
.wc-band:not(.hit) .wc-band-label{ color:#5f636b; }
.wc-band:not(.hit) .wc-band-val b{ color:#6c5ce7; }

/* Workout Complete: roomier celebration, stat tiles, workout thumbnail */
.wc-hero{ margin:4px 0 8px; padding:12px 0 8px; }
.wc-anim{ width:180px; height:180px; }
.wc-cheer{ font-size:1.75rem; line-height:2.125rem; margin-top:0; }
.wc-cheersub{ margin-top:6px; }
.wc-stats{ display:flex; gap:10px; }
.wc-stat{ flex:1; background:#fff; border-radius:16px; padding:14px 8px 12px; display:flex; flex-direction:column; align-items:center; gap:2px; box-shadow:0 8px 24px rgba(20,20,23,.08), 0 1px 2px rgba(20,20,23,.05); }
.wc-stat b{ font-size:1.75rem; line-height:2rem; font-weight:800; color:#141414; }
.wc-stat span{ font-size:0.8125rem; font-weight:600; color:#5f636b; text-align:center; }
.wc-stat.goal b{ color:#6c5ce7; }
.wc-titlerow{ display:flex; align-items:center; gap:14px; margin-top:6px; }
.wc-titlerow .wl-titleblock{ min-width:0; }
.wc-tile{ width:52px; height:52px; flex:none; }
.wc-stats{ margin-bottom:22px; align-items:flex-start; }
.wc-stat:nth-child(2){ transform:translateY(14px); }

/* Overload Tracker: cream dividers between name / equipment / graph */
.tk-head{ padding-bottom:16px; }
.tk-equip{ position:relative; padding:16px; }
.tk-equip::before, .tk-equip::after{ content:""; position:absolute; left:16px; right:16px; height:2px; background:var(--track); }
.tk-equip::before{ top:0; }
.tk-equip::after{ bottom:0; }
.tk-chart{ padding-top:18px; }

/* header back button: Dev File "Button" — 48px white circle, Icon/SmallChevronLeft, soft drop shadow */
.nav .icon-btn{ width:48px; height:48px; border:none; background:#fff; box-shadow:0 2px 7px rgba(0,0,0,.25); }
.nav{ min-height:66px; }
.wiz-header{ top:calc(var(--sb-h) + 66px); }

/* no press shrink / darken on cells (buttons still get the soft press) */
.cw-ex-row, .sess-exrow, .ex-row, .xd-eqrow, .wl-hist, .xd-act, .set-cell, .fl-row, .plan-dayrow, .swp-generic, .eqd-exrow, .wiz-eqrow, .wiz-card, .wiz-locard{ -webkit-tap-highlight-color:transparent; }
.device .cw-ex-row:active, .device .sess-exrow:active, .device .ex-row:active, .device .xd-eqrow:active, .device .wl-hist:active,
.device .xd-act:active, .device .set-cell:active, .device .fl-row:active, .device .plan-dayrow:active, .device .swp-generic:active,
.device .eqd-exrow:active, .device .wiz-eqrow:active, .device .wiz-card:active, .device .wiz-locard:active{ transform:none; background-color:transparent; }
.device .ex-row.picked:active{ background-color:#f4f2ff; }

/* pause sheet: simple list */
.pz-row{ text-align:left; }
.pz-text{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.pz-label{ font-size:1rem; font-weight:600; color:#141414; }
.pz-label.danger{ color:#cf2a0f; }
.pz-sub{ font-size:0.8125rem; font-weight:500; color:#5f636b; }

/* ---- no-photo placeholders: white icon on soft blue ---- */
.ph{ background:#7EA6D3 !important; display:flex; align-items:center; justify-content:center; color:#fff; }
.ph svg{ width:50%; height:50%; max-width:32px; max-height:32px; }
.ex-tile.ph svg{ width:58%; height:58%; }
.dimg.ph svg{ width:28px; height:28px; }

/* ---- "Exercise N of 7" rolling number ---- */
.sess-num{ position:relative; display:inline-flex; justify-content:center; min-width:1ch; overflow:visible; vertical-align:bottom; font-weight:700; }
.sess-num > span{ display:inline-block; }
.sess-num-ghost{ position:absolute; left:0; right:0; top:0; text-align:center; }

/* ---- set logger: number centered, unit hanging off its right side ---- */
.sw-val .sw-numwrap{ position:relative; display:inline-flex; align-items:baseline; }
.sw-val:has(.u) .sw-in, .sw-val .sw-in{ text-align:center; min-width:1ch; padding:0; }
.sw-val .sw-numwrap .u{ position:absolute; left:100%; bottom:.3em; margin-left:3px; }

/* ---- Overload Goal sheet: more room, label tucked against the weight box ---- */
.goal-sheet .sheet-head{ padding:16px 20px 4px; }
.goal-sheet .goal-card{ margin-top:16px; }
.goal-sheet .goal-wlabel{ font-size:0.8125rem; margin:28px 0 8px; }
.goal-sheet .sw-group{ padding-top:0; }
.goal-sheet .sheet-actions{ padding-top:32px; padding-bottom:28px; }
.sw-val:has(.u){ min-width:116px; }
@media (max-width:389px){ .device .sw-val:has(.u){ min-width:100px !important; } }

/* ---- footers: sticky to the bottom of the screen instead of absolutely positioned.
   Absolute footers inside the scrolling area jump to the top in iOS Safari while a page
   transition runs. Sticky stays put in every browser, animation or not. ---- */
.app > div:has(> .cw-footer, > .wiz-footer, > .sess-footer){ display:flex; flex-direction:column; min-height:100%; }
.cw-footer, .wiz-footer, .sess-footer{ position:sticky; left:auto; right:auto; bottom:0; margin-top:auto; flex:none; }
/* the space we used to reserve for the floating footer is no longer needed */
.wiz-body{ padding-bottom:32px; overflow:visible; }
.lu-screen.has-footer .cw-body, .cw-screen .cw-body{ padding-bottom:32px; }
.ex-screen.has-footer, .wc-screen{ padding-bottom:0; }
.sess-sets{ padding-bottom:24px; }
.sess-exlabel{ white-space:nowrap; }

/* goal prompt graphics */
.ug-graphic.raise .ug-kb.small{ left:0; top:24px; }
.ug-graphic.raise .ug-kb.big{ left:auto; right:0; top:0; }
.ug-graphic.raise .ug-arrow{ left:104px; }
.ug-graphic.one{ width:124px; }

/* header Create button: proper pill, same height as the back button */
.nav .nav-create{ height:48px; min-height:48px; padding:0 22px; border:none; background:#fff; box-shadow:0 2px 7px rgba(0,0,0,.25); font-size:1rem; font-weight:600; letter-spacing:0; white-space:nowrap; display:inline-flex; align-items:center; justify-content:center; }
.nav .nav-create.icon{ width:48px; padding:0; }

/* headers blend into white screens, and lift (shadow fades in) once you scroll */
.nav, .wiz-header{ transition:box-shadow .25s ease; }
.blend-top .nav, .blend-top .wiz-header{ box-shadow:0 2px 8px rgba(20,20,23,0); }
.blend-top.raised .nav:not(:has(+ .wiz-header)), .blend-top.raised .wiz-header{ box-shadow:var(--bar-shadow); }
.ga-picker{ display:flex; flex-direction:column; align-items:center; }
.ga-picker .goal-wlabel{ margin:4px 0 8px; font-size:0.8125rem; }
.ga-from{ margin-top:10px; font-size:0.9375rem; font-weight:500; color:#5f636b; }

/* ============================================================================
   Flat pass (inspired by the Happn screens): tinted near-white canvas, no raised
   chrome, soft square controls, big tight titles, color through pale tints.
   ============================================================================ */
:root{
  --bg:#f6f5fa;            /* near-white, tinted toward FailUp purple */
  --tint:#ecebf3;          /* soft control fill (buttons, steppers, tags) */
  --tint-2:#e3e1ee;        /* pressed / dividers */
  --purple-tint:#eeebfd;   /* pale purple */
  --track:var(--tint);
  --hair:var(--tint-2);
  --card-shadow:0 6px 24px rgba(40,30,90,.06);
}
body{ background:#e9e8ef; }

/* every screen sits on the tinted canvas */
.ex-screen, .eql-screen, .wiz-screen, .xd-screen, .swp-screen, .wc-screen, .hx-screen, .wl-screen, .cw-screen, .sess-screen, .tracker, .st-screen{ background:var(--bg) !important; }
.tk-hero{ background:transparent; }

/* headers: flat, same color as the page; a hairline appears only once you scroll */
.statusbar:has(+ .nav){ background:var(--bg); }
.nav{ background:var(--bg); box-shadow:none !important; transition:border-color .2s ease; border-bottom:1px solid transparent; }
.app:has(> div.raised) .nav, .raised .nav{ border-bottom-color:var(--tint-2); }
.nav .icon-btn{ width:44px; height:44px; border-radius:12px; background:var(--tint); box-shadow:none; }
.nav .nav-create{ height:44px; min-height:44px; border-radius:12px; background:var(--tint); box-shadow:none; padding:0 18px; }
.nav .nav-create.icon{ width:44px; }
.nav{ min-height:62px; }
/* wizard progress: a short bar centered in the header */
.wiz-header{ background:var(--bg); box-shadow:none !important; justify-content:center; padding:0 16px 12px; top:calc(var(--sb-h) + 62px); }
.wiz-progress{ flex:none; width:132px; gap:0; height:4px; border-radius:4px; overflow:hidden; background:var(--tint-2); }
.wiz-seg{ border-radius:0; height:4px; background:transparent; }
.wiz-seg.on{ background:#111; }
.wiz-count{ display:none; }

/* titles: big, heavy, tight */
.wl-title, .wiz-title, .eql-title, .tk-title{ font-size:2rem; line-height:2.25rem; font-weight:800; letter-spacing:-.03em; color:#111; }
.wl-help, .wiz-help, .eql-help{ font-size:1rem; line-height:1.4rem; color:#6b6a75; }
.wc-cheer{ font-size:2.125rem; line-height:2.4rem; font-weight:800; letter-spacing:-.03em; }
.lu-title{ font-size:1.625rem; line-height:1.9rem; font-weight:800; letter-spacing:-.025em; }
.hm-planname{ font-size:2rem; line-height:2.25rem; font-weight:800; letter-spacing:-.03em; }
.xd-name{ font-weight:800; letter-spacing:-.025em; }

/* cards: white, soft wide shadow, no borders */
.wcard, .cw-ex-card, .set-list, .xd-card, .card, .wc-card, .sess-excard, .wl-hist, .cw-empty, .swp-cta, .wc-stat, .plan-daycard, .plan-rcard, .cal-card, .wiz-eqcard, .tk-explain{ border:none !important; box-shadow:var(--card-shadow) !important; border-radius:20px; }
.set-list{ border-radius:16px; }

/* buttons: soft squares; primary = black rounded rectangle */
.wpill{ border-radius:12px; background:var(--tint); }
.wpill.dark{ background:#111; }
.cw-footer .btn, .sess-footer .btn, .wiz-footer .btn, .sheet-actions .btn{ border-radius:16px !important; height:56px; }
.btn.ghost{ background:var(--tint); border:none !important; }
.btn.ghost.warm{ background:#fff; box-shadow:inset 0 0 0 2px #111; }
.sw-adj{ border-radius:12px !important; background:var(--tint) !important; }
.cw-st-btn{ border-radius:12px; background:#fff; }
.cw-stepper .cw-st-row{ background:var(--tint); }
.cw-act{ border-radius:12px; background:var(--tint); }
.cw-edit, .xd-add, .lu-locpill, .sess-dpill, .pill-btn, .tk-sortbtn, .cw-eq-swap, .wcard-kebab, .hm-kebab{ border-radius:12px !important; background:var(--tint) !important; box-shadow:none !important; border:none !important; }
.device .cw-eq .cw-eq-swap{ background:transparent !important; }
.ug-btn{ border:none; background:var(--tint); }
.ug-btn.dark{ background:#111; }
.home-cta{ border-radius:16px; box-shadow:none; }
.wc-more, .wc-share, .cw-add{ border-radius:16px; }
.chip-drop, .qchip{ border-radius:12px; background:var(--tint); border:none; }
.tk-seg{ background:var(--tint); border-radius:14px; }
.tk-seg button{ border-radius:10px; }
.ex-search{ background:#fff; border:none; box-shadow:var(--card-shadow); border-radius:14px; }

/* workout color as a pale tint behind its icon (and the exercise badges) */
.tint{ background:color-mix(in srgb, var(--wc) 16%, #fff) !important; color:var(--wc) !important; border-radius:14px !important; }
.cw-badge{ border:none !important; border-radius:12px !important; background:color-mix(in srgb, var(--cw-current,#4573A8) 16%, #fff) !important; color:#111; }
.sess-exbadge{ border:none !important; border-radius:12px !important; background:color-mix(in srgb, var(--sess-color,#cf2a0f) 16%, #fff) !important; color:#111 !important; }

/* tags: pale fills; F stays strong purple */
.set-tag{ border:none !important; background:var(--purple-tint) !important; color:#4b3fc0 !important; border-radius:8px; }
.set-tag.fail{ background:#6c5ce7 !important; color:#fff !important; }
.mus, .ex-row .ex-sub .mus, .goal-exmeta .mus, .xd-kv .mus{ color:#45434f !important; background:var(--tint); padding:1px 6px; border-radius:6px; font-weight:600; }
.sess-exmuscle{ display:inline-block !important; color:#45434f !important; background:var(--tint); padding:1px 7px; border-radius:6px; margin:3px 0 2px; font-weight:600; }
.xd-tag{ background:var(--tint); }

/* Workout Complete: pale tints for the stats; solid purple stays for the goal moment */
.wc-stat{ box-shadow:none !important; background:#fff; }
.wc-stat.goal{ background:var(--purple-tint); }
.wc-band:not(.hit){ background:var(--tint); }

/* one decorative touch: a thin climbing line behind empty states */
.mg-empty, .cw-empty, .ex-empty{ position:relative; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120' preserveAspectRatio='none'%3E%3Cpath d='M-10 110 C60 112 90 96 130 88 S190 92 220 70 S280 40 310 46 S370 20 410 6' fill='none' stroke='%23d9d4f7' stroke-width='2'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:center bottom; background-size:100% 70%; }
.tk-chart{ background-image:none; }

/* sheets: larger top radius, tinted grab bar */
.sheet{ border-radius:28px 28px 0 0; }
.sheet-grab{ background:var(--tint-2); }
.sess-screen > .statusbar, .sess-widget, .tk-legend{ background:transparent !important; }
.sess-footer{ background:var(--bg) !important; }
.sess-widget{ box-shadow:none !important; }
.cw-footer, .wiz-footer{ background:var(--bg) !important; }
.wiz-footer .btn.ghost, .cw-footer .btn.ghost{ background:var(--tint) !important; border:none !important; color:#111; }

/* workout icons: solid workout color with a white icon again */
.tint{ background:var(--wc) !important; color:#fff !important; }
/* set number tiles: corner radius concentric with the 16px set card (16 - 8px inset) */
.set-badge{ border-radius:8px !important; }

/* muscle tags: pale workout color, darker workout color text */
.cw-screen{ --wc:var(--cw-current); }
.sess-screen{ --wc:var(--sess-color); }
.mtag{ display:inline-block; align-self:flex-start; width:max-content; padding:2px 8px; border-radius:6px; background:color-mix(in srgb, var(--wc, #6c5ce7) 16%, #fff); color:color-mix(in srgb, var(--wc, #6c5ce7) 72%, #000); font-size:0.75rem; line-height:1rem; font-weight:700; letter-spacing:.01em; }
.cw-ex-meta .mtag, .sess-exmeta .mtag{ margin-bottom:3px; }
.cw-ex-meta, .sess-exmeta{ display:flex; flex-direction:column; align-items:flex-start; }
.mtags{ display:flex; flex-wrap:wrap; gap:4px; margin:4px 0 3px; }
.wc-card .cw-badge{ --cw-current:var(--wc); }

/* numbered exercise tiles: pale fill with a 2px outline in the full workout color */
.cw-badge{ box-shadow:inset 0 0 0 2px var(--cw-current,#4573A8) !important; }
.sess-exbadge{ box-shadow:inset 0 0 0 2px var(--sess-color,#cf2a0f) !important; }

/* muscle tag leads the equipment line */
.cw-ex-sub, .sess-exsub{ display:flex; align-items:center; flex-wrap:wrap; gap:0 6px; }
.cw-ex-sub .mtag, .sess-exsub .mtag{ margin:0; }
.sess-exsub{ margin-top:4px; }

/* "Where is this Workout?" as a white card */
.lu-loc{ background:#fff; border-radius:20px; box-shadow:var(--card-shadow); padding:14px 14px 14px 16px; margin-top:16px; }

/* sets / reps steppers: the tinted pill hugs − value + */
.cw-steppers{ gap:24px; }
.cw-stepper{ flex:none; }
.cw-st-row, .cw-stepper .cw-st-row{ display:inline-flex; width:auto; height:auto; gap:2px; padding:4px; border-radius:16px; justify-content:flex-start; }
.cw-st-btn{ width:40px; height:40px; border-radius:12px; }
.cw-st-val{ flex:none; min-width:44px; padding:0 2px; }
.cw-st-row.ro{ width:auto; padding:4px 14px; }

/* expanded exercise: more room between groups and buttons */
.cw-detail-main{ gap:20px; padding-top:8px; padding-bottom:22px; margin-bottom:20px; }
.cw-actions{ gap:10px; padding:0 16px 4px; }
.cw-ex-detail{ padding-bottom:18px; }

/* start / finish surge */
.surge{ position:absolute; inset:0; z-index:60; overflow:hidden; pointer-events:all; }
.surge-band{ position:absolute; top:-10%; bottom:-10%; left:-45%; right:-45%; will-change:transform; }
.surge-band.purple{ background:#6c5ce7; }
.surge-icon{ position:absolute; left:50%; top:50%; width:150px; height:150px; color:#fff; display:flex; align-items:center; justify-content:center; will-change:transform, opacity; }
.surge-icon svg{ width:150px; height:150px; }
.sess-exsub .mtag, .cw-ex-sub .mtag{ margin-right:8px !important; }

/* ---- consistency pass: no red selection states, one secondary button, tidy leftovers ---- */
/* 1. selected = black (red stays for delete/danger only) */
.eqd-unit{ background:var(--tint) !important; color:#111 !important; }
.eqd-unit.on, .unit-pill.on{ background:#111 !important; color:#fff !important; }
.xd-addphoto, label.xd-addphoto, .wiz-imgcard .imgbtn{ background:#111 !important; color:#fff !important; }
.chip-drop.active{ background:#111 !important; border-color:#111 !important; color:#fff !important; }
.chip-active{ background:#111 !important; color:#fff !important; }
.fl-check.on, .wiz-check.on, .wiz-check.red.on{ background:#111 !important; border-color:#111 !important; }
.wiz-card.on{ border-color:#111 !important; }
.filter-title{ color:#111 !important; }
/* 2. muscle tag in library rows: same tag + gap as the workout widgets, no dot */
.ex-row .ex-sub .mus, .goal-exmeta .mus{ display:inline-block; vertical-align:1px; padding:2px 8px !important; margin-right:8px; font-size:0.75rem; line-height:1rem; font-weight:700 !important; }
/* 3. one secondary button: lavender gray, no outline */
.pk-btn, .ug-btn, .btn.ghost, .btn.ghost.warm{ height:56px; border-radius:16px !important; }
.pk-btn:not(.dark), .ug-btn:not(.dark):not(.danger), .btn.ghost, .btn.ghost.warm{ background:var(--tint) !important; border:none !important; box-shadow:none !important; color:#111; }
.ug-btn.danger-ghost{ color:#cf2a0f; }
.pk-btn.dark{ border:none; }
/* 4. empty states: no decorative line */
.mg-empty, .cw-empty, .ex-empty{ background-image:none !important; }
/* 5. exercise / equipment detail: header row left-aligned, square back button like every other header */
.xd-hrow{ flex-direction:row !important; align-items:center; }
.xd-hrow > :first-child{ flex:1; min-width:0; }
.xd-back{ width:44px !important; height:44px !important; border-radius:12px !important; border:none !important; background:var(--tint) !important; box-shadow:none !important; }
.xd-hero:has(.xd-heroimg) .xd-back{ background:#fff !important; box-shadow:0 2px 10px rgba(0,0,0,.15) !important; }
/* 6. settings cards: card-title size, a little more air */
.st-screen .xd-card{ padding:20px !important; gap:16px !important; }
.st-screen .xd-h{ font-size:1.0625rem; line-height:1.375rem; font-weight:700; }
.st-screen .xd-sub{ font-size:0.9375rem; line-height:1.25rem; margin-top:2px; }
.st-screen .st-stats{ font-size:0.9375rem; line-height:1.25rem; }
.st-screen .xd-hgroup{ padding-left:0 !important; }

/* ---- display titles: Archivo ---- */
.sheet-title, .filter-title, .ug-title, .vs-title{ font-family:var(--sans) !important; font-weight:800 !important; font-size:1.75rem !important; line-height:2.125rem !important; letter-spacing:-0.03em !important; text-transform:none !important; white-space:normal !important; }
.home-logo{ font-family:var(--sans) !important; font-weight:800; font-size:2rem !important; line-height:2.5rem !important; letter-spacing:-0.04em; }
.home-headline{ font-family:var(--sans) !important; font-weight:800; letter-spacing:-0.03em; }

/* ---- exercise filters: active filters get their own row ---- */
.ex-filters{ padding-bottom:0 !important; }
.ex-chips{ display:flex; flex-wrap:wrap; gap:8px; padding:10px 16px 0; }
.ex-chips .chip-active{ height:32px; padding:0 8px 0 12px; }
.ex-hint{ display:none !important; }

/* ---- home: the photo + quote fill whatever the black panel leaves; cards live in the panel ---- */
.home, .home.withplan{ height:auto !important; min-height:852px; overflow:visible; }
.home-center{ min-height:300px; padding:132px 16px 0 !important; justify-content:center; align-items:center; overflow:hidden; z-index:1; }
.home-center .home-hero{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 35%; z-index:-1; }
.home-center::after{ content:''; position:absolute; left:0; right:0; bottom:0; height:56px; background:linear-gradient(to bottom, rgba(17,17,17,0), #111); z-index:-1; pointer-events:none; }
.home-center .home-quote{ padding:24px 0; }
.home-panel .hm-label{ color:#9fa2a8; margin:0 0 -6px; text-shadow:none; }
.home-panel .wcard{ box-shadow:none; }
@media (max-width:440px){ .home, .home.withplan{ min-height:100%; } }
@media (max-width:440px){ .home-center{ padding-top:calc(max(env(safe-area-inset-top), 12px) + 78px) !important; } }
@media (max-width:440px){ .home:not(.withplan), .home.withplan{ min-height:100% !important; } }
.home-center{ min-height:340px; }

/* ---- library photos ---- */
.ex-tile{ position:relative; overflow:hidden; }
.ex-tile.photo img, .sess-drow .dimg.photo img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; background:#fff; }
.sess-drow .dimg{ position:relative; }
.xd-heroimg{ background:#fff; }
.xd-howto{ padding:20px 16px; display:flex; flex-direction:column; gap:12px; }
.xd-howto .xd-hgroup{ padding-left:0; }
.xd-steps{ margin:0; padding:0; list-style:none; counter-reset:st; display:flex; flex-direction:column; gap:12px; }
.xd-steps li{ counter-increment:st; position:relative; padding-left:36px; font-size:0.9375rem; line-height:1.375rem; color:#2b2a33; }
.xd-steps li::before{ content:counter(st); position:absolute; left:0; top:0; width:24px; height:24px; border-radius:8px; background:var(--tint); color:#111; font-size:0.8125rem; font-weight:700; display:flex; align-items:center; justify-content:center; }
.cw-photo{ height:180px; border-radius:14px; overflow:hidden; background:var(--tint); }
.cw-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.cw-photo{ margin:0 16px; border-radius:12px; height:172px; }

/* ---- set logger header + goal callout ---- */
.sw-label{ display:none; }
.sw-head{ padding:10px 20px 0; display:flex; flex-direction:column; gap:2px; }
.sw-title{ font-size:2rem; line-height:2.25rem; font-weight:800; letter-spacing:-0.035em; color:#111; display:flex; align-items:baseline; gap:8px; }
.sw-of{ font-size:1rem; line-height:1.25rem; font-weight:600; letter-spacing:-0.01em; color:#8a8895; }
.sw-exname{ font-size:0.9375rem; line-height:1.25rem; font-weight:500; color:var(--sec); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sw-hint{ margin:14px 20px 4px !important; padding:12px 14px !important; border:none !important; border-radius:14px !important; background:var(--purple-tint) !important; color:#3d2fb0 !important; display:flex; align-items:center; gap:12px; font-weight:400 !important; }
.sw-hint-ic{ width:36px; height:36px; flex:none; border-radius:10px; background:#fff; color:#6c5ce7; display:flex; align-items:center; justify-content:center; }
.sw-hint-text{ display:flex; flex-direction:column; gap:1px; min-width:0; }
.sw-hint-title{ font-size:1.0625rem; line-height:1.375rem; font-weight:800; letter-spacing:-0.02em; color:#2a1f8f; }
.sw-hint-sub{ font-size:0.8125rem; line-height:1.125rem; font-weight:500; color:#5a4fc4; }
.sw-hint.goal{ background:#6c5ce7 !important; color:#fff !important; box-shadow:0 8px 20px rgba(108,92,231,.28); }
.sw-hint.goal .sw-hint-ic{ background:rgba(255,255,255,.18); color:#fff; }
.sw-hint.goal .sw-hint-title{ color:#fff; font-size:1.25rem; line-height:1.5rem; }
.sw-hint.goal .sw-hint-sub{ color:rgba(255,255,255,.82); }

/* ---- press feedback: a quick light-purple flash ---- */
@keyframes pressFlash{ from{ box-shadow:inset 0 0 0 999px rgba(108,92,231,.22); } to{ box-shadow:inset 0 0 0 999px rgba(108,92,231,0); } }
@keyframes pressFlashDark{ from{ box-shadow:inset 0 0 0 999px rgba(170,158,255,.45); } to{ box-shadow:inset 0 0 0 999px rgba(170,158,255,0); } }
.flash{ animation:pressFlash .42s ease-out; }
.flash.flash-dark{ animation:pressFlashDark .42s ease-out; }
@media (prefers-reduced-motion: reduce){ .flash, .flash.flash-dark{ animation-duration:.2s; } }

/* ---- set logger: outlined goal callout, calmer slider number ---- */
.sw-hint, .sw-hint.goal{ background:#fff !important; box-shadow:none !important; border:1.5px solid #cfc8fb !important; color:#3d2fb0 !important; }
.sw-hint.goal{ border:2px solid #6c5ce7 !important; }
.sw-hint .sw-hint-ic, .sw-hint.goal .sw-hint-ic{ background:var(--purple-tint); color:#6c5ce7; }
.sw-hint.goal .sw-hint-title{ color:#2a1f8f; font-size:1.125rem; line-height:1.375rem; }
.sw-hint.goal .sw-hint-sub{ color:#5a4fc4; }
.ff-num{ font-weight:500 !important; font-size:1.25rem !important; }
.sw-feelwrap .sw-glabel{ margin-bottom:10px; }

/* ---- live workout: exercise cards slide sideways ---- */
.sess-widget{ position:relative; }
.sess-screen{ overflow-x:clip; }

/* ---- tracker: goal-set ring in the legend, range control with no inset ---- */
.tk-legend .lg .swatch-ring{ width:10px; height:10px; border-radius:50%; background:#fff; box-shadow:inset 0 0 0 2.5px var(--purple); flex:none; }
.tk-seg{ height:44px !important; padding:0 !important; gap:0 !important; border-radius:12px !important; overflow:hidden; align-items:stretch; }
.tk-seg button{ height:100% !important; min-height:0 !important; border-radius:12px !important; }
.tk-legend{ gap:10px 16px !important; flex-wrap:wrap; }

/* ---- equipment swap sheet ---- */
.swp-sheet{ max-height:88vh; display:flex; flex-direction:column; }
.swp-sheethead{ padding:8px 20px 6px; display:flex; flex-direction:column; gap:4px; }
.swp-sheetbody{ overflow-y:auto; padding:0 0 8px; flex:1; min-height:0; }
.swp-sechdr{ padding:16px 20px 6px; font-size:0.8125rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:#8a8895; }
.swp-row{ width:100%; padding-left:20px !important; padding-right:20px !important; }
.swp-row.on{ background:var(--purple-tint); }
.swp-row.on .xd-eqname{ color:#2a1f8f; }
.swp-tick{ width:28px; height:28px; border-radius:50%; background:#6c5ce7; display:flex; align-items:center; justify-content:center; flex:none; }
.swp-tick svg{ width:14px; height:14px; }
.swp-addic{ background:var(--tint) !important; color:#111; display:flex; align-items:center; justify-content:center; }
.swp-sheetfoot{ padding:12px 20px 20px; border-top:1px solid #efeef4; }
.swp-sheetfoot .ug-btn{ display:flex; align-items:center; justify-content:center; gap:6px; }
.swp-row{ height:76px !important; padding-top:10px !important; padding-bottom:10px !important; }
.swp-row .xd-eqimg{ width:52px !important; height:52px !important; border-radius:10px !important; }

/* ---- workout complete: new goals ---- */
.wc-newgoals{ margin:0 0 16px; background:#fff; border-radius:20px; box-shadow:inset 0 0 0 2px #6c5ce7, var(--card-shadow); padding:16px; display:flex; flex-direction:column; }
.wc-ng-head{ display:flex; align-items:center; gap:12px; padding-bottom:12px; }
.wc-ng-head > span:last-child{ display:flex; flex-direction:column; }
.wc-ng-ic{ width:40px; height:40px; border-radius:12px; background:var(--purple-tint); color:#6c5ce7; display:flex; align-items:center; justify-content:center; flex:none; }
.wc-ng-ic svg path, .wc-ng-ic svg rect{ stroke:#6c5ce7; }
.wc-ng-title{ font-size:1.125rem; line-height:1.375rem; font-weight:800; letter-spacing:-0.02em; color:#111; }
.wc-ng-sub{ font-size:0.9375rem; line-height:1.125rem; color:var(--sec); }
.wc-ng-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; border-top:1px solid #efeef4; }
.wc-ng-text{ display:flex; flex-direction:column; min-width:0; }
.wc-ng-name{ font-size:1rem; line-height:1.25rem; font-weight:700; color:#111; }
.wc-ng-meta{ font-size:0.9375rem; line-height:1.125rem; color:var(--sec); }
.wc-ng-w{ font-size:1.125rem; font-weight:800; color:#6c5ce7; white-space:nowrap; display:flex; align-items:baseline; gap:8px; }
.wc-ng-w s{ font-size:0.9375rem; font-weight:600; color:#a3a1ad; }

/* ---- goal prompts without the kettlebell graphic ---- */
.ug-summary{ margin-top:4px; padding:18px 16px; border-radius:16px; background:var(--purple-tint); font-size:1.25rem; line-height:1.5rem; font-weight:800; letter-spacing:-0.01em; }
.ug-summary s{ color:#9b97ad; font-weight:600; font-size:1rem; margin-right:2px; }

/* ---- All Equipment: plain list with quick-swap checkboxes ---- */
.ae-help{ padding:4px 16px 4px; font-size:0.9375rem; line-height:1.375rem; color:var(--sec); }
.ae-hdr{ padding:20px 16px 8px; font-size:0.8125rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:#8a8895; }
.ae-list{ background:#fff; }
.ae-row{ display:flex; align-items:center; border-bottom:1px solid #efeef4; }
.ae-row:last-child{ border-bottom:none; }
.ae-row.cur{ background:var(--purple-tint); }
.ae-row .xd-eqsub b{ color:#6c5ce7; font-weight:700; }
.ae-main{ flex:1; min-width:0; display:flex; align-items:center; gap:12px; padding:10px 0 10px 16px; text-align:left; min-height:72px; }
.ae-main .xd-eqimg{ width:52px; height:52px; border-radius:10px; }
.ae-check{ width:60px; align-self:stretch; display:flex; align-items:center; justify-content:center; flex:none; }
.ae-check .fl-check{ width:26px; height:26px; border-radius:8px; border:2px solid #c9c7d3; display:flex; align-items:center; justify-content:center; background:#fff; }
.ae-check .fl-check.on{ background:#111; border-color:#111; }
.ae-empty{ width:100%; display:flex; align-items:center; gap:10px; padding:20px 16px; font-weight:600; color:#111; }
.ug-body{ gap:24px !important; }

/* ---- live workout: bigger exercise name; number box lines up with its top ---- */
.sess-exrow{ align-items:flex-start !important; padding:18px 16px 16px !important; gap:14px !important; }
.sess-exrow .sess-exname{ font-size:1.75rem !important; line-height:2rem !important; font-weight:800 !important; letter-spacing:-0.035em !important; margin-bottom:6px; }
.sess-exrow .sess-exbadge{ margin-top:4px; }
.sess-exrow .sess-excaret{ margin-top:6px; }

/* ---- live workout name: tighter to its tags; shrink, then truncate, to stay on two lines ---- */
.sess-exrow .sess-exname{ margin-bottom:2px !important; }
.sess-exrow .sess-exmeta .mtag{ margin-bottom:0 !important; }
.sess-exrow .sess-exname.fit-sm{ font-size:1.375rem !important; line-height:1.625rem !important; letter-spacing:-0.03em !important; }
.sess-exrow .sess-exname.fit-clamp{ display:-webkit-box !important; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; }
.sess-exrow .sess-exsub{ margin-top:2px; }

/* ======================= Home (modular) ======================= */
.hm2{ min-height:100%; background:var(--bg); padding-bottom:calc(env(safe-area-inset-bottom) + 32px); --hp:#6C5CE7; --hy:#FFC83D; }
.hm2-head{ position:sticky; top:0; z-index:20; background:var(--hp); color:#fff; }
.hm2-head .statusbar{ background:transparent; color:#fff; }
.hm2-bar{ height:60px; display:flex; align-items:center; justify-content:space-between; padding:0 16px 0 20px; }
.hm2-logo{ font-size:1.75rem; line-height:2rem; font-weight:800; letter-spacing:-0.045em; color:#fff; }
.hm2-icons{ display:flex; align-items:center; }
.hm2-ibtn{ width:44px; height:44px; border-radius:12px; background:rgba(255,255,255,.16); color:#fff; display:flex; align-items:center; justify-content:center; margin-left:8px; flex:none; }
.hm2-ibtn svg [fill]:not([fill="none"]){ fill:currentColor; }
.hm2-ibtn svg [stroke]:not([stroke="none"]){ stroke:currentColor; }
.hm2-ibtn.mini{ width:0; margin-left:0; opacity:0; transform:scale(.6); pointer-events:none; overflow:hidden;
  transition:width .28s cubic-bezier(.2,.8,.2,1), margin .28s cubic-bezier(.2,.8,.2,1), opacity .2s ease, transform .28s cubic-bezier(.2,.8,.2,1); }
.hm2.icons-up .hm2-ibtn.mini{ width:44px; margin-left:8px; opacity:1; transform:none; pointer-events:auto; }

.hm2-primary{ padding:4px 16px 0; background:linear-gradient(var(--hp), var(--hp)) top / 100% 132px no-repeat; display:flex; flex-direction:column; gap:12px; }
.hm2-hello{ color:#fff; font-size:1.75rem; line-height:2.125rem; font-weight:800; letter-spacing:-0.035em; padding:6px 4px 10px; display:flex; flex-direction:column; }
.hm2-hello span{ font-size:0.9375rem; line-height:1.25rem; font-weight:600; letter-spacing:0; opacity:.78; }
.hm2-label{ font-size:0.8125rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:#8a8895; margin:0 4px -4px; }
.hm2-label.light{ color:rgba(255,255,255,.85); }
.hm2-primary > .wcard{ border-radius:20px; padding:18px; }
.hm2-card{ background:#fff; border-radius:20px; box-shadow:var(--card-shadow); padding:20px; }
.hm2-btn{ height:56px; border-radius:16px; background:var(--tint); color:#111; display:flex; align-items:center; justify-content:center; gap:8px; font-size:1rem; font-weight:700; width:100%; }
.hm2-btn.dark{ background:#111; color:#fff; }
.hm2-btn.dark svg [fill]:not([fill="none"]){ fill:#fff; }
.hm2-btn.dark svg [stroke]:not([stroke="none"]){ stroke:#fff; }
.hm2-quick{ height:56px; border-radius:16px; background:var(--hy); color:#111; display:flex; align-items:center; justify-content:center; gap:8px; font-size:1rem; font-weight:700; width:100%; }
/* plan */
.hm2-plan{ padding:18px; }
.hm2-planhead{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.hm2-planname{ font-size:1.375rem; line-height:1.75rem; font-weight:800; letter-spacing:-0.03em; color:#111; }
.hm2-planmeta{ font-size:0.9375rem; line-height:1.25rem; color:var(--sec); margin-top:2px; }
.hm2-kebab{ width:44px; height:44px; border-radius:12px; background:var(--tint); display:flex; align-items:center; justify-content:center; flex:none; margin:-4px -4px 0 0; }
.hm2-today{ margin:18px 0 8px; font-size:0.8125rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:#8a8895; }
.hm2-plan .wcard{ box-shadow:none !important; background:var(--bg); border-radius:16px; padding:16px; }
/* get started */
.hm2-starttitle{ font-size:1.5rem; line-height:1.875rem; font-weight:800; letter-spacing:-0.035em; color:#111; }
.hm2-starttext{ font-size:0.9375rem; line-height:1.375rem; color:var(--sec); margin-top:6px; }
.hm2-startbtns{ display:flex; flex-direction:column; gap:10px; margin-top:20px; }

/* library buttons */
.hm2-nav{ display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; padding:16px 16px 0; }
.hm2-navbtn{ background:#fff; border-radius:18px; box-shadow:var(--card-shadow); height:92px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; font-size:0.9375rem; font-weight:700; color:#111; }
.hm2-navbtn svg{ width:28px; height:28px; }

/* sections + horizontal rails */
.hm2-sec{ padding-top:32px; }
.hm2-sechead{ display:flex; align-items:center; justify-content:space-between; padding:0 20px 12px; }
.hm2-sechead h2{ margin:0; font-size:1.375rem; line-height:1.75rem; font-weight:800; letter-spacing:-0.03em; color:#111; }
.hm2-seeall{ height:36px; padding:0 14px; border-radius:999px; background:var(--purple-tint); color:#4a3cc9; font-size:0.9375rem; font-weight:700; }
.hm2-rail{ display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x mandatory; padding:4px 16px 20px; scroll-padding:0 16px; scrollbar-width:none; overscroll-behavior-x:contain; }
.hm2-rail::-webkit-scrollbar{ display:none; }
.hm2-rail > *{ scroll-snap-align:start; flex:none; }
.hm2-sec > .hm2-card{ margin:0 16px; }
/* how it works cards */
.hm2-how, .hm2-maker{ width:calc(100% - 40px); height:420px; border-radius:24px; overflow:hidden; position:relative; }
.hm2-how{ display:block; padding:0; text-align:left; background:#111; }
.hm2-how img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 30%; }
.hm2-how::after{ content:''; position:absolute; inset:0; background:linear-gradient(180deg, rgba(20,16,50,0) 35%, rgba(20,16,50,.82) 100%); }
.hm2-howtext{ position:absolute; left:22px; right:70px; bottom:24px; z-index:1; display:flex; flex-direction:column; gap:6px; color:#fff; }
.hm2-howtitle{ font-size:2rem; line-height:2.25rem; font-weight:800; letter-spacing:-0.04em; }
.hm2-howsub{ font-size:0.9375rem; line-height:1.375rem; opacity:.88; }
.hm2-howarrow{ position:absolute; right:20px; bottom:24px; z-index:1; color:#fff; opacity:.5; }
.hm2-maker{ background:var(--hp); color:#fff; padding:28px 24px; display:flex; flex-direction:column; justify-content:flex-end; gap:12px;
  background-image:radial-gradient(circle at 85% 12%, rgba(255,255,255,.18) 0 70px, transparent 71px), radial-gradient(circle at 100% 0%, rgba(255,200,61,.9) 0 34px, transparent 35px); }
.hm2-makeric{ width:48px; height:48px; border-radius:14px; background:rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center; margin-bottom:auto; }
.hm2-makertitle{ font-size:1.75rem; line-height:2.125rem; font-weight:800; letter-spacing:-0.04em; }
.hm2-makertext{ font-size:0.9375rem; line-height:1.375rem; opacity:.9; }
.hm2-makerbtn{ margin-top:8px; min-height:52px; border-radius:16px; background:#fff; color:#2a1f8f; display:flex; align-items:center; justify-content:center; text-align:center; padding:8px 16px; font-size:0.9375rem; font-weight:700; text-decoration:none; }
/* goal cards */
.hg-card{ width:268px; background:#fff; border-radius:20px; box-shadow:var(--card-shadow); padding:16px; display:flex; flex-direction:column; gap:10px; text-align:left; }
.hg-top{ display:flex; flex-direction:column; min-width:0; }
.hg-name{ font-size:1.0625rem; line-height:1.375rem; font-weight:800; letter-spacing:-0.02em; color:#111; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hg-sub{ font-size:0.8125rem; line-height:1.125rem; color:var(--sec); }
.hg-spark{ width:100%; height:76px; display:block; }
.hg-foot{ display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
.hg-w{ font-size:1.375rem; font-weight:800; letter-spacing:-0.02em; color:var(--hp); }
.hg-meta{ font-size:0.8125rem; color:var(--sec); white-space:nowrap; }
.hm2-nogoalstitle{ font-size:1.125rem; font-weight:800; color:#111; }
.hm2-nogoalstext{ font-size:0.9375rem; line-height:1.375rem; color:var(--sec); margin-top:4px; }
/* share */
.hm2-share{ display:flex; flex-direction:column; gap:18px; }
.hm2-sharetop{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.hm2-sharetitle{ font-size:1.375rem; line-height:1.75rem; font-weight:800; letter-spacing:-0.03em; color:#111; }
.hm2-sharetext{ font-size:0.9375rem; line-height:1.375rem; color:var(--sec); margin-top:4px; }
.hm2-shareic{ width:60px; height:60px; border-radius:16px; background:var(--hy); color:#111; display:flex; align-items:center; justify-content:center; flex:none; }

/* ======================= How FailUp Works ======================= */
.hw-screen{ min-height:100%; background:var(--bg); padding-bottom:calc(env(safe-area-inset-bottom) + 32px); }
.hw-hero{ margin:8px 16px 8px; padding:28px 24px; border-radius:24px; background:#6C5CE7; color:#fff; }
.hw-kicker{ font-size:0.8125rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; opacity:.8; }
.hw-big{ margin-top:10px; font-size:2.5rem; line-height:2.625rem; font-weight:800; letter-spacing:-0.045em; }
.hw-big span{ color:#FFC83D; }
.hw-sec{ padding:28px 24px 0; }
.hw-num{ width:32px; height:32px; border-radius:10px; background:var(--purple-tint); color:#4a3cc9; font-weight:800; display:flex; align-items:center; justify-content:center; font-size:0.9375rem; }
.hw-h{ margin:12px 0 0; font-size:0.9375rem; line-height:1.25rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:#8a8895; }
.hw-lead{ margin:4px 0 0; font-size:1.625rem; line-height:2rem; letter-spacing:-0.035em; color:#111; }
.hw-lead b{ font-weight:800; }
.hw-p{ margin:12px 0 0; font-size:1rem; line-height:1.5rem; color:#3b3a44; }
.hw-pull{ margin-top:16px; padding:14px 16px; border-left:4px solid #6C5CE7; border-radius:4px 14px 14px 4px; background:#fff; font-size:1.0625rem; line-height:1.5rem; font-weight:700; color:#2a1f8f; }
.hw-list{ list-style:none; margin:16px 16px 0; padding:4px 0; background:#fff; border-radius:20px; box-shadow:var(--card-shadow); }
.hw-list li{ position:relative; padding:14px 18px 14px 50px; font-size:0.9375rem; line-height:1.375rem; color:#3b3a44; border-bottom:1px solid #efeef4; }
.hw-list li:last-child{ border-bottom:none; }
.hw-list li::before{ content:''; position:absolute; left:18px; top:17px; width:16px; height:16px; border-radius:50%; background:#6C5CE7; box-shadow:0 0 0 4px var(--purple-tint); }
.hw-list b{ color:#111; display:block; font-size:1rem; }
.hw-end{ padding:28px 16px 0; }

/* ======================= Overload Goals (see all) ======================= */
.gl-screen{ min-height:100%; background:var(--bg); padding-bottom:calc(env(safe-area-inset-bottom) + 24px); }
.gl-search{ margin:8px 16px 12px; height:48px; border-radius:14px; background:#fff; box-shadow:var(--card-shadow); display:flex; align-items:center; gap:8px; padding:0 14px; }
.gl-search input{ flex:1; border:none; outline:none; background:transparent; font:inherit; font-size:1rem; color:#111; min-width:0; }
.gl-list{ margin:0 16px; background:#fff; border-radius:20px; box-shadow:var(--card-shadow); overflow:hidden; }
.gl-row{ width:100%; display:flex; align-items:center; gap:12px; padding:14px 12px 14px 16px; border-bottom:1px solid #efeef4; text-align:left; }
.gl-row:last-of-type{ border-bottom:none; }
.gl-row[hidden], .gl-none[hidden]{ display:none; }
.gl-text{ flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.gl-name{ font-size:1rem; line-height:1.25rem; font-weight:700; color:#111; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gl-sub{ font-size:0.8125rem; line-height:1.125rem; color:var(--sec); display:flex; align-items:center; }
.gl-tag{ --wc:#8a8895; margin-right:8px; }
.gl-w{ font-size:1.0625rem; font-weight:800; color:#6C5CE7; white-space:nowrap; }
.gl-none{ padding:24px 16px; text-align:center; color:var(--sec); }
.hm2-seeall{ white-space:nowrap; flex:none; }
.hm2-sechead{ gap:12px; }
.hm2-sechead h2{ font-size:1.25rem; line-height:1.625rem; }
.hw-herosub{ margin-top:14px; font-size:1rem; line-height:1.5rem; opacity:.9; }

/* ---- home header gradient; band under it is the bottom color ---- */
.hm2-head{ background:linear-gradient(160deg, #4636c9 0%, #5b4ad9 55%, #6C5CE7 100%); }
.hm2-primary{ padding-top:8px; background:linear-gradient(#6C5CE7, #6C5CE7) top / 100% 72px no-repeat; }

/* ---- How it works: steps with visual aids ---- */
.hw-steps{ margin:16px 16px 0; display:flex; flex-direction:column; gap:12px; }
.hw-step{ background:#fff; border-radius:20px; box-shadow:var(--card-shadow); padding:18px; }
.hw-steptitle{ font-size:1.125rem; line-height:1.375rem; font-weight:800; letter-spacing:-0.02em; color:#111; }
.hw-steptext{ margin-top:4px; font-size:0.9375rem; line-height:1.375rem; color:#4d4c57; }
.hw-vis{ margin-top:14px; padding:14px; border-radius:16px; background:var(--bg); }
/* rpe demo */
.hv-rpe-demo{ margin-top:14px; }
.hv-rpe-box{ position:relative; min-height:72px; padding:12px 14px; border-radius:14px; background:var(--c); color:#fff; display:flex; flex-direction:column; gap:2px; transition:background-color .2s ease; margin-bottom:14px; }
.hv-rpe-box.dark{ color:#2a1f8f; }
.hv-rpe-box b{ font-size:1.25rem; line-height:1.5rem; font-weight:800; letter-spacing:-0.02em; }
.hv-rpe-box span{ font-size:0.9375rem; line-height:1.25rem; font-weight:500; }
.hv-rpe-box::after{ content:''; position:absolute; bottom:-7px; left:clamp(14px, calc(var(--p) - 7px), calc(100% - 28px)); width:14px; height:14px; background:var(--c); transform:rotate(45deg); border-radius:2px; transition:left .15s ease, background-color .2s ease; }
.hv-rpe-bar{ position:relative; height:48px; border-radius:999px; overflow:hidden; display:flex; }
.hv-rpe-bar span{ flex:1; display:flex; align-items:center; justify-content:center; font-size:0.8125rem; font-weight:700; color:rgba(255,255,255,.9); }
.hv-rpe-bar span:nth-child(-n+4){ color:#5b52a8; }
.hv-rpe-bar input{ position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; z-index:2; }
.hv-rpe-thumb{ position:absolute; top:4px; left:calc(var(--p) - 20px); width:40px; height:40px; border-radius:50%; background:#fff; box-shadow:0 2px 6px rgba(0,0,0,.25); pointer-events:none; transition:left .15s ease; z-index:1; }
/* sets */
.hv-sets{ display:flex; flex-direction:column; gap:8px; }
.hv-set{ display:flex; align-items:center; gap:10px; background:#fff; border-radius:12px; padding:8px 10px; }
.hv-badge{ width:30px; height:30px; border-radius:8px; background:#111; color:#fff; font-weight:800; font-size:0.9375rem; display:flex; align-items:center; justify-content:center; flex:none; }
.hv-badge.on{ background:#6C5CE7; }
.hv-settext{ flex:1; font-size:0.9375rem; font-weight:600; color:#111; }
.hv-rpe{ font-size:0.75rem; font-weight:700; padding:3px 8px; border-radius:6px; background:var(--purple-tint); color:#4a3cc9; }
.hv-rpe.f{ background:#6C5CE7; color:#fff; }
.hv-hit{ font-size:0.75rem; font-weight:700; color:#6C5CE7; }
.hv-arrowdown{ display:flex; justify-content:center; color:#9b97ad; margin:8px 0; }
.hv-goal{ display:flex; flex-direction:column; align-items:center; gap:2px; padding:12px; border-radius:12px; border:2px solid #6C5CE7; background:#fff; }
.hv-goal span{ font-size:0.75rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:#6C5CE7; }
.hv-goal b{ font-size:1.125rem; font-weight:800; color:#2a1f8f; }
/* raise */
.hv-raise{ display:flex; align-items:center; justify-content:center; gap:14px; }
.hv-chip{ padding:10px 16px; border-radius:12px; background:#fff; font-size:1.125rem; font-weight:800; color:#8a8895; }
.hv-chip.on{ background:#6C5CE7; color:#fff; }
.hv-up{ color:#6C5CE7; display:flex; }
/* machines */
.hv-machines{ display:flex; flex-direction:column; gap:8px; }
.hv-mach{ display:flex; align-items:center; gap:10px; background:#fff; border-radius:12px; padding:8px 12px 8px 8px; }
.hv-machic{ width:36px; height:36px; border-radius:10px; background:#7ea6d6; display:flex; align-items:center; justify-content:center; flex:none; }
.hv-machic svg{ width:20px; height:20px; }
.hv-machic svg [fill]:not([fill="none"]){ fill:#fff; }
.hv-machtext{ flex:1; display:flex; flex-direction:column; min-width:0; }
.hv-machtext b{ font-size:0.9375rem; color:#111; }
.hv-machtext span{ font-size:0.8125rem; color:var(--sec); }
.hv-machw{ font-weight:800; color:#6C5CE7; }
.hw-vis .hg-spark{ height:90px; }

/* ---- How it works: F end, copy accents, roomier machines, pointer, slide-ins ---- */
.hv-rpe-end{ position:absolute; right:0; top:0; width:48px; height:48px; border-radius:50%; background:#6c5ce7; color:#fff; font-size:1.25rem; font-weight:800; display:flex; align-items:center; justify-content:center; pointer-events:none; z-index:0; }
.hw-purple{ color:#6c5ce7; }
.hv-mach{ padding:14px 14px 14px 12px !important; gap:12px !important; }
.hv-machic{ width:44px !important; height:44px !important; border-radius:12px !important; }
.hv-machtext{ gap:2px; }
.hv-machines{ gap:10px !important; }

.hw-big{ position:relative; display:flex; flex-direction:column; padding-left:30px; --lh:2.625rem; }
.hw-big .hw-line{ display:block; }
.hw-big .hw-line.yel{ color:#FFC83D; }
.hw-pointer{ position:absolute; left:0; top:calc(var(--lh) / 2 - 9px); width:0; height:0; border-top:9px solid transparent; border-bottom:9px solid transparent; border-left:15px solid #FFC83D; animation:hwPoint 6s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes hwPoint{
  0%, 17%   { transform:translateY(0); }
  25%, 42%  { transform:translateY(var(--lh)); }
  50%, 67%  { transform:translateY(calc(var(--lh) * 2)); }
  75%, 92%  { transform:translateY(calc(var(--lh) * 3)); }
  100%      { transform:translateY(0); }
}
.hw-slide{ opacity:0; transform:translateX(56px); transition:opacity .5s ease, transform .6s cubic-bezier(.16,.84,.3,1); }
.hw-slide.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .hw-pointer{ animation:none; } .hw-slide{ opacity:1; transform:none; transition:none; } }
.hw-big .hw-line{ color:#fff; } .hw-big .hw-line.yel{ color:#FFC83D; }

/* ---- pointer: lines sit flush left; the one being pointed at steps in ---- */
.hw-big{ padding-left:0 !important; --in:30px; }
.hw-pointer{ opacity:1; }
.hw-big .hw-line{ will-change:transform; animation:6s cubic-bezier(.65,0,.35,1) infinite; }
.hw-big .l1{ animation-name:hwL1; } .hw-big .l2{ animation-name:hwL2; } .hw-big .l3{ animation-name:hwL3; } .hw-big .l4{ animation-name:hwL4; }
@keyframes hwL1{ 0%, 17%{ transform:translateX(var(--in)); } 25%, 92%{ transform:none; } 100%{ transform:translateX(var(--in)); } }
@keyframes hwL2{ 0%, 17%{ transform:none; } 25%, 42%{ transform:translateX(var(--in)); } 50%, 100%{ transform:none; } }
@keyframes hwL3{ 0%, 42%{ transform:none; } 50%, 67%{ transform:translateX(var(--in)); } 75%, 100%{ transform:none; } }
@keyframes hwL4{ 0%, 67%{ transform:none; } 75%, 92%{ transform:translateX(var(--in)); } 100%{ transform:none; } }
@media (prefers-reduced-motion: reduce){ .hw-big .hw-line{ animation:none; } .hw-big .l1{ transform:translateX(var(--in)); } }

/* ---- home carousel: the strategy graphic as the How FailUp Works card ---- */
.hm2-how{ background:linear-gradient(160deg, #2c1f9e 0%, #4636c9 50%, #6C5CE7 100%) !important; }
.hm2-how::after{ display:none; }
.hm2-howart{ position:absolute; left:22px; right:22px; top:26px; display:block; }
.hm2-howart .hw-big{ margin:0; font-size:2.75rem; --lh:3rem; line-height:3rem; }
.hm2-howsub{ font-size:1rem; line-height:1.375rem; }

/* ---- home tweaks ---- */
.hm2-primary{ background:none !important; padding-top:16px !important; }
.hm2-how{ background:#2c1f9e !important; }
.hm2-howimg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 30%; filter:grayscale(1) contrast(1.05); }
.hm2-how::before{ content:''; position:absolute; inset:0; background:linear-gradient(170deg, rgba(44,31,158,.88) 0%, rgba(70,54,201,.78) 45%, rgba(108,92,231,.72) 100%); z-index:0; }
.hm2-howart, .hm2-howtext, .hm2-howarrow{ z-index:1; }
.hm2-makerphoto{ width:148px; height:111px; object-fit:cover; object-position:50% 40%; border-radius:16px; box-shadow:0 0 0 3px rgba(255,255,255,.9); margin-bottom:auto; display:block; }
.hm-resttile{ background:var(--purple-tint) !important; color:#6c5ce7 !important; }
.hm2-plan .wpill[data-action="start-workout"]{ background:#FFC83D !important; color:#111 !important; }
/* rpe demo: the ball keeps a 4px inset at both ends, like the bar */
.hv-rpe-thumb{ left:clamp(4px, calc(var(--p) - 20px), calc(100% - 44px)) !important; }
.hm2-howimg{ z-index:0; }
.hm2-how::before{ z-index:1 !important; }
.hm2-howart, .hm2-howtext, .hm2-howarrow{ z-index:2 !important; }

/* ---- solid workout color: number tiles filled with an angled gradient; muscle tags outlined ---- */
.cw-badge, .sess-exbadge{
  --tc:var(--cw-current,#4573A8);
  background:linear-gradient(145deg, var(--tc) 0%, color-mix(in srgb, var(--tc) 72%, #000) 100%) !important;
  color:#fff !important; border:none !important; border-radius:12px !important;
  box-shadow:0 4px 10px color-mix(in srgb, var(--tc) 35%, transparent), 0 1px 2px rgba(0,0,0,.12) !important;
  text-shadow:0 1px 1px rgba(0,0,0,.15);
}
.sess-exbadge{ --tc:var(--sess-color,#cf2a0f); }
.mtag{ background:transparent !important; color:#111 !important; box-shadow:inset 0 0 0 1px var(--wc, #6c5ce7); font-weight:600 !important; }
.sess-screen .mtag{ --wc:var(--sess-color); }
.ex-row .ex-sub .mus, .goal-exmeta .mus{ background:transparent !important; color:#111 !important; box-shadow:inset 0 0 0 1px #c9c7d3; font-weight:600 !important; border-radius:6px; }
.tint{ background:linear-gradient(145deg, var(--wc) 0%, color-mix(in srgb, var(--wc) 72%, #000) 100%) !important; box-shadow:0 4px 10px color-mix(in srgb, var(--wc) 30%, transparent); }

/* ---- lighter gradient: a touch lighter than the workout color at the top left, the color itself at the bottom right ---- */
.cw-badge, .sess-exbadge{ background:linear-gradient(145deg, color-mix(in srgb, var(--tc) 78%, #fff) 0%, var(--tc) 100%) !important; }
.tint{ background:linear-gradient(145deg, color-mix(in srgb, var(--wc) 78%, #fff) 0%, var(--wc) 100%) !important; }

/* ---- hierarchy: workout icon tiles are bigger than the exercise number tiles (44px) ---- */
.wcard-tile, .lu-tile{ width:56px !important; height:56px !important; border-radius:16px !important; }
.wcard-tile svg, .lu-tile svg{ width:30px; height:30px; }
.wc-tile{ width:60px !important; height:60px !important; border-radius:16px !important; }
.wc-tile svg{ width:32px; height:32px; }
.wcard-top{ align-items:center; gap:14px !important; }

/* ---- goal suggestions ---- */
.set-tag.unrated{ display:inline-block; width:44px; height:22px; border-radius:6px; background:transparent !important; border:1.5px dashed #a79cf2; }
.ga-first{ position:relative; width:112px; height:112px; margin:4px auto 0; }
.ga-first svg{ width:100%; height:100%; }
.ga-ring{ animation:gaRing 1.1s .2s cubic-bezier(.3,.7,.2,1) forwards; }
@keyframes gaRing{ to{ stroke-dashoffset:0; } }
.ga-first-w{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:1.25rem; font-weight:800; color:#2a1f8f; letter-spacing:-0.02em; }
.ga-firstsheet .ug-titleblock{ text-align:center; align-items:center; }
.ga-firstsub{ margin-top:6px; font-size:0.9375rem; font-weight:700; color:#6C5CE7; }
.ga-nudge{ margin-top:8px; font-size:0.9375rem; color:var(--sec); }
.ug-summary{ font-size:1.0625rem !important; }
.wc-pending{ box-shadow:inset 0 0 0 2px #cfc8fb, var(--card-shadow) !important; }
.wc-sg-row{ border-top:1px solid #efeef4; padding-bottom:12px; }
.wc-sg-row .wc-ng-row{ border-top:none; padding-bottom:4px; }
.wc-sg-reason{ font-size:0.9375rem; line-height:1.25rem; color:#4d4c57; }
.wc-sg-actions, .tk-sugg-actions{ display:flex; gap:8px; margin-top:10px; }
.wc-sg-actions .ug-btn, .tk-sugg-actions .ug-btn{ flex:1; height:44px !important; border-radius:12px !important; font-size:0.9375rem; }
.tk-sugg{ margin:12px 16px 4px; padding:14px 16px; border-radius:16px; background:#fff; box-shadow:inset 0 0 0 2px #6C5CE7, var(--card-shadow); }
.tk-sugg-top{ display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
.tk-sugg-label{ font-size:0.8125rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:#6C5CE7; }
.tk-sugg-w{ font-size:1.375rem; font-weight:800; color:#2a1f8f; }
.tk-sugg-reason{ margin-top:4px; font-size:0.9375rem; line-height:1.25rem; color:#4d4c57; }
.sw-bw{ font-weight:600; color:#6C5CE7; margin-left:4px; }
.set-tag.unrated, .set-tag.unrated:empty{ display:inline-block !important; width:44px !important; min-width:44px; height:22px !important; padding:0 !important; border-radius:6px !important; background:transparent !important; border:1.5px dashed #a79cf2 !important; flex:none; }

/* ---- goal suggestion card (tracker + Workout Complete) ---- */
.tk-sugg{ box-shadow:var(--card-shadow) !important; padding:16px !important; }
.tk-sugg .g-label, .wc-sg-row .g-label{ font-size:0.9375rem; line-height:1.25rem; color:var(--sec); }
.tk-sugg-value{ margin-top:2px; font-size:1.125rem; line-height:1.5rem; font-weight:700; color:#111; letter-spacing:-0.01em; }
.tk-sugg-reason{ margin-top:6px !important; font-size:0.9375rem !important; line-height:1.375rem !important; color:#4d4c57; }
.tk-sugg .wcard-actions, .wc-sg-row .wcard-actions{ margin-top:12px; display:flex; justify-content:flex-end; gap:8px; }
.wc-sg-row{ padding:14px 0 14px !important; }
/* first goal: lottie check */
.ga-first{ width:104px !important; height:104px !important; margin:0 auto -4px !important; }

/* ---- modal body copy at the new 15px body size; first goal: more room above the buttons ---- */
.ug-text{ line-height:1.375rem !important; }
.ga-firstsheet .ug-summary{ margin-bottom:24px; }

/* ---- Create a Workout: preferred equipment type ---- */
.cw-pref{ display:flex; align-items:center; gap:12px; width:100%; text-align:left; padding:14px 16px; border-top:1px solid #efeef4; }
.cw-pref-text{ flex:1; display:flex; flex-direction:column; gap:2px; min-width:0; }
.cw-pref-val{ font-size:1rem; font-weight:700; color:#111; }
.cw-pref-note{ font-size:0.8125rem; line-height:1.125rem; color:var(--sec); }
.cw-pref-btn{ width:44px; height:44px; border-radius:12px; background:var(--tint); display:flex; align-items:center; justify-content:center; flex:none; }

/* ---- exercise selection: all white ---- */
.ex-screen, .ex-screen .nav, .ex-screen .ex-top, .ex-screen .ex-filters, .ex-screen .ex-chips, .ex-screen .ex-list, .ex-screen .ex-results, .ex-screen .ex-recent{ background:#fff !important; }
.ex-screen .ex-search, .ex-screen .tk-search{ background:var(--bg) !important; box-shadow:none !important; }
.ex-screen .ex-footer, .ex-screen .cw-footer{ background:#fff !important; }
.ex-screen .statusbar{ background:#fff !important; }

/* ---- selected = light green + green check (purple stays for failure and overload) ---- */
.swp-row.on, .ae-row.cur{ background:#e7f6ec !important; }
.swp-row.on .xd-eqname{ color:#14532d !important; }
.swp-tick{ background:#1f9d55 !important; }
.ae-row .xd-eqsub b{ color:#1f9d55 !important; }

/* ---- exercise selection rows: more breathing room ---- */
.ex-row{ padding-top:14px !important; padding-bottom:14px !important; gap:14px !important; }
.ex-row .ex-meta{ gap:4px !important; }

/* ---- Nevermind / Save Changes tray ---- */
.pend-tray{ display:flex; gap:12px; }
.pend-tray .btn{ flex:1; }
.pend-tray.enter{ animation:trayUp .38s cubic-bezier(.16,.84,.3,1); }
@keyframes trayUp{ from{ transform:translateY(100%); opacity:.4; } to{ transform:none; opacity:1; } }
@media (prefers-reduced-motion: reduce){ .pend-tray.enter{ animation:none; } }
.lu-vol{ margin-top:12px; }
.ex-row{ height:auto !important; min-height:84px; } .ex-row .ex-meta{ display:flex; flex-direction:column; }
.lu-vol + .cw-listlabel, .lu-vol ~ .cw-listlabel{ margin-top:20px !important; }

/* ---- Today's Plan spacing under Adjust all Volume ---- */
.lu-vol{ margin-bottom:24px !important; }

/* ---- live workout: caret centered in the header row; swap exercise under the tags ---- */
.sess-exrow .sess-excaret{ margin-top:0 !important; align-self:center !important; }
.sess-swaprow{ padding:0 16px 14px 74px; margin-top:-6px; }
.sess-swapex{ display:inline-flex; align-items:center; gap:6px; height:40px !important; min-height:40px !important; padding:0 14px !important; font-size:0.9375rem; font-weight:700; }

/* ---- confirmations: slide down from the top, white with a green outline ---- */
.toast{ top:calc(max(env(safe-area-inset-top), 12px) + 8px) !important; bottom:auto !important; transform:translate(-50%, -140%) !important; background:#fff !important; color:#14532d !important; box-shadow:inset 0 0 0 2px #1f9d55, 0 10px 30px rgba(20,40,30,.14) !important; border-radius:16px !important; padding:12px 18px 12px 44px !important; transition:transform .38s cubic-bezier(.16,.84,.3,1), opacity .25s ease !important; }
.toast::before{ content:''; position:absolute; left:14px; top:50%; width:20px; height:20px; margin-top:-10px; border-radius:50%; background:#1f9d55 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.toast.on{ transform:translate(-50%, 0) !important; }

/* ---- section labels: sentence case, same as the exercise list ---- */
.swp-sechdr, .ae-hdr, .eql-listhdr, .wiz-eqsection .lbl, .hm2-label, .hm2-today, .hw-h, .vs-label, .goal-wlabel, .hv-goal span, .tk-sugg-label, .wc-band-label, .wl-edited{
  text-transform:none !important; letter-spacing:0 !important; font-size:0.9375rem !important; font-weight:500 !important; color:var(--sec) !important; }
.hm2-label.light{ color:rgba(255,255,255,.88) !important; }
.hv-goal span, .wc-band-label{ font-weight:700 !important; color:#6C5CE7 !important; }
.wc-band-label{ color:inherit !important; }
.sess-swaprow{ display:flex; justify-content:flex-start; text-align:left; }
.toast{ white-space:nowrap; max-width:calc(100% - 32px) !important; }
/* swap sits right under the muscle / equipment line, above the divider */
.sess-exdetail{ border-top:none !important; }
.sess-swaprow{ padding:0 0 14px 58px !important; margin:-6px -16px 0 -16px; padding-left:74px !important; border-bottom:1px solid var(--hair); }

/* ---- My Workouts: Workouts / History toggle ---- */
.wt-tabs{ display:flex; gap:4px; padding:4px; margin:4px 0 20px; border-radius:16px; background:#efeff1; box-shadow:inset 0 0 0 1px #d6d6db; }
.wt-seg{ flex:1; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center; gap:8px; font-size:1rem; font-weight:700; color:#5f636b; }
.wt-seg svg{ width:22px; height:22px; }
.wt-seg svg [fill]:not([fill="none"]){ fill:currentColor; }
.wt-seg.on{ background:#fff; color:#111; box-shadow:0 2px 8px rgba(20,16,50,.08); }
/* history */
.wh-list{ display:flex; flex-direction:column; gap:18px; }
.wh-date{ font-size:0.9375rem; font-weight:500; color:var(--sec); margin:0 4px 8px; }
.wh-card{ width:100%; display:flex !important; flex-direction:row !important; align-items:center; gap:14px; padding:14px 12px 14px 14px !important; text-align:left; }
.wh-text{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.wh-name{ font-size:1.0625rem; font-weight:700; color:#111; }
.wh-sub{ font-size:0.9375rem; color:var(--sec); }
.wh-sub b{ color:#6C5CE7; font-weight:700; }

/* ---- equipment list: just the save button ---- */
.eql-save{ padding:20px 16px; display:flex; justify-content:center; }
.eql-save .wpill{ display:inline-flex; align-items:center; gap:6px; padding:0 20px; height:48px; }
.eql-save .wpill svg [fill]:not([fill="none"]){ fill:#fff; } .eql-save .wpill svg [stroke]:not([stroke="none"]){ stroke:#fff; }

/* ---- workout details: volume as a label + value ---- */
.cw-volrow{ padding:14px 16px 4px; display:flex; flex-direction:column; gap:2px; }
.cw-volval{ font-size:1.0625rem; font-weight:700; color:#111; }

/* ---- toggle track = the same gray as Create / back ---- */
.wt-tabs{ background:var(--tint) !important; box-shadow:none !important; }

/* ---- workout cards: kebab tucked into the top right ---- */
.wcard{ position:relative; }
.wcard-kebab{ position:absolute !important; top:10px; right:10px; width:40px !important; height:40px !important; min-height:40px !important; border-radius:10px !important; margin:0 !important; }
.wcard-top{ padding-right:44px; }

/* ---- press feedback: buttons shrink a touch, cards never do ---- */
button:not(:disabled):active, label.xd-act:active{ transform:none; }
:is(.btn, .wpill, .ug-btn, .icon-btn, .nav-create, .sw-adj, .cw-st-btn, .pill-btn, .hm2-btn, .hm2-quick, .lu-locpill, .sess-tbtn, .sess-dpill, .hm2-ibtn, .tk-sortbtn, .cw-act, .cw-edit, .hm2-seeall, .home-cta, .hm2-kebab, .wcard-kebab, .chip-drop, .unit-pill, .eqd-unit, .search-x, .sw-donebtn, .sess-swapex, .cw-pref-btn, .wt-seg, .hm2-makerbtn, .vs-btn, .sw-done):not(:disabled):active{ transform:scale(.97); }
@media (prefers-reduced-motion: reduce){ button:active{ transform:none !important; } }

/* ---- search fields: a gray × appears once you type ---- */
.ex-search, .gl-search, .mg-search{ position:relative; }
.search-x{ display:none; width:36px; height:36px; margin-right:-8px; align-items:center; justify-content:center; flex:none; }
.has-text > .search-x{ display:flex; }

/* ---- home How FailUp Works card: slower, then the arrow rests off-screen for 5s ---- */
.hm2-howart .hw-pointer{ animation:hwPointHome 16s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes hwPointHome{
  0%, 10%  { transform:translateY(0); opacity:1; }
  13%, 23% { transform:translateY(var(--lh)); opacity:1; }
  26%, 36% { transform:translateY(calc(var(--lh) * 2)); opacity:1; }
  39%, 55% { transform:translateY(calc(var(--lh) * 3)); opacity:1; }
  58%      { transform:translateY(calc(var(--lh) * 3)); opacity:0; }
  59%, 88% { transform:translateY(0); opacity:0; }
  91%, 100%{ transform:translateY(0); opacity:1; }
}
.hm2-howart .hw-big .hw-line{ animation-duration:16s; }
.hm2-howart .hw-big .l1{ animation-name:hwH1; } .hm2-howart .hw-big .l2{ animation-name:hwH2; } .hm2-howart .hw-big .l3{ animation-name:hwH3; } .hm2-howart .hw-big .l4{ animation-name:hwH4; }
@keyframes hwH1{ 0%, 10%{ transform:translateX(var(--in)); } 13%, 88%{ transform:none; } 91%, 100%{ transform:translateX(var(--in)); } }
@keyframes hwH2{ 0%, 10%{ transform:none; } 13%, 23%{ transform:translateX(var(--in)); } 26%, 100%{ transform:none; } }
@keyframes hwH3{ 0%, 23%{ transform:none; } 26%, 36%{ transform:translateX(var(--in)); } 39%, 100%{ transform:none; } }
@keyframes hwH4{ 0%, 36%{ transform:none; } 39%, 55%{ transform:translateX(var(--in)); } 58%, 100%{ transform:none; } }
@media (prefers-reduced-motion: reduce){ .hm2-howart .hw-pointer, .hm2-howart .hw-big .hw-line{ animation:none; } }

/* ---- exercise thumbnails: a dumbbell on light purple until (or unless) a photo loads ---- */
.ex-tile.ph{ background:var(--purple-tint) !important; display:flex; align-items:center; justify-content:center; }
.ex-tile.ph > svg{ width:56%; height:56%; }
.ex-tile.ph > svg [fill]:not([fill="none"]), .ex-tile.ph > svg path{ fill:#8f84ec; }
.ex-tile.ph > svg [stroke]:not([stroke="none"]){ stroke:#8f84ec; }
.ex-tile.photo img{ background:transparent !important; }

/* ---- workout exercise list: room between the name and its tag line ---- */
.cw-ex-row .cw-ex-sub{ margin-top:6px !important; display:flex !important; align-items:center; flex-wrap:wrap; }

/* Generic equipment icons: light purple tile, purple line icon */
.ph.kind { background: #eeebfd !important; color: #6c5ce7; display: flex !important; align-items: center; justify-content: center; }
.ph.kind > svg { width: 60% !important; height: 60% !important; max-width: none !important; max-height: none !important; color: #6c5ce7; stroke: currentColor; }
.ph.kind.photo > svg { position: absolute; }

/* goal row: View a waiting suggestion */
.sess-dpill.sess-view { width: auto; padding: 0 18px; font-weight: 600; font-size: 0.9375rem; color: #111; }

/* New Goal: locked value + pencil, tap to edit */
.ga-lockrow { display: flex; align-items: center; justify-content: center; gap: 14px; }
.ga-lockrow .ga-spacer { width: 48px; height: 48px; flex: none; }
.sw-val.ga-locked { background: #eeebfd; color: #6c5ce7; box-shadow: inset 0 0 0 2px #6c5ce7; min-width: 132px; padding: 0 22px; cursor: default; align-items: center; }
.sw-val.ga-locked .u { opacity: .8; }
.ga-edit { width: 48px !important; height: 48px !important; color: #111; }
.ga-edit svg { width: 22px; height: 22px; }
/* New Goal box: number and units sit together, centered */
.ga-picker .sw-val .sw-numwrap .u { position: static; margin-left: 4px; }
.ga-picker .sw-val .sw-in { width: auto; min-width: 1ch; field-sizing: content; text-align: right; }
.ga-picker .sw-val:not(.ga-locked) { min-width: 116px; padding: 0 14px; }
.tk-legend .lg .swatch-line.past{ opacity: .3; }
.h-delta.same{ color:#5f636b; }
.h-delta.down{ color:#5f636b; }

/* Home plan card: stats + progress */
.hm2-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.hm2-stat { background: #eeebfd; border-radius: 14px; padding: 12px 14px; }
.hm2-statnum { font-size: 1.625rem; line-height: 1.9rem; font-weight: 800; color: #6c5ce7; }
.hm2-statlbl { font-size: 0.875rem; color: #4b4f58; margin-top: 2px; }
.hm2-prog { margin-top: 16px; }
.hm2-progtop { display: flex; justify-content: space-between; font-size: 0.875rem; font-weight: 600; color: #4b4f58; margin-bottom: 8px; }
.hm2-progbar { height: 8px; border-radius: 4px; background: var(--track); overflow: hidden; }
.hm2-progbar > span { display: block; height: 100%; border-radius: 4px; background: #111; transition: width .6s ease; }
/* plan card labels match the set logger labels (Weight / Reps / Effort Rating) */
.hm2-statlbl, .hm2-progtop, .hm2-progtop span, .hm2-today {
  font-size: 0.9375rem !important; font-weight: 500 !important; color: #5f636b !important;
  letter-spacing: normal !important; text-transform: none !important; line-height: normal !important;
}
/* exercise details opened from the picker */
.xd-picking .xd-content { padding-bottom: 120px; }
.xd-pickbar { z-index: 20; background: #fff; }
.xd-pickbar .btn { flex: 1; }

/* set logger: small goal line instead of the big card */
.sw-goalchip { align-self: center; margin: 10px auto 2px; width: fit-content; padding: 6px 12px; border-radius: 999px; background: #f0f0f3; color: #5f636b; font-size: 0.875rem; font-weight: 500; }
.sw-goalchip.goal { background: #eeebfd; color: #5a4fc4; }
.sw-goalchip b { font-weight: 700; color: #3d2fb0; margin-left: 2px; }

/* effort slider: purple ring draws around F */
.ff-wrap { position: relative; }
.ff-ring { position: absolute; width: 80px; height: 80px; right: -8px; bottom: -8px; pointer-events: none; overflow: visible; transform: rotate(-90deg); }
.ff-ring circle { fill: none; stroke: #6c5ce7; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .45s cubic-bezier(.4,0,.2,1); }
.ff-ring.on circle { stroke-dashoffset: 0; }
/* F ring sits inside the white thumb */
.sw-feel .ff-thumb .ff-ring { position: absolute; left: 50%; top: 50%; right: auto; bottom: auto; width: 46px; height: 46px; transform: translate(-50%, -50%) rotate(-90deg); }
.sw-feel .ff-thumb .ff-num { position: relative; }

/* Home: plan that hasn't started yet */
.hm2-cdrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.hm2-cd { background: #f3f3f6; border-radius: 14px; padding: 12px 14px; }
.hm2-cdnum { font-size: 1.75rem; line-height: 2rem; font-weight: 800; color: #111; }
.hm2-firstup { margin-top: 14px; font-size: 0.9375rem; color: #5f636b; }
.hm2-firstup b { color: #111; font-weight: 700; }

/* list cells for picking (locations, equipment kinds) */
.pk-list { display: flex; flex-direction: column; margin: 18px -20px 0; background: #fff; }
.pk-cell { height: 76px !important; border-bottom: 1px solid #f0f0f3; }
.pk-cell .pk-ic { width: 48px !important; height: 48px !important; border-radius: 12px !important; background: #f3f3f6; color: #111; display: flex; align-items: center; justify-content: center; flex: none; }
.pk-cell .pk-ic svg { width: 24px; height: 24px; }
.pk-cell .pk-ic.add { background: #111; color: #fff; }
.pk-cell.on .pk-ic { background: #fff; }
.pk-cell .fl-check { margin-left: auto; }
.pk-cell .xd-eqtext { flex: 1; min-width: 0; text-align: left; }
.loc-body .pk-list { margin: 8px 0 0; }
.swp-none { padding: 14px 20px; color: #5f636b; font-size: 0.9375rem; }
.swp-alllink { display: flex; align-items: center; gap: 6px; margin: 14px 20px 8px; padding: 0; background: none; border: none; color: #111; font-weight: 600; font-size: 0.9375rem; }
.swp-alllink svg { width: 16px; height: 16px; }
.ae-screen.has-tray .ae-list:last-of-type { padding-bottom: 110px; }
.ae-cell { border-bottom: 1px solid #f0f0f3; }

/* no double-tap zoom anywhere */
html, body, button, a, input, label, .app, .overlay { touch-action: manipulation; }
/* How FailUp Works: only scrolls up and down (cards sliding in can't push the page sideways) */
.hw-screen { overflow-x: clip; touch-action: pan-y; }
.app:has(.hw-screen) { overflow-x: hidden; }
.sw-numwrap .pre { opacity: .55; font-weight: 600; margin-right: 2px; }
.ex-createrow { width: 100%; text-align: left; }
.ex-createrow .ex-createic { display: flex; align-items: center; justify-content: center; flex: none; }
.ex-createtext { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.ex-createtitle { font-weight: 700; font-size: 1rem; color: #111; }
.ex-createsub { font-size: 0.875rem; color: #5f636b; }
.swp-sheethead { position: relative; }
.swp-create { position: absolute; top: 2px; right: 20px; }
.pk-cell .pk-ic.add { background: #f3f3f6 !important; color: #111 !important; }
.ex-createrow .ex-createic { background: #ebebeb !important; color: #111 !important; }
.ex-createrow .ex-createic svg { width: 22px; height: 22px; }
.pk-cell .pk-ic.add svg path, .ex-createrow .ex-createic svg path { stroke: #111; }
.ff-ring circle { opacity: 0; transition: stroke-dashoffset .45s cubic-bezier(.4,0,.2,1), opacity 0s linear .45s; }
.ff-ring.on circle { opacity: 1; transition: stroke-dashoffset .45s cubic-bezier(.4,0,.2,1), opacity 0s; }

/* equipment details: location card with edit */
.eqd-loccard { display: flex; align-items: center; gap: 12px; }
.eqd-loctext { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; text-align: left; }
.eqd-locedit { flex: none; }
.eqd-locedit svg { width: 20px; height: 20px; }
.loc-done { margin-top: 16px; }
.loc-done .ug-btn { flex: 1; }
.eqd-loc.eqd-loccard { flex-direction: row !important; align-items: center !important; justify-content: space-between !important; text-align: left !important; padding: 16px 16px 16px 20px !important; }
.eqd-loccard .eqd-loctext { align-items: flex-start; }
/* save-equipment steps: lists bleed to the edges without sideways scrolling */
.wiz-body { overflow-x: hidden; touch-action: pan-y; }
.wiz-body .pk-list { margin-left: -16px; margin-right: -16px; }
/* share ask after a workout */
.sa-body { display: flex; flex-direction: column; align-items: flex-start; }
.sa-ic { margin-bottom: -10px; }
.sa-body .ug-actions { width: 100%; }
.sa-body .ug-btn.dark { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.sa-body .ug-btn.dark svg { width: 20px; height: 20px; }
.sa-ic { background: #FFC83D !important; }
.sa-body .ug-title { color: #111 !important; }
.sa-body .ug-titleblock { margin-top: 0; }
/* Today's Plan: default equipment row */
.lu-eqrow .xd-eqimg { width: 52px; height: 52px; border-radius: 12px; flex: none; object-fit: cover; }
.lu-eqrow.ro { cursor: default; }
.pk-cell .pk-ic.kind { background: #eeebfd !important; color: #6c5ce7 !important; }
.pk-cell .pk-ic.kind svg { width: 28px; height: 28px; }

/* creation flows: room between the step title and its grey subtitle */
.wiz-title + .wiz-help, .wl-title + .wl-help, .eql-title + .eql-help { margin-top: 12px !important; }
.wiz-help + .wiz-err, .wiz-help + .pk-list { margin-top: 20px; }
/* live workout: a long machine name wraps under itself, beside the muscle tag */
.sess-exsub, .sess-exrow .sess-exsub { display: flex !important; flex-wrap: nowrap !important; align-items: flex-start !important; }
.sess-exsub .mtag { flex: none; }
.sess-exsub .sess-eqtext { flex: 1; min-width: 0; padding-top: 1px; }
.sess-exsub, .sess-exrow .sess-exsub { gap: 0 !important; }

/* live workout flame (behind the screen content) */
.device { background: var(--bg); }
.app { position: relative; z-index: 1; }
.app:has(> .sess-screen), .app > .sess-screen { background: transparent !important; }
.flame-layer { --fl: 0; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: 0; pointer-events: none;
  transform-origin: 50% 100%; transform: scaleY(calc(.18 + .82 * var(--fl))); opacity: 0;
  transition: transform 1.6s cubic-bezier(.22,.8,.3,1), opacity 1.6s ease; }
.flame-layer.on { opacity: calc(.18 + .72 * var(--fl)); }
.flame-anim { position: absolute; inset: 0; }
.flame-anim svg { width: 100% !important; height: 100% !important; }
.flame-layer.burst { animation: flameBurst 1.8s cubic-bezier(.2,.8,.3,1); }
@keyframes flameBurst { 0% { transform: scaleY(1); } 35% { transform: scaleY(1.28); opacity: 1; } 100% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .flame-layer, .flame-layer.burst { transition: opacity .3s; animation: none; } }
/* the flame wall sits in the bottom third of its square comp: zoom it so the fire fills the layer */
.flame-layer { height: 52%; overflow: hidden; }
.flame-anim { inset: auto; left: 50%; bottom: -2%; width: 210%; aspect-ratio: 1; transform: translateX(-50%); }
.set-tag.unrated { display: inline-flex !important; align-items: center; justify-content: center; font-size: 0.6875rem !important; font-weight: 700; letter-spacing: .02em; color: #a79cf2 !important; line-height: 1; }
/* saved machine name lines up with "At [location]" under it */
.wiz-namecard input { padding: 0 !important; margin: 0 !important; text-indent: 0 !important; display: block; }
/* swap sheet: Save a new machine / View all cells */
.swp-sheet .pk-cell { padding-left: 20px; padding-right: 20px; }

/* creation flows: one full-width progress bar, purple fill */
.wiz-header { display: flex; align-items: center; }
.wiz-progress { flex: 1 1 auto !important; width: 100%; max-width: none !important; height: 6px; border-radius: 3px; background: #ececf0; overflow: hidden; display: block !important; margin: 0 !important; }
.wiz-fill { height: 100%; border-radius: 3px; background: #6c5ce7; }
.wiz-header .wiz-count { display: none; }
/* plan name suggestions */
.wiz-quick .qchip { background: #eeebfd !important; border-color: transparent !important; color: #3d2fb0 !important; }
.wiz-quick .qchip { color: #111 !important; font-weight: 500 !important; }
.wiz-quick { margin-top: 10px !important; }
.hm2-label.light { color: #111 !important; font-size: 0.9375rem !important; font-weight: 600 !important; margin: 4px 4px -2px !important; }
.hm2-primary .hm2-plan { margin-top: 6px; }

/* ---- rest timer ---- */
.lu-switch { width: 52px; height: 32px; border-radius: 16px; background: #dcdce2; position: relative; flex: none; transition: background .2s; border: none; padding: 0; }
.lu-switch span { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .22s cubic-bezier(.3,.8,.3,1); }
.lu-switch.on { background: #1f9d55; }
.lu-switch.on span { transform: translateX(20px); }
.lu-rest { margin-top: 12px; }

.rest-wrap { position: absolute; right: 16px; bottom: 122px; z-index: 6; display: flex; align-items: center; gap: 0; height: 72px; padding: 0; border-radius: 36px; background: #fff; box-shadow: 0 6px 18px rgba(20,20,30,.16); transition: padding .25s cubic-bezier(.3,.8,.3,1), gap .25s; }
.rest-wrap .rest-adj { width: 0; height: 48px; opacity: 0; overflow: hidden; border: none; border-radius: 24px; background: #f0f0f3; font-size: 1.5rem; font-weight: 600; color: #111; padding: 0; transition: width .25s cubic-bezier(.3,.8,.3,1), opacity .2s; }
.rest-wrap.open { padding: 0 12px; gap: 6px; }
.rest-wrap.open .rest-adj { width: 48px; opacity: 1; }
.rest-btn { position: relative; width: 72px; height: 72px; border: none; background: none; padding: 0; display: flex; align-items: center; justify-content: center; flex: none; }
.rest-clock { position: absolute; inset: 6px; width: 60px; height: 60px; overflow: visible; }
.rest-clock rect, .rest-clock path { fill: none; stroke: #111; stroke-width: 3; stroke-linecap: round; }
.rest-clock .rest-track { fill: none; stroke: #e6e6ea; stroke-width: 4; }
.rest-clock .rest-prog { fill: none; stroke: #111; stroke-width: 4; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 32px 36px; transition: stroke-dashoffset .25s linear; }
.rest-num { position: relative; top: 4px; font-size: 0.9375rem; font-weight: 700; color: #111; letter-spacing: -.02em; }
.rest-wrap.running .rest-num { font-size: 1rem; }
/* bigger timer button, ring centered in the white circle */
.rest-wrap { height: 84px; border-radius: 42px; bottom: 118px; }
.rest-btn { width: 84px; height: 84px; }
.rest-clock { inset: auto; left: 10px; top: 6px; width: 64px; height: 64px; }
.rest-num { top: 0; font-size: 1rem; }
.rest-wrap .rest-adj { height: 52px; border-radius: 26px; }
.rest-wrap.open .rest-adj { width: 52px; }

/* =================== First-launch intro =================== */
.ob-screen { position: absolute; inset: 0; overflow: hidden; color: #fff; display: flex; flex-direction: column;
  background: radial-gradient(120% 80% at 85% -10%, #8f7ff5 0%, rgba(143,127,245,0) 55%), linear-gradient(170deg, #6c5ce7 0%, #4f3fd0 55%, #2c1f8f 100%); }
.ob-glow { position: absolute; width: 420px; height: 420px; left: -160px; bottom: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(255,200,61,.22), rgba(255,200,61,0) 65%); pointer-events: none; }
.ob-bar-top { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; padding: calc(env(safe-area-inset-top, 0px) + 18px) 16px 0; }
.ob-back, .ob-skip { flex: none; min-width: 44px; height: 40px; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 0.9375rem; }
.ob-back { background: rgba(255,255,255,.14); width: 40px; min-width: 40px; }
.ob-back.ph, .ob-skip.ph { visibility: hidden; }
.ob-skip { opacity: .8; padding: 0 4px; }
.ob-progress { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.22); overflow: hidden; }
.ob-progress span { display: block; height: 100%; border-radius: 3px; background: #fff; transition: width .45s cubic-bezier(.22,.8,.3,1); }
.ob-body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; padding: 20px 24px calc(env(safe-area-inset-bottom, 0px) + 28px); min-height: 0; }
.ob-mid { margin-top: auto; margin-bottom: 28px; }
.ob-top { margin-top: 8px; }
.ob-foot { margin-top: auto; display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding-top: 20px; }
.ob-logo { font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; opacity: .95; }
.ob-logo span { color: #FFC83D; }
.ob-h1 { font-size: 3.5rem; line-height: 3.4rem; font-weight: 800; letter-spacing: -.04em; margin: 0 0 16px; }
.ob-h2 { font-size: 2.125rem; line-height: 2.3rem; font-weight: 800; letter-spacing: -.03em; margin: 0 0 12px; }
.ob-p { font-size: 1.0625rem; line-height: 1.55rem; color: rgba(255,255,255,.86); margin: 0; }
.ob-kicker { display: inline-block; font-size: 0.875rem; font-weight: 700; color: #2c1f8f; background: #FFC83D; border-radius: 999px; padding: 5px 12px; margin-bottom: 14px; }
.ob-btn { height: 64px; border-radius: 32px; background: #fff; color: #2c1f8f; font-size: 1.125rem; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 10px 30px rgba(20,10,80,.35); }
.ob-link { height: 44px; color: #fff; font-weight: 600; font-size: 1rem; opacity: .85; }
.ob-src { display: block; margin-top: 6px; color: rgba(255,255,255,.7); font-size: 0.8125rem; text-decoration: underline; text-underline-offset: 2px; }

/* step transitions */
.ob-screen.dir-fwd .ob-body > * { animation: obInR .5s cubic-bezier(.22,.8,.3,1) both; }
.ob-screen.dir-back .ob-body > * { animation: obInL .45s cubic-bezier(.22,.8,.3,1) both; }
.ob-screen .ob-body > *:nth-child(2) { animation-delay: .05s; }
.ob-screen .ob-body > *:nth-child(3) { animation-delay: .1s; }
.ob-screen .ob-body > *:nth-child(4) { animation-delay: .15s; }
.ob-welcome { animation: obUp .8s cubic-bezier(.22,.8,.3,1) both; }
@keyframes obInR { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes obInL { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
@keyframes obUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* flame backdrop */
.ob-flame { position: absolute; left: -40%; right: -40%; bottom: -6%; height: 70%; opacity: .55; pointer-events: none; z-index: -1; animation: none !important; }
.ob-flame.big { height: 82%; opacity: .8; }
.ob-flame svg { width: 100% !important; height: 100% !important; }

/* familiar cards */
.ob-cards { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.ob-card { display: flex; align-items: center; gap: 14px; text-align: left; padding: 18px 18px 18px 20px; border-radius: 20px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22); color: #fff; transition: background .2s, box-shadow .2s, transform .15s; animation: obInR .5s cubic-bezier(.22,.8,.3,1) both; animation-delay: var(--d); }
.ob-card:active { transform: scale(.98); }
.ob-card.on { background: #fff; color: #2c1f8f; box-shadow: 0 8px 24px rgba(20,10,80,.3); }
.ob-cardtext { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.ob-cardtitle { font-size: 1.1875rem; font-weight: 700; }
.ob-cardsub { font-size: 0.9375rem; opacity: .75; }
.ob-tick { width: 30px; height: 30px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); display: flex; align-items: center; justify-content: center; }
.ob-card.on .ob-tick { background: #1f9d55; color: #fff; box-shadow: none; }

/* visuals */
.ob-visual { margin: 6px 0 26px; }
.ob-bars { height: 170px; display: flex; align-items: flex-end; gap: 14px; padding: 0 6px; }
.ob-bar { flex: 1; height: var(--h); border-radius: 14px 14px 6px 6px; background: linear-gradient(180deg, #fff, rgba(255,255,255,.55)); position: relative; transform-origin: bottom; animation: obGrow .7s cubic-bezier(.22,.8,.3,1) both; animation-delay: calc(var(--d) + .2s); }
.ob-bar:last-child { background: linear-gradient(180deg, #FFC83D, #f2a900); }
.ob-bar span { position: absolute; top: -26px; left: 0; right: 0; text-align: center; font-weight: 800; font-size: 0.9375rem; }
@keyframes obGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.ob-sets { display: flex; flex-direction: column; gap: 10px; }
.ob-set { display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 14px; border-radius: 16px; background: rgba(255,255,255,.12); font-size: 1.0625rem; font-weight: 600; position: relative; animation: obInR .5s cubic-bezier(.22,.8,.3,1) both; animation-delay: calc(var(--d) + .15s); }
.ob-setn { width: 36px; height: 36px; border-radius: 9px; background: #fff; color: #2c1f8f; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ob-set.f { background: #fff; color: #2c1f8f; }
.ob-set.f .ob-setn { background: #6c5ce7; color: #fff; }
.ob-ok { margin-left: auto; color: #8ff0b6; display: flex; }
.ob-ring { position: absolute; left: 8px; width: 48px; height: 48px; transform: rotate(-90deg); overflow: visible; }
.ob-ring circle { fill: none; stroke: #6c5ce7; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: obRing .7s cubic-bezier(.4,0,.2,1) both; animation-delay: 1.1s; }
@keyframes obRing { to { stroke-dashoffset: 0; } }
.ob-dots { display: flex; flex-direction: column; gap: 12px; }
.ob-dotrow { display: flex; align-items: center; gap: 9px; }
.ob-dotlbl { width: 46px; font-size: 0.875rem; font-weight: 600; opacity: .8; }
.ob-dotrow i { width: 22px; height: 22px; border-radius: 50%; background: #fff; animation: obPop .35s cubic-bezier(.3,1.5,.5,1) both; animation-delay: calc(var(--d) + .2s); }
@keyframes obPop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ob-volsum { margin-top: 6px; font-size: 1.75rem; font-weight: 800; color: #FFC83D; letter-spacing: -.02em; }
.ob-stat { margin-top: 22px; padding: 14px 16px; border-radius: 16px; background: rgba(20,10,80,.28); font-size: 0.9375rem; line-height: 1.35rem; color: rgba(255,255,255,.9); }
.ob-stat b { color: #fff; }
.ob-safe { margin-top: 10px; padding: 12px 16px; border-radius: 16px; background: rgba(255,200,61,.16); box-shadow: inset 0 0 0 1.5px rgba(255,200,61,.5); font-size: 0.9375rem; line-height: 1.35rem; }
.ob-safe b { color: #FFC83D; }

/* the loop */
.ob-loop { position: relative; display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.ob-step { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.1); font-size: 1.0625rem; line-height: 1.4rem; font-weight: 500; animation: obStep 8s infinite; animation-delay: calc(var(--i) * 2s); }
.ob-stepn { width: 34px; height: 34px; border-radius: 50%; flex: none; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-weight: 800; }
@keyframes obStep { 0%, 24% { background: #fff; color: #2c1f8f; transform: translateX(8px); } 30%, 100% { background: rgba(255,255,255,.1); color: #fff; transform: none; } }
.ob-big { margin-top: 24px; font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; color: #FFC83D; }

/* setup */
.ob-q { margin-top: 24px; }
.ob-qlabel { font-size: 0.9375rem; font-weight: 600; color: rgba(255,255,255,.8); margin-bottom: 10px; }
.ob-seg { display: flex; padding: 4px; border-radius: 18px; background: rgba(20,10,80,.3); }
.ob-seg button { flex: 1; height: 50px; border-radius: 14px; color: #fff; font-weight: 600; font-size: 1rem; transition: background .2s, color .2s; }
.ob-seg button.on { background: #fff; color: #2c1f8f; }
.ob-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-chip { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border-radius: 22px; background: rgba(255,255,255,.14); color: #fff; font-weight: 600; font-size: 0.9375rem; }
.ob-chip.on { background: #fff; color: #2c1f8f; }
.ob-chip.on svg { color: #1f9d55; }
.ob-add { display: flex; gap: 8px; margin-top: 12px; }
.ob-add input { flex: 1; min-width: 0; height: 50px; border-radius: 16px; border: none; padding: 0 16px; font: inherit; font-size: 1rem; color: #fff; background: rgba(20,10,80,.3); outline: none; }
.ob-add input::placeholder { color: rgba(255,255,255,.55); }
.ob-add button { height: 50px; padding: 0 18px; border-radius: 16px; background: #FFC83D; color: #2c1f8f; font-weight: 700; }
.ob-hint { margin-top: 10px; font-size: 0.875rem; color: rgba(255,255,255,.7); line-height: 1.25rem; }

@media (prefers-reduced-motion: reduce) {
  .ob-screen *, .ob-screen .ob-body > * { animation: none !important; transition: none !important; }
  .ob-ring circle { stroke-dashoffset: 0; }
}
.app:has(> .ob-screen) { overflow: hidden !important; }
.ob-body { overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.ob-loop { gap: 10px; margin-top: 16px; }
.ob-step { padding: 12px 14px; font-size: 1rem; line-height: 1.3rem; }
.ob-big { margin-top: 18px; font-size: 1.5rem; }
.ob-flame.big { opacity: .95; height: 88%; }

/* ---- intro motion v2: text fades in, graphics float in ---- */
.ob-screen.dir-fwd .ob-body > *, .ob-screen.dir-back .ob-body > *, .ob-welcome { animation: none; }
.ob-screen .ob-txt { animation: obFade .8s ease both; animation-delay: .1s; }
.ob-screen .ob-float { animation: obFloat 1s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--fd, .2s); }
.ob-screen .ob-foot { animation: obFade .7s ease both; animation-delay: .45s; }
.ob-screen .ob-foot.ob-late { animation-delay: 3.1s; }
.ob-screen .ob-flame { animation: obFade 1.6s ease both !important; }
.ob-screen .ob-logo { animation: obFloat 1s cubic-bezier(.2,.8,.2,1) both; animation-delay: .05s; }
@keyframes obFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes obFloat { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.ob-card { animation: obFloat .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--d) + .25s); }
.ob-bar { animation: obBarIn .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--d) + .3s); }
@keyframes obBarIn { from { opacity: 0; transform: translateY(20px) scaleY(.2); } to { opacity: 1; transform: none; } }
.ob-dotrow i { animation: obDot .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--d) + .3s); }
@keyframes obDot { from { opacity: 0; transform: translateY(10px) scale(.6); } to { opacity: 1; transform: none; } }
.ob-volsum { animation: obFade .8s ease both; animation-delay: 1.7s; }

/* failure graphic: sets float in, then the last one becomes a failure */
.ob-set { animation: obFloat .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--d) + .25s); }
.ob-set.f { background: rgba(255,255,255,.12); color: #fff; animation: obFloat .8s cubic-bezier(.2,.8,.2,1) both, obFailCard .5s ease forwards; animation-delay: calc(var(--d) + .25s), 1.75s; }
.ob-set.f .ob-setn { background: #fff; color: #2c1f8f; animation: obFailTile .5s ease forwards; animation-delay: 1.75s; }
@keyframes obFailCard { to { background: #fff; color: #2c1f8f; } }
@keyframes obFailTile { 0% { transform: scale(1); } 50% { transform: scale(1.18); } 100% { transform: scale(1); background: #6c5ce7; color: #fff; } }
.ob-ftag { margin-left: auto; font-size: 0.8125rem; font-weight: 700; color: #fff; background: #6c5ce7; border-radius: 999px; padding: 4px 10px; opacity: 0; animation: obFade .5s ease forwards; animation-delay: 1.95s; }

/* the loop: steps float in slowly, one by one; then the line glitches in */
.ob-step { animation: obFloat .9s cubic-bezier(.2,.8,.2,1) both !important; animation-delay: calc(.35s + var(--i) * .5s) !important; background: rgba(255,255,255,.12); }
.ob-glitch { position: relative; opacity: 0; animation: obGlitchIn .9s steps(1) forwards; animation-delay: 2.55s; }
.ob-glitch::before, .ob-glitch::after { content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; opacity: 0; animation-delay: 2.55s; animation-fill-mode: forwards; }
.ob-glitch::before { color: #ff5fd2; animation-name: obGlitchA; animation-duration: .9s; }
.ob-glitch::after { color: #5ff3ff; animation-name: obGlitchB; animation-duration: .9s; }
@keyframes obGlitchIn {
  0% { opacity: 1; transform: translateX(-6px) skewX(14deg); clip-path: inset(0 0 60% 0); }
  12% { transform: translateX(5px) skewX(-8deg); clip-path: inset(40% 0 20% 0); }
  24% { transform: translateX(-3px); clip-path: inset(10% 0 55% 0); }
  36% { transform: translateX(4px) skewX(6deg); clip-path: inset(65% 0 0 0); }
  48% { transform: translateX(-2px); clip-path: inset(0 0 0 0); }
  60% { transform: translateX(2px) skewX(-4deg); }
  72%, 100% { opacity: 1; transform: none; clip-path: none; }
}
@keyframes obGlitchA { 0% { opacity: .9; transform: translate(-5px, -2px); clip-path: inset(0 0 55% 0); } 25% { transform: translate(4px, 1px); clip-path: inset(50% 0 10% 0); } 50% { transform: translate(-3px, 0); clip-path: inset(20% 0 40% 0); } 75% { opacity: .6; transform: translate(2px, 0); } 100% { opacity: 0; transform: none; } }
@keyframes obGlitchB { 0% { opacity: .9; transform: translate(5px, 2px); clip-path: inset(45% 0 0 0); } 25% { transform: translate(-4px, -1px); clip-path: inset(0 0 60% 0); } 50% { transform: translate(3px, 0); clip-path: inset(60% 0 5% 0); } 75% { opacity: .6; transform: translate(-2px, 0); } 100% { opacity: 0; transform: none; } }

/* secondary buttons: light purple, slightly see-through */
.ob-btn2 { height: 56px; border-radius: 28px; background: rgba(200,190,255,.24); color: #fff; font-size: 1rem; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* no subscriptions */
.ob-nosub { display: flex; justify-content: center; }
.ob-receipt { width: 100%; padding: 18px 20px 14px; border-radius: 20px; background: #fff; color: #2c1f8f; box-shadow: 0 16px 40px rgba(20,10,80,.35); transform: rotate(-2deg); }
.ob-rrow, .ob-rtotal { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; font-size: 1rem; }
.ob-rrow { border-bottom: 1px dashed #d9d4fb; }
.ob-rrow b { font-weight: 800; }
.ob-rtotal { padding-top: 12px; font-weight: 800; font-size: 1.125rem; }
.ob-rtotal b { color: #6c5ce7; }
.ob-p2 { margin-top: 12px; }

/* ready: units */
.ob-units { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 0.9375rem; color: rgba(255,255,255,.8); }
.ob-units button { height: 36px; padding: 0 16px; border-radius: 18px; background: rgba(200,190,255,.24); color: #fff; font-weight: 700; }
.ob-units button.on { background: #fff; color: #2c1f8f; }

/* safety sheet before the first workout */
.sf-ic { width: 52px; height: 52px; border-radius: 14px; background: #6c5ce7; color: #fff; font-weight: 800; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; margin-bottom: -6px; }
.sf-body .ug-title { color: #111 !important; }
.sf-list { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 10px; font-size: 0.9375rem; line-height: 1.35rem; color: #333; }
.sf-list b { color: #111; }
@media (prefers-reduced-motion: reduce) { .ob-glitch, .ob-ftag, .ob-set.f, .ob-set.f .ob-setn { opacity: 1 !important; animation: none !important; } .ob-set.f { background: #fff; color: #2c1f8f; } .ob-set.f .ob-setn { background: #6c5ce7; color: #fff; } }
/* intro motion: these win over the older slide-in rule */
.ob-screen .ob-body > .ob-txt, .ob-screen .ob-body > .ob-mid { animation: obFade .9s ease both !important; animation-delay: .1s !important; }
.ob-screen .ob-body > .ob-float { animation: obFloat 1s cubic-bezier(.2,.8,.2,1) both !important; animation-delay: var(--fd, .2s) !important; }
.ob-screen .ob-body > .ob-foot { animation: obFade .7s ease both !important; animation-delay: .5s !important; }
.ob-screen .ob-body > .ob-foot.ob-late { animation-delay: 3.2s !important; }
.ob-screen .ob-body > .ob-cards, .ob-screen .ob-body > .ob-loop, .ob-screen .ob-body > .ob-flame { animation: none !important; }
.ob-screen .ob-body > .ob-flame { animation: obFade 1.6s ease both !important; }
.ob-screen .ob-body > .ob-glitch { animation: obGlitchIn .9s steps(1) forwards !important; animation-delay: 2.6s !important; }
.ob-screen .ob-body > .ob-sets, .ob-screen .ob-body > .ob-visual:not(.ob-float) { animation: none !important; }
/* flame screens: sturdier secondary button */
.ob-s-welcome .ob-btn2, .ob-s-ready .ob-btn2 { background: rgba(96,78,214,.82); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 6px 18px rgba(20,10,80,.25); }
/* "You're ready to Fail." */
.ob-fbox { display: inline-block; padding: 0 .12em; margin-right: .02em; border-radius: .14em; background: #8f7ff5; line-height: 1; padding-top: .06em; padding-bottom: .04em; }
.ob-fbox { padding: .06em .07em .02em; margin: 0 -.02em 0 0; border-radius: .12em; letter-spacing: 0; }
.ob-fbox { padding: .04em .1em .02em; margin: 0 .02em 0 -.06em; border-radius: .14em; }

/* ---- intro v3 ---- */
/* graphics a touch smaller and centered */
.ob-visual { align-self: center; width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; }
.ob-small { max-width: 300px; }
.ob-sets .ob-set { height: 52px; font-size: 1rem; }
.ob-sets .ob-setn { width: 32px; height: 32px; }

/* progressive overload graph */
.ob-graphwrap { padding: 14px 12px 10px; border-radius: 22px; background: rgba(20,10,80,.22); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.ob-graph { display: block; width: 100%; height: auto; overflow: visible; }
.ob-ggrid { stroke: rgba(255,255,255,.12); stroke-width: 1; stroke-dasharray: 2 5; }
.ob-gpast { stroke: rgba(255,255,255,.35); stroke-width: 2; stroke-linecap: round; opacity: 0; animation: obFade .6s ease forwards; animation-delay: var(--d); }
.ob-gcur { stroke: #FFC83D; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; animation: obDraw 1s ease forwards; animation-delay: 3.1s; }
.ob-glbl { fill: #FFC83D; font: 700 11px Archivo, sans-serif; opacity: 0; animation: obFade .5s ease forwards; animation-delay: 3.6s; }
.ob-gline { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: obDraw 2.8s cubic-bezier(.45,0,.35,1) forwards; animation-delay: .45s; }
.ob-gdot { fill: #fff; stroke: #5a4bd8; stroke-width: 2.5; transform-box: fill-box; transform-origin: center; opacity: 0; animation: obDotLand .4s cubic-bezier(.3,1.6,.5,1) forwards; animation-delay: var(--d); }
@keyframes obDraw { to { stroke-dashoffset: 0; } }
@keyframes obDotLand { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }

/* the research card */
a.ob-stat { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; padding: 14px 16px 12px; border-left: 3px solid #FFC83D; border-radius: 6px 16px 16px 6px; }
.ob-evlabel { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: .02em; color: #FFC83D; }
.ob-evtext { font-size: 0.9375rem; line-height: 1.35rem; color: #fff; }
.ob-evcite { font-size: 0.8125rem; color: rgba(255,255,255,.7); font-style: italic; text-decoration: underline; text-underline-offset: 2px; }

/* volume: a graphic, not content */
.ob-dots { padding: 16px 18px 14px; border-radius: 22px; background: rgba(20,10,80,.22); width: auto; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.ob-dots .ob-dotrow { gap: 7px; }
.ob-dots .ob-dotrow i { width: 16px; height: 16px; }
.ob-dots .ob-dotlbl { width: 40px; font-size: 0.75rem; }
.ob-dots .ob-volsum { font-size: 0.875rem; font-weight: 700; color: rgba(255,255,255,.75); margin-top: 4px; letter-spacing: 0; }

/* how FailUp works: the set tracker logging a workout */
.ob-trk { align-self: center; width: 100%; max-width: 320px; padding: 14px 14px 12px; border-radius: 22px; background: #fff; color: #111; box-shadow: 0 16px 40px rgba(20,10,80,.35); margin: 4px auto 22px; }
.ob-trkhead { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 1rem; padding: 0 2px 8px; }
.ob-trkvol { font-size: 0.8125rem; font-weight: 500; color: #5f636b; }
.ob-trkrow { display: flex; align-items: center; gap: 12px; height: 46px; border-top: 1px solid #f0f0f3; padding: 0 2px; opacity: 0; animation: obFloatSm .6s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d); }
.ob-trkn { width: 30px; height: 30px; border-radius: 7px; background: #111; color: #fff; font-weight: 800; font-size: 0.875rem; display: flex; align-items: center; justify-content: center; }
.ob-trkrow.f .ob-trkn { background: #6c5ce7; }
.ob-trkt { flex: 1; font-size: 0.9375rem; font-weight: 500; }
.ob-trktag { min-width: 26px; height: 24px; padding: 0 8px; border-radius: 6px; background: #eeebfd; color: #5a4fc4; font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ob-trkrow.f .ob-trktag { background: #6c5ce7; color: #fff; padding: 0; width: 26px; }
.ob-trkrow.f .ob-trkn, .ob-trkrow.f .ob-trktag { animation: obPopF .45s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--d) + .25s); }
@keyframes obPopF { from { transform: scale(.4); } to { transform: scale(1); } }
@keyframes obFloatSm { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ob-trkgoal { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 12px; border-radius: 14px; background: #eeebfd; color: #3d2fb0; font-size: 0.9375rem; font-weight: 600; opacity: 0; animation: obFloatSm .6s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: 2.45s; }
.ob-trkgoal b { margin-left: auto; color: #6c5ce7; font-weight: 800; }
.ob-trkgoal svg { width: 26px; height: 26px; flex: none; }
.ob-trkgoal circle { fill: #6c5ce7; stroke: #6c5ce7; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: obDotLand .4s cubic-bezier(.3,1.6,.5,1) both; animation-delay: 2.6s; }
.ob-trkgoal path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: obDraw .45s ease forwards; animation-delay: 2.9s; }
.ob-screen .ob-body > .ob-glitch { animation-delay: 3.4s !important; }
.ob-screen .ob-body > .ob-foot.ob-late { animation-delay: 4s !important; }
.ob-s-loop .ob-top { margin-top: 0; }

/* create a workout: name + look on white, exercises below on the app canvas */
.cw-screen > .statusbar, .cw-screen > .nav { background: #fff; }
.cw-head { background: #fff; margin: -16px -16px 18px; padding: 8px 16px 22px; border-radius: 0 0 24px 24px; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
@media (prefers-reduced-motion: reduce) { .ob-gline, .ob-gcur, .ob-trkgoal path { stroke-dashoffset: 0; } .ob-gdot, .ob-gpast, .ob-glbl, .ob-trkrow, .ob-trkgoal { opacity: 1; } }
.ob-screen .ob-body > .ob-after { margin-top: 8px; animation: obFade .8s ease both !important; animation-delay: 4.1s !important; }
.ob-screen .ob-body > .ob-foot.ob-late { animation-delay: 4.5s !important; }
/* intro top bar: room under the back button when the screen scrolls */
.ob-bar-top { padding-bottom: 14px; }
.ob-body { padding-top: 8px; }
.ob-trk { cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* Today's Plan: settings sit on a full-width white header, list below on cream */
.lu-whitehead .lu-head { margin-bottom: 0; }
.lu-whitehead .lu-loc { background: var(--field); box-shadow: none; }
.lu-whitehead > :last-child { margin-bottom: 0 !important; }
.lu-whitehead + .cw-listlabel { margin-top: 4px !important; }
.lu-screen .lu-whitehead { margin-top: -24px; padding-top: 16px; }
.lu-whitehead .lu-loc { margin-top: 12px !important; margin-bottom: 0 !important; }
.lu-whitehead .lu-head .lu-loc { margin-top: 16px !important; }

/* Icon picker: grouped, scrolls inside the sheet */
.pk-icongrid { max-height: 52vh; overflow-y: auto; margin-top: -30px !important; padding: 2px 2px 8px; gap: 12px !important; }
.pk-group { grid-column: 1 / -1; font-size: 0.875rem; font-weight: 600; color: #111; margin-top: 14px; }
.pk-group:first-child { margin-top: 0; }
.pk-group span { color: #8a8d93; font-weight: 500; margin-left: 2px; }
.pk-icongrid .pk-icon { height: 60px; }
.pk-icongrid .pk-icon svg { width: 30px; height: 30px; }

/* ---- Workout themes: only on the workout icon tile and exercise number tiles (plus the swatches that pick them) ---- */
[data-tex]:not([data-tex=""]) { position: relative; isolation: isolate; overflow: hidden; }
[data-tex]:not([data-tex=""])::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; }
[data-tex="tartan-stewart"]::before { background: repeating-linear-gradient(90deg, rgba(20,30,70,.62) 0px 7px, transparent 7px 9px, rgba(255,255,255,.55) 9px 10px, transparent 10px 12px, rgba(20,90,50,.6) 12px 18px, transparent 18px 21px, rgba(242,194,48,.7) 21px 22px, transparent 22px 25px, rgba(0,0,0,.35) 25px 27px, transparent 27px 32px), repeating-linear-gradient(0deg, rgba(20,30,70,.62) 0px 7px, transparent 7px 9px, rgba(255,255,255,.55) 9px 10px, transparent 10px 12px, rgba(20,90,50,.6) 12px 18px, transparent 18px 21px, rgba(242,194,48,.7) 21px 22px, transparent 22px 25px, rgba(0,0,0,.35) 25px 27px, transparent 27px 32px), #b8121b; }
[data-tex="tartan-watch"]::before { background: repeating-linear-gradient(90deg, rgba(12,22,55,.75) 0px 9px, transparent 9px 11px, rgba(0,0,0,.55) 11px 12px, transparent 12px 14px, rgba(0,0,0,.55) 14px 15px, transparent 15px 17px, rgba(12,22,55,.75) 17px 22px, transparent 22px 24px, rgba(0,0,0,.6) 24px 30px, transparent 30px 32px), repeating-linear-gradient(0deg, rgba(12,22,55,.75) 0px 9px, transparent 9px 11px, rgba(0,0,0,.55) 11px 12px, transparent 12px 14px, rgba(0,0,0,.55) 14px 15px, transparent 15px 17px, rgba(12,22,55,.75) 17px 22px, transparent 22px 24px, rgba(0,0,0,.6) 24px 30px, transparent 30px 32px), #173f2c; }
[data-tex="fire-red"]::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' preserveAspectRatio='xMidYMax slice'%3E%3Cdefs%3E%3ClinearGradient id='b' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%233a0503'/%3E%3Cstop offset='.6' stop-color='%23b3170c'/%3E%3Cstop offset='1' stop-color='%23ff6a00'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='64' height='64' fill='url%28%23b%29'/%3E%3Cpath d='M0 64V30C5 36 7 22 12 12C12 26 20 28 20 18C27 27 24 38 31 36C33 27 28 16 37 4C37 20 46 25 43 36C49 32 49 22 54 15C56 27 62 31 64 26V64Z' fill='%23ff4d00'/%3E%3Cpath d='M0 64V44C5 48 8 36 13 30C14 40 20 42 21 34C26 42 25 50 32 48C34 41 31 32 38 24C39 36 45 40 44 48C49 45 50 38 54 34C55 42 61 46 64 42V64Z' fill='%23ff9a1f'/%3E%3Cpath d='M4 64C8 58 10 52 15 48C16 54 20 56 23 51C26 56 26 60 32 59C34 54 33 49 38 44C40 52 44 54 44 59C48 57 50 53 53 50C54 56 58 59 60 64Z' fill='%23ffe066'/%3E%3C/svg%3E") center bottom / cover; }
[data-tex="fire-blue"]::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' preserveAspectRatio='xMidYMax slice'%3E%3Cdefs%3E%3ClinearGradient id='b' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23020a2e'/%3E%3Cstop offset='.6' stop-color='%230b2f9e'/%3E%3Cstop offset='1' stop-color='%231e7bff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='64' height='64' fill='url%28%23b%29'/%3E%3Cpath d='M0 64V30C5 36 7 22 12 12C12 26 20 28 20 18C27 27 24 38 31 36C33 27 28 16 37 4C37 20 46 25 43 36C49 32 49 22 54 15C56 27 62 31 64 26V64Z' fill='%231f5bff'/%3E%3Cpath d='M0 64V44C5 48 8 36 13 30C14 40 20 42 21 34C26 42 25 50 32 48C34 41 31 32 38 24C39 36 45 40 44 48C49 45 50 38 54 34C55 42 61 46 64 42V64Z' fill='%233fa9ff'/%3E%3Cpath d='M4 64C8 58 10 52 15 48C16 54 20 56 23 51C26 56 26 60 32 59C34 54 33 49 38 44C40 52 44 54 44 59C48 57 50 53 53 50C54 56 58 59 60 64Z' fill='%23bff3ff'/%3E%3C/svg%3E") center bottom / cover; }
[data-tex="fire-green"]::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' preserveAspectRatio='xMidYMax slice'%3E%3Cdefs%3E%3ClinearGradient id='b' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%2303200d'/%3E%3Cstop offset='.6' stop-color='%230b6b2a'/%3E%3Cstop offset='1' stop-color='%231fbf4a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='64' height='64' fill='url%28%23b%29'/%3E%3Cpath d='M0 64V30C5 36 7 22 12 12C12 26 20 28 20 18C27 27 24 38 31 36C33 27 28 16 37 4C37 20 46 25 43 36C49 32 49 22 54 15C56 27 62 31 64 26V64Z' fill='%2315a83e'/%3E%3Cpath d='M0 64V44C5 48 8 36 13 30C14 40 20 42 21 34C26 42 25 50 32 48C34 41 31 32 38 24C39 36 45 40 44 48C49 45 50 38 54 34C55 42 61 46 64 42V64Z' fill='%234fe06a'/%3E%3Cpath d='M4 64C8 58 10 52 15 48C16 54 20 56 23 51C26 56 26 60 32 59C34 54 33 49 38 44C40 52 44 54 44 59C48 57 50 53 53 50C54 56 58 59 60 64Z' fill='%23d8ff7a'/%3E%3C/svg%3E") center bottom / cover; }
[data-tex="scifi-circuit"]::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36' preserveAspectRatio='xMidYMax slice'%3E%3Crect width='36' height='36' fill='%2306222a'/%3E%3Cg fill='none' stroke='%232fe3e0' stroke-opacity='.55' stroke-width='1.2'%3E%3Cpath d='M0 8H10L16 14V26H24'/%3E%3Cpath d='M36 18H28L22 12V0'/%3E%3Cpath d='M8 36V28L12 24'/%3E%3Cpath d='M30 36V30H36'/%3E%3C/g%3E%3Cg fill='%232fe3e0' fill-opacity='.85'%3E%3Ccircle cx='24' cy='26' r='1.9'/%3E%3Ccircle cx='22' cy='12' r='1.6'/%3E%3Ccircle cx='12' cy='24' r='1.6'/%3E%3Ccircle cx='30' cy='30' r='1.4'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 36px 36px; }
[data-tex="scifi-hex"]::before { background: radial-gradient(circle at 30% 25%, rgba(94,230,255,.28), transparent 60%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='48' viewBox='0 0 28 48' preserveAspectRatio='xMidYMax slice'%3E%3Crect width='28' height='48' fill='%23071733'/%3E%3Cpath d='M14 0L28 8V24L14 32L0 24V8Z M14 32V48 M0 56L14 48L28 56' fill='none' stroke='%235ee6ff' stroke-opacity='.45' stroke-width='1.1'/%3E%3Cpath d='M14 6L23 11V21L14 26L5 21V11Z' fill='%235ee6ff' fill-opacity='.08'/%3E%3C/svg%3E") 0 0 / 22px 38px; }
[data-tex="scifi-grid"]::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' preserveAspectRatio='xMidYMax slice'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%230a0b24'/%3E%3Cstop offset='.5' stop-color='%233a0f45'/%3E%3Cstop offset='.5' stop-color='%2313051f'/%3E%3Cstop offset='1' stop-color='%2313051f'/%3E%3C/linearGradient%3E%3ClinearGradient id='u' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffd23f'/%3E%3Cstop offset='1' stop-color='%23ff2f8f'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='64' height='64' fill='url%28%23s%29'/%3E%3Ccircle cx='32' cy='32' r='15' fill='url%28%23u%29'/%3E%3Cg fill='%233a0f45'%3E%3Crect x='14' y='25' width='36' height='1.6'/%3E%3Crect x='14' y='28.5' width='36' height='2'/%3E%3C/g%3E%3Crect y='32' width='64' height='32' fill='%2313051f'/%3E%3Cg stroke='%23ff4fd0' stroke-width='1' stroke-opacity='.85'%3E%3Cpath d='M0 32H64M0 35H64M0 39.5H64M0 46H64M0 55H64'/%3E%3Cpath d='M32 32V64M26 32L8 64M20 32L-16 64M38 32L56 64M44 32L80 64M14 32L-40 64M50 32L104 64'/%3E%3C/g%3E%3C/svg%3E") center / cover; }
[data-tex="tattered"]::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cfilter id='t'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.06' numOctaves='4' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -14 6.4'/%3E%3C/filter%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.07' numOctaves='3' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 -16 6.2'/%3E%3C/filter%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='1' seed='2'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .5 -.18'/%3E%3C/filter%3E%3Crect width='96' height='96' filter='url%28%23t%29' opacity='.55'/%3E%3Crect width='96' height='96' filter='url%28%23w%29' opacity='.35'/%3E%3Crect width='96' height='96' filter='url%28%23g%29'/%3E%3Cg stroke='%23fff' stroke-opacity='.35' stroke-width='.8' fill='none'%3E%3Cpath d='M8 20l14 5M60 10l10 9M30 70l18-4M70 60l12 10M14 50l6 12'/%3E%3C/g%3E%3Crect x='1' y='1' width='94' height='94' fill='none' stroke='%23000' stroke-opacity='.25' stroke-width='3' stroke-dasharray='7 3 2 5'/%3E%3C/svg%3E") center / 96px 96px; }
/* the theme replaces the gradient and glow, so text and icons stay readable */
.tint[data-tex]:not([data-tex=""]), .cw-badge[data-tex]:not([data-tex=""]), .sess-exbadge[data-tex]:not([data-tex=""]) { text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.tint[data-tex]:not([data-tex=""]) svg { filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.45)); }

/* Color picker: grouped and scrollable, the check only on the pick */
.pk-colorgrid { max-height: 52vh; overflow-y: auto; margin-top: -30px !important; padding: 2px 2px 8px; gap: 12px !important; }
.pk-colorgrid .pk-swatch { height: 60px; }
.pk-swatch .pk-check { display: none; }
.pk-swatch.on .pk-check { display: flex; }
/* Icon picker: the pick is outlined in this workout's color */
.pk-icongrid .pk-icon.on { border-color: var(--pk-sel, #111); }
.st-credits { margin: 18px 20px 28px; font-size: 0.75rem; line-height: 1.45; color: #8a8d93; text-align: center; }

/* Rest timer row on the set logger: stopwatch, −, time, +, play/pause */
.rt-row { position: relative; margin: 6px 20px 4px; height: 56px; border-radius: 16px; background: var(--field, #f2f3f4); display: flex; align-items: center; gap: 6px; padding: 0 8px 0 14px; overflow: hidden; isolation: isolate; }
.rt-bar { position: absolute; left: 0; top: 0; bottom: 0; z-index: -1; background: #e7f6ec; width: 100%; transition: width .25s linear; }
.rt-row:not(.on) .rt-bar { opacity: 0; }
.rt-ic { color: #1c1b1f; display: grid; place-items: center; width: 26px; margin-right: auto; }
.rt-row.live .rt-ic { color: #1f9d55; }
.rt-time { min-width: 72px; text-align: center; font-size: 1.375rem; font-weight: 700; letter-spacing: -.01em; color: #111; }
.rt-adj, .rt-play { width: 44px; height: 40px; border: 0; border-radius: 12px; background: #fff; color: #111; font-family: inherit; font-size: 1.5rem; font-weight: 600; line-height: 1; display: grid; place-items: center; cursor: pointer; transition: transform .12s; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.rt-play { margin-left: 10px; background: #111; color: #fff; }
.rt-adj:active, .rt-play:active { transform: scale(.92); }

/* Rest timer: quiet styling, circle buttons. It sits in the logger and under the CTA in the workout tray */
.sess-footer { flex-direction: column; gap: 10px; }
.sess-footrow { display: flex; gap: 16px; }
.rt-row { margin: 4px 20px 2px; height: 48px; background: none; border-radius: 0; padding: 0; gap: 10px; overflow: visible; }
.sess-footer .rt-row { margin: 0; height: 44px; }
.rt-ic { color: #828282; width: 24px; }
.rt-row.live .rt-ic { color: #828282; }
.rt-ic svg { width: 20px; height: 20px; }
.rt-time { min-width: 56px; font-size: 1.0625rem; font-weight: 600; color: #3a3a3a; }
.rt-row:not(.on) .rt-time { color: #828282; }
.rt-adj, .rt-play { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #3a3a3a; box-shadow: inset 0 0 0 1.5px #dcdce0; font-size: 1.25rem; font-weight: 500; }
.rt-play { margin-left: 4px; background: #fff; color: #3a3a3a; }
.rt-play svg { width: 18px; height: 18px; }

/* timer pill: full width, a shade darker than what it sits on; time and −/+ centered */
.rt-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 56px; padding: 0 8px 0 16px; border-radius: 999px; background: #f2f3f4; margin: 6px 20px 2px; gap: 0; }
.sess-footer .rt-row { background: #e0e0e4; height: 56px; margin: 0; }
.rt-ic { justify-self: start; margin: 0; }
.rt-mid { display: flex; align-items: center; gap: 10px; }
.rt-play { justify-self: end; margin: 0; }
.rt-adj { padding: 0; }
.rt-adj svg, .rt-play svg { display: block; }

/* How FailUp works: four steps that land after the tracker demo */
.ob-s-loop .ob-trk { max-width: 290px; margin: 0 auto 14px; padding: 12px 12px 10px; }
.ob-s-loop .ob-trk .ob-set { height: 44px; }
.ob-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; text-align: left; }
.ob-steps li { font-size: 1.125rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: #fff; opacity: 0; animation: obStepIn .55s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d); }
.ob-steps li span { display: block; font-size: .8125rem; font-weight: 700; color: #FFC83D; margin-bottom: 2px; }
@keyframes obStepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ob-s-loop .ob-body > .ob-glitch { margin-top: 18px; animation-delay: 4.15s !important; }
.ob-s-loop .ob-body > .ob-glitch::before, .ob-s-loop .ob-body > .ob-glitch::after { animation-delay: 4.15s !important; }
.ob-s-loop .ob-body > .ob-after { animation-delay: 4.7s !important; }
.ob-s-loop .ob-body > .ob-foot.ob-late { animation-delay: 5.1s !important; }
@media (prefers-reduced-motion: reduce) { .ob-steps li { opacity: 1; animation: none; } }
/* shorter phones: shrink the tracker demo so the four steps fit */
@media (max-height: 760px) {
  .ob-s-loop .ob-trk { zoom: .68; margin-bottom: 8px; }
  .ob-s-loop .ob-kicker { margin-bottom: 6px; }
  .ob-steps { gap: 7px; }
  .ob-steps li { font-size: 1rem; line-height: 1.22; }
  .ob-steps li span { font-size: .75rem; margin-bottom: 0; }
  .ob-s-loop .ob-body > .ob-glitch { margin-top: 12px; font-size: 1.375rem; }
}

/* How FailUp works, steps only: sized off the screen height so they fill the room */
.ob-s-loop .ob-steps { flex: 1 1 auto; align-content: center; gap: clamp(9px, 1.9vh, 20px); margin: clamp(4px, 1.2vh, 14px) 0 clamp(8px, 2vh, 20px); }
.ob-s-loop .ob-steps li { font-size: clamp(1.0625rem, 2.75vh, 1.5rem); line-height: 1.18; letter-spacing: -.02em; }
.ob-s-loop .ob-steps li span { font-size: clamp(.8125rem, 1.7vh, .9375rem); margin-bottom: 3px; }
.ob-s-loop .ob-body > .ob-foot.ob-late { animation-delay: 4.3s !important; }
@media (max-height: 700px) { .ob-s-loop .ob-trk { zoom: .62; } .ob-s-loop .ob-steps { gap: 8px; } }
.ob-s-loop .ob-body > .ob-foot.ob-late { animation-delay: 3.95s !important; }
/* three steps: a little bigger to use the room */
.ob-s-loop .ob-steps { gap: clamp(12px, 2.6vh, 26px); }
.ob-s-loop .ob-steps li { font-size: clamp(1.1875rem, 3vh, 1.625rem); }
@media (max-height: 700px) { .ob-s-loop .ob-trk { zoom: .7; } .ob-s-loop .ob-steps { gap: 12px; } }
.sess-savehint { margin-top: 2px; color: #5f636b !important; }

/* tracker: other saved machines on the graph, and goals on other equipment */
.tk-legend .swatch-dot.other { background: #fff; box-shadow: inset 0 0 0 2px #a3a7ae; }
.tk-gl { margin: 18px 16px 0; }
.tk-gl-head { display: flex; justify-content: space-between; align-items: baseline; font-size: .9375rem; font-weight: 700; color: #111; margin-bottom: 8px; }
.tk-gl-vol { font-size: .8125rem; font-weight: 600; color: #828282; }
.tk-gl-list { display: grid; gap: 8px; }
.tk-gl-row { width: 100%; text-align: left; background: #f2f3f4; border: 0; border-radius: 16px; }
.tk-gl-row.none { opacity: .75; cursor: default; }
.tk-gl-goal { margin-left: auto; font-weight: 700; font-size: .9375rem; color: #111; margin-right: 4px; }
.tk-gl-empty { font-size: .875rem; color: #5f636b; background: #f2f3f4; border-radius: 16px; padding: 14px 16px; }
.tk-gl-row { background: #fff; box-shadow: 0 1px 3px rgba(20,20,23,.06); }
.tk-gl-chev { margin-left: auto; display: grid; place-items: center; }
.tk-gl-empty { background: #fff; }
.ob-share { width: 100%; max-width: 340px; aspect-ratio: 360 / 300; margin: 0 auto 8px; align-self: center; }
.ob-share svg { display: block; }
.hm2-howrail { overflow: visible; display: block; }
.hm2-howrail > .hm2-how { width: 100%; }
/* one divider under an open exercise header, not two */
.cw-ex-card.open .cw-ex-row + * .cw-pref:first-child, .cw-ex-card.open .cw-ex-row + .cw-pref, .cw-ex-card.open .cw-pref:first-of-type { border-top: 0; }

/* plan card on a rest day: the workout you missed */
.hm-missed { margin-top: 14px; }
.hm-missedlbl { font-size: .875rem; font-weight: 700; color: #111; margin: 0 2px 8px; }

/* first location: a plain text field until one exists */
.lu-locfield { cursor: text; }
.lu-locinput { display: block; width: 100%; border: 0; outline: 0; background: transparent; padding: 2px 0 0; font: inherit; font-size: 1.0625rem; font-weight: 700; color: #111; }
.lu-locinput::placeholder { color: #a3a7ae; font-weight: 500; }

/* exercise dropdown while building a workout: more room, full-width steppers */
.cw-detail-main { gap: 24px; padding-top: 14px; padding-bottom: 24px; }
.cw-ex-detail .cw-steppers { display: flex; gap: 14px; padding: 0 16px; }
.cw-ex-detail .cw-stepper:not(.ro) { flex: 1 1 0; min-width: 0; }
.cw-ex-detail .cw-stepper:not(.ro) .cw-st-row { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 4px; }
.cw-ex-detail .cw-stepper .cw-st-label { margin-bottom: 8px; }
.cw-ex-detail .cw-pref { padding: 16px; }

/* exercise actions: quiet, icon over a small label */
.cw-ex-detail .cw-actions { gap: 6px; padding: 0 12px 2px; }
.cw-ex-detail .cw-act { flex: 1; min-height: 0; height: auto; padding: 8px 0 6px; flex-direction: column; gap: 3px; background: transparent; border-radius: 10px; font-size: .6875rem; font-weight: 500; color: #5f636b; }
.cw-ex-detail .cw-act svg { width: 18px; height: 18px; opacity: .75; }
.cw-ex-detail .cw-act.del { color: #cf2a0f; }
.cw-ex-detail .cw-act.del svg { opacity: .9; }
.cw-ex-detail .cw-act:active { background: var(--field, #f2f3f4); }

/* set logger: the overload goal on the right of "Set 1 of 3" */
.sw-toprow { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.sw-goalside { display: flex; flex-direction: column; align-items: flex-end; text-align: right; line-height: 1.15; padding-bottom: 3px; }
.sw-goalside span { font-size: .75rem; font-weight: 500; color: #5f636b; }
.sw-goalside b { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; color: #6c5ce7; white-space: nowrap; }
.sw-goalside.none span { font-size: .8125rem; }

/* timer pill in the tray: lighter, with room above the buttons */
.sess-footer .rt-row { background: #ececf0; }
.sess-footer.has-rest { gap: 16px; }

.sw-headrow { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 12px; }
.sw-headleft { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sw-goalside { flex: none; padding: 8px 12px; border-radius: 12px; background: #eeebfd; align-items: flex-end; }
.sw-goalside span { color: #5a4fc4; }
.sw-goalside.none { background: #f0f0f3; }
.sw-goalside.none span { color: #5f636b; }
.sw-goalside span, .sw-goalside.none span { font-size: 0.9375rem; line-height: 1.25rem; font-weight: 500; }
/* exercise dropdown: every row gets the same side padding and no extra top/bottom, so the 20px gap is the only spacing */
.cw-ex-detail .cw-detail-main { gap: 20px; padding-top: 16px; padding-bottom: 20px; }
.cw-ex-detail .cw-pref, .cw-ex-detail .cw-pref.ro { padding: 0 16px; border-top: 0; }
.cw-ex-detail .cw-volrow { padding: 0 16px; }
.cw-ex-detail .cw-steppers, .cw-ex-detail .cw-goal { padding: 0 16px; }
/* Edit / Create Workout: each action in the dropdown sits in its own cream panel */
.cw-ex-card:not(.ro) .cw-ex-detail .cw-pref, .cw-ex-card:not(.ro) .cw-ex-detail .cw-goal { margin: 0 12px; padding: 12px 12px 12px 14px; border-radius: 16px; background: var(--bg); width: auto; }
.cw-ex-card:not(.ro) .cw-ex-detail .cw-pref .cw-pref-btn, .cw-ex-card:not(.ro) .cw-ex-detail .cw-goal .cw-edit { background: #fff; }
.cw-ex-card:not(.ro) .cw-ex-detail .cw-pref .prefthumb, .cw-ex-card:not(.ro) .cw-ex-detail .cw-pref .cw-thumb { background: #fff; }
.cw-ex-card:not(.ro) .cw-ex-detail .cw-pref, .cw-ex-card:not(.ro) .cw-ex-detail .cw-goal { margin: 0 16px; }
.cw-ex-card:not(.ro) .cw-ex-detail .cw-goal .cw-edit { background: #fff !important; }
/* labels sit above their panels, like Sets and Reps */
.cw-ex-detail .cw-blk { padding: 0 16px; }
.cw-ex-card:not(.ro) .cw-ex-detail .cw-blk .cw-pref, .cw-ex-card:not(.ro) .cw-ex-detail .cw-blk .cw-goal { margin: 0; }
.cw-ex-detail .cw-blk > .cw-st-label { font-size: 0.9375rem; color: var(--sec); font-weight: 500; margin-bottom: 8px; }
.cw-ex-card:not(.ro) .cw-ex-detail .cw-blk .cw-pref { display: flex; width: 100%; box-sizing: border-box; }
.cw-ex-detail .cw-blk .cw-pref .cw-pref-text { flex: 1; }
/* live exercise dropdown: labels above cream panels, same as the edit workout view */
.sess-exdetail { padding: 0 16px 20px !important; display: flex; flex-direction: column; gap: 20px; }
.sess-blabel { font-size: 0.9375rem; color: var(--sec); font-weight: 500; margin-bottom: 8px; }
.sess-panel { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: 16px; padding: 12px 12px 12px 14px; min-height: 64px; box-sizing: border-box; }
.sess-ptext { flex: 1; min-width: 0; }
.sess-panel .dval { font-size: 1rem; font-weight: 700; color: #000; }
.sess-panel .dval.goal { color: var(--purple); }
.sess-panel .dlabel { font-size: 0.8125rem; color: var(--sec); font-weight: 500; margin-top: 2px; }
.sess-panel .dimg { position: relative; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; background: #fff; }
.sess-panel .dimg.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #fff; }
.sess-panel .sess-dpill { width: 44px; height: 44px; background: #fff !important; }
/* Overload Goal panel: weight on top, volume below in grey, room for buttons */
.gp { display: flex; align-items: center; gap: 12px; }
.gp .cw-goal-text, .gp .sess-ptext { flex: 1; min-width: 0; }
.gp .gp-val { font-size: 1rem; font-weight: 700; color: var(--purple); line-height: 1.3; }
.gp .gp-val.none { color: var(--purple); }
.gp .gp-sub { font-size: 0.8125rem; font-weight: 500; color: var(--sec); margin-top: 2px; }
.gp-btns { display: flex; gap: 8px; flex: none; }
.gp-btn { height: 40px; padding: 0 14px; border-radius: 12px; background: #fff; color: var(--ink, #111); font-size: 0.9375rem; font-weight: 600; }
.gp-btn.ok { background: #111; color: #fff; }
.gp-btn:not(:disabled):active { transform: scale(.97); }
.gp .gp-val { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-btns { gap: 6px; }
.gp-btn { padding: 0 12px; font-size: 0.875rem; }
.gp .gp-tag { font-size: 0.8125rem; font-weight: 600; color: var(--purple); margin-bottom: 1px; }
.gp .gp-ico { width: 44px; height: 44px; background: #fff !important; flex: none; }
/* logged sets and the sets still to do keep one rhythm, no extra gap between them */
.sess-sets .set-list { margin-bottom: 0; }
.sess-sets .set-extra { margin-top: 12px; }
/* notes + rest timer, on the cream above the footer */
.sess-tools { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px 12px; background: var(--bg); min-height: 64px; box-sizing: border-box; }
.st-note { height: 44px; padding: 0 14px 0 12px; border-radius: 14px; background: #fff; color: #3a3a3a; display: inline-flex; align-items: center; gap: 6px; font-size: 0.9375rem; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); border: 2px solid transparent; transition: transform .12s; }
.st-note.has { border-color: var(--purple); color: var(--purple); }
.st-note:active { transform: scale(.97); }
.rp { height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px 0 12px; border-radius: 14px; background: #fff; color: #3a3a3a; box-shadow: 0 1px 2px rgba(0,0,0,.06); margin-left: auto; transition: transform .12s; }
button.rp:active { transform: scale(.97); }
.rp-ic { display: grid; place-items: center; color: #828282; width: 24px; height: 24px; }
.rp-ic svg { width: 20px; height: 20px; }
.rp.live .rp-ic { color: #1f9d55; }
.rp-time { min-width: 44px; text-align: center; font-size: 1.0625rem; font-weight: 600; color: #3a3a3a; }
.rp:not(.on) .rp-time { color: #828282; }
.rp.open { height: 52px; padding: 0 6px 0 8px; gap: 6px; }
.rp.open .rp-close { width: 36px; height: 36px; border-radius: 10px; }
.rp.open .rt-adj, .rp.open .rt-play { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #3a3a3a; box-shadow: inset 0 0 0 1.5px #dcdce0; }
.rp.open .rt-play { margin-left: 2px; }
/* notes sheet */
.nt-sheet .nt-text { display: block; width: calc(100% - 32px); margin: 4px 16px 16px; box-sizing: border-box; min-height: 160px; padding: 14px 16px; border-radius: 16px; border: 0; background: var(--bg); font: inherit; font-size: 1rem; line-height: 1.45; color: #111; resize: none; outline: none; }
.nt-sheet .nt-text:focus { box-shadow: inset 0 0 0 2px #111; }
.nt-sheet .sheet-actions { padding: 0 16px 16px; display: flex; }
.nt-sheet .sheet-actions .btn { flex: 1; }
/* Settings: rest timer sound switch */
.xd-card.st-sound { display: flex; align-items: center; gap: 16px; }
.xd-card.st-sound .xd-hgroup { flex: 1; min-width: 0; }
.xd-card.st-sound .lu-switch { flex: none; }
/* Failure: no ring; the white thumb breathes a slow purple glow */
.sw-feel .ff-ring { display: none !important; }
.sw-feel { overflow: visible !important; }
.sw-feel .ff-seg:first-child { border-radius: 999px 0 0 999px; }
.sw-feel .ff-seg:nth-child(10) { border-radius: 0 999px 999px 0; }
.sw-feel .ff-thumb { transition: left .15s ease, box-shadow .4s ease; }
.sw-feel .ff-thumb::before { content: ''; position: absolute; inset: -26px; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(167,150,255,.75) 0%, rgba(108,92,231,.5) 34%, rgba(108,92,231,.18) 55%, rgba(108,92,231,0) 72%);
  opacity: 0; transform: scale(.6); }
.sw-feel .ff-thumb.fail { animation: ffBloom .7s cubic-bezier(.2,.8,.2,1), ffBreathe 3.2s ease-in-out .7s infinite; }
.sw-feel .ff-thumb.fail::before { animation: ffHaloIn .7s cubic-bezier(.2,.8,.2,1) forwards, ffHalo 3.2s ease-in-out .7s infinite; }
.sw-feel .ff-thumb.fail .ff-num { color: #6c5ce7; }
@keyframes ffBloom {
  0% { box-shadow: 0 2px 6px rgba(0,0,0,.25), 0 0 0 0 rgba(108,92,231,0); transform: scale(1); }
  45% { box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 26px 10px rgba(124,108,255,.85), 0 0 60px 22px rgba(108,92,231,.45); transform: scale(1.1); }
  100% { box-shadow: 0 0 0 2px rgba(255,255,255,.7), 0 0 14px 3px rgba(124,108,255,.6), 0 0 34px 10px rgba(108,92,231,.3); transform: scale(1); }
}
@keyframes ffBreathe {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255,255,255,.7), 0 0 14px 3px rgba(124,108,255,.6), 0 0 34px 10px rgba(108,92,231,.3); transform: scale(1); }
  50% { box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 0 24px 8px rgba(124,108,255,.8), 0 0 56px 20px rgba(108,92,231,.42); transform: scale(1.05); }
}
@keyframes ffHaloIn { from { opacity: 0; transform: scale(.6); } to { opacity: .75; transform: scale(1); } }
@keyframes ffHalo { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .sw-feel .ff-thumb.fail, .sw-feel .ff-thumb.fail::before { animation: none; opacity: 1; transform: none; box-shadow: 0 0 0 2px rgba(255,255,255,.7), 0 0 18px 6px rgba(124,108,255,.65); } }
/* the halo paints inside the thumb's stacking context; a white disc on top of it keeps the thumb white */
.sw-feel .ff-thumb::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #fff; z-index: -1; pointer-events: none; }
/* Today's Plan: flat white header, settings as tiles in the workout's color */
.lu-screen .lu-whitehead { border-radius: 0 !important; padding-bottom: 20px; }
.lu-set { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.lu-chip { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  color: var(--cw-current, #111); background: color-mix(in srgb, var(--cw-current, #111) 13%, #fff); }
.lu-chip svg { width: 22px; height: 22px; }
.lu-tile-loc { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 12px 12px 12px; border-radius: 18px; background: var(--bg); border: 0; font: inherit; color: inherit; }
.lu-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lu-tlabel { font-size: 0.8125rem; white-space: nowrap; font-weight: 500; color: var(--sec); }
.lu-tval { font-size: 1.0625rem; font-weight: 700; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lu-tbtn { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; flex: none; }
.lu-tile-loc .lu-locinput { font-size: 1.0625rem; font-weight: 600; }
.lu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.lu-cell { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; padding: 12px 14px 14px 12px; border-radius: 18px; background: var(--bg); border: 0; font: inherit; color: inherit; min-height: 132px; transition: transform .12s, background .2s; }
.lu-cell:active, .lu-tile-loc:active { transform: scale(.97); }
.lu-celltop { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; padding-bottom: 12px; }
.lu-big { font-size: 1.875rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: #111; }
.lu-big i { font-style: normal; font-weight: 600; color: var(--sec); margin: 0 4px; font-size: .8em; }
.lu-cell:not(.on) .lu-big[aria-hidden], .lu-cell[role=switch]:not(.on) .lu-big { color: #9a9aa2; }
.lu-cell .lu-switch { pointer-events: none; }
.lu-restrow .lu-switch { pointer-events: none; margin-right: 4px; }
/* Today's Plan v2: plain rows, volume and rest side by side */
.lu-row { display: flex; align-items: center; gap: 8px; padding: 12px 10px 12px 14px; border-radius: 18px; background: var(--bg); min-width: 0; }
.lu-row .lu-tt { flex: 1; min-width: 0; }
.lu-row .lu-tval { font-size: 1rem; }
.lu-grid .lu-row { padding-right: 8px; }
.lu-grid .lu-row .lu-tval { font-size: 0.9375rem; }
.lu-grid .lu-tbtn { width: 40px; height: 40px; }
.lu-grid .lu-switch { flex: none; }
.lu-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.lu-locrow { gap: 12px; padding-left: 12px; }
.lu-grid { grid-template-columns: minmax(0, 1fr) auto; }
.lu-grid > .lu-row:only-child { grid-column: 1 / -1; }
.lu-grid > .lu-restcell { gap: 14px; padding-right: 10px; }
.lu-grid { grid-template-columns: auto minmax(0, 1fr); }
.lu-set .lu-tbtn { width: 40px; height: 40px; }
.lu-set .lu-row { padding-right: 10px; }
/* notes + timer float over the flames, no fill behind them */
.sess-tools { background: transparent !important; }
/* volume sheet: the Overload Goal cell */
.vs-goalblk { margin-top: 18px; }
.vs-glabel { font-size: 0.9375rem; font-weight: 500; color: var(--sec); margin-bottom: 8px; }
.vs-gpanel { background: var(--bg); border-radius: 16px; padding: 12px 12px 12px 14px; min-height: 64px; box-sizing: border-box; }
.vs-gpanel .cw-goal-text { flex: 1; min-width: 0; }
.vs-goalblk { margin-top: 4px; }
.vs-sheet .vs-steppers.cw-steppers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.vs-sheet .cw-stepper .cw-st-label { font-size: 0.9375rem; font-weight: 500; color: var(--sec); margin-bottom: 8px; text-align: left; }
.vs-sheet .vs-top { gap: 24px; }
.vs-sheet .vs-steppers.cw-steppers { margin-top: 0; padding: 0; }
.vs-sheet .cw-stepper { width: 100%; min-width: 0; }
.vs-sheet .cw-stepper .cw-st-row { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 4px; box-sizing: border-box; }
.vs-sheet .vs-goalblk { margin-top: 0; }
/* saved equipment: thumbnails on the kind and location cards, the same soft shadow as the cards below */
.eqd-loc.eqd-loccard { box-shadow: var(--card-shadow) !important; padding: 12px 12px 12px 12px !important; gap: 12px; }
.eqd-loccard .eqd-loctext { flex: 1; min-width: 0; }
.eqd-thumb { width: 52px; height: 52px; border-radius: 12px; flex: none; display: grid; place-items: center; overflow: hidden; }
.eqd-thumb svg { max-width: 30px; max-height: 30px; }
.eqd-pin { background: #eeebfd; color: #6c5ce7; }
.eqd-pin svg { width: 26px; height: 26px; }
/* Workout Complete: the exercise's note under its sets */
.wc-note { display: flex; gap: 10px; align-items: flex-start; margin: 10px 12px 2px; padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.wc-note-ic { color: var(--sec); flex: none; display: grid; place-items: center; margin-top: 1px; }
.wc-note-ic svg { width: 18px; height: 18px; }
.wc-note-text { font-size: 0.9375rem; line-height: 1.4; color: #3a3a3a; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Workout Complete: Add Exercises and Share, equal halves */
.wc-half { flex: 1 1 0 !important; width: auto !important; min-width: 0; margin: 0 !important; height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 1rem; font-weight: 600; color: #111; }
.wc-share.wc-half svg { width: 20px; height: 20px; }
.wc-actions:has(.wc-half) { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; }
.wc-half { box-sizing: border-box; padding: 0 12px !important; border: 0; }
/* muscle groups under the Exercise List label */
.ms-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: -2px 0 14px; }
.ms-row .ms-chip { display: inline-flex !important; align-items: center; gap: 6px; margin: 0 !important; padding: 3px 4px 3px 10px; font-size: 0.8125rem; line-height: 1.25rem; border-radius: 8px; }
.ms-row .ms-n { min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 6px; display: grid; place-items: center; font-size: 0.75rem; font-weight: 800;
  background: var(--cw-current, var(--wc, #6c5ce7)); color: #fff; }
/* count as a plain black number before the muscle name */
.ms-row .ms-chip { padding: 3px 10px !important; gap: 5px; }
.ms-row .ms-n { background: none !important; color: #111 !important; min-width: 0; height: auto; padding: 0; border-radius: 0; font-size: 0.8125rem; font-weight: 800; display: inline; }
/* effort slider: no easing on the thumb; the failure glow only animates the halo (opacity + scale, GPU only) */
.sw-feel .ff-thumb { transition: none !important; will-change: transform; animation: none !important; }
.sw-feel .ff-thumb.fail { box-shadow: 0 0 0 2px rgba(255,255,255,.8), 0 0 16px 4px rgba(124,108,255,.65) !important; }
.sw-feel .ff-thumb::before { will-change: opacity, transform; }
.sw-feel .ff-thumb.fail::before { animation: ffHaloIn .5s ease-out forwards, ffHalo 3.2s ease-in-out .5s infinite !important; }
/* swap equipment: a purple dot on equipment that has goals for this exercise */
.swp-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #6c5ce7; margin-left: 7px; vertical-align: middle; position: relative; top: -1px; }
/* live workout: offer to save the specialized machine you're on */
.mp-card { background: #fff; border-radius: 20px; padding: 16px; margin-bottom: 12px; box-shadow: var(--card-shadow); }
.mp-top { display: flex; gap: 12px; align-items: flex-start; }
.mp-ic { width: 52px; height: 52px; border-radius: 12px; flex: none; display: grid; place-items: center; }
.mp-ic svg { max-width: 30px; max-height: 30px; }
.mp-text { flex: 1; min-width: 0; }
.mp-title { font-size: 1.0625rem; font-weight: 700; color: #111; }
.mp-sub { font-size: 0.875rem; color: var(--sec); line-height: 1.35; margin-top: 3px; }
.mp-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.mp-btn { height: 46px; border-radius: 14px; background: var(--bg); color: #111; font-size: 0.9375rem; font-weight: 600; border: 0; }
.mp-btn.dark { background: #111; color: #fff; }
.mp-btn:active { transform: scale(.97); }
/* save-a-machine: the exercises step */
.eqw-picked { margin-bottom: 14px; }
.eqw-search { margin: 0 0 12px !important; }
.eqw-sechdr { font-size: 0.875rem; font-weight: 600; color: var(--sec); margin: 4px 0 6px; }
.eqw-ex .exth, .eqw-ex img, .eqw-ex .ex-tile { flex: none; }
.tk-legend .lg .swatch-dot.other { background: #a3a7ae !important; box-shadow: none !important; }
/* machine page: Add on the Related Exercises card */
.xd-related .xd-relhead { display: flex; align-items: flex-start; gap: 12px; }
.xd-related .xd-relhead .xd-hgroup { flex: 1; min-width: 0; }
.eqd-add { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px 0 8px; border-radius: 12px; background: var(--bg); color: #111; font-size: 0.9375rem; font-weight: 600; border: 0; }
.eqd-add svg { width: 18px; height: 18px; }
.eqd-add:active { transform: scale(.97); }
.eqr-screen .wiz-body { padding-bottom: 24px; }
/* Exercise History: Edit mode puts a delete button on each set log */
.hx-card { position: relative; }
.hx-del { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 12px; background: #fdecec; color: #d64545; display: grid; place-items: center; border: 0; z-index: 1; }
.hx-del svg { width: 20px; height: 20px; }
.hx-del:active { transform: scale(.94); }
.hx-screen.editing .hx-head { padding-right: 56px; }
.hx-del svg path { fill: currentColor; }
/* delete sits across the bottom of the set log */
.hx-del { position: static !important; width: 100% !important; height: 48px !important; margin-top: 10px; display: flex !important; align-items: center; justify-content: center; gap: 8px; border-radius: 14px !important; font-size: 1rem; font-weight: 600; }
.hx-screen.editing .hx-head { padding-right: 0; }
.gp .gp-val .gp-nt { color: #111; }
.wc-titlerow .wl-titleblock { gap: 0; } .wc-titlerow .wl-title + .wl-help { margin-top: 4px !important; }
