:root {
  --bg: #1a1022;
  --bg-elev: #22152c;
  --card: #2a1a36;
  --line: #46305c;
  --text: #fbf1f8;
  --muted: #cdb6dc;
  --accent: #c2186b;
  --accent-2: #2ed3c6;
  --warn: #d4a017;
  --danger: #d45a5a;
  --ok: #34d8c8;
  /* Theme extras (set per theme by theme.js; these defaults = pink/purple/turquoise) */
  --surface-2: #1f1329;
  --raise: #3b2552;
  --brand-2: #6d28d9;
  --accent-hi: #d61f78;
  --accent-3: #8b45e6;
  --accent-soft: #ffd1e6;
  --accent-3-soft: #e3d0ff;
  --on-accent-2: #10141f;
  --tile-1a: #d61f78; --tile-1b: #a3135a;
  --tile-2a: #8b45e6; --tile-2b: #5b21b6;
  --tile-3a: #2ed3c6; --tile-3b: #14a89c;
  --radius: 18px;
  --tap: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  min-height: 100%;
  -webkit-tap-highlight-color: transparent;
}
body { padding: var(--safe-t) 0 var(--safe-b); }
button, textarea, input { font: inherit; color: inherit; }
.screen {
  min-height: 100dvh;
  padding: 16px;
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: calc(16px + var(--safe-b));
}
.screen.has-timer { padding-bottom: calc(110px + var(--safe-b)); }
[hidden] { display: none !important; }

.muted { color: var(--muted); }
.tiny { font-size: 12px; line-height: 1.4; }
.error { color: var(--danger); margin: 8px 0 0; font-size: 14px; }
.eyebrow {
  margin: 0; text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 11px; color: var(--muted); font-weight: 700;
}
.grow { flex: 1; min-width: 0; }
.h-sm { font-size: 20px !important; line-height: 1.2 !important; }

#screen-lock { display: flex; align-items: center; justify-content: center; }
.lock-card {
  width: 100%; background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 24px; padding: 28px 20px 24px; text-align: center;
}
.brand-mark {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px;
  background: linear-gradient(145deg, var(--accent), var(--brand-2));
  display: grid; place-items: center; font-weight: 800; font-size: 22px;
}
.lock-card h1 { margin: 0 0 6px; font-size: 24px; }
.pass-dots {
  display: flex; justify-content: center; gap: 12px;
  margin: 18px 0 8px; min-height: 16px;
}
.pass-dots span {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--muted); display: inline-block;
}
.pass-dots span.on { background: var(--accent-2); border-color: var(--accent-2); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 16px; }
.key {
  height: var(--tap); border-radius: 16px; border: 1px solid var(--line);
  background: var(--card); font-size: 22px; font-weight: 600;
}
.key:active { background: var(--raise); }
.key-ghost { color: var(--muted); font-size: 18px; }

