@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@700&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg:#151516;
  --panel:#222224;
  --ink:#f8f4ee;
  --muted:#c4bfba;
  --line:#3f3c3d;
}
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.5 'DM Sans',sans-serif; }
.shell {
  max-width:1180px;
  margin-inline:auto;
  padding-left:calc(20px + env(safe-area-inset-left, 0px));
  padding-right:calc(20px + env(safe-area-inset-right, 0px));
}
.shell > header { padding-top:calc(env(safe-area-inset-top, 0px) + 12px); gap:12px; }
header, footer, .topline, .row { display:flex; align-items:center; justify-content:space-between; gap:16px; }
header { min-height:84px; }
.brand { display:flex; align-items:center; gap:12px; color:var(--ink); text-decoration:none; font-weight:800; letter-spacing:.13em; font-size:14px; }
.brand span { background:var(--brand-red); color:#190f11; border-radius:4px; padding:5px 9px; font-size:25px; font-style:italic; font-family:'Oswald',sans-serif; letter-spacing:-.06em; }
nav { display:flex; gap:28px; border-bottom:1px solid var(--line); margin-bottom:26px; overflow:auto; }
nav a { white-space:nowrap; text-decoration:none; padding:10px 0 12px; color:var(--muted); font-weight:700; }
nav a[aria-current] { color:var(--brand-red); border-bottom:2px solid var(--brand-red); }
h1,h2,h3,p,figure { margin:0; }
h1,h2,h3 { line-height:1; }
h1,h2 { font-family:'Oswald','Arial Narrow',sans-serif; font-weight:800; text-transform:uppercase; }
h1 { font-size:clamp(46px,7vw,90px); letter-spacing:-.012em; line-height:.85; }
h1 em { font-style:normal; color:var(--brand-red); }
h2 { font-size:clamp(40px,6vw,66px); }
h3 { font-size:21px; }
p { color:var(--muted); }
button,input,textarea,select { font:inherit; }
button,.button { min-height:44px; cursor:pointer; background:var(--brand-red); color:#1b1012; border:1px solid transparent; border-radius:5px; font-weight:800; padding:9px 15px; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; gap:14px; }
button:hover,.button:hover { filter:brightness(1.12); }
.quiet { background:transparent; color:inherit; border-color:var(--line); }
:focus-visible { outline:2px solid var(--brand-red); outline-offset:3px; }
.hero { display:grid; grid-template-columns:1.5fr 1fr; align-items:stretch; overflow:hidden; background:#1d1b1d; border:1px solid var(--line); border-radius:8px; }
.hero-copy { padding:clamp(24px,4.5vw,60px); display:grid; align-content:center; justify-items:start; gap:22px; }
.hero-copy p { max-width:370px; }
.hero-portrait { position:relative; min-height:100%; overflow:hidden; isolation:isolate; background:#655748; }
.hero-portrait img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 61%; }
.hero-portrait::after { content:''; position:absolute; inset:0; background:linear-gradient(0deg,#141011e8,transparent 45%); }
.hero-portrait figcaption { position:absolute; z-index:1; left:20px; right:15px; bottom:16px; font-size:17px; font-weight:800; }
.kicker { color:var(--brand-red); font-size:12px; letter-spacing:.12em; text-transform:uppercase; font-weight:800; }
.training-block { margin-top:24px; background:#f1ece4; color:#231f1f; border-radius:8px; padding:clamp(19px,3vw,36px); display:grid; grid-template-columns:1fr 1.1fr; gap:28px; align-items:center; scroll-margin-top:16px; }
.block-title { display:grid; gap:9px; }
.training-block p { color:#5f5552; }
.training-block .kicker { color:var(--brand-red); }
.schedule { border:1px solid #d4c7c1; border-radius:7px; background:#faf6ef; padding:17px; display:grid; gap:11px; }
.schedule .quiet { justify-self:start; border-color:#a79791; }
.schedule-intro { font-size:14px; }
.schedule-options { display:grid; gap:8px; }
.schedule-options button { display:grid; justify-items:start; gap:3px; text-align:left; width:100%; background:transparent; color:#262021; border:1px solid #b6a8a2; padding:10px 12px; }
.schedule-options button span { color:#5f5552; font-size:14px; font-weight:500; line-height:1.4; }
.schedule-options button[aria-pressed=true] { background:#262021; border-color:#262021; color:#fff7ee; }
.schedule-options button[aria-pressed=true] span { color:#eee1da; }
.segments { display:flex; background:#eae0d9; border-radius:6px; padding:3px; gap:3px; }
.segments button { min-height:38px; color:#262021; background:transparent; padding:5px 12px; font-size:14px; }
.segments button[aria-pressed=true] { background:#262021; color:#fff7ee; }
.section { margin:36px 0 14px; font-size:40px; }
.grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.card { display:grid; align-content:start; gap:12px; background:var(--panel); border:1px solid var(--line); border-radius:7px; padding:22px; min-width:0; overflow-wrap:anywhere; }
.card button { justify-self:start; }
.card .price { font-size:35px; color:var(--ink); font-weight:800; }
.price small { font-size:14px; color:var(--muted); }
footer { margin-top:36px; border-top:1px solid var(--line); padding:20px 0; color:var(--muted); font-size:12px; }
.list,.stack { display:grid; gap:14px; }
.list .card { display:block; }
.actions { display:flex; gap:8px; flex-wrap:wrap; }
.heading { display:grid; gap:9px; margin-bottom:20px; }
dialog { background:var(--panel); color:var(--ink); border:1px solid var(--line); border-radius:10px; width:min(92vw,590px); max-height:90vh; padding:25px; }
dialog h2 { font-size:43px; }
dialog::backdrop { background:#080809c7; }
#close { margin-top:16px; }
label { display:grid; gap:5px; font-weight:700; }
input,textarea,select { width:100%; background:var(--bg); color:var(--ink); border:1px solid #756969; border-radius:5px; padding:9px 11px; }
textarea { min-height:100px; }
pre { white-space:pre-wrap; font:inherit; color:var(--muted); overflow-wrap:anywhere; margin:0; }
#notice { position:fixed; right:16px; bottom:16px; max-width:calc(100% - 32px); background:var(--brand-red); color:#211013; border-radius:6px; font-weight:700; padding:10px 16px; }
#notice:empty { display:none; }
@media(max-width:730px) {
  header { min-height:68px; }
  .brand { font-size:11px; letter-spacing:.08em; gap:8px; }
  header button { font-size:13px; }
  .hero { grid-template-columns:1fr; }
  .hero-copy { gap:17px; }
  h1 { font-size:clamp(36px,11vw,64px); }
  .hero-portrait { min-height:208px; }
  .training-block,.grid { grid-template-columns:1fr; }
  .training-block { gap:16px; }
  .row { align-items:flex-start; flex-direction:column; }
  .topline { flex-wrap:wrap; }
  .topline > .heading { margin-bottom:0; }
  main > .topline { margin-bottom:16px; }
}
.section-bar { margin:22px 0 12px; }
.currency-select { justify-self:start; }
.membership-card .renewal { color:var(--ink); font-weight:700; margin-top:-10px; }
.checkout-note { font-size:13px; }
.builder-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.exercise-editor { border:1px solid var(--line); border-radius:7px; padding:16px; min-width:0; }
.exercise-editor legend { color:var(--brand-red); padding:0 6px; font-weight:700; }
.exercise-editor > button { margin-top:12px; }
.check-label { display:flex; align-items:center; gap:9px; }
.check-label input { width:20px; height:20px; }
.set-heading,.set-row { display:grid; grid-template-columns:32px minmax(70px,1fr) minmax(85px,1fr); align-items:center; gap:10px; }
.set-heading { font-size:12px; color:var(--muted); }
input:disabled,textarea:disabled { opacity:.8; }
details summary { cursor:pointer; color:var(--muted); padding:8px 0; }
@media(max-width:730px) { .builder-fields { grid-template-columns:1fr; } }
.progression-summary { border-left:3px solid var(--brand-red); padding-left:12px; font-size:14px; }
.set-suggestion { font-size:13px; margin:-4px 0 8px 42px; }
.set-suggestion strong { color:var(--ink); }
.sample-page { max-width:780px; margin:0 auto; }
.sample-page > .heading { margin:8px 0; }
.split-choice { display:grid; gap:12px; margin:10px 0; padding:16px; background:#f1ece4; color:#262021; border-radius:7px; }
.split-choice h3 { font-size:18px; }
.section-intro { margin-bottom:14px; }

.invite-button {
  min-height:44px;
  padding:8px 14px;
  font-size:14px;
  font-weight:600;
  letter-spacing:.015em;
  line-height:1.3;
  border:1px solid #504947;
  border-radius:8px;
  background:rgba(245,239,232,.025);
  color:#ded7d0;
  transition:background .15s ease,border-color .15s ease;
}
.invite-button:hover { background:rgba(245,239,232,.07); border-color:#81736c; filter:none; }
.invite-button:focus-visible { outline:2px solid var(--brand-red); outline-offset:3px; }

.exercise-video { display:block; width:100%; height:auto; aspect-ratio:16/9; border-radius:8px; background:#080808; margin-top:16px; }

.workout-library { margin:12px 0; }
.workout-library > summary { list-style:none; }
.workout-library > summary::-webkit-details-marker { display:none; }
.workout-library > .stack { margin-top:12px; align-items:start; }
.workout-library h4 { margin:0; }
.workout-exercise { margin-top:12px; }
.workout-exercise h4 { margin:12px 0; }
.exercise-prescription { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px 12px; }
.exercise-prescription > label:nth-child(n+3) { grid-column:1 / -1; }
.workout-exercise-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.workout-exercise-bin { flex:none; width:44px; padding:0; }

.split-actions { flex-direction:column; align-items:flex-start; }
.equipment-options { margin:0; }
.equipment-options > summary { list-style:none; }
.equipment-options > summary::-webkit-details-marker { display:none; }
.equipment-options ul { margin:8px 0 0; padding-inline-start:20px; }
.equipment-options li + li { margin-top:6px; }

.builder-settings { margin-block:12px; }
.builder-settings > summary { cursor:pointer; }
.builder-settings[open] > summary { margin-bottom:12px; }

.workout-completion { text-align:center; justify-items:center; padding-block:clamp(36px,8vw,88px); }
.workout-completion .actions { justify-content:center; }
.completion-mark { display:inline-grid; place-items:center; width:72px; height:72px; border:1px solid var(--brand-red); border-radius:50%; color:var(--brand-red); font-size:36px; margin-bottom:16px; }
@media (prefers-reduced-motion:no-preference) {
  .completion-mark { animation:completion-mark .65s ease-out both; }
}
@keyframes completion-mark {
  0% { opacity:0; transform:scale(.65) rotate(-22deg); }
  65% { transform:scale(1.12) rotate(8deg); }
  100% { opacity:1; transform:scale(1) rotate(0); }
}

.training-hub { max-width:760px; }
.hub-programme { border-inline-start:3px solid var(--brand-red); }
.hub-programme h3 { font-size:clamp(24px,4vw,36px); margin-top:5px; }

.training-hub .heading h2 { text-transform:none; }

.workout-bests { margin-block:12px; }
.workout-bests strong { color:var(--brand-red); }
.workout-bests ul { margin:4px 0 0; padding-inline-start:20px; }
.workout-completion .workout-bests { text-align:start; }

.exercise-record { display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 16px; padding:10px 0; }
.exercise-record + .exercise-record { border-top:1px solid var(--line); }
.exercise-record span { color:var(--muted); }

.exercise-pbs { max-width:620px; }
.exercise-pbs h2 { font-family:inherit; font-size:clamp(22px,4vw,30px); font-weight:700; text-transform:none; margin-bottom:14px; }
.exercise-records { border-block:1px solid var(--line); font-size:14px; }
.exercise-record span { font-variant-numeric:tabular-nums; }

.session-exercise-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 12px; }
.session-exercise-heading .button, #session-log .equipment-options > summary { font-size:13px; padding-inline:10px; }

#session-log .equipment-options { justify-self:end; width:max-content; max-width:100%; }
#session-log .equipment-options > select { display:block; margin-top:8px; max-width:100%; }

.workout-guide { display:grid; grid-template-columns:44px minmax(0,1fr); align-items:start; gap:10px; }
.workout-guide-avatar { position:relative; display:block; width:44px; aspect-ratio:1; overflow:hidden; border-radius:50%; }
.workout-guide-avatar img { position:absolute; left:-20%; top:-10%; width:140%; max-width:none; height:auto; }
.workout-guide-bubble { position:relative; display:grid; gap:8px; padding:12px; border:1px solid var(--line); border-radius:8px; background:var(--bg); }
.workout-guide-bubble::before { content:''; position:absolute; left:-5px; top:17px; width:8px; height:8px; transform:rotate(45deg); background:var(--bg); border-left:1px solid var(--line); border-bottom:1px solid var(--line); }
.workout-guide-bubble h4 { margin:0; }
.workout-guide-bubble p:not(.kicker) { font-size:14px; }
[data-workout-guide-step="1"] input[name="e0s0weight"], [data-workout-guide-step="2"] input[name="e0s0result"] { outline:2px solid var(--brand-red); outline-offset:2px; }

[data-workout-guide-step="3"] .session-exercise-heading .button, [data-workout-guide-step="4"] .swap-open, [data-workout-guide-step="5"] [data-training="use-easier"] { outline:2px solid var(--brand-red); outline-offset:2px; }

.subscriber-section { margin-top: 32px; }
#client-list .subscriber-empty {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.45;
  color: var(--muted);
}

[hidden] { display: none !important; }
.password-field { position: relative; }
.password-field input { padding-right: 3.35rem; }
.password-toggle { position: absolute; inset: 0 0 0 auto; padding: 0; width: 3rem; display: grid; place-items: center; border: 0; }
.password-toggle.password-visible::after { content: ''; position: absolute; width: 22px; height: 2px; background: currentColor; transform: rotate(-45deg); }

.hub-welcome { max-width: 32rem; }
.hub-welcome-message { white-space: pre-wrap; overflow-wrap: anywhere; }
#hub-welcome h4 { overflow-wrap: anywhere; }

.library-search { max-width: 28rem; }


.training-progress { width: 100%; height: .6rem; accent-color: var(--brand-red); }
.lift-chart { display: block; width: 100%; max-width: 37rem; height: auto; margin-top: .65rem; }
.chart-dates { display: flex; justify-content: space-between; gap: .5rem; max-width: 37rem; font-size: .875rem; color: var(--muted); }

.lift-trend { color: var(--ink); }
.lift-trend[data-direction="up"] { color: #80d9ae; }
.lift-trend[data-direction="down"] { color: var(--brand-red); }
.lift-trend-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .85rem; }
.lift-trend-summary strong { font-size: clamp(1.5rem, 6vw, 2.25rem); }
.lift-grid { stroke: var(--line); }
.lift-tick { fill: var(--muted); font-size: 11px; }
.lift-trend .chart-dates { padding-inline: 13% 5%; }
.lift-metric { font-size: .875rem; color: var(--muted); margin-top: .75rem; }
.weekly-training-progress { border-top: 1px solid var(--line); padding-top: .9rem; }

.calendar-toolbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: .4rem; align-items: center; margin-bottom: .9rem; }
.calendar-toolbar h3 { text-align: center; font-size: clamp(1rem, 4.2vw, 1.35rem); }
.calendar-toolbar button { padding-inline: .65rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .2rem; }
.calendar-weekday { text-align: center; color: var(--muted); font-size: .75rem; padding-block: .25rem; }
.calendar-grid .calendar-day { min-width: 0; min-height: 2.85rem; padding: .2rem 0; display: grid; justify-items: center; align-content: center; gap: .15rem; border-color: transparent; }
.calendar-day[aria-current="date"] { text-decoration: underline; text-underline-offset: .18em; }
.calendar-grid .calendar-day[aria-pressed="true"] { border-color: var(--brand-red); color: var(--ink); }
.calendar-dots, .calendar-legend span { display: inline-flex; align-items: center; gap: .25rem; min-height: .4rem; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: .45rem 1rem; margin-top: .85rem; font-size: .875rem; }
.calendar-planned, .calendar-completed { width: .42rem; height: .42rem; border-radius: 50%; background: var(--brand-red); display: inline-block; }
.calendar-completed { background: #80d9ae; }

#equipment-settings fieldset label{display:flex;align-items:center;gap:.65rem;padding:.35rem 0}#equipment-settings input[type=checkbox]{width:1.15rem;height:1.15rem;min-height:0}.exercise-muscles{font-size:.9rem}

.demo-player { max-width: 52rem; margin: auto; padding: 1rem; }
.demo-player video { width: 100%; max-height: 78vh; background: black; }
video::cue { color: white; background: rgba(0,0,0,.78); font-size: 65%; }

button.programme-mic { width:52px; height:52px; min-width:52px; padding:0; border:0; border-radius:50%; background:var(--brand-red); color:#191416; display:inline-grid; place-items:center; }
.programme-mic .stop-shape,.programme-mic[data-recording="true"] .mic-shape { display:none; }
.programme-mic[data-recording="true"] .stop-shape { display:block; }

.workout-exercise-heading {flex-wrap:wrap}
.workout-exercise-heading h4 {flex:1 1 9rem}
.exercise-sort {margin:1rem 0}
.sort-row {display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.35rem .5rem;border-bottom:1px solid #514c4e}
.sort-row.dragging {background:#393236;outline:1px solid currentColor}
.sort-grip {min-width:46px;min-height:46px;touch-action:none;user-select:none;cursor:grab}

.member-profile {display:none}
.member-view header #mode,.member-view header #client-sign-out {display:none}
.member-view .member-profile {display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#28282b;color:var(--ink)}
.member-profile svg,.member-tabs svg,.coach-contact svg {width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

#nav.member-tabs {
  position:fixed;
  inset:auto 0 0;
  z-index:20;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  margin:0;
  padding:0 max(calc(20px + env(safe-area-inset-right, 0px)), calc((100% - 1140px)/2))
    env(safe-area-inset-bottom, 0px) max(calc(20px + env(safe-area-inset-left, 0px)), calc((100% - 1140px)/2));
  background:var(--bg);
  border:0;
  border-top:1px solid var(--line);
  overflow:visible;
}
#nav.member-tabs a {
  display:grid;
  place-content:center;
  justify-items:center;
  height:56px;
  gap:2px;
  padding:0;
  border:0;
  font-size:.8125rem;
  line-height:1.2;
}
#nav.member-tabs a[aria-current="page"] {color:var(--brand-red)}
.member-hub {margin-inline:auto;width:100%;gap:16px}
.hub-heading h2 {font-size:clamp(30px,5vw,42px);text-transform:none;margin:4px 0}
.hub-heading p,.member-hub small {font-size:.875rem;color:var(--muted)}
.hub-tile,.hub-update {background:#222225;border:0;border-radius:16px;padding:20px}
.today-card {display:grid;gap:12px;background:#262629}
.today-card h3 {font:700 clamp(30px,5vw,46px)/1.05 'Oswald',sans-serif}
.today-card button,.today-card .button {width:100%;min-height:48px;border-radius:10px}
.hub-chips {display:flex;flex-wrap:wrap;gap:6px}
.hub-chips span {padding:4px 10px;border-radius:20px;background:#343437;font-size:.875rem}
.hub-days {display:flex;justify-content:space-between;gap:4px;text-align:center;margin:16px 0}
.hub-days i {display:grid;place-items:center;border-radius:50%;width:clamp(23px,7vw,34px);aspect-ratio:1;border:1px solid #55555a;margin:0 auto 3px;font-style:normal}
.hub-days .done {background:var(--brand-red);color:#151516;border-color:var(--brand-red)}
.hub-days .today {outline:2px solid var(--brand-red);outline-offset:2px}
.hub-streak {padding-top:12px;padding-bottom:4px;border-top:1px solid var(--line);font-size:.9rem;gap:16px;flex-wrap:wrap}
.hub-update,.coach-contact {display:flex;align-items:center;gap:12px}
.hub-update {padding:4px 12px;font-size:.875rem;justify-content:space-between}
.hub-update button {border:0}
.coach-contact {text-decoration:none;color:inherit}
.coach-contact img {width:46px;height:46px;object-fit:cover;border-radius:50%}
.coach-contact small {display:block}
.coach-contact svg {margin-left:auto}

:root{--bg:#121212;--panel:#1e1e20;--raised:#2a2a2d;--line:#2c2c2f;--ink:#f5f2ec;--muted:#a9a6a0;--subtle:#8e8b85;--good:#5bc489;--warn:#f2b33d}
h1,h2,.hub-heading h2,.today-card h3{font:700 clamp(30px,4vw,34px)/1.16 Oswald,'Arial Narrow',sans-serif;letter-spacing:-.015em;text-transform:none}
h3{line-height:1.2}
button,.button,.today-card button,.today-card .button{border-radius:13px;min-height:44px}
button:not(.quiet):not(.split-tile),.button:not(.quiet){color:#121212}
.card,.hub-tile,.hub-update,.compact-list,dialog,.split-choice,.training-block,.hero,.schedule{background:var(--panel);color:var(--ink);border:0;border-radius:20px}
.hub-chips span,.schedule,.schedule-options button[aria-pressed=true],.segments,.split-choice .segments,.event-icon,.initial-avatar,.mini-avatar{background:var(--raised);color:var(--ink)}
.training-block p,.schedule-options button,.segments button,.split-choice p{color:var(--muted)}
.segments button,.filter-chips button{min-height:44px}
.segments button[aria-pressed=true]{background:var(--panel);color:var(--ink)}
.brand{text-transform:uppercase}.brand span{font-style:normal;color:#121212}
.az-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round;vertical-align:middle;flex:none}
#account-menu{position:relative;z-index:25}#account-menu summary,.more summary,.client-options>summary{display:grid;place-items:center;height:44px;min-width:44px;cursor:pointer;list-style:none}
#account-menu summary{border-radius:50%;background:var(--raised);font-weight:700}
#account-menu>div{position:absolute;right:0;top:50px;background:var(--raised);width:220px;padding:8px;border-radius:16px;box-shadow:0 12px 35px #0008}
#account-menu a,#account-menu button{display:block;width:100%;min-height:44px;padding:10px 12px;background:none;color:var(--ink);text-align:left;text-decoration:none;font-weight:500}
.page-line,.stat-line,.person-line,.inbox-row,.session-actions,.filter-chips{display:flex;align-items:center;gap:12px}
.page-line{justify-content:space-between;margin-bottom:18px}
.list-label{font:700 .8rem 'DM Sans',sans-serif;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);margin:18px 0 10px}
.compact-list{padding:0 16px}
.client-item{position:relative;padding:14px 42px 14px 0}
.client-item+.client-item,.inbox-row+.inbox-row{border-top:1px solid var(--line)}
.client-options>summary{position:absolute;right:0;top:14px;font-size:22px}
.client-options>div{margin-top:10px}
.initial-avatar,.mini-avatar,.event-icon{border-radius:50%;width:42px;height:42px;display:inline-grid;place-items:center;position:relative;flex:none;font-weight:700}
.initial-avatar i,.unread-dot{width:9px;height:9px;border-radius:50%;background:var(--warn)}.initial-avatar i{position:absolute;bottom:1px;right:1px;outline:2px solid var(--panel)}.initial-avatar i.recent{background:var(--good)}
.person-copy{min-width:0;flex:1}.person-copy strong,.person-copy small,.preview-list small{display:block;overflow-wrap:anywhere}.person-copy small,.inbox-row>small,#client-count,.stat-grid small{color:var(--muted)}
.assign-link{padding:10px 4px;color:var(--brand-red);font-weight:700;text-decoration:none}
.filter-chips{flex-wrap:wrap;gap:6px;margin:14px 0}.filter-chips button{padding:5px 12px;font-size:.875rem;border-radius:24px}.filter-chips [aria-pressed=true]{background:var(--raised);border-color:transparent}
.fab{position:fixed;bottom:calc(90px + env(safe-area-inset-bottom));right:max(20px,calc((100vw - 1100px)/2));z-index:15;background:var(--brand-red);color:#121212;width:54px;height:54px;display:grid;place-items:center;font-size:30px;border-radius:50%;text-decoration:none}
.split-tiles,.stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.split-tiles .split-tile{display:grid;justify-items:start;gap:5px;text-align:left;padding:18px;background:var(--panel);color:var(--ink);border:0;border-radius:20px}
.split-tile b{font:700 36px Oswald,sans-serif;color:var(--brand-red)}.split-tile small,.split-tile span{color:var(--muted)}
.dashed{border-style:dashed;min-height:60px}.mini-avatar{width:28px;height:28px;font-size:.75rem}
#nav.member-tabs a{position:relative}
.nav-badge{position:absolute;top:0;left:calc(50% + 7px);padding:0 5px;background:var(--brand-red);border-radius:12px;color:#121212;font-size:.7rem}
.inbox-row{text-decoration:none;color:inherit;padding:14px 0}.inbox-row>small{white-space:nowrap;font-size:.75rem}
.event-icon.signup,.hub-streak .az-icon,.stat-grid .az-icon{color:var(--brand-red)}.event-icon.workout,.new-mark{color:var(--good)}
.unread-dot{background:var(--brand-red);flex:none}.speech-note{display:block;background:var(--raised);border-radius:3px 12px 12px;padding:8px 12px;margin-top:8px}
.stat-grid strong{display:block;font-size:1.4rem}.stat-line{justify-content:space-between}.stat-ring{width:36px;height:36px;border-radius:50%;background:conic-gradient(var(--brand-red) var(--pct),var(--raised) 0);mask:radial-gradient(circle,transparent 52%,black 55%)}
.exercise-record{align-items:center;justify-content:start}.exercise-record>span{margin-left:auto}.new-mark{font-size:.68rem;letter-spacing:.06em}
.lift-trend[data-direction=up]{color:var(--good)}.lift-trend[data-direction=down]{color:var(--warn)}.lift-trend-summary strong{color:var(--ink)}.lift-trend-summary span{background:var(--raised);border-radius:20px;padding:3px 10px}
.session-actions>button:last-child{width:48px;flex:none}.coach-contact svg{box-sizing:content-box;background:var(--raised);border-radius:50%;padding:10px}
#notice{bottom:calc(82px + env(safe-area-inset-bottom));z-index:30}
button.secondary-action,a.button.secondary-action,button.secondary-action:not(.quiet):not(.split-tile){background:transparent;color:var(--ink);border:1px solid var(--line)}
#app .list>.card.stack{display:grid}
#app .hero,#app .progression-summary,.hub-programme{border-left:0}
.training-block .kicker{color:var(--brand-red)}
.training-block .schedule-options button{color:var(--ink)}
.training-block .schedule-options button span{color:var(--muted)}
#account-menu summary::-webkit-details-marker,.more summary::-webkit-details-marker,.client-options>summary::-webkit-details-marker{display:none}
.pe,.editor-sheet{--chip:#2a2a2d;--muted:#a9a6a0;color:#f5f2ec}.pe{padding-bottom:90px}.pe button,.editor-sheet button{min-height:44px;border-radius:14px}.pe-head,.pe-title,.pe-line,.pe-sheet-top,.pe-step,.pe-save,.pe-ex{display:flex;align-items:center;gap:10px}.pe-head>div,.pe-sheet-top>div{flex:1;min-width:0}.pe h2,.editor-sheet h2{font-family:Oswald,sans-serif;font-size:28px;line-height:1.15;margin:0}.pe small,.editor-sheet small{color:#a9a6a0}.pe .round{width:44px;height:44px;border-radius:50%;padding:0}.pe-tabs{display:flex;gap:8px;overflow-x:auto;padding:4px 0}.pe-tabs button{white-space:nowrap;background:#2a2a2d;color:#f5f2ec;border:0;padding:8px 14px}.pe-tabs [aria-pressed=true]{box-shadow:inset 0 0 0 1.5px var(--brand-red)}.pe .dashed{border:1px dashed #8e8b85}.pe-title,.pe-line,.pe-save{justify-content:space-between}.pe-card,.pe-stats>div,.pe-day{background:#1e1e20;border-radius:20px;padding:12px}.pe .pe-row{flex:1;min-width:0;text-align:left;display:flex;align-items:center;gap:12px;background:transparent;border:0;padding:4px}.pe-row small{display:block}.pe-ex{border-bottom:1px solid #2c2c2f}.pe-thumb{position:relative;background:#2a2a2d;flex:none;width:52px;height:52px;border-radius:12px;overflow:hidden;display:grid;place-items:center}.pe-thumb img{position:absolute;width:100%;height:100%;object-fit:cover}.pe-thumb i{position:relative;color:white;background:#121212b0;border-radius:50%;padding:1px 6px}.pe .sort-grip{border:0;touch-action:none}.pe-add{width:100%;margin-top:6px}.pe-save,.pe-bottom{position:fixed;z-index:5;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,760px);background:#1e1e20;padding:12px 18px max(12px,env(safe-area-inset-bottom));box-sizing:border-box}.pe-save .changed:before{content:'●';color:#f2b33d;margin-right:6px}body:has(.pe) #nav{display:none}#modal:has(.editor-sheet){margin:auto auto 0;width:min(100%,640px);max-height:88dvh;box-sizing:border-box;border:0;border-radius:22px 22px 0 0;background:#1e1e20;color:#f5f2ec;padding-bottom:max(16px,env(safe-area-inset-bottom))}#modal::backdrop{background:#000a}.pe-handle{width:42px;height:4px;border-radius:4px;background:#777;margin:auto}.pe-sheet-top video{width:85px;max-height:95px}.pe-step button{width:44px;padding:0}.pe-results{display:grid;gap:4px}.pe .danger,.editor-sheet .danger{color:var(--brand-red)}.pe-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.pe-stats strong,.pe-stats small{display:block}.pe .good{color:#5bc489}.pe .low{color:#f2b33d}.pe-note{position:relative}.pe-note textarea{padding-bottom:60px}.pe-note [data-record]{position:absolute;bottom:10px;right:10px}.pe-day meter{width:100%}.pe-chips{display:flex;gap:6px;flex-wrap:wrap}.pe-chips span{padding:4px 10px;background:#2a2a2d;border-radius:14px}.pe .pe-bottom{display:flex;gap:10px;justify-content:flex-end}.pe-card button,.editor-sheet button{font-family:inherit}
.pe-muscle{display:grid;grid-template-columns: minmax(100px,1fr) 2fr 2em;align-items:center;gap:8px;margin:6px 0}.pe-muscle>span{height:5px;background:#2a2a2d;border-radius:4px}.pe-muscle i{display:block;height:100%;background:var(--brand-red);border-radius:4px}.pe-muscle.low i{background:#f2b33d}.pe-muscle b{text-align:right}.pe [data-profile] span:empty{display:none}
#session-log .set-heading,#session-log .set-row{grid-template-columns:24px minmax(0,1fr) minmax(0,1fr) 44px;gap:8px}#session-log .set-done{display:grid;min-height:44px;place-items:center}#session-log .set-done input{width:20px;height:20px;min-height:20px;accent-color:var(--brand-red)}
.gym-screen{padding-bottom:130px}.gym-grid,.gym-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.gym-presets{display:flex;flex-wrap:wrap}.gym-grid label{display:flex;align-items:center;gap:8px;padding:10px;background:#2a2a2d;border-radius:12px;min-height:48px;font-size:14px}.gym-grid label:has(:checked){box-shadow:inset 0 0 0 1px var(--brand-red);background:color-mix(in srgb, var(--brand-red) 14%, var(--panel, #1e1e20))}.gym-grid input{width:18px;min-height:18px;accent-color:var(--brand-red)}.gym-grid small{margin-left:auto;color:#a9a6a0}.gym-group{padding:12px 0;border-bottom:1px solid #2c2c2f}.gym-group summary{padding:12px 0;cursor:pointer;font-weight:700}.gym-group summary small{float:right;font-weight:400;color:#a9a6a0}.gym-group>button{margin:4px 0 10px}.gym-foot{position:sticky;bottom:70px;background:#1e1e20;padding:14px;border-radius:14px}.gym-foot small,.profile-rows small{display:block}.profile-rows{border-radius:18px;background:#1e1e20;padding:4px 14px}.profile-rows>*{display:flex;align-items:center;justify-content:space-between;min-height:48px;color:inherit;text-decoration:none;border:0;background:transparent}.profile-rows span{color:#a9a6a0}.focus-workout{display:grid;gap:10px}.focus-workout .exercise-video{width:100%;margin:0}.focus-workout .pe-stats{margin:8px 0}.gym-log{width:100%;position:sticky;bottom:75px;z-index:1}.changed-exercise{outline:1px solid var(--brand-red);animation:az-change 2s forwards}@keyframes az-change{to{outline-color:transparent}}
#session-log section[hidden]{display:none}.gym-screen .pe-tabs button[aria-pressed=true],.focus-workout .pe-tabs button[aria-pressed=true]{background:#f5f2ec;color:#121212}.gym-screen [data-status]{color:#5bc489;border:0}.pe [data-record] .stop-shape{display:none}.pe [data-record][data-recording=true] .stop-shape{display:inline}

.finish{max-width:46rem;margin:auto}.finish header{padding-block:1rem}.finish header p{margin:.3rem 0}.finish-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:.6rem}.finish-stats small,.finish-stats strong{display:block}.finish-stats strong{font-size:1.45rem}.finish h3 svg{color:var(--brand-red)}.finish-check{display:grid;place-items:center;background:#21382c;color:#5BC489;border-radius:50%;width:48px;height:48px}.pb-tag{color:#5BC489;font-weight:700}.finish [data-guide=complete-pbs]{background:linear-gradient(120deg,#29342e,#1e1e20)}@media(prefers-reduced-motion:no-preference){.finish-check{animation:finish-check .4s ease-out}@keyframes finish-check{from{transform:scale(.65);opacity:0}to{transform:scale(1);opacity:1}}}
.photo-review-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:1rem}.photo-review-grid article{display:grid;gap:.5rem;align-content:start}.photo-review-grid img,.equipment-info img,.equipment-info canvas{width:100%;height:auto;aspect-ratio:1;object-fit:contain;border-radius:16px}.equipment-info{width:min(90vw,420px);max-height:85dvh;overflow:auto;background:#1e1e20;color:#f5f2ec;padding:1.1rem;border:none;border-radius:20px}.equipment-info::backdrop{background:#000b}.kit-photo-tile{display:flex;align-items:center;gap:.25rem;background:#1e1e20;border-radius:14px}.kit-photo-tile label{flex:1;min-width:0;flex-wrap:wrap}.kit-photo-tile .quiet{padding:0;min-width:44px;border:none}.kit-photo-tile img{border-radius:10px;object-fit:cover}

.finish.workout-completion{padding:0;text-align:left;justify-items:stretch}.finish.workout-completion header{display:block;position:static;background:none}.guide-photo{width:48px;height:48px;border-radius:50%;object-fit:contain;background:#241e1c}.guide-help{border:0!important;border-radius:50%;width:44px;min-height:44px;margin-inline-start:auto}.guide-prompt{position:fixed;z-index:52;inset:auto 1rem calc(5rem + env(safe-area-inset-bottom)) auto;width:min(350px,calc(100vw - 2rem));padding:1rem;display:flex;align-items:flex-start;gap:.7rem;border-radius:20px;background:#2a2a2d;box-shadow:0 12px 45px #0008}.guide-prompt[hidden]{display:none}.guide-prompt p{margin:.35rem 0 .7rem}.guide-dialog{width:min(440px,calc(100vw - 2rem));max-height:75dvh;overflow:auto;border:none;background:#1e1e20;color:#f5f2ec;border-radius:20px;padding:1.2rem}.guide-dialog button,.guide-prompt button,.guide-dialog summary{min-height:44px}.guide-dialog[open]{display:grid;gap:.65rem}.guide-dialog p{margin:.3rem 0}.guide-dialog::backdrop{background:#000a}.guide-dialog.spot-mode{position:fixed;inset-inline:0;margin:0 auto}.guide-dialog.spot-mode::backdrop{background:transparent}.guide-spot{position:fixed;pointer-events:none;border-radius:14px;border:2px solid var(--brand-red);box-shadow:0 0 0 200vmax #000a;z-index:-1}.guide-dialog.spot-mode>*:not(.guide-spot){background:#1e1e20}.tour-dots{font-size:.85rem;color:var(--brand-red)}

.guide-help img{width:38px;height:38px;border-radius:50%;object-fit:cover}.guide-help:has(img){padding:2px;display:grid;place-items:center}.guide-help[hidden]{display:none}

.library-exercise-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.library-exercise-title h3{min-width:0;margin:0;overflow-wrap:anywhere}
.library-exercise-title .library-bin{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:12px;background:#2a2a2d;color:#a9a6a0}
.library-bin:is(:hover,:focus-visible){color:var(--brand-red)}

.pe .pe-eyebrow,.editor-sheet .pe-eyebrow{color:var(--brand-red);font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.09em}
.pe-draft-bar [data-draft-status]{color:#a9a6a0;font-size:.88rem}
.pe-draft-bar [data-draft-status][data-state="saved"]{color:#5bc489}
.pe-draft-bar [data-draft-status][data-state="error"]{color:#f2b33d}
.pe-draft-bar [data-editor="publish"]{margin-left:auto}
.pe-publish p{margin:0;color:#a9a6a0}
.pe-publish fieldset{display:grid;gap:8px;margin:4px 0;border:0;padding:0}
.pe-publish legend{padding:0 0 8px;font-weight:700}
.pe-publish fieldset label{display:flex;gap:10px;align-items:center;min-height:48px;background:#2a2a2d;border-radius:14px;padding:4px 14px;cursor:pointer}
.pe-publish fieldset label:has(:checked){box-shadow:inset 0 0 0 1.5px var(--brand-red)}
.pe-publish input[type="radio"]{accent-color:var(--brand-red);width:20px;height:20px;margin:0}
.pe-publish .pe-date-label{font-size:.85rem;color:#a9a6a0;justify-content:space-between}.pe-publish .pe-date-label input{width:auto;max-width:65%;min-height:44px}

html, body { overscroll-behavior: none; }
body.member-view #app { padding-bottom:calc(56px + env(safe-area-inset-bottom, 0px) + 24px); }
.shell > header > .hc-launch { margin-inline-start:auto; flex:none; }
.shell > header > #account-menu { margin-inline-start:auto; }
.shell > header > .hc-launch:not([hidden]) + #account-menu { margin-inline-start:0; }
.hub-heading h2 { overflow-wrap:anywhere; }
input, textarea, select { font-size: max(16px, 1em) !important; }
button, .button, #nav a { -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }

.session-view .pe-tabs { flex-wrap:wrap }
.session-view .pe-tabs button[aria-pressed=true] { box-shadow:inset 0 0 0 1.5px var(--brand-red) }
#session-log .session-insert { justify-self:center; min-height:44px }
#session-log [id^="session-exercise-"] { scroll-margin-top:80px }
.session-exercise-picker .pe-results button { text-align:left; min-height:44px }

:where(button, .button, summary, #nav a) { touch-action: manipulation; }
:where(button:not(:disabled), .button, summary, #nav a):active { filter: brightness(.78); }

.progression-notice {
  position:fixed;
  z-index:22;
  top:max(84px, calc(env(safe-area-inset-top, 0px) + 60px));
  inset-inline:calc(24px + env(safe-area-inset-left, 0px)) calc(20px + env(safe-area-inset-right, 0px));
  max-width:580px;
  margin-inline:auto;
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  align-items:center;
  gap:12px;
  padding:12px 44px 12px 12px;
  border:2px solid var(--brand-red);
  border-radius:16px;
  background:var(--panel);
  box-shadow:0 8px 22px #0008;
  font-size:14px;
  line-height:1.3;
}
.progression-notice::before {
  position:absolute;
  content:'';
  left:-7px;
  top:34px;
  width:10px;
  height:10px;
  transform:rotate(45deg);
  background:var(--panel);
  border-left:2px solid var(--brand-red);
  border-bottom:2px solid var(--brand-red);
}
.progression-notice-copy {
  display:grid;
  gap:4px;
  min-width:0;
  padding-inline-start:10px;
  border-inline-start:1px solid var(--line);
  overflow-wrap:anywhere;
}
.progression-notice-exercise { display:flex; flex-wrap:wrap; align-items:center; gap:5px 8px; }
.progression-set-badge {
  justify-self:start;
  width:max-content;
  padding:3px 8px;
  border-radius:999px;
  background:var(--brand-red);
  color:#121212;
  font-size:12px;
  font-weight:800;
  line-height:1.3;
  text-transform:uppercase;
  white-space:nowrap;
}
.progression-load { color:var(--brand-red); font-weight:800; font-variant-numeric:tabular-nums; }
.progression-notice .progression-dismiss {
  position:absolute;
  inset:0 0 auto auto;
  width:44px;
  height:44px;
  padding:0;
  background:transparent;
  border:0;
  font-size:24px;
  line-height:1;
}
#session-log .session-set .set-row label { min-width:0; }
#session-log .session-set .set-row input:not([type=checkbox]) { width:100%; }
#session-log .session-set:not(.progression-target) :is(.progression-comparison,.progression-field-label,[data-log-progression]) { display:none; }
#session-log .progression-target {
  display:grid;
  gap:10px;
  padding:12px;
  border:2px solid var(--brand-red);
  border-radius:16px;
  background:var(--bg);
}
#session-log .progression-target :is(.import-set-target,.set-done,.set-row > strong) { display:none; }
#session-log .progression-target .set-row { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:end; }
.progression-comparison {
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:10px;
  font-size:13px;
  line-height:1.35;
  border-bottom:1px solid var(--line);
  padding-bottom:10px;
}
.progression-comparison dl { display:grid; gap:5px; margin:0; }
.progression-comparison dl > div { display:flex; flex-wrap:wrap; gap:2px 8px; justify-content:space-between; }
.progression-comparison dt,.progression-field-label { color:var(--muted); }
.progression-comparison dd { margin:0; font-variant-numeric:tabular-nums; }
.progression-field-label { display:block; font-size:13px; margin-bottom:4px; }
#session-log .progression-target [data-log-progression] { border-color:var(--brand-red); }
@media(max-width:350px) {
  .progression-notice { grid-template-columns:36px minmax(0,1fr); gap:8px; padding-inline-start:8px; }
  .progression-notice .workout-guide-avatar { width:36px; }
  .progression-comparison { grid-template-columns:minmax(0,1fr); }
}
.technique-compare{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px}
.technique-compare video{width:100%;max-height:45vh;background:#121212}

/* Coach Studio / Clients */
.client-directory {--assign-red:#c8262c; padding-bottom:calc(76px + env(safe-area-inset-bottom,0px));}
.client-directory :where(a, a:visited) {color:inherit; text-decoration:none;}
.directory-heading .directory-title,.directory-actions,.client-card-head {display:flex; align-items:center; gap:10px;}
.directory-title h2 {margin:0;}
.directory-actions {margin-left:auto;}
.directory-actions .quiet {min-height:40px; padding:6px 15px; border-radius:999px;}
.client-directory .directory-add {position:static; width:44px; height:44px; background:var(--assign-red); color:#fff; flex:none;}
.client-directory .directory-add svg {width:23px; height:23px;}
.client-directory .compact-list {display:grid; gap:8px; background:none; padding:0;}
.client-card {position:relative; background:var(--panel); border-radius:16px; padding:12px 14px;}
.client-card>.client-card-head {margin-top:0; min-height:48px; padding-right:44px;}
.client-card-head .person-line {flex:1; min-width:0; gap:12px; min-height:44px;}
.client-card-head .person-copy strong,.client-card-head .person-copy small {overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.client-card-head .person-copy small,.client-card-body small,.client-contact {font-size:.8rem; color:var(--muted);}
.client-card-head .assign-link {display:inline-flex; align-items:center; justify-content:center; margin-block:-4px; min-height:44px; padding:0 5px; position:relative; isolation:isolate; font-size:.8rem; color:#f78b8e;}
.client-card-head .assign-link::before {content:''; position:absolute; inset:8px -3px; z-index:-1; border:1px solid #a7464a; background:#381d20; border-radius:999px;}
.client-card .when-open,.client-card:has(>.client-disclosure[open]) .when-closed {display:none;}
.client-card:has(>.client-disclosure[open]) .when-open {display:block;}
.client-card summary {list-style:none; cursor:pointer; touch-action:manipulation;}
.client-card summary::-webkit-details-marker {display:none;}
.client-disclosure>summary {position:absolute; top:14px; right:8px; width:44px; height:44px; display:grid; place-items:center; color:var(--muted); border-radius:12px;}
.client-disclosure[open]>summary svg {transform:rotate(180deg);}
.client-card-body {display:grid; gap:12px; padding-top:10px;}
.client-card-body p {margin:0;}
.client-contact {display:flex; align-items:center; gap:8px; overflow-wrap:anywhere;}
.client-contact svg,.client-remove svg {width:16px; height:16px;}
.client-card-body .directory-assign {display:grid; place-items:center; min-height:46px; padding:8px 12px; border-radius:12px; background:var(--assign-red); color:#fff; font-weight:700;}
.directory-rows {border-radius:13px; background:var(--raised); overflow:hidden;}
.directory-row {display:flex; align-items:center; gap:9px; min-height:48px; padding:8px 12px; font-size:.94rem; font-weight:600;}
.directory-row span {flex:1;}
.directory-row>svg {width:17px; height:17px;}
.directory-row>svg:last-child {width:15px; color:var(--muted);}
.directory-row small {max-width:34%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-weight:400;}
.welcome-row {border-top:1px solid var(--line);}
.welcome-row[open]>summary svg:last-child {transform:rotate(90deg);}
.welcome-row form {padding:4px 12px 12px; background:none; border:0;}
.client-card-body button.client-remove {display:inline-flex; align-items:center; gap:6px; justify-self:start; min-height:44px; padding:0 3px; background:none; border:0; color:#f48186; font-size:.87rem; font-weight:600;}
.client-directory :is(a,button,summary):focus-visible {outline:2px solid var(--brand-red); outline-offset:2px;}

.client-directory .assign-link[data-programme-state="active"]{background:#182a20;color:#8adbab;border-color:#36583f}
.client-directory .assign-link[data-programme-state="unavailable"]{background:#252528;color:#dadada;border-color:#515158}

.route-recovery{min-width:0;max-width:100%;overflow-wrap:anywhere}
.theme-choice span{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.theme-choice button{min-height:44px;padding:8px 4px;text-align:center;font-size:14px;font-weight:600;background:none;color:var(--ink);border:1px solid var(--line);border-radius:14px}
.theme-choice button[aria-pressed="true"]{background:var(--brand-red);border-color:var(--brand-red);color:#190f11}

/* Swap exercise: button, bottom sheet and swapped banner */
#session-log .swap-open{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:8px 14px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--ink);text-align:left;font:inherit}
.swap-open>svg{flex:none;color:var(--brand-red)}
.swap-open>span:nth-child(2){flex:1;display:grid;line-height:1.3}
.swap-open strong{font-size:15px}
.swap-open small{font-size:13px;color:var(--muted)}
.swap-open>span:last-child{color:var(--muted);font-size:20px}
dialog.swap-dialog{margin:auto 0 0;width:100%;max-width:none;max-height:88vh;border-radius:24px 24px 0 0;padding:20px 16px calc(16px + env(safe-area-inset-bottom));box-sizing:border-box}
@media (min-width:640px){dialog.swap-dialog{margin:auto;width:min(92vw,480px);border-radius:20px}}
.swap-sheet{display:grid;gap:10px}
.swap-sheet h2{margin:0;padding-right:44px;font-size:24px;line-height:1.2}
.swap-sheet>p{margin:0;color:var(--muted);font-size:14px}
.swap-sheet>p.swap-label{margin-top:6px;font-size:12px;font-weight:700;letter-spacing:1px;text-transform:uppercase}
.swap-list{display:grid;border-radius:16px;overflow:hidden}
.swap-option{display:flex;align-items:center;gap:12px;min-height:60px;padding:10px 14px;border-radius:16px;background:var(--bg);cursor:pointer}
.swap-list .swap-option{border-radius:0}
.swap-list .swap-option+.swap-option{border-top:1px solid var(--line)}
.swap-option:has(:checked){box-shadow:inset 0 0 0 2px var(--brand-red);background:color-mix(in srgb,var(--brand-red) 12%,var(--bg))}
.swap-option>span{flex:1;display:grid;gap:4px;line-height:1.3}
.swap-option strong{font-size:15px}
.swap-option small{justify-self:start;padding:2px 8px;border-radius:99px;background:var(--panel);color:var(--muted);font-size:12px}
.swap-option input{order:2;flex:none;width:22px;height:22px;margin:0;accent-color:var(--brand-red)}
.swap-remember{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px;color:var(--muted)}
.swap-remember input{width:20px;height:20px;accent-color:var(--brand-red)}
.swap-actions{display:grid;gap:8px;margin-top:4px}
.swap-actions button{min-height:52px}
.swap-banner{display:flex;align-items:center;gap:10px;padding:6px 6px 6px 12px;border-radius:12px;border:1px solid color-mix(in srgb,var(--brand-red) 40%,var(--line));background:color-mix(in srgb,var(--brand-red) 10%,var(--panel))}
.swap-banner>svg{flex:none;color:var(--brand-red)}
.swap-banner>span{flex:1;font-size:14px}
.swap-banner button{min-height:40px;padding-inline:12px;color:var(--brand-red);font-weight:700}
