/* Steady / Performance palette. Shared geometry, independently tuned light and dark surfaces. */
:root {
  color-scheme: light;
  --bg: #f3f4f6; --paper: #ffffff; --ink: #171c22; --muted: #626c78;
  --line: #dde2e7; --soft: #eceff2; --field: #f7f8fa; --hover: #e9edf0;
  --accent: #c6f65b; --accent-ink: #1c290a; --accent-soft: #edf6dc;
  --link: #42650b; --focus: #5a7b22; --primary: #202820; --primary-ink: #f5ffe7;
  --warn: #faf6ed; --warnink: #73551f; --warn-line: #d9bc7c;
  --error: #ac373a; --shadow: 0 2px 3px #141e2a03, 0 12px 32px #141e2a05;
  --hero: #1b2324; --hero-edge: #354142; --hero-ink: #f8faf7; --hero-muted: #bbc8bf;
  --easy: #eff8f6; --easy-edge: #c8e2d9; --easy-ink: #196752;
}
:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #0d1013; --paper: #181d22; --ink: #f2f5f7; --muted: #a1acb7;
  --line: #30383f; --soft: #222a30; --field: #11171b; --hover: #2b353c;
  --accent: #c6f65b; --accent-ink: #1c290a; --accent-soft: #27331e;
  --link: #c6f65b; --focus: #c6f65b; --primary: #c6f65b; --primary-ink: #1c290a;
  --warn: #211e17; --warnink: #dec695; --warn-line: #73603b;
  --error: #ffacae; --shadow: 0 2px 3px #00000018, 0 12px 32px #00000015;
  --hero: #1b2621; --hero-edge: #354836; --hero-ink: #f8faf7; --hero-muted: #b7c8ba;
  --easy: #142723; --easy-edge: #2d4940; --easy-ink: #94e6c9;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; -webkit-font-smoothing: antialiased; }
