:root {
  color-scheme: dark;
  --bg: #11100f;
  --surface: #1a1816;
  --surface-2: #23201d;
  --surface-3: #2d2925;
  --text: #f6f2ec;
  --muted: #aaa39a;
  --line: rgba(255, 255, 255, .09);
  --brand: #ee6837;
  --brand-strong: #ff7a45;
  --brand-soft: rgba(238, 104, 55, .14);
  --green: #69c18c;
  --green-soft: rgba(105, 193, 140, .14);
  --yellow: #e8bd64;
  --yellow-soft: rgba(232, 189, 100, .13);
  --red: #ff6b6b;
  --red-soft: rgba(255, 107, 107, .13);
  --blue: #77a9ff;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% -10%, rgba(238, 104, 55, .14), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, label, select { -webkit-tap-highlight-color: transparent; }

button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(119, 169, 255, .6);
  outline-offset: 2px;
}

.hidden { display: none !important; }
.app-shell { min-height: 100vh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px max(18px, calc((100vw - 1120px) / 2));
  background: rgba(17, 16, 15, .82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.brand-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand);
  color: #160b06;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(238, 104, 55, .26);
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: .08em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }

#app {
  width: min(100%, 1120px);
  min-height: calc(100vh - 68px);
  margin: 0 auto;
  padding: 28px 20px calc(102px + var(--safe-bottom));
}

.page-head { margin-bottom: 22px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(29px, 5vw, 46px); line-height: 1.1; letter-spacing: -.04em; }
h2 { margin-bottom: 14px; font-size: 21px; letter-spacing: -.02em; }
h3 { margin-bottom: 8px; font-size: 16px; }
.subtitle, .muted { color: var(--muted); }
.subtitle { margin-bottom: 0; line-height: 1.65; }
.small { font-size: 12px; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(26, 24, 22, .92);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .12);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 5vw, 38px);
  background:
    linear-gradient(125deg, rgba(238, 104, 55, .17), transparent 45%),
    var(--surface);
}

.hero-card::after {
  content: "08";
  position: absolute;
  right: -9px;
  top: -38px;
  color: rgba(255, 255, 255, .025);
  font-size: 190px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.hero-title { margin: 5px 0 10px; font-size: clamp(31px, 6vw, 54px); line-height: 1.03; letter-spacing: -.05em; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.week-tag, .status-tag, .equipment-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.week-tag { padding: 6px 10px; color: var(--brand-strong); background: var(--brand-soft); }
.status-tag { gap: 5px; padding: 5px 9px; }
.status-normal { color: var(--green); background: var(--green-soft); }
.status-warn { color: var(--yellow); background: var(--yellow-soft); }
.status-stop { color: var(--red); background: var(--red-soft); }
.equipment-tag { padding: 4px 8px; color: var(--muted); background: var(--surface-3); font-weight: 500; }

.btn, .icon-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px 16px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 750;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.btn:hover, .icon-button:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.18); }
.btn:active, .icon-button:active { transform: translateY(0); }
.btn-primary { border-color: transparent; background: var(--brand); color: #180a04; }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--red); background: var(--red-soft); border-color: rgba(255,107,107,.18); }
.btn-sm { min-height: 36px; padding: 8px 12px; border-radius: 10px; font-size: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .42; cursor: not-allowed; transform: none; }

.progress-ring {
  --progress: 0;
  width: 132px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--brand) calc(var(--progress) * 1%), rgba(255,255,255,.07) 0);
  position: relative;
}