.btn {
  min-height: var(--tap); border-radius: 16px; border: 1px solid transparent;
  padding: 0 18px; font-weight: 700; font-size: 16px; background: var(--card);
}
.btn.wide { width: 100%; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:disabled { opacity: 0.4; }
.btn.secondary { background: var(--card); border-color: var(--line); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn.timer-btn {
  min-height: 44px; min-width: 64px; padding: 0 12px; font-size: 14px;
  background: var(--raise); border-color: var(--line);
}
.btn.timer-btn.accent { background: var(--accent); color: #fff; border-color: transparent; }
.icon-btn {
  width: var(--tap); height: var(--tap); border-radius: 16px;
  border: 1px solid var(--line); background: var(--card); font-size: 22px; flex: 0 0 auto;
}

.topbar {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.topbar h1 { margin: 4px 0 0; font-size: 26px; line-height: 1.15; }
.session-meta { display: grid; gap: 10px; margin-bottom: 16px; }
.meta-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px;
}
.meta-card .label { font-size: 12px; color: var(--muted); margin: 0 0 4px; font-weight: 600; }
.meta-card .value { margin: 0; font-size: 20px; font-weight: 750; }
.flag {
  display: inline-block; margin-top: 8px; padding: 6px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 700;
}
.flag.warn { background: rgba(212, 160, 23, 0.18); color: var(--warn); }
.flag.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.flag.rest { background: rgba(205, 182, 220, 0.16); color: var(--muted); }

.session-body { display: grid; gap: 12px; padding-bottom: 12px; }
.session-footer { position: sticky; bottom: 0; padding: 12px 0 4px; background: linear-gradient(transparent, var(--bg) 30%); }
.empty {
  background: var(--bg-elev); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 28px 18px; text-align: center;
}
.empty h2 { margin: 0 0 8px; font-size: 20px; }

.ex-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; text-align: left; width: 100%;
  color: inherit; cursor: pointer;
}
.ex-card.done { border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.ex-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ex-num {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px;
  background: var(--raise); display: grid; place-items: center;
  font-weight: 800; font-size: 13px; color: var(--accent-2);
}
.ex-title { margin: 0; font-size: 18px; line-height: 1.25; flex: 1; text-align: left; }
.ex-type {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap;
}
.ex-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 10px;
}
.stat { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.stat .k { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.stat .v { font-weight: 750; font-size: 15px; }
.progress-pill {
  display: block; margin-top: 8px; font-size: 12px; font-weight: 700;
  color: var(--accent-2);
}
.cues, .swaps { margin: 10px 0 0; padding: 0; list-style: none; }
.cues li, .swaps li {
  position: relative; padding-left: 14px; margin: 4px 0;
  color: var(--muted); font-size: 14px; line-height: 1.35;
}
.cues li::before, .swaps li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.swaps li::before { background: var(--warn); }
.section-label {
  margin: 12px 0 0; font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* Logger */
.swap-bar {
  background: rgba(212, 160, 23, 0.15); border: 1px solid rgba(212, 160, 23, 0.35);
  color: var(--warn); border-radius: 14px; padding: 10px 12px; margin-bottom: 12px;
  font-size: 14px; font-weight: 700;
}
.log-sets { display: grid; gap: 12px; margin: 14px 0; }
.set-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px;
}
.set-card.logged { border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
.set-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
}
.set-head strong { font-size: 16px; }
.set-badge {
  font-size: 11px; font-weight: 800; color: var(--ok);
  background: color-mix(in srgb, var(--ok) 15%, transparent); padding: 4px 8px; border-radius: 999px;
}
.stepper-row {
  display: flex; align-items: center; gap: 8px; margin: 8px 0;
}
.stepper-row .field-label { flex: 1; margin: 0; }
.step-btn {
  width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--raise); font-size: 22px; font-weight: 700; flex: 0 0 auto;
}
.step-val {
  min-width: 72px; text-align: center; font-weight: 800; font-size: 18px;
}
.step-val.tbc { color: var(--warn); }
.field-label {
  display: block; font-size: 12px; font-weight: 700; color: var(--muted);
  margin: 10px 0 6px;
}
.rpe-row, .score-row {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.chip {
  min-width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); font-weight: 700; font-size: 14px;
}
.chip.on { background: var(--accent); border-color: transparent; color: #fff; }
.feel-input, textarea {
  width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); padding: 10px 12px; resize: vertical;
}
.set-save {
  margin-top: 12px;
}
.log-actions { display: grid; gap: 10px; margin-bottom: 24px; }

.sheet { position: fixed; inset: 0; z-index: 40; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--bg-elev); border-radius: 24px 24px 0 0;
  padding: 20px 16px calc(20px + var(--safe-b));
  display: grid; gap: 10px; max-width: 480px; margin: 0 auto;
  max-height: 85dvh; overflow: auto;
}
.sheet-panel h2 { margin: 0 0 4px; font-size: 20px; }
.swap-options { display: grid; gap: 8px; }
.swap-opt {
  text-align: left; padding: 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card);
}
.swap-opt strong { display: block; margin-bottom: 4px; }

.rest-timer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--timer-bg, #2c1642); border-top: 1px solid var(--accent);
  padding: 12px 16px calc(12px + var(--safe-b));
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  max-width: 480px; margin: 0 auto;
}
.rest-main { display: flex; flex-direction: column; }
.rest-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.rest-countdown { font-size: 28px; font-weight: 800; letter-spacing: 0.02em; }
.rest-controls { display: flex; gap: 8px; }

