:root {
  --bg: #f8f7f4;
  --bg-deep: #f0ece4;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --surface-3: #f3efe8;
  --line: #e6e0d6;
  --line-strong: #cbbda4;
  --text: #191816;
  --muted: #5d5a53;
  --faint: #6c675c;
  --accent: #846017;
  --accent-2: #654612;
  --accent-soft: #f8efd9;
  --positive: #786022;
  --positive-soft: #f7f0df;
  --danger: #a73345;
  --danger-soft: #fcebef;
  --success: #efdbb3;
  --success-soft: #4a4030;
  --focus: rgba(132, 96, 23, 0.42);
  --info: #846017;
  --energy: #e3bc72;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 24px;
  --shadow: 0 8px 26px rgba(29, 25, 20, 0.06);
  /* M-42: a 7-step type scale. Only the two most common existing sizes
     (12px/.75rem and 16px/1rem) are wired up to it so far - see the M-41/
     M-42 note in the project memory/final report for why the remaining
     ~250 slightly-off-scale values (.76rem..0.98rem) are a separate,
     judgment-heavy consolidation rather than a mechanical rename. */
  --text-2xs: 0.75rem;
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  /* M-42: minimum and comfortable touch-target sizes (WCAG 2.5.5 / Apple HIG). */
  --tap-min: 44px;
  --tap-comfortable: 48px;
  --content: 1180px;
  --nav-h: 86px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  color-scheme: light;
}

