:root {
  color-scheme: dark;
  --bg: #0b0b0b;
  --panel: #161616;
  --panel-2: #1d1d1d;
  --line: #2b2b2b;
  --text: #f6f6f2;
  --muted: #9a9a94;
  --accent: #d8ff3e;
  --accent-ink: #101300;
  --danger: #ff6b6b;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { min-height: 100dvh; -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; }
button { cursor: pointer; }
input, select { color: var(--text); background: #101010; border: 1px solid var(--line); border-radius: 10px; }

.app-shell { min-height: 100dvh; padding-bottom: calc(88px + var(--safe-bottom)); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 24px 20px 12px; max-width: 760px; margin: auto; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 28px; letter-spacing: -0.04em; }
h2 { font-size: 28px; letter-spacing: -0.04em; margin-bottom: 4px; }
h3 { margin-bottom: 0; letter-spacing: -0.02em; }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; }
.content { max-width: 760px; margin: auto; padding: 10px 16px 30px; }
.hero-card, .program-card, .settings-card, .history-card, .exercise-card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; }
.hero-card { padding: 22px; background: linear-gradient(155deg, #1d1d1d, #121212); }
.hero-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.hero-heading p, .muted { color: var(--muted); margin-bottom: 0; }
.workout-badge { display: inline-grid; place-items: center; min-width: 42px; height: 42px; border: 1px solid #4b4b4b; border-radius: 14px; color: var(--accent); font-weight: 900; }
.exercise-preview { margin: 24px 0; border-top: 1px solid var(--line); }
.preview-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.preview-row div { display: flex; flex-direction: column; gap: 3px; }
.preview-row span { color: var(--muted); font-size: 13px; }
.primary-button, .finish-button { width: 100%; border: 0; border-radius: 15px; padding: 17px 20px; background: var(--accent); color: var(--accent-ink); font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; }
.primary-button:active, .finish-button:active { transform: translateY(1px); }
.small-button, .secondary-button, .text-button { border: 1px solid var(--line); background: var(--panel-2); color: var(--text); border-radius: 11px; padding: 10px 13px; font-weight: 700; }
.section-block { margin-top: 28px; }
.page-section { margin-top: 10px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-title h2 { margin-top: 5px; }
.empty-state { color: var(--muted); padding: 28px; text-align: center; border: 1px dashed var(--line); border-radius: 18px; }

.bottom-nav { position: fixed; z-index: 10; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 760px; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(12,12,12,.94); backdrop-filter: blur(18px); border-top: 1px solid var(--line); padding: 8px 8px calc(8px + var(--safe-bottom)); }
.nav-button { border: 0; background: transparent; color: var(--muted); display: flex; align-items: center; flex-direction: column; gap: 4px; padding: 8px 4px; font-size: 11px; font-weight: 700; }
.nav-button span { font-size: 18px; }
.nav-button.active { color: var(--accent); }

.active-shell { min-height: 100dvh; padding-bottom: calc(94px + var(--safe-bottom)); }
.active-header { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 46px 1fr 46px; align-items: center; gap: 12px; padding: 16px; background: rgba(11,11,11,.96); backdrop-filter: blur(14px); }
.active-header h1 { font-size: 22px; }
.icon-button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 26px; }
.progress-label { color: var(--accent); font-size: 13px; font-weight: 900; text-align: right; }
.progress-track { height: 3px; background: #242424; position: sticky; top: 74px; z-index: 5; }
.progress-track span { display: block; height: 100%; background: var(--accent); transition: width .2s ease; }
.active-content { max-width: 760px; margin: auto; padding: 18px 14px 150px; }
.exercise-card { padding: 18px; margin-bottom: 14px; }
.exercise-card.exercise-complete { border-color: rgba(216,255,62,.5); }
.exercise-card-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.exercise-card-header h2 { margin-top: 4px; font-size: 23px; }
.weight-control { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #101010; }
.weight-control input { width: 72px; border: 0; border-radius: 0; padding: 12px 8px 12px 12px; text-align: right; font-size: 18px; font-weight: 900; }
.weight-control span { padding-right: 12px; color: var(--muted); font-weight: 700; }
.sets-table { margin-top: 16px; }
.sets-heading, .set-row { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; text-align: center; }
.sets-heading { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 4px 0 8px; }
.set-row { padding: 9px 0; border-top: 1px solid var(--line); }
.set-row input { width: 68px; justify-self: center; padding: 10px; text-align: center; font-weight: 800; }
.set-number { color: var(--muted); font-weight: 800; }
.set-check { justify-self: center; width: 42px; height: 42px; border-radius: 13px; border: 2px solid #454545; background: transparent; color: #101300; font-size: 22px; font-weight: 900; }
.set-row.done .set-check { background: var(--accent); border-color: var(--accent); }
.set-row.done { opacity: .78; }
.active-footer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 8; padding: 12px 16px calc(12px + var(--safe-bottom)); background: rgba(11,11,11,.96); border-top: 1px solid var(--line); }
.finish-button { max-width: 728px; display: block; margin: auto; }
.finish-button:disabled { opacity: .35; cursor: not-allowed; }
.timer-card { position: fixed; z-index: 20; left: 50%; bottom: calc(92px + var(--safe-bottom)); transform: translateX(-50%); width: calc(100% - 28px); max-width: 500px; padding: 18px; border-radius: 22px; background: #f3f3ed; color: #111; box-shadow: 0 22px 80px rgba(0,0,0,.5); text-align: center; }
.timer-card .eyebrow { color: #67675f; }
.timer-card strong { display: block; font-size: 54px; letter-spacing: -0.05em; margin: 2px 0 12px; }
.timer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.timer-actions button { border: 1px solid #c9c9c2; border-radius: 12px; background: white; color: #111; padding: 12px; font-weight: 800; }
.timer-close { position: absolute; right: 12px; top: 10px; border: 0; background: transparent; font-size: 24px; color: #555; }

.history-list { display: grid; gap: 12px; }
.history-card { padding: 18px; }
.history-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.history-card-header span { color: var(--muted); font-size: 12px; }
.history-card-header h3 { margin-top: 3px; }
.history-card-header b { color: var(--accent); }
.history-exercises { margin-top: 14px; display: grid; gap: 9px; }
.history-exercises div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.history-exercises strong { color: var(--text); text-align: right; }
.danger-link { margin-top: 14px; padding: 0; border: 0; background: transparent; color: var(--danger); font-size: 12px; }

.program-list { display: grid; gap: 18px; margin-top: 18px; }
.program-card { padding: 18px; }
.program-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.program-name-input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 4px 0; font-size: 22px; font-weight: 900; }
.program-exercises { display: grid; gap: 12px; margin: 18px 0; }
.exercise-editor { background: #101010; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.editor-name-row { display: flex; gap: 8px; align-items: center; }
.editor-name-row input { flex: 1; min-width: 0; padding: 11px; font-weight: 800; }
.remove-button { flex: 0 0 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--danger); font-size: 22px; }
.editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.editor-grid label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; }
.editor-grid input { width: 100%; padding: 10px; }

.settings-card { padding: 18px; margin-bottom: 14px; }
.setting-row { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-row select, .setting-row input[type="number"] { max-width: 150px; padding: 10px; text-align: right; }
.setting-number { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.toggle { appearance: none; width: 46px; height: 27px; border-radius: 99px; background: #353535; border: 0; position: relative; transition: .2s; }
.toggle::after { content: ""; position: absolute; width: 21px; height: 21px; top: 3px; left: 3px; background: white; border-radius: 50%; transition: .2s; }
.toggle:checked { background: var(--accent); }
.toggle:checked::after { transform: translateX(19px); background: #111; }
.backup-card p, .danger-zone p { color: var(--muted); line-height: 1.5; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; }
.file-button input { display: none; }
.danger-zone { border-color: rgba(255,107,107,.25); }
.danger-button { border: 1px solid rgba(255,107,107,.4); border-radius: 11px; background: rgba(255,107,107,.08); color: var(--danger); padding: 11px 14px; font-weight: 800; }
.fatal-error { max-width: 600px; margin: 80px auto; padding: 24px; }

@media (min-width: 620px) {
  .content { padding-left: 24px; padding-right: 24px; }
  .editor-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .active-content { padding-left: 24px; padding-right: 24px; }
}

/* Warm-up flow */
.warmup-block {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(216,255,62,.22);
  border-radius: 16px;
  background: rgba(216,255,62,.045);
}
.warmup-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.warmup-title-row > div { display: flex; align-items: center; gap: 8px; }
.warmup-kicker { color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.warmup-title-row strong { color: var(--muted); font-size: 12px; }
.warmup-skip { border: 0; background: transparent; color: var(--muted); padding: 6px; font-size: 12px; font-weight: 800; }
.warmup-heading, .warmup-row { display: grid; grid-template-columns: .7fr 1.45fr 1fr .8fr; align-items: center; text-align: center; gap: 6px; }
.warmup-heading { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; padding: 5px 0 7px; }
.warmup-row { padding: 8px 0; border-top: 1px solid var(--line); }
.warmup-row > input { width: 58px; justify-self: center; padding: 9px 6px; text-align: center; font-weight: 800; }
.inline-weight { justify-self: center; display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #101010; }
.inline-weight input { width: 61px; border: 0; border-radius: 0; padding: 9px 4px 9px 8px; text-align: right; font-weight: 800; }
.inline-weight small { padding-right: 7px; color: var(--muted); font-size: 10px; font-weight: 700; }
.warmup-check { width: 38px; height: 38px; border-radius: 11px; }
.warmup-row.done { opacity: .75; }
.warmup-row.done .warmup-check { background: var(--accent); border-color: var(--accent); }
.warmup-row.skipped .warmup-check { background: #3b3b3b; border-color: #555; color: var(--muted); }
.sets-label { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .12em; margin: 17px 0 5px; }
.editor-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.editor-toggle > span { display: grid; gap: 3px; }
.editor-toggle strong { font-size: 13px; }
.editor-toggle small { color: var(--muted); line-height: 1.35; }

@media (max-width: 380px) {
  .warmup-block { padding-left: 10px; padding-right: 10px; }
  .warmup-heading, .warmup-row { grid-template-columns: .6fr 1.5fr .85fr .7fr; gap: 3px; }
  .inline-weight input { width: 55px; }
}

/* Exercise progress charts */
.progress-card {
  background: linear-gradient(155deg, #1b1b1b, #121212);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  overflow: hidden;
}
.exercise-chip-row {
  display: flex;
  gap: 8px;
  margin: -2px -2px 18px;
  padding: 2px 2px 5px;
  overflow-x: auto;
  scrollbar-width: none;
}
.exercise-chip-row::-webkit-scrollbar { display: none; }
.exercise-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #101010;
  color: var(--muted);
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.exercise-chip.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}
.progress-card-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.progress-card-heading h3 { margin-top: 4px; font-size: 25px; }
.progress-current { display: flex; align-items: baseline; gap: 6px; color: var(--accent); }
.progress-current strong { font-size: 34px; letter-spacing: -.05em; }
.progress-current span { color: var(--muted); font-size: 13px; font-weight: 800; }
.progress-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(88px, 1fr));
  gap: 8px;
  margin: 18px 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.progress-stat-grid::-webkit-scrollbar { display: none; }
.progress-stat {
  min-width: 88px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
}
.progress-stat span { display: block; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.progress-stat strong { display: block; margin-top: 5px; font-size: 14px; white-space: nowrap; }
.progress-stat.positive strong { color: var(--accent); }
.progress-stat.negative strong { color: var(--danger); }
.progress-chart-wrap {
  margin: 4px -8px 0;
  overflow: hidden;
  color: var(--accent);
}
.progress-chart { display: block; width: 100%; height: auto; min-height: 210px; overflow: visible; }
.chart-grid-line { stroke: #303030; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-axis-label, .chart-date-label { fill: var(--muted); font-size: 12px; font-weight: 700; }
.chart-area { fill: url(#progress-area); }
.chart-line { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart-point { fill: var(--panel); stroke: currentColor; stroke-width: 3; vector-effect: non-scaling-stroke; }
.chart-point.latest { fill: currentColor; stroke: var(--panel); stroke-width: 4; }
.chart-note { margin: 2px 2px 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.history-section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 30px 2px 14px;
}
.history-section-title h2 { margin: 5px 0 0; }
.history-section-title > span { color: var(--muted); font-size: 12px; font-weight: 700; padding-bottom: 5px; }

@media (max-width: 520px) {
  .progress-card { padding: 15px; }
  .progress-current strong { font-size: 30px; }
  .progress-stat-grid { grid-template-columns: repeat(5, 104px); margin-right: -15px; }
  .progress-chart-wrap { margin-left: -12px; margin-right: -12px; }
  .chart-axis-label, .chart-date-label { font-size: 13px; }
}

/* LiftBrick Free v4 · Pro discovery framework */
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.plan-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(216,255,62,.32);
  border-radius: 999px;
  padding: 7px 9px;
  background: rgba(216,255,62,.055);
  color: var(--text);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}
.plan-pill span { color: var(--muted); }
.plan-pill b { color: var(--accent); font-size: 10px; }
.version-label {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(216,255,62,.28);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--accent);
  background: rgba(216,255,62,.045);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  white-space: nowrap;
}
.pro-kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
}
.pro-prompt-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(216,255,62,.26);
  border-radius: 22px;
  background:
    radial-gradient(circle at 95% 0%, rgba(216,255,62,.12), transparent 34%),
    linear-gradient(145deg, #1b1c16, #121212 62%);
  overflow: hidden;
}
.pro-prompt-icon, .pro-teaser-icon, .pro-feature-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(216,255,62,.28);
  border-radius: 15px;
  background: rgba(216,255,62,.08);
  color: var(--accent);
  font-size: 21px;
  font-weight: 900;
}
.pro-prompt-copy { padding-right: 24px; }
.pro-prompt-copy h3 { margin: 5px 0 7px; font-size: 20px; }
.pro-prompt-copy p, .pro-teaser-copy p, .settings-pro-card > p,
.pro-feature-card p, .pro-highlight-card p, .free-promise-card p,
.pro-hero-card > p { margin-bottom: 0; color: var(--muted); line-height: 1.52; }
.pro-progress-highlight {
  display: inline-flex;
  margin-top: 11px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(216,255,62,.08);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}
.pro-prompt-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.pro-prompt-actions .text-button { border: 0; background: transparent; color: var(--muted); }
.pro-prompt-dismiss {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 19px;
}
.pro-cta { padding-top: 14px; padding-bottom: 14px; }

.pro-teaser-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 17px 0 19px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, #181916, #111);
}
.pro-teaser-copy h3 { margin: 4px 0 5px; font-size: 17px; }
.pro-teaser-copy p { font-size: 12px; }
.pro-teaser-card .secondary-button { white-space: nowrap; }

.settings-pro-card {
  border-color: rgba(216,255,62,.28);
  background:
    radial-gradient(circle at 90% -15%, rgba(216,255,62,.15), transparent 40%),
    linear-gradient(145deg, #1c1d17, #121212 66%);
}
.settings-pro-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.settings-pro-head h3 { max-width: 500px; margin: 5px 0 0; font-size: 20px; line-height: 1.18; }
.pro-mini-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .1em;
}
.settings-pro-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}
.settings-pro-features button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px;
  background: rgba(0,0,0,.16);
  color: var(--text);
  text-align: left;
  font-size: 11px;
  font-weight: 750;
}
.settings-pro-features button span { color: var(--accent); font-size: 16px; }

.pro-page { padding-bottom: 20px; }
.pro-back {
  margin: 0 0 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 5px 2px;
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
}
.pro-hero-card {
  position: relative;
  padding: 26px 20px 20px;
  border: 1px solid rgba(216,255,62,.3);
  border-radius: 26px;
  background: linear-gradient(150deg, #20221a 0%, #151613 48%, #101010 100%);
  overflow: hidden;
}
.pro-hero-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  right: -120px;
  top: -130px;
  border-radius: 50%;
  background: rgba(216,255,62,.18);
  filter: blur(42px);
  pointer-events: none;
}
.pro-badge {
  position: relative;
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .12em;
}
.pro-hero-card h2 { position: relative; max-width: 580px; margin: 14px 0 9px; font-size: clamp(31px, 7vw, 47px); line-height: 1.01; }
.pro-hero-card > p { position: relative; max-width: 620px; }
.pro-trust-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 17px 0 0;
}
.pro-trust-row span {
  border: 1px solid rgba(216,255,62,.16);
  border-radius: 999px;
  padding: 7px 9px;
  color: #d9d9d3;
  background: rgba(0,0,0,.16);
  font-size: 10px;
  font-weight: 800;
}
.pro-price-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 21px 0 12px; }
.pro-price-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(0,0,0,.2);
}
.pro-price-card.recommended { border-color: rgba(216,255,62,.48); box-shadow: inset 0 0 0 1px rgba(216,255,62,.08); }
.pro-price-card span { color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.pro-price-card strong { color: var(--accent); font-size: 26px; letter-spacing: -.04em; }
.pro-price-card small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.pro-main-cta[aria-disabled="true"] { opacity: .75; }
.pro-cta-note { margin: 10px 0 0; color: var(--muted); text-align: center; font-size: 10px; }
.pro-highlight-card {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 14px;
  padding: 17px;
  border: 1px solid rgba(216,255,62,.24);
  border-radius: 18px;
  background: rgba(216,255,62,.04);
}
.pro-highlight-card h3 { margin: 4px 0 5px; }
.pro-section-heading { margin: 30px 2px 15px; }
.pro-section-heading h2 { max-width: 580px; margin-top: 6px; }
.pro-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pro-feature-card {
  min-height: 174px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.pro-feature-card.selected { border-color: rgba(216,255,62,.55); background: linear-gradient(145deg, rgba(216,255,62,.075), var(--panel)); }
.pro-feature-card .pro-feature-icon { width: 40px; height: 40px; border-radius: 13px; font-size: 18px; }
.pro-feature-card h3 { margin: 13px 0 6px; font-size: 16px; }
.pro-feature-card p { font-size: 12px; }
.free-promise-card {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, #171717, #101010);
}
.free-promise-card h3 { margin: 5px 0 7px; font-size: 21px; }

@media (max-width: 620px) {
  .topbar { padding-left: 16px; padding-right: 16px; }
  .topbar-actions { gap: 6px; }
  .plan-pill { padding: 7px 8px; }
  .pro-teaser-card { grid-template-columns: auto 1fr; }
  .pro-teaser-card .secondary-button { grid-column: 1 / -1; width: 100%; }
  .pro-feature-grid { grid-template-columns: 1fr; }
  .pro-feature-card { min-height: 0; }
}

@media (max-width: 430px) {
  .topbar h1 { font-size: 25px; }
  .topbar .small-button { display: none; }
  .plan-pill span { display: none; }
  .pro-prompt-card { grid-template-columns: 42px 1fr; padding: 16px; }
  .pro-prompt-icon { width: 42px; height: 42px; }
  .pro-prompt-actions { grid-template-columns: 1fr; }
  .pro-prompt-actions .text-button { width: 100%; }
  .settings-pro-features { grid-template-columns: 1fr; }
  .pro-price-grid { grid-template-columns: 1fr; }
  .pro-hero-card { padding: 22px 16px 17px; }
  .pro-highlight-card { align-items: flex-start; }
}

/* LiftBrick Free v5 · assisted weights and editable history */
.chart-zero-line {
  stroke: rgba(246,246,242,.58);
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
  vector-effect: non-scaling-stroke;
}
.history-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.history-card-actions .danger-link { margin-top: 0; margin-left: auto; }
.history-editor-backdrop {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 18px 14px 0;
  background: rgba(0,0,0,.74);
  backdrop-filter: blur(8px);
}
.history-editor-dialog {
  width: 100%;
  max-width: 720px;
  max-height: calc(100dvh - 30px);
  margin: 0 auto;
  padding: 20px 18px calc(20px + var(--safe-bottom));
  overflow-y: auto;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: #111;
  box-shadow: 0 -24px 80px rgba(0,0,0,.55);
}
.history-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.history-editor-head h2 { margin: 5px 0 3px; }
.history-editor-head p { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.history-editor-note {
  margin: 17px 0;
  padding: 13px 14px;
  border: 1px solid rgba(216,255,62,.2);
  border-radius: 14px;
  background: rgba(216,255,62,.045);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.history-editor-note strong { color: var(--accent); }
.history-edit-exercises { display: grid; gap: 12px; }
.history-edit-exercise {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel);
}
.history-edit-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}
.history-edit-title h3 { min-width: 0; overflow-wrap: anywhere; }
.history-edit-title label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.history-edit-weight {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0d0d0d;
}
.history-edit-weight input { width: 88px; padding: 10px 5px 10px 10px; border: 0; border-radius: 0; text-align: right; font-weight: 900; }
.history-edit-weight b { padding-right: 10px; color: var(--muted); font-size: 11px; }
.history-edit-set-heading, .history-edit-set-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  text-align: center;
}
.history-edit-set-heading { padding: 5px 0 7px; color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.history-edit-set-row { min-height: 52px; border-top: 1px solid var(--line); }
.history-edit-set-row > strong { color: var(--muted); }
.history-edit-set-row > input[type="number"] { width: 68px; justify-self: center; padding: 9px; text-align: center; font-weight: 800; }
.history-complete-toggle {
  appearance: none;
  justify-self: center;
  width: 38px;
  height: 38px;
  border: 2px solid #454545;
  border-radius: 12px;
  background: transparent;
}
.history-complete-toggle:checked { border-color: var(--accent); background: var(--accent); }
.history-complete-toggle:checked::after { content: "✓"; display: grid; place-items: center; height: 100%; color: var(--accent-ink); font-size: 20px; font-weight: 950; }
.history-update-next {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #151515;
}
.history-update-next > span { display: grid; gap: 3px; }
.history-update-next strong { font-size: 13px; }
.history-update-next small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.history-editor-actions {
  position: sticky;
  bottom: calc(-20px - var(--safe-bottom));
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 9px;
  margin: 18px -18px calc(-20px - var(--safe-bottom));
  padding: 13px 18px calc(13px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: rgba(17,17,17,.97);
  backdrop-filter: blur(12px);
}
.history-editor-actions .primary-button { padding: 13px 15px; }

@media (min-width: 720px) {
  .history-editor-backdrop { align-items: center; padding: 24px; }
  .history-editor-dialog { max-height: min(860px, calc(100dvh - 48px)); border-bottom: 1px solid var(--line); border-radius: 24px; }
}

@media (max-width: 430px) {
  .history-edit-title { align-items: flex-start; flex-direction: column; }
  .history-edit-title label { width: 100%; }
  .history-edit-weight input { flex: 1; width: auto; }
}

/* v5.1 signed-weight controls */
.signed-weight-control { display: flex; align-items: center; }
.sign-toggle {
  flex: 0 0 auto;
  min-width: 38px;
  min-height: 40px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: rgba(183, 255, 0, .08);
  color: var(--accent);
  font-size: 18px;
  font-weight: 950;
  cursor: pointer;
}
.sign-toggle:active { background: rgba(183, 255, 0, .18); }
.signed-weight-control input[type="text"] { min-width: 0; }
.editor-signed-weight {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #101010;
}
.editor-signed-weight input {
  flex: 1;
  width: 100%;
  border: 0;
  border-radius: 0;
}
.history-edit-weight .sign-toggle { min-height: 42px; }
.signed-weight-help {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.shared-progression-note {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: -0.15rem 0 0.75rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(190, 255, 0, 0.22);
  border-radius: 999px;
  background: rgba(190, 255, 0, 0.07);
  color: var(--accent, #c6ff00);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* LiftBrick Free v7 · Strength Rank */
.strength-rank-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(216,255,62,.24);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(216,255,62,.10), transparent 32%),
    linear-gradient(150deg, #1a1b17, #121212 62%);
  overflow: hidden;
}
.strength-rank-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.strength-rank-heading h2 { margin: 5px 0 6px; }
.strength-rank-heading p { max-width: 520px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.strength-rank-badge {
  flex: 0 0 auto;
  border: 1px solid rgba(216,255,62,.35);
  border-radius: 999px;
  padding: 7px 9px;
  color: var(--accent);
  background: rgba(216,255,62,.06);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .12em;
}
.strength-profile-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr 1fr;
  gap: 9px;
  margin: 18px 0 14px;
}
.strength-profile-grid label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.strength-profile-grid input,
.strength-profile-grid select { width: 100%; min-height: 44px; padding: 10px; font-weight: 800; text-transform: none; letter-spacing: 0; }
.strength-bodyweight-input { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #101010; }
.strength-bodyweight-input input { border: 0; border-radius: 0; text-align: right; }
.strength-bodyweight-input b { padding-right: 10px; color: var(--muted); text-transform: lowercase; }
.strength-attempt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 15px 0;
}
.strength-attempt-row > div,
.strength-rank-message,
.strength-population-grid > div {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 13px;
  background: rgba(0,0,0,.18);
}
.strength-attempt-row span,
.strength-population-grid span { display: block; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.strength-attempt-row strong { display: block; margin-top: 6px; font-size: 17px; }
.strength-attempt-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.strength-rank-button { margin-top: 2px; }
.strength-rank-button:disabled { opacity: .38; cursor: not-allowed; }
.strength-rank-error { margin: 10px 0 0; color: var(--danger); font-size: 12px; line-height: 1.45; }
.strength-rank-message { margin: 14px 0; }
.strength-rank-message p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.strength-result {
  margin-top: 2px;
  padding: 16px;
  border: 1px solid rgba(216,255,62,.28);
  border-radius: 18px;
  background: rgba(216,255,62,.04);
}
.strength-result-main { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; }
.strength-rank-ring {
  --rank: 0;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--rank) * 1%), #30302d 0);
  position: relative;
}
.strength-rank-ring::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #151611; }
.strength-rank-ring > div { position: relative; z-index: 1; display: grid; place-items: center; }
.strength-rank-ring strong { font-size: 35px; letter-spacing: -.06em; color: var(--accent); }
.strength-rank-ring span { margin-top: -4px; color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.strength-result-label { color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.strength-result-main h3 { margin: 5px 0 5px; font-size: 25px; }
.strength-result-main p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.strength-result-main p strong { color: var(--text); }
.strength-population-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 13px; }
.strength-population-grid strong { display: block; margin: 5px 0 2px; color: var(--accent); font-size: 20px; }
.strength-population-grid small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.strength-result-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.strength-result-actions small { color: var(--muted); }
.strength-result-actions .text-button { margin: 0; }
.strength-rank-disclaimer { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.strength-rank-disclaimer p { margin: 0 0 7px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.strength-rank-disclaimer strong { color: #d8d8d2; }
.strength-rank-disclaimer a { color: var(--accent); font-size: 10px; font-weight: 800; text-decoration: none; }

@media (max-width: 560px) {
  .strength-rank-card { padding: 15px; }
  .strength-profile-grid { grid-template-columns: 1fr 1fr; }
  .strength-profile-grid label:first-child { grid-column: 1 / -1; }
  .strength-attempt-row { grid-template-columns: 1fr; }
  .strength-result-main { grid-template-columns: 92px 1fr; gap: 12px; }
  .strength-rank-ring { width: 92px; height: 92px; }
  .strength-rank-ring strong { font-size: 29px; }
}

@media (max-width: 380px) {
  .strength-result-main { grid-template-columns: 1fr; }
  .strength-rank-ring { margin: auto; }
  .strength-result-main > div:last-child { text-align: center; }
}


/* LiftBrick v8 Pro */
.plan-pill.active { border-color: rgba(190,255,0,.58); box-shadow: 0 0 0 1px rgba(190,255,0,.12), 0 0 24px rgba(190,255,0,.08); }
.version-label.pro-active { color: var(--accent); border-color: rgba(190,255,0,.3); }
.program-title-actions { display:flex; align-items:center; gap:.55rem; }
.pro-program-tools { display:grid; gap:1rem; margin:1rem 0 1.35rem; }
.program-tool-card,.guided-library,.auth-card,.account-status-card,.account-upgrade-card,.pro-analytics-card { border:1px solid var(--line); background:linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.018)); border-radius:20px; padding:1.1rem; }
.program-tool-card h3,.guided-library h3,.auth-card h3,.account-upgrade-card h3,.pro-analytics-card h3 { margin:.25rem 0 .45rem; }
.saved-routines { display:grid; gap:.55rem; }
.saved-routines article { display:flex; justify-content:space-between; gap:1rem; align-items:center; border:1px solid var(--line); border-radius:14px; padding:.8rem; background:rgba(0,0,0,.25); }
.saved-routines small { display:block; color:var(--muted); margin-top:.2rem; }
.saved-routines button { border:0; color:var(--text); background:var(--surface-2); border-radius:9px; padding:.5rem .65rem; margin-left:.35rem; }
.guided-routine-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; margin-top:.8rem; }
.guided-routine-grid article { border:1px solid var(--line); border-radius:16px; padding:.9rem; background:rgba(0,0,0,.28); }
.guided-routine-grid p { color:var(--muted); min-height:3.2em; }
.advanced-warmup-editor { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.55rem; border-top:1px solid var(--line); padding-top:.8rem; margin-top:.75rem; }
.advanced-warmup-editor label { display:grid; gap:.35rem; color:var(--muted); font-size:.78rem; }
.advanced-warmup-editor input,.advanced-warmup-editor select,.auth-card input,.settings-card input[type="text"] { width:100%; border:1px solid var(--line); background:var(--surface-2); color:var(--text); border-radius:11px; padding:.72rem; }
.plate-card { margin:.75rem 0; border:1px solid rgba(190,255,0,.22); background:rgba(190,255,0,.055); border-radius:14px; padding:.8rem .9rem; display:grid; gap:.22rem; }
.plate-card strong { color:var(--accent); font-size:.95rem; }
.plate-card small { color:var(--muted); }
.account-page { display:grid; gap:1rem; }
.account-status-card { display:flex; gap:.9rem; align-items:center; }
.account-status-card.active { border-color:rgba(190,255,0,.34); }
.account-avatar { width:48px; height:48px; border-radius:15px; display:grid; place-items:center; color:#0a0a0a; background:var(--accent); font-weight:900; font-size:1.2rem; }
.account-status-card p { color:var(--muted); margin:.25rem 0 0; }
.cloud-card-head,.pro-analytics-head { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; }
.sync-dot { width:12px; height:12px; border-radius:50%; background:#595959; margin-top:.3rem; }
.sync-dot.on { background:var(--accent); box-shadow:0 0 16px rgba(190,255,0,.5); }
.account-price-actions { display:grid; grid-template-columns:1fr 1fr; gap:.65rem; margin-top:1rem; }
.account-logout { justify-self:center; margin-top:.4rem; }
.auth-card { display:grid; gap:.75rem; }
.auth-card label { display:grid; gap:.35rem; color:var(--muted); font-size:.82rem; }
.auth-note,.account-config-warning { color:var(--muted); text-align:center; line-height:1.55; }
.account-config-warning { border:1px dashed #755f24; background:rgba(255,190,0,.06); border-radius:14px; padding:.8rem; text-align:left; }
.account-summary-card { display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.analytics-stat-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:.55rem; margin:1rem 0; }
.analytics-stat-grid div { border:1px solid var(--line); border-radius:14px; padding:.75rem; background:rgba(0,0,0,.25); }
.analytics-stat-grid small { display:block; color:var(--muted); margin-bottom:.25rem; }
.weekly-chart { border:1px solid var(--line); border-radius:16px; padding:.9rem; }
.weekly-chart-title { display:flex; justify-content:space-between; color:var(--muted); font-size:.8rem; }
.weekly-bars { height:150px; display:flex; gap:.45rem; align-items:flex-end; margin-top:.8rem; }
.weekly-bars > div { flex:1; height:100%; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; gap:.35rem; min-width:0; }
.weekly-bars span { width:100%; max-width:32px; border-radius:8px 8px 3px 3px; background:linear-gradient(180deg,var(--accent),rgba(190,255,0,.35)); min-height:5px; }
.weekly-bars small { font-size:.58rem; color:var(--muted); white-space:nowrap; transform:rotate(-35deg); transform-origin:center; margin-bottom:.2rem; }
.pr-list { margin-top:1rem; display:grid; gap:.5rem; }
.pr-list > div { display:flex; justify-content:space-between; border-bottom:1px solid var(--line); padding:.55rem 0; }
@media (max-width:760px) {
  .guided-routine-grid,.advanced-warmup-editor,.analytics-stat-grid { grid-template-columns:1fr; }
  .account-price-actions { grid-template-columns:1fr; }
  .account-summary-card { align-items:flex-start; flex-direction:column; }
  .weekly-bars small { display:none; }
}

/* LiftBrick Pro v2 preview */
.bottom-nav { grid-template-columns: repeat(5, 1fr); }
.nav-button { font-size: 10px; }
.nav-button span { font-size: 17px; }

.today-coach-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(216,255,62,.22);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(216,255,62,.085), rgba(255,255,255,.025));
}
.today-coach-strip > div { display: grid; gap: 3px; }
.today-coach-strip strong { font-size: 14px; }
.today-coach-strip small { color: var(--muted); font-size: 11px; }
.session-duration {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 -4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #101010;
}
.session-duration > div:first-child { display: grid; gap: 3px; }
.session-duration strong { font-size: 12px; }
.session-duration > div:last-child { display: flex; gap: 6px; }
.duration-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #191919;
  color: var(--muted);
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 900;
}
.duration-chip.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.adaptive-preview small { display: block; margin-top: 5px; color: var(--accent); font-size: 10px; line-height: 1.35; max-width: 430px; }

.coach-page { padding-bottom: 20px; }
.coach-card,
.coach-program-card,
.monthly-report-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(150deg, #1a1a1a, #111 70%);
  padding: 18px;
  margin-top: 16px;
}
.coach-card-head,
.monthly-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.coach-card-head h3,
.monthly-report-head h3 { margin-top: 5px; font-size: 21px; }
.coach-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  border: 1px solid rgba(216,255,62,.25);
  border-radius: 999px;
  background: rgba(216,255,62,.08);
  color: var(--accent);
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}
.coach-status.neutral { color: var(--muted); border-color: var(--line); background: #111; }
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin: 18px 0;
}
.profile-grid label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 700; }
.profile-grid input,
.profile-grid select { width: 100%; padding: 12px; }
.profile-wide { grid-column: 1 / -1; }
.recommendation-card {
  border-color: rgba(216,255,62,.38);
  background:
    radial-gradient(circle at 100% 0%, rgba(216,255,62,.16), transparent 34%),
    linear-gradient(150deg, #1c1e16, #111 70%);
}
.recommendation-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.recommendation-label span { color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.recommendation-label b { color: var(--muted); font-size: 10px; }
.recommendation-card h3 { font-size: 27px; margin-bottom: 8px; }
.recommendation-card p,
.journey-card p,
.coach-program-card p,
.substitution-modal p { color: var(--muted); line-height: 1.5; }
.recommendation-why { display: grid; gap: 4px; margin: 16px 0; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.035); }
.recommendation-why strong { color: var(--accent); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.recommendation-why span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.coach-actions { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.coach-actions .primary-button { padding: 13px; }
.coach-actions button:disabled { opacity: .65; }

.journey-track { height: 8px; margin: 17px 0 12px; border-radius: 999px; background: #292929; overflow: hidden; }
.journey-track span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.next-program-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.next-program-row > div { display: grid; gap: 4px; }
.next-program-row small { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.next-program-row .primary-button { width: auto; padding: 11px 13px; font-size: 11px; }

.coach-library { margin-top: 30px; }
.coach-program-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.coach-program-card { margin-top: 0; display: flex; flex-direction: column; min-height: 270px; }
.coach-program-card.recommended { border-color: rgba(216,255,62,.45); }
.coach-program-card.current { background: linear-gradient(150deg, rgba(216,255,62,.1), #111 64%); }
.program-card-badges { display: flex; gap: 5px; min-height: 22px; }
.program-card-badges span { border-radius: 999px; padding: 5px 7px; background: rgba(216,255,62,.1); color: var(--accent); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.coach-program-card h3 { margin: 8px 0; font-size: 18px; }
.coach-program-card p { margin-bottom: 12px; font-size: 12px; }
.program-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.program-meta span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 7px; color: var(--muted); font-size: 9px; }
.coach-program-card > small { color: var(--muted); font-size: 10px; margin: 10px 0; }
.coach-program-card .secondary-button { width: 100%; }

.calendar-card { margin-top: 16px; }
.calendar-week { display: grid; gap: 7px; margin-top: 14px; }
.calendar-day { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #101010; }
.calendar-day.today { border-color: rgba(216,255,62,.35); }
.calendar-day.completed { background: rgba(216,255,62,.045); }
.calendar-day.missed { border-color: rgba(255,107,107,.28); }
.calendar-date { display: grid; place-items: center; gap: 1px; border-right: 1px solid var(--line); }
.calendar-date span { color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.calendar-date strong { font-size: 20px; }
.calendar-plan { display: grid; gap: 3px; }
.calendar-plan small { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.calendar-day.completed .calendar-plan small { color: var(--accent); }
.calendar-day.missed .calendar-plan small { color: var(--danger); }
.calendar-plan b { font-size: 12px; }
.calendar-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.calendar-actions button { border: 1px solid var(--line); border-radius: 9px; background: #1b1b1b; color: var(--text); padding: 8px; font-size: 9px; font-weight: 800; }
.schedule-days { display: flex; align-items: center; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); overflow-x: auto; }
.schedule-days > span { color: var(--muted); font-size: 10px; white-space: nowrap; margin-right: 4px; }
.schedule-days label input { display: none; }
.schedule-days label b { display: grid; place-items: center; width: 36px; height: 34px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 9px; }
.schedule-days label input:checked + b { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.exercise-header-actions { display: flex; align-items: center; gap: 7px; }
.swap-button { border: 1px solid rgba(216,255,62,.28); border-radius: 10px; background: rgba(216,255,62,.07); color: var(--accent); padding: 9px; font-size: 10px; font-weight: 900; }
.adaptive-note,
.substituted-note { display: block; max-width: 360px; margin-top: 5px; color: var(--accent); font-size: 10px; line-height: 1.35; }
.substituted-note { color: #c7b6ff; }
.modal-backdrop { position: fixed; inset: 0; z-index: 40; display: grid; align-items: end; background: rgba(0,0,0,.72); backdrop-filter: blur(8px); }
.substitution-modal { position: relative; width: 100%; max-width: 620px; margin: 0 auto; padding: 24px 18px calc(24px + var(--safe-bottom)); border: 1px solid var(--line); border-radius: 24px 24px 0 0; background: #151515; box-shadow: 0 -30px 90px rgba(0,0,0,.55); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #202020; color: var(--text); font-size: 23px; }
.substitution-list { display: grid; gap: 8px; margin-top: 16px; }
.substitution-list button { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 13px; background: #101010; color: var(--text); padding: 13px; text-align: left; }
.substitution-list button span { color: var(--muted); font-size: 10px; }

.monthly-report-card { margin: 16px 0; }
.monthly-report-head input { max-width: 145px; padding: 9px; }
.report-stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 16px 0; }
.report-stat-grid > div { display: grid; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #101010; }
.report-stat-grid small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.report-stat-grid strong { color: var(--accent); font-size: 22px; }
.report-stat-grid span { color: var(--muted); font-size: 9px; }
.report-insight { display: grid; gap: 5px; margin: 12px 0; padding: 13px; border-radius: 14px; background: rgba(216,255,62,.06); }
.report-insight strong { color: var(--accent); }
.report-insight span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.report-progress { display: grid; gap: 8px; margin-top: 15px; }
.report-progress > div { display: flex; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; }
.report-progress > div strong { color: var(--accent); }
.report-progress p { color: var(--muted); font-size: 11px; }

@media (max-width: 600px) {
  .profile-grid,
  .coach-program-grid,
  .report-stat-grid { grid-template-columns: 1fr; }
  .profile-wide { grid-column: auto; }
  .coach-actions { grid-template-columns: 1fr; }
  .next-program-row { align-items: flex-start; flex-direction: column; }
  .next-program-row .primary-button { width: 100%; }
  .session-duration { align-items: flex-start; flex-direction: column; }
  .exercise-card-header { align-items: flex-start; }
  .exercise-header-actions { align-items: flex-end; flex-direction: column; }
  .calendar-day { grid-template-columns: 48px 1fr; }
  .monthly-report-head { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 390px) {
  .nav-button { font-size: 9px; padding-left: 1px; padding-right: 1px; }
  .nav-button span { font-size: 16px; }
  .topbar { padding-left: 14px; padding-right: 14px; }
}