button,input,select,textarea { font: inherit; }
button,a,summary { -webkit-tap-highlight-color: transparent; }
button { min-height: 48px; padding: 11px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); cursor: pointer; font-size: 14px; font-weight: 650; transition: background .16s,border-color .16s,box-shadow .16s,transform .16s; }
@media(hover:hover) { button:not(:disabled):hover { background: var(--hover); border-color: var(--muted); } button:not(:disabled):active { transform: translateY(1px); } }
button:disabled { cursor: not-allowed; color: var(--muted); background: var(--soft); border-color: var(--line); box-shadow: none; }
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
input,select,textarea { font-size: 16px; display: block; width: 100%; margin-top: 7px; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); color: var(--ink); padding: 11px 12px; transition: border-color .16s,box-shadow .16s; }
input:focus,select:focus,textarea:focus { border-color: var(--focus); }
input::placeholder,textarea::placeholder { color: var(--muted); opacity: .8; }
input[type=checkbox] { width: 21px; min-height: 21px; display: inline-block; margin: 0 9px 0 0; vertical-align: middle; accent-color: var(--focus); }
input[type=number] { appearance: textfield; -moz-appearance: textfield; }
input::-webkit-inner-spin-button,input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
textarea { resize: vertical; }
label { font-size: 14px; font-weight: 550; }
label>span { color: var(--muted); font-weight: 400; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: clamp(32px,3.9vw,46px); line-height: 1.13; letter-spacing: -1.7px; font-weight: 680; }
h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.65px; font-weight: 650; }
h3 { font-size: 19px; line-height: 1.35; letter-spacing: -.25px; font-weight: 650; }
p+p { margin-top: 12px; }
a { color: var(--link); text-underline-offset: 3px; }
small,.small { font-size: 13px; color: var(--muted); }
.shell { max-width: 1220px; padding: 0 36px; margin: auto; }
header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; min-height: 108px; }
.brand { white-space: nowrap; font-size: 34px; font-weight: 760; letter-spacing: -1.7px; text-decoration: none; display: flex; align-items: center; color: var(--ink); }
.logo { flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: var(--accent); color: #1c290a; width: 42px; height: 42px; margin-right: 12px; box-shadow: inset 0 0 0 1px #98c43f30; }
.logo svg { width: 24px; height: 24px; }
.identity { padding-left: 28px; border-left: 1px solid var(--line); font-size: 14px; display: grid; gap: 2px; }
.identity span { font-size: 13px; color: var(--muted); }
.appearance { width: 116px; font-size: 12px; color: var(--muted); }
.appearance select { min-height: 42px; background: var(--paper); font-size: 14px; border-radius: 11px; }
.status { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; }
.status small { font-size: 12px; }
.status button { font-size: 12px; padding: 5px 11px; min-height: 34px; background: transparent; border-radius: 8px; }
.status.offline { color: var(--warnink); border-color: var(--warn-line); }
nav { display: flex; gap: 5px; padding: 5px; width: fit-content; max-width: 100%; border: 1px solid var(--line); background: var(--soft); border-radius: 15px; margin: 24px 0 32px; }
nav button { display: flex; gap: 8px; justify-content: center; align-items: center; border: 1px solid transparent; background: transparent; color: var(--muted); padding: 10px 18px; min-width: 106px; min-height: 44px; border-radius: 10px; }
nav button[aria-current] { color: var(--ink); background: var(--paper); border-color: var(--line); box-shadow: 0 2px 5px #00000008; }
[data-theme=dark] nav button[aria-current] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.ui-icon { width: 19px; height: 19px; display: inline-block; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
main { min-height: 62vh; outline: none; }
.pagehead { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 30px 0 26px; }
.eyebrow { font-size: 12px; letter-spacing: 1.6px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.muted { color: var(--muted); }
.hint { font-size: 14px; line-height: 1.55; color: var(--muted); margin-top: 12px; }
.grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 24px; align-items: start; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 28px; margin-bottom: 22px; box-shadow: var(--shadow); }
.card>p { margin-top: 12px; }
.card h2+p { color: var(--muted); font-size: 16px; }
.cardhead { display: flex; justify-content: space-between; gap: 15px; align-items: start; margin-bottom: 18px; }
button.primary,[data-theme=dark] button.primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); box-shadow: 0 3px 7px #12200d0a; }
@media(hover:hover) { button.primary:not(:disabled):hover { background: #303d28; border-color: #303d28; color: #fff; box-shadow: 0 4px 12px #24381726; } [data-theme=dark] button.primary:not(:disabled):hover { background: #d7ff85; border-color: #d7ff85; color: #1c290a; } }
button.primary:disabled,[data-theme=dark] button.primary:disabled { background: var(--soft); color: var(--muted); border-color: var(--line); box-shadow: none; }
button.text { border: 0; background: transparent; color: var(--link); padding-left: 0; padding-right: 0; box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 20px; }
.actions.flush { margin-top: 0; }
.notice { background: var(--warn); color: var(--warnink); border: 1px solid var(--line); border-left: 3px solid var(--warn-line); border-radius: 12px; padding: 15px 18px; margin: 20px 0; font-size: 14px; }
.notice p { font-size: 14px; margin-top: 6px; }
.rules { background: var(--hero); color: var(--hero-ink); border: 1px solid var(--hero-edge); border-radius: 20px; padding: 28px 30px; margin: 22px 0; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.rules::before { content: ''; position: absolute; width: 4px; height: 44px; top: 31px; left: 0; border-radius: 0 5px 5px 0; background: var(--accent); }
.rules .eyebrow { color: var(--accent); }
.rules h2 { color: #f6faf2; font-size: 30px; letter-spacing: -.9px; }
.rules p { color: var(--hero-muted); margin-top: 15px; }
.rules p strong { color: var(--accent); }
.rule-tags,.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.rule-tags span { border: 1px solid #536452; color: #e0e9df; padding: 5px 9px; border-radius: 6px; font-size: 12px; background: #ffffff04; }
.rules .hint { border-top: 1px solid var(--hero-edge); padding-top: 16px; color: var(--hero-muted); }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin: 26px 0; }
.stat { padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.stat .ui-icon { color: var(--link); width: 21px; height: 21px; margin-bottom: 13px; }
.stat strong { font-size: 40px; letter-spacing: -1.7px; font-weight: 620; line-height: 1.05; display: block; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.stat span { display: block; font-size: 13px; line-height: 1.45; color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 19px 16px; margin: 22px 0; }
.fields .wide { grid-column: 1/-1; }
.checks { display: flex; gap: 9px; flex-wrap: wrap; margin: 15px 0; }
.checks label { border: 1px solid var(--line); padding: 12px; border-radius: 10px; font-size: 14px; background: var(--field); display: flex; align-items: center; }
.checks label:has(input:checked) { background: var(--accent-soft); border-color: var(--focus); }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 17px 0; }
.checklist label { font-size: 14px; }
details { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 18px; }
summary { cursor: pointer; font-weight: 600; font-size: 14px; min-height: 44px; padding: 9px 0; }
summary::marker { color: var(--muted); }
details p { font-size: 14px; color: var(--muted); margin: 10px 0; }
.pill { display: inline-block; background: var(--soft); color: var(--ink); border: 1px solid var(--line); padding: 6px 10px; border-radius: 7px; font-size: 12px; font-weight: 550; }
.pagehead>.pill { background: var(--accent-soft); color: var(--link); border-color: transparent; }
.empty { padding: 46px 22px; border: 1px dashed var(--line); border-radius: 20px; text-align: center; margin: 22px 0; color: var(--muted); }
.empty h2 { color: var(--ink); margin-bottom: 12px; }
.list-item { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; justify-content: space-between; align-items: center; }
.list-item:last-child { border: 0; }
.list-item p { font-size: 14px; color: var(--muted); margin-top: 5px; }
.list-item .actions { margin: 0; }
.session-ex { margin: 26px 0; border-top: 1px solid var(--line); padding-top: 26px; }
.session-ex h3 { margin-bottom: 8px; font-size: 23px; letter-spacing: -.55px; }
.previous { font-size: 14px; color: var(--muted); background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 16px 0; }
.previous strong { font-size: 12px; letter-spacing: 1.4px; color: var(--link); }
.set-row { display: grid; grid-template-columns: 30px 1.35fr 1fr 1fr 48px; gap: 9px; align-items: center; margin: 10px 0; }
.set-row>span { font-size: 13px; color: var(--muted); }
.set-row input { margin: 0; padding: 11px 7px; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; }
.set-labels>span { font-size: 12px; font-weight: 650; color: var(--muted); letter-spacing: .5px; }
.stepper { display: flex; align-items: center; gap: 3px; }
.stepper button { min-width: 44px; min-height: 48px; padding: 8px 5px; border: 1px solid var(--line); background: var(--soft); font-size: 20px; font-weight: 400; border-radius: 9px; }
.stepper input { border-radius: 8px; min-width: 0; }
.done-set { font-size: 20px; padding: 5px; min-width: 44px; }
.done-set.checked { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 0 0 3px #c6f65b12; }
.technique-details>summary { display: flex; align-items: center; gap: 12px; color: var(--link); }
.technique-details>summary::before { content: '+'; font-weight: 400; font-size: 24px; line-height: 1; }
.technique-details[open]>summary::before { content: '−'; }
.technique-details>summary span { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 450; }
.movement-guide { --guide-equipment: #788690; --guide-equipment-edge: #bdc7cd; --guide-pad: #34434b; --guide-weight: #354650; --guide-skin: #b28c70; --guide-hair: #343837; --guide-shirt: #a5c76a; --guide-shirt-shade: #739b3d; --guide-pants: #455869; --guide-shoe: #f7f8f5; --guide-ground: #cbd3d8; --guide-stage: #eef1f3; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 12px 0 22px; background: var(--field); }
[data-theme=dark] .movement-guide { --guide-equipment: #8b9aa3; --guide-equipment-edge: #54616c; --guide-pad: #62727d; --guide-weight: #9baab3; --guide-skin: #d1a88b; --guide-hair: #3d4344; --guide-shirt: #c6ee84; --guide-shirt-shade: #8aad52; --guide-pants: #63798b; --guide-shoe: #e1e7e7; --guide-ground: #34414b; --guide-stage: #1b242b; }
.guide-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 24px 0; }
.guide-kicker { display: block; font-size: 12px; font-weight: 750; letter-spacing: 1.7px; color: var(--link); }
.guide-top h4 { font-size: 20px; letter-spacing: -.5px; margin: 5px 0 0; font-weight: 650; line-height: 1.35; }
.guide-view { flex-shrink: 0; font-size: 12px; letter-spacing: 1.5px; color: var(--muted); border: 1px solid var(--line); padding: 6px 9px; border-radius: 5px; }
.movement-guide p.guide-setup { padding: 0 24px; margin: 14px 0 22px; max-width: 820px; color: var(--muted); font-size: 14px; }
.guide-frames { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.guide-frame { margin: 0; min-width: 0; background: var(--paper); }
.guide-frame figcaption { display: flex; gap: 10px; align-items: center; padding: 16px 18px 0; font-size: 14px; font-weight: 650; background: var(--guide-stage); }
.guide-number { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: 1px; font-weight: 500; }
.movement-illustration { width: 100%; height: auto; display: block; background: var(--guide-stage); aspect-ratio: 4/3; }
.guide-frame-copy { padding: 17px 18px 20px; }
.guide-frame-copy strong { font-size: 14px; font-weight: 650; line-height: 1.35; display: block; }
.guide-frame-copy p { font-size: 13px; line-height: 1.55; margin: 6px 0 0; }
.guide-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 18px 24px; }
.guide-controls button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 14px; font-size: 13px; }
.guide-controls button[data-guide-action=play] { color: var(--primary-ink); background: var(--primary); border-color: var(--primary); }
.guide-controls svg { width: 14px; height: 14px; fill: currentColor; }
.guide-controls>span { font-size: 12px; color: var(--muted); margin-left: auto; }
.guide-playback { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); align-items: center; background: var(--guide-stage); border-block: 1px solid var(--line); }
.guide-animation-copy { padding: 24px; }
.guide-animation-phase { display: block; font-size: 24px; letter-spacing: -.6px; line-height: 1.2; margin: 12px 0; }
.guide-animation-copy p.guide-playback-note { font-size: 12px; padding-top: 16px; margin-top: 18px; border-top: 1px solid var(--line); }
.guide-return { display: flex; align-items: start; gap: 14px; margin: 0 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.guide-return>span { font-size: 12px; font-weight: 750; letter-spacing: 1.5px; color: var(--link); padding-top: 3px; }
.guide-return p { margin: 0; font-size: 13px; color: var(--ink); }
.movement-guide p.guide-note { padding: 0 24px; margin: 0 0 18px; font-size: 12px; }
.guide-reference { display: inline-block; margin: 0 24px 22px; font-size: 12px; text-decoration: none; }
.guide-mistake { border-left: 2px solid var(--warn-line); padding-left: 12px; }
.guide-mistake strong { color: var(--ink); display: block; margin-bottom: 4px; }
.movement-custom { padding: 15px; }
dialog:has(.movement-guide) { width: min(1020px,calc(100% - 28px)); }
.guide-machine,.guide-machine-edge,.guide-pad,.guide-cable,.guide-grip,.guide-wall,.guide-accent-stroke,.guide-floor,.guide-metal,.guide-skin-stroke,.guide-shirt-stroke,.guide-shirt-seam,.guide-trouser,.guide-trouser-highlight,.guide-shoe-sole,.guide-band,.guide-mat,.guide-weight-edge,.guide-face { fill: none; }
.guide-machine,.guide-wall { stroke: var(--guide-equipment); }
.guide-machine-edge { stroke: var(--guide-equipment-edge); }
.guide-pad,.guide-grip { stroke: var(--guide-pad); }
.guide-pad-fill { fill: var(--guide-pad); stroke: var(--guide-equipment); stroke-width: 2; }
.guide-weight,.guide-pivot { fill: var(--guide-weight); stroke: var(--guide-equipment); stroke-width: 1; }
.guide-weight-edge { stroke: var(--guide-equipment-edge); }
.guide-pulley { fill: var(--guide-pad); stroke: var(--guide-equipment); stroke-width: 3; }
.guide-cable { stroke: var(--guide-equipment); }
.guide-metal { stroke: var(--guide-equipment); }
.guide-metal-fill { fill: var(--guide-equipment); }
.guide-accent-stroke,.guide-band { stroke: var(--link); }
.guide-anchor { fill: var(--link); }
.guide-mat { stroke: var(--guide-pants); }
.guide-skin { fill: var(--guide-skin); }
.guide-skin-stroke { stroke: var(--guide-skin); }
.guide-hair { fill: var(--guide-hair); }
.guide-face { stroke: var(--guide-hair); }
.guide-shirt { fill: var(--guide-shirt); }
.guide-shirt-stroke { stroke: var(--guide-shirt); }
.guide-shirt-seam { stroke: var(--guide-shirt-shade); }
.guide-trouser { stroke: var(--guide-pants); }
.guide-trouser-highlight { stroke: #ffffff; opacity: .12; }
.guide-shoe { fill: var(--guide-shoe); stroke: var(--guide-pants); stroke-width: 1; }
.guide-shoe-sole { stroke: var(--guide-pants); }
.guide-far { filter: brightness(.83); }
.guide-shadow { fill: var(--guide-ground); opacity: .5; }
.guide-floor { stroke: var(--guide-ground); }
.guide-plate-ring { fill: none; stroke: var(--guide-equipment-edge); stroke-width: 2; }
@media(max-width:600px) {
 .guide-top { padding: 19px 17px 0; align-items: start; }
 .guide-top h4 { font-size: 19px; }
 .guide-view { font-size: 12px; letter-spacing: .7px; }
 .movement-guide p.guide-setup { padding: 0 17px; }
 .guide-frames { display: flex; gap: 10px; padding: 0 16px 14px; overflow-x: auto; scroll-snap-type: x mandatory; background: var(--field); border: 0; scrollbar-width: thin; scrollbar-color: var(--focus) transparent; }
 .guide-frame { flex: 0 0 89%; scroll-snap-align: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
 .guide-frame-copy { min-height: 112px; }
 .guide-controls { padding: 17px; }
 .guide-controls>span { width: 100%; margin: 0; }
 .guide-playback { grid-template-columns: 1fr; }
 .guide-animation-image { width: 100%; max-width: 430px; margin: auto; }
 .guide-animation-copy { padding: 4px 20px 20px; }
 .guide-animation-phase { font-size: 22px; margin: 7px 0; }
 .guide-animation-copy p.guide-playback-note { padding-top: 9px; margin-top: 12px; }
 .guide-return { margin-inline: 17px; }
 .movement-guide p.guide-note { padding-inline: 17px; }
 .guide-reference { margin-inline: 17px; }
 .technique-details>summary span { font-size: 12px; max-width: 128px; text-align: right; }
 dialog:has(.movement-guide) { padding: 20px 15px; width: calc(100% - 18px); }
}
.cues { padding-left: 22px; font-size: 14px; }
.cues li { margin: 8px 0; }
.bottom-save { display: flex; justify-content: space-between; align-items: center; gap: 15px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 20px; border-radius: 16px; margin: 24px 0; }
.bottom-save .hint { margin: 3px 0 0; }
.easy { border-color: var(--easy-edge); background: var(--easy); }
.easy>.eyebrow,.easy .promise { color: var(--easy-ink); }
.easy .muted,.easy .hint { color: var(--easy-ink); }
.promise { font-size: 19px; font-weight: 600; letter-spacing: -.3px; margin: 15px 0; }
.timer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 25px 0; }
.clock { font-size: 56px; line-height: 1; font-weight: 550; font-variant-numeric: tabular-nums; letter-spacing: -2.5px; }
.timer-meter { height: 5px; background: var(--line); border-radius: 8px; overflow: hidden; }
.timer-meter span { height: 100%; display: block; background: var(--easy-ink); }
.result { background: var(--accent-soft); border: 1px solid var(--line); padding: 18px; border-radius: 12px; margin: 20px 0; }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; white-space: nowrap; font-size: 14px; }
th,td { padding: 15px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 12px; font-weight: 600; }
.chart { display: block; width: 100%; height: 220px; }
.chart text { fill: var(--muted); font-size: 12px; }
.chart line { stroke: var(--line); }
.chart polyline { stroke: var(--link); stroke-width: 3; fill: none; }
.chart circle { fill: var(--link); }
.login { display: grid; grid-template-columns: 1fr 1fr; column-gap: 70px; align-items: start; max-width: 1080px; margin: 72px auto 40px; }
.login-intro { padding-top: 26px; }
.login h1 { font-size: clamp(38px,4.6vw,60px); letter-spacing: -2.4px; line-height: 1.08; margin: 22px 0; }
.login h1 span { color: var(--link); }
.login-intro>.muted { max-width: 420px; font-size: 17px; line-height: 1.65; }
.login-disciplines { display: flex; gap: 22px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); width: fit-content; color: var(--muted); font-size: 13px; }
.login-disciplines span { display: flex; align-items: center; gap: 8px; }
.login-disciplines .ui-icon { color: var(--link); }
.login .card { padding: 32px; margin: 0; }
.login .primary { width: 100%; }
.login .notice { border-left-width: 2px; background: var(--field); color: var(--muted); font-size: 14px; border-color: var(--line); }
.login .hint { font-size: 13px; }
.login-install { grid-column: 1/-1; text-align: center; margin-top: 34px; max-width: 700px; justify-self: center; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 24px 0 18px; }
.divider::before,.divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.login [data-act=demo] { width: 100%; background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.progress-path { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin: 20px 0; }
.progress-path>button { padding: 16px 10px; font-size: 14px; text-align: left; }
.progress-path strong { display: block; font-size: 24px; }
.error { color: var(--error); font-size: 14px; margin-top: 12px; }
.success { color: var(--link); }
.program-row { padding: 20px 0; border-bottom: 1px solid var(--line); }
.program-row .fields { grid-template-columns: repeat(4,1fr); }
.program-row .fields label { font-size: 14px; }
.program-row input { padding: 10px; }
.restrictions { white-space: pre-wrap; overflow-wrap: anywhere; }
.file { padding: 17px; background: var(--field); border: 1px dashed var(--line); border-radius: 12px; margin-top: 18px; display: block; }
#toast { position: fixed; left: 50%; bottom: max(25px,env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--bg); border-radius: 12px; padding: 15px 20px; max-width: 90vw; width: max-content; z-index: 50; box-shadow: 0 8px 30px #00000025; font-size: 14px; display: none; }
#toast.show { display: block; }
dialog { width: min(700px,calc(100% - 28px)); max-height: 90vh; overflow: auto; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); color: var(--ink); padding: 28px; box-shadow: 0 24px 80px #00000040; }
dialog::backdrop { background: #080c10b3; backdrop-filter: blur(4px); }
.close { float: right; padding: 5px 12px; margin: -8px -8px 8px 12px; font-size: 20px; }
.skip { position: fixed; top: -100px; left: 15px; z-index: 99; background: var(--paper); padding: 10px; }
.skip:focus { top: 10px; }
footer { display: flex; justify-content: space-between; gap: 15px; font-size: 12px; color: var(--muted); padding: 26px 0 max(26px,env(safe-area-inset-bottom)); border-top: 1px solid var(--line); margin-top: 44px; }
[hidden] { display: none!important; }
@media(max-width:950px) {
  .grid { grid-template-columns: minmax(0,1fr) 260px; gap: 20px; }
  .shell { padding: 0 26px; }
  .login { column-gap: 35px; margin-top: 48px; }
  .login h1 { font-size: 45px; }
  .login .card { padding: 26px; }
  .identity span { display: none; }
}
@media(max-width:780px) {
  .grid,.two { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .login { grid-template-columns: 1fr; max-width: 540px; margin-top: 28px; gap: 28px; }
  .login-intro { padding: 0; }
  .login h1 { font-size: 44px; margin: 16px 0; }
  .login-disciplines { margin-top: 24px; padding-top: 18px; }
  .login-install { margin-top: 0; }
}
@media(max-width:600px) {
  .shell { padding: 0 18px; }
  header { grid-template-columns: 1fr auto; gap: 2px 12px; padding: 18px 0; min-height: 112px; }
  .brand { font-size: clamp(23px, 7vw, 31px); }
  .logo { width: 36px; height: 36px; border-radius: 10px; margin-right: 10px; }
  .logo svg { width: 22px; height: 22px; }
  .identity { grid-column: 1; grid-row: 2; border: 0; padding: 0; font-size: 12px; }
  .appearance { grid-column: 2; grid-row: 1/3; width: 106px; }
  .status { gap: 8px; font-size: 12px; padding: 11px 0; }
  nav { width: 100%; justify-content: space-between; gap: 0; padding: 4px; margin: 20px 0 25px; }
  nav button { flex: 1; min-width: 0; padding: 8px 4px; font-size: 12px; gap: 4px; flex-direction: column; min-height: 58px; }
  nav .ui-icon { width: 20px; height: 20px; }
  .card { padding: 21px; border-radius: 18px; }
  .pagehead { align-items: start; margin: 25px 0 22px; }
  h1 { font-size: 34px; letter-spacing: -1.3px; }
  h2 { font-size: 23px; }
  .pagehead .pill { max-width: 108px; font-size: 12px; padding: 6px 8px; }
  .fields { gap: 18px 12px; }
  .rules { padding: 25px; border-radius: 18px; }
  .rules h2 { font-size: 27px; }
  .rules p { font-size: 15px; }
  .rules .hint { font-size: 14px; }
  .sidebar { display: block; }
  .stats { gap: 12px; margin: 24px 0; }
  .stat { padding: 19px; border-radius: 16px; }
  .stat strong { font-size: 36px; margin-bottom: 8px; }
  .stat span { font-size: 13px; }
  .stat .ui-icon { margin-bottom: 12px; }
  .progress-path { grid-template-columns: 1fr 1fr; }
  .set-row { grid-template-columns: minmax(132px,1.4fr) minmax(42px,.8fr) minmax(42px,.8fr) 44px; gap: 6px; }
  .set-row>span:first-child { display: none; }
  .set-row input { padding: 11px 2px; }
  .set-labels>span { font-size: 12px; letter-spacing: .2px; }
  .stepper { gap: 2px; }
  .stepper button { min-width: 44px; padding: 5px 3px; }
  .stepper input { width: 40px; min-width: 40px; }
  .done-set { min-width: 44px; }
  .session-ex h3 { font-size: 22px; }
  .session-ex .actions { column-gap: 16px; }
  .checklist { grid-template-columns: 1fr; }
  .program-row .fields { grid-template-columns: 1fr 1fr; }
  .list-item { align-items: start; }
  .list-item .actions { flex-direction: column; }
  .bottom-save { padding: 17px; }
  .bottom-save p { font-size: 13px; }
  .clock { font-size: 48px; }
  .timer h3 { font-size: 20px; }
  footer { flex-direction: column; gap: 6px; margin-top: 32px; }
  .login { margin: 30px 0; }
  .login h1 { font-size: 42px; letter-spacing: -1.8px; }
  .login-intro>.muted { font-size: 16px; }
  .login-disciplines { width: 100%; justify-content: space-between; gap: 8px; font-size: 12px; }
  .login-disciplines .ui-icon { width: 17px; height: 17px; }
  .login .card { padding: 24px; }
  .chart { height: 180px; }
}
@media(max-width:360px) {
  .brand { letter-spacing: -1.2px; }
  .appearance { width: 90px; }
  .shell { padding: 0 12px; }
  .card { padding: 15px; }
  .set-row { grid-template-columns: 132px minmax(34px,1fr) minmax(34px,1fr) 44px; gap: 6px; }
  .login h1 { font-size: 37px; }
  .login-disciplines span { gap: 4px; }
  .pagehead { flex-wrap: wrap; }
}
@media(prefers-reduced-motion:reduce) { * { scroll-behavior: auto!important; transition: none!important; } }
@media print { header,nav,#status,button,.actions,.bottom-save,footer { display: none; } body { background: white; color: black; } .card { break-inside: avoid; } }

/* Focused gym workflow: generous controls, quiet chrome, explicit choices. */
.mode-switch { display:flex; gap:4px; padding:4px; border:1px solid var(--line); border-radius:14px; background:var(--soft); }
.mode-switch button { border:0; background:transparent; color:var(--muted); white-space:nowrap; }
.mode-switch .selected { background:var(--paper); color:var(--ink); box-shadow:var(--shadow); }
.workout-safety { display:grid; gap:5px; padding:18px 22px; border:1px solid var(--hero-edge); border-left:4px solid var(--accent); background:var(--hero); color:var(--hero-ink); border-radius:14px; }
.workout-safety strong { color:var(--accent); font-size:16px; }.workout-safety span { font-size:14px; }.workout-safety small { color:var(--hero-muted); }
.workout-summary { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; margin:24px 0 16px; color:var(--muted); font-size:14px; }
.workout-summary>span:first-child { color:var(--link); font-weight:650; }
.exercise-nav { display:grid; grid-template-columns:48px minmax(0,1fr) 48px; align-items:end; gap:12px; margin:18px 0; scroll-margin-top:15px; }
.exercise-nav button { font-size:22px; padding:6px; height:50px; }.exercise-nav label { color:var(--muted); font-size:13px; }.exercise-nav select { font-weight:650; color:var(--ink); }
.workout-card>.hint:first-child { margin-top:0; }.quick-workout .session-ex { border-top:0; margin-top:0; padding-top:20px; }
.set-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr)); gap:16px; margin-top:24px; }
.set-card { background:var(--field); border:1px solid var(--line); border-radius:16px; padding:20px; min-width:0; }
.set-card.is-done { border-color:var(--focus); }.set-card-head { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:18px; }
.set-card-head strong { font-size:14px; letter-spacing:1px; }.set-card-head span { font-size:13px; color:var(--muted); }.set-card.is-done .set-card-head span { color:var(--link); }
.set-fields { display:grid; grid-template-columns:1fr 1fr; gap:16px 14px; }.set-weight { grid-column:1/-1; }.set-fields label { font-size:14px; }
.set-fields input { text-align:center; font-size:24px; font-weight:650; min-height:56px; padding:9px; }
.set-weight .stepper { margin-top:7px; gap:8px; }.set-weight .stepper input { margin:0; flex:1; width:0; min-width:0; }.set-weight .stepper button { width:56px; min-width:56px; min-height:56px; font-size:26px; }
.record-set { width:100%; margin-top:20px; min-height:54px; font-size:16px; }.record-set.checked { background:var(--accent-soft); color:var(--link); border-color:var(--focus); }
.set-card details { margin-top:12px; }.set-card summary { font-size:13px; }.set-card .fields { grid-template-columns:1fr; }
.focus-footer { display:flex; gap:18px; align-items:center; flex-wrap:wrap; margin-top:28px; padding-top:22px; border-top:1px solid var(--line); }.focus-footer span { font-size:14px; color:var(--muted); }
.rest-dock { position:sticky; bottom:12px; z-index:5; background:var(--paper); border:1px solid var(--line); border-radius:17px; padding:20px 24px; box-shadow:0 8px 30px #00000020; margin:22px 0; }
.rest-top { display:flex; align-items:center; justify-content:space-between; gap:15px; }.rest-top .eyebrow { margin:0 0 4px; }.rest-top strong { font-size:34px; line-height:1; font-variant-numeric:tabular-nums; letter-spacing:-1px; }
.rest-dock .hint { margin-top:10px; font-size:13px; }.rest-dock summary { padding:6px 0; min-height:38px; }.rest-dock details { margin-top:12px; padding-top:5px; }.rest-dock:has(details[open]) { position:static; }
.favourite-button { font-size:25px; min-width:48px; padding:4px 10px; flex-shrink:0; color:var(--muted); }.favourite-button[aria-pressed=true] { background:var(--accent-soft); border-color:var(--focus); color:var(--link); }
.catalogue-filters { margin:22px 0; padding:20px; border:1px solid var(--line); border-radius:14px; background:var(--field); }.catalogue-filters .fields { margin:16px 0; }.search-field input { background:var(--paper); }
.filter-checks { display:flex; flex-wrap:wrap; gap:15px 22px; }.filter-checks label { min-height:32px; display:flex; align-items:center; }
.swap-suggestions { background:var(--accent-soft); border:1px solid var(--line); padding:20px; border-radius:15px; margin:24px 0; }.swap-suggestions h3 { font-size:18px; }.catalogue-heading { margin-top:22px; }
#exercise-options .list-item .actions { flex-wrap:nowrap; }.recovery-row { margin-top:18px; padding-top:18px; border-top:1px solid var(--line); }.recovery-row strong { font-size:14px; }.recovery-row>div { display:flex; flex-wrap:wrap; gap:7px; margin-top:9px; }
.trend-chart { width:100%; height:auto; display:block; margin-top:18px; }.trend-chart line { stroke:var(--line); stroke-dasharray:3 5; }.trend-chart text { font-size:12px; fill:var(--muted); }.trend-chart polyline { stroke:var(--link); stroke-width:3; fill:none; stroke-linejoin:round; }.trend-chart circle { fill:var(--link); stroke:var(--paper); stroke-width:2; }
.trend-empty { padding:35px 18px; margin-top:18px; border:1px dashed var(--line); border-radius:12px; color:var(--muted); font-size:14px; text-align:center; }.trend-card h2 { font-size:34px; margin-top:12px; }.trend-card h2 small { font-size:16px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:700px) {
 .set-cards { grid-template-columns:1fr; }.workout-card { padding:20px; }.pagehead:has(.mode-switch) { align-items:flex-start; flex-direction:column; gap:18px; }
 .mode-switch { width:100%; }.mode-switch button { flex:1; }.workout-safety { padding:16px; }.exercise-nav { gap:8px; }.rest-dock { padding:16px; bottom:8px; }
 .rest-top { align-items:flex-start; }.rest-top .actions { gap:6px; justify-content:flex-end; }.rest-top button { padding:10px 12px; }.rest-top strong { font-size:30px; }
 .catalogue-filters { padding:16px; }.catalogue-filters .fields { grid-template-columns:1fr; }.set-card { padding:18px; }.swap-suggestions { padding:16px; }
 #exercise-options .list-item { align-items:flex-start; flex-direction:column; gap:12px; }#exercise-options .list-item .actions { align-self:flex-end; }
 .trend-chart text { font-size:14px; }.pagehead:has([name=progressRange]) { flex-direction:column; align-items:stretch; }
}
@media(prefers-reduced-motion:reduce) { button,input,select,textarea { transition:none; } }

.rest-dock:has(#rest-controls[data-state=idle]) { position:static; }

.trend-dates { display:flex; justify-content:space-between; gap:15px; margin:-12px 0 8px; font-size:12px; color:var(--muted); }.trend-scale { font-size:13px; color:var(--muted); }
@media(max-width:700px) { .card:has([name=progressMetric])>.fields { grid-template-columns:1fr; } }

.trend-current { margin-top:18px; display:flex; align-items:baseline; gap:10px; }.trend-current strong { font-size:34px; letter-spacing:-1px; }.trend-current span { color:var(--muted); font-size:14px; }