/* History */
.pr-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.pr-badge {
  background: color-mix(in srgb, var(--accent-2) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-2) 35%, transparent);
  color: var(--accent-2);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
}
.pr-badge.muted-badge {
  background: rgba(205, 182, 220, 0.12);
  border-color: var(--line);
  color: var(--muted);
}
.hist-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.hist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 320px;
}
.hist-table th, .hist-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.hist-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hist-table tr:last-child td { border-bottom: none; }
.chart-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 14px;
}
.chart-card svg { width: 100%; height: auto; display: block; }
.chart-legend {
  display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--muted);
}
.chart-legend span::before {
  content: ""; display: inline-block; width: 10px; height: 10px;
  border-radius: 2px; margin-right: 6px; vertical-align: -1px;
}
.chart-legend .top::before { background: var(--accent-2); }
.chart-legend .e1rm::before { background: #d4a017; }
.kg-hint {
  font-size: 12px; color: var(--muted); margin: 0 0 8px; font-weight: 600;
}

.intro-note { margin: 0 0 12px; }
.body-form .grid-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.body-form .grid-fields label { display: block; }
.body-form input[type="number"],
.body-form input[type="date"],
.body-form input[type="text"],
.checkin-card input[type="text"],
.checkin-card textarea {
  width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); padding: 10px 12px;
}
.body-form .full { grid-column: 1 / -1; }
.checkin-banner {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-2) 40%, transparent);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.checkin-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px;
}
.goal-note {
  font-size: 12px; color: var(--muted); margin: 6px 0 0; font-weight: 600;
}

.lifestyle-block { margin-bottom: 14px; }
.supp-check {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px; margin: 8px 0;
}
.supp-check input { width: 22px; height: 22px; flex: 0 0 auto; }
.supp-check .meta { flex: 1; min-width: 0; }
.supp-check .name { font-weight: 750; font-size: 15px; }
.supp-check .dose { font-size: 12px; color: var(--muted); }
.timing-pill {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 14%, transparent); padding: 4px 8px; border-radius: 999px;
  white-space: nowrap;
}
.cycle-only-tag { color: var(--warn); font-size: 11px; font-weight: 700; }
.sauna-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; }

.lab-flag {
  display: inline-block; margin-top: 6px; padding: 6px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(212, 160, 23, 0.18); color: var(--warn);
}
.photo-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.photo-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
}
.photo-card img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; background: var(--surface-2);
}
.photo-card .cap { padding: 8px 10px; font-size: 12px; color: var(--muted); }
.compare-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px;
}
.compare-row img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; background: var(--surface-2);
}
.pose-tag {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  color: var(--accent-2); letter-spacing: 0.04em;
}

.prog-suggest {
  margin: 12px 0 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  font-size: 14px;
  line-height: 1.35;
}
.prog-suggest.hold {
  border-color: rgba(212,160,23,0.4);
  background: rgba(212,160,23,0.12);
}
.prog-suggest .k { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 4px; }
.summary-card .value { font-size: 18px; }

/* Keep lifestyle grids and stack controls within phone width. */
#lifestyle-mount { min-width: 0; width: 100%; }
#lifestyle-mount .grid-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
#lifestyle-mount input { box-sizing: border-box; min-width: 0; max-width: 100%; }
#lifestyle-mount .grid-fields input { width: 100%; }
.supp-slot > .field-label { display: block; margin: 12px 0; }
.supp-slot > .field-label input { display: block; width: 100%; margin-top: 6px; padding: 12px; }
.supp-slot { margin-top: 24px; }