/* Short sessions, comeback check-in and evidence cards. */
.quick-entry{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;margin:28px 0;padding:36px;border:1px solid #a38748;border-radius:26px;background:#151515;color:#fff;min-height:290px}
.quick-entry::before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(126deg,transparent 61%,#3a3223 61.2%,#171717 62%,#27241e 100%)}
.quick-entry>div{position:relative;z-index:1;max-width:570px;width:72%}
.quick-entry .eyebrow{color:#e5c47e}.quick-entry h2{margin:12px 0;font-size:clamp(30px,4vw,49px);line-height:1.02;letter-spacing:-1.7px}
.quick-entry p{max-width:470px;color:#d0cdc5;line-height:1.65}.quick-entry small{display:block;color:#c1b9a8;margin-top:14px;font-size:var(--text-2xs);line-height:1.5}
.quick-entry-number{position:absolute;right:4%;top:50%;transform:translateY(-50%);display:grid;grid-template-columns:auto auto;align-items:center;justify-items:center;text-align:center;font-weight:800;font-size:clamp(100px,14vw,184px);line-height:.8;color:#d3b274;opacity:.28;pointer-events:none}
.quick-two{font:inherit;letter-spacing:-.09em}.quick-watch{position:relative;display:block;width:.66em;height:.66em;margin-left:-.04em;border:.052em solid currentColor;border-radius:50%;box-shadow:inset 0 0 0 .016em #d3b274,0 0 .1em #b38b42;font:inherit;transform:translateY(.01em)}
.quick-watch::before{content:"";position:absolute;top:-.12em;left:50%;width:.16em;height:.09em;border:.03em solid currentColor;border-bottom:0;border-radius:.025em;transform:translateX(-50%)}
.quick-watch::after{content:"";position:absolute;top:-.055em;right:.015em;width:.08em;height:.035em;border-radius:99px;background:currentColor;transform:rotate(42deg);transform-origin:left center}
.quick-watch i{position:absolute;inset:0;display:block}.quick-watch i::before,.quick-watch i::after{content:"";position:absolute;left:50%;top:50%;width:.027em;border-radius:99px;background:currentColor;transform-origin:50% 100%}
.quick-watch i::before{height:.17em;transform:translate(-50%,-100%) rotate(3deg)}.quick-watch i::after{height:.13em;transform:translate(-50%,-100%) rotate(126deg)}
.quick-entry-number>span{grid-column:1/-1;font-size:var(--text-md);letter-spacing:8px;margin-top:17px}
.comeback-entry{padding:28px;margin:0 0 25px;background:linear-gradient(120deg,#faf4e6,#fff);border:1px solid #cdb778;border-radius:23px}
.comeback-entry h2{font-size:28px;letter-spacing:-.8px;margin:12px 0}.comeback-entry p{line-height:1.7;max-width:650px;color:var(--muted)}
.comeback-actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0 8px}.comeback-actions button{flex:1;min-width:240px}
.extra-view>.text-button,.knowledge-view>.text-button{margin-bottom:24px}.extra-heading{margin-bottom:30px}.extra-heading h1{font-size:clamp(38px,5vw,62px);line-height:1.02;letter-spacing:-2px;margin:14px 0}.extra-heading p{font-size:17px;color:var(--muted);line-height:1.6}
.extra-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:25px;align-items:start}
.extra-config,.extra-preview{border:1px solid var(--line);border-radius:22px;padding:28px;background:#fff;min-width:0}
.extra-config h2{font-size:20px;letter-spacing:-.45px;margin:28px 0 15px}.extra-config h2:first-child{margin-top:0}.extra-config p,.extra-preview p{line-height:1.65;color:var(--muted)}
.extra-choices{display:grid;gap:9px}.extra-choices button{border:1px solid var(--line);border-radius:13px;padding:16px;text-align:left;background:#fff;display:grid;gap:5px;min-height:66px}.extra-choices strong{font-size:var(--text-md)}.extra-choices small{color:var(--muted);font-size:13px}
.extra-choices button.selected,.extra-ready button.selected{background:#fbf4e3;border-color:#98782e;box-shadow:inset 3px 0 0 #98782e}
.extra-preview{border-top:3px solid #b69850}.extra-preview>.gold-button{width:100%;margin-top:18px;min-height:58px}.extra-preview .section-heading>span{white-space:nowrap;color:var(--accent);font-size:13px}
.extra-exercises>div{display:flex;align-items:center;gap:12px;padding:20px 0;border-bottom:1px solid var(--line)}.extra-exercises>div>span{color:var(--accent);font-size:var(--text-2xs);letter-spacing:1px;flex-shrink:0}.extra-exercises section{flex:1;min-width:0}.extra-exercises strong{font-size:var(--text-md);line-height:1.45;display:block;overflow-wrap:anywhere}.extra-exercises small{display:block;color:var(--muted);font-size:var(--text-2xs);margin-top:6px;line-height:1.6}.extra-exercises .icon-button{flex-shrink:0;width:var(--tap-min);height:var(--tap-min);padding:8px;border:1px solid var(--line);border-radius:10px;background:#fff}
.extra-ready{margin-top:24px;padding:20px;border-radius:16px;background:#f6f4ef}.extra-ready>strong{font-size:17px}.extra-ready p{font-size:13px}.extra-ready button{padding:13px;min-height:48px;width:100%;background:#fff;border:1px solid var(--line-strong);border-radius:12px;font-size:var(--text-sm);text-align:left;display:flex;gap:8px;align-items:center}.extra-ready svg{width:18px;flex-shrink:0}
.quick-equipment{margin-top:20px;border-top:1px solid var(--line);padding-top:18px}.quick-equipment summary{font-weight:650;cursor:pointer;line-height:1.6}.quick-equipment summary span{font-size:var(--text-2xs);font-weight:400;color:var(--muted);margin-left:5px}.quick-equipment[open] summary{margin-bottom:18px}
.extra-warning,.generator-split-issue{border-left:3px solid #b69850;padding:12px 16px;background:#fcf6e7;border-radius:0 10px 10px 0;font-size:var(--text-sm);line-height:1.7}.extra-warning p{margin:4px 0}.session-kind{display:block;color:var(--accent);font-size:var(--text-2xs);letter-spacing:1.1px;margin-bottom:5px;font-weight:700}
.knowledge-entry{position:relative;overflow:hidden;padding:30px 34px;border:1px solid #c7b27a;border-radius:24px;margin:10px 0 26px;background:linear-gradient(132deg,#171717 0%,#171717 77%,#363024 77.1%,#1c1b18 100%);color:#fff}.knowledge-entry .eyebrow{color:#e5c47e}.knowledge-entry h2{font-size:34px;line-height:1.08;letter-spacing:-1px;margin:14px 0}.knowledge-entry p{max-width:610px;color:#cfcac1;line-height:1.65}.knowledge-entry .text-button{color:#edcf8c}
.knowledge-date{font-size:var(--text-2xs);color:var(--muted);margin:0 0 22px}.knowledge-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.knowledge-card{background:#fff;border:1px solid var(--line);border-radius:22px;overflow:hidden;scroll-margin-top:24px}.knowledge-card summary{padding:26px;cursor:pointer;list-style:none}.knowledge-card summary::-webkit-details-marker{display:none}.knowledge-card h2{font-size:26px;line-height:1.18;letter-spacing:-.65px;margin:16px 0 12px}.knowledge-card summary p{font-size:15px;line-height:1.65;color:var(--muted);margin-bottom:18px}.knowledge-read{font-size:13px;font-weight:650;display:flex;align-items:center;justify-content:space-between;color:var(--accent)}.knowledge-read svg{width:20px}.knowledge-card[open]{border-color:#bda364}.knowledge-card[open] .knowledge-read svg{transform:rotate(90deg)}
.knowledge-body{border-top:1px solid var(--line);padding:10px 26px 26px}.knowledge-body p{font-size:var(--text-sm);line-height:1.8;color:var(--muted)}.knowledge-limit,.knowledge-takeaway{padding:18px;margin-top:16px;border-radius:12px;background:#f5f3ee}.knowledge-limit strong,.knowledge-takeaway strong{font-size:var(--text-sm)}.knowledge-limit p,.knowledge-takeaway p{margin:8px 0 0}.knowledge-takeaway{background:#faf1dd}.knowledge-sources{margin-top:24px}.knowledge-sources h3{font-size:13px}.knowledge-sources a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-top:1px solid var(--line);color:var(--accent);font-size:13px;line-height:1.5;text-decoration:none}.knowledge-sources svg{width:18px;flex-shrink:0}
@media(max-width:720px){.quick-entry{padding:25px 22px;min-height:290px}.quick-entry>div{width:100%}.quick-entry p{max-width:88%;font-size:var(--text-sm)}.quick-entry-number{right:4%;top:29%;font-size:115px;opacity:.13}.quick-entry .gold-button{width:100%;padding-left:12px;padding-right:12px;gap:8px;font-size:var(--text-sm)}.quick-entry h2{max-width:85%;font-size:36px}.extra-layout,.knowledge-grid{grid-template-columns:1fr}.extra-config,.extra-preview{padding:22px 18px}.comeback-entry{padding:23px 20px}.comeback-actions{display:grid;grid-template-columns:1fr}.comeback-actions button{min-width:0;width:100%;font-size:var(--text-sm)}.knowledge-entry{padding:26px 23px}.knowledge-card summary{padding:24px 21px}.knowledge-body{padding:8px 21px 24px}.extra-heading h1{font-size:39px}.extra-ready{padding:16px}.knowledge-view .view-title{font-size:39px}.generator-split-issue{font-size:13px}}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg-deep);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: linear-gradient(180deg, #f1ece3 0, var(--bg) 15rem, var(--bg) 100%);
  color: var(--text);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  padding: 10px 14px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + 34px + env(safe-area-inset-bottom, 0px));
}

.app-header {
  position: sticky;
  z-index: 30;
  top: 0;
  background: rgba(251, 249, 246, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.app-header-inner {
  display: flex;
  width: min(100%, var(--content));
  min-height: 66px;
  margin: 0 auto;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 18px 10px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #151a1e;
  border-radius: 13px;
  background: #151a1e;
  box-shadow: 0 4px 12px rgba(21, 26, 30, 0.16);
  color: #ffffff;
}

.brand-mark svg {
  width: 28px;
  height: 28px;
}

.brand-mark img { display: block; width: 42px; height: 42px; }

.brand-word {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 950;
  letter-spacing: 0.035em;
  line-height: 1;
}

.brand-word em {
  color: var(--accent);
  font-style: normal;
}

.brand-copy { min-width: 0; }

.brand-copy-preload .brand-subline,
.brand-copy-preload .brand-tagline { visibility: hidden; }

.brand-subline,
.brand-tagline {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-subline {
  margin-top: 4px;
  color: #785419;
  font-size: 0.8rem;
  font-weight: 760;
  line-height: 1.15;
}

.brand-tagline {
  margin-top: 2px;
  color: #785419;
  font-size: 0.77rem;
  font-weight: 660;
  line-height: 1.15;
}

.brand-copy-enter .brand-subline { animation: header-copy-in 0.5s ease-out 0.15s both; }
.brand-copy-enter .brand-tagline { animation: header-copy-in 0.5s ease-out 0.58s both; }

@keyframes header-copy-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-shell {
  min-height: 100vh;
  padding: max(20px, env(safe-area-inset-top, 0px)) 18px max(36px, env(safe-area-inset-bottom, 0px));
  background: linear-gradient(165deg, #181817 0, #262420 240px, var(--bg) 241px);
}

.auth-header {
  display: flex;
  width: min(100%, 500px);
  margin: 0 auto 38px;
  align-items: center;
  gap: 13px;
  color: #fff;
}

.auth-header img { border-radius: 13px; }
.auth-header strong { display: block; font-size: 1.4rem; letter-spacing: 0.06em; }
.auth-header span { color: #ddbd7f; font-size: 0.85rem; font-weight: 600; }

.auth-main { width: min(100%, 500px); margin: 0 auto; }

.auth-card {
  padding: clamp(24px, 6vw, 40px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.11);
}

.auth-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.auth-card h1 { margin: 0 0 10px; font-size: clamp(1.7rem, 7vw, 2.25rem); line-height: 1.17; }
.auth-card p { margin: 0 0 24px; color: var(--muted); font-size:var(--text-md); line-height: 1.55; }
.auth-card .auth-error { padding: 12px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); }
.auth-form { display: grid; gap: 10px; }
.auth-form label { margin-top: 7px; font-size: 0.92rem; font-weight: 750; }

.auth-form input {
  width: 100%;
  min-height: 49px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size:var(--text-md);
}

.auth-form input:focus { border-color: var(--accent); }
.auth-form .auth-help { margin: 4px 0 0; font-size: 0.88rem; }
.auth-card .auth-submit, .auth-card > .primary-button { width: 100%; min-height: 52px; margin-top: 13px; }
.auth-submit:disabled { opacity: 0.58; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 25px; }
.auth-links button { border: 0; background: transparent; color: var(--accent-2); font-weight: 750; cursor: pointer; }
.auth-footnote { max-width: 380px; margin: 24px auto; color: var(--muted); font-size: 0.88rem; line-height: 1.55; text-align: center; }
.auth-code { display: grid; gap: 10px; margin: 22px 0; padding: 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--accent-soft); }
.auth-code span { color: var(--accent-2); font-size: 0.86rem; font-weight: 800; }
.auth-code code { overflow-wrap: anywhere; font-size: 1.05rem; font-weight: 800; user-select: all; }

.auth-owner-setup { padding: 10px 0; }
.auth-owner-setup summary { color: var(--accent-2); font-weight: 750; cursor: pointer; }
.auth-owner-setup label { display: block; margin-top: 12px; }
.auth-card .auth-owner-setup p { margin: 8px 0 0; font-size: 0.86rem; }

@media (prefers-reduced-motion: reduce) {
  .brand-copy-enter .brand-subline,
  .brand-copy-enter .brand-tagline { animation: none; }
}

.header-action {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  cursor: pointer;
}

.header-action svg {
  width: 19px;
  height: 19px;
}

.header-action .action-text {
  display: none;
}

.app-main {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 22px 16px 26px;
}

.view-heading {
  display: flex;
  margin-bottom: 15px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.view-title {
  margin: 0;
  font-size: clamp(1.95rem, 7vw, 2.7rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.view-copy {
  margin: 8px 0 0;
  color: var(--muted);
  font-size:var(--text-md);
  line-height: 1.55;
}

.save-state {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.save-state::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--positive);
  content: "";
  box-shadow: 0 0 0 4px var(--positive-soft);
}

.save-state[data-saving="true"]::before {
  background: var(--accent);
}

.save-state[data-failed="true"] {
  color: var(--danger);
}

.save-state[data-failed="true"]::before {
  background: var(--danger);
  box-shadow: 0 0 0 4px var(--danger-soft);
}

.day-switcher {
  display: grid;
  margin-bottom: 11px;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.day-button {
  position: relative;
  min-height: 66px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--muted);
  padding: 10px 11px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.day-button:active {
  transform: scale(0.98);
}

.day-button.active {
  border-color: var(--text);
  background: var(--text);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(25, 24, 22, 0.13);
}

.day-button.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--energy);
  content: "";
}

.day-letter {
  display: block;
  margin: 0 0 5px;
  color: currentColor;
  font-size: 1.02rem;
  font-weight: 950;
}

.day-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
}

.smart-prompt {
  display: grid;
  margin: 0 0 12px;
  border: 1px solid #dfcca4;
  border-radius: var(--radius);
  background: #faf3e5;
  padding: 14px;
  gap: 11px;
}

.smart-prompt.carryover-prompt {
  border-color: #ddc89b;
  background: #faf5e9;
}

.smart-copy span,
.composition-copy span {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size:var(--text-2xs);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.smart-copy strong {
  display: block;
  font-size: 0.98rem;
}

.smart-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.4;
}

.smart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.smart-primary,
.smart-dismiss {
  min-height: 40px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 780;
}

.smart-dismiss {
  border-color: var(--line-strong);
  background: #ffffff;
  color: var(--muted);
}

.composition-card {
  margin-bottom: 12px;
  border: 1px solid #e2d6c0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff, #f8f1e5);
  padding: 15px;
}

.composition-card.custom {
  background: var(--surface);
}

.composition-card.compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--muted);
  font-size:var(--text-sm);
  font-weight: 750;
}

.composition-card.compact .composition-button { margin-top: 0; }

.composition-copy h2 {
  margin: 0 0 5px;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.composition-copy p,
.composition-foot {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.45;
}

.composition-button {
  display: inline-flex;
  min-height: 43px;
  margin-top: 13px;
  align-items: center;
  gap: 8px;
  border: 1px solid #ddc99f;
  border-radius: 11px;
  background: #ffffff;
  color: var(--accent-2);
  padding: 9px 12px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 820;
}

.composition-button svg {
  width: 17px;
  height: 17px;
}

.composition-link {
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 7px 0;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 770;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.focus-pills {
  display: flex;
  margin: 12px 0 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.focus-pill {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 760;
}

.focus-pill.covered {
  border-color: #dbc698;
  background: var(--positive-soft);
  color: var(--positive);
}

.focus-pill svg {
  width: 13px;
  height: 13px;
}

.composition-empty {
  border-style: dashed;
  padding: 22px 18px;
}

.training-hero {
  position: relative;
  overflow: hidden;
  margin: 14px 0;
  border: 1px solid #39332a;
  border-radius: 26px;
  background: radial-gradient(circle at 95% 0%, rgba(228, 188, 114, 0.18), transparent 45%), #191816;
  color: #ffffff;
  padding: clamp(18px, 5vw, 28px);
  box-shadow: 0 14px 35px rgba(25, 24, 22, 0.17);
}

.training-hero-top,
.training-hero-progress { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.training-hero-top { color: var(--energy); font-size:var(--text-2xs); font-weight: 850; letter-spacing: 0.11em; }
.training-hero-top strong { color: #f0e8d9; font-size:var(--text-2xs); font-weight: 750; letter-spacing: 0; }
.training-hero h2 { margin: 17px 0 3px; font-size: clamp(1.7rem, 6.4vw, 2.35rem); font-weight: 880; letter-spacing: -0.045em; line-height: 1.14; }
.training-hero-focus { margin: 0; color: #e0d7c6; font-size: 0.88rem; }
.training-hero-next { display: flex; margin-top: 20px; border-top: 1px solid #50473b; padding-top: 16px; flex-direction: column; gap: 5px; }
.training-hero-next > span { color: var(--energy); font-size:var(--text-2xs); font-weight: 850; letter-spacing: 0.12em; }
.training-hero-next strong { font-size: clamp(1.14rem, 4.8vw, 1.5rem); line-height: 1.2; }
.training-hero-next small { color: #e0d7c6; font-size: 0.81rem; }
.training-hero-progress { margin-top: 20px; color: #e0d7c6; font-size: 0.77rem; }
.training-hero .progress-track { height: 7px; margin-top: 8px; background: #514b44; }
.training-hero-primary { display: flex; width: 100%; min-height: 56px; margin-top: 19px; align-items: center; justify-content: space-between; gap: 14px; border: 0; border-radius: 14px; background: var(--energy); color: #191816; padding: 12px 16px; cursor: pointer; font-size: 0.98rem; font-weight: 850; text-align: left; }
.training-hero-primary svg { width: 19px; height: 19px; flex: 0 0 19px; }
.training-hero-secondary { min-height: 42px; margin-top: 8px; border: 0; background: transparent; color: #f3e4c7; padding: 7px 1px; cursor: pointer; font-size:var(--text-sm); font-weight: 730; text-align: left; }
.training-hero-primary:focus-visible,
.training-hero-secondary:focus-visible { outline-color: #f5dfb0; }

.exercise-rail { margin: 18px 0 13px; }
.exercise-rail-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 1px 9px; }
.exercise-rail-heading h2 { margin: 0; font-size:var(--text-md); }
.exercise-rail-heading > span { color: var(--muted); font-size: 0.77rem; }
.exercise-rail-list { display: flex; overflow-x: auto; gap: 8px; padding: 2px 0 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.exercise-rail-item { display: grid; min-width: 142px; max-width: 180px; min-height: 90px; flex: 0 0 46%; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; gap: 4px 5px; scroll-snap-align: start; border: 1px solid var(--line-strong); border-radius: 15px; background: var(--surface); color: var(--text); padding: 11px; cursor: pointer; text-align: left; }
.exercise-rail-item > span { color: var(--accent); font-size: 0.76rem; font-weight: 890; }
.exercise-rail-item strong { grid-column: 1 / -1; overflow: hidden; font-size:var(--text-sm); line-height: 1.3; }
.exercise-rail-item small { grid-column: 2; grid-row: 1; color: var(--muted); font-size:var(--text-2xs); font-weight: 760; }
.exercise-rail-item.selected { border-color: #ac833a; background: var(--accent-soft); }
.exercise-rail-item.done { border-color: #c9a464; }

.training-templates { margin: 20px 0 15px; }

.training-launch .view-heading { margin-bottom: 18px; }
.launch-recommendation {
  margin: 17px 0 22px;
  overflow: hidden;
  border: 1px solid #423a2e;
  border-radius: 27px;
  background: radial-gradient(circle at 95% 0, rgba(227, 188, 114, 0.16), transparent 48%), #191816;
  color: #fff;
  padding: clamp(20px, 5vw, 30px);
  box-shadow: 0 16px 35px rgba(25, 24, 22, 0.14);
}
.launch-recommendation-top { display: flex; justify-content: space-between; gap: 12px; color: var(--energy); font-size:var(--text-2xs); font-weight: 850; letter-spacing: 0.12em; }
.launch-recommendation h2 { margin: 24px 0 5px; font-size: clamp(1.9rem, 7vw, 2.65rem); font-weight: 890; line-height: 1.1; letter-spacing: -0.05em; }
.launch-recommendation-focus { margin: 0; color: #e9dbca; font-size: 0.9rem; }
.launch-reason { margin: 23px 0 0; border-top: 1px solid #50483a; padding-top: 17px; color: #f2ece1; line-height: 1.55; font-size: 0.88rem; }
.launch-exercise-preview { display: flex; margin-top: 17px; flex-wrap: wrap; gap: 7px; }
.launch-exercise-preview span { border: 1px solid #65563d; border-radius: 999px; color: #f0e3c9; padding: 6px 9px; font-size:var(--text-2xs); font-weight: 700; }
.launch-plan-chooser { margin: 24px 0 8px; }
.launch-plan-grid { display: grid; gap: 8px; }
.launch-plan-grid > button { display: grid; min-height: 82px; grid-template-columns: 1fr 24px; gap: 4px 7px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); padding: 13px 15px; cursor: pointer; text-align: left; }
.launch-plan-grid > button span { color: var(--accent); font-size:var(--text-2xs); font-weight: 900; letter-spacing: 0.09em; }
.launch-plan-grid > button strong { grid-column: 1; font-size: 0.97rem; line-height: 1.15; }
.launch-plan-grid > button small { grid-column: 1; color: var(--muted); font-size: 0.76rem; }
.launch-plan-grid > button svg { width: 18px; height: 18px; grid-column: 2; grid-row: 2; color: var(--accent); }
.launch-plan-grid > button:active { border-color: var(--accent); background: var(--accent-soft); }
.launch-plan-link, .plan-import-button { display: flex; min-height: 50px; width: 100%; margin-top: 10px; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); color: var(--accent-2); padding: 11px 14px; cursor: pointer; font-weight: 800; text-align: left; }
.launch-plan-link svg, .plan-import-button svg { width: 18px; height: 18px; flex: 0 0 18px; }
.launch-guidance { color: var(--muted); margin: 14px 2px 0; font-size: 0.8rem; line-height: 1.5; }
.launch-notice { display: flex; margin: 10px 0; align-items: center; flex-wrap: wrap; gap: 9px 12px; border: 1px solid var(--line-strong); border-radius: 17px; background: var(--surface); padding: 13px; }
.launch-notice > div { display: flex; min-width: 165px; flex: 1; flex-direction: column; gap: 3px; }
.launch-notice span { color: var(--accent); font-size:var(--text-2xs); font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; }
.launch-notice strong { font-size: 0.95rem; }
.launch-notice small { color: var(--muted); font-size: 0.76rem; }
.launch-notice > button:not(.launch-dismiss) { display: flex; min-height: 44px; align-items: center; gap: 4px; border: 0; border-radius: 11px; background: var(--text); color: #fff; padding: 8px 12px; cursor: pointer; font-weight: 760; }
.launch-notice > button svg { width: 16px; height: 16px; }
.launch-dismiss { border: 0; background: transparent; color: var(--muted); padding: 9px; cursor: pointer; font-size: 0.8rem; }

.plan-library { margin: 16px 0 22px; }
.plan-library-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.plan-library-heading span { color: var(--accent); font-size:var(--text-2xs); font-weight: 900; letter-spacing: 0.1em; }
.plan-library-heading h2 { margin: 4px 0 0; font-size: 1.27rem; letter-spacing: -0.035em; }
.plan-library-heading button { display: flex; min-height: 44px; flex: 0 0 auto; align-items: center; gap: 5px; border: 1px solid var(--text); border-radius: 12px; background: var(--text); color: #fff; padding: 10px 12px; cursor: pointer; font-size: 0.81rem; font-weight: 780; }
.plan-library-heading button svg { width: 16px; height: 16px; }
.own-plan-list { display: grid; gap: 10px; }
.own-plan-card { border: 1px solid var(--line); border-radius: 19px; background: var(--surface); padding: 17px; box-shadow: var(--shadow); }
.own-plan-copy > span { color: var(--accent); font-size:var(--text-2xs); font-weight: 870; letter-spacing: 0.08em; }
.own-plan-copy h3 { margin: 6px 0; font-size: 1.15rem; letter-spacing: -0.025em; }
.own-plan-copy p { margin: 0 0 9px; color: var(--muted); font-size: 0.81rem; line-height: 1.45; }
.own-plan-copy small { color: var(--faint); font-size:var(--text-2xs); }
.own-plan-actions { display: grid; margin-top: 16px; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.own-plan-actions button { min-height: 46px; margin: 0; padding: 10px; font-size: 0.8rem; }
.own-plan-actions button svg { width: 16px; height: 16px; }
.plan-library-empty { border: 1px dashed var(--line-strong); border-radius: 16px; background: var(--surface); padding: 17px; }
.plan-library-empty strong { font-size: 0.97rem; }
.plan-library-empty p { margin: 7px 0 0; color: var(--muted); line-height: 1.5; font-size: 0.83rem; }
.plan-builtins { margin: 25px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.plan-builtins > summary { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 17px; cursor: pointer; list-style: none; }
.plan-builtins > summary::-webkit-details-marker { display: none; }
.plan-builtins > summary span { display: flex; flex-direction: column; gap: 4px; }
.plan-builtins > summary strong { font-size: 0.98rem; }
.plan-builtins > summary small { color: var(--muted); font-size: 0.76rem; }
.plan-builtins > summary svg { width: 19px; height: 19px; color: var(--accent); transition: transform 0.2s; }
.plan-builtins[open] > summary svg { transform: rotate(90deg); }
.plan-builtins-body { border-top: 1px solid var(--line); padding: 14px; }
.plan-builtins-note { margin: 0 0 15px; color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
.plan-builtins-title { display: flex; margin: 0 0 12px; align-items: center; justify-content: space-between; gap: 10px; }
.plan-builtins-title > div { display: flex; flex-direction: column; gap: 4px; }
.plan-builtins-title strong { font-size: 0.92rem; }
.plan-builtins-title small { color: var(--muted); font-size: 0.77rem; }
.plan-builtins-title button { min-height: 42px; flex: 0 0 auto; display: flex; align-items: center; gap: 5px; border: 0; border-radius: 11px; background: var(--text); color: #fff; padding: 8px 12px; cursor: pointer; font-size: 0.8rem; font-weight: 800; }
.plan-builtins-title button svg { width: 15px; height: 15px; }
.plan-editor-back { display: flex; min-height: 45px; align-items: center; gap: 8px; margin: 0 0 13px; border: 0; background: none; color: var(--accent-2); cursor: pointer; padding: 6px 0; font-size: 0.83rem; font-weight: 780; }
.plan-editor-back svg { width: 17px; height: 17px; transform: rotate(180deg); }
.plan-editor-details { display: grid; gap: 11px; margin: 15px 0 19px; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.plan-editor-details .form-field { margin: 0; }
.plan-editor-details small { display: block; margin-top: 7px; color: var(--muted); font-size:var(--text-2xs); }
.plan-editor-view .add-exercise-card { margin-top: 11px; }
.plan-editor-footer { display: grid; gap: 9px; margin: 18px 0; }
.plan-editor-footer p { color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.plan-editor-footer button { min-height: 50px; width: 100%; }

@media (min-width: 640px) {
  .launch-plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-editor-details { grid-template-columns: 1fr 1fr; }
}
.training-template-list { display: flex; overflow-x: auto; gap: 8px; padding: 2px 0 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.training-template-list .saved-workout-row { min-width: 210px; max-width: 265px; flex: 0 0 72%; overflow: hidden; scroll-snap-align: start; border: 1px solid var(--line-strong); border-radius: 15px; background: var(--surface); }
.training-template-list .saved-workout-row > button:first-child { min-height: 66px; padding: 10px 11px; }
.training-template-list .saved-workout-row strong { font-size: 0.84rem; }
.training-template-list .saved-workout-more { min-width: 42px; }

.training-ready .exercise-list,
.training-ready .finish-card { display: none; }

.training-tools { margin: 14px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.training-tools > summary { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 6px; padding: 12px 14px; cursor: pointer; font-size: 0.85rem; font-weight: 790; }
.training-tools > summary span { color: var(--muted); font-size:var(--text-2xs); font-weight: 600; text-align: right; }
.training-tools[open] > summary { border-bottom: 1px solid var(--line); }
.training-tools-body { padding: 4px 14px 15px; }
.training-tools .overview-actions .secondary-button { border-color: var(--line-strong); background: var(--surface); color: var(--text); }

.session-overview {
  margin-bottom: 12px;
  border: 1px solid #191816;
  border-radius: var(--radius-lg);
  background: #191816;
  box-shadow: 0 12px 26px rgba(29, 25, 20, 0.15);
  color: #ffffff;
  padding: 18px;
}

.overview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.overview-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--energy);
  font-size: 0.78rem;
  font-weight: 800;
}

.overview-percent {
  color: var(--energy);
  font-size: 1.8rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
}

.progress-track {
  height: 9px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #50483c;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--energy);
  transition: width 0.2s ease;
}

.overview-copy {
  min-width: 0;
  align-self: center;
}

.overview-copy h2 {
  margin: 0;
  font-size: 1.17rem;
  font-weight: 850;
}

.overview-copy p {
  margin: 0;
  color: #e5dccd;
  font-size: 0.84rem;
  line-height: 1.45;
}

.overview-meta {
  display: flex;
  margin-top: 9px;
  flex-wrap: wrap;
  gap: 7px 14px;
  color: #e5dccd;
  font-size: 0.8rem;
  font-weight: 650;
}

.overview-actions {
  display: grid;
  margin-top: 13px;
  gap: 8px;
}

.overview-actions .secondary-button {
  width: 100%;
  border-color: #746a58;
  background: #302c26;
  color: #ffffff;
}

.save-explain {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.save-workout-button {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--energy);
  border-radius: 12px;
  background: var(--energy);
  color: #191816;
  font-weight: 800;
  cursor: pointer;
}

.save-workout-button svg { width: 16px; height: 16px; vertical-align: middle; }

.saved-workouts {
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.saved-workouts-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; gap: 10px; cursor: pointer; list-style: none; }
.saved-workouts-head::-webkit-details-marker { display: none; }
.saved-workouts-head strong { font-size: 0.95rem; }
.saved-workouts-head span { font-size:var(--text-2xs); color: var(--muted); }
.saved-workouts[open] .saved-workouts-head { border-bottom: 1px solid var(--line); }
.saved-workouts-list { max-height: 188px; overflow: auto; }
.saved-workout-row { display: flex; border-top: 1px solid var(--line); align-items: stretch; }
.saved-workout-row > button:first-child { display: flex; flex: 1; min-width: 0; min-height: 56px; flex-direction: column; align-items: flex-start; justify-content: center; border: 0; background: none; padding: 9px 15px; text-align: left; cursor: pointer; }
.saved-workout-row strong { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; font-size: 0.89rem; }
.saved-workout-row span { color: var(--muted); font-size: 0.76rem; }
.saved-workout-more { min-width: 48px; border: 0; background: none; color: var(--accent); cursor: pointer; }
.saved-workout-more svg { width: 18px; height: 18px; }
.template-preview { color: var(--text); padding: 10px 12px; border-radius: 10px; background: var(--surface-3); font-size: 0.85rem; line-height: 1.5; }

.meta-chip,
.status-chip {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  padding: 4px 9px;
  font-size:var(--text-2xs);
  font-weight: 720;
}

.status-chip.positive {
  border-color: #dfcda8;
  background: var(--positive-soft);
  color: var(--positive);
}

.status-chip.accent {
  border-color: #e0cfae;
  background: var(--accent-soft);
  color: var(--accent);
}

.storage-warning {
  margin-bottom: 14px;
  border: 1px solid #f1bdc8;
  border-radius: 14px;
  background: var(--danger-soft);
  color: var(--danger);
  padding: 12px 14px;
  font-size: 0.88rem;
  line-height: 1.45;
}

/* 5-W-Audit 2026-09-30: "Jetzt sichern" erbte unter beiden Themes eine
   graue Standardfläche mit dunkelroter Schrift (Kontrast ~2:1) - die
   Sicherungs-Erinnerung bekommt dieselbe weisse Fläche wie .storage-resolve. */
.storage-warning button:not(.text-button) {
  min-height: 36px;
  margin: 6px 6px 0 0;
  border: 1px solid currentColor;
  border-radius: 10px;
  background: #ffffff;
  color: var(--danger);
  padding: 6px 12px;
  font-size: var(--text-sm);
  font-weight: 800;
}
.storage-warning .text-button { color: var(--danger); text-decoration: underline; font-weight: 700; }

/* Zuverlaessigkeitsrunde 30.09.2026: Tageslast-Anleitung (R-1.12) und die
   neuen Hinweise der Comeback-Karte folgen der Textgroesse ihrer Umgebung;
   veraltete Vorwerte sind sichtbar, aber zurueckgenommen. */
.inline-advice .day-load-guide ol { margin: 6px 0 6px 18px; padding: 0; font-size: var(--text-2xs); line-height: 1.55; }
.inline-advice .day-load-guide li { margin: 2px 0; }
.inline-advice .day-load-guide .text-button { min-height: var(--tap-min); padding-left: 0; }
.previous-set.stale-reference > span { opacity: .82; font-style: italic; }
.return-status .return-status-weeks,
.return-status .return-status-restart,
.return-status .return-status-review { margin-top: 8px; font-size: .82rem; line-height: 1.6; }
.return-status .return-status-review { font-weight: 650; }
/* Herkunft einer Einheit (Spezifikation B/D): neutrale Information, kein Warnkasten. */
.session-provenance { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-3); color: var(--text); font-size: var(--text-sm); line-height: 1.5; }
.session-provenance > svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; color: var(--accent); }
.session-provenance p { margin: 0; }

.storage-resolve {
  display: block;
  min-height: 44px;
  margin-top: 10px;
  border: 1px solid currentColor;
  border-radius: 10px;
  background: #ffffff;
  color: var(--danger);
  padding: 8px 12px;
  cursor: pointer;
  font-size:var(--text-sm);
  font-weight: 800;
}

.completed-today {
  display: flex;
  margin-bottom: 14px;
  align-items: center;
  gap: 12px;
  border: 1px solid #dfcda8;
  border-radius: 15px;
  background: var(--positive-soft);
  padding: 12px 14px;
}

.completed-today svg {
  width: 22px;
  flex: 0 0 22px;
  color: var(--positive);
}

.completed-today strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.9rem;
}

.completed-today span {
  color: var(--muted);
  font-size: 0.78rem;
}

.exercise-list {
  display: grid;
  gap: 10px;
}

.exercise-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  scroll-margin-block: 115px;
}

.exercise-card.complete {
  border-color: #ceae6c;
}

.exercise-card.has-issue {
  border-color: #efb2c0;
}

.exercise-card.open {
  border-color: #bf9850;
  box-shadow: 0 10px 26px rgba(86, 64, 25, 0.09);
}

.exercise-toggle {
  display: grid;
  width: 100%;
  min-height: 72px;
  border: 0;
  background: transparent;
  padding: 13px 13px 13px 14px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  text-align: left;
}

.exercise-index {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #dec9a0;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.83rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.exercise-card.complete .exercise-index {
  border-color: #d9bf89;
  background: var(--positive-soft);
  color: var(--positive);
}

.exercise-title-wrap {
  min-width: 0;
}

.exercise-title {
  display: block;
  margin-bottom: 4px;
  font-size:var(--text-md);
  font-weight: 830;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.exercise-subline {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.3;
}

.exercise-last {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exercise-subline .truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-divider {
  width: 3px;
  height: 3px;
  flex: 0 0 3px;
  border-radius: 50%;
  background: var(--faint);
}

.exercise-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.chevron {
  width: 18px;
  height: 18px;
  color: var(--faint);
  transition: transform 0.2s ease;
}

.exercise-card.open .chevron {
  transform: rotate(180deg);
}

.exercise-body {
  display: none;
  border-top: 1px solid var(--line);
  padding: 14px 14px 18px;
}

.exercise-card.open .exercise-body {
  display: block;
  animation: reveal 0.17s ease both;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

.exercise-insight {
  display: grid;
  margin-bottom: 13px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.training-quick-tools { display: flex; flex-wrap: wrap; gap: 7px; margin: 2px 0 11px; }
.training-quick-tools .subtle-button { min-height: 42px; }
.training-set-help { margin: -1px 0 9px; color: var(--muted); font-size:var(--text-sm); }
.training-set-help > summary { width: fit-content; min-height: 27px; cursor: pointer; }
.training-set-help p { margin: 3px 0 8px; line-height: 1.45; }
.exercise-extras { margin-top: 16px; border-top: 1px solid var(--line); }
.exercise-extras > summary { min-height: 49px; padding: 15px 0 8px; color: var(--accent); cursor: pointer; font-size:var(--text-sm); font-weight: 770; }
.exercise-extras-body { padding-bottom: 3px; }
.exercise-extras-body .recommendation { margin-top: 10px; }

.insight-box {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  padding: 10px 11px;
}

.insight-box span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.insight-box strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommendation {
  position: relative;
  margin: 15px 0 3px;
  border-left: 3px solid var(--accent);
  border-radius: 4px 12px 12px 4px;
  background: var(--accent-soft);
  padding: 11px 12px;
}

.last-warmups { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 0.83rem; }
.last-warmups span { color: var(--muted); line-height: 1.4; }
.last-warmups .copy-last-button { align-self: flex-start; padding: 0; color: var(--accent); }
.history-inline-link { min-height: 40px; border: 0; background: none; color: var(--accent); padding: 0; font-size: 0.83rem; font-weight: 750; text-align: left; cursor: pointer; }

.recommendation strong {
  display: block;
  margin-bottom: 3px;
  color: var(--accent);
  font-size: 0.82rem;
}

.recommendation p {
  margin: 0;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.45;
}

.warmup-hint {
  display: flex;
  margin: 0 0 12px;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.45;
}

.warmup-hint svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-top: 1px;
  color: var(--accent);
}

.section-minihead {
  display: flex;
  margin: 14px 0 8px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.section-minihead:first-child {
  margin-top: 0;
}

.set-help {
  margin: -2px 0 10px;
  color: var(--muted);
  font-size:var(--text-sm);
  line-height: 1.45;
}

.copy-last-button {
  min-height: 36px;
  border: 1px solid #e0cfae;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-2);
  padding: 7px 10px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
}

.set-head {
  display: grid;
  margin-bottom: 6px;
  padding: 0 3px 0 0;
  grid-template-columns: 42px minmax(64px, 1fr) minmax(54px, 0.8fr) minmax(48px, 0.7fr) 38px;
  align-items: end;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.set-head span:first-child {
  color: transparent;
}

.set-list {
  display: grid;
  gap: 7px;
}

.set-row {
  display: grid;
  grid-template-columns: 42px minmax(64px, 1fr) minmax(54px, 0.8fr) minmax(48px, 0.7fr) 38px;
  align-items: center;
  gap: 6px;
}

.set-row.is-next {
  border-radius: 12px;
  background: #fdf9f0;
  box-shadow: 0 0 0 1px #dfcda8;
}

.set-row.is-next .set-check { border-color: var(--accent); }

.set-complete {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #c2a169;
  border-radius: 10px;
  background: #efe1c5;
  color: #31240e;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.set-complete svg { width: 17px; height: 17px; flex: none; }
.set-complete:active { background: #e4cca0; }

.set-check {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 900;
}

.set-check.done {
  border-color: var(--positive);
  background: var(--positive);
  color: #ffffff;
}

.set-check svg {
  width: 19px;
  height: 19px;
}

.set-field {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #ffffff;
  color: var(--text);
  padding: 0 8px;
  font-size:var(--text-md);
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  text-align: center;
  scroll-margin-block: 160px;
}

.set-field::placeholder {
  color: #8a8175;
  font-weight: 600;
}

.set-field:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.set-row:has(.set-check.done) .set-field {
  border-color: #decb9e;
  background: #fcf8ed;
}

.set-remove {
  display: grid;
  width: 38px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
}

.set-remove svg {
  width: 17px;
  height: 17px;
}

.set-note {
  width: 100%;
  min-height: 39px;
  margin-top: 7px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  padding: 9px 10px;
  font-size: 0.82rem;
  line-height: 1.35;
}

.set-note::placeholder {
  color: #8a8175;
}

.previous-set,
.set-note-wrap {
  grid-column: 2 / -1;
  min-width: 0;
}

.previous-set {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3px 8px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.previous-set strong { color: var(--accent-2); }

.set-copy-button {
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-2);
  padding: 5px 9px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
}

.next-exercise {
  display: grid;
  margin-top: 13px;
  border: 1px solid #dfcda8;
  border-radius: 14px;
  background: var(--accent-soft);
  padding: 12px;
  gap: 8px;
}

.next-exercise > span { color: var(--accent-2); font-size: 0.77rem; font-weight: 800; }
.next-exercise .primary-button { min-height: 49px; justify-content: space-between; text-align: left; }

.set-note-wrap {
  color: var(--muted);
  font-size: 0.78rem;
}

.set-note-wrap summary {
  width: fit-content;
  padding: 2px 0;
  cursor: pointer;
  list-style-position: inside;
}

.set-note-wrap[open] summary {
  color: var(--accent);
  font-weight: 730;
}

.warmup-list .set-row {
  grid-template-columns: 42px minmax(64px, 1fr) minmax(54px, 0.8fr) 38px;
}

.warmup-list .rir-field {
  display: none;
}

.row-actions {
  display: flex;
  margin-top: 11px;
  flex-wrap: wrap;
  gap: 7px;
}

.text-button,
.subtle-button,
.secondary-button,
.primary-button,
.danger-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 11px;
  padding: 9px 13px;
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1.2;
  cursor: pointer;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding-inline: 8px;
}

.subtle-button,
.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
}

.secondary-button {
  color: var(--text);
}

.primary-button {
  border: 1px solid var(--text);
  background: var(--text);
  color: #ffffff;
  box-shadow: 0 9px 18px rgba(29, 25, 20, 0.15);
}

.primary-button:disabled {
  border-color: var(--line);
  background: var(--surface-3);
  box-shadow: none;
  color: var(--faint);
  cursor: not-allowed;
}

.danger-button {
  border: 1px solid #f1bdc8;
  background: var(--danger-soft);
  color: var(--danger);
}

.icon-button svg,
.text-button svg,
.subtle-button svg,
.secondary-button svg,
.primary-button svg,
.danger-button svg {
  width: 18px;
  height: 18px;
}

.exercise-actions {
  display: flex;
  margin-top: 14px;
  padding-top: 13px;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--line);
}

.issue-toggle.active {
  border-color: #f1bdc8;
  background: var(--danger-soft);
  color: var(--danger);
}

.add-exercise-card {
  width: 100%;
  min-height: 54px;
  margin-top: 11px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 750;
}

.add-exercise-card svg {
  width: 17px;
  height: 17px;
  vertical-align: -3px;
}

.finish-card {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 16px;
}

.finish-card h2 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.finish-card p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.finish-card .primary-button {
  width: 100%;
  min-height: 50px;
}

.cancel-workout-button {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 9px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 680;
}
.cancel-workout-button:hover,
.cancel-workout-button:focus-visible { color: var(--accent-2); background: var(--accent-soft); }

.timer-overlay {
  position: fixed;
  z-index: 1200;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  color: var(--text);
}

.timer-screen {
  display: flex;
  width: min(100%, 680px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(26px + env(safe-area-inset-top, 0px)) 23px calc(25px + env(safe-area-inset-bottom, 0px));
  flex-direction: column;
}

.timer-top {
  display: flex;
  min-height: 51px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.timer-kicker {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  color: var(--accent-2);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.timer-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.timer-close {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  cursor: pointer;
  font-size:var(--text-sm);
  font-weight: 750;
}

.timer-close svg { width: 19px; height: 19px; }

.timer-wake-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
}

.timer-wake-toggle[aria-pressed="true"] {
  color: var(--accent-2);
  border-color: var(--accent-2);
  background: var(--accent-soft);
}

.timer-wake-toggle svg { width: 19px; height: 19px; }

.timer-content {
  display: flex;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 30px 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.timer-section-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.timer-content h2 {
  margin: 0;
  font-size: clamp(1.55rem, 6vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.timer-dial {
  position: relative;
  width: clamp(224px, 65vw, 294px);
  aspect-ratio: 1;
  margin: clamp(26px, 6vh, 62px) auto 0;
}

.timer-dial svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-ring-track,
.timer-ring-progress { fill: none; stroke-width: 7; }
.timer-ring-track { stroke: #e6dece; }
.timer-ring-progress {
  stroke: var(--accent);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.45s linear;
}

.timer-clock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.timer-clock span,
.timer-clock small {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 650;
}

.timer-clock strong {
  margin: 3px 0;
  font-size: clamp(3.7rem, 16vw, 5.4rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.09em;
  line-height: 1;
}

.timer-clock small { font-size:var(--text-2xs); font-weight: 800; letter-spacing: 0.13em; }

.timer-last-set {
  display: flex;
  margin-top: clamp(28px, 6vh, 65px);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  flex-direction: column;
  gap: 5px;
}

.timer-last-set > span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.timer-last-set strong {
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
}

.timer-actions {
  display: grid;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.timer-actions button {
  min-height: 60px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 0.96rem;
  font-weight: 820;
  line-height: 1.2;
}

.timer-adjust { border: 1px solid var(--line-strong); background: #ffffff; color: var(--text); }
/* Layout only: appearance (background/color/border) comes from the more
   specific ".timer-stop{...}" rule below, per theme. This selector used
   to also set background:var(--text)/color:#fff directly, which is a
   sensible dark-on-light button in the light baseline but produced
   near-white-on-cream once --text became a light color for the dark
   Obsidian Gold theme (DES-01) - and, being two classes, silently
   outranked the corrected single-class ".timer-stop" rule meant to fix
   exactly that. */
.timer-actions .timer-stop { display: inline-flex; grid-column: 1 / -1; align-items: center; justify-content: center; gap: 6px; }
.timer-stop svg { width: 17px; height: 17px; }
.sync-status { display: inline-block; margin-top: 5px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); padding: 7px 11px; font-size:var(--text-sm); font-weight: 800; }

@media (max-height: 650px) {
  .timer-screen { padding-top: calc(10px + env(safe-area-inset-top, 0px)); padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .timer-content { padding: 12px 0; }
  .timer-dial { width: min(42vh, 232px); margin-top: 8px; }
  .timer-clock strong { font-size: clamp(3.3rem, 13vh, 4.5rem); }
  .timer-last-set { margin-top: 9px; padding-top: 10px; }
  .timer-actions button { min-height: 50px; }
}

.bottom-nav {
  position: fixed;
  z-index: 40;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  border-top: 1px solid var(--line);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 36px rgba(29, 25, 20, 0.16);
  padding: 5px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.bottom-nav-inner {
  display: grid;
  width: min(100%, 520px);
  margin: 0 auto;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
}

.nav-button {
  display: flex;
  min-height: 58px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--faint);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  font-size: 0.81rem;
  font-weight: 750;
}

.nav-button svg {
  width: 21px;
  height: 21px;
}

.nav-button.active {
  background: var(--text);
  color: #ffffff;
}

.nav-button.active svg { color: var(--energy); }

.panel,
.stat-card,
.history-card,
.plan-card,
.settings-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.stats-grid {
  display: grid;
  margin-bottom: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.stat-card {
  min-width: 0;
  padding: 13px 11px;
}

.stat-card span {
  display: block;
  margin-bottom: 7px;
  color: var(--faint);
  font-size:var(--text-2xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  overflow: hidden;
  font-size: clamp(1rem, 4.8vw, 1.35rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size:var(--text-2xs);
}

.stats-explain {
  margin: -5px 2px 16px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.section-heading {
  display: flex;
  margin: 21px 0 10px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size:var(--text-md);
  font-weight: 850;
}

.section-heading span {
  color: var(--faint);
  font-size:var(--text-2xs);
}

.history-list,
.plan-list,
.settings-list {
  display: grid;
  gap: 9px;
}

.history-card {
  display: grid;
  width: 100%;
  min-height: 78px;
  border: 1px solid var(--line);
  padding: 12px 13px;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.history-date {
  display: grid;
  width: 46px;
  height: 49px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--accent-soft);
  line-height: 1;
}

.history-date strong {
  align-self: end;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}

.history-date span {
  align-self: start;
  margin-top: 4px;
  color: var(--accent);
  font-size:var(--text-2xs);
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.history-main {
  min-width: 0;
}

.history-main strong {
  display: block;
  overflow: hidden;
  margin-bottom: 5px;
  font-size: 0.94rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-main span {
  display: block;
  color: var(--muted);
  font-size:var(--text-2xs);
}

.history-metric {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.empty-state {
  padding: 28px 20px;
  color: var(--muted);
  text-align: center;
}

.empty-state svg {
  width: 38px;
  height: 38px;
  margin-bottom: 11px;
  color: var(--faint);
}

.empty-state h2 {
  margin-bottom: 6px;
  color: var(--text);
  font-size:var(--text-md);
}

.empty-state p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.5;
}

.analysis-card {
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.exercise-progress-body { padding: 0 16px 16px; }
.exercise-progress-body > label { display: block; margin-bottom: 7px; font-size: 0.85rem; font-weight: 760; }
.exercise-progress-body > select { width: 100%; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--text); padding: 7px 11px; font-size: 0.93rem; }
.set-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 13px 0 8px; }
.set-comparison > div { min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: var(--bg); padding: 11px 9px; }
.set-comparison > div:first-child { border-color: #d4b47a; background: var(--accent-soft); }
.set-comparison span { display: block; min-height: 31px; color: var(--muted); font-size:var(--text-2xs); line-height: 1.35; }
.set-comparison strong { display: block; color: var(--text); font-size: clamp(1.08rem, 5vw, 1.45rem); font-variant-numeric: tabular-nums; white-space: nowrap; }
.set-comparison strong small { font-size: 0.73em; }
.set-comparison em { display: block; margin-top: 4px; color: var(--accent); font-size:var(--text-2xs); font-style: normal; font-weight: 800; }
.set-comparison p, .set-comparison-empty { margin: 5px 0 0; color: var(--muted); font-size: 0.77rem; line-height: 1.4; }
.set-comparison-empty { margin: 12px 0; }
.rep-target { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 9px 0; color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.rep-target select { min-height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--text); padding: 5px 9px; font: inherit; font-variant-numeric: tabular-nums; }
.exercise-progress-body > h3, .dialog-body > h3 { margin: 14px 0 7px; font-size: 0.93rem; }
.metric-switch { display: flex; gap: 7px; padding: 13px 0 6px; overflow-x: auto; scrollbar-width: thin; }
.metric-switch button { flex: 0 0 auto; min-height: 39px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--muted); padding: 7px 11px; font-size: 0.79rem; font-weight: 740; cursor: pointer; }
.metric-switch button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.exercise-chart-summary { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-top: 8px; }
.exercise-chart-summary strong { font-size: 1.25rem; color: var(--accent); }
.exercise-chart-summary span, .chart-disclaimer { color: var(--muted); font-size: 0.78rem; line-height: 1.45; }
.chart-disclaimer { margin: 9px 0; }
.exercise-history-row { display: flex; flex-direction: column; gap: 3px; border-top: 1px solid var(--line); padding: 9px 0; font-size: 0.84rem; line-height: 1.45; }
.exercise-history-row strong { color: var(--accent); font-size: 0.8rem; }
.exercise-history-row span { overflow-wrap: anywhere; }
.exercise-history-row small { color: var(--muted); font-size: 0.78rem; }

.muscle-map-card { border-color: #d8c7a9; scroll-margin-top: 90px; }
.muscle-map-card .analysis-head { padding-bottom: 10px; }
.muscle-map-kicker { display: block; margin-bottom: 7px; color: var(--accent); font-size:var(--text-2xs); font-weight: 850; letter-spacing: 0.08em; }
.muscle-map-card .analysis-head h2 { font-size: clamp(1.12rem, 4.7vw, 1.45rem); letter-spacing: -0.025em; }
.muscle-scope { display: grid; gap: 7px; padding: 6px 16px 14px; }
.muscle-scope label { color: var(--text); font-size: 0.9rem; font-weight: 760; }
.muscle-scope select { min-width: 0; width: 100%; min-height: 49px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; color: var(--text); padding: 8px 12px; font-size: 0.91rem; }
.muscle-map-summary { display: flex; gap: 6px 14px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin: 0 16px 14px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-2); padding: 12px 14px; }
.muscle-map-summary strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.muscle-map-summary span { color: var(--accent-2); opacity: .8; font-size: 0.81rem; line-height: 1.4; }
.muscle-map-summary.empty { border: 1px solid var(--line); background: var(--surface-3); color: var(--text); }
.muscle-map-summary.empty span { color: var(--muted); opacity: 1; }
.muscle-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 0 16px; }
.muscle-figures figure { min-width: 0; margin: 0; overflow: hidden; border: 1px solid #e8ddc8; border-radius: 18px; background: radial-gradient(circle at 50% 39%, #fff 0, #f7f3ea 74%); text-align: center; }
.muscle-figures figure > div { width: min(100%, 216px); margin: 6px auto 0; padding: 0 2px; }
.muscle-figure { display: block; width: 100%; height: auto; }
.muscle-outline { fill: #eeeae3; stroke: #9a9284; stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.muscle-zone, .muscle-neutral { stroke: #fffdf9; stroke-width: 0.8; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.muscle-neutral { fill: #e8e2d8; pointer-events: none; }
.muscle-zone[data-action] { cursor: pointer; }
.muscle-zone.selected { stroke: #624411; stroke-width: 1.3; }
.muscle-graphic-unavailable { min-height: 260px; align-content: center; padding: 15px; color: var(--muted); font-size: 0.8rem; }
.muscle-figures figcaption { padding: 5px 5px 10px; color: var(--accent-2); font-size: 0.79rem; font-weight: 850; letter-spacing: 0.12em; }
.muscle-map-legend { display: flex; flex-wrap: wrap; gap: 7px 12px; padding: 14px 16px 0; }
.muscle-map-legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.78rem; }
.muscle-map-legend i { display: inline-block; width: 14px; height: 14px; flex: 0 0 14px; border: 1px solid #c8b99e; border-radius: 4px; }
.muscle-map-legend .legend-zero { background: #e4ded3; }
.muscle-map-legend .legend-light { background: #e5ca92; }
.muscle-map-legend .legend-mid { background: #c39543; }
.muscle-map-legend .legend-strong { background: #806019; }
.muscle-map-legend .legend-indirect { background: repeating-linear-gradient(135deg, #f5e9d1 0 4px, #ae8744 4px 5px); }
.muscle-map-legend-note { margin: 8px 16px 0; color: var(--faint); font-size:var(--text-2xs); line-height: 1.5; }
.muscle-coverage-note { margin: 10px 16px 14px; color: var(--muted); font-size: 0.83rem; line-height: 1.5; }
.muscle-group-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 0 16px 15px; }
.muscle-group-button { display: flex; min-width: 0; min-height: 59px; flex-direction: column; justify-content: center; gap: 3px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--text); padding: 8px 10px; text-align: left; cursor: pointer; }
.muscle-group-button.selected { border-color: #9c752e; background: var(--accent-soft); box-shadow: inset 3px 0 #a67b2f; }
.muscle-group-button strong { font-size: 0.85rem; line-height: 1.3; }
.muscle-group-button span { color: var(--muted); font-size:var(--text-2xs); line-height: 1.3; }
.muscle-detail { border-top: 1px solid var(--line); padding: 14px 16px 12px; }
.muscle-detail h3 { margin: 0 0 3px; font-size: 1.01rem; }
.muscle-detail > p { margin: 0 0 11px; color: var(--muted); font-size: 0.83rem; line-height: 1.5; }
.muscle-detail .muscle-empty-note { padding: 8px 0 2px; }
.muscle-log { display: grid; gap: 5px; border-top: 1px solid var(--line); padding: 12px 0; }
.muscle-log > div { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 3px 9px; }
.muscle-log strong { font-size: 0.88rem; }
.muscle-log small { color: var(--muted); font-size: 0.76rem; }
.muscle-log > span { color: var(--text); font-size: 0.84rem; line-height: 1.5; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.muscle-log button { justify-self: start; min-height: 35px; border: 0; background: none; color: var(--accent-2); padding: 5px 0; cursor: pointer; font-size: 0.78rem; font-weight: 750; }
.muscle-unassigned { margin: 0 16px 16px; border: 1px solid #d7be8b; border-radius: 13px; background: #fdf8ec; padding: 12px; }
.muscle-unassigned > strong { font-size: 0.9rem; }
.muscle-unassigned p { margin: 4px 0 8px; color: var(--muted); font-size: 0.81rem; line-height: 1.45; }
.muscle-unassigned button { display: flex; width: 100%; min-height: 43px; align-items: center; justify-content: space-between; gap: 7px; border: 0; border-top: 1px solid #e6d9be; background: none; color: var(--accent-2); padding: 8px 0; cursor: pointer; font-size: 0.81rem; font-weight: 780; text-align: left; }
.muscle-unassigned button svg { width: 18px; height: 18px; flex: 0 0 18px; }
.muscle-method { border-top: 1px solid var(--line); padding: 0 16px 14px; }
.muscle-method summary { min-height: 49px; align-content: center; color: var(--accent-2); cursor: pointer; font-size: 0.84rem; font-weight: 780; }
.muscle-method p { margin: 6px 0 10px; color: var(--muted); font-size: 0.82rem; line-height: 1.55; }
.muscle-method a { display: block; padding: 6px 0; color: var(--accent-2); font-size: 0.82rem; text-decoration: underline; }
@media (min-width: 600px) {
  .muscle-figures { max-width: 540px; margin-inline: auto; }
  .muscle-group-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.analysis-head {
  padding: 16px;
}

.analysis-head h2 {
  margin-bottom: 5px;
  font-size: 1.02rem;
}

.analysis-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.analysis-list {
  border-top: 1px solid var(--line);
}

.analysis-row {
  display: grid;
  padding: 12px 15px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.analysis-row:last-child {
  border-bottom: 0;
}

.analysis-row strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.9rem;
}

.analysis-row span {
  color: var(--muted);
  font-size:var(--text-2xs);
  line-height: 1.4;
}

.trend-value {
  align-self: center;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  text-align: right;
}

.plan-tabs {
  display: flex;
  margin-bottom: 12px;
  overflow-x: auto;
  gap: 7px;
  scrollbar-width: none;
}

.plan-tabs::-webkit-scrollbar {
  display: none;
}

.plan-tab {
  min-height: 43px;
  flex: 1 0 auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--muted);
  padding: 8px 13px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 760;
}

.plan-tab.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.plan-card {
  display: grid;
  min-height: 70px;
  padding: 11px 11px 11px 13px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.plan-card-main {
  min-width: 0;
}

.plan-card-main strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.86rem;
}

.plan-card-main span {
  display: block;
  color: var(--muted);
  font-size:var(--text-2xs);
  line-height: 1.35;
}

.plan-card-actions {
  display: flex;
  gap: 4px;
}

.icon-button {
  display: grid;
  width: var(--tap-min);
  height: var(--tap-min);
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-3);
  color: var(--muted);
  cursor: pointer;
}

.plan-footer {
  display: grid;
  margin-top: 12px;
  gap: 8px;
}

.plan-footer .primary-button,
.plan-footer .secondary-button {
  width: 100%;
}

.settings-card {
  padding: 16px;
}

.brand-showcase {
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #191816;
  box-shadow: var(--shadow);
}

.brand-showcase img { display: block; width: 100%; height: auto; }

.icon-update-tip { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.icon-update-tip summary { color: var(--accent); font-size: 0.83rem; font-weight: 750; cursor: pointer; }
.settings-card .icon-update-tip p { margin: 8px 0 0; font-size: 0.83rem; }

.settings-card h2 {
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.settings-card p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.settings-card .button-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.settings-card .button-stack > * {
  width: 100%;
}

.settings-row {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 11px 0 0;
}

.settings-row-copy strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.84rem;
}

.settings-row-copy span {
  display: block;
  color: var(--muted);
  font-size:var(--text-2xs);
  line-height: 1.4;
}

.timer-default-setting {
  align-items: stretch;
  flex-direction: column;
  gap: 12px;
}

.timer-preference {
  display: grid;
  width: min(100%, 440px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.timer-preference label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size:var(--text-sm);
  font-weight: 750;
}

.timer-preference input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  padding: 9px 11px;
  font-size:var(--text-md);
  font-variant-numeric: tabular-nums;
}

.timer-preference button {
  min-height: 48px;
  grid-column: 1 / -1;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-2);
  cursor: pointer;
  font-size:var(--text-sm);
  font-weight: 820;
}

.switch {
  position: relative;
  width: 50px;
  height: 29px;
  flex: 0 0 50px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-3);
  cursor: pointer;
}

.switch::after {
  position: absolute;
  width: 21px;
  height: 21px;
  top: 3px;
  left: 4px;
  border-radius: 50%;
  background: var(--muted);
  content: "";
  transition: transform 0.18s ease, background 0.18s ease;
}

.switch[aria-checked="true"] {
  border-color: var(--accent-2);
  background: var(--accent-soft);
}

.switch[aria-checked="true"]::after {
  transform: translateX(20px);
  background: var(--accent);
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.privacy-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
  color: var(--positive);
}

.app-dialog {
  width: min(calc(100% - 24px), 520px);
  max-height: min(86vh, 760px);
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 28px 90px rgba(29, 25, 20, 0.28);
  padding: 0;
}

.app-dialog::backdrop {
  background: rgba(29, 25, 20, 0.48);
  backdrop-filter: blur(5px);
}

.dialog-head {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  padding: 11px 12px 11px 17px;
  backdrop-filter: blur(14px);
}

.dialog-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.dialog-close {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 11px;
  background: var(--surface-3);
  color: var(--muted);
  cursor: pointer;
}

.dialog-close svg {
  width: 19px;
  height: 19px;
}

.dialog-body {
  padding: 16px;
}

.dialog-copy {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--muted);
  font-size:var(--text-2xs);
  font-weight: 760;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #ffffff;
  color: var(--text);
  padding: 10px 11px;
  font-size: 0.91rem;
}

.form-field textarea {
  min-height: 80px;
  resize: vertical;
}

.dialog-actions {
  display: flex;
  margin-top: 17px;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-list {
  display: grid;
  gap: 8px;
}

.exercise-choice-list {
  max-height: 268px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 2px;
}

.exercise-choice {
  display: grid;
  justify-items: start;
  gap: 4px;
}

.exercise-choice strong {
  font-size: 0.88rem;
}

.equipment-filter {
  margin: 10px 0;
}

.body-add {
  width: 100%;
  margin: 3px 0 14px;
}

.body-stats,
.circumference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.body-stats {
  margin-bottom: 12px;
}

.body-stat,
.body-panel,
.body-entry {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.body-stat {
  min-width: 0;
  min-height: 125px;
  padding: 16px 14px;
  box-shadow: var(--shadow);
}

.body-stat:first-child { border-color: #decb9e; background: #faf2e3; }

.body-stat > span,
.circumference-item > span {
  display: block;
  color: var(--faint);
  font-size: 0.85rem;
  font-weight: 740;
}

.body-stat > strong {
  display: block;
  margin: 5px 0;
  font-size: clamp(1.1rem, 4.5vw, 1.45rem);
  font-variant-numeric: tabular-nums;
}

.body-stat > small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.body-panel {
  margin: 11px 0;
  padding: 18px;
  box-shadow: var(--shadow);
}

.body-panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 15px;
}

.body-panel-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.body-panel-header span {
  color: var(--faint);
  font-size:var(--text-2xs);
}

.body-metric-tabs {
  display: flex;
  overflow-x: auto;
  padding-bottom: 5px;
  gap: 6px;
  scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}

.body-metric-tab {
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-3);
  padding: 7px 10px;
  color: var(--muted);
  cursor: pointer;
  font-size:var(--text-sm);
  font-weight: 750;
}

.body-metric-tab.active {
  border-color: var(--text);
  background: var(--text);
  color: #ffffff;
}

.body-chart-wrap {
  margin-top: 13px;
}

.chart-visual {
  border: 1px solid #e3d8c5;
  border-radius: 18px;
  background: linear-gradient(165deg, #faf3e7 0%, #ffffff 72%);
  padding: 13px 10px 12px;
}

.body-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 190px;
}

.chart-headline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 14px;
}

.chart-headline div { display: flex; flex-direction: column; gap: 2px; }
.chart-headline span { color: var(--muted); font-size:var(--text-sm); font-weight: 750; }
.chart-headline strong { color: var(--text); font-size: clamp(1.55rem, 6vw, 2rem); font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }
.chart-headline small { color: var(--accent-2); font-size:var(--text-sm); font-weight: 780; }
.chart-axis { fill: var(--muted); font-size:var(--text-2xs); font-weight: 650; }
.chart-area { opacity: 0.95; }

.chart-grid {
  fill: none;
  stroke: #e8dec9;
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.5;
}

.chart-point {
  fill: #ffffff;
  stroke: var(--accent);
  stroke-width: 3;
}

.chart-dates {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.body-chart-empty {
  display: grid;
  min-height: 165px;
  place-content: center;
  color: var(--muted);
  border: 1px dashed #dec99d;
  border-radius: 18px;
  background: linear-gradient(140deg, #faf3e7, #ffffff);
  padding: 22px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.5;
}

.body-chart-empty strong { display: block; color: var(--text); font-size: 1.07rem; margin-bottom: 5px; }

.circumference-item {
  min-width: 0;
  border-radius: 11px;
  background: var(--bg);
  padding: 11px;
}

.circumference-item strong {
  display: block;
  margin-top: 3px;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.body-measure-tip {
  margin: 14px 3px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.body-history {
  display: grid;
  gap: 9px;
}

.body-entry {
  overflow: hidden;
  padding: 12px 14px;
}

.body-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.body-entry-head > div {
  min-width: 0;
}

.body-entry-head strong,
.body-entry-head span {
  display: block;
}

.body-entry-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.body-entry-details summary {
  width: fit-content;
  margin-top: 9px;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 750;
}

.body-entry-details .circumference-grid {
  margin-top: 11px;
}

.body-entry-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.body-form-details {
  margin-top: 15px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}

.body-form-details summary {
  color: var(--accent);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
}

.body-form-details p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.body-note-field {
  margin-top: 15px;
}

.body-empty {
  margin-top: 12px;
}

.choice-empty {
  color: var(--muted);
  font-size: 0.83rem;
}

.choice-button {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--text);
  padding: 10px 13px;
  cursor: pointer;
  text-align: left;
}

.choice-button span {
  color: var(--muted);
  font-size:var(--text-2xs);
}

.choice-button svg {
  width: 18px;
  height: 18px;
  color: var(--faint);
}

.dialog-divider {
  height: 1px;
  margin: 16px 0;
  background: var(--line);
}

.plate-result { margin-top: 15px; border: 1px solid #dfcda8; border-radius: 15px; background: #fdf9f0; padding: 15px; }
.plate-result-label { color: var(--accent-2); font-size: 0.77rem; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.plate-tokens { display: flex; flex-wrap: wrap; margin: 11px 0; gap: 7px; }
.plate-token { border: 1px solid #d7bd86; border-radius: 9px; background: #fff; color: var(--text); padding: 9px 11px; font-size: 0.87rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.plate-total { margin: 0; font-size:var(--text-md); font-weight: 850; }
.plate-message { margin: 14px 0 0; color: var(--muted); font-size: 0.86rem; }
.plate-note { margin: 13px 2px 17px; color: var(--muted); font-size: 0.78rem; line-height: 1.45; }

.history-detail-list {
  display: grid;
  gap: 12px;
}

.history-exercise {
  border-bottom: 1px solid var(--line);
  padding-bottom: 11px;
}

.history-exercise:last-child {
  border-bottom: 0;
}

.history-exercise h3 {
  margin-bottom: 7px;
  font-size: 0.86rem;
}

.history-set-line {
  display: flex;
  margin-top: 5px;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.76rem;
}

.history-set-line strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.history-edit-list { display: grid; gap: 13px; }
.history-edit-exercise { border: 1px solid var(--line); border-radius: 15px; background: var(--bg); padding: 12px; }
.history-edit-exercise h3 { margin: 0 0 8px; font-size: 0.96rem; line-height: 1.35; }
.history-edit-set { border-top: 1px solid var(--line); padding: 10px 0; }
.history-edit-set > strong { display: block; margin-bottom: 7px; color: var(--accent); font-size: 0.8rem; }
.history-edit-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.history-edit-fields label { min-width: 0; color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.history-edit-fields input { display: block; width: 100%; min-width: 0; height: 45px; margin-top: 5px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--text); padding: 7px; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.history-edit-note { margin-top: 16px; }
.history-edit-note textarea { width: 100%; min-height: 72px; resize: vertical; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface); color: var(--text); padding: 10px; }

.summary-hero {
  margin-bottom: 15px;
  border: 1px solid #dfcda8;
  border-radius: 16px;
  background: var(--positive-soft);
  padding: 15px;
  text-align: center;
}

.summary-hero svg {
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  color: var(--positive);
}

.summary-hero h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.summary-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.summary-grid {
  display: grid;
  margin-bottom: 15px;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.summary-metric {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  padding: 10px 7px;
  text-align: center;
}

.summary-metric strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.98rem;
}

.summary-metric span {
  color: var(--muted);
  font-size:var(--text-2xs);
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 12px;
  bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  display: grid;
  width: min(calc(100% - 24px), 500px);
  margin: 0 auto;
  pointer-events: none;
  gap: 8px;
}

.toast {
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 44px rgba(29, 25, 20, 0.2);
  color: var(--text);
  padding: 11px 13px;
  font-size: 0.82rem;
  font-weight: 700;
  animation: toast-in 0.22s ease both;
}

.toast.success {
  border-color: var(--success);
}

.toast.error {
  border-color: #efb2c0;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.noscript {
  margin: 30px auto;
  color: var(--text);
  padding: 20px;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (min-width: 620px) {
  .app-main {
    padding-top: 28px;
  }

  .header-action {
    padding-inline: 13px;
  }

  .header-action .action-text {
    display: inline;
    font-size: 0.78rem;
    font-weight: 760;
  }

  .day-button {
    min-height: 72px;
    padding: 12px 15px;
  }

  .day-label {
    font-size: 0.86rem;
  }

  .exercise-toggle {
    min-height: 83px;
    padding-inline: 16px;
  }

  .exercise-body {
    padding: 16px;
  }

  .settings-card .button-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .bottom-nav {
    padding-inline: 5px;
  }

  .nav-button {
    font-size:var(--text-2xs);
  }

  .app-main {
    padding-inline: 11px;
  }

  .app-header-inner {
    padding-inline: 12px;
  }

  .day-button {
    padding-inline: 8px;
  }

  .day-label {
    font-size: 0.82rem;
  }

  .exercise-toggle {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 8px;
    padding-inline: 10px;
  }

  .exercise-index {
    width: 38px;
    height: 38px;
  }

  .exercise-progress {
    gap: 4px;
  }

  .set-head,
  .set-row {
    grid-template-columns: 39px minmax(59px, 1fr) minmax(50px, 0.78fr) minmax(43px, 0.66fr) 32px;
    gap: 4px;
  }

  .set-check {
    width: 38px;
  }

  .set-remove {
    width: 32px;
  }

  .exercise-insight {
    grid-template-columns: 1fr;
  }
}

.first-start-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.first-start-card .first-start-secondary { min-height: 52px; padding: 0 16px; border: 1px solid #ffffff50; border-radius: 13px; background: #ffffff0a; color: #fff; font-weight: 650; }
.first-start-card .first-start-secondary:hover { background: #ffffff18; border-color: #ffffff85; }
html[data-theme="violet"] .first-start-card .first-start-secondary { border-color: #714b822e; background: #ffffff80; color: var(--text); }
html[data-theme="violet"] .first-start-card .first-start-secondary:hover { background: #fff; border-color: #8750a166; }
@media (max-width: 650px) {
  .first-start-actions { display: grid; grid-template-columns: 1fr; }
  .first-start-card .first-start-actions button { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* BYM 4 — white space, carbon, restrained gold. */
:root{--bg:#f6f7f9;--bg-deep:#eef0f3;--surface:#fff;--surface-2:#fff;--surface-3:#f2f3f5;--line:#e5e7eb;--line-strong:#ced1d6;--text:#17191c;--muted:#646971;--faint:#737983;--accent:#8b6627;--accent-2:#6d4c16;--accent-soft:#f7f0e2;--energy:#d8b56d;--positive:#80601f;--positive-soft:#f7f0e2;--radius:20px;--radius-lg:26px;--shadow:0 5px 20px #18233306}
html,body{background:var(--bg)}body{background:var(--bg)}button{cursor:pointer}button:disabled{cursor:not-allowed}.app-shell{padding-bottom:105px}.app-header{background:#ffffffed;border-bottom:1px solid var(--line);backdrop-filter:blur(18px)}.app-header-inner{width:100%;max-width:none;min-height:84px;padding:12px 32px}.brand-home{border:0;background:none;text-align:left;padding:0}.brand-word{font-size:1.7rem;letter-spacing:-.06em;font-weight:900}.brand-period{color:var(--accent);margin-left:1px}.brand-mark,.brand-mark img{width:48px;height:48px}.brand-mark{flex-basis:48px;border-radius:14px;box-shadow:none}.brand-subline{font-size:.78rem;color:var(--text);letter-spacing:0}.brand-tagline{font-size:var(--text-2xs);color:var(--accent);font-weight:600}.header-right{display:flex;align-items:center;gap:20px}.header-save{display:flex;align-items:center;gap:7px;font-size:.82rem;color:var(--muted)}.header-save svg{width:17px;height:17px}.header-icon{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--line);border-radius:50%;background:#fff}.header-icon svg{width:19px;height:19px}.app-main{max-width:1180px;padding:36px 28px 40px}.view-heading{margin-bottom:27px}.eyebrow{font-size:var(--text-2xs);letter-spacing:.14em;font-weight:750;color:var(--muted)}.view-title{font-size:clamp(2.5rem,4.4vw,4rem);line-height:1.05;letter-spacing:-.055em;font-weight:850}.view-copy{font-size:var(--text-md);color:var(--muted);line-height:1.6;max-width:620px}.launch-heading{align-items:flex-end}.launch-heading .view-title span{color:#777c83}.edition-mark{font-size:var(--text-2xs);color:var(--faint);letter-spacing:.12em;border-bottom:1px solid var(--line-strong);padding-bottom:7px}.gold-text{color:var(--accent)}.page-count{display:flex;flex-direction:column;font-size:2.5rem;line-height:1.1;font-weight:800;text-align:right;letter-spacing:-.05em}.page-count small{font-size:var(--text-2xs);font-weight:500;letter-spacing:0;color:var(--muted);margin-top:5px}
.primary-button,.training-hero-primary{border-radius:13px;background:#17191c;color:#fff;box-shadow:none;min-height:50px;font-weight:700}.primary-button:hover{background:#303338}.secondary-button{border:1px solid var(--line);background:#fff;box-shadow:none;border-radius:12px}.text-button{font-size:var(--text-sm);display:inline-flex;align-items:center;gap:7px;color:var(--accent)}.text-button svg{width:17px;height:17px}.section-heading{align-items:center;margin:0 0 20px;gap:12px}.section-heading h2{font-size:1.1rem;font-weight:750;letter-spacing:-.025em}.section-heading>span{font-size:.8rem;color:var(--muted)}
.launch-layout{display:grid;grid-template-columns:minmax(0,1.17fr) minmax(0,1fr);gap:24px;align-items:start}.launch-primary,.launch-secondary{min-width:0;display:flex;flex-direction:column;gap:22px}.launch-recommendation{position:relative;isolation:isolate;overflow:hidden;margin:0;border:1px solid #2b2d30;border-radius:24px;background:radial-gradient(ellipse at 100% 0%,#393127 0%,transparent 54%),#181a1d;padding:30px;color:#fff;box-shadow:0 14px 35px #17191c12}.launch-recommendation:after{content:"";position:absolute;z-index:-1;right:-45px;top:-70px;width:230px;height:230px;border:1px solid #d8b56d22;border-radius:50%;box-shadow:0 0 0 32px #d8b56d06,0 0 0 64px #d8b56d04;pointer-events:none}.launch-recommendation-top{color:#d9b777;letter-spacing:.1em;font-size:var(--text-2xs);gap:10px}.launch-recommendation-top>span:first-child{display:flex;align-items:center;gap:8px}.launch-recommendation-top svg{width:15px;height:15px}.launch-recommendation-top>span:last-child{background:#ffffff0b;border:1px solid #ffffff18;border-radius:6px;padding:5px 8px;color:#b8bdc5}.launch-recommendation h2{font-size:clamp(1.85rem,3.1vw,2.7rem);letter-spacing:-.05em;line-height:1.08;margin:26px 0 9px;font-weight:800;overflow-wrap:anywhere}.launch-recommendation-focus{color:#b9bdc5;font-size:var(--text-sm);line-height:1.5}.launch-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:28px 0}.launch-numbers>div+div{border-left:1px solid #ffffff1a;padding-left:18px}.launch-numbers strong{display:block;font-size:2rem;line-height:1.1;letter-spacing:-.035em;font-weight:650}.launch-numbers strong small{font-size:var(--text-sm);font-weight:500}.launch-numbers span{display:block;font-size:var(--text-2xs);color:#aeb3bc;margin-top:7px}.launch-recommendation .training-hero-primary{width:100%;background:linear-gradient(110deg,#e0c086,#cda660);color:#1b1b1c;justify-content:space-between;padding:0 19px;height:55px;font-size:var(--text-md);border:1px solid #edcf93}.launch-recommendation .training-hero-primary:hover{filter:brightness(1.06);transform:translateY(-1px)}.launch-reason{border:0;padding:0;margin:17px 0 0;display:flex;gap:8px;align-items:flex-start;color:#aeb4bd;font-size:.78rem;line-height:1.55}.launch-reason p{margin:0}.launch-reason svg{width:15px;height:15px;margin-top:2px;flex:none}.today-controls,.week-panel,.next-preview,.coach-preferences,.science-card{padding:23px;border:1px solid var(--line);border-radius:20px;background:#fff}.today-controls>label{display:block;margin:18px 0 9px;font-size:.8rem;font-weight:600;color:var(--muted)}.segmented{display:flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:11px;background:#f5f6f7}.segmented button{flex:1;border:0;border-radius:8px;padding:10px 8px;background:none;white-space:nowrap;font-size:.8rem;font-weight:650;min-height:40px}.segmented button.active{background:#fff;color:var(--text);box-shadow:0 1px 5px #11111112}.time-budget button.active{background:#202227;color:#fff;box-shadow:none}.effort-row{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:22px}.effort-row strong{display:block;font-size:.9rem;margin-bottom:5px}.effort-row span{display:block;color:var(--muted);font-size:.8rem;line-height:1.5}.switch{flex-shrink:0}.switch[aria-checked=true]{background:#a47d35;border-color:#a47d35}.control-note{font-size:.78rem;line-height:1.6;color:var(--muted);margin:15px 0 0}.week-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.week-day{border:0;background:none;border-radius:12px;padding:5px 0;display:flex;flex-direction:column;align-items:center;gap:9px}.week-day>span{font-size:var(--text-2xs);font-weight:650;color:var(--muted)}.week-day strong{display:grid;place-items:center;width:35px;height:38px;border-radius:11px;font-size:var(--text-sm);font-weight:600}.week-day.today strong{border:1px solid #b48c45;color:#886023;background:#fcf8ef}.week-day.trained strong{background:#1d1f22;color:#dfbb77;border-color:#1d1f22}.week-day strong svg{width:18px;height:18px}.week-day i{height:3px;width:3px;border-radius:50%;background:transparent}.week-day.today i{background:var(--accent)}.week-bottom{border-top:1px solid var(--line);padding-top:16px;margin-top:17px;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:.78rem;color:var(--muted)}.week-bottom button{background:none;border:0;color:var(--accent);font-size:var(--text-2xs);display:flex;align-items:center;gap:6px;padding:6px 0}.week-bottom svg{width:15px;height:15px}.next-preview{padding-bottom:15px}.preview-row{display:flex;gap:13px;align-items:center;border-top:1px solid var(--line);padding:15px 0}.preview-row>span{font-size:var(--text-2xs);color:#9da2aa;font-variant-numeric:tabular-nums}.preview-row>div{flex:1;min-width:0}.preview-row strong{display:block;font-size:.86rem;font-weight:650}.preview-row small{display:block;color:var(--muted);font-size:var(--text-2xs);margin-top:4px}.preview-row>svg{color:#a7acb3;width:15px;height:15px}.preview-more{color:var(--muted);font-size:var(--text-2xs)}.launch-plan-chooser{margin:30px 0 0}.launch-plan-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.launch-plan-grid>button{background:#fff;border:1px solid var(--line);border-radius:17px;padding:20px;text-align:left;min-height:136px;box-shadow:none;position:relative}.launch-plan-grid>button.selected{border-color:#b48b40;background:#fcf9f3;box-shadow:inset 0 0 0 1px #b48b4022}.launch-plan-grid>button>span{color:var(--accent);font-size:var(--text-2xs);letter-spacing:.1em}.launch-plan-grid>button>strong{font-size:1.1rem;letter-spacing:-.035em;margin-top:14px;line-height:1.2}.launch-plan-grid>button>small{font-size:var(--text-2xs);color:var(--muted);line-height:1.6}.launch-plan-grid>button>svg{position:absolute;right:16px;top:17px;width:16px;height:16px}.launch-notice{background:#fff;border:1px solid #b89a61;border-radius:16px;margin-bottom:24px}.return-note{display:flex;align-items:flex-start;gap:16px;padding:20px 22px;margin-top:24px;background:#f5eedf;border:1px solid #e8ddc7;border-radius:16px}.return-note>svg{width:22px;height:22px;flex:none;color:var(--accent)}.return-note strong{font-size:.95rem}.return-note p{font-size:var(--text-sm);line-height:1.6;margin:6px 0 0;color:var(--muted)}.last-session{margin-top:30px}.quiet-manifesto{padding:40px 0 0;text-align:center}.quiet-manifesto>span{font-size:var(--text-2xs);letter-spacing:.2em;color:var(--muted)}.quiet-manifesto strong{display:block;color:var(--accent);font-size:1.5rem;font-weight:650;letter-spacing:-.04em;margin-top:7px}.quiet-manifesto p{font-size:.8rem;color:var(--muted);margin-top:9px}
.bottom-nav{background:#fffffff5;border:1px solid var(--line);box-shadow:0 -5px 25px #15191d06;border-radius:20px 20px 0 0;padding:9px 8px calc(9px + env(safe-area-inset-bottom));max-width:none;bottom:0;left:0;right:0;transform:none;width:100%}.bottom-nav-inner{max-width:650px;margin:auto}.nav-button{font-size:var(--text-2xs);font-weight:600;border-radius:13px;min-height:59px;color:#757b84}.nav-button svg{width:21px;height:21px}.nav-button.active{background:#1a1c20;color:#e4c485;box-shadow:none}.nav-button.active span{color:#fff}.nav-caption,.nav-signature{display:none}
.session-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px}.session-heading h1{font-size:2.15rem;line-height:1.1;letter-spacing:-.055em;margin:7px 0 8px;font-weight:800}.session-heading p:not(.eyebrow){margin:0;font-size:.8rem;color:var(--muted)}.session-finish{background:#1b1d21;color:#fff;border:0;border-radius:12px;padding:13px 17px;display:flex;align-items:center;gap:12px;font-size:.85rem;font-weight:650}.session-finish svg{width:18px;height:18px}.session-finish:disabled{opacity:.4}.session-dashboard{display:flex;flex-wrap:wrap;align-items:center;gap:32px;padding:20px 24px;background:#fff;border:1px solid var(--line);border-radius:17px;margin-bottom:22px}.session-dashboard>div:not(.progress-track){display:flex;align-items:center;gap:12px}.session-dashboard>div>span{color:var(--muted);font-size:.78rem}.session-dashboard svg{width:20px;height:20px}.session-dashboard strong{font-size:1.35rem;letter-spacing:-.035em}.session-dashboard strong small{font-size:.8rem;color:var(--muted);font-weight:500}.session-dashboard .save-state{margin-left:auto;font-size:var(--text-2xs)}.session-dashboard .progress-track{width:100%;flex-basis:100%;height:3px;margin:0;background:#e9e9e8}.progress-track span{background:linear-gradient(90deg,#b38b43,#e0bf7a)}.training-workspace{display:grid;grid-template-columns:230px minmax(0,1fr);gap:22px;align-items:start}.training-workspace .exercise-rail{margin:0;position:sticky;top:108px;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#fff}.exercise-rail-heading{padding:17px 15px;margin:0}.exercise-rail-heading h2{font-size:.95rem}.exercise-rail-heading button{background:none;border:0;padding:0;font-size:var(--text-2xs)}.exercise-rail-list{display:flex;flex-direction:column;gap:0;padding:0;overflow:visible}.exercise-rail-item{min-width:0;width:100%;background:#fff;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none;text-align:left;display:grid;grid-template-columns:25px minmax(0,1fr) 30px;align-items:center;padding:15px 12px;gap:9px}.exercise-rail-item>span{font-size:var(--text-2xs);color:var(--faint)}.exercise-rail-item>span svg{width:17px;height:17px}.exercise-rail-item strong{font-size:.8rem;white-space:normal;line-height:1.4;font-weight:600}.exercise-rail-item small{font-size:var(--text-2xs)}.exercise-rail-item.selected{background:#f7f1e6;border-left:3px solid #b78e45;padding-left:9px;color:var(--text)}.exercise-rail-item.done{color:var(--accent)}.rail-add{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;background:#fff;border:0;border-top:1px solid var(--line);font-size:var(--text-2xs);padding:18px 12px;color:var(--muted)}.rail-add svg{width:16px;height:16px}.training-content{min-width:0}.focus-mode .exercise-card:not(.open){display:none}.exercise-list{gap:16px}.exercise-card,.exercise-card.open{border:1px solid var(--line);border-radius:20px;box-shadow:none;background:#fff}.exercise-toggle{padding:23px 22px;gap:14px}.exercise-index{width:43px;height:43px;background:#f3f4f6;border:0;border-radius:12px;font-size:var(--text-md);color:#7b818a}.exercise-card.complete .exercise-index{background:#f4eddf;color:var(--accent)}.exercise-title{font-size:1.25rem;letter-spacing:-.035em;font-weight:750;line-height:1.25}.exercise-subline{font-size:.78rem}.exercise-body{padding:0 22px 22px}.exercise-insight{display:grid;grid-template-columns:1.4fr 1fr;gap:12px;margin-top:18px}.insight-box{padding:14px;background:#f6f7f8;border:0;border-radius:12px}.insight-box span{font-size:var(--text-2xs);letter-spacing:.02em}.insight-box strong{font-size:.82rem;line-height:1.55;color:#3c424b}.inline-advice{display:flex;gap:11px;padding:16px 0;margin:0 0 5px;border-bottom:1px solid var(--line)}.inline-advice>span{color:var(--accent);flex:none}.inline-advice svg{width:18px;height:18px}.inline-advice strong{font-size:.83rem;color:var(--accent)}.inline-advice p{font-size:.79rem;line-height:1.55;color:var(--muted);margin:5px 0}.inline-advice button{background:none;border:0;padding:5px 0;display:inline-flex;gap:6px;align-items:center;font-size:.8rem;font-weight:650;color:var(--accent)}.training-quick-tools{margin:15px 0}.training-quick-tools .subtle-button{font-size:.78rem;padding:10px;background:#f5f6f7;border:0;border-radius:9px;min-height:41px}.set-head,.set-row{grid-template-columns:42px minmax(68px,1fr) minmax(63px,1fr) minmax(59px,.8fr) 28px;gap:8px}.set-head{font-size:var(--text-2xs);text-transform:none;letter-spacing:0}.set-row{padding:12px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}.set-row.is-next{background:#fbf8f1;border:1px solid #e6d9bd;padding:12px 10px;margin:0 -10px;border-radius:13px}.set-field{border:1px solid #dce0e5;background:#fff;border-radius:10px;height:49px;font-size:var(--text-md);font-weight:600;min-width:0}.set-check{width:42px;height:46px;border-radius:10px;border:1px solid #d8dce1;background:#fff;font-size:.85rem}.set-check.done{background:#1e2024;color:#e3bd76;border-color:#1e2024}.set-row:has(.set-check.done) .set-field{background:#f5f6f8;color:#737982;border-color:transparent}.set-remove{width:28px;height:44px;color:#9ca2ab}.set-remove svg{width:15px;height:15px}.set-complete{background:#1b1d21;color:#fff;border-radius:10px;min-height:48px;font-size:.83rem;justify-content:space-between;border:0}.set-complete svg{width:18px;height:18px}.previous-set{font-size:var(--text-2xs);color:var(--muted);gap:8px;line-height:1.5}.previous-set strong{color:var(--accent)}.set-copy-button{font-size:var(--text-2xs);background:#fff;border:1px solid var(--line);border-radius:6px;min-height:32px;padding:5px 8px}.set-note-wrap{font-size:var(--text-2xs);color:var(--muted)}.exercise-extras{margin-top:20px}.exercise-extras>summary{font-size:.82rem}.session-tools{display:flex;gap:12px;margin:16px 0}.session-tools button{display:flex;gap:7px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:10px;min-height:42px;padding:10px 13px;font-size:.76rem;color:var(--muted)}.session-tools svg{width:16px;height:16px}.undo-bar{display:flex;align-items:center;justify-content:space-between;padding:12px 15px;background:#f5eedf;border-radius:12px;margin-top:12px;font-size:.8rem}.undo-bar>span{display:flex;align-items:center;gap:8px}.undo-bar svg{width:16px;height:16px}.undo-bar button{border:0;background:none;text-decoration:underline;font-size:.8rem}.save-explain{font-size:.78rem;line-height:1.6;color:var(--muted)}
.view-tabs{display:flex;border-bottom:1px solid var(--line);gap:28px;margin-bottom:26px;overflow:auto;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)}.view-tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:11px 1px 15px;white-space:nowrap;font-size:.9rem;color:var(--muted);font-weight:600}.view-tabs button.active{border-bottom-color:#a47d35;color:var(--text)}.analysis-card,.body-panel,.settings-card,.history-card,.own-plan-card,.plan-library{border:1px solid var(--line);box-shadow:none;border-radius:20px;background:#fff}.exercise-progress-card{padding:25px}.analysis-head{padding:0;margin-bottom:22px}.chart-select-label{display:block;color:var(--muted);font-size:.8rem;margin-bottom:8px}.exercise-progress-card>select{width:100%;padding:13px 15px;font-size:var(--text-md);border:1px solid var(--line);border-radius:11px;background:#f8f9fa;color:var(--text)}.progress-metric-tabs{display:flex;gap:7px;margin:18px 0;overflow:auto;padding:0;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)}.progress-metric-tabs>button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:9px 12px;font-size:.78rem;color:var(--muted);white-space:nowrap}.progress-metric-tabs>button.active{background:#1c1e22;color:#fff;border-color:#1c1e22}.chart-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:16px 0}.chart-controls>label{font-size:var(--text-2xs);color:var(--muted);display:flex;align-items:center;gap:8px}.chart-controls select{border:1px solid var(--line);border-radius:8px;padding:8px;background:white}.chart-range{display:inline-flex;width:auto}.chart-range button{font-size:var(--text-2xs);padding:7px 9px;min-height:33px}.exercise-chart-summary{padding:22px 0 5px}.exercise-chart-summary strong{font-size:2.6rem;letter-spacing:-.055em;font-weight:750}.exercise-chart-summary span{font-size:.8rem}.chart-readout{display:flex;justify-content:space-between;align-items:center;margin:12px 0;font-size:var(--text-2xs);gap:12px}.chart-readout span{color:var(--muted)}.chart-readout strong{font-weight:600}.body-chart{width:100%;height:auto;max-height:350px;min-height:170px}.chart-line{fill:none;stroke:#b18b46;stroke-width:2.8;stroke-linejoin:round;stroke-linecap:round}.chart-point{fill:#b18b46;stroke:#fff;stroke-width:2}.chart-hit{cursor:pointer;outline:none}.chart-hit:focus .chart-point,.chart-hit:hover .chart-point{stroke:#1a1c20;stroke-width:3}.chart-axis{font-size:13px;fill:#818892}.chart-grid{stroke:#e8eaee;stroke-width:1;stroke-dasharray:3 5}.chart-dates{padding:0 10px 0 50px;color:var(--muted);font-size:var(--text-2xs)}.chart-table{font-size:.78rem;color:var(--muted);margin-top:20px;border-top:1px solid var(--line);padding-top:13px}.chart-table>summary{cursor:pointer}.chart-table>div{max-height:240px;overflow:auto}.chart-table p{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:8px 0;gap:20px;margin:0}.chart-disclaimer{font-size:.77rem;line-height:1.65;margin-top:18px}.set-comparison{margin-top:25px}.consistency-panel{background:#fff;border:1px solid var(--line);border-radius:20px;padding:25px;margin-top:23px}.consistency-panel .eyebrow{font-size:var(--text-2xs);margin:0 0 7px}.consistency-bars{height:170px;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:18px;padding-top:10px}.consistency-bars>div{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0}.consistency-bars strong{font-size:.8rem;font-weight:600}.consistency-bars span{display:flex;align-items:flex-end;width:100%;height:105px;border-radius:7px;background:#f4f5f7;overflow:hidden}.consistency-bars i{display:block;width:100%;min-height:3px;background:linear-gradient(0deg,#b38a43,#dbc08b);border-radius:7px 7px 0 0}.consistency-bars i.empty{background:none;border:1px dashed var(--line-strong);border-radius:6px;min-height:9px}.consistency-bars small{font-size:var(--text-2xs);color:var(--muted);white-space:nowrap}.consistency-panel>p{font-size:.78rem;color:var(--muted);line-height:1.6;margin:20px 0 0}.progress-empty,.coach-empty{background:#fff;border:1px solid var(--line);border-radius:20px;padding:40px;max-width:none}.progress-empty>span,.coach-empty>span{display:grid;place-items:center;width:53px;height:53px;border-radius:15px;background:#f4eedf;color:var(--accent);margin-bottom:22px}.progress-empty svg,.coach-empty>span svg{width:25px;height:25px}.progress-empty h2{font-size:1.6rem;letter-spacing:-.035em}.progress-empty p,.coach-empty p{font-size:.95rem;line-height:1.7;color:var(--muted);max-width:650px}.progress-empty button,.coach-empty button{margin-top:20px;width:auto;padding-inline:22px}.history-search{display:grid;grid-template-columns:1fr auto;gap:8px;margin:20px 0 25px}.history-search label{grid-column:1/-1;font-size:.78rem;color:var(--muted)}.history-search input{width:100%;border:1px solid var(--line);border-radius:11px;background:#fff;padding:13px 15px;min-width:0;font-size:.9rem}.history-search button{border:0;background:#1d1f23;color:white;padding:0 18px;border-radius:11px}.history-card{padding:18px;gap:17px}.history-date{background:#f4f5f7;border:0;border-radius:10px;width:48px;min-height:55px}.history-date strong{font-size:1.3rem}.history-main>strong{font-size:.95rem}.history-main>span{font-size:.77rem}.history-metric{color:var(--accent);font-size:var(--text-2xs)}.weight-trend-panel{display:flex;align-items:center;justify-content:space-between;gap:25px;background:#1d1f23;color:white;border-radius:22px;padding:29px;margin:22px 0}.weight-trend-panel .eyebrow{color:#d1b57e;font-size:var(--text-2xs)}.weight-trend-panel h2{font-size:1.4rem;letter-spacing:-.03em;margin:8px 0}.weight-trend-panel p:not(.eyebrow){font-size:.8rem;color:#aeb4bd;margin:0}.weight-trend-values{display:flex;gap:40px}.weight-trend-values>div{display:flex;flex-direction:column;gap:8px}.weight-trend-values span,.weight-trend-values>div>small{font-size:var(--text-2xs);color:#b9bec5}.weight-trend-values strong{font-size:2.15rem;letter-spacing:-.04em}.weight-trend-values strong small{font-size:.85rem;font-weight:400}.body-stat{background:#fff;border:1px solid var(--line);border-radius:16px}.body-stat strong{font-size:1.7rem}.body-stat small{font-size:var(--text-2xs);line-height:1.6}.body-panel{padding:24px}.body-panel>.chart-range{margin:15px 0}.body-metric-tabs{gap:7px}.body-metric-tab{background:#f4f5f7;border:0;border-radius:8px;font-size:var(--text-2xs)}.body-metric-tab.active{background:#1e2024;color:#fff}.body-add{width:auto;padding:13px 22px}.body-panel-header h2{font-size:1.15rem}.body-panel-header span{font-size:var(--text-2xs)}.body-entry,.plan-card{background:#fff;border-color:var(--line);border-radius:15px}.body-entry-head{gap:12px}.body-entry-head span{font-size:.8rem}
.coach-seal{display:grid;place-items:center;width:60px;height:60px;border-radius:19px;background:#1a1c20;color:#d9b570}.coach-seal svg{width:29px;height:29px}.coach-answer{background:radial-gradient(ellipse at 100% 0%,#3b3428,transparent 58%),#1c1e22;color:#fff;border-radius:24px;padding:32px;margin-bottom:27px}.coach-answer>.eyebrow{color:#d6b575;font-size:var(--text-2xs)}.coach-questions{display:flex;flex-wrap:wrap;gap:9px;margin:20px 0 26px}.coach-questions button{background:#ffffff08;border:1px solid #ffffff23;color:#bdc2ca;border-radius:9px;padding:11px 14px;font-size:.8rem}.coach-questions button.active{background:#dbbb7e;border-color:#dbbb7e;color:#1d1e22}.coach-answer h2{font-size:clamp(1.5rem,2.6vw,2.2rem);line-height:1.3;letter-spacing:-.04em;max-width:820px;margin:0 0 15px;font-weight:650}.coach-answer>p{font-size:.9rem;line-height:1.65;color:#b9bfc8;max-width:750px}.coach-answer>.text-button{background:transparent;border:0;color:#e1c38b;padding:12px 0 0}.coach-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:24px;align-items:start}.coach-recommendations,.coach-side{min-width:0}.coach-side{display:flex;flex-direction:column;gap:20px}.coach-advice{background:#fff;border:1px solid var(--line);padding:23px;border-radius:17px;margin-bottom:15px}.coach-advice-heading{display:flex;gap:13px;align-items:center}.advice-icon{display:grid;place-items:center;width:40px;height:40px;background:#f5efdf;color:var(--accent);border-radius:11px;flex:none}.advice-icon svg{width:20px;height:20px}.coach-advice small{font-size:var(--text-2xs);color:var(--muted)}.coach-advice h3{font-size:var(--text-md);letter-spacing:-.025em;margin:5px 0 0}.coach-advice>p{font-size:.86rem;color:var(--muted);line-height:1.65;margin:17px 0}.coach-advice details,.science-card details{font-size:.78rem;color:var(--muted);line-height:1.6}.coach-advice .advice-meta,.inline-advice .advice-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 8px}.inline-advice .advice-why{margin-top:6px}.inline-advice .advice-why>summary{font-size:.79rem;font-weight:650;color:var(--accent);cursor:pointer}.coach-advice summary,.science-card summary{font-weight:600;color:var(--text);cursor:pointer}.coach-advice>.text-button{background:none;border:0;padding:18px 0 0;font-size:.77rem}.coach-preferences label{display:block;font-size:.78rem;margin:18px 0 8px;color:var(--muted)}.coach-preferences select{width:100%;border:1px solid var(--line);border-radius:9px;padding:12px;background:#f9fafb;color:var(--text);font-size:.88rem}.coach-preferences>.section-heading>svg{width:17px;height:17px;color:var(--muted)}.coach-preferences>p{font-size:.8rem;color:var(--muted);line-height:1.6}.science-card .eyebrow{font-size:var(--text-2xs);color:var(--accent)}.science-card h3{font-size:1.1rem;letter-spacing:-.025em;line-height:1.4;margin:12px 0}.science-card p{font-size:.8rem;line-height:1.75;color:var(--muted)}.science-card a{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:var(--text-2xs);padding:12px 0;border-top:1px solid var(--line);text-decoration:none;color:var(--accent)}.science-card a svg{width:15px;height:15px;flex:none}.coach-empty{padding:28px}.coach-empty h3{font-size:1.2rem;letter-spacing:-.025em}
.plan-library{padding:25px}.plan-library-heading{padding:0 0 22px}.plan-library-heading span{color:var(--accent);font-size:var(--text-2xs)}.plan-library-heading h2{font-size:1.55rem;letter-spacing:-.035em}.plan-library-heading>button{background:#1b1d21;color:#fff;border:0;border-radius:10px;padding:12px 14px;font-size:.8rem}.own-plan-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.own-plan-card{background:#f9fafb;padding:20px;display:flex;flex-direction:column;justify-content:space-between;margin:0}.own-plan-copy h3{font-size:1.3rem;letter-spacing:-.04em}.own-plan-copy span{font-size:var(--text-2xs);color:var(--accent)}.own-plan-copy p{font-size:.8rem;line-height:1.65}.own-plan-copy small{font-size:var(--text-2xs)}.own-plan-actions{margin-top:20px}.plan-builtins{background:#fff;border:1px solid var(--line);border-radius:18px;margin-top:24px}.plan-builtins summary{padding:23px}.plan-builtins-title{gap:15px}.plan-card-main span{font-size:.8rem}.settings-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.settings-card{margin:0;padding:25px}.settings-card h2{font-size:1.2rem;letter-spacing:-.03em}.settings-card p{font-size:.85rem;line-height:1.7}.brand-showcase{display:none}.settings-card .button-stack{grid-template-columns:1fr!important}.settings-row-copy span{font-size:.78rem}.settings-row-copy strong{font-size:.9rem}.timer-preference{flex-wrap:wrap}.settings-card:nth-child(2){grid-row:span 2}.auth-device-link{display:block;border:0;background:none;padding:20px 0;color:var(--accent);font-size:.9rem;margin:auto}.auth-device-link svg{width:16px;height:16px}.app-dialog{border-radius:22px;border:1px solid #e2e4e8;box-shadow:0 25px 100px #0003}.app-dialog::backdrop{background:#0c111899;backdrop-filter:blur(4px)}.dialog-head{padding:22px 24px;border-bottom:1px solid var(--line)}.dialog-head h2{font-size:1.35rem;letter-spacing:-.035em}.dialog-body{padding:24px}.dialog-copy{font-size:.9rem;line-height:1.7}.dialog-body input,.dialog-body select,.dialog-body textarea{border-radius:10px;border-color:var(--line)}.choice-button{border:1px solid var(--line);border-radius:11px;background:#fff;font-size:.9rem}.toast{background:#1c1f24;color:#fff;border:1px solid #393d44;box-shadow:0 6px 24px #0002;font-size:.83rem;border-radius:12px}.toast.success{background:#1c1f24;color:var(--success);border-color:var(--success-soft)}
.timer-overlay{background:radial-gradient(ellipse at 50% 43%,#30291e 0%,#1d1e22 44%,#131518 100%);color:#fff;z-index:200}.timer-screen{max-width:650px;padding:calc(25px + env(safe-area-inset-top)) 30px calc(25px + env(safe-area-inset-bottom));min-height:100dvh;justify-content:space-between;gap:16px}.timer-top{width:100%;border-bottom:1px solid #ffffff16;padding-bottom:20px;align-items:center}.timer-kicker{color:#cbb68f;font-size:var(--text-2xs);letter-spacing:.12em;gap:10px}.timer-logo{border-radius:10px;width:34px;height:34px}.timer-close{color:#b5bac3;border:0;background:#ffffff08;border-radius:9px;padding:9px 12px;min-height:40px;font-size:var(--text-2xs)}.timer-content{gap:0;text-align:center}.timer-section-label{font-size:var(--text-2xs);letter-spacing:.2em;color:#b29a70;margin-bottom:12px}.timer-content h2{font-size:clamp(1.35rem,3.8vw,1.9rem);line-height:1.25;letter-spacing:-.035em;font-weight:650;max-width:460px;margin:0 auto}.timer-dial{width:min(65vw,310px);height:min(65vw,310px);margin:24px auto 20px;filter:none}.timer-ring-track{stroke:#ffffff0e;stroke-width:3}.timer-ring-progress{stroke:#dbb66d;stroke-width:4;filter:drop-shadow(0 0 7px #d5af6855);stroke-linecap:round}.timer-clock>span{font-size:var(--text-2xs);color:#c4b28f;letter-spacing:.03em}.timer-clock strong{font-size:clamp(3.7rem,14vw,5.9rem);font-weight:450;letter-spacing:-.07em;line-height:1.25;font-variant-numeric:tabular-nums}.timer-clock small{font-size:var(--text-2xs);letter-spacing:.2em;color:#858b94}.timer-last-set{border:0;border-radius:0;background:transparent;padding:0;margin:0}.timer-last-set>span{font-size:var(--text-2xs);color:#a0a6af}.timer-last-set strong{font-size:1.35rem;font-weight:500;letter-spacing:-.03em;margin:6px 0 0}.timer-undo{border:0;background:none;color:#aaaeb5;text-decoration:underline;text-underline-offset:3px;font-size:var(--text-2xs);padding:12px}.timer-actions{gap:11px;display:grid;grid-template-columns:1fr 1fr;width:100%}.timer-adjust{border:1px solid #ffffff26;border-radius:12px;background:#ffffff05;color:#d5d9df;min-height:49px;font-size:.84rem;font-weight:500}.timer-stop{background:linear-gradient(100deg,#e0c086,#c9a05a);color:#17191b;min-height:56px;border:0;border-radius:12px;font-size:.95rem;box-shadow:none;grid-column:1/-1}.timer-stop:focus-visible{outline:2px solid #fff;outline-offset:4px}
@keyframes bym-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}.training-launch,.progress-view,.coach-view{animation:bym-in .24s ease-out both}.primary-button,.nav-button,.launch-plan-grid>button,.training-hero-primary{transition:background .18s ease,border-color .18s ease,transform .18s ease}.primary-button:active,.training-hero-primary:active{transform:scale(.985)}.brand-copy-enter .brand-subline,.brand-copy-enter .brand-tagline{animation:brand-copy-reveal .5s ease both}.brand-copy-enter .brand-tagline{animation-delay:.15s}
@media(min-width:1080px){.app-shell{padding-bottom:0}.app-main{width:calc(100% - 236px);margin-left:236px;padding:38px clamp(24px,3.2vw,52px) 50px;max-width:1350px}.bottom-nav{position:fixed;left:0;right:auto;top:84px;bottom:0;width:236px;border:0;border-right:1px solid var(--line);border-radius:0;box-shadow:none;background:#fff;padding:37px 20px 20px;display:flex;flex-direction:column;align-items:stretch}.bottom-nav-inner{display:flex;flex-direction:column;gap:9px;width:100%;margin:0}.nav-button{flex-direction:row;justify-content:flex-start;gap:15px;min-height:49px;padding:13px 17px;font-size:var(--text-sm);border-radius:12px}.nav-button svg{width:21px;height:21px}.nav-caption{display:block;font-size:var(--text-2xs);letter-spacing:.1em;color:#969ca5;margin:0 14px 24px;line-height:1.6}.nav-signature{display:block;margin-top:auto;padding:28px 12px 0}.nav-signature>span{font-size:var(--text-2xs);letter-spacing:.1em;color:#a0a6ae}.nav-signature>strong{display:block;font-size:1.05rem;letter-spacing:-.03em;color:var(--accent);margin-top:7px}.nav-signature>small{display:block;font-size:var(--text-2xs);color:var(--muted);margin-top:8px}.nav-signature>button{display:flex;gap:10px;align-items:center;width:100%;border:0;border-top:1px solid var(--line);background:none;padding:22px 0 0;margin-top:30px;font-size:.78rem;color:var(--muted)}.nav-signature svg{width:18px;height:18px}.app-header-inner{padding-inline:31px}.header-right{padding-right:16px}.training-workspace{grid-template-columns:205px minmax(0,1fr)}.training-active{max-width:1380px}}
@media(max-width:1079px){.app-main{max-width:800px}.app-header-inner{max-width:800px;margin:auto;padding-inline:25px}.training-workspace{grid-template-columns:1fr}.training-workspace .exercise-rail{position:static;border:0;background:none;border-radius:0}.exercise-rail-heading{padding:0 0 12px}.exercise-rail-list{flex-direction:row;overflow:auto;gap:8px;padding-bottom:7px}.exercise-rail-item{flex:0 0 154px;border:1px solid var(--line);border-radius:12px;grid-template-columns:20px minmax(0,1fr);padding:11px;min-height:73px}.exercise-rail-item.selected{border:1px solid #bc9858;padding:11px;background:#fbf6ec}.exercise-rail-item strong{font-size:var(--text-2xs)}.exercise-rail-item small{grid-column:2;font-size:var(--text-2xs)}.rail-add{display:none}.training-content>.session-tools{margin-top:18px}.training-content:after{content:"";display:block}.header-save>span{display:none}.settings-list{grid-template-columns:1fr 1fr}.coach-layout{grid-template-columns:1.5fr 1fr;gap:18px}.coach-preferences,.science-card{padding:19px}}
@media(max-width:640px){.app-main{padding:26px 18px 30px}.app-header-inner{min-height:75px;padding:10px 18px}.brand-mark,.brand-mark img{width:43px;height:43px}.brand-mark{flex-basis:43px;border-radius:12px}.brand-word{font-size:1.45rem}.brand-subline{font-size:var(--text-2xs)}.brand-tagline{font-size:var(--text-2xs)}.header-right{gap:10px}.header-icon{width:36px;height:36px}.header-save{display:none}.view-heading{margin-bottom:22px}.view-title{font-size:2.65rem}.view-copy{font-size:.9rem}.launch-heading .view-title{font-size:2.65rem;line-height:1.03}.edition-mark{font-size:var(--text-2xs);margin-bottom:4px}.launch-layout{grid-template-columns:1fr;gap:20px}.launch-primary,.launch-secondary{gap:18px}.launch-recommendation{padding:24px;border-radius:21px}.launch-recommendation h2{font-size:2rem;margin-top:23px}.launch-recommendation-focus{font-size:.78rem}.launch-numbers{margin:23px 0;gap:10px}.launch-numbers strong{font-size:1.85rem}.launch-numbers>div+div{padding-left:13px}.launch-numbers span{font-size:var(--text-2xs)}.launch-recommendation .training-hero-primary{height:52px}.launch-reason{font-size:var(--text-2xs)}.today-controls,.week-panel,.next-preview{padding:20px}.section-heading{margin-bottom:16px}.section-heading h2{font-size:var(--text-md)}.section-heading>span{font-size:var(--text-2xs)}.today-controls .section-heading>span{font-size:var(--text-2xs)}.segmented button{font-size:var(--text-2xs);padding-inline:6px}.effort-row strong{font-size:.83rem}.effort-row span{font-size:var(--text-2xs)}.next-preview{display:none}.launch-plan-grid{grid-template-columns:1fr;gap:10px}.launch-plan-grid>button{min-height:103px;padding:17px 19px}.launch-plan-grid>button>strong{font-size:1.1rem;margin-top:8px}.launch-plan-grid>button>small{font-size:var(--text-2xs)}.launch-plan-grid>button>svg{top:42px;right:19px}.launch-plan-chooser{margin-top:25px}.launch-plan-chooser .text-button{font-size:var(--text-2xs)}.launch-notice{flex-wrap:wrap;padding:18px}.session-heading{align-items:flex-start;gap:12px}.session-heading h1{font-size:1.55rem}.session-heading .eyebrow{font-size:var(--text-2xs)}.session-heading p:not(.eyebrow){font-size:var(--text-2xs)}.session-finish{font-size:var(--text-2xs);gap:6px;padding:11px 10px;min-height:40px}.session-finish svg{width:15px;height:15px}.session-dashboard{padding:16px;gap:18px;margin-bottom:21px;border-radius:14px}.session-dashboard>div:not(.progress-track){gap:8px}.session-dashboard strong{font-size:1.1rem}.session-dashboard .save-state{font-size:var(--text-2xs);max-width:130px;text-align:right;white-space:normal}.session-dashboard>div>span{font-size:var(--text-2xs)}.training-workspace{gap:17px}.exercise-toggle{padding:20px 17px;gap:11px}.exercise-title{font-size:1.08rem}.exercise-index{height:36px;width:36px;border-radius:10px;font-size:.85rem}.exercise-body{padding:0 16px 20px}.exercise-insight{grid-template-columns:1.4fr 1fr;gap:8px;margin-top:13px}.insight-box{padding:12px 10px}.insight-box span{font-size:var(--text-2xs)}.insight-box strong{font-size:var(--text-2xs)}.inline-advice{gap:8px;padding:14px 0}.inline-advice strong{font-size:.79rem}.inline-advice p{font-size:var(--text-2xs)}.set-head,.set-row{grid-template-columns:36px minmax(55px,1fr) minmax(51px,1fr) minmax(47px,.8fr) 25px;gap:6px}.set-field{height:47px;border-radius:8px;font-size:var(--text-md);padding:6px 3px;text-align:center}.set-check{width:36px;height:45px}.set-remove{width:25px}.set-head{font-size:var(--text-2xs)}.set-row.is-next{padding:10px 7px;margin:0 -7px}.set-complete{font-size:.76rem;min-height:46px;padding:11px}.previous-set{font-size:var(--text-2xs);grid-column:1/-1}.set-copy-button{font-size:var(--text-2xs)}.training-set-help>summary{font-size:var(--text-2xs)}.section-minihead{font-size:var(--text-2xs)}.training-quick-tools .subtle-button{font-size:var(--text-2xs);padding:9px}.view-tabs{gap:24px}.view-tabs button{font-size:.83rem;padding-top:5px}.exercise-progress-card{padding:20px 16px}.chart-controls{flex-wrap:wrap}.chart-range button{font-size:var(--text-2xs)}.progress-metric-tabs{gap:5px}.progress-metric-tabs>button{font-size:var(--text-2xs);padding:9px}.exercise-chart-summary strong{font-size:2.2rem}.exercise-chart-summary span{font-size:var(--text-2xs)}.chart-readout{font-size:var(--text-2xs);align-items:flex-start}.chart-readout strong{text-align:right}.body-chart{min-height:145px}.chart-axis{font-size:var(--text-md)}.chart-dates{font-size:var(--text-2xs);padding-left:25px}.chart-disclaimer{font-size:var(--text-2xs)}.consistency-panel{padding:21px 16px}.consistency-bars{gap:3px}.consistency-bars small{font-size:var(--text-2xs);letter-spacing:-.02em}.consistency-panel>p{font-size:var(--text-2xs)}.progress-empty{padding:30px 24px}.progress-empty h2{font-size:1.4rem;line-height:1.25}.progress-empty p{font-size:.85rem}.page-count{font-size:2rem}.page-count small{font-size:var(--text-2xs)}.history-main>strong{font-size:.85rem}.history-main>span{font-size:var(--text-2xs)}.history-metric{display:none}.history-search input{font-size:.8rem}.history-search button{font-size:.78rem}.weight-trend-panel{padding:23px;flex-direction:column;align-items:stretch;gap:23px}.weight-trend-values{gap:0;display:grid;grid-template-columns:1fr 1fr}.weight-trend-values>div+div{border-left:1px solid #ffffff20;padding-left:19px}.weight-trend-values strong{font-size:1.85rem}.weight-trend-values span,.weight-trend-values>div>small{font-size:var(--text-2xs)}.body-stats{grid-template-columns:1fr 1fr;gap:10px}.body-stat{padding:16px 13px;border-radius:14px}.body-stat strong{font-size:1.45rem}.body-stat small{font-size:var(--text-2xs)}.body-panel{padding:20px 16px}.body-panel-header{align-items:flex-start;gap:10px}.body-panel-header h2{font-size:var(--text-md)}.body-panel-header span{font-size:var(--text-2xs)}.body-add{width:100%;font-size:.87rem}.coach-seal{height:47px;width:47px;border-radius:14px}.coach-seal svg{width:23px;height:23px}.coach-answer{padding:25px 22px}.coach-answer h2{font-size:1.45rem;line-height:1.35}.coach-answer>p{font-size:.8rem}.coach-questions{gap:7px;margin:18px 0 23px}.coach-questions button{font-size:var(--text-2xs);padding:10px}.coach-layout{grid-template-columns:1fr}.coach-advice{padding:21px}.coach-advice>p{font-size:.82rem}.coach-preferences,.science-card{padding:23px}.own-plan-list{grid-template-columns:1fr}.plan-library{padding:21px 17px}.plan-library-heading h2{font-size:1.2rem}.plan-library-heading>button{font-size:var(--text-2xs);padding:10px;white-space:nowrap}.own-plan-card{padding:19px}.plan-builtins summary{padding:20px}.plan-builtins-title{flex-wrap:wrap}.settings-list{grid-template-columns:1fr}.settings-card{padding:22px}.settings-card:nth-child(2){grid-row:auto}.app-dialog{border-radius:21px 21px 0 0}.dialog-head{padding:21px 20px}.dialog-body{padding:21px 20px}.dialog-head h2{font-size:1.25rem}.timer-screen{padding:calc(19px + env(safe-area-inset-top)) 24px calc(22px + env(safe-area-inset-bottom));gap:12px}.timer-top{padding-bottom:17px}.timer-content h2{font-size:1.5rem}.timer-dial{margin:25px auto 20px;width:min(71vw,310px);height:min(71vw,310px)}.timer-adjust{font-size:.8rem}.timer-stop{font-size:.85rem}.timer-last-set strong{font-size:1.22rem}.timer-close{font-size:var(--text-2xs)}.timer-kicker{font-size:var(--text-2xs)}.timer-last-set>span{font-size:var(--text-2xs)}}
@media(max-height:700px){.timer-screen{gap:8px;padding-top:12px;padding-bottom:12px}.timer-top{padding-bottom:10px}.timer-dial{height:190px;width:190px;margin:14px auto 10px}.timer-clock strong{font-size:3.8rem}.timer-content h2{font-size:1.2rem}.timer-section-label{margin:4px 0 6px}.timer-undo{padding:7px}.timer-adjust{min-height:43px}.timer-stop{min-height:48px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Plan studio */
.generator-invite{display:grid;grid-template-columns:1.3fr .7fr;overflow:hidden;background:#191b1f;color:white;border-radius:26px;margin:12px 0 28px;padding:40px;gap:32px;position:relative}.generator-invite .eyebrow{color:#d6b672}.generator-invite h2{font-size:clamp(27px,3vw,41px);line-height:1.05;letter-spacing:-1.2px;max-width:500px;margin:18px 0}.generator-invite p{color:#b7b9bc;line-height:1.6;max-width:440px;font-size:15px}.gold-button{background:linear-gradient(110deg,#e2c790,#caa15b);color:#201c15;min-height:54px;border:1px solid #e4cba0;border-radius:13px;padding:14px 21px;display:inline-flex;gap:13px;align-items:center;justify-content:space-between;font-weight:750;font-size:15px;cursor:pointer}.gold-button .icon{width:19px;height:19px}.generator-invite .gold-button{margin-top:16px}.generator-art{position:relative;display:flex;gap:15px;align-items:flex-end;justify-content:center;padding:30px 0;border-left:1px solid #ffffff15}.generator-art>span{border:1px solid #b18e5055;border-radius:60px;width:44px;height:44px;display:grid;place-items:center;color:#dec087;font-size:13px;z-index:1;background:#191b1f}.generator-art>span:nth-child(2){transform:translateY(-25px)}.generator-art>span:nth-child(3){transform:translateY(-65px)}.generator-art strong{position:absolute;top:18px;left:28px;font-size:43px;line-height:.95;letter-spacing:-1.8px;font-weight:850;color:#ffffffed}.generator-art>i{position:absolute;height:170px;width:170px;border:1px solid #b18e5033;border-radius:50%;right:-60px;top:40px}.plan-starter-library{margin:24px 0 28px;border:1px solid var(--line);border-radius:20px;background:white;overflow:hidden}.plan-starter-library>summary{cursor:pointer;list-style:none;padding:23px;display:flex;align-items:center;justify-content:space-between}.plan-starter-library>summary strong{font-size:18px;display:block;letter-spacing:-.4px}.plan-starter-library>summary small{display:block;color:var(--muted);margin-top:6px;font-size:13px}.starter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:0 22px 22px}.starter-grid>button{position:relative;text-align:left;border:1px solid var(--line);border-radius:15px;background:#f9fafb;padding:20px 16px;cursor:pointer;min-height:220px;display:flex;flex-direction:column;align-items:flex-start}.starter-grid>button:hover{border-color:#b38b43;background:#fcfaf5}.starter-grid>button>span{font-size:var(--text-2xs);font-weight:750;color:var(--gold);letter-spacing:.6px;position:relative;z-index:1}.starter-grid>button>b{font-size:55px;line-height:1;color:#e4e6e9;position:absolute;right:10px;top:36px;letter-spacing:-3px}.starter-grid>button>strong{font-size:21px;line-height:1.12;letter-spacing:-.65px;margin:27px 0 7px;position:relative;max-width:180px}.starter-grid p{color:var(--muted);font-size:13px;line-height:1.45;margin:0 0 15px}.starter-grid em{font-style:normal;color:var(--gold);font-size:var(--text-2xs);font-weight:650;margin-top:auto;display:flex;align-items:center;gap:7px}.starter-grid em .icon{width:14px}.plan-starter-library>.control-note{padding:0 24px 18px}.program-collection{margin:26px 0}.program-summary{background:white;border:1px solid var(--line);border-radius:16px;padding:22px;display:flex;align-items:center;justify-content:space-between;gap:18px;margin:12px 0}.program-summary small{color:var(--gold);font-size:var(--text-2xs);letter-spacing:1px;font-weight:750}.program-summary h3{margin:7px 0;font-size:21px;letter-spacing:-.5px}.program-summary p{margin:0;color:var(--muted);font-size:13px}.program-summary button{font-size:13px;white-space:nowrap}.program-summary button:disabled{opacity:.65}
.generator-view{max-width:850px}.generator-exit{margin-bottom:28px}.generator-top{display:flex;justify-content:space-between;align-items:center}.generator-top>span:last-child{font-size:var(--text-2xs);color:var(--muted);font-variant-numeric:tabular-nums}.generator-progress{height:3px;background:#e3e4e6;border-radius:3px;margin:15px 0 32px;overflow:hidden}.generator-progress i{display:block;height:100%;background:#a17e3f;transition:width .25s}.generator-heading h1{font-size:clamp(32px,4vw,47px);line-height:1.06;letter-spacing:-1.8px;margin:0 0 12px;max-width:580px}.generator-heading p{color:var(--muted);font-size:15px}.generator-form{padding:10px 0 22px}.generator-form h2{font-size:var(--text-md);letter-spacing:-.25px;margin:27px 0 14px}.generator-form h2 small{font-size:var(--text-2xs);font-weight:500;color:var(--muted);margin-left:8px}.generator-options{display:flex;gap:10px;flex-wrap:wrap}.generator-options>button{flex:1 1 130px;position:relative;text-align:left;border:1px solid #dfe1e5;border-radius:15px;background:white;padding:18px 36px 18px 17px;cursor:pointer;transition:background .15s,border-color .15s;min-height:53px}.generator-options>button span{font-size:15px;font-weight:750;display:block;line-height:1.25}.generator-options>button small{font-size:13px;color:var(--muted);display:block;line-height:1.5;margin-top:8px}.generator-options>button>.icon{position:absolute;right:12px;top:17px;width:17px;height:17px;color:#a6a8ad}.generator-options>button.selected{border-color:#a88a4e;background:#fbf7ee;box-shadow:0 0 0 1px #a88a4e}.generator-options>button.selected>.icon{color:#8b682d}.generator-chips{display:flex;flex-wrap:wrap;gap:9px}.generator-chips>button{display:flex;align-items:center;gap:9px;min-height:45px;text-align:left;font-size:13px;font-weight:600;background:white;border:1px solid #dfe1e5;border-radius:12px;padding:10px 13px;cursor:pointer}.generator-chips>button>.icon{width:16px;height:16px;color:#a7a9ad}.generator-chips>button.selected{background:#1b1d20;color:white;border-color:#1b1d20}.generator-chips>button.selected>.icon{color:#d3b575}.generator-explain{font-size:15px;line-height:1.7;color:var(--muted);max-width:650px;margin-bottom:25px}.generator-form .control-note{font-size:13px;line-height:1.65;margin-top:16px}.generator-note-label{display:block;font-size:var(--text-sm);font-weight:700;margin:27px 0 12px}.generator-note-label small{font-size:var(--text-2xs);font-weight:400;color:var(--muted);display:block;margin-top:5px}#generator-note{width:100%;min-height:95px;border:1px solid var(--line);border-radius:14px;padding:15px;background:white;font-size:15px}.generator-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:22px 0 5px;margin-top:10px}.generator-footer>span{font-size:var(--text-2xs);color:var(--muted)}.generator-footer .primary-button{min-width:170px}.generator-footer .icon{width:17px}.generator-preview>.text-button{margin-bottom:27px}.generator-warnings{background:#fbf6e9;border:1px solid #e6d7b7;border-radius:16px;padding:20px 24px;margin:23px 0}.generator-warnings strong{color:#725621;font-size:15px}.generator-warnings ul{padding-left:18px;line-height:1.6;font-size:var(--text-sm);color:#69582e;margin:10px 0 0}.generator-warnings li+li{margin-top:8px}.generator-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:24px 0}.generator-week>div{border:1px solid var(--line);border-radius:13px;background:#f0f1f3;padding:16px 12px;min-height:108px}.generator-week .train{background:#1c1e22;border-color:#1c1e22;color:white}.generator-week span{font-size:var(--text-2xs);display:block;opacity:.7}.generator-week strong{display:block;font-size:var(--text-sm);line-height:1.2;margin:14px 0 7px}.generator-week small{font-size:var(--text-2xs);color:var(--muted)}.generator-week .train small{color:#d7b67a}.generated-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:22px;align-items:start}.generated-day{border:1px solid var(--line);border-radius:18px;background:white;margin-bottom:12px;overflow:hidden}.generated-day>summary{display:flex;align-items:center;gap:14px;list-style:none;cursor:pointer;padding:20px}.day-marker{display:grid;place-items:center;width:43px;height:43px;border:1px solid #e4d9c1;background:#fbf7ef;color:#8b6627;border-radius:12px;font-weight:750;font-size:var(--text-sm)}.generated-day>summary>span:nth-child(2){flex:1;min-width:0}.generated-day>summary strong{display:block;font-size:18px;letter-spacing:-.5px}.generated-day>summary small{display:block;color:var(--muted);font-size:var(--text-2xs);margin-top:6px}.generated-day>summary>.icon{width:16px;color:var(--muted)}.generated-exercises{padding:0 20px 12px}.generated-exercises>div{display:flex;align-items:center;gap:12px;border-top:1px solid #eceef0;padding:18px 0}.generated-exercises>div>span{font-size:var(--text-2xs);color:#85888f}.generated-exercises section{flex:1;min-width:0}.generated-exercises strong{font-size:var(--text-sm);line-height:1.35;display:block}.generated-exercises small{font-size:var(--text-2xs);line-height:1.5;color:var(--muted);display:block;margin-top:5px}.generated-exercises button{width:42px;height:42px;display:grid;place-items:center;border:1px solid #e5e6e9;background:white;border-radius:12px;cursor:pointer;flex-shrink:0}.generated-exercises button .icon{width:18px}.generated-exercises button:disabled{opacity:.25;cursor:default}.generated-reasons{border:1px solid var(--line);background:white;border-radius:18px;padding:25px}.generated-reasons h2{font-size:25px;letter-spacing:-.9px;line-height:1.12;margin:12px 0 21px}.generated-reasons>div{display:flex;gap:12px;padding:15px 0;border-top:1px solid #eceef0}.generated-reasons>div>span{color:var(--gold);font-size:var(--text-2xs);padding-top:2px}.generated-reasons p{font-size:13px;line-height:1.6;color:var(--muted);margin:0}.generated-reasons .personal-note{background:#faf7f1;padding:13px;border-radius:10px}.generator-coverage{background:white;border:1px solid var(--line);border-radius:18px;padding:25px;margin:25px 0}.generator-volume{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 25px}.generator-volume>div{padding:12px 0;border-bottom:1px solid #eceef0;display:flex;align-items:center;justify-content:space-between;gap:14px}.generator-volume>div>span{font-size:var(--text-sm)}.generator-volume strong{font-size:20px;font-weight:750;white-space:nowrap}.generator-volume small{font-size:var(--text-2xs);font-weight:500;color:var(--muted)}.evidence-panel{background:#f0f1f3;border:1px solid var(--line);border-radius:16px;margin:25px 0}.evidence-panel>summary{padding:20px;list-style:none;display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-size:var(--text-sm);font-weight:700}.evidence-panel>div{padding:0 23px 20px;color:#60636a;font-size:13px;line-height:1.65}.evidence-panel li{margin-bottom:12px}.evidence-panel a{color:#735520;font-weight:600}.generator-save{background:#1c1e22;color:white;border-radius:21px;padding:30px;display:grid;grid-template-columns:1fr auto;gap:25px;align-items:center;margin:28px 0}.generator-save label{font-weight:700;font-size:15px;display:block;margin-bottom:11px}.generator-save input{width:100%;max-width:450px;background:#292c30;color:white;border:1px solid #4b4e53;border-radius:11px;height:49px;padding:12px;font-size:var(--text-md)}.generator-save p{font-size:13px;line-height:1.6;color:#bfc1c7;margin-bottom:0}.generator-form,.generated-layout{animation:bym-view-enter .24s ease-out}
@media(max-width:1079px){.starter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.generator-invite{padding:29px}.generator-art strong{font-size:36px}.generator-week{gap:5px}.generator-week>div{padding:13px 8px}.generator-week strong{font-size:var(--text-2xs)}.generated-layout{grid-template-columns:1fr}.generated-reasons{display:block}.generator-view{max-width:760px}.generator-save{grid-template-columns:1fr}.generator-save .gold-button{justify-content:center}.program-summary{flex-wrap:wrap}}
@media(max-width:600px){.generator-invite{grid-template-columns:1fr;padding:27px 23px}.generator-art{display:none}.generator-invite h2{max-width:300px;font-size:34px}.generator-invite p{font-size:var(--text-sm)}.generator-invite .gold-button{width:100%;font-size:var(--text-sm)}.generator-heading h1{font-size:35px;letter-spacing:-1.3px}.generator-heading p{font-size:var(--text-sm)}.generator-options>button{padding:16px 32px 16px 14px;flex-basis:100px}.generator-options>button:has(small){flex-basis:100%}.generator-chips{gap:8px}.generator-chips>button{font-size:13px}.generator-footer>span{max-width:125px;line-height:1.5}.generator-footer .primary-button{min-width:145px}.generator-week{display:flex;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:7px}.generator-week>div{min-width:86px;scroll-snap-align:start}.generator-warnings{padding:19px}.generated-exercises{padding:0 15px 8px}.generated-day>summary{padding:18px 15px}.generator-coverage{padding:20px}.generator-volume{grid-template-columns:1fr}.generator-volume small{font-size:var(--text-2xs)}.generator-save{padding:24px 21px}.starter-grid{padding:0 14px 14px;gap:9px}.starter-grid>button{padding:18px 13px}.starter-grid>button>span{font-size:var(--text-2xs)}.starter-grid>button>strong{font-size:20px}.plan-starter-library>summary{padding:20px}.generator-preview .view-title{font-size:35px}.program-summary{padding:19px}.program-summary button{width:100%;justify-content:center}.generator-coverage .section-heading{align-items:flex-start}.generator-coverage .section-heading h2{font-size:19px}.generator-coverage .section-heading>span{white-space:nowrap;font-size:var(--text-2xs)}}
@media(prefers-reduced-motion:reduce){.generator-form,.generated-layout{animation:none}.generator-progress i{transition:none}}
/* First run and deliberate exercise exclusions. */
.first-start-card{background:#17191c;color:#fff;border-radius:28px;padding:44px;position:relative;overflow:hidden;box-shadow:0 24px 64px #17191c12}.first-start-card:after{content:"";position:absolute;width:340px;height:340px;border:1px solid #b58d444d;border-radius:50%;right:-120px;top:-160px;pointer-events:none}.first-start-card>.eyebrow{color:#d8b56d}.first-start-card h2{font-size:clamp(38px,6vw,68px);line-height:1.04;letter-spacing:-.045em;margin:24px 0}.first-start-card>p{max-width:520px;color:#c5c6ca;font-size:var(--text-md);line-height:1.65;margin:0 0 26px}.first-start-note{display:block;color:#bcbfc5;font-size:var(--text-2xs);margin-top:13px}.first-start-promise{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;border-top:1px solid #ffffff20;margin-top:40px;padding-top:26px}.first-start-promise div{display:flex;flex-direction:column;gap:7px}.first-start-promise strong{font-size:var(--text-2xs);color:#d8b56d}.first-start-promise span{font-size:var(--text-md);font-weight:700}.first-start-promise small{color:#bcbfc5;line-height:1.5;font-size:var(--text-2xs)}.first-start-skip{margin:24px 0}.generator-exclusions{margin-top:24px;border-top:1px solid #dedfe2;padding-top:20px}.generator-exclusions summary{cursor:pointer;font-weight:700;min-height:44px}.generator-exclusions small{font-size:var(--text-2xs);color:#626772}.generator-exclusions>div{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:320px;overflow:auto}.generator-exclusions label{display:flex;gap:12px;align-items:center;min-height:48px;font-size:13px}.generator-exclusions input{width:20px;height:20px;accent-color:#8b6627}.choice-button small{display:block;font-size:var(--text-2xs);color:#666c74;line-height:1.5;margin-top:5px}.set-remove{min-width:36px;min-height:44px}
@media(max-width:650px){.first-start-card{padding:28px 24px;border-radius:24px}.first-start-promise{gap:14px;grid-template-columns:1fr;margin-top:30px}.first-start-promise div{display:grid;grid-template-columns:28px 1fr;gap:4px 10px}.first-start-promise strong{grid-row:1/3}.first-start-promise small{grid-column:2}.generator-exclusions>div{grid-template-columns:1fr}}

.exercise-rail-list{scrollbar-width:none}.exercise-rail-list::-webkit-scrollbar{display:none}

/* BYM 4.1 — consistent gold, quiet motion, direct actions. */
:root {
  --gold-surface: linear-gradient(112deg, #d2a55b 0%, #f0d79d 32%, #d3a65b 66%, #edce91 100%);
  --gold-border: #be965351;
}
.app-header { position: relative; top: auto; backdrop-filter: none; background: #fff; }
.gold-button,
.launch-recommendation .training-hero-primary {
  background: var(--gold-surface);
  color: #201a11;
  border: 1px solid #edcf92;
  box-shadow: inset 0 1px 0 #fff6, 0 5px 20px #00000012;
  animation: none;
  transition: none;
}
.gold-button:hover, .launch-recommendation .training-hero-primary:hover { filter: brightness(1.045); transform: none; }
.first-start-card, .generator-invite, .launch-recommendation, .coach-answer, .weight-trend-panel, .generator-save {
  border: 1px solid var(--gold-border);
}
.first-start-card, .generator-invite {
  background: linear-gradient(90deg, #08090ae0 0%, #0b0c0da0 48%, #08090a24 100%), url('./bym-gold-marble.svg') center / cover no-repeat, #08090a;
}
.first-start-card:after, .launch-recommendation:after { content: none; }
.first-start-card h2 { max-width: 640px; }
.first-start-card > p { max-width: 500px; }
.first-start-promise { position: relative; background: #1012149c; border-radius: 0 0 12px 12px; }
.first-start-card .gold-button { position: relative; }
.generator-art { min-height: 250px; position: relative; display: flex; align-items: flex-end; justify-content: flex-end; border: 0; background: none; }
.generator-art:before, .generator-art:after { content: none; }
.generator-art strong { position: relative; inset: auto; transform: none; font-size: clamp(32px,4vw,54px); line-height: .98; letter-spacing: -.055em; color: #fff; text-shadow: 0 2px 25px #000; text-align: left; }
.generator-art strong span { position: static; color: #e3bd78; font-size: inherit; border: 0; }
.weight-trend-panel .eyebrow { display: flex; align-items: center; gap: 9px; }
.weight-trend-panel .eyebrow:before { content: ''; width: 6px; height: 6px; flex: none; background: #d9b66f; border-radius: 50%; }
.weight-trend-panel h2 { font-size: clamp(25px, 3vw, 35px); line-height: 1.08; letter-spacing: -.04em; }
.body-empty .primary-button { margin: 22px auto 0; width: auto; padding-inline: 22px; }
.body-empty .primary-button svg { width: 19px; height: 19px; }
.muscle-selection-hint { border-top: 1px solid var(--line); margin: 26px 0 16px; padding-top: 22px; }
.muscle-selection-hint strong { display: block; font-size:var(--text-md); letter-spacing: -.02em; }
.muscle-selection-hint p { margin: 7px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.65; }
.muscle-group-button strong { display: flex; justify-content: space-between; align-items: center; gap: 7px; }
.muscle-group-button strong svg { width: 16px; height: 16px; flex: none; color: var(--accent); }
.settings-list { align-items: start; }
.settings-list > .settings-card:nth-child(2) { grid-row: auto; }
.settings-list .coach-preferences { border-radius: 20px; }
.intro-replay { margin-top: 18px; }
.swipe-row { position: relative; overflow: hidden; border-radius: 20px; isolation: isolate; min-width: 0; touch-action: pan-y pinch-zoom; }
.swipe-content { position: relative; z-index: 1; transition: transform 200ms ease; background: #fff; border-radius: inherit; }
.swipe-row.is-dragging .swipe-content { transition: none; user-select: none; }
.swipe-row[data-reveal=edit] .swipe-content { transform: translateX(96px); }
.swipe-row[data-reveal=delete] .swipe-content { transform: translateX(-96px); }
.swipe-content > .history-card, .swipe-content > .body-entry, .swipe-content > .own-plan-card { margin: 0; width: 100%; }
.swipe-content > .history-card { padding-right: 66px; }
.swipe-content > .history-card .history-metric { display: none; }
.swipe-plan .own-plan-copy { padding-right: 30px; }
.swipe-body .body-entry-head { padding-right: 32px; }
.swipe-body .body-entry-head > .icon-button { display: none; }
.swipe-more { position: absolute; z-index: 2; top: 16px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 0; border-radius: 10px; color: #666b72; font-size: 15px; letter-spacing: 2px; }
.swipe-session .swipe-more { top: 50%; margin-top: -22px; }
.swipe-more:hover, .swipe-more[aria-expanded=true] { background: #f3eee3; color: #76541b; }
.swipe-rail { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: stretch; background: #f1e6d0; }
.swipe-rail button { visibility: hidden; border: 0; width: 96px; color: #664711; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 9px; font-size:var(--text-2xs); font-weight: 650; }
.swipe-edit { background: #eee1c4; }
.swipe-rail .swipe-delete { background: #f8e8e7; color: #973936; }
.swipe-rail svg { width: 21px; height: 21px; }
.swipe-row[data-reveal=edit] .swipe-edit, .swipe-row[data-reveal=delete] .swipe-delete, .swipe-row[data-reveal=menu] .swipe-rail button { visibility: visible; }
.swipe-row[data-reveal=menu] { padding-bottom: 60px; border: 1px solid var(--gold-border); }
.swipe-row[data-reveal=menu] .swipe-rail { top: auto; height: 60px; }
.swipe-row[data-reveal=menu] .swipe-rail button { width: 50%; flex-direction: row; }
.swipe-row[data-reveal=menu] .swipe-content { transform: none; }
.swipe-more:focus-visible, .swipe-rail button:focus-visible { outline: 2px solid #906926; outline-offset: -4px; }
.launch-intro { position: fixed; inset: 0; z-index: 500; overflow: hidden; background: #f6f7f9; isolation: isolate; animation: intro-exit 220ms ease 2580ms both; }
.intro-logo { position: absolute; width: 192px; height: 192px; left: 50%; top: 50%; margin: -96px 0 0 -96px; border-radius: 46px; image-rendering: auto; animation: intro-rise 750ms cubic-bezier(.2,.75,.25,1) 220ms both; }
.intro-words { position: absolute; top: calc(50% + 27px); left: 20px; right: 20px; text-align: center; }
.intro-words p { margin: 0; font-size: clamp(24px, 5.6vw, 35px); letter-spacing: -.05em; line-height: 1.3; font-weight: 760; color: #17191c; animation: intro-word 700ms cubic-bezier(.2,.75,.25,1) 650ms both; }
.intro-words p + p { margin-top: 8px; color: #956b26; font-weight: 620; animation-delay: 880ms; }
.intro-words p:first-child span { color: #b58b40; }
.intro-skip { position: absolute; bottom: calc(44px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); min-height: 44px; border: 0; background: transparent; color: #696a6e; font-size: 13px; display: flex; align-items: center; gap: 25px; white-space: nowrap; }
.intro-skip:focus-visible { outline: 1px solid #be9653; outline-offset: 6px; border-radius: 6px; }
.intro-skip span { color: #906926; font-size: 20px; }
@keyframes intro-rise { from { transform: translateY(0); } to { transform: translateY(-112px); } }
@keyframes intro-word { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes intro-exit { from { opacity: 1; } to { opacity: 0; } }
.intro-still, .intro-still .intro-logo, .intro-still .intro-words p { animation: none; }
.intro-still .intro-logo { transform: translateY(-112px); }
[data-motion=reduce] *, [data-motion=reduce] *:before, [data-motion=reduce] *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (min-width:1080px) {
  .bottom-nav { top: 0; padding-top: 121px; z-index: 20; }
  .app-header { z-index: 21; }
}
@media (max-width:650px) {
  .first-start-card { background-image: linear-gradient(90deg, #08090ade 0%, #08090a92 100%), url('./bym-gold-marble.svg'); background-size: auto, cover; background-position: center; }
  .first-start-card > p { font-size:var(--text-sm); max-width: 310px; }
  .first-start-promise { background: none; }
  .first-start-card h2 { font-size: 39px; }
  .first-start-card .gold-button { width: 100%; font-size: 13px; padding-inline: 13px; gap: 9px; }
  .gold-button .icon:first-child { flex: none; }
  .generator-invite { background-image: linear-gradient(90deg, #08090ad9 0%, #08090a86 100%), url('./bym-gold-marble.svg'); background-position: center; background-size: auto, cover; }
  .generator-art { display: flex; min-height: 85px; justify-content: flex-start; }
  .generator-art strong { font-size: 23px; letter-spacing: -.035em; }
  .generator-art strong br { display: none; }
  .generator-art strong br:after { content: ' '; }
  .swipe-row { border-radius: 16px; }
}
@media (max-width:350px) { .first-start-card { padding: 25px 18px; } .first-start-card h2 { font-size: 35px; } .first-start-card > .eyebrow { font-size:var(--text-2xs); } .intro-logo { width: 176px; height: 176px; margin: -88px 0 0 -88px; border-radius: 42px; } }
@media (max-height:520px) { .intro-logo { width: 128px; height: 128px; margin: -64px 0 0 -64px; border-radius: 30px; } .intro-skip { bottom: 12px; } .intro-words { top: calc(50% - 5px); } }

.settings-row-copy > span { font-size:var(--text-sm); line-height: 1.55; }
.settings-card > p { font-size:var(--text-sm); line-height: 1.65; }

/* BYM 4.3 — selectable signature themes, resilient tiles and a quieter strength motif. */
.theme-settings { margin: 22px 0 10px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.theme-settings > strong { display: block; margin-bottom: 12px; font-size: .9rem; }
.theme-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.theme-choice { min-width: 0; min-height: 154px; height: auto; padding: 10px; overflow: visible; text-align: left; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); cursor: pointer; }
.theme-choice.selected { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent); }
.theme-choice b, .theme-choice small { display: block; overflow-wrap: anywhere; white-space: normal; }
.theme-choice b { margin: 10px 3px 4px; font-size: .86rem; line-height: 1.35; }
.theme-choice small { margin: 0 3px 3px; color: var(--muted); font-size:var(--text-2xs); line-height: 1.45; }
.theme-swatch { position: relative; display: block; height: 54px; overflow: hidden; border: 1px solid #00000017; border-radius: 10px; }
.theme-swatch::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 9px; height: 3px; border-radius: 99px; }
.theme-choice-gold .theme-swatch { background: linear-gradient(135deg, #17191c 0 54%, #f7f3eb 54.5% 100%); }
.theme-choice-gold .theme-swatch::after { background: linear-gradient(90deg, #8f6725, #f1d89b 48%, #a77c37); }
.theme-choice-violet .theme-swatch { background: linear-gradient(121deg, transparent 0 38%, #806f8914 38.5% 40%, transparent 40.5%), linear-gradient(35deg, #18151c 0 36%, #faf7f1 36.5% 100%); }
.theme-choice-violet .theme-swatch::after { background: linear-gradient(90deg, #321348, #7d43aa 45%, #c7a8df 72%, #572477); }

.first-start-card > * { position: relative; z-index: 1; }

/* Labels and controls must grow instead of clipping at narrow widths or large text settings. */
:where(.starter-grid > button, .generator-options > button, .muscle-group-button, .theme-choice, .extra-choices button, .program-summary, .settings-row, .launch-notice) { min-width: 0; height: auto; overflow: visible; }
:where(.starter-grid > button, .generator-options > button, .muscle-group-button, .theme-choice, .program-summary, .settings-row) :where(strong, b, span, small, p) { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
:where(.meta-chip, .status-chip, .focus-pill, .session-kind, .metric-switch button, .segmented button) { height: auto; min-height: 38px; white-space: normal; line-height: 1.3; text-align: center; }
.muscle-group-button { padding-block: 16px; }
.muscle-group-button span { line-height: 1.5; }
.muscle-detail h3 { line-height: 1.25; overflow-wrap: anywhere; }

html[data-theme="violet"] {
  --bg: #f7f3ee;
  --bg-deep: #e9e4e8;
  --surface: #fffdfa;
  --surface-2: #fffdfa;
  --surface-3: #f0ebf1;
  --line: #ddd5df;
  --line-strong: #b9aabd;
  --text: #19161c;
  --muted: #615a65;
  --faint: #746b78;
  --accent: #713b98;
  --accent-2: #4d246c;
  --accent-soft: #eee4f4;
  --positive: #713b98;
  --positive-soft: #eee4f4;
  --focus: rgba(113, 59, 152, .45);
  --info: #713b98;
  --energy: #a56dd0;
  --shadow: 0 10px 28px rgba(42, 28, 48, .08);
  --gold-surface: linear-gradient(112deg, #3c1955 0%, #7d43aa 35%, #b58bd3 66%, #5a2779 100%);
  --gold-border: #7f4aa14d;
}
html[data-theme="violet"] body {
  background:
    linear-gradient(121deg, transparent 0 43%, rgba(75, 51, 86, .045) 43.2%, rgba(255, 255, 255, .35) 43.7%, transparent 44.2%),
    linear-gradient(32deg, transparent 0 68%, rgba(105, 78, 117, .045) 68.2%, transparent 68.8%),
    linear-gradient(180deg, #eae5e8 0, #fbf8f3 15rem, #f7f3ee 100%);
  background-attachment: fixed;
}
html[data-theme="violet"] .gold-button,
html[data-theme="violet"] .launch-recommendation .training-hero-primary { color: #fff; border-color: #b58bd3; box-shadow: inset 0 1px 0 #ffffff55, 0 7px 24px #4b23542b; }
html[data-theme="violet"] .first-start-card,
html[data-theme="violet"] .generator-invite {
  background-image: linear-gradient(90deg, #08090ae0 0%, #0d0b0fa0 48%, #08090a24 100%), url('./bym-gold-marble.svg');
  border-color: #a77b345c;
}
html[data-theme="violet"] .first-start-card > .eyebrow,
html[data-theme="violet"] .first-start-promise strong,
html[data-theme="violet"] .generator-invite .eyebrow,
html[data-theme="violet"] .generator-art strong span,
html[data-theme="violet"] .first-start-promise { background: #120f159f; }
html[data-theme="violet"] .launch-recommendation,
html[data-theme="violet"] .coach-answer,
html[data-theme="violet"] .weight-trend-panel,
html[data-theme="violet"] .generator-save { border-color: #8552a25c; background-color: #17131a; }
html[data-theme="violet"] .launch-free-workout:hover { border-color: #9869ae; background: #fff; }
html[data-theme="violet"] .empty-workout-card { background: radial-gradient(circle at 50% 0,#efe1f3 0,transparent 48%),var(--surface); }
html[data-theme="violet"] .empty-workout-card > span { border-color: #9a6daf; color: #d2a9e5; }
html[data-theme="violet"] .quick-entry::before { background: linear-gradient(126deg, transparent 61%, #3e2949 61.2%, #171419 62%, #251b2b 100%); }
html[data-theme="violet"] .quick-entry-number,
html[data-theme="violet"] .quick-entry .eyebrow,
html[data-theme="violet"] .knowledge-entry .eyebrow { color: #c39ddb; }
html[data-theme="violet"] .knowledge-entry { border-color: #8b60a0; background: linear-gradient(132deg, #171419 0%, #171419 77%, #3d2945 77.1%, #1d1820 100%); }
html[data-theme="violet"] .knowledge-entry .text-button { color: #d7b8e7; }
html[data-theme="violet"] .comeback-entry { background: linear-gradient(120deg, #f2e9f5, #fffdfa); border-color: #b598c3; }
html[data-theme="violet"] .extra-choices button.selected,
html[data-theme="violet"] .extra-ready button.selected { background: #f1e7f5; border-color: #7e479e; box-shadow: inset 3px 0 0 #7e479e; }
html[data-theme="violet"] .extra-preview { border-top-color: #8a54aa; }
html[data-theme="violet"] .extra-warning,
html[data-theme="violet"] .generator-split-issue { border-left-color: #8a54aa; background: #f3eaf7; }
html[data-theme="violet"] .knowledge-takeaway,
html[data-theme="violet"] .generated-reasons .personal-note { background: #f2e8f5; }
html[data-theme="violet"] .starter-grid > button:hover { border-color: #804aa0; background: #faf5fc; }
html[data-theme="violet"] .exercise-rail-item.selected,
html[data-theme="violet"] .set-row.is-next { background: #f2eaf5; border-color: #d4c0df; }
html[data-theme="violet"] .exercise-rail-item.selected { border-left-color: #7d43a3; }
html[data-theme="violet"] .exercise-card.complete .exercise-index,
html[data-theme="violet"] .undo-bar { background: #efe6f3; }
html[data-theme="violet"] .set-check.done { background: #1c181f; color: #caa6df; border-color: #1c181f; }
html[data-theme="violet"] .progress-track span { background: linear-gradient(90deg, #552477, #c6a1dc); }
html[data-theme="violet"] .legend-light { background: #d4bce8; }
html[data-theme="violet"] .legend-mid { background: #9562bd; }
html[data-theme="violet"] .legend-strong { background: #5c2a7b; }
html[data-theme="violet"] .legend-indirect { background: repeating-linear-gradient(135deg, #f0e7f5, #f0e7f5 4px, #75409c 4px, #75409c 6px); }
html[data-theme="violet"] .swipe-rail { background: #eee2f2; }
html[data-theme="violet"] .swipe-edit { background: #e4d3eb; }
html[data-theme="violet"] .swipe-more:hover,
html[data-theme="violet"] .swipe-more[aria-expanded=true] { background: #eee5f2; color: #673487; }
html[data-theme="violet"] .launch-intro { background: #f4f0f4; }
html[data-theme="violet"] .intro-words p + p,
html[data-theme="violet"] .intro-words p:first-child span,
html[data-theme="violet"] .intro-skip span { color: #7b42a1; }

@media (max-width: 650px) {
  .theme-choice-grid { grid-template-columns: 1fr; }
  .theme-choice { min-height: 128px; }
  .theme-swatch { height: 47px; }
  html[data-theme="violet"] .first-start-card { background-image: linear-gradient(90deg, #08090ade 0%, #0d0b0f92 100%), url('./bym-gold-marble.svg'); }
  html[data-theme="violet"] .generator-invite { background-image: linear-gradient(90deg, #08090ad9 0%, #0d0b0f86 100%), url('./bym-gold-marble.svg'); }
}

/* BYM 4.4 — app-like launch, live training cockpit and personal Power Check. */
.app-header { display: none !important; }
.launch-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 32px; }
.launch-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.launch-brand img { width: 52px; height: 52px; border-radius: 15px; box-shadow: 0 9px 24px #15171a24; }
.launch-brand span { display: grid; gap: 4px; min-width: 0; }
.launch-brand strong { font-size: 1.5rem; line-height: 1; letter-spacing: -.045em; }
.launch-brand small { color: var(--muted); font-size:var(--text-2xs); font-weight: 760; letter-spacing: .1em; line-height: 1.45; }
.launch-brand small b { color: var(--accent); font-weight: 800; }
.launch-menu { display: grid; width: 50px; height: 50px; flex: 0 0 50px; padding: 13px 12px; border: 1px solid var(--line); border-radius: 15px; background: color-mix(in srgb,var(--surface) 92%,transparent); box-shadow: 0 8px 22px #15171a0e; align-content: center; gap: 5px; }
.launch-menu i { display: block; height: 2px; border-radius: 10px; background: var(--text); transition: width .18s ease,background .18s ease; }
.launch-menu i:nth-child(1) { width: 18px; }.launch-menu i:nth-child(2) { width: 25px; }.launch-menu i:nth-child(3) { width: 13px; justify-self: end; background: var(--accent); }
.launch-menu:active i:nth-child(1),.launch-menu:active i:nth-child(3) { width: 25px; }
.nav-brand { display: none; }

.launch-free-workout { display: grid; grid-template-columns: 42px minmax(0,1fr) 18px; align-items: center; gap: 4px 13px; min-height: 77px; padding: 14px 17px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); color: var(--text); text-align: left; box-shadow: 0 8px 24px #18130c0a; }
.launch-free-workout > span { grid-row: 1 / 3; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.launch-free-workout > span svg { width: 19px; height: 19px; }
.launch-free-workout > strong { align-self: end; font-size: .93rem; }
.launch-free-workout > small { align-self: start; color: var(--muted); font-size:var(--text-2xs); line-height: 1.4; }
.launch-free-workout > svg { grid-column: 3; grid-row: 1 / 3; width: 17px; color: var(--accent); }
.launch-free-workout:hover { border-color: #b99555; background: #fffcf6; }

.training-cockpit {
  position: fixed;
  z-index: 60;
  right: 18px;
  bottom: calc(87px + env(safe-area-inset-bottom, 0px));
  left: 18px;
  display: grid;
  grid-template-columns: minmax(180px, 1.55fr) repeat(4, minmax(76px, .45fr)) auto auto;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 13px 16px 12px;
  overflow: hidden;
  border: 1px solid #282a2e;
  border-radius: 17px;
  background: #18191cfa;
  box-shadow: 0 16px 40px #08090a38;
  color: #fff;
  backdrop-filter: blur(18px);
}
.training-active { padding-bottom: calc(188px + env(safe-area-inset-bottom, 0px)); }
.training-cockpit::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(#efd69a,#9e712c); }
.training-cockpit.paused { background: #29282afa; }
.cockpit-title { display: grid; min-width: 0; gap: 4px; }
.cockpit-title > span,.cockpit-stat > span { color: #d8bc83; font-size:var(--text-2xs); font-weight: 800; letter-spacing: .14em; }
.cockpit-title strong { overflow: hidden; font-size: .98rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.cockpit-title small { overflow: hidden; color: #aeb0b5; font-size:var(--text-2xs); text-overflow: ellipsis; white-space: nowrap; }
.cockpit-stat { display: grid; gap: 4px; }
.cockpit-stat strong { font-size: 1.12rem; font-variant-numeric: tabular-nums; letter-spacing: -.025em; white-space: nowrap; }
.cockpit-stat strong small { color: #aeb0b5; font-size:var(--text-2xs); }
.cockpit-calories strong { font-size: .82rem; }
.empty-workout-card { display: grid; justify-items: center; max-width: 680px; margin: 35px auto; padding: clamp(34px,7vw,72px) clamp(23px,6vw,64px); border: 1px solid var(--line); border-radius: 25px; background: radial-gradient(circle at 50% 0,#fbf1dc 0,transparent 48%),var(--surface); text-align: center; box-shadow: 0 18px 45px #17120c0a; }
.empty-workout-card > span { display: grid; width: 66px; height: 66px; place-items: center; margin-bottom: 20px; border: 1px solid #d6bd8c; border-radius: 20px; background: #17191c; color: #e2bf79; }
.empty-workout-card > span svg { width: 31px; height: 31px; }
.empty-workout-card .eyebrow { margin: 0 0 10px; }
.empty-workout-card h1 { max-width: 520px; margin: 0; font-size: clamp(1.8rem,4vw,2.8rem); line-height: 1.08; letter-spacing: -.045em; }
.empty-workout-card > p:not(.eyebrow) { max-width: 510px; margin: 17px 0 25px; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.empty-workout-card .primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: min(100%,270px); }
.empty-workout-card .primary-button svg { width: 18px; height: 18px; }
.cockpit-pause,.training-cockpit .session-finish { min-height: 42px; padding: 0 14px; border-radius: 10px; font-size:var(--text-2xs); font-weight: 750; }
.cockpit-pause { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #ffffff24; background: #ffffff0a; color: #eee; }
.cockpit-pause svg { width: 16px; height: 16px; }
.training-cockpit .session-finish { border: 0; background: linear-gradient(105deg,#efd296,#bd8f40); color: #181818; }
.training-cockpit .save-state { position: absolute; right: 20px; bottom: 3px; color: #989ba1; font-size:var(--text-2xs); }
.training-cockpit .progress-track { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: #ffffff0c; }
.training-cockpit .progress-track span { display: block; height: 100%; background: linear-gradient(90deg,#9c702d,#efd397); }
.workout-paused-note { display: flex; align-items: center; gap: 12px; margin: -8px 0 20px; padding: 13px 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.workout-paused-note strong { font-size: .83rem; }
.workout-paused-note span { color: var(--muted); font-size:var(--text-2xs); }

.power-entry { position: relative; isolation: isolate; display: flex; min-height: 250px; margin: 28px 0; padding: 34px; overflow: hidden; border: 1px solid #7440a2; border-radius: 26px; background: radial-gradient(circle at 86% 20%,#873fd6 0,#371059 21%,transparent 46%),linear-gradient(120deg,#151019 0%,#1e1128 56%,#321047 100%); color: #fff; box-shadow: 0 18px 46px #4b176123; }
.power-entry::after { content: ""; position: absolute; z-index: -1; top: -25%; right: 12%; width: 2px; height: 150%; background: #d9a8ff; box-shadow: 28px 0 0 #6f2fa5,56px 0 0 #bd78ed; opacity: .2; transform: rotate(29deg); }
.power-entry > div { position: relative; z-index: 2; max-width: min(680px,72%); }
.power-entry .eyebrow { color: #ce9af3; }
.power-entry h2 { margin: 13px 0 11px; font-size: clamp(1.9rem,4vw,3rem); line-height: 1.05; letter-spacing: -.05em; }
.power-entry p { max-width: 620px; color: #d4cad9; font-size: .9rem; line-height: 1.65; }
.power-entry-button { margin-top: 13px; padding: 13px 18px; border: 1px solid #bf82e6; border-radius: 11px; background: #f4eafb; color: #281231; font-size: .82rem; font-weight: 800; }
.power-entry-button svg { width: 17px; vertical-align: middle; }
.power-lightning { position: absolute; z-index: 0; top: -18%; right: -2.5%; width: 310px; height: 136%; overflow: hidden; pointer-events: none; opacity: .74; }
.power-lightning::before { content: ""; position: absolute; inset: 8% -10% 4% 18%; border-radius: 48%; background: radial-gradient(ellipse at 67% 44%,#efd4ff47 0,#b83aff26 30%,#6b169e12 55%,transparent 75%); filter: blur(18px); animation: lightning-bloom 5.2s ease-in-out infinite; }
.power-lightning img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; filter: brightness(.94) saturate(1.02) drop-shadow(0 0 12px #c75cff8c); animation: lightning-photo-pulse 5.2s linear infinite; }
.lightning-glow path,.lightning-core path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lightning-glow { fill: none; stroke: #b83dff; stroke-width: 11; opacity: .4; filter: blur(8px); }
.lightning-main { stroke: #fffaff; stroke-width: 2.45; filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 10px #d26aff) drop-shadow(0 0 22px #7d20c0); animation: lightning-current 5.2s linear infinite; }
.lightning-branch { stroke: #dda0ff; stroke-width: 1.45; filter: drop-shadow(0 0 5px #bd45ff); }
.lightning-fine { fill: none; stroke: #c86df5; stroke-width: .8; filter: drop-shadow(0 0 4px #a52bdf); opacity: .7; animation: lightning-fine-pulse 5.2s linear infinite; }
.branch-one { animation: lightning-branch-one 5.2s linear infinite; }.branch-two { animation: lightning-branch-two 5.2s linear infinite; }
@keyframes lightning-current { 0%,43%,100% { opacity: .72; } 44% { opacity: 1; } 45% { opacity: .28; } 46% { opacity: 1; } 47% { opacity: .5; } 49%,68% { opacity: .94; } 69% { opacity: .48; } 70% { opacity: .88; } }
@keyframes lightning-branch-one { 0%,42%,100% { opacity: .45; } 44% { opacity: 1; } 45% { opacity: .18; } 46%,67% { opacity: .9; } 69% { opacity: .3; } 71% { opacity: .68; } }
@keyframes lightning-branch-two { 0%,43%,100% { opacity: .34; } 44% { opacity: .88; } 45.5% { opacity: .12; } 46.5%,66% { opacity: .78; } 68% { opacity: .26; } 70% { opacity: .61; } }
@keyframes lightning-fine-pulse { 0%,42%,100% { opacity: .28; } 44%,47% { opacity: .86; } 49%,70% { opacity: .58; } }
@keyframes lightning-bloom { 0%,42%,100% { opacity: .5; transform: scale(.96); } 44% { opacity: 1; transform: scale(1.05); } 45% { opacity: .34; } 46%,49% { opacity: .96; transform: scale(1.03); } 70% { opacity: .62; } }
@keyframes lightning-photo-pulse { 0%,42%,100% { opacity: .72; filter: brightness(.88) saturate(.96) drop-shadow(0 0 9px #b64be06b); } 44% { opacity: 1; filter: brightness(1.2) saturate(1.08) drop-shadow(0 0 20px #e4a8ffcc); } 45% { opacity: .58; } 46%,49% { opacity: .96; filter: brightness(1.08) saturate(1.04) drop-shadow(0 0 15px #d47bffad); } 70% { opacity: .82; } }
.power-check { display: grid; gap: 22px; }
.power-hero { position: relative; overflow: hidden; padding: 38px; border: 1px solid #76429c; border-radius: 24px; background: radial-gradient(circle at 90% 20%,#7d35c5 0,#311047 24%,transparent 46%),#171019; color: #fff; }
.power-hero .eyebrow { color: #c795eb; }
.power-hero h2 { margin: 14px 0 10px; font-size: clamp(2.1rem,5vw,4rem); letter-spacing: -.07em; }
.power-hero h2 b { color: #c984f6; }
.power-hero > p { max-width: 670px; color: #cabfd0; line-height: 1.65; }
.power-status { display: grid; gap: 4px; max-width: 650px; margin-top: 24px; padding: 15px 17px; border: 1px solid #ffffff1a; border-radius: 13px; background: #ffffff08; }
.power-status strong { font-size: .85rem; }.power-status span { color: #aaa0b0; font-size:var(--text-2xs); }
.power-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.power-result,.power-setup,.power-test { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.power-result > span { color: var(--muted); font-size: .76rem; }
.power-result > strong { display: block; margin: 10px 0 14px; font-size: 2rem; letter-spacing: -.05em; }
.power-result > strong small { color: #7b3ca4; font-size:var(--text-2xs); letter-spacing: 0; }
.power-result > div { display: flex; flex-wrap: wrap; gap: 7px; }
.power-result em { padding: 6px 8px; border-radius: 6px; background: #eee4f4; color: #582875; font-size:var(--text-2xs); font-style: normal; }
.power-result p { margin: 13px 0 0; color: var(--muted); font-size:var(--text-2xs); line-height: 1.5; }
.power-result-band { display: block; margin-top: 6px; color: var(--muted); font-size:var(--text-2xs); }
.power-lift-picker { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.power-lift-picker button { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); text-align: left; }
.power-lift-picker button > svg { width: 18px; flex: 0 0 18px; color: #713b98; }
.power-lift-picker button span { display: grid; min-width: 0; gap: 3px; }
.power-lift-picker strong { font-size: .78rem; line-height: 1.3; overflow-wrap: anywhere; }
.power-lift-picker small { color: var(--muted); font-size:var(--text-2xs); }
.power-lift-picker button.selected { border-color: #8950aa; background: #f1e7f6; box-shadow: inset 3px 0 #74389a; }
.power-test { border-color: #74429a; background: linear-gradient(138deg,#1a131e,#25142f); color: #fff; }
.power-test .eyebrow { color: #c792e9; }.power-test h2 { font-size: 1.7rem; }.power-test > p { max-width: 760px; color: #c9bdcc; line-height: 1.7; }
.power-ready { display: flex; gap: 12px; margin: 21px 0; padding: 16px; border: 1px solid #ffffff1a; border-radius: 13px; background: #ffffff08; cursor: pointer; }
.power-ready input { accent-color: #a860d1; width: 19px; height: 19px; flex: 0 0 19px; }
.power-ready span { display: grid; gap: 5px; }.power-ready strong { font-size: .83rem; }.power-ready small { color: #aca1b0; font-size:var(--text-2xs); line-height: 1.5; }
.power-start { min-height: 52px; width: 100%; border: 1px solid #d6a5f1; border-radius: 11px; background: linear-gradient(105deg,#d5a4f2,#773caf); color: #160d1a; font-weight: 850; }
.power-start:disabled { opacity: .42; box-shadow: none; cursor: not-allowed; }
.power-test details { margin-top: 17px; color: #bdb2c0; font-size:var(--text-2xs); line-height: 1.6; }
.power-test summary { color: #e4d8e7; cursor: pointer; }
.power-kind { color: #8243a5; }
.power-setup-copy { margin: -4px 0 18px; color: var(--muted); font-size: .76rem; line-height: 1.6; }
.power-guide-preview { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 22px 0; }
.power-guide-preview span { display: grid; gap: 5px; padding: 12px 10px; border: 1px solid #ffffff17; border-radius: 10px; color: #d3c7d7; font-size:var(--text-2xs); }
.power-guide-preview b { color: #d79cff; font-size:var(--text-2xs); letter-spacing: .12em; }

.power-guide-view { max-width: 920px; padding-top: 22px; }
.power-guide-header { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 18px; overflow: hidden; padding: 19px 20px 25px; border: 1px solid #73429a; border-radius: 20px; background: radial-gradient(circle at 86% -20%,#8339c6 0,#311042 30%,transparent 55%),linear-gradient(125deg,#161219,#221229); color: #fff; box-shadow: 0 16px 40px #2f0f481f; }
.power-guide-header > div:first-child { display: grid; gap: 4px; min-width: 0; }
.power-guide-header > div:first-child span { color: #cf91f2; font-size:var(--text-2xs); font-weight: 850; letter-spacing: .18em; }
.power-guide-header > div:first-child strong { overflow: hidden; font-size: .95rem; text-overflow: ellipsis; white-space: nowrap; }
.power-guide-clock { display: grid; gap: 2px; text-align: right; }
.power-guide-clock span { color: #a99eae; font-size:var(--text-2xs); font-weight: 800; letter-spacing: .14em; }
.power-guide-clock strong { font-variant-numeric: tabular-nums; font-size:var(--text-md); }
.power-guide-header > button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #ffffff1c; border-radius: 50%; background: #ffffff0a; color: #fff; }
.power-guide-header > button svg { width: 17px; }
.power-guide-track { position: absolute; right: 20px; bottom: 11px; left: 20px; height: 3px; overflow: hidden; border-radius: 10px; background: #ffffff16; }
.power-guide-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#7a35aa,#d49bff,#fff); box-shadow: 0 0 12px #c86fff; transition: width .35s ease; }
.power-guide-header > small { position: absolute; right: 20px; bottom: 14px; transform: translateY(100%); color: transparent; font-size: 0; }
.power-guide-panel { min-height: 570px; margin-top: 14px; padding: clamp(26px,5vw,52px); border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg,#fff 0%,#fbf9f5 60%,#f3edf7 100%); box-shadow: var(--shadow); }
.power-guide-copy { max-width: 690px; }
.power-guide-copy .eyebrow { color: #713493; }
.power-guide-copy h1 { max-width: 700px; margin: 12px 0 13px; font-size: clamp(2.25rem,7vw,4.8rem); line-height: .98; letter-spacing: -.065em; }
.power-guide-copy p { max-width: 720px; color: var(--muted); font-size: .92rem; line-height: 1.75; }
.power-guide-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; }
.power-guide-primary { min-height: 52px; padding: 0 22px; border: 1px solid #b874e4; border-radius: 12px; background: linear-gradient(118deg,#4b1a68,#7e35a9 48%,#b769df); color: #fff; font-size: .82rem; font-weight: 850; box-shadow: 0 10px 24px #61247e30,inset 0 1px #ffffff55; }
.power-guide-primary:disabled { opacity: .38; box-shadow: none; }
.power-guide-primary svg { width: 17px; vertical-align: middle; }
.power-medical-note { max-width: 720px; margin: 20px 0 0; color: #7b747e; font-size:var(--text-2xs); line-height: 1.6; }
.power-return-note { display: flex; gap: 10px; align-items: flex-start; max-width: 720px; margin: 20px 0 0; padding: 14px 16px; border: 1px solid #d9c7e6; border-radius: 12px; background: #f7f1fa; color: #4a3455; font-size: .85rem; line-height: 1.6; }
.power-return-note svg { width: 17px; flex: none; margin-top: 2px; color: #713692; }

.power-safety-list { display: grid; gap: 10px; margin-top: 28px; }
.power-safety-item { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 13px; width: 100%; padding: 15px; border: 1px solid #d9d3da; border-radius: 14px; background: #fff; color: var(--text); text-align: left; }
.power-safety-item > span { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #c9c1cb; border-radius: 50%; color: #fff; }
.power-safety-item > span svg { width: 17px; }
.power-safety-item > div { display: grid; gap: 4px; }
.power-safety-item strong { font-size: .82rem; }
.power-safety-item small { color: var(--muted); font-size:var(--text-2xs); line-height: 1.5; }
.power-safety-item.checked { border-color: #9254b1; background: #f4eaf8; box-shadow: inset 4px 0 #713692; }
.power-safety-item.checked > span { border-color: #713692; background: #713692; }

.power-warmup-general { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 24px; margin-top: 32px; padding: 23px; border: 1px solid #d8cedd; border-radius: 18px; background: #fff; }
.power-warmup-time { display: grid; place-items: center; width: 116px; height: 116px; border: 7px solid #2a172f; border-right-color: #a657d1; border-radius: 50%; color: #26162b; font-size: 2rem; font-weight: 900; letter-spacing: -.06em; }
.power-warmup-time small { font-size:var(--text-2xs); letter-spacing: .12em; }
.power-warmup-general strong { font-size:var(--text-md); }.power-warmup-general p { margin: 7px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.power-stop-rule { display: flex; gap: 12px; margin-top: 13px; padding: 13px 15px; border-radius: 11px; background: #211622; color: #e8dfe9; font-size:var(--text-2xs); line-height: 1.55; }
.power-stop-rule b { flex: 0 0 auto; color: #d497f4; font-size:var(--text-2xs); letter-spacing: .12em; }

.power-exercise-marker { display: grid; gap: 5px; margin-bottom: 30px; padding: 15px 17px; border-left: 4px solid #9c53c5; border-radius: 0 12px 12px 0; background: #211622; color: #fff; }
.power-exercise-marker span { color: #cf91f2; font-size:var(--text-2xs); font-weight: 850; letter-spacing: .15em; }
.power-exercise-marker strong { font-size: 1.05rem; }.power-exercise-marker small { color: #afa4b2; font-size:var(--text-2xs); }
.power-reference-card,.power-ramp { margin-top: 28px; padding: 22px; border: 1px solid #d8d1da; border-radius: 16px; background: #fff; }
.power-reference-card label,.power-ramp > label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: .76rem; font-weight: 800; }
.power-reference-card label small { color: var(--muted); font-weight: 500; }
.power-reference-card > div,.power-warmup-input { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; border: 1px solid #bdb4c1; border-radius: 11px; background: #fbfafb; }
.power-reference-card input,.power-warmup-input input { min-width: 0; width: 100%; padding: 15px; border: 0; background: transparent; color: var(--text); font-size: 1.2rem; font-weight: 800; outline: 0; }
.power-reference-card > div > span,.power-warmup-input span { padding-right: 15px; color: var(--muted); font-size:var(--text-2xs); }
.power-reference-card p { margin: 11px 0 0; color: var(--muted); font-size:var(--text-2xs); line-height: 1.55; }
.power-ramp-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 22px; }
.power-ramp-steps span { display: grid; justify-items: center; gap: 6px; padding: 12px 5px; border: 1px solid #ddd5df; border-radius: 10px; color: #99909b; }
.power-ramp-steps b { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: #eee9ef; font-size:var(--text-2xs); }
.power-ramp-steps b svg { width: 14px; }.power-ramp-steps small { font-size:var(--text-2xs); }
.power-ramp-steps span.active { border-color: #9650bd; background: #f3e7f8; color: #54226d; }.power-ramp-steps span.active b { background: #743594; color: #fff; }
.power-ramp-steps span.done { color: #534c55; }.power-ramp-steps span.done b { background: #231626; color: #fff; }
.power-ramp > small { display: block; margin-top: 10px; color: var(--muted); font-size:var(--text-2xs); line-height: 1.5; }

.power-attempt-form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; margin-top: 28px; }
.power-attempt-form > label { display: grid; gap: 7px; color: var(--text); font-size:var(--text-2xs); font-weight: 800; }
.power-attempt-form > label > input,.power-attempt-form > label > div { min-width: 0; width: 100%; min-height: 58px; border: 1px solid #bdb4c1; border-radius: 11px; background: #fff; }
.power-attempt-form > label > input { padding: 12px; color: var(--text); font-size: 1.15rem; font-weight: 850; }
.power-attempt-form > label > div { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; }
.power-attempt-form > label > div input { min-width: 0; width: 100%; padding: 12px; border: 0; background: transparent; color: var(--text); font-size: 1.15rem; font-weight: 850; outline: 0; }
.power-attempt-form > label > div small { padding-right: 12px; color: var(--muted); }
.power-technique-check { grid-column: 1/-1; display: flex !important; grid-template-columns: none !important; align-items: center; gap: 12px !important; margin-top: 5px; padding: 15px; border: 1px solid #d9d1db; border-radius: 12px; background: #fff; cursor: pointer; }
.power-technique-check input { width: 20px !important; height: 20px !important; min-height: 0 !important; accent-color: #76379a; }
.power-technique-check span { display: grid; gap: 3px; }.power-technique-check strong { font-size: .76rem; }.power-technique-check small { color: var(--muted); font-size:var(--text-2xs); font-weight: 500; }
.power-attempt-form .power-guide-primary { grid-column: 1/-1; margin-top: 5px; }
.power-abort-link { display: block; margin: 17px auto 0; border: 0; background: transparent; color: #7b707d; font-size:var(--text-2xs); text-decoration: underline; }
.power-result-hero { margin-top: 30px; padding: 28px; border: 1px solid #7f45a2; border-radius: 20px; background: radial-gradient(circle at 85% 12%,#8339c5 0,#361348 26%,transparent 53%),#181119; color: #fff; }
.power-result-hero > span { color: #cb8eee; font-size:var(--text-2xs); font-weight: 850; letter-spacing: .16em; }
.power-result-hero > strong { display: block; margin: 14px 0 9px; font-size: clamp(3rem,10vw,5.8rem); line-height: .9; letter-spacing: -.08em; }
.power-result-hero > strong small { color: #d0c4d3; font-size: .17em; letter-spacing: 0; }.power-result-hero p { margin: 0; color: #bcb0bf; font-size:var(--text-2xs); }
.power-result-hero .power-result-band { color: #bcb0bf; }
.power-result-context { margin-top: 13px; padding: 17px; border: 1px solid #ddd5df; border-radius: 13px; background: #fff; }
.power-result-context strong { font-size: .88rem; }.power-result-context p { margin: 7px 0 0; color: var(--muted); font-size:var(--text-2xs); line-height: 1.55; }
/* Paket 6 (Gap-Analyse-Nachtrag 2026-09-29): eigener Abschluss-Moment fuer
   den Power Check statt des generischen Trainings-Dialogs, in derselben
   theme-unabhaengigen violetten Sprache wie .power-guide-*/.power-result-hero
   oben - bewusst eigene Klassennamen (power-summary-*), um nicht mit der
   dortigen Einzelwert-Anzeige je Uebung zu kollidieren. */
.power-summary-hero { background: radial-gradient(circle at 86% -20%,#8339c6 0,#311042 30%,transparent 55%),linear-gradient(125deg,#161219,#221229); color: #fff; border: 1px solid #73429a; border-radius: 20px; padding: 24px; margin-bottom: 20px; }
.power-summary-hero .eyebrow { color: #cf91f2; font-size: var(--text-2xs); font-weight: 850; letter-spacing: .14em; display: flex; align-items: center; gap: 8px; }
.power-summary-hero h3 { font-size: 1.6rem; letter-spacing: -.03em; margin: 10px 0 6px; }
.power-summary-hero p { color: #cbb6d6; font-size: .85rem; line-height: 1.6; margin: 0; }
.power-summary-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.power-summary-row { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.power-summary-row strong { display: block; font-size: .9rem; margin-bottom: 6px; }
.power-summary-values { display: flex; align-items: center; gap: 10px; }
.power-summary-values svg { width: 16px; height: 16px; color: #a76fd6; }
.power-summary-prior { color: var(--muted); font-size: .95rem; }
.power-summary-current { font-size: 1.3rem; font-weight: 750; letter-spacing: -.02em; color: #7d3bb0; }
.power-summary-row small { display: block; margin-top: 6px; color: var(--muted); font-size: var(--text-2xs); }
.power-invite { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: radial-gradient(circle at 86% -20%,#8339c6 0,#311042 30%,transparent 55%),linear-gradient(125deg,#161219,#221229); color: #fff; border: 1px solid #73429a; border-radius: 20px; padding: 22px 24px; margin-bottom: 20px; }
.power-invite .eyebrow { color: #cf91f2; font-size: var(--text-2xs); font-weight: 850; letter-spacing: .14em; display: flex; align-items: center; gap: 8px; }
.power-invite strong { display: block; margin: 8px 0 4px; font-size: 1.05rem; }
.power-invite p { color: #cbb6d6; font-size: .82rem; line-height: 1.55; margin: 0; max-width: 46ch; }
.power-invite > button { flex: none; min-height: var(--tap-min); padding: 0 20px; border: 1px solid #b874e4; border-radius: 12px; background: linear-gradient(118deg,#4b1a68,#7e35a9 48%,#b769df); color: #fff; font-size: .82rem; font-weight: 850; }
.power-guide-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 28px; }
.power-guide-results article { padding: 18px; border: 1px solid #d8d0da; border-radius: 14px; background: #fff; }
.power-guide-results article > span { color: var(--muted); font-size:var(--text-2xs); }.power-guide-results article > strong { display: block; margin: 11px 0 8px; font-size: 1.65rem; letter-spacing: -.05em; }
.power-guide-results article > strong small { color: #784097; font-size: .5em; letter-spacing: 0; }.power-guide-results article p { margin: 0; color: var(--muted); font-size:var(--text-2xs); }

@media (max-width:650px) {
  .power-guide-preview { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .power-guide-view { padding-top: 10px; }
  .power-guide-header { margin: 0 -2px; padding: 16px 15px 23px; border-radius: 16px; }
  .power-guide-track { right: 15px; bottom: 9px; left: 15px; }
  .power-guide-panel { min-height: 0; margin-top: 10px; padding: 25px 18px 30px; border-radius: 19px; }
  .power-guide-copy h1 { font-size: clamp(2.15rem,12vw,3.2rem); }
  .power-guide-actions { flex-direction: column-reverse; }
  .power-guide-actions > button { width: 100%; }
  .power-warmup-general { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .power-stop-rule { display: grid; }
  .power-reference-card label { display: grid; }
  .power-attempt-form { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .power-attempt-form > label > input,.power-attempt-form > label > div { min-height: 52px; }
  .power-attempt-form > label > input,.power-attempt-form > label > div input { padding: 9px; font-size:var(--text-md); }
  .power-guide-results { grid-template-columns: 1fr; }
}

.energy-weight { display: grid; grid-template-columns: 1fr auto; gap: 5px 15px; margin: 19px 0 8px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-3); }
.energy-weight span { color: var(--muted); font-size:var(--text-2xs); }.energy-weight strong { grid-row: 2; font-size: 1.15rem; }.energy-weight button { grid-column: 2; grid-row: 1/3; align-self: center; border: 0; background: none; color: var(--accent); font-size:var(--text-2xs); font-weight: 700; }
.profile-grid { display: grid; grid-template-columns: minmax(0,180px); gap: 10px; margin: 18px 0 13px; }
.profile-grid label { display: grid; gap: 7px; color: var(--text); font-size:var(--text-2xs); font-weight: 700; }.profile-grid label small { color: var(--muted); font-weight: 400; }.profile-grid input,.profile-grid select { min-width: 0; width: 100%; min-height: 44px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); }
.settings-footnote { margin-top: 15px; color: var(--muted); font-size:var(--text-2xs) !important; }
.timer-session-time { margin-left: auto; padding: 7px 10px; border: 1px solid #ffffff17; border-radius: 8px; color: #918b98; font-size:var(--text-2xs); letter-spacing: .11em; }
.timer-session-time strong { margin-left: 7px; color: #e0c892; font-size:var(--text-2xs); font-variant-numeric: tabular-nums; letter-spacing: 0; }

html[data-theme="violet"] .training-cockpit::before,html[data-theme="violet"] .training-cockpit .progress-track span { background: linear-gradient(#d9b2ef,#73369a); }
html[data-theme="violet"] .cockpit-title > span,html[data-theme="violet"] .cockpit-stat > span { color: #cba1e2; }
html[data-theme="violet"] .training-cockpit .session-finish { border: 1px solid #d3a4eb; background: linear-gradient(105deg,#c89ae3,#713b98); color: #fff; }

@media (min-width:1080px) {
  .bottom-nav { top: 0; padding: 24px 20px 20px; }
  .nav-brand { display: flex; align-items: center; gap: 11px; margin: 0 5px 34px; padding: 0; border: 0; background: transparent; text-align: left; }
  .nav-brand img { width: 46px; height: 46px; border-radius: 13px; }
  .nav-brand span { display: grid; gap: 4px; min-width: 0; }.nav-brand strong { font-size: 1.25rem; letter-spacing: -.04em; }.nav-brand small { color: var(--muted); font-size:var(--text-2xs); font-weight: 700; letter-spacing: .08em; line-height: 1.5; }
  .training-active { padding-top: 0; padding-bottom: 125px; }
  .training-cockpit { right: clamp(24px,3.2vw,52px); bottom: 18px; left: calc(236px + clamp(24px,3.2vw,52px)); }
}
@media (max-width:760px) {
  .launch-brand-row { margin-bottom: 25px; }.launch-brand img { width: 47px; height: 47px; }.launch-brand strong { font-size: 1.35rem; }.launch-brand small { font-size:var(--text-2xs); }.launch-menu { width: 47px; height: 47px; flex-basis: 47px; border-radius: 14px; }
  .training-active { padding-top: 0; padding-bottom: calc(184px + env(safe-area-inset-bottom, 0px)); }
  .training-cockpit { right: 10px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); left: 10px; grid-template-columns: minmax(0,1fr) auto auto auto; gap: 8px; padding: 10px 11px 11px; border-radius: 16px; }
  .cockpit-title { grid-column: 1/2; gap: 2px; }.cockpit-title strong { max-width: 38vw; font-size: .8rem; }.cockpit-title small { display: block; max-width: 42vw; font-size:var(--text-2xs); }
  .cockpit-stat { text-align: right; }.cockpit-stat strong { font-size: .9rem; }.cockpit-stat > span { font-size:var(--text-2xs); }
  .cockpit-volume,.cockpit-sets,.cockpit-calories { display: none; }.cockpit-pause,.training-cockpit .session-finish { width: 41px; min-height: 41px; padding: 0; border-radius: 50%; }
  .cockpit-pause svg,.training-cockpit .session-finish svg { width: 17px; height: 17px; }
  .training-cockpit .save-state { display: none; }
  .workout-paused-note { align-items: flex-start; flex-direction: column; gap: 3px; }
  .power-entry { min-height: 310px; padding: 27px 22px; }.power-entry > div { max-width: 100%; }.power-entry h2,.power-entry p { max-width: 70%; }.power-entry p { position: relative; z-index: 2; font-size: .82rem; }.power-lightning { top: -8%; right: -48px; bottom: auto; width: 238px; height: 116%; opacity: .6; }
  .power-hero { padding: 28px 21px; }.power-results,.power-lift-picker { grid-template-columns: 1fr; }.power-result,.power-setup,.power-test { padding: 21px 18px; }
  .profile-grid { grid-template-columns: 1fr; }.timer-session-time { display: none; }
  .summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:360px) {
  .training-cockpit { right: 7px; left: 7px; grid-template-columns: minmax(0,1fr) auto auto; gap: 6px; }.cockpit-time { display: none; }.cockpit-title strong { max-width: 46vw; }
}

@media (max-width:500px) {
  .training-cockpit .cockpit-action-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.bottom-nav-inner { grid-template-columns: repeat(5,minmax(0,1fr)); }
/* A compact training board instead of a decorative diagram. */
.generator-art.plan-system-art { min-height: 270px; align-items: center; justify-content: center; padding: 22px; border-left: 1px solid #ffffff12; perspective: 800px; }
.plan-system-art::before { content: "" !important; position: absolute; inset: 14% 8%; border-radius: 50%; background: radial-gradient(circle,#d8b66d26 0,transparent 66%); filter: blur(8px); }
.plan-board { position: relative; isolation: isolate; display: grid; width: min(100%,230px); gap: 9px; padding: 15px; border: 1px solid #d9b66d9e; border-radius: 18px; background: linear-gradient(145deg,#202226,#0d0e10); box-shadow: 0 24px 48px #0008,inset 0 1px #ffffff18; transform: rotate(-3deg); }
.plan-board::before,.plan-board::after { content: ""; position: absolute; z-index: -1; inset: 8px -8px -8px 8px; border: 1px solid #b8914a3b; border-radius: 18px; background: #111317c9; }
.plan-board::after { inset: 16px -16px -16px 16px; opacity: .55; }
.plan-board-head { display: flex; align-items: center; justify-content: space-between; min-height: 25px; padding: 0 3px 8px; border-bottom: 1px solid #ffffff16; }
.plan-board-head > span { display: flex; gap: 5px; }.plan-board-head i { width: 5px; height: 5px; border-radius: 50%; background: #d8b66d; opacity: .72; }
.plan-board-head b { color: #e4c47e; font-size:var(--text-2xs); letter-spacing: .18em; }
.plan-board-row { display: grid; grid-template-columns: 30px minmax(0,1fr) 25px; align-items: center; gap: 10px; min-height: 38px; padding: 7px 9px; border: 1px solid #ffffff0e; border-radius: 10px; background: #ffffff08; }
.plan-board .plan-board-row strong { position: static; color: #f4ead8; font-size: .82rem; line-height: 1; letter-spacing: 0; text-shadow: none; }
.plan-board-row > span { display: grid; gap: 5px; min-width: 0; }.plan-board-row > span i { display: block; height: 3px; border-radius: 99px; background: #ffffff22; }.plan-board-row > span i:first-child { width: 100%; background: linear-gradient(90deg,#d9b66d,#ffffff32); }.plan-board-row > span i:last-child { width: 62%; }
.plan-board-row em { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid #d9b66d65; border-radius: 50%; color: #e4c57f; font-size:var(--text-2xs); font-style: normal; }

html[data-theme="violet"] .plan-system-art::before { background: radial-gradient(circle,#8a4baa24 0,transparent 68%); }
html[data-theme="violet"] .plan-board { border-color: #8950a8a6; background: linear-gradient(145deg,#fffdf8,#eee4f2); box-shadow: 0 22px 44px #4e24542b,inset 0 1px #fff; }
html[data-theme="violet"] .plan-board::before,html[data-theme="violet"] .plan-board::after { border-color: #b48dbe4a; background: #f7f0f8d9; }
html[data-theme="violet"] .plan-board-head { border-bottom-color: #6d337f1c; }
html[data-theme="violet"] .plan-board-head i { background: #7b3f9d; }
html[data-theme="violet"] .plan-board-head b,html[data-theme="violet"] .plan-board .plan-board-row strong { color: #54256c; }
html[data-theme="violet"] .plan-board-row { border-color: #703b8c20; background: #ffffff8c; }
html[data-theme="violet"] .plan-board-row > span i { background: #6b387a1e; }.plan-board-row > span i:first-child { background: linear-gradient(90deg,#7b3f9d,#b58a3c8c); }
html[data-theme="violet"] .plan-board-row em { border-color: #7b3f9d5c; color: #6e338e; }

/* Violet light edition — ivory marble cards, gold veins and metallic-violet controls. */
html[data-theme="violet"] :is(
  .first-start-card,
  .generator-invite,
  .launch-recommendation,
  .coach-answer,
  .weight-trend-panel,
  .generator-save,
  .quick-entry,
  .knowledge-entry,
  .training-cockpit
) {
  border-color: rgba(172, 132, 64, .48);
  background-color: #f7f1e8;
  background-image:
    linear-gradient(98deg, rgba(255, 253, 248, .92) 0%, rgba(255, 250, 240, .76) 48%, rgba(255, 253, 248, .36) 100%),
    url('./bym-light-marble.svg');
  background-position: center;
  background-size: auto, cover;
  background-repeat: no-repeat;
  color: var(--text);
  box-shadow: 0 18px 44px rgba(65, 42, 72, .1), inset 0 1px rgba(255, 255, 255, .8);
}
html[data-theme="violet"] :is(.first-start-card,.generator-invite,.launch-recommendation,.coach-answer,.weight-trend-panel,.generator-save,.quick-entry,.knowledge-entry) :is(p,small) { color: var(--muted); }
html[data-theme="violet"] :is(.first-start-card,.generator-invite,.launch-recommendation,.quick-entry,.knowledge-entry) :is(h1,h2,h3,strong) { color: var(--text); text-shadow: none; }
html[data-theme="violet"] :is(.first-start-card,.generator-invite,.quick-entry,.knowledge-entry) .eyebrow,
html[data-theme="violet"] .launch-recommendation-top,
html[data-theme="violet"] .weight-trend-panel .eyebrow { color: #6f328f; }
html[data-theme="violet"] :is(.first-start-card,.generator-invite) .eyebrow { background: transparent; }
html[data-theme="violet"] .first-start-promise {
  border-top-color: rgba(153, 112, 43, .32);
  background: rgba(255, 253, 248, .67);
  box-shadow: inset 0 1px rgba(255, 255, 255, .8);
}
html[data-theme="violet"] .first-start-promise strong,
html[data-theme="violet"] .generator-art strong span { color: #743692; background: transparent; }
html[data-theme="violet"] .launch-reason { border-top-color: rgba(139, 81, 163, .2); color: var(--muted); }
html[data-theme="violet"] .launch-exercise-preview span { border-color: rgba(126, 71, 158, .34); background: rgba(255, 255, 255, .48); color: #5d2a78; }
html[data-theme="violet"] .quick-entry::before {
  background: linear-gradient(126deg, transparent 56%, rgba(121, 65, 151, .07) 56.3%, rgba(255, 255, 255, .14) 68%, transparent 82%);
}
html[data-theme="violet"] .knowledge-entry .text-button { color: #713b98; }
html[data-theme="violet"] .generator-save input {
  border-color: rgba(126, 71, 158, .38);
  background: rgba(255, 253, 248, .82);
  color: var(--text);
}
html[data-theme="violet"] .training-cockpit.paused { background-color: #eee6ef; }
html[data-theme="violet"] :is(.cockpit-title strong,.cockpit-stat strong) { color: var(--text); }
html[data-theme="violet"] :is(.cockpit-title small,.cockpit-stat strong small,.training-cockpit .save-state) { color: var(--muted); }
html[data-theme="violet"] :is(.cockpit-title > span,.cockpit-stat > span) { color: #6d328c; }
html[data-theme="violet"] .cockpit-pause { border-color: rgba(113, 59, 152, .25); background: rgba(255, 255, 255, .58); color: #54236e; }
html[data-theme="violet"] .training-cockpit .progress-track { background: rgba(92, 42, 123, .1); }

html[data-theme="violet"] :is(
  .primary-button,
  .session-finish,
  .set-complete,
  .nav-button.active,
  .time-budget button.active,
  .generator-chips > button.selected,
  .progress-metric-tabs > button.active,
  .week-day.trained strong,
  .set-check.done,
  .power-start
) {
  border-color: #8b4aaa;
  background: linear-gradient(118deg, #4a1d65 0%, #7d3fa3 46%, #b87bd5 76%, #63267f 100%);
  color: #fff;
  box-shadow: inset 0 1px rgba(255,255,255,.42), 0 8px 20px rgba(79, 32, 99, .22);
}
html[data-theme="violet"] .nav-button.active svg { color: #ead4f7; }
html[data-theme="violet"] .switch[aria-checked="true"] {
  border-color: #764096;
  background: linear-gradient(105deg, #4d2069, #9a59ba 62%, #c18add);
  box-shadow: inset 0 1px rgba(255,255,255,.35), 0 4px 13px rgba(83,34,105,.2);
}
html[data-theme="violet"] .switch[aria-checked="true"]::after { background: #fffdf8; box-shadow: 0 1px 5px rgba(48, 21, 57, .35); }
html[data-theme="violet"] :is(.segmented button.active,.generator-options > button.selected,.launch-plan-grid > button.selected,.power-lift-picker button.selected) {
  border-color: #9a65b5;
  background: linear-gradient(135deg, #f7effa, #eadcf1);
  color: #4c2162;
  box-shadow: inset 3px 0 #7b3d9c;
}

html[data-theme="violet"] .generator-art.plan-system-art { border-color: rgba(112, 56, 138, .18); }

@media (max-width:650px) {
  .generator-art.plan-system-art { display: flex; min-height: 216px; margin-top: 12px; justify-content: center; padding: 18px 28px 28px 18px; border-top: 1px solid #ffffff12; border-left: 0; }
  .plan-board { width: min(100%,224px); transform: rotate(-2deg); }
}

@media (prefers-reduced-motion:reduce) {
  .power-lightning::before,.power-lightning img,.lightning-main,.lightning-branch,.lightning-fine { animation: none; }
}

/* BYM 4.5.1 — mobile text resilience. Never hide useful copy inside cards. */
.muscle-map-card .analysis-head {
  margin-bottom: 0;
  padding: 24px 24px 12px;
}

:where(
  .exercise-rail-item strong,
  .saved-workout-row strong,
  .exercise-last,
  .exercise-subline .truncate,
  .insight-box strong,
  .stat-card strong,
  .history-main strong,
  .set-comparison strong,
  .power-guide-header > div:first-child strong
) {
  overflow: visible;
  max-width: 100%;
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

.exercise-subline,
.section-heading,
.plan-library-heading,
.body-panel-header {
  min-width: 0;
  flex-wrap: wrap;
}

:where(.section-heading, .plan-library-heading, .body-panel-header) > :where(h2, span, button) {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.extra-preview .section-heading > span,
.generator-coverage .section-heading > span {
  white-space: normal;
}

.recommendation p {
  height: auto;
  min-height: 21px;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .muscle-map-card .analysis-head {
    padding: 22px 18px 12px;
  }

  .history-card {
    align-items: start;
  }

  .saved-workout-row > button:first-child {
    height: auto;
    padding-block: 12px;
  }
}

/* BYM 4.6 — one clear plan flow: recommendation, recent plans, deliberate restart. */
.rhythm-notice {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr);
  gap: 20px 28px;
  margin: 0 0 24px;
  padding: 27px;
  border: 1px solid #b89452;
  border-radius: 22px;
  background:
    linear-gradient(112deg, rgba(255,255,255,.97), rgba(250,244,230,.92)),
    radial-gradient(circle at 90% 0, rgba(211,177,108,.2), transparent 48%);
  box-shadow: 0 13px 34px rgba(36,29,17,.06);
}
.rhythm-notice::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -75px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(174,132,55,.14);
  border-radius: 50%;
  box-shadow: 0 0 0 27px rgba(174,132,55,.045), 0 0 0 54px rgba(174,132,55,.025);
  pointer-events: none;
}
.rhythm-notice-copy,.rhythm-notice-actions { position: relative; z-index: 1; min-width: 0; }
.rhythm-notice h2 { margin: 10px 0 8px; font-size: clamp(1.25rem,2.4vw,1.75rem); line-height: 1.18; letter-spacing: -.035em; }
.rhythm-notice p { margin: 0; max-width: 720px; color: var(--muted); font-size: .88rem; line-height: 1.7; overflow-wrap: anywhere; }
.rhythm-notice-actions { display: grid; align-content: center; gap: 9px; }
.rhythm-notice-actions button { width: 100%; min-height: 47px; margin: 0; line-height: 1.3; white-space: normal; }
.rhythm-notice > small { grid-column: 1 / -1; position: relative; z-index: 1; padding-top: 15px; border-top: 1px solid rgba(144,111,51,.18); color: var(--muted); line-height: 1.55; }

.recent-plan-shelf { margin: 32px 0 8px; min-width: 0; }
.recent-plan-shelf .section-heading { align-items: end; }
.recent-plan-shelf .section-heading h2 { margin: 4px 0 0; font-size: 1.4rem; letter-spacing: -.035em; }
.recent-plan-shelf .section-heading .eyebrow { font-size:var(--text-2xs); }
.recent-plan-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 28%);
  gap: 13px;
  overflow-x: auto;
  padding: 3px 2px 13px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #b89a61 transparent;
}
.recent-plan-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) 20px;
  align-content: start;
  gap: 8px 10px;
  min-height: 172px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: 0 8px 24px rgba(26,22,17,.035);
}
.recent-plan-card > span { grid-column: 1; color: var(--accent); font-size:var(--text-2xs); font-weight: 850; letter-spacing: .11em; }
.recent-plan-card > strong { grid-column: 1; margin-top: 4px; font-size: 1.05rem; line-height: 1.22; letter-spacing: -.025em; overflow-wrap: anywhere; }
.recent-plan-card > small { grid-column: 1 / -1; color: var(--muted); font-size:var(--text-2xs); line-height: 1.55; overflow-wrap: anywhere; }
.recent-plan-card > em { grid-column: 1 / -1; align-self: end; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size:var(--text-2xs); font-style: normal; }
.recent-plan-card > svg { grid-column: 2; grid-row: 2; width: 17px; color: var(--accent); }
.recent-plan-card.selected {
  border-color: #aa8139;
  background: linear-gradient(145deg,#fffdf8,#f8f0df);
  box-shadow: inset 0 0 0 1px rgba(170,129,57,.13), 0 10px 28px rgba(78,56,19,.07);
}
.recent-plan-card.create { border-style: dashed; background: #f7f5f0; }
.recent-plan-card.create strong { display: flex; align-items: center; gap: 7px; }
.recent-plan-card.create strong svg { width: 18px; flex: none; }
.own-plan-actions { grid-template-columns: minmax(0,1fr) auto auto; }
.plan-builtins-title > .plan-builtins-actions { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.plan-builtins-actions button:first-child { border: 1px solid var(--line-strong); background: #fff; color: var(--text); }

html[data-theme="violet"] .rhythm-notice {
  border-color: rgba(129,73,155,.42);
  background:
    linear-gradient(104deg,rgba(255,253,248,.94),rgba(246,235,249,.86)),
    url('./bym-light-marble.svg') center/cover no-repeat;
}
html[data-theme="violet"] .recent-plan-card.selected {
  border-color: #9152ad;
  background: linear-gradient(145deg,#fffdf8,#efe3f3);
  box-shadow: inset 0 0 0 1px rgba(123,61,156,.12), 0 10px 28px rgba(79,32,99,.09);
}

@media (max-width: 760px) {
  .rhythm-notice { grid-template-columns: 1fr; padding: 22px 19px; gap: 18px; }
  .rhythm-notice > small { font-size:var(--text-2xs); }
  .recent-plan-rail { grid-auto-columns: minmax(235px, 82%); margin-inline: -18px; padding-inline: 18px; }
  .recent-plan-shelf .section-heading { align-items: flex-start; }
  .recent-plan-shelf .section-heading .text-button { font-size:var(--text-2xs); }
  .recent-plan-card { min-height: 165px; }
  .own-plan-actions { grid-template-columns: 1fr 1fr; }
  .own-plan-actions .primary-button { grid-column: 1 / -1; }
  .plan-builtins-title > .plan-builtins-actions { width: 100%; justify-content: stretch; }
  .plan-builtins-actions button { flex: 1; justify-content: center; }
}

/* BYM 4.7 — Studio cockpit: one active exercise, one obvious next action. */
.mobile-exercise-nav { display: none; }
.copy-current-set {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid #d5c39f;
  border-radius: 10px;
  background: #fffaf0;
  color: #5e461d;
  font-size:var(--text-2xs);
  font-weight: 720;
}
.copy-current-set svg,.timer-copy-next svg { width: 16px; height: 16px; }
.timer-set-position {
  margin: 0 0 10px;
  color: #dbc184;
  font-size: .82rem;
  font-weight: 760;
  letter-spacing: .16em;
}
.timer-set-position strong { color: #fff; font-size: 1.55rem; letter-spacing: -.04em; }
.timer-copy-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  margin: 15px auto 0;
  padding: 10px 16px;
  border: 1px solid #d7b76f66;
  border-radius: 11px;
  background: #d7b76f12;
  color: #f1d79f;
  font-size: .78rem;
  font-weight: 700;
}
.timer-mini {
  position: fixed;
  z-index: 180;
  right: 18px;
  bottom: 18px;
  left: 254px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto 48px;
  align-items: stretch;
  min-height: 68px;
  overflow: hidden;
  border: 1px solid #b9914d;
  border-radius: 15px;
  background: #17191cf5;
  box-shadow: 0 15px 40px #0708094a;
  color: #fff;
  backdrop-filter: blur(18px);
}
.timer-mini > i { position: absolute; inset: 0 auto auto 0; z-index: 2; height: 3px; border-radius: 99px; background: linear-gradient(90deg,#9c722e,#f0d18e); transition: width .45s linear; }
.timer-mini button { border: 0; background: transparent; color: inherit; }
.timer-mini-main { display: grid; align-content: center; gap: 4px; min-width: 0; padding: 12px 16px; text-align: left; }
.timer-mini-main span { color: #c7ab73; font-size:var(--text-2xs); font-weight: 780; letter-spacing: .11em; }
.timer-mini-main strong { overflow: hidden; font-size: .88rem; white-space: nowrap; text-overflow: ellipsis; }
.timer-mini-time { display: grid; place-content: center; min-width: 84px; padding: 8px 12px; border-left: 1px solid #ffffff13 !important; font-variant-numeric: tabular-nums; }
.timer-mini-time strong { font-size: 1.18rem; letter-spacing: -.04em; }
.timer-mini-time small { color: #aeb3ba; font-size:var(--text-2xs); }
.timer-mini-skip { display: grid; place-items: center; border-left: 1px solid #ffffff13 !important; }
.timer-mini-skip svg { width: 19px; height: 19px; color: #e2c17f; }
.training-active.timer-minimized { padding-bottom: 115px; }
.training-active.timer-minimized .training-cockpit { display: none; }

html[data-theme="violet"] .copy-current-set { border-color: #bea4cb; background: #faf3fc; color: #58266f; }
html[data-theme="violet"] .timer-mini { border-color: #8e4fb0; background: #1b1520f5; }
html[data-theme="violet"] .timer-mini > i { background: linear-gradient(90deg,#57257b,#c68bea); }
html[data-theme="violet"] .timer-mini-skip svg { color: #d8abea; }

@media (max-width: 1079px) {
  .mobile-exercise-nav {
    position: sticky;
    z-index: 45;
    top: 0;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 8px 12px;
    margin: -8px 0 15px;
    padding: 13px 14px 11px;
    border: 1px solid #cbaa6d;
    border-radius: 16px;
    background: #fffffff2;
    box-shadow: 0 10px 28px #18140e14;
    backdrop-filter: blur(18px);
  }
  .mobile-exercise-step { display: grid; gap: 3px; min-width: 0; }
  .mobile-exercise-step > span { color: var(--accent); font-size:var(--text-2xs); font-weight: 850; letter-spacing: .13em; }
  .mobile-exercise-step > strong { overflow: hidden; font-size: 1.08rem; line-height: 1.2; letter-spacing: -.025em; white-space: nowrap; text-overflow: ellipsis; }
  .mobile-exercise-step > small { overflow: hidden; color: var(--muted); font-size:var(--text-2xs); white-space: nowrap; text-overflow: ellipsis; }
  .mobile-exercise-arrows { display: grid; grid-template-columns: repeat(2,39px); gap: 5px; align-self: center; }
  .mobile-exercise-arrows button { width: 39px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #f6f4ef; color: var(--text); font-size: 1.55rem; line-height: 1; }
  .mobile-exercise-arrows button:disabled { opacity: .28; }
  .mobile-exercise-picker { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .mobile-exercise-picker > summary { padding: 9px 2px 0; color: var(--muted); font-size:var(--text-2xs); font-weight: 720; cursor: pointer; }
  .mobile-exercise-picker > div { display: grid; gap: 6px; max-height: min(48vh,430px); margin-top: 10px; overflow-y: auto; }
  .mobile-exercise-picker button { display: grid; grid-template-columns: 29px minmax(0,1fr) 34px; align-items: center; gap: 8px; min-height: 49px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); text-align: left; }
  .mobile-exercise-picker button > span { color: var(--faint); font-size:var(--text-2xs); font-weight: 800; }
  .mobile-exercise-picker button > span svg { width: 16px; height: 16px; }
  .mobile-exercise-picker button > strong { min-width: 0; font-size: .78rem; line-height: 1.3; overflow-wrap: anywhere; }
  .mobile-exercise-picker button > small { color: var(--muted); font-size:var(--text-2xs); text-align: right; }
  .mobile-exercise-picker button.selected { border-color: #b68b40; background: #fbf4e7; box-shadow: inset 3px 0 #b68b40; }
  .mobile-exercise-picker button.done { color: var(--accent); }
  .mobile-exercise-picker .mobile-add-exercise { grid-template-columns: 29px minmax(0,1fr); border-style: dashed; background: #f7f5f0; }
  .mobile-add-exercise svg { width: 17px; height: 17px; color: var(--accent); }
  .training-workspace > .exercise-rail { display: none; }
  .training-active .exercise-card:not(.open) { display: none; }
  html[data-theme="violet"] .mobile-exercise-nav { border-color: #a777bc; background: #fffdfaf2; }
  html[data-theme="violet"] .mobile-exercise-picker button.selected { border-color: #8750a1; background: #f4e9f7; box-shadow: inset 3px 0 #8750a1; }
}

@media (max-width: 760px) {
  .training-active { padding-top: 17px; }
  .mobile-exercise-nav { margin-inline: -4px; }
  .exercise-toggle { padding: 17px 15px; }
  .exercise-title { font-size: 1.18rem; }
  .exercise-insight { grid-template-columns: 1fr; }
  .exercise-insight .insight-box:nth-child(2) { display: none; }
  .training-quick-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  .training-quick-tools .subtle-button { min-width: 0; white-space: normal; line-height: 1.3; }
  .timer-set-position { margin-bottom: 7px; }
  .timer-content h2 { font-size: 1.45rem; }
  .timer-dial { margin-top: 16px; }
  .timer-mini { right: 10px; bottom: calc(82px + env(safe-area-inset-bottom,0px)); left: 10px; min-height: 65px; }
  .timer-mini-main { padding-inline: 12px; }
  .timer-mini-time { min-width: 76px; padding-inline: 8px; }
  .training-active.timer-minimized { padding-bottom: 165px; }
}

@media (max-width: 380px) {
  .mobile-exercise-arrows { grid-template-columns: repeat(2,35px); }
  .mobile-exercise-arrows button { width: 35px; }
  .timer-mini { grid-template-columns: minmax(0,1fr) 70px 43px; }
  .timer-mini-main span { letter-spacing: .07em; }
}

/* M-30: "Heute" gets a compact head so the hero card's CTA lands in the
   first viewport (Entscheidung D3) instead of the previous full-size
   .view-title greeting pushing everything below the fold. */
.today-hero-header { margin-bottom: 14px; }
.today-hero-header .eyebrow { display: block; margin-bottom: 4px; }
.today-hero-header h1 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* M-30/D3: Regal, letztes Training und Manifest stehen nicht mehr immer
   offen unter der Heldkarte, sondern hinter "Mehr anzeigen". */
.today-more {
  margin: 20px 0 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.today-more > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  font-weight: 750;
  font-size: 0.9rem;
}
.today-more > summary::-webkit-details-marker { display: none; }
.today-more > summary small { flex: 1; color: var(--muted); font-weight: 500; font-size:var(--text-2xs); }
.today-more > summary svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.today-more[open] > summary svg { transform: rotate(180deg); }
.today-more-body { padding: 0 18px 18px; }

@media (max-width: 640px) {
  .today-hero-header h1 { font-size: 1.3rem; }
  /* M-30 acceptance target: CTA top < 70% viewport height at 360x640/384x832 */
  .bym5-today .readiness-strip { margin-bottom: 10px; padding: 10px 13px; gap: 8px; }
  .bym5-today .readiness-strip small { line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .bym5-today .readiness-strip > button { min-height: 32px; margin-top: 1px; padding: 5px 11px; }
  .bym5-today .launch-numbers { margin: 8px 0; }
  .bym5-today .launch-recommendation-focus { font-size: 0.78rem; }
  .bym5-today .launch-recommendation { padding: 14px 16px; margin-top: 0; }
  .bym5-today .launch-recommendation-top { min-height: 0; }
  .bym5-today .launch-recommendation h2 { margin-top: 8px; font-size: 1.5rem; line-height: 1.1; }
  .bym5-today .launch-recommendation-focus { margin: 2px 0 0; }
  .bym5-today .launch-numbers { margin: 10px 0; }
  .bym5-today .launch-recommendation .training-hero-primary { height: 46px; }
}

/* M-32: touch targets for set logging must reach 48px (checkmark/remove) and
   the undo action at least 44px - both were a few pixels short on desktop
   and mobile alike. scroll-margin keeps the confirm button reachable above
   the sticky bottom dock when the browser scrolls a set into view. */
.set-check {
  width: 48px;
  height: 48px;
}
.set-remove {
  width: 48px;
  height: 48px;
}
.set-complete {
  scroll-margin-block: 190px;
}
.undo-bar button {
  min-height: 44px;
  min-width: 44px;
  padding: 0 10px;
}

@media (max-width: 640px) {
  .set-check { width: 48px; height: 48px; }
  .set-remove { width: 48px; height: 48px; }
  .set-head, .set-row { grid-template-columns: 48px minmax(55px,1fr) minmax(51px,1fr) minmax(47px,.8fr) 48px; }
}
