/* Ritmo — an open weekly programme. Tokens are shared by every screen. */
:root {
  color-scheme: dark;
  --paper: #141616;
  --surface: #202323;
  --surface-soft: #292d2c;
  --ink: #eeefe9;
  --muted: #afb6b2;
  --line: #3b413e;
  --primary: #c6ae7b;
  --on-primary: #20221f;
  --green: var(--primary);
  --lime: var(--primary);
  --cover: #d8dbce;
  --cover-ink: #20251e;
  --cover-muted: #515b4d;
  --cover-line: #b2baaa;
  --warning: #342f24;
  --warning-ink: #e7c991;
  --success: #26362d;
  --success-ink: #b4d5be;
  --danger: #f0b0a2;
  --shadow: 0 24px 80px #0005;
  --font-display: "Sora", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --radius: 12px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --paper: #f1f2ed;
  --surface: #fff;
  --surface-soft: #e5e9e2;
  --ink: #20261f;
  --muted: #586252;
  --line: #bdc5b7;
  --primary: #6e5323;
  --on-primary: #fff;
  --cover: #d8dbce;
  --cover-ink: #20251e;
  --cover-muted: #515b4d;
  --cover-line: #b2baaa;
  --warning: #f5ead4;
  --warning-ink: #6e4e13;
  --success: #dbeadd;
  --success-ink: #275434;
  --danger: #a13925;
  --shadow: 0 24px 80px #24331b20;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.05rem;
}
.icon {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.small {
  font-size: 0.875rem;
  line-height: 1.7;
}
.muted,
.muscle {
  color: var(--muted);
}
.muscle {
  font-size: 0.875rem;
  line-height: 1.6;
}
.eyebrow {
  display: block;
  font: 500 0.75rem/1.5 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.subtitle {
  margin-top: 12px;
  color: var(--muted);
  max-width: 62ch;
}
.full {
  width: 100%;
}
.hidden {
  display: none !important;
}
.full-width {
  grid-column: 1/-1;
}
.back-arrow {
  transform: rotate(180deg);
}
.btn,
.icon-btn,
.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
}
.btn {
  background: var(--primary);
  color: var(--on-primary);
  padding: 16px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
}
.btn.outline {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}
.btn.soft {
  background: var(--surface-soft);
  color: var(--ink);
}
.icon-btn {
  width: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.icon-btn.active {
  color: var(--primary);
}
.link-btn {
  padding: 6px 0;
  background: transparent;
  color: var(--primary);
  text-align: left;
}
.danger {
  color: var(--danger);
}
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--muted);
}
input,
select,
textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  font-size: 1rem;
  min-width: 0;
}
input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}
select {
  padding-right: 30px;
}
input:disabled {
  opacity: 0.5;
}
.field {
  min-width: 0;
}
.field + .field {
  margin-top: 16px;
}
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-200%);
  background: var(--primary);
  color: var(--on-primary);
  padding: 12px;
  border-radius: 6px;
}
.skip-link:focus {
  transform: none;
}
.shell {
  width: 100%;
  min-height: 100dvh;
}
.masthead {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1600px;
  padding: 0 48px;
  margin: auto;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  padding: 0;
  font: 600 2rem/1 var(--font-display);
  letter-spacing: -0.09em;
  min-height: 44px;
}
.brand-symbol {
  width: 30px;
  height: 30px;
  color: var(--primary);
}
.nav {
  display: flex;
  gap: 8px;
  height: 100%;
  align-items: center;
}
.nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 20px;
  background: transparent;
  color: var(--muted);
  font-size: 0.875rem;
}
.nav button > .icon {
  display: none;
}
.nav button.active {
  color: var(--ink);
}
.nav button.active:after {
  content: "";
  height: 3px;
  position: absolute;
  bottom: -19px;
  left: 20px;
  right: 20px;
  background: var(--primary);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.masthead-date {
  font: 400 0.75rem var(--font-mono);
  color: var(--muted);
  margin-right: 12px;
  white-space: nowrap;
}
.main {
  max-width: 1600px;
  margin: auto;
  padding: 40px 48px 24px;
  min-width: 0;
  outline: none;
}
.site-footer {
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px 48px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.75rem;
  color: var(--muted);
}
.site-footer > .link-btn {
  font-size: 0.75rem;
  font-weight: 500;
}
.bottom-nav {
  display: none;
}
.program-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 28px;
}
.program-heading .eyebrow {
  margin-bottom: 10px;
}
.program-heading h1 {
  font-size: 2.5rem;
}
.version-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  background: transparent;
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 50%;
  text-align: left;
}
.version-link .icon {
  width: 16px;
  height: 16px;
}
.mobile-week {
  display: none;
}
.day-tabs {
  display: flex;
  gap: 6px;
  min-width: 0;
}
.day-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  flex: 1;
  padding: 12px 16px;
  min-height: 48px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.875rem;
}
.day-tab small {
  font: 400 0.75rem var(--font-mono);
  opacity: 0.7;
}
.day-tab.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
}
.day-tab.selected small {
  opacity: 1;
}
.session-mural {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  min-width: 0;
  background: var(--surface);
  align-items: stretch;
  min-height: 620px;
}
.session-spine {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  text-align: left;
  background: var(--surface);
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  position: relative;
}
.session-spine:last-child {
  border-right: 0;
}
.spine-day {
  font: 500 0.875rem var(--font-mono);
  color: var(--muted);
  text-transform: uppercase;
}
.spine-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font: 500 clamp(1.05rem, 1.6vw, 1.5rem) / 1.35 var(--font-display);
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
  padding: 32px 0;
}
.spine-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
}
.spine-bottom > span {
  font: 400 2.25rem/1 var(--font-mono);
  letter-spacing: -0.08em;
}
.spine-bottom .icon {
  width: 18px;
}
.session-open {
  flex: 4.6 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--cover);
  color: var(--cover-ink);
  padding: 28px 32px 20px;
  border-right: 1px solid var(--line);
}
.session-open:last-child {
  border-right: 0;
}
.session-cover-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 500 0.6875rem/1.5 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cover-muted);
}
.session-cover-heading {
  padding: 24px 0 20px;
}
.session-cover-heading h2 {
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.075em;
}
.session-cover-heading p {
  font: 500 1.125rem/1.5 var(--font-display);
  margin-top: 10px;
  letter-spacing: -0.04em;
}
.session-cover-heading small {
  display: block;
  font-size: 0.8125rem;
  color: var(--cover-muted);
  margin-top: 6px;
}
.cover-art {
  background: #fff;
  border-radius: 12px;
  position: relative;
  display: block;
  padding: 0;
  width: 100%;
  overflow: hidden;
}
.art {
  display: block;
  width: 100%;
  aspect-ratio: 2.7/1;
  background: #fff;
  overflow: hidden;
}
.art > svg,
.art > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.art.fallback {
  display: grid;
  place-items: center;
  color: #4c5a4b;
}
.art.fallback > .icon {
  width: 48px;
  height: 48px;
}
.cover-art > .art {
  max-height: 180px;
  aspect-ratio: 3/1;
}
.cover-art > span {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #36402d;
  background: #eff1e9;
}
.cover-art .icon {
  width: 16px;
}
.cover-movement {
  padding: 18px 0;
}
.cover-movement > span {
  display: block;
  font: 400 0.6875rem var(--font-mono);
  text-transform: uppercase;
  color: var(--cover-muted);
  margin-bottom: 6px;
}
.cover-movement > strong {
  font-size: 0.9375rem;
  line-height: 1.5;
  font-weight: 700;
  display: block;
}
.cover-movement p {
  font-size: 0.8125rem;
  color: var(--cover-muted);
  margin-top: 6px;
}
.cover-movement p > span {
  padding: 0 5px;
}
.cover-actions {
  margin-top: auto;
  display: grid;
  gap: 4px;
}
.cover-start {
  justify-content: space-between;
  background: var(--cover-ink);
  color: var(--cover);
  min-height: 54px;
}
.cover-board {
  background: transparent;
  color: var(--cover-ink);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.cover-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--cover-line);
  padding-top: 14px;
  margin-top: 8px;
  font: 400 0.6875rem/1.5 var(--font-mono);
  color: var(--cover-muted);
}
.program-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 18px 0 0;
}
.program-bottom > .link-btn {
  font-size: 0.8125rem;
}
.program-bottom > p {
  font-size: 0.75rem;
  color: var(--muted);
}
.plan-notice {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--muted);
}
.plan-notice summary {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  min-height: 44px;
}
.plan-notice summary > .icon:last-child {
  margin-left: auto;
}
.plan-notice strong {
  font-weight: 600;
}
.notice-body {
  padding: 8px 0 16px;
  max-width: 75ch;
}
.notice-body .buttons {
  gap: 20px;
  margin-top: 12px;
}
.help-box {
  background: var(--surface-soft);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--muted);
}
.help-box strong {
  color: var(--ink);
}
.help-box p {
  margin-top: 12px;
}
.plan-guidance {
  margin-top: 32px;
}
.plan-guidance summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
}
.plan-guidance summary:after {
  content: "+";
  margin-left: auto;
  font: 400 1.5rem var(--font-mono);
}
.plan-guidance[open] summary:after {
  content: "−";
}
/* The complete prescription is a separate movement board. */
.board-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.board-heading {
  padding: 32px 0;
}
.board-heading h1 {
  margin: 16px 0;
  max-width: 28ch;
  font-size: clamp(2rem, 3.8vw, 3.5rem);
}
.board-heading p {
  font-size: 0.875rem;
  color: var(--muted);
}
.movement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.movement-tile {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  min-width: 0;
}
.movement-tile.current {
  border-color: var(--primary);
}
.movement-button {
  padding: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  height: 100%;
  background: transparent;
}
.movement-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  font: 400 0.6875rem var(--font-mono);
  color: var(--muted);
  width: 100%;
}
.movement-top > span:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.movement-top .icon {
  width: 14px;
  height: 14px;
}
.movement-index {
  color: var(--primary);
  font-size: 0.8125rem;
}
.movement-tile .art {
  aspect-ratio: 2.5/1;
}
.movement-info {
  display: flex;
  flex-direction: column;
  padding: 20px;
  flex: 1;
  width: 100%;
}
.movement-info > strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.035em;
  line-height: 1.5;
  font-weight: 500;
}
.movement-info .muscle {
  margin-top: 8px;
  flex: 1;
}
.movement-prescription {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  width: 100%;
}
.movement-prescription > b {
  color: var(--ink);
  font-weight: 600;
}
.ex-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--muted);
}
/* During a session the current action gets the whole stage. */
.active-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border: 1px solid var(--primary);
  background: var(--surface);
  border-radius: 10px;
  font-size: 0.875rem;
  margin-bottom: 28px;
}
.active-ribbon strong {
  margin-left: 10px;
  font-family: var(--font-mono);
}
.live-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.live-header h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-top: 12px;
  max-width: 28ch;
}
.live-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  font: 400 0.875rem var(--font-mono);
}
.live-phase {
  color: var(--primary);
  font: 600 0.75rem var(--font-body);
}
.training-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.stage-visual {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--cover);
  color: var(--cover-ink);
  padding: 36px;
}
.focus-art {
  flex: 1;
  display: grid;
  align-items: center;
  min-height: 300px;
}
.art-preview {
  position: relative;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  background: #fff;
}
.art-preview > .art {
  aspect-ratio: 2.3/1;
}
.art-preview-label {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 0.6875rem;
  display: flex;
  gap: 6px;
  align-items: center;
  background: #eff1e9;
  color: #36402d;
  padding: 8px;
  border-radius: 6px;
}
.art-preview-label .icon {
  width: 14px;
  height: 14px;
}
.stage-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--cover-line);
  margin-top: 24px;
  font-size: 0.8125rem;
  color: var(--cover-muted);
}
.stage-foot .link-btn {
  color: var(--cover-ink);
  font-size: 0.75rem;
  white-space: nowrap;
}
.exercise-console {
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.console-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.set-circles {
  display: flex;
  align-items: center;
  gap: 8px;
}
.set-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font: 400 0.6875rem var(--font-mono);
  color: var(--muted);
}
.set-circle.now {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}
.set-circle.done {
  border-color: var(--primary);
  color: var(--primary);
}
.set-circle .icon {
  width: 14px;
  height: 14px;
}
.rep-target {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rep-target strong {
  font: 500 clamp(2.75rem, 5vw, 4rem) / 1.15 var(--font-display);
  letter-spacing: -0.07em;
}
.rep-target > span {
  font-size: 0.8125rem;
  color: var(--muted);
}
.effort-note {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}
.log-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
.log-inputs label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.log-inputs label small {
  color: var(--muted);
  display: block;
  font-size: 0.6875rem;
  font-weight: 400;
  margin-top: 3px;
}
.log-inputs input {
  font: 500 1.5rem var(--font-mono);
  padding: 14px;
  min-height: 60px;
}
.session-main-action {
  min-height: 56px;
}
.coaching-details {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.coaching-details summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  color: var(--ink);
}
.coaching-details .icon {
  width: 16px;
}
.coaching-details[open] summary .icon {
  transform: rotate(45deg);
}
.coaching-body p {
  line-height: 1.8;
  margin-bottom: 16px;
}
.rest-display {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 330px;
  text-align: center;
}
.rest-display .eyebrow {
  color: var(--cover-muted);
}
.rest-display > strong {
  display: block;
  font: 500 clamp(4rem, 9vw, 9rem) / 1.3 var(--font-mono);
  letter-spacing: -0.09em;
  color: var(--cover-ink);
  margin: 20px 0 0;
  font-variant-numeric: tabular-nums;
}
.rest-display > p {
  color: var(--cover-muted);
  font-size: 0.875rem;
}
.rest-sound {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cover-muted);
  font-size: 0.6875rem;
  margin-top: 32px;
}
.rest-sound .icon {
  width: 16px;
  height: 16px;
}
.is-rest .stage-visual {
  background: #d8c8a6;
}
.is-rest .stage-foot {
  border-color: #b9a884;
}
.next-set-label {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 32px;
  line-height: 1.8;
}
.next-set-label strong {
  color: var(--ink);
  font-weight: 500;
}
.is-rest .rep-target {
  margin-top: 32px;
}
.is-rest .session-main-action {
  margin-top: auto;
}
.paused-note,
.timer-complete-banner {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.8125rem;
  margin: 0 0 16px;
  background: var(--warning);
  color: var(--warning-ink);
}
.timer-complete-banner {
  background: var(--success);
  color: var(--success-ink);
}
.session-progress {
  margin: 28px 0;
}
.progress-track {
  height: 3px;
  background: var(--line);
  overflow: hidden;
  border-radius: 4px;
}
.progress-track > i {
  height: 100%;
  display: block;
  background: var(--primary);
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 0.75rem;
  color: var(--muted);
  padding-top: 12px;
}
.progress-meta b,
.progress-meta strong {
  color: var(--ink);
  font-weight: 500;
}
.progress-meta > div {
  display: flex;
  gap: 24px;
}
.progress-meta .link-btn {
  font-size: 0.75rem;
}
.session-sequence {
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.session-sequence > summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  font-size: 0.875rem;
  cursor: pointer;
}
.session-sequence summary small {
  color: var(--muted);
  margin-left: 16px;
}
.session-sequence[open] > summary > .icon {
  transform: rotate(45deg);
}
.title-line {
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  background: var(--surface-soft);
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 5px;
}
.microstats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 32px 0;
}
.microstat {
  padding: 24px 0;
  min-width: 0;
}
.microstat + .microstat {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.microstat small {
  color: var(--muted);
  font-size: 0.6875rem;
}
.microstat b {
  display: block;
  font: 500 2.5rem/1.4 var(--font-mono);
  letter-spacing: -0.05em;
}
.metric-unit {
  font: 400 0.75rem var(--font-body);
}
.complete-card {
  max-width: 700px;
  margin: 48px auto;
  text-align: center;
  padding: 32px 0;
}
.complete-card h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}
.complete-card .microstats {
  text-align: left;
}
.complete-card > .btn {
  margin-top: 32px;
}
.complete-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 32px;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 50%;
}
.complete-symbol .icon {
  width: 32px;
  height: 32px;
}
.empty {
  text-align: center;
  padding: 64px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.empty > .icon {
  width: 40px;
  height: 40px;
  color: var(--primary);
  margin-bottom: 24px;
}
.empty h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
.empty p {
  color: var(--muted);
  max-width: 44ch;
  margin: auto;
}
.storage-error {
  background: var(--warning);
  color: var(--warning-ink);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 0.875rem;
}
.toast {
  position: fixed;
  z-index: 100;
  bottom: 24px;
  left: 50%;
  max-width: calc(100vw - 32px);
  width: max-content;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 0.8125rem;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
/* Dialogs are quiet full surfaces, with a clear return to the programme. */
.overlay {
  position: fixed;
  inset: 0;
  background: #080b09d9;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal {
  width: 100%;
  max-width: 540px;
  max-height: calc(100dvh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.modal-top {
  position: sticky;
  top: -28px;
  background: var(--surface);
  padding: 12px 0 20px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  z-index: 2;
}
.modal-top h2 {
  font-size: 1.5rem;
  max-width: 28ch;
  overflow-wrap: anywhere;
}
.modal-top > .icon-btn {
  flex-shrink: 0;
}
.modal .field {
  margin: 20px 0;
}
.modal .buttons {
  justify-content: flex-end;
}
.modal .help-box {
  margin-top: 20px;
}
.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.settings-row b {
  font-size: 0.9375rem;
}
.settings-row p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 6px;
}
.switch {
  position: relative;
  display: flex;
  align-items: center;
  width: 52px;
  min-width: 52px;
  height: 44px;
  padding: 0;
  background: transparent;
}
.switch:before {
  content: "";
  position: absolute;
  left: 3px;
  width: 46px;
  height: 28px;
  background: var(--line);
  border-radius: 20px;
}
.switch i {
  position: relative;
  width: 20px;
  height: 20px;
  background: var(--ink);
  border-radius: 50%;
  margin-left: 7px;
  transition: transform 0.15s;
}
.switch.on:before {
  background: var(--primary);
}
.switch.on i {
  transform: translateX(18px);
  background: var(--on-primary);
}
.settings-buttons {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.image-preview-modal {
  max-width: 1040px;
}
.exercise-image-preview .art {
  border-radius: 10px;
  aspect-ratio: 2.6/1;
}
.preview-muscle {
  color: var(--muted);
  margin: 20px 0 12px;
  font-size: 0.9375rem;
}
.preview-instructions {
  display: grid;
  gap: 16px;
  margin: 24px 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.9375rem;
  max-width: 75ch;
}
.preview-instructions b {
  color: var(--ink);
}
.guide-modal {
  max-width: 1040px;
}
.guide-modal > .settings-buttons {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
summary::-webkit-details-marker {
  display: none;
}
::selection {
  background: var(--primary);
  color: var(--on-primary);
}
@media (hover: hover) {
  .session-spine:hover {
    background: var(--surface-soft);
  }
  .session-spine:hover .spine-bottom {
    color: var(--primary);
  }
  .movement-button:hover .movement-top {
    color: var(--primary);
  }
  .movement-button:hover .art {
    filter: brightness(0.97);
  }
  .btn:hover:not(:disabled) {
    filter: brightness(1.08);
  }
  .link-btn:hover,
  .cover-board:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .icon-btn:hover,
  .nav button:hover {
    background: var(--surface-soft);
  }
}
@media (max-width: 1199px) {
  .masthead {
    padding: 0 32px;
  }
  .main {
    padding: 32px 32px 24px;
  }
  .site-footer {
    padding-inline: 32px;
  }
  .session-spine {
    padding: 24px 16px;
  }
  .session-open {
    flex: 5.5 1 0;
    padding: 24px;
  }
  .spine-title {
    font-size: 1.125rem;
  }
  .session-cover-heading h2 {
    font-size: 3.25rem;
  }
  .session-mural {
    min-height: 600px;
  }
  .training-stage {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
  }
  .stage-visual {
    padding: 24px;
  }
  .exercise-console {
    padding: 24px;
  }
  .progress-meta {
    flex-wrap: wrap;
  }
  .progress-meta > div {
    margin-left: auto;
  }
  .live-phase {
    display: none;
  }
  .movement-grid {
    gap: 12px;
  }
  .movement-prescription {
    align-items: start;
    flex-direction: column;
  }
}
@media (max-width: 899px) {
  .masthead {
    height: 80px;
    padding-inline: 24px;
  }
  .masthead-date {
    display: none;
  }
  .nav button {
    padding: 12px;
  }
  .nav button.active:after {
    bottom: -9px;
    left: 12px;
    right: 12px;
  }
  .main {
    padding: 28px 24px 24px;
  }
  .site-footer {
    padding-inline: 24px;
  }
  .program-heading h1 {
    font-size: 2rem;
  }
  .session-spine {
    padding: 20px 12px;
    flex: 0.65 1 0;
  }
  .session-open {
    flex: 5.5 1 0;
  }
  .spine-title {
    font-size: 0.9375rem;
    gap: 8px;
  }
  .spine-bottom {
    flex-direction: column;
    align-items: start;
    gap: 20px;
  }
  .spine-bottom > span {
    font-size: 1.5rem;
  }
  .session-cover-heading h2 {
    font-size: 2.75rem;
  }
  .session-cover-heading p {
    font-size: 1rem;
  }
  .session-cover-top {
    font-size: 0.625rem;
  }
  .movement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .training-stage {
    grid-template-columns: 1fr 1fr;
  }
  .stage-visual {
    padding: 20px;
  }
  .exercise-console {
    padding: 20px;
  }
  .focus-art {
    min-height: 220px;
  }
  .live-header {
    align-items: start;
  }
  .live-controls {
    gap: 8px;
  }
  .live-controls > [data-live] {
    font-size: 0.75rem;
  }
  .rest-display {
    min-height: 300px;
  }
  .rest-display > strong {
    font-size: 4.5rem;
  }
  .console-heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .log-inputs label {
    font-size: 0.75rem;
  }
  .log-inputs {
    gap: 8px;
  }
  .stage-foot {
    flex-wrap: wrap;
    gap: 8px;
  }
  .program-bottom > p {
    display: none;
  }
  .version-link {
    max-width: 48%;
  }
}
@media (max-width: 649px) {
  html {
    scroll-padding-top: 20px;
  }
  .masthead {
    height: 72px;
    padding: 0 20px;
    border-bottom: 0;
  }
  .brand {
    font-size: 1.75rem;
    gap: 8px;
  }
  .brand-symbol {
    width: 25px;
    height: 25px;
  }
  .top-actions {
    gap: 8px;
  }
  .top-actions .icon-btn {
    width: 40px;
    border: 0;
  }
  .masthead > .nav {
    display: none;
  }
  .main {
    padding: 12px 20px 24px;
  }
  .site-footer {
    padding: 16px 20px calc(100px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: start;
    gap: 4px;
  }
  .bottom-nav {
    position: fixed;
    z-index: 30;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    height: calc(72px + env(safe-area-inset-bottom));
  }
  .bottom-nav button {
    position: relative;
    flex: 1;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 0.75rem;
  }
  .bottom-nav .icon {
    width: 18px;
    height: 18px;
  }
  .bottom-nav button.active {
    color: var(--primary);
  }
  .bottom-nav button.active:before {
    content: "";
    position: absolute;
    top: -9px;
    left: 28%;
    right: 28%;
    height: 2px;
    background: var(--primary);
  }
  .program-heading {
    margin-bottom: 20px;
    align-items: end;
    gap: 12px;
  }
  .program-heading .eyebrow {
    font-size: 0.625rem;
    margin-bottom: 6px;
  }
  .program-heading h1 {
    font-size: 1.75rem;
  }
  .version-link {
    font-size: 0.6875rem;
    gap: 6px;
    max-width: 38%;
    line-height: 1.6;
    padding: 0;
    align-items: start;
    text-align: right;
    justify-content: end;
  }
  .version-link > .icon {
    display: none;
  }
  .mobile-week {
    display: block;
    margin-bottom: 16px;
  }
  .day-tabs {
    gap: 5px;
  }
  .day-tab {
    padding: 10px 8px;
    justify-content: center;
    min-height: 44px;
    font-size: 0.6875rem;
    gap: 5px;
  }
  .day-tab small {
    display: none;
  }
  .day-tab.selected:after {
    content: "";
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 50%;
  }
  .session-mural {
    display: block;
    min-height: 0;
    border: 0;
    border-radius: 16px;
  }
  .session-spine {
    display: none;
  }
  .session-open {
    padding: 22px 20px 16px;
    min-height: 0;
    border: 0;
    border-radius: 16px;
  }
  .session-cover-top {
    font-size: 0.625rem;
    letter-spacing: 0;
  }
  .session-cover-heading {
    padding: 18px 0 16px;
  }
  .session-cover-heading h2 {
    font-size: 2.75rem;
  }
  .session-cover-heading p {
    font-size: 1rem;
    margin-top: 6px;
  }
  .session-cover-heading small {
    font-size: 0.75rem;
    margin-top: 4px;
  }
  .cover-art > .art {
    aspect-ratio: 2.7/1;
    max-height: none;
  }
  .cover-movement {
    padding: 16px 0;
  }
  .cover-movement > strong {
    font-size: 0.875rem;
  }
  .cover-movement p {
    font-size: 0.75rem;
  }
  .cover-movement > span {
    font-size: 0.625rem;
  }
  .cover-start {
    min-height: 52px;
    padding: 14px 18px;
  }
  .cover-board {
    min-height: 44px;
    font-size: 0.75rem;
  }
  .cover-meta {
    font-size: 0.625rem;
    padding-top: 12px;
    margin-top: 4px;
  }
  .program-bottom {
    flex-wrap: wrap;
    gap: 0 16px;
    margin-top: 12px;
  }
  .program-bottom .link-btn {
    font-size: 0.6875rem;
  }
  .program-bottom .link-btn:last-child {
    margin-left: auto;
  }
  .plan-notice {
    margin-top: 12px;
    font-size: 0.75rem;
  }
  .plan-notice summary {
    gap: 8px;
  }
  .plan-notice summary > .icon {
    width: 16px;
  }
  .board-top .btn {
    font-size: 0.75rem;
    padding: 12px 14px;
  }
  .board-top .link-btn {
    font-size: 0.75rem;
  }
  .board-top {
    gap: 12px;
  }
  .board-heading {
    padding: 24px 0;
  }
  .board-heading h1 {
    font-size: 2rem;
    margin: 12px 0;
  }
  .board-heading .eyebrow {
    font-size: 0.6875rem;
  }
  .board-heading p {
    font-size: 0.75rem;
  }
  .movement-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
  }
  .movement-top {
    padding: 12px 16px;
  }
  .movement-info {
    padding: 18px;
  }
  .movement-prescription {
    flex-direction: row;
    margin-top: 18px;
  }
  .movement-info > strong {
    font-size: 1rem;
  }
  .movement-tile .art {
    aspect-ratio: 2.7/1;
  }
  .help-box {
    padding: 16px;
    font-size: 0.8125rem;
  }
  .plan-guidance {
    margin-top: 24px;
  }
  .plan-guidance summary {
    font-size: 0.8125rem;
    gap: 8px;
  }
  .plan-guidance .buttons {
    gap: 8px;
  }
  .plan-guidance .link-btn {
    font-size: 0.75rem;
  }
  .title-line {
    margin-bottom: 24px;
  }
  .title-line h1 {
    font-size: 2rem;
  }
  .subtitle {
    font-size: 0.875rem;
  }
  .active-ribbon {
    padding: 12px;
    font-size: 0.75rem;
    margin-bottom: 20px;
  }
  .active-ribbon .link-btn {
    font-size: 0.75rem;
  }
  .active-ribbon strong {
    display: block;
    margin: 3px 0 0;
  }
  .live-header {
    display: block;
    margin-bottom: 20px;
  }
  .live-header .eyebrow {
    font-size: 0.625rem;
  }
  .live-header h1 {
    font-size: 1.75rem;
    margin-top: 10px;
    max-width: none;
  }
  .live-controls {
    margin-top: 16px;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 12px;
    font-size: 0.8125rem;
  }
  .live-controls .live-phase {
    display: inline;
    color: var(--primary);
    font-size: 0.75rem;
    margin-right: auto;
  }
  .live-controls .icon-btn {
    width: 40px;
    height: 40px;
    min-height: 44px;
    border: 0;
  }
  .training-stage {
    display: block;
    border-radius: 14px;
  }
  .stage-visual {
    padding: 20px 16px 12px;
  }
  .focus-art {
    min-height: 0;
  }
  .art-preview > .art {
    aspect-ratio: 2.7/1;
  }
  .art-preview-label {
    display: none;
  }
  .stage-foot {
    font-size: 0.6875rem;
    margin-top: 12px;
    padding-top: 8px;
    flex-wrap: nowrap;
  }
  .stage-foot > .link-btn {
    font-size: 0.6875rem;
    min-height: 36px;
  }
  .stage-foot > span {
    line-height: 1.5;
  }
  .exercise-console {
    padding: 20px;
  }
  .console-heading {
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }
  .console-heading .eyebrow {
    font-size: 0.6875rem;
  }
  .set-circle {
    width: 26px;
    height: 26px;
  }
  .rep-target {
    margin: 16px 0;
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }
  .rep-target strong {
    font-size: 2.5rem;
  }
  .rep-target > span {
    font-size: 0.75rem;
  }
  .effort-note {
    font-size: 0.8125rem;
  }
  .log-inputs {
    margin: 20px 0;
    gap: 12px;
  }
  .log-inputs label {
    font-size: 0.75rem;
  }
  .log-inputs input {
    font-size: 1.25rem;
    min-height: 52px;
  }
  .coaching-details {
    margin-top: 16px;
  }
  .coaching-details summary {
    min-height: 52px;
  }
  .session-main-action {
    position: fixed;
    z-index: 31;
    left: 20px;
    right: 20px;
    width: calc(100% - 40px);
    bottom: calc(88px + env(safe-area-inset-bottom));
    min-height: 54px;
    box-shadow: 0 6px 28px #0005;
  }
  .active-view {
    padding-bottom: 80px;
  }
  .rest-display {
    min-height: 260px;
  }
  .rest-display > strong {
    font-size: 5rem;
    margin-top: 12px;
  }
  .rest-display > p {
    font-size: 0.75rem;
  }
  .rest-sound {
    margin-top: 24px;
  }
  .is-rest .stage-visual {
    padding-top: 24px;
  }
  .is-rest .exercise-console {
    padding: 20px;
  }
  .is-rest .rep-target {
    margin: 16px 0;
  }
  .next-set-label {
    font-size: 0.875rem;
    margin-bottom: 8px;
  }
  .progress-meta {
    font-size: 0.6875rem;
    gap: 8px 20px;
  }
  .progress-meta > div {
    width: 100%;
    justify-content: space-between;
    margin: 0;
  }
  .progress-meta .link-btn {
    font-size: 0.75rem;
  }
  .session-sequence > summary {
    min-height: 64px;
    font-size: 0.8125rem;
  }
  .session-sequence summary small {
    display: block;
    font-size: 0.6875rem;
    margin: 4px 0 0;
  }
  .complete-card {
    margin: 24px 0;
    padding: 16px 0;
  }
  .complete-card .eyebrow {
    font-size: 0.6875rem;
  }
  .complete-symbol {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
  }
  .microstats {
    gap: 10px;
    margin: 24px 0;
  }
  .microstat {
    padding: 16px 0;
  }
  .microstat + .microstat {
    padding-left: 10px;
  }
  .microstat small {
    font-size: 0.5625rem;
  }
  .microstat b {
    font-size: 1.5rem;
  }
  .complete-card .subtitle {
    font-size: 0.875rem;
  }
  .empty {
    padding: 48px 12px;
  }
  .empty h2 {
    font-size: 1.75rem;
  }
  .toast {
    bottom: calc(88px + env(safe-area-inset-bottom));
    padding: 12px 16px;
  }
  body[data-route="active"] .toast {
    bottom: calc(154px + env(safe-area-inset-bottom));
  }
  .overlay {
    padding: 12px;
  }
  .modal {
    max-height: calc(100dvh - 24px);
    padding: 20px;
    border-radius: 16px;
  }
  .modal-top {
    top: -20px;
    padding-top: 8px;
    padding-bottom: 16px;
    gap: 12px;
  }
  .modal-top h2 {
    font-size: 1.25rem;
  }
  .settings-row {
    gap: 16px;
    padding: 18px 0;
  }
  .settings-row b {
    font-size: 0.875rem;
  }
  .settings-row p {
    font-size: 0.75rem;
  }
  .preview-instructions {
    font-size: 0.875rem;
  }
  .preview-muscle {
    font-size: 0.875rem;
  }
  .exercise-image-preview .art {
    aspect-ratio: 2.6/1;
  }
  .modal .buttons .btn {
    flex: 1;
  }
  .site-footer {
    position: relative;
  }
  .storage-error {
    padding: 16px;
    font-size: 0.8125rem;
  }
}
@media (max-width: 359px) {
  .main {
    padding-inline: 16px;
  }
  .masthead {
    padding-inline: 16px;
  }
  .program-heading {
    gap: 8px;
  }
  .program-heading h1 {
    font-size: 1.5rem;
  }
  .session-open {
    padding: 20px 16px 16px;
  }
  .session-cover-top {
    font-size: 0.5625rem;
  }
  .session-cover-heading h2 {
    font-size: 2.375rem;
  }
  .session-cover-heading p {
    font-size: 0.875rem;
  }
  .cover-movement p {
    font-size: 0.6875rem;
  }
  .cover-movement p > span {
    padding: 0 2px;
  }
  .cover-meta {
    font-size: 0.5625rem;
  }
  .program-bottom {
    gap: 0 8px;
  }
  .program-bottom .link-btn {
    font-size: 0.625rem;
  }
  .bottom-nav button {
    font-size: 0.6875rem;
    gap: 6px;
  }
  .session-main-action {
    left: 16px;
    right: 16px;
    width: calc(100% - 32px);
  }
  .movement-prescription {
    font-size: 0.6875rem;
  }
  .progress-meta > span:nth-child(2) {
    font-size: 0.625rem;
  }
  .rest-display > strong {
    font-size: 4.25rem;
  }
  .microstat b {
    font-size: 1.25rem;
  }
  .live-header h1 {
    font-size: 1.5rem;
  }
  .console-heading {
    gap: 8px;
  }
  .set-circles {
    gap: 5px;
  }
  .set-circle {
    width: 24px;
    height: 24px;
  }
  .rep-target strong {
    font-size: 2.25rem;
  }
  .rep-target > span {
    font-size: 0.6875rem;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .session-spine,
  .movement-button,
  .btn,
  .icon-btn,
  .day-tab {
    transition:
      background-color 0.18s,
      color 0.18s,
      filter 0.18s;
  }
  .session-open {
    animation: session-enter 0.32s ease-out;
  }
  @keyframes session-enter {
    from {
      opacity: 0.6;
    }
    to {
      opacity: 1;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.spine-day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.spine-day > .icon {
  width: 15px;
  height: 15px;
  color: var(--primary);
}
@media (min-width: 650px) and (max-height: 850px) {
  .masthead {
    height: 80px;
  }
  .nav button.active:after {
    bottom: -9px;
  }
  .main {
    padding-top: 24px;
  }
  .program-heading {
    margin-bottom: 20px;
  }
  .program-heading h1 {
    font-size: 2rem;
  }
  .program-heading .eyebrow {
    margin-bottom: 6px;
  }
  .session-mural {
    min-height: 500px;
  }
  .session-open {
    padding: 20px 24px 16px;
  }
  .session-cover-heading {
    padding: 16px 0;
  }
  .session-cover-heading h2 {
    font-size: 2.75rem;
  }
  .session-cover-heading p {
    font-size: 1rem;
    margin-top: 8px;
  }
  .cover-art > .art {
    max-height: 130px;
  }
  .cover-movement {
    padding: 12px 0;
  }
  .cover-meta {
    padding-top: 10px;
    margin-top: 4px;
  }
  .cover-start {
    min-height: 48px;
  }
  .cover-board {
    min-height: 44px;
  }
  .program-bottom {
    margin-top: 10px;
  }
}
@media (max-width: 649px) {
  .live-header {
    margin-bottom: 16px;
  }
  .live-header h1 {
    font-size: 1.5rem;
  }
  .live-controls {
    margin-top: 8px;
    border: 0;
    padding-top: 0;
  }
  .exercise-console .rep-target {
    margin: 12px 0;
  }
  .log-inputs {
    margin: 16px 0;
  }
  .stage-foot > .link-btn {
    min-height: 32px;
  }
  .rest-display {
    min-height: 200px;
  }
  .rest-display > strong {
    font-size: 4.5rem;
  }
  .rest-sound {
    margin-top: 16px;
  }
  .is-rest .next-set-label {
    font-size: 0.8125rem;
  }
  .is-rest .rep-target {
    margin: 12px 0;
  }
}
.session-insight {
  color: var(--muted);
  font-size: 0.75rem;
  margin: 0 0 24px;
}
.session-insight > strong {
  color: var(--ink);
  font-weight: 500;
}
.completion-receipt {
  max-width: 1040px;
  margin: 56px auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
}
.receipt-check {
  display: flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary);
  border-radius: 50%;
  color: var(--primary);
  margin-bottom: 40px;
}
.receipt-check .icon {
  width: 28px;
  height: 28px;
}
.receipt-heading h1 {
  font-size: clamp(2rem, 4.5vw, 4.5rem);
  margin: 16px 0 24px;
  line-height: 1.05;
  max-width: 10ch;
}
.receipt-heading > p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.9375rem;
}
.receipt-record {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.receipt-record dl {
  margin: 16px 0 24px;
}
.receipt-record dl > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.receipt-record dt {
  font-size: 0.8125rem;
  color: var(--muted);
}
.receipt-record dd {
  font: 500 1.5rem/1.4 var(--font-mono);
  letter-spacing: -0.06em;
  margin: 0;
}
.receipt-record > p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 24px 0;
}
.receipt-record > .link-btn {
  display: flex;
  margin: 12px auto 0;
  font-size: 0.8125rem;
}
@media (max-width: 899px) {
  .completion-receipt {
    gap: 32px;
  }
  .receipt-record {
    padding: 24px;
  }
  .receipt-record dd {
    font-size: 1.25rem;
  }
}
@media (max-width: 649px) {
  .completion-receipt {
    display: block;
    margin: 20px 0;
  }
  .receipt-check {
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
  }
  .receipt-heading h1 {
    font-size: 2.75rem;
    max-width: none;
    margin: 12px 0 20px;
  }
  .receipt-heading > p {
    font-size: 0.875rem;
  }
  .receipt-record {
    margin-top: 32px;
    padding: 24px;
  }
  .receipt-record dl > div {
    padding: 16px 0;
  }
  .receipt-record dd {
    font-size: 1.375rem;
  }
}
/* On tablets, full session pages replace the narrow desktop spines. */
@media (min-width: 650px) and (max-width: 899px) {
  .mobile-week {
    display: block;
    margin-bottom: 20px;
  }
  .session-mural {
    display: block;
    min-height: 0;
  }
  .session-spine {
    display: none;
  }
  .session-open {
    padding: 28px 32px;
    border: 0;
    min-height: 0;
  }
  .session-cover-heading h2 {
    font-size: 3.5rem;
  }
  .cover-art > .art {
    max-height: 180px;
  }
  .cover-actions {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
  }
  .cover-meta {
    margin-top: 16px;
  }
  .program-heading {
    gap: 16px;
  }
}