.progress-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--surface); }
.progress-ring-content { position: relative; text-align: center; }
.progress-ring-content strong { display: block; font-size: 31px; line-height: 1; }
.progress-ring-content span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 26px; }
.stat { padding: 18px; }
.stat-label { margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.stat-value { font-size: 22px; font-weight: 850; letter-spacing: -.03em; }
.stat-context { margin-top: 6px; color: var(--muted); font-size: 11px; }

.section { margin-top: 30px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head h2, .section-head p { margin-bottom: 0; }

.safety-card { padding: 18px; border-color: rgba(232, 189, 100, .15); background: linear-gradient(120deg, var(--yellow-soft), transparent), var(--surface); }
.safety-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.safety-list li { display: flex; gap: 10px; line-height: 1.5; }
.safety-number { flex: 0 0 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; background: var(--yellow-soft); color: var(--yellow); font-size: 12px; font-weight: 850; }

.preview-list { display: grid; gap: 9px; }
.preview-row { display: grid; grid-template-columns: 31px 1fr auto; gap: 12px; align-items: center; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.preview-row:last-child { border-bottom: 0; }
.preview-index { color: var(--muted); font-size: 12px; }
.preview-name { font-weight: 700; }
.preview-detail { color: var(--muted); font-size: 12px; white-space: nowrap; }

.cycle-track { display: grid; grid-template-columns: repeat(8, 1fr); gap: 7px; }
.cycle-step { min-height: 8px; border-radius: 999px; background: var(--surface-3); }
.cycle-step.done { background: var(--green); }
.cycle-step.current { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.cycle-labels { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: 11px; }

.plan-week { margin-top: 28px; }
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.plan-card { padding: 19px; cursor: pointer; transition: transform .16s ease, border-color .16s ease; }
.plan-card:hover { transform: translateY(-2px); border-color: rgba(238,104,55,.42); }
.plan-card.is-next { border-color: rgba(238,104,55,.55); box-shadow: 0 0 0 3px var(--brand-soft); }
.plan-top { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.plan-number { color: var(--brand-strong); font-size: 12px; font-weight: 850; }
.plan-card h3 { margin: 5px 0 5px; font-size: 19px; }
.plan-card .muted { margin: 0; font-size: 12px; }
.mini-exercises { margin: 15px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); list-style: none; }
.mini-exercises li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; color: var(--muted); font-size: 12px; }
.mini-exercises li span:first-child { color: var(--text); }

.workout-head { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 20px; }
.workout-head h1 { font-size: clamp(27px, 5vw, 40px); }
.session-time { font-variant-numeric: tabular-nums; color: var(--brand-strong); font-weight: 850; }

.stage-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 24px; }
.stage-item { padding: 12px; border-radius: 13px; background: var(--surface-2); color: var(--muted); text-align: center; font-size: 12px; }
.stage-item strong { display: block; margin-bottom: 3px; color: var(--text); font-size: 14px; }
.stage-item.active { background: var(--brand-soft); color: var(--brand-strong); }

.warmup-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; padding: 20px; margin-bottom: 14px; }
.warmup-card.complete { background: linear-gradient(120deg, var(--green-soft), transparent), var(--surface); }
.timer-display { font-size: 29px; font-weight: 850; font-variant-numeric: tabular-nums; }

.exercise-stack { display: grid; gap: 13px; }
.exercise-card { overflow: hidden; }
.exercise-card.is-complete { border-color: rgba(105,193,140,.26); }
.exercise-summary { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 17px; cursor: pointer; list-style: none; }
.exercise-summary::-webkit-details-marker { display: none; }
.exercise-summary::marker { display: none; }
.exercise-check { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--surface-3); color: var(--muted); font-weight: 900; }
.is-complete .exercise-check { background: var(--green-soft); color: var(--green); }
.exercise-title { min-width: 0; }
.exercise-title strong { display: block; }
.exercise-title small { display: block; margin-top: 4px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exercise-target { color: var(--brand-strong); font-size: 13px; font-weight: 800; white-space: nowrap; }
.exercise-body { padding: 0 17px 17px; }
.equipment { margin-bottom: 14px; color: var(--muted); font-size: 12px; line-height: 1.55; }

.choice-stack { display: grid; gap: 15px; }
.choice-section { padding: 18px; }
.choice-section-head { display: flex; gap: 12px; align-items: center; margin-bottom: 15px; }
.choice-section-head .eyebrow, .choice-section-head h2 { margin: 0; }
.choice-section-head h2 { margin-top: 4px; font-size: 15px; color: var(--muted); }
.action-choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.action-choice { position: relative; overflow: hidden; display: block; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); cursor: pointer; transition: border-color .16s ease, transform .16s ease, background .16s ease; }
.action-choice:hover { transform: translateY(-2px); border-color: rgba(238,104,55,.36); }
.action-choice.is-selected { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 2px var(--brand-soft); }
.action-choice input { position: absolute; opacity: 0; pointer-events: none; }
.action-choice img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface-3); }
.action-choice-copy { position: relative; min-height: 91px; display: block; padding: 12px; }
.action-choice-copy strong, .action-choice-copy small { display: block; }
.action-choice-copy strong { padding-right: 45px; }
.action-choice-copy small { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.action-choice-copy em { position: absolute; right: 10px; top: 10px; padding: 3px 6px; border-radius: 999px; background: var(--brand); color: #180a04; font-size: 10px; font-style: normal; font-weight: 850; }
.customize-footer { position: sticky; bottom: 16px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 15px 17px; background: rgba(35,32,29,.94); backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.customize-footer strong, .customize-footer span { display: block; }
.customize-footer span { margin-top: 3px; color: var(--muted); font-size: 11px; }

.equipment-picker { margin-bottom: 15px; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.equipment-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.equipment-picker-head strong { font-size: 13px; }
.equipment-picker-head span { color: var(--muted); font-size: 11px; }
.equipment-options { display: flex; flex-wrap: wrap; gap: 7px; }
.equipment-option { min-height: 39px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-3); color: var(--muted); font-size: 12px; cursor: pointer; }
.equipment-option.is-selected { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }
.equipment-setup { margin: 11px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.equipment-setup strong { color: var(--text); }

.guide-panel { margin-bottom: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: rgba(17,16,15,.55); }
.guide-media { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.guide-media figure { margin: 0; background: var(--surface); }
.guide-media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface-3); }
.guide-media figcaption { padding: 8px 10px; color: var(--muted); font-size: 11px; text-align: center; }
.technique-guide { padding: 15px; }
.guide-label { display: block; margin-bottom: 7px; color: var(--brand-strong); font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.technique-guide ol { margin: 0; padding-left: 20px; }
.technique-guide li { padding: 3px 0; font-size: 12px; line-height: 1.5; }
.breathing-cue, .mistake-cue { display: grid; grid-template-columns: 43px 1fr; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.55; }
.breathing-cue strong { color: var(--green); }
.mistake-cue strong { color: var(--yellow); }
.breathing-cue span, .mistake-cue span { color: var(--muted); }

.set-table { width: 100%; border-collapse: collapse; }
.set-table th { padding: 0 6px 8px; color: var(--muted); font-size: 11px; font-weight: 650; text-align: left; }
.set-table td { padding: 6px; border-top: 1px solid var(--line); }
.set-table th:first-child, .set-table td:first-child { padding-left: 0; width: 42px; }
.set-table th:last-child, .set-table td:last-child { padding-right: 0; width: 48px; text-align: right; }
.set-input {
  width: 100%;
  min-width: 66px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 9px;
  background: var(--surface-2);
  color: var(--text);
}
.set-input::placeholder { color: #716b64; }
.set-done {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: transparent;
  cursor: pointer;
}
.set-done.done { border-color: transparent; background: var(--green); color: #092014; }

.rest-dock {
  position: sticky;
  bottom: calc(78px + var(--safe-bottom));
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  max-width: 620px;
  margin: 16px auto;
  padding: 15px 17px;
  border: 1px solid rgba(238,104,55,.3);
  border-radius: 16px;
  background: rgba(35, 32, 29, .94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.rest-dock strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.rest-actions { display: flex; gap: 7px; }

.form-card { padding: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.field label, .field-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.field input, .field select, .field textarea, .textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--surface-2);
  color: var(--text);
}
.field textarea, .textarea { min-height: 88px; resize: vertical; }

.feeling-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.feeling-option { position: relative; }
.feeling-option input { position: absolute; opacity: 0; pointer-events: none; }
.feeling-option span { min-height: 46px; display: grid; place-items: center; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 12px; text-align: center; cursor: pointer; }
.feeling-option input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }
.feeling-option.stop input:checked + span { border-color: var(--red); background: var(--red-soft); color: var(--red); }

.alert { padding: 15px 17px; border: 1px solid rgba(255,107,107,.25); border-radius: 14px; background: var(--red-soft); color: #ffb2b2; line-height: 1.6; }
.alert strong { color: var(--red); }

.history-list { display: grid; gap: 12px; }
.history-card { padding: 18px; }
.history-top { display: grid; grid-template-columns: 48px 1fr auto; gap: 13px; align-items: center; }
.history-date { width: 48px; height: 50px; display: grid; place-items: center; align-content: center; border-radius: 13px; background: var(--surface-2); color: var(--muted); font-size: 10px; line-height: 1.2; }
.history-date strong { color: var(--text); font-size: 19px; }
.history-card h3 { margin: 0 0 4px; }
.history-metrics { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.history-actions { display: flex; gap: 7px; }
.empty { padding: 45px 24px; text-align: center; }
.empty-mark { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 18px; background: var(--surface-2); color: var(--brand-strong); font-size: 27px; }

.chart-card { padding: 20px; }
.bars { height: 190px; display: flex; align-items: end; gap: 8px; padding-top: 18px; }
.bar-item { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 7px; }
.bar-track { width: min(36px, 78%); flex: 1; display: flex; align-items: end; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.bar-fill { width: 100%; min-height: 3px; border-radius: 8px 8px 0 0; background: var(--brand); }
.bar-label { color: var(--muted); font-size: 10px; white-space: nowrap; }
.bar-value { color: var(--muted); font-size: 10px; }

.recommend-list { display: grid; gap: 10px; }
.recommend-row { display: grid; grid-template-columns: 1fr auto; gap: 13px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.recommend-row:last-child { border-bottom: 0; }
.recommend-row strong { display: block; margin-bottom: 4px; }
.recommend-row small { color: var(--muted); }
.recommend-value { color: var(--brand-strong); font-weight: 850; white-space: nowrap; }

.data-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 40;
  width: min(calc(100% - 24px), 560px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 7px;
  padding-bottom: max(7px, var(--safe-bottom));
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(35, 32, 29, .92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.nav-item {
  min-height: 52px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}
.nav-icon { font-size: 18px; line-height: 1; }
.nav-item.active { background: var(--brand-soft); color: var(--brand-strong); }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + var(--safe-bottom));
  z-index: 100;
  max-width: calc(100% - 34px);
  padding: 11px 15px;
  border-radius: 12px;
  background: #eee7dc;
  color: #1b1714;
  box-shadow: var(--shadow);
  font-size: 13px;
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(5px);
}
.modal { width: min(100%, 520px); max-height: calc(100vh - 40px); overflow: auto; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.modal h2 { margin-bottom: 8px; }
.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 20px; }

@media (min-width: 900px) {
  #app { padding-bottom: 42px; }
  .bottom-nav { left: auto; right: max(18px, calc((100vw - 1120px) / 2)); top: 9px; bottom: auto; width: 410px; transform: none; padding: 5px; border-radius: 15px; box-shadow: none; background: rgba(35,32,29,.65); }
  .nav-item { min-height: 46px; display: flex; gap: 7px; justify-content: center; font-size: 12px; }
  .nav-icon { font-size: 15px; }
  .topbar { padding-right: calc(max(18px, (100vw - 1120px) / 2) + 430px); }
  .rest-dock { bottom: 18px; }
}

@media (max-width: 760px) {
  #app { padding: 21px 14px calc(98px + var(--safe-bottom)); }
  .topbar { padding-inline: 14px; }
  .hero-grid { grid-template-columns: 1fr; }
  .progress-ring { width: 108px; position: absolute; right: 0; top: 0; opacity: .96; }
  .hero-copy { padding-right: 85px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .safety-list { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .action-choice-grid { grid-template-columns: repeat(2, 1fr); }
  .workout-head { display: block; }
  .workout-head .session-time { margin-top: 8px; display: block; }
}

@media (max-width: 430px) {
  .brand small { display: none; }
  .hero-card { padding: 21px 17px; }
  .hero-copy { padding-right: 0; }
  .progress-ring { position: relative; width: 96px; margin-top: 16px; }
  .hero-grid { gap: 0; }
  .hero-actions { display: grid; }
  .stats-grid { gap: 8px; }
  .stat { padding: 14px; }
  .stat-value { font-size: 19px; }
  .preview-row { grid-template-columns: 26px 1fr; }
  .preview-detail { grid-column: 2; }
  .stage-strip { gap: 5px; }
  .stage-item { padding: 10px 5px; }
  .warmup-card { grid-template-columns: 1fr; }
  .warmup-card .btn { width: 100%; }
  .action-choice-grid { grid-template-columns: 1fr; }
  .action-choice { display: grid; grid-template-columns: 116px 1fr; }
  .action-choice img { height: 100%; aspect-ratio: auto; min-height: 104px; }
  .action-choice-copy { min-height: 104px; }
  .customize-footer { bottom: 8px; align-items: stretch; flex-direction: column; gap: 10px; }
  .customize-footer .btn { width: 100%; }
  .guide-media { grid-template-columns: 1fr; }
  .exercise-summary { grid-template-columns: 35px 1fr; }
  .exercise-target { grid-column: 2; }
  .set-table th:first-child, .set-table td:first-child { width: 29px; }
  .set-table th, .set-table td { padding-inline: 4px; }
  .feeling-group { grid-template-columns: 1fr; }
  .history-top { grid-template-columns: 45px 1fr; }
  .history-actions { grid-column: 2; }
  .rest-dock { bottom: calc(83px + var(--safe-bottom)); margin-inline: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