/* step 9: import + unverified tag + labs browser */
.unv-tag {
  display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .02em; text-transform: lowercase;
  border: 1px solid var(--muted); color: var(--muted); vertical-align: middle;
}
.import-table td.num, .import-table th:nth-child(n+2) { text-align: right; }
.import-table tr.sub td { padding-top: 0; }
.import-actions { display: grid; gap: 8px; margin-top: 12px; }
.ok-note { color: var(--ok); font-weight: 600; }
.btn[disabled] { opacity: .45; }
.add-details > summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
.add-details[open] > summary { margin-bottom: 10px; }
.labs-tools { display: grid; gap: 8px; margin-bottom: 10px; }
.labs-tools input[type="search"] {
  width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); padding: 10px 12px; font-size: 16px;
}
.labs-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.labs-filters .chip { padding: 0 12px; }
.lab-group {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 8px; overflow: hidden;
}
.lab-group > summary {
  list-style: none; cursor: pointer; padding: 12px 14px; display: flex; flex-wrap: wrap;
  align-items: center; gap: 4px 10px;
}
.lab-group > summary::-webkit-details-marker { display: none; }
.lab-group .lab-name { font-weight: 700; flex: 1 1 60%; }
.lab-group .lab-latest { font-size: 13px; color: var(--muted); }
.lab-group > summary .lab-flag { margin-top: 0; }
.lab-group-body { padding: 0 14px 12px; }
.lab-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  border-top: 1px solid var(--line); padding: 8px 0;
}
.lab-row .lab-date { font-size: 13px; color: var(--muted); min-width: 84px; }
.lab-row .lab-val { font-weight: 700; }
.lab-row .lab-flag { margin-top: 0; }
.lab-row .lab-note { flex-basis: 100%; }
.dexa-report .kv-wrap { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.dexa-report .kv { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 4px 8px; font-size: 12px; }
.hist-table td:last-child { white-space: normal; min-width: 130px; }
.hist-table td .unv-tag { margin: 4px 0 0; }
.hist-table td .unv-tag + .muted { margin-top: 2px; }
.dexa-report .hist-table td, .dexa-report .hist-table th { padding: 8px 8px; }
.dexa-report .hist-table td:last-child { min-width: 0; white-space: nowrap; }
.import-table tr.sub td, .import-table td:first-child { white-space: normal; }
.step-input {
  width: 96px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); padding: 0 6px; -moz-appearance: textfield;
}
.step-input::placeholder { color: var(--warn); font-weight: 800; opacity: 1; }
.step-input::-webkit-outer-spin-button, .step-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Home shortcut grid (pink / purple / turquoise) */
.home-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0 16px;
}
.home-tile {
  min-height: 88px; border-radius: 16px; border: 1px solid transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 6px; font-weight: 800; font-size: 14px; line-height: 1.15; text-align: center;
  color: #fff; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.home-tile .ico { font-size: 26px; line-height: 1; }
.home-tile:active { transform: scale(0.97); }
.home-tile.t-pink { background: linear-gradient(150deg, var(--tile-1a), var(--tile-1b)); }
.home-tile.t-purple { background: linear-gradient(150deg, var(--tile-2a), var(--tile-2b)); }
.home-tile.t-teal { background: linear-gradient(150deg, var(--tile-3a), var(--tile-3b)); color: var(--on-accent-2); }
.home-tile.wide-tile { grid-column: 1 / -1; min-height: 60px; flex-direction: row; gap: 10px; }
.home-tile.wide-tile .ico { font-size: 22px; }
/* HRT */
.hrt-btns { display: flex; gap: 8px; margin-top: 8px; }
.hrt-btns .btn { flex: 1; }
.hrt-item { margin-top: 10px; }
.hrt-item .field-label input, .hrt-form input, .hrt-form select {
  display: block; width: 100%; margin-top: 6px; padding: 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 16px;
}
.hrt-form { display: grid; gap: 4px; margin-top: 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two-col[hidden] { display: none !important; }
#hrt-history .hist-table td:last-child { white-space: normal; }
.moved-card { opacity: 0.85; border-style: dashed; }

/* Sync with Reps — match HRT dark fields; space actions; quieter status */
#screen-sync #sync-token {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 16px;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
}
#screen-sync #sync-token::placeholder {
  color: var(--muted);
  opacity: 1;
  -webkit-text-fill-color: var(--muted);
}
#screen-sync .sync-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
#screen-sync #sync-status {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--muted);
  overflow-wrap: anywhere;
}
#screen-sync #sync-version { margin-top: 6px; }
#screen-sync #btn-app-update { margin-top: 4px; margin-bottom: 8px; }
/* Full program (read-only) */
.home-tile.t-program { background: linear-gradient(120deg, var(--tile-1a), var(--tile-2a) 60%, var(--tile-3a)); }
#screen-program details > summary { list-style: none; cursor: pointer; }
#screen-program details > summary::-webkit-details-marker { display: none; }
.fp-week { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fp-week-current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.fp-week > summary { display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 12px 14px; }
.fp-week > summary::after, .fp-day > summary::after { content: '▾'; flex: 0 0 auto; width: 18px; text-align: center; color: var(--muted); font-size: 18px; }
.fp-week:not([open]) > summary::after, .fp-day:not([open]) > summary::after { content: '▸'; }
.fp-week-title { display: block; font-weight: 800; font-size: 17px; }
.fp-sum { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.fp-week-body { display: grid; gap: 10px; padding: 0 10px 12px; }
.fp-day { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.fp-day > summary { display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 10px 12px; }
.fp-day.fp-today { border-color: var(--accent-2); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-2) 35%, transparent); }
.fp-day.fp-done { border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.fp-day.fp-skipped { opacity: 0.85; }
.fp-date { display: block; font-size: 12px; font-weight: 800; color: var(--accent-2); text-transform: uppercase; letter-spacing: .04em; }
.fp-dayname { display: block; font-weight: 750; font-size: 15px; line-height: 1.25; }
.fp-chip { flex: 0 0 auto; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.fp-chip-today { background: var(--accent-2); color: var(--on-accent-2); }
.fp-chip-done { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.fp-chip-skipped { background: rgba(205, 182, 220, 0.16); color: var(--muted); }
.fp-chip-upcoming { background: color-mix(in srgb, var(--accent-3) 25%, transparent); color: var(--accent-3-soft); }
.fp-chip-deload { background: rgba(212, 160, 23, 0.2); color: var(--warn); }
.fp-day-body { padding: 0 12px 12px; }
.fp-exlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fp-ex { border-top: 1px solid var(--line); padding-top: 10px; }
.fp-ex-top { display: flex; gap: 10px; align-items: flex-start; }
.fp-num { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px; background: var(--raise); display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--accent-2); }
.fp-ex-name { margin: 0; font-weight: 750; font-size: 15px; }
.fp-plan { margin: 4px 0 0; font-size: 15px; }
.fp-meta { margin: 3px 0 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
.fp-tag { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 800; background: var(--raise); color: var(--muted); text-transform: uppercase; }
.fp-tag-did { background: color-mix(in srgb, var(--accent-hi) 25%, transparent); color: var(--accent-soft); }
.fp-logged { margin: 8px 0 0 38px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--accent-hi) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent-hi) 35%, transparent); }
.fp-logged-h { margin: 0; font-size: 13px; }
.fp-sets { margin: 6px 0 0; padding-left: 20px; font-size: 15px; font-weight: 700; line-height: 1.5; }
.fp-notlogged { margin: 6px 0 0 38px; font-size: 13px; color: var(--muted); font-style: italic; }
.fp-extra { margin-top: 10px; padding: 8px 10px; border-radius: 10px; border: 1px dashed var(--line); }
.fp-note { margin-top: 10px; }
/* v24 home = shortcuts only; each shortcut opens its own page (hash routes, home.js) */
#screen-main.view-home .today-only { display: none !important; }
#screen-main.view-today .home-only { display: none !important; }
#screen-main.view-home .home-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
#screen-main.view-home .home-tile { min-height: 90px; font-size: 16px; }
#screen-main.view-home .home-tile .ico { font-size: 28px; }
#screen-main.view-home .home-tile.wide-tile { min-height: 64px; }
.home-tile.tall-tile { min-height: 84px !important; justify-content: flex-start; padding: 12px 18px; text-align: left; }
.home-tile .tile-txt { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.home-tile .tile-sub { font-size: 13px; font-weight: 600; opacity: 0.92; }
.home-tile.t-today { background: linear-gradient(120deg, var(--tile-3a), var(--tile-2a) 55%, var(--tile-1a)); }
.home-tile.t-more { background: var(--card); border-color: var(--line); color: var(--text); box-shadow: none; }
/* v24 each hand / total dropdown next to dumbbell weight */
.basis-select {
  display: block; margin: 6px auto 0; min-height: 40px; padding: 0 28px 0 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--raise); color: var(--text); font-weight: 700; font-size: 15px;
}

/* v25 — 'Watch how' demo video link (opens YouTube; no embeds) */
.ex-wrap { position: relative; min-width: 0; }
.ex-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; min-height: 44px; }
.ex-foot .progress-pill { margin-top: 0; }
.watch-space { flex: 0 0 132px; height: 44px; }
.watch-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent-2) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent-2) 55%, transparent);
  color: var(--accent-2); font-weight: 800; font-size: 14px; text-decoration: none;
  white-space: nowrap; max-width: 100%;
}
.watch-btn:active { background: color-mix(in srgb, var(--accent-2) 25%, transparent); }
.watch-btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.watch-ico { font-size: 12px; color: var(--accent); }
.watch-on-card { position: absolute; right: 16px; bottom: 16px; width: 132px; }
.watch-row { margin: 10px 0 0; display: flex; }
.fp-watch { margin: 8px 0 0 38px; }
