@import url('./custom-program.css');
:root {
  color-scheme: light;
  --bg: #faf7f0; --surface: #ffffff; --text: #211d23; --muted: #51454e;
  --pink: #ff55b5; --on-pink: #181025; --pink-ink: #90004f;
  --primary: #252329; --on-primary: #fff; --border: #65718a;
  --soft: #efedf7; --hero: #19161c; --hero-text: #f3f6ff; --error: #9c2028;
  --frame-hi: #fff; --frame-lo: #4e5b75; --frame-mid: #a8b3c6;
  --title: #252329; --title-end: #454148; --title-text: #fff;
  --lime: #ff55b5; --ice: #e6dce5; --mono: Consolas, "Courier New", monospace; --nav-height: 100px;
  --tg-safe-top: 0px; --tg-safe-bottom: 0px; --tg-safe-left: 0px; --tg-safe-right: 0px;
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  font-synthesis: none; text-rendering: optimizeLegibility;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090911; --surface: #19161b; --text: #f0f4ff; --muted: #b9c9e4;
  --pink: #ff55b5; --on-pink: #181025; --pink-ink: #ff9ed2;
  --primary: #ff55b5; --on-primary: #21101b; --border: #677d9f;
  --soft: #242024; --hero: #19161c; --hero-text: #f3f6ff; --error: #ffb4ab;
  --frame-hi: #8295b2; --frame-lo: #030818; --frame-mid: #344762;
  --title: #252329; --title-end: #454148; --title-text: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 1rem; line-height: 1.5; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
button:disabled { cursor: wait; opacity: .6; }
button, a, p, h1, h2, h3, strong, span { overflow-wrap: anywhere; }
p, h1, h2, h3 { margin: 0; }
h1 { font-size: 1.875rem; line-height: 1.15; font-weight: 720; letter-spacing: -.9px; white-space: pre-line; }
h2 { font-size: 1.25rem; line-height: 1.3; font-weight: 680; letter-spacing: -.35px; }
h3 { font-size: 1.0625rem; line-height: 1.4; font-weight: 650; letter-spacing: -.15px; }
svg { flex: 0 0 auto; vertical-align: middle; }
.app-shell { width: min(100%, 480px); margin: 0 auto; min-height: var(--tg-height, 100svh); padding-left: max(16px, var(--tg-safe-left)); padding-right: max(16px, var(--tg-safe-right)); }
.brand-bar { min-height: 66px; padding-top: max(8px, var(--tg-safe-top), env(safe-area-inset-top)); display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-size: 0.9375rem; letter-spacing: -.3px; border-bottom: 1px solid var(--border); }
.theme-control {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  flex-basis: 100%; min-width: 0; padding-block: 4px 8px;
  font-size: .875rem; letter-spacing: 0; color: var(--text);
}
.theme-control > span { flex: 0 0 auto; white-space: nowrap; }
.theme-control select {
  min-width: 0; min-height: 44px; width: 12rem; max-width: 80%;
  padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text); font: inherit; cursor: pointer;
}
.theme-control select:focus-visible { outline: 3px solid var(--pink-ink); outline-offset: 3px; }
.brand-mark { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; background: var(--primary); color: var(--on-primary); font-size: 26px; font-weight: 650; line-height: 1; padding-bottom: 5px; }
.brand-caption { margin-left: auto; font-size: 0.5625rem; font-weight: 650; letter-spacing: 1.25px; color: var(--muted); }
main { padding-bottom: calc(var(--nav-height) + 24px); min-width: 0; outline: none; }
.screen { padding-top: 22px; }
.screen > * + * { margin-top: 20px; }
.screen > .section-head { margin-top: 28px; }
.welcome-line { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 0.8125rem; text-transform: capitalize; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--soft); color: var(--primary); display: grid; place-items: center; font-size: 0.75rem; border: 1px solid var(--border); }
.page-heading { display: grid; gap: 10px; }
.eyebrow { font-size: 0.625rem; line-height: 1.4; letter-spacing: 1.7px; font-weight: 700; color: var(--muted); }
.muted { color: var(--muted); }
.tiny { font-size: 0.75rem; line-height: 1.5; }
.block { display: block; }
.hero-card { position: relative; isolation: isolate; overflow: hidden; padding: 22px; border-radius: 22px; color: var(--hero-text); background: var(--hero); }
.hero-card::after { content: ""; position: absolute; width: 220px; height: 220px; border: 1px solid #abc4b342; border-radius: 50%; right: -130px; top: 36px; box-shadow: 0 0 0 20px #abc4b30c, 0 0 0 40px #abc4b30c, 0 0 0 60px #abc4b30a; z-index: -1; }
.hero-top { display: flex; align-items: center; justify-content: space-between; }
.hero-card .eyebrow { color: #d0dfd3; }
.hero-symbol { color: #cad9ca; }
.hero-card h2 { font-size: 1.75rem; line-height: 1.15; letter-spacing: -.65px; white-space: pre-line; margin-top: 14px; max-width: 90%; }
.hero-program { color: #d0dfd3; font-size: 0.75rem; margin-top: 12px; max-width: 88%; }
.hero-bottom { display: flex; gap: 30px; align-items: end; margin-top: 18px; border-top: 1px solid #d0dfd334; padding-top: 12px; }
.hero-bottom strong { font-size: 1.6875rem; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-bottom span:not(.hero-lines) { display: block; color: #d0dfd3; font-size: 0.625rem; margin-top: 3px; }
.hero-lines { width: 52px; height: 34px; margin-left: auto; border: 1px solid #c1d2c568; border-radius: 20px 20px 8px 8px; position: relative; }
.hero-lines::before, .hero-lines::after { content: ""; position: absolute; border: 1px solid #c1d2c568; border-radius: inherit; inset: 5px; }
.hero-lines::after { inset: 10px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.section-head > * { min-width: 0; }
.section-head h2 { font-size: 1.125rem; }
.section-head.compact { margin-top: 22px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.625rem; font-weight: 650; padding: 6px 10px; border-radius: 30px; background: var(--soft); color: var(--text); flex: 0 1 auto; }
.badge.positive { color: var(--primary); }
.badge.positive::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.access-copy { margin-top: 6px; font-size: 0.75rem; }
.card { border: 1px solid var(--border); background: var(--surface); border-radius: 18px; padding: 18px; }
.card-kicker { display: flex; align-items: center; gap: 8px; font-size: 0.6875rem; color: var(--muted); font-weight: 600; }
.next-card h3 { font-size: 1.3125rem; margin-top: 12px; }
.next-card > .muted { font-size: 0.75rem; margin-top: 7px; }
.next-card .button { margin-top: 18px; }
.next-card > .tiny { text-align: center; margin-top: 9px; }
.button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; width: 100%; border: 1px solid transparent; border-radius: 13px; padding: 12px 16px; text-decoration: none; font-size: 0.875rem; font-weight: 650; line-height: 1.4; text-align: center; }
.button.primary { background: var(--primary); color: var(--on-primary); }
.button.secondary { border-color: var(--border); background: var(--surface); color: var(--text); }
.button.on-dark { border-color: #bed2c46b; background: transparent; color: #f4f6ee; }
.button.text-button { justify-content: start; width: auto; padding: 10px 0; color: var(--primary); font-size: 0.75rem; min-height: 44px; }
.history-shortcut { display: flex; align-items: center; gap: 12px; border: 0; padding: 10px 0; width: 100%; background: transparent; text-align: left; }
.history-shortcut > span:nth-child(2) { display: grid; flex: 1; min-width: 0; gap: 2px; }
.history-shortcut strong { font-size: 0.875rem; }
.check-circle { display: grid; place-items: center; background: var(--soft); color: var(--primary); width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto; }
.profile-details { border-top: 1px solid var(--border); padding-top: 8px; font-size: 0.875rem; }
.profile-details summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; min-height: 48px; list-style: none; font-weight: 600; }
.profile-details summary::-webkit-details-marker { display: none; }
.profile-details summary::after { content: "+"; color: var(--muted); margin-left: auto; padding-left: 12px; }
.profile-details[open] summary::after { content: "−"; }
.profile-details summary svg { display: none; }
.profile-details p { margin: 12px 0; }
.read-note, .notice { display: flex; gap: 10px; align-items: start; color: var(--muted); font-size: 0.75rem; padding: 12px 0; }
.read-note svg, .notice svg { margin-top: 2px; }
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 480px); padding: 9px 12px max(12px, var(--tg-safe-bottom), env(safe-area-inset-bottom)); gap: 8px; background: var(--surface); border-top: 1px solid var(--border); z-index: 20; }
.bottom-nav button { min-height: 54px; border: none; background: transparent; color: var(--muted); border-radius: 12px; display: grid; place-items: center; gap: 4px; padding: 6px; font-size: 0.625rem; line-height: 1.3; }
.bottom-nav button.is-active { color: var(--primary); background: var(--soft); font-weight: 650; }
.back-link { display: inline-flex; align-items: center; gap: 2px; border: 0; padding: 0; min-height: 44px; background: transparent; font-size: 0.8125rem; color: var(--muted); margin-top: 8px; }
.workout-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.completion-card { padding: 14px 16px; font-size: 0.75rem; }
progress { display: block; width: 100%; height: 5px; border: 0; border-radius: 4px; background: var(--soft); margin-top: 12px; accent-color: var(--primary); }
progress::-webkit-progress-bar { background: var(--soft); border-radius: 4px; }
progress::-webkit-progress-value { background: var(--primary); border-radius: 4px; }
.current-card { border-radius: 20px; padding: 22px; background: var(--hero); color: var(--hero-text); }
.current-card .card-kicker { color: #d0dfd3; letter-spacing: 1.3px; font-size: 0.625rem; }
.current-card h2 { font-size: 1.625rem; line-height: 1.2; margin-top: 16px; }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #b2d6b9; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-top: 1px solid #c1d2c53b; padding-top: 18px; margin-top: 20px; margin-bottom: 20px; }
.stat-grid > div { display: grid; gap: 5px; min-width: 0; }
.stat-grid strong { font-size: 1.5rem; line-height: 1.2; font-weight: 600; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.stat-grid span { color: #d0dfd3; font-size: 0.625rem; }
.rest-card { display: flex; align-items: center; gap: 14px; border: 1px solid var(--border); border-radius: 15px; padding: 16px; color: var(--primary); background: var(--soft); }
.rest-card > div { flex: 1; min-width: 0; }
.rest-card strong { font-size: 1.5625rem; letter-spacing: -.7px; font-variant-numeric: tabular-nums; display: block; }
.rest-card strong[data-finished="true"] { font-size: 1rem; letter-spacing: 0; }
.exercise-list { padding: 0 16px; }
.exercise-row { display: flex; gap: 12px; padding: 20px 0; }
.exercise-row + .exercise-row { border-top: 1px solid var(--border); }
.exercise-order { width: 28px; height: 28px; display: grid; place-items: center; background: var(--soft); color: var(--muted); border-radius: 8px; flex: 0 0 auto; font-size: 0.6875rem; margin-top: 3px; }
.exercise-row.is-current .exercise-order { background: var(--primary); color: var(--on-primary); }
.exercise-content { min-width: 0; flex: 1; }
.exercise-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.exercise-content h3 { font-size: 1rem; }
.exercise-content > p { margin-top: 7px; }
.saved-results { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.saved-results span { display: inline-flex; align-items: center; gap: 3px; color: var(--primary); background: var(--soft); font-size: 0.6875rem; padding: 5px 7px; border-radius: 6px; }
.plan-day .section-head { margin-bottom: 12px; }
.plan-day + .plan-day { margin-top: 28px; }
.technique-screen .page-heading h1 { font-size: 1.75rem; }
.technique-screen .page-heading .muted { font-size: 0.8125rem; }
.technique-intro { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--border); padding: 4px 0 22px; color: var(--primary); }
.technique-intro strong { font-size: 0.875rem; color: var(--text); }
.technique-step { display: flex; gap: 16px; padding: 6px 0 20px; border-bottom: 1px solid var(--border); }
.step-number { font-size: 0.9375rem; color: var(--primary); font-weight: 650; flex: 0 0 26px; padding-top: 2px; }
.technique-step > div { min-width: 0; }
.technique-step h2 { font-size: 1.125rem; margin-bottom: 9px; }
.technique-step p { line-height: 1.65; font-size: 0.9375rem; }
.control-step { border: 1px solid var(--border); background: var(--soft); border-radius: 16px; padding: 18px 14px; }
.media-note { padding-left: 2px; }
.progress-hero { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 0; }
.big-count { display: flex; align-items: center; justify-content: space-between; color: var(--primary); font-size: 5.375rem; line-height: 1.1; font-weight: 560; letter-spacing: -5px; padding-right: 12px; font-variant-numeric: tabular-nums; }
.big-count span { letter-spacing: 0; opacity: .7; }
.progress-hero > .tiny { margin-top: 8px; color: var(--muted); }
.comparison-card h3 { margin-bottom: 18px; }
.comparison-fact { display: grid; grid-template-columns: minmax(62px, .8fr) minmax(0, 2fr); gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.comparison-fact strong { font-size: 0.875rem; font-weight: 550; }
.comparison-fact.is-latest strong { color: var(--primary); }
.comparison-card > p { margin-top: 14px; }
.history-list { padding: 0 16px; }
.history-item { display: flex; align-items: center; gap: 14px; width: 100%; background: transparent; border: none; text-align: left; padding: 18px 0; }
.history-item + .history-item { border-top: 1px solid var(--border); }
.history-date { display: grid; text-align: center; background: var(--soft); border-radius: 10px; width: 45px; min-height: 51px; padding: 5px; flex: 0 0 auto; }
.history-date strong { color: var(--primary); font-size: 1.3125rem; line-height: 1.25; }
.history-date span { font-size: 0.5625rem; color: var(--muted); }
.history-copy { display: grid; gap: 5px; flex: 1; min-width: 0; }
.history-copy strong { font-size: 0.875rem; }
.history-copy .tiny { font-size: 0.625rem; }
.compact-copy { font-size: 0.875rem; }
.empty-state { padding: 44px 10px 26px; text-align: center; display: grid; justify-items: center; gap: 16px; }
.empty-state h2 { font-size: 1.5rem; max-width: 330px; }
.empty-state > p { max-width: 330px; font-size: 0.875rem; }
.empty-state .button { margin-top: 10px; max-width: 330px; }
.empty-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 24px; background: var(--soft); color: var(--primary); }
.skeleton { background: var(--soft); border-radius: 14px; }
.skeleton-title { width: 75%; height: 74px; }
.skeleton-card { height: 235px; }
.skeleton-card.small { height: 155px; }
.skeleton-line { height: 20px; width: 62%; }
.boot-placeholder { padding: 80px 0; text-align: center; color: var(--muted); }
.offline-banner, .refresh-note { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--soft); color: var(--text); font-size: 0.75rem; margin-top: 12px; }
.pagination-error { color: var(--error); font-size: 0.8125rem; margin-top: 12px; }
.skip-link { position: fixed; left: 12px; top: -120px; padding: 12px; z-index: 100; background: var(--surface); border: 2px solid var(--primary); }
.skip-link:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (min-width: 600px) { .app-shell { border-inline: 1px solid var(--border); padding-inline: 24px; } .brand-bar { min-height: 74px; } .screen { padding-top: 26px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }

/* TRAINER.OS / 9H3C: desktop window chrome, static decay, readable data panes. */
html { scroll-padding-bottom: calc(var(--nav-height) + 24px); }
body { background-image: repeating-linear-gradient(0deg, transparent 0 3px, #25232905 3px 4px), repeating-linear-gradient(90deg, transparent 0 39px, #25232907 39px 40px); }
button, a, summary { scroll-margin-block: 24px; }
svg { stroke-linecap: square; stroke-linejoin: miter; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.app-shell { position: relative; padding-top: max(12px, var(--tg-safe-top), env(safe-area-inset-top)); }
.brand-bar { min-height: 66px; gap: 10px; padding: 9px 10px; border: 3px solid; border-color: var(--frame-hi) var(--frame-lo) var(--frame-lo) var(--frame-hi); background: linear-gradient(90deg, var(--title), var(--title-end)); color: var(--title-text); box-shadow: inset 0 0 0 1px #091d65, 4px 4px 0 #05133a35; }
.brand-mark { width: 1.875rem; height: 2rem; padding: 0; border-radius: 0; flex: 0 0 auto; color: #21101b; background: var(--lime); border: 2px solid; border-color: #f1ffc7 #486300 #486300 #f1ffc7; font: 900 1.5rem/1 var(--mono); text-shadow: 1px 1px #d9ffa4; }
.brand-name { font: 800 1.0625rem/1.15 var(--mono); letter-spacing: -.7px; }
.brand-name > span { color: var(--lime); }
.brand-name small { display: block; margin-top: 4px; font: 400 .625rem/1.4 Tahoma, sans-serif; letter-spacing: 0; }
.brand-caption { max-width: 6.5rem; margin-left: auto; color: var(--title-text); font: 600 .5625rem/1.4 var(--mono); text-align: right; letter-spacing: .2px; }
.header-pixels { display: block; height: 8px; width: 56px; margin: 6px 0 0 auto; background: repeating-linear-gradient(90deg, #e6dce5 0 3px, transparent 3px 6px); clip-path: polygon(0 0,100% 0,100% 40%,70% 40%,70% 100%,26% 100%,26% 65%,0 65%); pointer-events: none; }
.screen { padding-top: 16px; }
.screen > * + * { margin-top: 18px; }
.welcome-line { font: 500 .6875rem/1.5 var(--mono); }
.avatar { width: 2rem; height: 2rem; border-radius: 0; border: 1px solid var(--frame-lo); box-shadow: inset 1px 1px var(--frame-hi); }
.page-heading { gap: 7px; }
h1 { font-size: 1.75rem; line-height: 1.18; font-weight: 800; letter-spacing: -.7px; }
h1, h2, h3 { hyphens: auto; }
.eyebrow { font: 700 .625rem/1.5 var(--mono); letter-spacing: .65px; }
.page-heading > .eyebrow { border-left: 5px solid var(--primary); padding-left: 7px; }
.desktop-fragments { position: relative; height: 14px; overflow: hidden; pointer-events: none; background: repeating-linear-gradient(90deg, var(--border) 0 1px, transparent 1px 6px) left bottom / 35% 4px no-repeat; }
.desktop-fragments i { position: absolute; display: block; height: 4px; background: var(--primary); right: 0; top: 0; width: 31%; }
.desktop-fragments i:nth-child(2) { right: 16%; top: 5px; width: 28%; opacity: .65; background: repeating-linear-gradient(90deg, var(--primary) 0 7px, transparent 7px 10px); }
.desktop-fragments i:nth-child(3) { right: 4%; top: 10px; width: 12%; background: #617cc1; }
.desktop-fragments::after { content: ""; position: absolute; width: 12px; height: 4px; right: 11%; top: 1px; background: var(--lime); box-shadow: 24px 6px 0 #83b9ff, -48px 10px 0 #83b9ff; pointer-events: none; }
.card, .hero-card, .current-card, .technique-step, .progress-hero, .empty-state { border: 3px solid; border-color: var(--frame-hi) var(--frame-lo) var(--frame-lo) var(--frame-hi); border-radius: 0; box-shadow: inset 0 0 0 1px var(--frame-mid), 4px 4px 0 #06153c2b; }
.card { padding: 14px; background: var(--surface); }
.hero-card, .current-card { position: relative; isolation: isolate; padding: 0 14px 16px; background: var(--hero); color: var(--hero-text); overflow: hidden; }
.hero-card::after { content: ""; position: absolute; z-index: -1; width: 78px; height: 53px; right: 4px; top: auto; bottom: 12px; border: 0; border-radius: 0; box-shadow: none; opacity: .5; pointer-events: none; background: repeating-conic-gradient(#7ea7ff85 0 25%, transparent 0 50%) 0 0 / 4px 4px; clip-path: polygon(25% 0,100% 0,100% 30%,70% 30%,70% 44%,95% 44%,95% 63%,55% 63%,55% 81%,78% 81%,78% 100%,0 100%,0 63%,25% 63%); }
.system-title, .card-kicker, .window-title, .completion-card > .eyebrow, .progress-hero > .eyebrow, .comparison-card > .eyebrow { display: flex; align-items: center; gap: 8px; margin: -11px -11px 14px; padding: 8px 9px; color: var(--title-text); background: linear-gradient(90deg, var(--title), var(--title-end)); border-bottom: 2px solid #0a226f; box-shadow: inset 0 1px #779aff; font: 700 .6875rem/1.45 var(--mono); letter-spacing: .2px; }
.system-title::after, .window-title::after { content: ""; width: 26px; height: 10px; margin-left: auto; flex: 0 0 auto; background: repeating-linear-gradient(0deg, #e6dce599 0 1px, transparent 1px 3px); pointer-events: none; }
.system-title { margin: 3px -11px 0; justify-content: space-between; }
.system-title .eyebrow { color: var(--title-text); font: inherit; letter-spacing: inherit; }
.current-card > .system-title::after { display: none; }
.window-mode { flex: 0 0 auto; padding: 2px 5px; border: 1px solid #e6dce5; font: 500 .625rem/1.4 var(--mono); color: var(--title-text); }
.hero-symbol { display: none; }
.hero-signature { margin-top: 12px; color: var(--lime); font: 800 .8125rem/1.3 var(--mono); letter-spacing: 1.5px; }
.hero-card h2.hero-program { margin-top: 5px; max-width: 100%; color: var(--hero-text); font-size: 1.5rem; line-height: 1.25; letter-spacing: -.3px; }
.hero-bottom { display: grid; grid-template-columns: 1fr 1.35fr; gap: 12px; align-items: start; margin-top: 12px; padding: 9px 5px 0; border-top: 2px solid #6883b0; }
.hero-bottom > div { min-width: 0; }
.hero-bottom strong { font: 700 1.375rem/1.2 var(--mono); color: var(--lime); }
.hero-bottom span:not(.hero-lines) { color: #d2dfff; font-size: .625rem; max-width: 8rem; }
.hero-lines { display: none; }
.section-head, .workout-meta, .exercise-label { flex-wrap: wrap; }
.section-head h2 { font: 700 1rem/1.4 Tahoma, sans-serif; }
.screen > .section-head { border-bottom: 3px double var(--border); padding-bottom: 8px; margin-top: 24px; }
.badge { border-radius: 0; font: 600 .625rem/1.5 var(--mono); padding: 5px 8px; border: 1px solid var(--frame-lo); box-shadow: inset 1px 1px var(--frame-hi); }
.badge.positive::before { width: 6px; height: 6px; border-radius: 0; }
.next-card { border-top-color: var(--frame-hi); }
.next-card h3 { margin-top: 0; font-size: 1.1875rem; }
.next-card .button { margin-top: 15px; }
.button { border-radius: 0; border: 2px solid; border-color: var(--frame-hi) var(--frame-lo) var(--frame-lo) var(--frame-hi); box-shadow: inset 0 0 0 1px var(--frame-mid), 2px 2px 0 #07142d32; font-weight: 700; }
.button.primary { background: var(--primary); color: var(--on-primary); border-color: #8ba8ff #071c62 #071c62 #8ba8ff; box-shadow: inset 0 0 0 1px #ffffff2e, 2px 2px 0 #07142d5c; }
:root[data-theme="dark"] .button.primary { border-color: #edffb9 #577300 #577300 #edffb9; }
.button.secondary { background: var(--surface); border-color: var(--frame-hi) var(--frame-lo) var(--frame-lo) var(--frame-hi); }
.button.on-dark { background: #d9dde5; color: #19161c; border-color: #fff #536481 #536481 #fff; box-shadow: inset 0 0 0 1px #abb7ca, 2px 2px 0 #0008; }
.button.text-button { border: 0; background: transparent; box-shadow: none; text-decoration: underline; text-underline-offset: 4px; }
.button:active, .bottom-nav button:active { box-shadow: inset 2px 2px #0004; }
.history-shortcut { padding: 12px 10px; background: var(--surface); border: 2px solid; border-color: var(--frame-hi) var(--frame-lo) var(--frame-lo) var(--frame-hi); }
.check-circle, .exercise-order, .saved-results span, .history-date, .empty-icon { border-radius: 0; }
.profile-details { padding: 0 10px; background: var(--surface); border: 2px solid; border-color: var(--frame-hi) var(--frame-lo) var(--frame-lo) var(--frame-hi); }
.read-note, .notice { background: var(--soft); padding: 10px; border: 1px solid var(--border); box-shadow: inset 1px 1px var(--frame-lo); }
.bottom-nav { display: flex; flex-wrap: wrap; gap: 6px; background: var(--surface); padding-left: max(10px, var(--tg-safe-left), env(safe-area-inset-left)); padding-right: max(10px, var(--tg-safe-right), env(safe-area-inset-right)); border-top: 3px solid var(--frame-hi); box-shadow: 0 -1px var(--frame-lo); }
.bottom-nav button { flex: 1 0 6.5rem; display: flex; justify-content: center; gap: 5px; border-radius: 0; font-size: .6875rem; color: var(--text); border: 2px solid; border-color: var(--frame-hi) var(--frame-lo) var(--frame-lo) var(--frame-hi); box-shadow: inset 0 0 0 1px var(--frame-mid); }
.bottom-nav button span { overflow-wrap: normal; }
.bottom-nav button.is-active { background: var(--soft); color: var(--primary); border-color: var(--frame-lo) var(--frame-hi) var(--frame-hi) var(--frame-lo); box-shadow: inset 1px 1px var(--frame-mid); }
.back-link { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.completion-card { padding: 14px; }
.completion-card strong { font-family: var(--mono); }
progress { height: 12px; border: 1px solid; border-color: var(--frame-lo) var(--frame-hi) var(--frame-hi) var(--frame-lo); border-radius: 0; background: var(--soft); }
progress::-webkit-progress-bar { background: var(--soft); border-radius: 0; }
progress::-webkit-progress-value { border-radius: 0; background: repeating-linear-gradient(90deg, var(--primary) 0 8px, transparent 8px 10px); }
progress::-moz-progress-bar { background: repeating-linear-gradient(90deg, var(--primary) 0 8px, transparent 8px 10px); }
.current-card h2 { font-size: 1.375rem; line-height: 1.3; margin-top: 8px; }
.live-dot { display: none; }
.exercise-position { margin-top: 14px; color: #d2dfff; font: 500 .6875rem/1.5 var(--mono); }
.current-set { margin-top: 14px; color: var(--lime); font-weight: 700; font-size: .875rem; }
.current-saved { margin-top: 5px; color: #d2dfff; }
.stat-grid { margin-block: 16px; padding: 10px; border: 2px solid; border-color: #050d28 #60789c #60789c #050d28; background: #0c1739; }
.stat-grid strong { font: 700 1.25rem/1.2 var(--mono); color: #f3f6ff; }
.stat-grid span { color: #d2dfff; }
.rest-card { flex-wrap: wrap; border-radius: 0; border: 2px solid; border-color: var(--frame-lo) var(--frame-hi) var(--frame-hi) var(--frame-lo); box-shadow: inset 1px 1px var(--frame-mid); }
.rest-card strong { font-family: var(--mono); }
.exercise-list { padding: 0 12px; }
.exercise-order { width: 1.75rem; height: 1.75rem; border: 1px solid var(--border); font-family: var(--mono); }
.exercise-row + .exercise-row { border-top: 3px double var(--border); }
.technique-intro { padding: 12px; border: 2px solid; border-color: var(--frame-lo) var(--frame-hi) var(--frame-hi) var(--frame-lo); background: var(--soft); }
.technique-screen .page-heading h1 { font-size: 1.375rem; }
.technique-step { display: block; padding: 3px; background: var(--surface); }
.window-title { margin: 0; padding: 8px; }
.window-title h2 { font: 700 .875rem/1.45 Tahoma, sans-serif; margin: 0; letter-spacing: 0; }
.step-number { flex: 0 0 auto; color: var(--title-text); padding: 0; font: 700 .75rem/1 var(--mono); }
.technique-step .technique-copy { padding: 14px 12px; margin: 5px; font-size: .9375rem; line-height: 1.6; background: var(--soft); border: 1px solid; border-color: var(--frame-lo) var(--frame-hi) var(--frame-hi) var(--frame-lo); }
.control-step .window-title { border-left: 4px solid var(--lime); }
.progress-hero { padding: 14px; background: var(--surface); }
.big-count { font: 700 4.5rem/1.1 var(--mono); letter-spacing: -4px; padding: 8px; color: var(--primary); background: var(--soft); border: 2px solid; border-color: var(--frame-lo) var(--frame-hi) var(--frame-hi) var(--frame-lo); }
.comparison-card h3 { margin-bottom: 12px; }
.comparison-fact { padding: 10px 6px; background: var(--soft); border-top: 2px solid var(--border); }
.history-list { padding: 0 12px; }
.history-item + .history-item { border-top: 3px double var(--border); }
.history-date { width: 2.8125rem; border: 1px solid var(--border); font-family: var(--mono); }
.empty-state { margin-top: 20px; padding: 24px 14px; background: var(--surface); }
.empty-icon { background: var(--soft); border: 2px solid; border-color: var(--frame-lo) var(--frame-hi) var(--frame-hi) var(--frame-lo); }
.skeleton { border-radius: 0; border: 1px solid var(--rule); background: var(--soft); }
.offline-banner, .refresh-note { border-radius: 0; border: 2px solid var(--border); }
@media (max-width: 380px) {
  .stat-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 5rem), 1fr)); }
  .comparison-fact { grid-template-columns: 1fr; gap: 6px; }
}
@media (min-width: 600px) { .app-shell { border-inline: 3px double var(--border); } }
@media (forced-colors: active) {
  .card, .hero-card, .current-card, .window-title, .bottom-nav button, .button { border: 2px solid CanvasText; }
  .desktop-fragments, .hero-card::after, .header-pixels { display: none; }
}

/* CHAOS OS: original sticker art stays in reserved, non-interactive art zones. */
.brand-bar { box-shadow: inset 0 0 0 1px #091d65, 3px 3px 0 var(--pink); }
.brand-caption { color: #fff; }
.brand-name > span { text-shadow: 2px 0 #ff55b577; }
.desktop-fragments i:nth-child(3) { background: var(--pink); }
.page-heading > .eyebrow { color: var(--pink-ink); }
.hero-card { box-shadow: inset 0 0 0 1px var(--frame-mid), 4px 4px 0 var(--pink); }
.hero-punk { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); align-items: center; gap: 4px; min-height: 112px; margin-top: 8px; }
.hero-title-copy { min-width: 0; }
.hero-signature { margin-top: 0; font-size: 1.125rem; letter-spacing: .5px; }
.hero-signature > span { display: block; color: #ff9ed2; font: 700 .5625rem/1.5 var(--mono); letter-spacing: 1px; margin-top: 3px; }
.hero-card h2.hero-program { font-size: 1.25rem; margin-top: 8px; }
.hero-bottom { margin-top: 8px; border-top-color: #ff55b58c; }
.hero-card::after { opacity: .22; width: 60px; }
.chaos-sticker { display: inline-block; width: 68px; height: 68px; flex: 0 0 auto; pointer-events: none; user-select: none; vertical-align: middle; }
.chaos-sticker svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sticker-cluster { position: relative; width: 108px; height: 112px; justify-self: end; overflow: hidden; pointer-events: none; user-select: none; }
.sticker-cluster .sticker-skull { position: absolute; width: 78px; height: 78px; left: 8px; top: 22px; transform: rotate(-13deg); z-index: 2; }
.sticker-cluster .sticker-fuel { position: absolute; width: 82px; height: 100px; right: 10px; top: 5px; transform: rotate(12deg); }
.pixel-spark { position: absolute; right: 4px; bottom: 1px; color: var(--pink); font: 900 34px/1 var(--mono); text-shadow: 2px 2px #fff; }
.punk-micro { color: var(--pink-ink); font: 700 .625rem/1.5 var(--mono); letter-spacing: .3px; }
.current-card { box-shadow: inset 0 0 0 1px var(--frame-mid), 4px 4px 0 #83b9ff; }
.workout-context { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; }
.workout-context > div { min-width: 0; }
.workout-context .exercise-position { margin-top: 0; }
.workout-context .chaos-sticker { width: 52px; height: 52px; transform: rotate(6deg); }
.workout-context .punk-micro { color: #ff9ed2; margin-top: 4px; }
.window-mode { background: var(--panel-band); color: var(--pink-ink); border-color: var(--border); }
.stat-grid { border-right-color: #ff55b5; }
.rest-card > span { color: var(--pink-ink); font-family: var(--mono); font-size: .625rem; }
.technique-intro { gap: 10px; }
.technique-intro .chaos-sticker { width: 62px; height: 62px; transform: rotate(-5deg); }
.technique-intro .punk-micro { margin-top: 5px; }
.control-step .window-title { border-left-color: var(--pink); }
.progress-hero { box-shadow: inset 0 0 0 1px var(--frame-mid), 4px 4px 0 var(--pink); }
.progress-hero .punk-micro { margin-top: 10px; }
.big-count .chaos-sticker { width: 86px; height: 86px; opacity: 1; transform: rotate(7deg); }
.comparison-fact.is-latest { border-left: 3px solid var(--pink); }
.bottom-nav button.is-active { box-shadow: inset 0 -3px var(--pink); }
.saved-results span { border-left: 2px solid var(--pink); }
@media (forced-colors: active) {
  .chaos-sticker, .sticker-cluster, .punk-micro[aria-hidden], .hero-signature { display: none; }
  .hero-punk { grid-template-columns: 1fr; min-height: 0; }
}

/* 9H3E / ALT INTERNET: poster composition is the component system, not an art overlay. */
body { background-image: radial-gradient(var(--border) .6px, transparent .6px); background-size: 8px 8px; }
.app-shell { background: var(--bg); border-inline: 1px solid var(--border); }
.brand-bar { background: #171426; border: 2px solid #fff; box-shadow: 4px 4px 0 #ff55b5; min-height: 56px; }
.brand-mark { background: #ff55b5; color: #171426; transform: rotate(-7deg); border: 2px solid #fff; box-shadow: 3px 2px #ff55b5; }
.brand-name { font-weight: 900; font-style: italic; }
.brand-caption { color: #ff55b5; }
.header-pixels { background: repeating-linear-gradient(90deg,#ff55b5 0 4px,transparent 4px 7px); }
.page-heading { border: 0; padding: 0 0 5px; position: relative; }
.page-heading > .eyebrow { color: #171426; background: #ff55b5; border: 2px solid #171426; padding: 4px 7px; width: fit-content; box-shadow: 3px 3px 0 var(--pink); transform: rotate(-1deg); }
h1 { font-family: Arial, sans-serif; font-size: 2.25rem; font-weight: 950; letter-spacing: -1.4px; line-height: 1.03; text-transform: uppercase; }
.desktop-fragments { height: 8px; background: repeating-conic-gradient(var(--text) 0 25%, transparent 0 50%) 0 0/8px 8px; margin-top: 3px; }
.desktop-fragments i, .desktop-fragments::after { display: none; }
.screen > * + * { margin-top: 16px; }
.home-screen .welcome-line { margin-bottom: 8px; }
.home-screen .page-heading { margin-top: 8px; }
.home-screen h1 { font-size: 1.9rem; }
.card, .hero-card, .current-card, .technique-step, .progress-hero, .empty-state { border: 2px solid var(--border); box-shadow: 4px 4px 0 var(--panel-shadow); }
.card { background: var(--surface); }
.system-title, .card-kicker, .window-title, .completion-card > .eyebrow, .progress-hero > .eyebrow, .comparison-card > .eyebrow { background: var(--panel-band); color: var(--text); border-bottom: 1px solid var(--rule); box-shadow: none; letter-spacing: .7px; }
.system-title::after, .window-title::after { background: repeating-conic-gradient(#fff 0 25%,#252329 0 50%) 0 0/6px 6px; height: 14px; }
.hero-card { background: #252329; color: #fff; box-shadow: 5px 5px 0 #ff55b5; border-color: #171426; padding-bottom: 10px; }
.hero-card .system-title { background: #171426; }
.hero-punk { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); min-height: 94px; margin-top: 4px; gap: 12px; }
.hero-signature { font: italic 950 1.15rem/1.05 Arial,sans-serif; color: #fff; text-shadow: 2px 2px #171426; letter-spacing: -.6px; }
.hero-signature > span { font-size: .5rem; letter-spacing: .2px; color: #171426; background: #ff55b5; padding: 3px; width: fit-content; text-shadow: none; transform: rotate(-3deg); }
.hero-card h2.hero-program { font-size: 1.05rem; margin-top: 10px; }
.sticker-cluster { height: 100px; width: 110px; background: repeating-conic-gradient(#fff 0 25%,#171426 0 50%) 0 0/18px 18px; border: 2px solid #fff; border-radius: 50% 50% 4px 4px; }
.sticker-cluster .sticker-skull { width: 68px; height: 68px; top: 9px; left: 0; }
.sticker-cluster .sticker-fuel { width: 70px; height: 84px; top: 0; right: 2px; }
.collage-seal { position: absolute; bottom: 2px; left: 3px; right: 3px; padding: 2px; background: #ff55b5; color: #171426; font: 900 9px/1.2 var(--mono); text-align: center; transform: rotate(-4deg); border: 1px solid #171426; }
.hero-bottom { border: 0; gap: 6px; padding: 0; margin-top: 6px; }
.hero-bottom > div { background: #171426; border-left: 4px solid #ff55b5; padding: 6px 8px; }
.hero-bottom strong { font-size: 1.15rem; }
.hero-bottom span:not(.hero-lines) { font-size: .6rem; margin-top: 1px; }
.hero-card::after { display: none; }
.next-card { border-radius: 0 18px 0 0; border-color: var(--text); padding: 12px; background: var(--surface); position: relative; }
.next-card .card-kicker { background: #ff55b5; color: #171426; margin: -9px -9px 10px; border-radius: 0 12px 0 0; box-shadow: none; }
.next-card .button { margin-top: 10px; }
.next-card > .tiny { margin-top: 6px; }
.button { border: 2px solid var(--text); box-shadow: 3px 3px 0 var(--text); font-weight: 800; }
.button.primary, .button.on-dark { background: #ff55b5; color: #21101b; border: 2px solid #171426; box-shadow: 4px 4px 0 #ff55b5; }
.button.primary svg, .button.on-dark svg { background: #171426; color: #ff55b5; padding: 3px; width: 26px; height: 26px; }
.button.secondary { border: 2px solid var(--text); box-shadow: 3px 3px 0 var(--pink); }
.button.text-button { color: var(--primary); border: 0; box-shadow: none; background: transparent; }
.badge { border: 2px solid var(--text); box-shadow: 2px 2px 0 var(--pink); font-weight: 800; }
.badge.positive { background: #ff55b5; color: #21101b; }
.chaos-tape { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px; padding: 5px 8px; background: #ff55b5; color: #171426; border: 2px solid #171426; font: 800 .625rem/1.4 var(--mono); pointer-events: none; }
.chaos-tape b { flex: 1; min-width: 0; }
.chaos-tape > span { font-size: 1rem; }
.tape-barcode { width: 27px; height: 16px; background: repeating-linear-gradient(90deg,#171426 0 2px,transparent 2px 4px,#171426 4px 5px,transparent 5px 8px); }
.section-head h2 { font: 900 1.1rem/1.3 Arial,sans-serif; text-transform: uppercase; }
.screen > .section-head { border-bottom: 5px solid var(--text); }
.completion-card { background: #ff55b5; color: #21101b; box-shadow: 4px 4px #ff55b5; }
.completion-card > .eyebrow { color: var(--pink-ink); }
.completion-card strong { font-size: 1.5rem; }
.completion-card progress { border: 1px solid var(--border); height: 18px; }
.completion-card progress::-webkit-progress-value { background: repeating-linear-gradient(90deg,var(--pink-ink) 0 8px,var(--primary) 8px 11px); }
.current-card { background: #171426; border-color: #ff55b5; box-shadow: 4px 4px #252329; }
.current-card h2 { font: 900 1.65rem/1.15 Arial,sans-serif; }
.current-card .chaos-tape { margin-top: 10px; padding: 3px 6px; background: #ff55b5; }
.workout-context .chaos-sticker { background: #ff55b5; border-radius: 50%; border: 2px solid #fff; }
.stat-grid { gap: 6px; background: transparent; padding: 0; border: 0; }
.stat-grid > div { background: #ff55b5; padding: 10px 4px; border: 2px solid #fff; }
.stat-grid > div:nth-child(2) { background: #ff55b5; }
.stat-grid strong, .stat-grid span { color: #171426; }
.rest-card { background: var(--soft); color: var(--text); border: 2px solid var(--primary); padding: 12px; }
.rest-card .muted, .rest-card > span { color: var(--muted); }
.rest-card strong { color: var(--pink-ink); font-size: 2rem; }
.exercise-list { border: 0; background: transparent; box-shadow: none; padding: 0; }
.exercise-row { padding: 14px 10px; border: 2px solid var(--text); margin-bottom: 10px; background: var(--surface); box-shadow: 3px 3px 0 var(--text); }
.exercise-row + .exercise-row { border-top: 2px solid var(--text); }
.exercise-row.is-current { border-left: 7px solid var(--pink); }
.exercise-order { background: var(--panel-band); color: var(--pink-ink); border: 2px solid var(--border); box-shadow: 2px 2px #ff55b5; transform: rotate(-5deg); }
.technique-screen .page-heading h1 { font: 900 1.65rem/1.08 Arial,sans-serif; }
.technique-intro { background: #f3d9e7; color: #171426; border: 2px solid #171426; border-radius: 18px 0 18px 0; box-shadow: 4px 4px #ff55b5; }
.technique-intro .muted, .technique-intro .punk-micro { color: #171426; }
.technique-intro .chaos-sticker { background: #ff55b5; border: 2px solid #171426; border-radius: 50%; }
.technique-step { padding: 0; border-left: 7px solid #252329; }
.technique-step:nth-of-type(2) { border-left-color: #ff55b5; }
.technique-step:nth-of-type(3) { border-left-color: #ff55b5; }
.window-title { background: var(--surface); color: var(--text); border-bottom: 2px dashed var(--border); box-shadow: none; padding: 10px; }
.window-title::after { display: none; }
.step-number { background: #171426; color: #ff55b5; font-size: 1.4rem; padding: 6px; transform: rotate(-5deg); }
.technique-step .technique-copy { border: 0; background: var(--surface); padding: 10px; margin: 0; }
.control-step .window-title { border-left: 0; }
.progress-hero { background: #252329; color: #fff; border-color: #171426; box-shadow: 5px 5px #ff55b5; }
.progress-hero > .eyebrow { background: #171426; }
.big-count { background: #ff55b5; color: #171426; border: 3px solid #171426; font: italic 950 5rem/1 Arial,sans-serif; box-shadow: 4px 4px #ff55b5; }
.big-count .chaos-sticker { background: #ff55b5; border: 2px solid #171426; border-radius: 50%; }
.progress-hero .punk-micro { color: #fff; border-top: 3px dotted #ff55b5; padding-top: 8px; }
.comparison-card { border-top: 7px solid var(--pink); }
.comparison-fact { border: 1px dashed var(--border); margin-top: 8px; }
.history-list { border: 0; padding: 0; background: transparent; box-shadow: none; }
.history-item { padding: 12px 8px; margin-bottom: 10px; background: var(--surface); border: 2px solid var(--text); box-shadow: 3px 3px var(--text); }
.history-item + .history-item { border-top: 2px solid var(--text); }
.history-date { background: #ff55b5; color: #171426; border: 2px solid #171426; transform: rotate(-4deg); }
.history-date strong, .history-date span { color: #171426; }
.bottom-nav { background: #171426; border-top: 4px solid #ff55b5; box-shadow: 0 -4px 0 #ff55b5; gap: 8px; }
.bottom-nav button { background: #fff; color: #171426; border: 2px solid #171426; box-shadow: 2px 2px #ff55b5; font-weight: 800; }
.bottom-nav button svg { background: #ff55b5; border: 1px solid #171426; padding: 3px; width: 26px; height: 26px; }
.bottom-nav button.is-active { background: #ff55b5; color: #171426; border: 2px solid #fff; box-shadow: 2px 2px #252329; }
.bottom-nav button.is-active svg { background: #171426; color: #ff55b5; border-color: #171426; }
.read-note, .notice { border: 2px dashed var(--border); box-shadow: none; }
.profile-details, .history-shortcut { border: 2px solid var(--text); box-shadow: 3px 3px var(--pink); }
@media (min-width: 600px) { .app-shell { border-inline: 4px solid var(--text); } }
@media (forced-colors: active) { .chaos-tape, .collage-seal { display: none; } }

.progress-hero > .tiny { color: #fff; margin-top: 12px; }
.technique-intro strong { color: #171426; }
.progress-screen h1 { font-size: 1.65rem; }

/* 9H3G-FINAL: free objects, interrupted editorial rhythm, two distinct worlds. */
.app-shell { overflow-x: clip; background: radial-gradient(circle at 20% 12%,#ffadd75c,transparent 35%),linear-gradient(90deg,#4541480b 1px,transparent 1px),linear-gradient(#4541480b 1px,transparent 1px),var(--bg); background-size:auto,18px 18px,18px 18px; }
.brand-bar { border:0; border-bottom:3px solid var(--text); background:transparent; color:var(--text); box-shadow:none; padding-inline:0; }
.brand-name>span { color:var(--pink-ink); }
.brand-caption { color:var(--muted); }
.brand-name { letter-spacing:-1px; }
.page-heading { position:relative; z-index:3; gap:7px; }
.page-heading h1 { font:italic 950 2.2rem/.94 Arial,sans-serif; letter-spacing:-1.4px; text-transform:uppercase; text-shadow:2px 2px #ff55b5; }
.page-heading .eyebrow { justify-self:start; max-width:100%; background:#ff55b5; color:#171426; border:1px solid #171426; padding:4px 7px; box-shadow:3px 3px #171426; transform:rotate(-2deg); font:.59rem/1.45 var(--mono); letter-spacing:.5px; }
.page-heading .desktop-fragments { display:none; }
.home-screen .welcome-line { display:none; }
.home-screen .page-heading h1 { max-width:300px; font-size:2.7rem; }
.art-stage { position:relative; isolation:isolate; overflow: visible; pointer-events:none; margin:38px 0 40px; height:244px; border:0; background:none; box-shadow:none; }
.art-stage::before { content:''; position:absolute; z-index:-2; inset:22px -3px 10px 12px; background:#e5dce3; clip-path:polygon(0 4%,94% 0,100% 90%,5% 100%); transform:rotate(-5deg); }
.art-stage::after { content:''; position:absolute; z-index:-1; inset:0 -6px -8px 8px; background:repeating-conic-gradient(#171426 0 25%,transparent 0 50%) 0 0/18px 18px; clip-path:polygon(0 0,38% 2%,40% 9%,3% 11%,0 94%,90% 91%,92% 100%,1% 100%); transform:rotate(4deg); }
.scene-art { position:absolute; display:block; object-fit:contain; pointer-events:none; user-select:none; filter:drop-shadow(2px 3px 0 #171426); }
.art-inscription { position:absolute; z-index:-1; left:2%; right:0; top:5%; color:#252329; font:italic 950 2.9rem/.9 Impact,'Arial Narrow',sans-serif; letter-spacing:-1px; max-width:95%; transform:rotate(-7deg); opacity:.75; }
.art-serial { position:absolute; bottom:-23px; left:4%; padding:2px 6px; background:#171426; color:#fff; font:700 9px/1.5 var(--mono); letter-spacing:1px; transform:rotate(2deg); z-index:7; }
.art-slot-0 { left:-5%; top:-12%; width:72%; height:117%; transform:rotate(-9deg); z-index:4; }
.art-slot-1 { right:-5%; top:2%; width:57%; height:106%; transform:rotate(14deg); z-index:3; }
.art-slot-2 { right:-2%; bottom:-11%; width:40%; height:62%; transform:rotate(12deg); z-index:5; }
.art-slot-3 { left:1%; bottom:-12%; width:27%; height:44%; transform:rotate(-10deg); z-index:6; }
.art-slot-4 { right:2%; top:-13%; width:32%; height:44%; transform:rotate(13deg); z-index:6; }
.art-slot-5 { left:47%; top:-8%; width:23%; height:35%; transform:rotate(-12deg); z-index:7; }
.art-slot-6 { left:38%; bottom:-12%; width:24%; height:36%; transform:rotate(12deg); z-index:7; }
.art-home { height:195px; margin-top:30px; margin-bottom:43px; }
.art-home [data-art='cat-chrome'] { display:none; }
.art-home [data-art='can-acid'] { right:-5%; top:-2%; width:52%; height:108%; z-index:3; transform:rotate(13deg); }
.art-home [data-art='supp-creatine'] { left:44%; bottom:-16%; width:39%; height:62%; z-index:5; }
.art-home [data-art='goth-skull'] { left:3%; top:72%; width:29%; height:46%; z-index:6; transform:rotate(-13deg); }
.art-home [data-art='cursor'] { left:-4%; top:10%; width:25%; height:34%; transform:rotate(-23deg); }
.art-home [data-art='star'] { left:63%; top:-17%; width:30%; height:41%; }
.home-screen .next-card { position:relative; z-index:1; border:2px solid var(--text); border-left:8px solid #252329; border-top:0; border-radius:0; box-shadow:5px 5px #ff55b5; background:var(--surface); }
.home-screen .next-card::before { content:''; position:absolute; width:65px; height:17px; background:#e5dce3b0; top:-10px; left:30%; transform:rotate(-7deg); border:1px dashed #252329; }
.home-screen .hero-card { background:#171426; color:#fff; transform:none; padding:8px 12px; border:0; border-bottom:4px solid #ff55b5; box-shadow:none; margin-top:28px; }
.home-screen .hero-punk { display:block; min-height:0; }
.home-screen .hero-signature,.home-screen .sticker-cluster,.home-screen .hero-top { display:none; }
.home-screen .hero-card h2.hero-program { margin:0; font:900 1rem/1.4 Arial,sans-serif; }
.home-screen .hero-bottom { margin-top:6px; }
.home-screen .hero-bottom>div { padding:4px; }
.art-interlude { height:135px; margin:40px 0 42px; }
.art-interlude::before { inset:25px -7px 13px; background:#ffb4dc; clip-path:polygon(0 15%,99% 0,95% 85%,2% 100%); }
.art-interlude::after { inset:7px 0; opacity:.5; }
.art-interlude .art-inscription { top:30%; left:26%; color:#171426; font-size:2rem; max-width:70%; }
.art-interlude .art-slot-0 { width:47%; height:150%; left:-8%; top:-27%; }
.art-interlude .art-slot-1 { width:27%; height:67%; right:0; top:-15%; }
.art-interlude .art-slot-2 { width:33%; height:87%; right:10%; bottom:-30%; }
.art-interlude .art-slot-3 { left:42%; top:-16%; width:24%; height:67%; }
.art-interlude .art-serial { left:33%; bottom:-23px; font-size:8px; }
.art-home.art-interlude [data-art] { display:block; }
.art-home.art-interlude [data-art='cute-rabbit'] { width:49%; height:150%; }
.art-workout { height:234px; margin-top:35px; margin-bottom:40px; }
.art-workout::before { background:#ff55b5; clip-path:polygon(0 12%,92% 0,100% 100%,8% 95%); }
.art-workout .art-inscription { color:#171426; top:0; font-size:3.6rem; opacity:1; }
.art-workout [data-art='goth-knight'] { left:22%; top:-8%; width:77%; height:104%; transform:rotate(9deg); }
.art-workout [data-art='can-pink'] { left:-12%; top:9%; width:60%; height:108%; transform:rotate(-14deg); z-index:5; }
.art-workout [data-art='supp-preworkout'] { right:-5%; bottom:-17%; width:43%; height:67%; }
.art-workout [data-art='wire'] { left:-5%; top:auto; bottom:3%; height:57px; width:109%; object-fit:fill; transform:rotate(-7deg); }
.art-workout [data-art='error'] { left:35%; top:-9%; width:31%; height:40%; }
.art-workout.art-interlude { height:138px; }
.art-workout.art-interlude::before { background:#e5dce3; }
.art-workout.art-interlude .art-inscription { font-size:1.9rem; top:35%; }
.art-workout.art-interlude [data-art='cat-chrome'] { display:block; width:48%; height:147%; top:-30%; }
.workout-screen .completion-card { border-radius:0; border:0; border-left:8px solid #171426; box-shadow:4px 4px #ff55b5; }
.workout-screen .current-card { border-left:5px solid #ff55b5; box-shadow:5px 5px #252329; }
.workout-screen>.art-workout.art-hero { height:158px; margin-top:24px; margin-bottom:40px; }
.workout-screen>.page-heading h1 { font-size:1.9rem; }
.workout-screen>.chaos-tape { display:none; }
.workout-screen>.workout-meta { margin-top:8px; }
.workout-screen .current-card h2 { font-size:1.35rem; }
.workout-screen .workout-context .punk-micro { display:none; }
.workout-context .chaos-sticker,.technique-intro .chaos-sticker,.big-count .chaos-sticker { display:none; }
.art-technique { height:188px; margin-top:34px; margin-bottom:44px; }
.art-technique::before { background:#f3d9e7; }
.art-technique .art-inscription { font:italic 900 2.2rem/.9 Georgia,serif; color:#171426; top:16%; }
.art-technique [data-art='cute-bat'] { left:1%; width:69%; height:127%; top:-16%; }
.art-technique [data-art='lab-flask'] { right:-7%; top:9%; width:45%; height:109%; }
.art-technique [data-art='heart'] { right:1%; top:-17%; width:31%; height:53%; }
.art-technique [data-art='paper'] { left:0; top:6%; height:103%; width:46%; z-index:-1; }
.art-technique.art-interlude { height:115px; }
.art-technique.art-interlude .art-slot-0 { width:36%; height:150%; left:-3%; top:-24%; }
.art-technique.art-interlude .art-slot-1 { width:28%; height:86%; right:0; top:-8%; }
.technique-screen .page-heading h1 { font:900 1.6rem/1.08 Arial,sans-serif; text-shadow:none; }
.technique-step { border:0; border-left:5px solid #252329; box-shadow:4px 4px #171426; }
.technique-step .window-title { background:#f0e9ed; color:#171426; font-family:var(--mono); border-bottom:2px dashed #171426; }
.technique-copy { line-height:1.65; }
.technique-intro { border-radius:0; }
.art-progress { height:206px; margin-top:40px; margin-bottom:46px; }
.art-progress::before { background:#e5dce3; clip-path:polygon(12% 0,90% 4%,100% 96%,0 93%); }
.art-progress [data-art='goth-crest'] { left:14%; top:-14%; width:79%; height:130%; z-index:4; }
.art-progress [data-art='can-chrome'] { right:-11%; top:7%; width:46%; height:93%; z-index:5; }
.art-progress [data-art='cute-axolotl'] { left:-10%; top:-8%; width:47%; height:98%; z-index:6; }
.art-progress [data-art='chain'] { left:3%; top:0; height:121%; width:23%; transform:rotate(-34deg); z-index:7; }
.art-progress.art-interlude { height:135px; }
.art-progress.art-interlude [data-art='supp-protein'] { width:48%; height:149%; left:-5%; top:-26%; }
.progress-hero { border:0; border-left:5px solid #171426; box-shadow:5px 5px #ff55b5; }
.big-count { font-family:Impact,'Arial Narrow',sans-serif; font-style:normal; background:#ff55b5; box-shadow:none; border:0; border-bottom:4px solid #171426; }
.history-item { box-shadow:none; border:0; border-bottom:2px solid var(--text); border-left:5px solid #252329; }
.button.primary,.button.on-dark { font-family:var(--mono); font-weight:900; text-transform:uppercase; }
.bottom-nav { gap:5px; border-top:3px solid #171426; box-shadow:0 -3px #ff55b5; background:#f0e9ed; }
.bottom-nav button { background:#fff; box-shadow:2px 2px #171426; }
.bottom-nav button.is-active { background:#ff55b5; border-color:#171426; box-shadow:2px 2px #ff55b5; }
/* Night mode changes the composition, imagery emphasis and material language. */
:root[data-theme='dark'] .app-shell { background:radial-gradient(ellipse at 95% 15%,#f0007038,transparent 30%),radial-gradient(ellipse at 10% 70%,#2742bd33,transparent 42%),var(--bg); }
:root[data-theme='dark'] .page-heading h1 { font-style:normal; letter-spacing:-1.7px; text-shadow:2px 2px #252329; }
:root[data-theme='dark'] .page-heading .eyebrow { background:#171426; color:#ff55b5; border-color:#ff55b5; box-shadow:3px 3px #ff55b5; transform:rotate(1deg); }
:root[data-theme='dark'] .art-stage::before { background:repeating-radial-gradient(ellipse at center,#96afd14d 0 1px,transparent 2px 14px),#171426; clip-path:polygon(16% 0,84% 0,100% 100%,0 100%); transform:rotate(3deg); border:0; }
:root[data-theme='dark'] .art-stage::after { background:repeating-conic-gradient(#ff55b5 0 25%,transparent 0 50%) 0 0/18px 18px; opacity:.6; transform:rotate(-4deg); }
:root[data-theme='dark'] .scene-art { filter:drop-shadow(1px 2px 0 #ff55b5) drop-shadow(0 0 8px #e5dce335); }
:root[data-theme='dark'] .art-inscription { color:#e6dce5; font-family:Georgia,serif; font-style:italic; letter-spacing:-2px; opacity:.65; }
:root[data-theme='dark'] .art-home [data-art='cat-gym'] { display:none; }
:root[data-theme='dark'] .art-home [data-art='cat-chrome'] { display:block; left:-8%; right:auto; top:-13%; width:76%; height:125%; transform:rotate(-9deg); z-index:4; }
:root[data-theme='dark'] .art-home [data-art='can-acid'] { transform:rotate(20deg); right:-8%; top:-1%; }
:root[data-theme='dark'] .art-home [data-art='supp-creatine'] { left:42%; transform:rotate(-12deg); }
:root[data-theme='dark'] .art-home.art-interlude [data-art='cute-rabbit'] { display:block; }
:root[data-theme='dark'] .art-serial { color:#ff55b5; border-bottom:1px solid #ff55b5; }
:root[data-theme='dark'] .next-card { background:#19161b; border-color:#ff55b5; border-left-color:#ff55b5; box-shadow:5px 5px #252329; }
:root[data-theme='dark'] .next-card::before { background:#ff55b580; border-color:#ff55b5; }
:root[data-theme='dark'] .art-interlude::before { background:repeating-linear-gradient(-30deg,#1b1c2c 0 12px,#313b55 12px 13px); clip-path:polygon(0 15%,99% 0,95% 85%,2% 100%); }
:root[data-theme='dark'] .art-workout [data-art='goth-knight'] { left:24%; width:82%; transform:rotate(15deg); }
:root[data-theme='dark'] .art-workout [data-art='can-pink'] { left:-9%; transform:rotate(-20deg); }
:root[data-theme='dark'] .art-technique::before { background:#252636; clip-path:polygon(5% 0,94% 10%,100% 93%,0 100%); }
:root[data-theme='dark'] .art-technique [data-art='lab-flask'] { right:-4%; top:0; transform:rotate(-12deg); }
:root[data-theme='dark'] .art-progress [data-art='goth-crest'] { width:88%; height:145%; left:7%; top:-23%; }
:root[data-theme='dark'] .art-progress [data-art='cute-axolotl'] { width:39%; height:83%; left:-9%; top:17%; transform:rotate(-18deg); }
:root[data-theme='dark'] .progress-hero { background:linear-gradient(135deg,#20283b,#090911); border:1px solid #e6dce5; border-left:5px solid #ff55b5; box-shadow:5px 5px #343e55; }
:root[data-theme='dark'] .big-count { background:#171426; color:#ff55b5; border:1px solid #ff55b5; text-shadow:3px 3px #252329; }
:root[data-theme='dark'] .technique-step .window-title { background:#242024; color:#f0f4ff; border-color:#e6dce5; }
:root[data-theme='dark'] .technique-step { border-left-color:#ff55b5; box-shadow:3px 3px #526078; }
:root[data-theme='dark'] .bottom-nav { background:#090911; border-top-color:#e6dce5; box-shadow:0 -3px #ff55b5; }
:root[data-theme='dark'] .bottom-nav button { background:#242024; color:#f0f4ff; border-color:#e6dce5; box-shadow:2px 2px #526078; }
:root[data-theme='dark'] .bottom-nav button.is-active { background:#ff55b5; color:#171426; border-color:#fff; }
@media (min-width:600px) { .art-hero { height:275px; } .art-home.art-hero { height:250px; } }
@media (prefers-reduced-motion:reduce) { .art-stage,.scene-art { animation:none; transition:none; } }
@media (forced-colors:active) { .art-stage { display:none; } }

/* 9H3I — approved knight board: paper/chrome by day, black metal by night. */
/* Surface roles for both palettes. Art retains its own material colors. */
:root {
  --bg: #f5f2f3;
  --surface: #fff;
  --soft: #f2edf0;
  --text: #211d23;
  --muted: #51454e;
  --border: #846f7e;
  --rule: #dacbd4;
  --panel-band: #f6e5ef;
  --panel-shadow: #d9a9c4;
  --primary: #ff55b5;
  --on-primary: #21101b;
  --scene-ground: #f7f0f4;
  --scene-fade: #f7f0f400;
}
:root[data-theme='dark'] {
  --bg: #0d0b0f;
  --surface: #1b171e;
  --soft: #28222b;
  --text: #faf4f8;
  --muted: #d5c6d0;
  --border: #92768a;
  --rule: #574551;
  --panel-band: #332432;
  --panel-shadow: #66304f;
  --scene-ground: #141017;
  --scene-fade: #14101700;
}
.app-shell,:root[data-theme='dark'] .app-shell {background:var(--bg);}
.brand-bar {border-bottom:1px solid var(--border);}
.brand-name {font-family:Georgia,serif;font-weight:950;letter-spacing:-1px;font-size:1.2rem;}
.page-heading h1,:root[data-theme='dark'] .page-heading h1,.technique-screen .page-heading h1 {font-family:Impact,'Arial Narrow',Georgia,serif;font-style:italic;text-shadow:none;letter-spacing:-1px;}
.home-screen .page-heading h1 {font-size:2rem;}
.page-heading .eyebrow,:root[data-theme='dark'] .page-heading .eyebrow {background:transparent;color:var(--pink-ink);border:0;box-shadow:none;transform:none;padding:0;font-weight:bold;}
.art-stage::before,.art-stage::after,:root[data-theme='dark'] .art-stage::before,:root[data-theme='dark'] .art-stage::after {background:none;clip-path:none;border:0;}
.art-stage::before {background:url('./art-chain.svg') left center/55px 100% no-repeat!important;transform:rotate(-15deg);opacity:.85;}
.art-stage::after {content:'✝';color:var(--pink-ink);font:90px Georgia;left:auto;right:-6px;top:15px;transform:rotate(13deg);}
.art-inscription,:root[data-theme='dark'] .art-inscription {font:italic 900 1.6rem/1 Georgia,serif;color:var(--pink-ink);opacity:1;left:55%;top:25%;max-width:43%;}
.art-serial {background:transparent;color:var(--muted);border:0!important;font-size:8px;}
.scene-art,:root[data-theme='dark'] .scene-art {filter:drop-shadow(1px 2px 2px #0005);}
.art-home.art-hero {height:215px;margin-top:15px;margin-bottom:28px;}
.art-home [data-art='cat-paladin'],:root[data-theme='dark'] .art-home [data-art='cat-paladin'] {display:block;left:-9%;top:-9%;width:83%;height:117%;transform:rotate(-5deg);z-index:5;}
.art-home [data-art='cat-chrome'],:root[data-theme='dark'] .art-home [data-art='cat-chrome'] {display:none;}
:root[data-theme='dark'] .art-home [data-art='cat-paladin'] {filter:brightness(.72) contrast(1.3) drop-shadow(0 0 8px #ff55b555);}
.art-home [data-art='can-acid'],:root[data-theme='dark'] .art-home [data-art='can-acid'] {width:34%;height:78%;right:-7%;top:29%;filter:grayscale(.85);}
.art-home [data-art='supp-creatine'],:root[data-theme='dark'] .art-home [data-art='supp-creatine'] {width:30%;height:48%;left:55%;bottom:-8%;filter:grayscale(.7);}
.art-home [data-art='star'],.art-home [data-art='cursor'] {visibility:hidden;}
.art-home [data-art='goth-skull'] {width:23%;height:35%;top:65%;left:-7%;}
.home-screen .next-card,:root[data-theme='dark'] .next-card,.current-card,.progress-hero,:root[data-theme='dark'] .progress-hero,.workout-screen .current-card,.workout-screen .completion-card {background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:16px;box-shadow:none;}
.home-screen .next-card::before {display:none;}
.card-kicker,.system-title {background:transparent;color:var(--muted);border:0;}
.button.primary,.button.on-dark {background:#ff55b5;color:#21101b;border:1px solid #21101b;border-radius:24px;box-shadow:none;font-family:inherit;}
.home-screen .hero-card {background:var(--surface);color:var(--text);border-radius:14px;border:1px solid var(--border);}
.hero-bottom strong {color:var(--pink-ink);}
.current-set {color:var(--pink-ink);}
.stat-grid>div {background:var(--soft);border:1px solid var(--border);border-radius:9px;box-shadow:none;}
.stat-grid strong,.stat-grid span {color:var(--text);}
.art-workout [data-art='error'] {visibility:hidden;}
.art-interlude {height:85px!important;margin:28px 0 32px;}
.art-interlude .art-inscription {font-size:1.1rem!important;left:37%;max-width:40%;}
.art-interlude .art-slot-0 {width:30%!important;height:125%!important;top:-12%!important;}
.art-interlude .art-slot-1,.art-interlude .art-slot-2 {height:70%;width:22%;}
.technique-intro {background:var(--soft);color:var(--text);border:1px solid var(--border);border-radius:12px;box-shadow:none;}
.technique-intro strong {color:var(--text);}
.technique-step {border:1px solid var(--border);border-radius:12px;box-shadow:none!important;}
.technique-step .window-title {background:var(--soft);color:var(--text);border:0;}
.big-count,:root[data-theme='dark'] .big-count {background:transparent;color:var(--pink-ink);border:0;text-shadow:none;}
.progress-hero>.tiny {color:var(--muted);}
.progress-hero .punk-micro {color:var(--muted);}
.bottom-nav,:root[data-theme='dark'] .bottom-nav {background:var(--surface);border-top:1px solid var(--border);box-shadow:none;}
.bottom-nav button,:root[data-theme='dark'] .bottom-nav button {background:var(--surface);color:var(--text);border:0;border-radius:12px;box-shadow:none;}
.bottom-nav button.is-active,:root[data-theme='dark'] .bottom-nav button.is-active {background:#ff55b5;color:#21101b;border:0;box-shadow:none;}
.bottom-nav button svg {background:transparent;border:0;}
.bottom-nav button.is-active svg {background:transparent;color:#21101b;border:0;}
.screen>.card,.screen>.profile-details,.screen>.section-head,.screen>.technique-step,.screen>.history-shortcut {position:relative;}
.screen>.section-head {padding-right:52px;min-height:62px;}
.screen>.section-head::after {content:'';position:absolute;right:-15px;top:0;width:60px;height:62px;background:url('./art-goth-skull.webp') center/contain no-repeat;pointer-events:none;transform:rotate(14deg);}
.profile-details {border-radius:12px;box-shadow:none;padding-right:50px;}
.profile-details::after {content:'✝';position:absolute;right:10px;top:3px;font:40px Georgia;color:var(--pink-ink);pointer-events:none;}
.exercise-list,.history-list {border-radius:14px;}
.exercise-row {border-bottom:1px solid var(--border);}
.chaos-tape {background:transparent;color:var(--pink-ink);border:0;border-block:1px solid var(--border);}
.history-date {background:#ff55b5;}
@media (min-width:600px){.art-home.art-hero{height:260px;}}

.home-screen .hero-card h2.hero-program { color:var(--text); }
.current-card .chaos-tape {background:transparent;color:var(--pink-ink);}
.technique-intro .muted,.technique-intro .punk-micro {color:var(--muted);}
.art-home .art-inscription {font-size:1.1rem;left:57%;max-width:37%;top:8%;}
.hero-bottom>div {background:var(--soft);color:var(--text);}

.stat-grid>div:nth-child(2) {background:var(--soft); }

/* Second visual pass: persistent edge jewellery and consistent armored technique mascot. */
.screen {background:url('./art-chain.svg') -13px 520px/28px 220px repeat-y;}
.art-inscription,:root[data-theme='dark'] .art-inscription {font-size:1.15rem;overflow-wrap:normal;word-break:normal;max-width:45%;left:52%;top:8%;}
.art-home .art-inscription,:root[data-theme='dark'] .art-home .art-inscription {font-size:.95rem;max-width:40%;left:57%;top:4%;}
.art-technique [data-art='cat-paladin'] {left:-9%;width:75%;height:127%;top:-16%;}
.technique-step .window-title {padding-right:45px;position:relative;}
.technique-step .window-title::after {content:'';position:absolute;right:2px;top:-12px;width:43px;height:49px;background:url('./art-goth-knight.webp') center/contain no-repeat;pointer-events:none;}
.art-interlude .art-inscription,:root[data-theme='dark'] .art-interlude .art-inscription {font-size:.9rem!important;max-width:40%;}
/* Final legibility pass after reviewing the rendered contact sheet. */
.hero-bottom span,.hero-bottom strong,.current-card .exercise-position,.current-card .current-saved,.current-card .system-title .eyebrow {color:var(--text);}
.art-workout.art-hero .art-inscription,.art-technique.art-hero .art-inscription,.art-progress.art-hero .art-inscription {display:none;}

.hero-bottom span:not(.hero-lines) {color:var(--text); }
.text-button {color:var(--pink-ink);}
.saved-results span {background:var(--soft);color:var(--text);}

/* F1: each functional section owns a separate illustration rail. */
.composition-unit {display:grid;grid-template-columns:minmax(0,1fr) 84px;gap:8px;align-items:start;position:relative;margin-block:24px;}
.composition-unit:nth-of-type(even) {grid-template-columns:74px minmax(0,1fr);}
.composition-unit:nth-of-type(even)>.composition-rail {grid-column:1;grid-row:1;}
.composition-unit>section,.composition-unit>details,.composition-unit>button {min-width:0;margin:0!important;width:100%;border-radius:0!important;box-shadow:none!important;border-width:0 0 2px!important;border-color:var(--pink-ink)!important;}
.composition-rail {display:flex;flex-direction:column;align-items:center;gap:10px;pointer-events:none;position:relative;min-width:0;border-top:3px solid var(--pink-ink);padding-top:12px;}
.distributed-art {display:block;width:100%;height:100px;object-fit:contain;transform:rotate(var(--turn));pointer-events:none;}
.home-screen .composition-unit-0 {grid-template-columns:100px minmax(0,1fr);}
.home-screen .composition-unit-0>.composition-rail {grid-column:1;grid-row:1;}
.home-screen .composition-unit-0 .distributed-art {height:145px;}
.workout-screen .composition-unit {grid-template-columns:minmax(0,1fr);border-left:3px solid var(--pink-ink);padding-left:10px;}
.workout-screen .composition-rail {grid-column:1!important;grid-row:auto!important;flex-direction:row;justify-content:flex-end;border:0;border-bottom:1px dashed var(--border);}
.workout-screen .distributed-art {width:80px;height:90px;}
.composition-unit .card-kicker,.composition-unit .system-title {margin:0 0 14px;padding:7px 4px;}
.composition-unit .hero-bottom {display:block;}
@media(max-width:380px){.home-screen .composition-unit-0 {grid-template-columns:80px minmax(0,1fr);} .composition-unit {gap:5px;}}

.composition-rail .distributed-art {height:70px;}
.home-screen .composition-unit-0 .distributed-art:first-child {height:150px;}
.home-screen .composition-unit-0 .distributed-art:not(:first-child) {height:65px;}
.composition-rail {gap:0;}

.workout-screen .composition-unit:nth-of-type(even) {border-left:0;border-right:3px solid var(--pink-ink);padding-left:0;padding-right:10px;}
.workout-screen .composition-unit:nth-of-type(even) .composition-rail {justify-content:flex-start;}
.technique-screen .composition-unit {grid-template-columns:68px minmax(0,1fr);gap:8px;}
.technique-screen .composition-rail {grid-row:1;grid-column:1;}
.technique-screen .composition-unit:nth-of-type(odd) {grid-template-columns:minmax(0,1fr) 68px;}
.technique-screen .composition-unit:nth-of-type(odd) .composition-rail {grid-column:2;}
.technique-screen .distributed-art {height:115px;}
.progress-screen .composition-unit-0 {grid-template-columns:minmax(0,1fr) 110px;align-items:center;}
.progress-screen .composition-unit-0 .distributed-art:first-child {height:160px;}
.progress-screen .composition-unit {border-top:1px dashed var(--pink-ink);padding-top:10px;}
.composition-unit .text-button {color:var(--pink-ink);}
:root[data-theme='dark'] .composition-rail {filter:drop-shadow(0 0 5px #ff55b52a);}

/* F2: retain F1 layout, integrate original cutouts into component edges. */
.screen {background:none;}
.distributed-art[data-art='chain'],.distributed-art[data-art='wire'] {display:none;}
.composition-unit {isolation:isolate;}
.composition-rail {border:0;filter:none!important;overflow:visible;z-index:2;padding-top:4px;}
.composition-rail .distributed-art {filter:drop-shadow(0 4px 5px #0003);transform:rotate(var(--turn));}
.composition-unit::before {content:'';position:absolute;inset:8px 4px -5px;background:linear-gradient(145deg,#ff55b519,transparent 65%);border:1px solid #ff55b52a;border-radius:12px;transform:rotate(-1deg);z-index:-1;pointer-events:none;}
.composition-unit>section {position:relative;z-index:1;}
.composition-rail .distributed-art[data-art^='can-'] {height:150px;width:100%;object-fit:contain;transform:rotate(-13deg);margin-top:-14px;}
.composition-rail .distributed-art[data-art^='supp-'] {height:100px;transform:rotate(12deg);}
.composition-rail .distributed-art[data-art='star'],.composition-rail .distributed-art[data-art='bow'],.composition-rail .distributed-art[data-art='orbit'] {width:70%;height:56px;align-self:flex-end;opacity:.85;}
.home-screen .composition-unit-0 {margin-top:30px;}
.home-screen .composition-unit-0 .distributed-art:first-child {height:180px;margin-top:-22px;transform:rotate(-5deg);}
.home-screen .composition-unit-0 .distributed-art[data-art='goth-skull'] {width:65%;height:60px;align-self:flex-start;transform:rotate(18deg);}
.workout-screen .composition-rail {align-items:flex-end;min-height:100px;margin-top:0;border-bottom:0;}
.workout-screen .composition-rail .distributed-art:first-child {width:120px;height:135px;margin-top:-13px;}
.workout-screen .composition-rail .distributed-art:nth-child(2) {width:60px;height:65px;margin-left:-14px;z-index:3;}
.workout-screen .composition-unit::before {inset:16px 0 35px;transform:rotate(.6deg);}
.technique-screen .composition-rail .distributed-art:first-child {height:130px;margin-top:-14px;}
.technique-screen .composition-rail .distributed-art:nth-child(2) {width:80%;height:65px;align-self:flex-end;}
.progress-screen .composition-unit-0 .distributed-art:first-child {height:190px;margin-top:-20px;transform:rotate(6deg);}
.progress-screen .composition-unit:nth-of-type(even)::before {transform:rotate(1deg);}
:root[data-theme='dark'] .composition-unit::before {background:linear-gradient(145deg,#ff55b515,#aaa4b20a);border-color:#bcb5c333;}
:root[data-theme='dark'] .composition-rail .distributed-art {filter:drop-shadow(0 3px 4px #0008);}

/* B4: approved material masters retain the F2 section layout and inert rails. */
.composition-rail .distributed-art[data-art='chain'] {display:block;width:75%;height:100px;object-fit:contain;}
.composition-rail .distributed-art[data-art='bow'] {width:100%;height:48px;opacity:1;}
.composition-rail .distributed-art[data-art='error'],
.composition-rail .distributed-art[data-art='stamp'] {visibility:visible;width:100px;height:40px;object-fit:contain;}
.composition-rail .distributed-art[data-art='paladin-edge-armor'] {width:100%;height:90px;margin-top:8px;transform:rotate(5deg);}

/* Home shares the B7R composition across both color palettes. */
.home-screen {padding-top:0;}
.home-content {padding-top:16px;}
.home-scene {position:relative;isolation:isolate;height:390px;overflow:hidden;margin:0 -16px;}
.home-art {position:absolute;z-index:-1;left:-46px;top:-8px;width:440px;max-width:none;height:auto;pointer-events:none;}
.home-slogan {position:absolute;transform:rotate(-7deg);}
.home-scene .button {
  position:absolute;left:30px;right:25px;bottom:20px;width:auto;min-width:0;min-height:58px;
  background:#fc4caa;color:var(--on-primary);border:0;border-radius:15px;box-shadow:0 5px #6f3456;
  transform:rotate(-3deg);font-weight:900;text-align:center;z-index:2;
}
.home-content h2 {font-size:16px;margin:0 0 10px;}
.home-today,.home-program,.home-access,.home-profile {margin-top:18px;}
.home-metrics {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,90px),1fr));gap:6px;}
.home-metrics div {background:var(--surface);border-radius:10px;min-height:64px;padding:8px;display:grid;align-content:center;}
.home-metrics strong {font-size:15px;}
.home-metrics span {font-size:11px;color:var(--muted);}
.home-context {font-size:12px;margin-top:5px;}
div.home-context {display:flex;align-items:center;justify-content:space-between;gap:8px;}
.home-context > div {min-width:0;}
.home-workout-status {color:var(--pink-ink);font-weight:700;}
.home-context .button {width:auto;flex-shrink:0;}
.home-context .button.secondary {max-width:50%;padding-inline:8px;}
.home-content .button.text-button {color:var(--pink-ink);}
.home-program-row {display:flex;align-items:center;gap:10px;background:var(--surface);border-radius:10px;padding:8px;flex-wrap:wrap;}
.home-program-row img {width:54px;height:54px;object-fit:contain;background:var(--panel-band);border-radius:6px;}
.home-program-row div {flex:1;min-width:100px;display:grid;}
.home-program-row span {font-size:12px;}
.home-access p,.home-profile p {font-size:13px;}
.home-content .read-note {margin-top:20px;}

/* B11: one Workout component, poster scene and real server-driven states. */
.workout-b11 {position:relative;isolation:isolate;overflow:hidden;}
.workout-b11 .workout-poster-art {position:absolute;z-index:-1;pointer-events:none;top:0;right:-35px;width:min(440px,115%);height:660px;overflow:hidden;}
.workout-b11 .workout-poster-art img {width:100%;height:100%;object-fit:contain;object-position:top right;}
.workout-b11 .workout-poster-heading {min-height:195px;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;padding:12px 0;}
.workout-b11 .page-heading {max-width:min(65%,300px);background:#f8f5f6eb;padding:6px;}
.workout-b11 .page-heading h1 {font:italic 900 clamp(2rem,9vw,3rem)/.95 Impact,'Arial Narrow',sans-serif;overflow-wrap:anywhere;}
.workout-b11 .workout-meta {display:flex;gap:8px;flex-wrap:wrap;background:#f8f5f6ef;padding:5px;margin-top:8px;}
.workout-b11 > .current-card {background:var(--surface);color:var(--text);border:0;border-top:3px solid var(--primary);border-radius:0;box-shadow:5px 5px var(--panel-shadow);padding:14px;position:relative;}
.workout-b11 .current-card .system-title {background:transparent;border:0;padding:0;margin:0 0 8px;}
.workout-b11 .current-card .eyebrow,.workout-b11 .current-card .tiny,.workout-b11 .current-card .exercise-position {color:var(--muted);}
.workout-b11 .current-card h2,.workout-b11 .current-card .current-set,.workout-b11 .current-card .stat-grid strong,.workout-b11 .current-card .stat-grid span {color:var(--text);}
.workout-b11 .current-card .stat-grid > div {background:var(--soft);border-color:var(--rule);}
.workout-b11 .current-card .button {background:var(--primary);color:var(--on-primary);border:0;width:100%;}
.workout-b11 > .section-head {background:var(--surface);border-bottom:3px solid var(--border);padding:4px;margin-top:18px;}
.workout-b11 > .section-head::after {display:none;}
.workout-b11 > .exercise-list {background:var(--surface);border:0;border-radius:0;}
.workout-b11 .exercise-row {background:var(--surface);border-bottom:1px solid var(--rule);}
.workout-b11 .exercise-row.is-current {border-left:3px solid #f53d9d;}
.workout-b11 > .completion-card,.workout-b11 > .rest-card,.workout-b11 > .notice,.workout-b11 > .profile-details,.workout-b11 > .read-note,.workout-b11 > .empty-state {position:relative;}

/* B12: approved full-page continuation, scoped to the existing Workout. */
.workout-lower {position:relative;isolation:isolate;margin-top:18px;padding:0 5px 18px;}
.workout-lower::before {content:'';position:absolute;z-index:-1;pointer-events:none;top:0;bottom:180px;right:-5px;width:90px;background:url('./art-edge-chain-chrome.webp') right top/90px 145px no-repeat,repeating-linear-gradient(135deg,#f83d9b35 0 2px,transparent 2px 13px);border-left:1px solid #ec53a55c;}
.workout-lower::after {content:'';position:absolute;z-index:-1;pointer-events:none;left:-100px;bottom:12px;width:235px;height:210px;background:url('./art-paladin-edge-armor.webp') center/contain no-repeat;transform:rotate(-18deg);opacity:.8;}
.workout-lower > .completion-card {position:relative;border:0;border-left:4px solid var(--border);border-radius:0;background:var(--surface);color:var(--text);box-shadow:4px 4px var(--panel-shadow);padding:14px;}
.workout-lower > .completion-card::after {content:'';position:absolute;z-index:-1;pointer-events:none;width:112px;height:145px;top:0;right:-30px;background:url('./art-edge-chain-chrome.webp') center/contain no-repeat;transform:rotate(15deg);opacity:.86;}
.workout-lower > .rest-card {position:relative;display:flex;gap:12px;align-items:center;margin:18px 26px 0 0;padding:11px 14px;background:var(--soft);color:var(--text);border:0;border-right:4px solid var(--primary);border-radius:0;box-shadow:-4px 4px var(--panel-shadow);}
.workout-lower > .section-head {position:relative;margin-top:24px;padding:4px;background:var(--bg);border-bottom:3px solid var(--text);}
.workout-lower > .section-head::after {display:none;}
.workout-lower > .exercise-list {border:0;border-radius:0;background:transparent;padding:0;}
.workout-b11 .workout-lower .exercise-row,.workout-b11 .workout-lower .exercise-row + .exercise-row {background:var(--surface);border:0;border-bottom:1px solid var(--rule);border-radius:0;box-shadow:none;margin:0;padding:10px 5px;}
.workout-b11 .workout-lower .exercise-row.is-current {border-left:3px solid #f53d9d;}
.workout-lower .exercise-order {box-shadow:none;transform:none;}
.workout-lower .exercise-content {display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:center;}
.workout-lower .exercise-content > :not(.button) {grid-column:1;min-width:0;}
.workout-lower .exercise-content > .button {grid-column:2;grid-row:1 / span 4;min-height:44px;padding:8px 3px;color:var(--pink-ink);}
.workout-lower .exercise-content > p {margin-top:4px;}.workout-lower .saved-results {margin-top:5px;}
.workout-lower > .profile-details {position:relative;margin:28px 0 0 18px;background:var(--surface);border:1px solid var(--border);border-left:5px solid #f53d9d;border-radius:0;box-shadow:-5px 5px var(--panel-shadow);}
.workout-lower > .read-note {position:relative;background:var(--surface);margin-top:20px;}
.workout-lower > a.button {position:relative;margin:28px 0 0 25px;width:calc(100% - 25px);background:var(--primary);color:var(--on-primary);border:1px solid var(--border);border-radius:0;box-shadow:5px 5px var(--panel-shadow);min-height:76px;}
/* B14 — approved Technique compositions, scoped to this screen. */
.technique-b14{margin:auto;position:relative;overflow:hidden;padding:0 18px 110px;background:var(--bg)}
.technique-b14 .heading{padding:27px 0 22px}
.technique-b14 .kicker{font-size:10px;letter-spacing:.14em;font-weight:900;color:#b11663}
.technique-b14 h1{font-size:45px;font-style:italic;text-transform:uppercase;letter-spacing:-.06em;line-height:.95;margin:11px 0}
.technique-b14 .heading p{font-size:14px;margin:0}
.technique-b14 .poster{background:var(--surface);border:2px solid var(--border);box-shadow:7px 7px 0 var(--panel-shadow);color:var(--text)}
.technique-b14 .poster-bar{background:var(--panel-band);color:var(--text);font-size:9px;letter-spacing:.1em;display:flex;justify-content:space-between;padding:9px 12px;font-weight:900}
.technique-b14 .poster-art{height:245px;position:relative;background:linear-gradient(90deg,var(--scene-ground) 0 32%,var(--scene-fade) 78%),url('./art-workout-b10.webp') right center/auto 115% no-repeat var(--scene-ground)}
.technique-b14 .poster-title{position:absolute;left:15px;bottom:18px;font-size:29px;line-height:.92;font-style:italic;letter-spacing:-.04em;font-weight:1000}
.technique-b14 .poster-title em{color:#ff6ab6}
.technique-b14 .poster-number{position:absolute;right:9px;bottom:11px;color:var(--pink-ink);background:var(--panel-band);padding:5px;font-weight:900;font-size:10px}
.technique-b14 .media-note{background:var(--soft);margin:0;padding:12px 14px;font-size:12px;line-height:1.5;color:var(--muted)}
.technique-b14 .instruction-head{display:flex;justify-content:space-between;align-items:end;margin:44px 0 17px;padding-bottom:12px;border-bottom:3px solid #151117}
.technique-b14 .instruction-head span,.technique-b14 .head-index{font-size:9px;letter-spacing:.1em;font-weight:900}
.technique-b14 .instruction-head span{color:#b31865}
.technique-b14 .instruction-head h2{font-size:31px;line-height:.94;letter-spacing:-.05em;text-transform:uppercase;font-style:italic;margin:7px 0 0}
.technique-b14 .instruction-head .dot{font-size:32px}
.technique-b14 .head-index{text-align:right;line-height:1.4}
.technique-b14 .head-index b{color:#ad1262;font-size:16px}
.technique-b14 .manual{position:relative;padding:3px 7px 0 0}
.technique-b14 .manual:before{content:'';position:absolute;top:0;right:-30px;bottom:-65px;width:75px;opacity:.8;background:url('./art-edge-chain-chrome.webp') center top/70px auto repeat-y;pointer-events:none}
.technique-b14 .manual:after{content:'';position:absolute;left:-24px;bottom:-26px;width:70px;height:128px;background:url('./art-paladin-edge-armor.webp') center/contain no-repeat;opacity:.8;pointer-events:none;z-index:0}
.technique-b14 .step{position:relative;z-index:1;background:var(--surface);border-left:4px solid #e74296;margin:0 0 18px;box-shadow:4px 4px 0 var(--panel-shadow)}
.technique-b14 .step-top{display:flex;justify-content:space-between;padding:9px 12px;border-bottom:1px solid var(--rule);font-size:9px;letter-spacing:.07em;font-weight:900;color:var(--muted)}
.technique-b14 .step-content{display:flex;gap:14px;padding:16px 13px 19px}
.technique-b14 .num{font-size:28px;font-style:italic;color:#d51d7d;line-height:1}
.technique-b14 .step h3{font-size:18px;margin:1px 0 8px}
.technique-b14 .step p{font-size:14px;line-height:1.5;margin:0}
.technique-b14 .control{margin-left:17px}
.technique-b14 .end-tag{border-top:2px solid #19131b;padding:14px 0 20px;font-size:9px;font-weight:900;letter-spacing:.08em;position:relative}
.technique-b14 .end-tag b{color:#ce1975}
.technique-b14 .back{width:100%;background:#ed4b9f;color:#130f14;border:2px solid #1d1420;box-shadow:5px 5px 0 #211923;min-height:55px;text-align:left;padding:15px;font-size:15px;font-weight:900}
[data-theme="dark"] .technique-b14 .instruction-head,[data-theme="dark"] .technique-b14 .end-tag{border-color:#ba7096}
[data-theme="dark"] .technique-b14 .kicker,[data-theme="dark"] .technique-b14 .instruction-head span,[data-theme="dark"] .technique-b14 .head-index b{color:#ff78bd}
[data-theme="dark"] .technique-b14 .num{color:#ff72b9}
.technique-b14{color:var(--text);font-family:Arial,sans-serif;gap:0;display:block;overflow:hidden}.technique-b14 h1,.technique-b14 p{overflow-wrap:anywhere}.technique-b14 .step-content>div{min-width:0}.technique-b14 .back{display:flex;align-items:center;gap:8px;cursor:pointer}
.technique-b14{padding-inline:2px}.technique-b14 h1,.technique-b14 .poster-title,.technique-b14 h2,.technique-b14 h3{font-family:Arial,sans-serif}.technique-b14 h1{font-weight:900}.technique-b14 .poster-title{font-weight:1000;font-style:italic}

/* B16 — approved Progress, scoped. */
.progress-b16{margin:auto;padding:0 2px 112px;background:var(--bg);overflow:hidden}
.progress-b16 .heading{padding:27px 0 22px}
.progress-b16 .heading>span,.progress-b16 .subhead small{font-size:10px;font-weight:900;letter-spacing:.13em;color:#ae1664}
.progress-b16 h1{font-size:44px;line-height:.9;letter-spacing:-.06em;text-transform:uppercase;font-style:italic;margin:12px 0}
.progress-b16 h1 span,.progress-b16 .subhead h2 span{color:#e0328b}
.progress-b16 .heading p{font-size:13px}
.progress-b16 .hero{border:2px solid var(--border);box-shadow:7px 7px var(--panel-shadow);background:var(--surface);color:var(--text)}
.progress-b16 .hero-top{display:flex;justify-content:space-between;background:var(--panel-band);color:var(--text);padding:9px 11px;font-size:9px;font-weight:900;letter-spacing:.07em}
.progress-b16 .hero-inner{min-height:240px;padding:18px;background:linear-gradient(90deg,var(--scene-ground) 0 32%,var(--scene-fade) 78%),url('./art-workout-b10.webp') right center/auto 115% no-repeat var(--scene-ground)}
.progress-b16 .count{font-size:80px;line-height:1;letter-spacing:-.07em}
.progress-b16 .last{font-size:12px;line-height:1.4}
.progress-b16 .hero-caption{font-size:22px;line-height:.95;font-weight:900;font-style:italic;margin-top:33px}
.progress-b16 .hero-caption i{color:#ff79bc}
.progress-b16 .ribbon{margin:36px -28px 0;padding:10px 28px;transform:rotate(-2deg);font-size:10px;letter-spacing:.12em;font-weight:900;background:var(--panel-band);color:var(--text)}
.progress-b16 .subhead{display:flex;justify-content:space-between;align-items:end;margin:35px 0 15px;padding-bottom:12px;border-bottom:3px solid}
.progress-b16 .subhead h2{font-size:29px;line-height:.94;text-transform:uppercase;letter-spacing:-.05em;font-style:italic;margin:8px 0 0}
.progress-b16 .subhead>b{font-size:9px;text-align:right;line-height:1.5;letter-spacing:.08em}
.progress-b16 .comparison{background:var(--surface);border-left:4px solid #e33790;box-shadow:4px 4px var(--panel-shadow);position:relative;padding:0 15px 15px}
.progress-b16 .comp-label{border-bottom:1px solid var(--rule);padding:11px 0;font-size:9px;letter-spacing:.1em;font-weight:900}
.progress-b16 .comp-label span{float:right;color:#d41b7a}
.progress-b16 .comparison h3{font-size:19px;margin:17px 0}
.progress-b16 .fact{display:flex;justify-content:space-between;align-items:center;padding:13px 0;border-top:1px solid var(--rule);font-size:13px}
.progress-b16 .fact small{display:block;color:var(--muted);margin-top:4px}
.progress-b16 .fact strong{font-size:18px}
.progress-b16 .latest strong{color:#b31364}
.progress-b16 .comparison p,.progress-b16 .no-compare{font-size:12px;line-height:1.5;color:var(--muted)}
.progress-b16 .history-head{margin-top:42px}
.progress-b16 .history{position:relative}
.progress-b16 .history:before{content:'';position:absolute;right:-31px;top:0;bottom:-60px;width:68px;background:url('./art-edge-chain-chrome.webp') center top/contain repeat-y;pointer-events:none}
.progress-b16 .history button{position:relative;width:100%;display:flex;align-items:center;gap:17px;text-align:left;padding:16px 12px;background:var(--surface);border:0;border-left:4px solid #ed4b9f;box-shadow:4px 4px var(--panel-shadow);margin-bottom:15px;font:inherit;color:inherit}
.progress-b16 .history button>span:nth-child(2){flex:1}
.progress-b16 .history small{display:block;margin-top:5px;color:var(--muted)}
.progress-b16 .history i{font-size:22px;color:#ba1469}
.progress-b16 .date{font-size:11px;text-transform:uppercase}
.progress-b16 .date b{display:block;font-size:27px;color:#d8207d}
.progress-b16 .footer{position:relative;margin-top:35px;border-top:2px solid;padding-top:14px;font-size:10px;letter-spacing:.1em;font-weight:900}
.progress-b16 .footer span{color:#cf1e79}
.progress-b16 .empty{display:block;background:var(--surface);border-left:4px solid #e63890;padding:20px;box-shadow:4px 4px var(--panel-shadow)}
.progress-b16 .empty>b{font-size:10px;color:#ae1664}
.progress-b16 .empty h3{font-size:20px}
.progress-b16 .empty p{font-size:14px;line-height:1.5}
.progress-b16 .empty button{background:#ed4b9f;color:#171219;font-weight:900;border:2px solid;padding:14px;width:100%;text-align:left}
.progress-b16 .no-compare{display:block}
[data-theme="dark"] .progress-b16 .subhead,[data-theme="dark"] .progress-b16 .footer{border-color:#b86a91}
[data-theme="dark"] .progress-b16 .heading>span,[data-theme="dark"] .progress-b16 .subhead small{color:#ff7abb}
[data-theme="dark"] .progress-b16 .latest strong,[data-theme="dark"] .progress-b16 .date b{color:#ff79bd}
.progress-b16{display:block;color:var(--text);font-family:Arial,sans-serif}.progress-b16 h1,.progress-b16 h2,.progress-b16 h3{font-family:Arial,sans-serif}.progress-b16 h1{font-weight:900}.progress-b16 .fact{gap:12px}.progress-b16 .fact strong{max-width:62%;text-align:right;overflow-wrap:anywhere}.progress-b16 .history button>span:nth-child(2){min-width:0;overflow-wrap:anywhere}.progress-b16 .history button svg{flex-shrink:0}.progress-b16 .heading h1,.progress-b16 h3{overflow-wrap:anywhere}.progress-b16 .more{margin-top:24px}
.progress-b16 .heading h1{font-size:44px;font-style:italic;line-height:.9;letter-spacing:-.06em;margin:12px 0}.progress-b16 .hero-caption{font-style:italic}

/* B28: preserve the Workout poster scene and the integrated CTA icon. */
:root[data-theme='dark'] .workout-b11 .page-heading,
:root[data-theme='dark'] .workout-b11 .workout-meta{background:linear-gradient(90deg,#141016e8 0%,#141016a8 60%,transparent 100%)}
.workout-b11 .current-card .button.on-dark svg{background:transparent;color:currentColor;padding:0;width:19px;height:19px}

/* Current-set controls share the existing semantic Light/Dark surfaces. */
.set-form { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.set-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.set-fields label { display: grid; gap: 6px; min-width: 0; font-size: .875rem; color: var(--text); }
.set-fields input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 48px; padding: 10px;
 border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text); font: inherit; font-size: 1rem; }
.set-fields input:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.set-fields input:disabled { opacity: .75; }
.set-status { color: var(--text); overflow-wrap: anywhere; }
.set-form .button { width: 100%; min-height: 48px; }
.set-form .button:disabled { opacity: .65; cursor: wait; }
@media (max-width: 340px) { .set-fields { grid-template-columns: minmax(0,1fr); } }

/* Technique content remains editable and keeps all prepared sections. */
.technique-b14 .step-content p{white-space:pre-wrap;overflow-wrap:anywhere}
.technique-b14 .technique-status{font-weight:700}
.technique-b14 .technique-source,.technique-b14 .technique-unavailable{color:var(--text);overflow-wrap:anywhere}
.technique-b14 .manual>.technique-unavailable{position:relative;z-index:1;margin:0;padding:18px 50px}

/* Factual history uses the existing semantic theme surfaces, not a second panel theme. */
.previous-performance { margin-block: .85rem; padding: .75rem .85rem; border: 1px solid var(--border); border-inline-start: 3px solid var(--pink); background: var(--soft); color: var(--text); }
.previous-performance-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .75rem; }
.previous-performance time { font-size: .8rem; color: var(--muted); }
.previous-performance ol { list-style: none; margin: .4rem 0 0; padding: 0; }
.previous-performance li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem .6rem; padding-block: .2rem; }
.previous-performance li > * { min-width: 0; }

/* Lifecycle confirmation uses the existing theme surfaces and touch targets. */
.complete-actions .button + .button { margin-top: 10px; }

.rolling-summary { margin-block: 20px; }
.rolling-counts { display:flex; flex-wrap:wrap; gap:8px 24px; }
.rolling-items { display:grid; gap:10px; }
.rolling-items .button { justify-content:space-between; text-align:start; }
.rolling-items time { display:block; font-size:.75rem; color:var(--muted); }
.rolling-items .button > span { min-width:0; overflow-wrap:anywhere; }
.rolling-items svg { flex-shrink:0; }

.cancel-card { margin-top:32px; }

/* Replacement is a session action, using the existing semantic themes. */
.replacement-panel { margin: 18px 0; padding: 14px; background: var(--surface); color:var(--text); border:1px solid var(--border); border-left:4px solid #ff46ae; overflow-wrap:anywhere; }
.replacement-panel h2 { font-size:clamp(1.65rem,7vw,2.2rem); margin:0 0 16px; }
.replacement-candidate { padding:14px 0; border-bottom:1px solid var(--border); }
.replacement-candidate-body { display:grid; grid-template-columns:90px minmax(0,1fr); gap:12px; align-items:center; }
.replacement-candidate h3 { margin:0; font-size:1.1rem; }
.replacement-candidate p { margin:8px 0; }
.replacement-candidate img { width:90px; height:110px; object-fit:contain; border-radius:8px; background:var(--surface); }
.replacement-thumb-empty { min-height:110px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; font-size:.75rem; text-align:center; }
.replacement-actions { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 0; }
.replacement-actions .button { flex:1 1 110px; min-height:44px; }
.replacement-panel>.button,.replacement-confirm>.button { width:100%; margin-top:12px; min-height:44px; }
.replacement-panel button:disabled { opacity:.65; cursor:wait; }
@media(max-width:350px){.replacement-candidate-body{grid-template-columns:70px minmax(0,1fr)}.replacement-candidate img{width:70px;height:95px}}

/* Profile and retained plan revisions share existing semantic theme surfaces. */
.profile-screen { padding-top:12px; overflow-wrap:anywhere; }
.profile-screen>h1 { margin:24px 0; font-size:clamp(2rem,9vw,3rem); }
.profile-screen>p { line-height:1.55; }
.profile-screen fieldset,.profile-confirm,.plan-day { min-width:0; margin:24px 0; padding:18px 14px; border:1px solid var(--border); border-left:3px solid #ff46ae; background:var(--surface);color:var(--text); }
.profile-screen legend { padding:0 8px; font-weight:bold;font-size:1.2rem; }
.profile-screen label { display:block; margin:0 0 18px; }
.profile-screen label>span { display:block; margin-bottom:7px; }
.profile-screen select,.profile-screen input { display:block;width:100%;min-height:48px;box-sizing:border-box;padding:10px;border:1px solid var(--border);border-radius:8px;background:var(--surface-alt,var(--surface));color:var(--text);font:inherit; }
.profile-screen :is(select,input):focus { outline:2px solid #ff46ae;outline-offset:2px; }
.profile-screen .button { min-height:46px;max-width:100%;white-space:normal; }
.profile-screen> .button,.profile-screen form>.button,.profile-confirm>.button {width:100%;margin-top:12px;}
.profile-confirm dl>div{display:flex;justify-content:space-between;gap:12px;margin:10px 0;}.profile-confirm dd{margin:0;text-align:right;}
.plan-exercise{display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px;padding:16px 0;border-bottom:1px solid var(--border);}.plan-exercise img{width:76px;height:90px;object-fit:contain;}.plan-exercise h3{margin:0;}.plan-exercise .button{width:100%;}.plan-day h2{font-size:1.4rem;}
@media(max-width:350px){.profile-confirm dl>div{display:block}.profile-confirm dd{text-align:left}.plan-exercise{grid-template-columns:58px minmax(0,1fr)}.plan-exercise img{width:58px;height:78px}}

/* Secondary modes reuse the approved theme surfaces; digits are functional UI. */
.secondary-controls{display:grid;gap:18px;min-width:0}.format-card{display:grid;gap:12px}.format-card h2{overflow-wrap:anywhere}.format-timing{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.format-time{font-family:var(--font-ui);font-variant-numeric:tabular-nums;font-size:clamp(2rem,12vw,3.8rem);line-height:1.15}.format-exercises{padding-left:24px;display:grid;gap:16px}.format-exercises li{padding:8px;overflow-wrap:anywhere}.format-exercises li[data-current=true]{border-inline-start:3px solid var(--pink,#ff3dac)}.format-exercises strong,.format-exercises span{display:block}.environment-choices{display:grid;gap:10px}.secondary-controls button{min-height:44px;white-space:normal}.secondary-controls summary{cursor:pointer;min-height:44px;padding:8px 0}.guidance-card p{white-space:pre-line}

.format-exercises li[data-current="true"]{border-left:3px solid var(--pink);padding-left:10px}
