:root {
  color-scheme: dark;
  --page: #121c2d;
  --dark: #101827;
  --card: #1a2639;
  --surface: #202e44;
  --surface-hover: #2a3a53;
  --input: #162235;
  --ink: #edf2fb;
  --muted: #aebdd2;
  --line: #35465e;
  --line-strong: #687f9b;
  --lime: #d6ef82;
  --lime-hover: #e4f8a0;
  --lime-ink: #1a2417;
  --selected: #293b38;
  --selected-line: #78936b;
  --lavender: #c8b3ff;
  --lavender-bg: #352f4c;
  --coral: #ffae94;
  --coral-bg: #492f37;
  --mint: #8be7d2;
  --mint-bg: #203e43;
  --radius: 22px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 100%;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; background: radial-gradient(ellipse 940px 510px at 50% 0%, #24364f, transparent), var(--page); color: var(--ink); line-height: 1.48; -webkit-tap-highlight-color: transparent; }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, p { margin: 0; }
h1, h2, strong { text-wrap: pretty; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .5; }
button, a, input, select { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, .toggle:has(input:focus-visible) { outline: 2px solid var(--lime); outline-offset: 3px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { margin: 0 0 10px; padding: 0; font-weight: 720; }
[hidden] { display: none !important; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; z-index: 50; background: var(--card); padding: 10px 16px; border-radius: 8px; }
.frame { width: min(100% - 64px, 1160px); margin-inline: auto; }
main.frame { padding: 36px 0 70px; }
main:focus { outline: none; }
.muted { color: var(--muted); }
.tiny { font-size: .8125rem; }
.eyebrow { color: var(--muted); font-size: .75rem; font-weight: 750; letter-spacing: .115em; text-transform: uppercase; display: flex; align-items: center; gap: 7px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.card h2 { font-size: 1.25rem; letter-spacing: -.023em; line-height: 1.2; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-heading h2 { font-size: 1.4rem; font-weight: 710; letter-spacing: -.028em; line-height: 1.2; }
.section-heading .eyebrow { margin-bottom: 6px; }
.heading-with-icon { display: flex; align-items: center; gap: 11px; min-width: 0; }
.symbol { display: inline-grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--surface-hover); color: var(--muted); }
.symbol.lime, .tag.lime { background: var(--selected); color: var(--lime); }
.symbol.lilac, .tag.lilac { background: var(--lavender-bg); color: var(--lavender); }
.symbol.peach, .tag.peach { background: var(--coral-bg); color: var(--coral); }
.symbol.mint { background: var(--mint-bg); color: var(--mint); }
.tag { display: inline-flex; flex: none; align-items: center; border-radius: 999px; background: var(--surface); color: var(--muted); padding: 6px 10px; font-weight: 650; font-size: .8125rem; line-height: 1.2; }

.site-header { background: var(--dark); border-bottom: 1px solid var(--line); }
.header-inner { height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { display: inline-flex; width: fit-content; gap: 9px; align-items: center; color: var(--ink); text-decoration: none; font-size: 1.8rem; font-weight: 800; letter-spacing: -.07em; line-height: 1; }
.brand-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--lime); color: var(--lime-ink); }
.brand-period { color: var(--lime); }
.desktop-nav { display: flex; gap: 7px; align-items: center; }
.desktop-nav a, .mobile-nav a { display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: 42px; padding: 0 14px; border-radius: 10px; text-decoration: none; font-size: .9rem; font-weight: 660; color: var(--muted); }
.desktop-nav a[aria-current], .mobile-nav a[aria-current] { color: var(--lime); background: var(--selected); }
.desktop-nav a:not([aria-current]):hover { background: var(--surface-hover); color: var(--ink); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 13px; }
.sign-in-link { white-space: nowrap; }
.mobile-nav { display: none; }

.button, .icon-button, .pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; min-height: 46px; padding: 0 16px; border-radius: 11px; font-weight: 720; font-size: .92rem; line-height: 1.2; text-align: center; transition: background .15s, color .15s, border-color .15s, box-shadow .15s; }
.button svg, .icon-button svg { flex: none; }
a.button { text-decoration: none; }
.button.primary { background: var(--lime); color: var(--lime-ink); box-shadow: 0 1px 1px #080e1938; }
.button.primary:hover { background: var(--lime-hover); }
.button.secondary, .icon-button, .pill { border-color: var(--line); background: var(--surface); }
.button.secondary:hover, .icon-button:hover, .pill:hover { border-color: var(--line-strong); background: var(--surface-hover); }
.button.on-dark { background: #ffffff10; border-color: #ffffff38; color: var(--ink); }
.button.on-dark:hover, .button.on-dark[aria-pressed="true"] { background: #ffffff28; border-color: #ffffff57; }
.button.soft { background: var(--selected); color: var(--lime); }
.button.soft:hover { background: var(--surface-hover); }
.button.compact { min-height: 39px; padding-inline: 12px; font-size: .85rem; }
.button.text-button, .text-link { border: 0; color: var(--lime); background: transparent; text-decoration: none; font-size: .88rem; font-weight: 720; }
.button.text-button { padding-inline: 0; min-height: 36px; }
.button.text-button:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.icon-button { width: 44px; min-height: 44px; padding: 0; }
.profile-button { min-height: 44px; text-decoration: none; }
.profile-button[aria-current] { background: var(--selected); border-color: var(--selected-line); }

.page-intro { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 23px; }
.page-intro .eyebrow { margin-bottom: 8px; }
.page-intro h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); font-weight: 750; line-height: 1.06; letter-spacing: -.048em; }
.intro-actions { display: flex; align-items: center; gap: 9px; flex: none; max-width: 46%; }
.intro-actions:has([data-action="reschedule"]) { flex-wrap: wrap; justify-content: flex-end; }

.hero { position: relative; display: flex; align-items: center; overflow: hidden; isolation: isolate; border: 1px solid var(--line); border-radius: 27px; background: #142138; color: var(--ink); min-height: 386px; }
.hero-photo { position: absolute; z-index: -2; top: 0; right: 0; width: 61%; height: 100%; object-fit: cover; object-position: 57% 43%; filter: saturate(.69) brightness(.87); }
.hero-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #142138 0%, #142138 25%, #142138f9 35%, #14213892 55%, #14213824 77%, transparent 100%), linear-gradient(135deg, transparent 63%, #21334c45); }
.hero-content { padding: 34px 46px 40px; width: min(58%, 610px); }
.hero-kicker { display: flex; align-items: center; gap: 8px; color: var(--lime); font-size: .75rem; font-weight: 760; letter-spacing: .118em; }
.hero-kicker > span { height: 7px; width: 7px; border-radius: 50%; background: var(--lime); }
.hero h2 { font-size: clamp(2.85rem, 5.5vw, 4.75rem); font-weight: 730; letter-spacing: -.047em; line-height: 1.015; margin: 14px 0 21px; text-wrap: balance; }
.hero h2 span { display: block; }
.hero-meta, .hero-meta > span { display: flex; align-items: center; gap: 8px; }
.hero-meta { gap: 19px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.hero-meta svg { color: var(--lime); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-actions .button { min-height: 49px; padding-inline: 17px; }
.today-types { margin-top: 30px; }
.today-types .section-heading { margin-bottom: 12px; }
.type-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.type-tile { min-width: 0; min-height: 90px; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 17px; padding: 14px; transition: border-color .16s, background .16s, transform .16s; }
.type-tile:hover { border-color: var(--line-strong); transform: translateY(-2px); background: var(--surface-hover); }
.tile-copy, .entry-row > span:nth-child(2), .next-session > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.tile-copy strong { font-size: 1rem; font-weight: 710; letter-spacing: -.015em; line-height: 1.2; }
.tile-copy small { color: var(--muted); font-size: .78rem; line-height: 1.25; }
.today-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.summary-card .section-heading { margin-bottom: 15px; }
.summary-card .section-heading h2 { font-size: 1.2rem; }
.summary-card .section-heading .symbol { width: 37px; height: 37px; border-radius: 10px; }
.summary-card > p:not(.tiny) { margin: 2px 0 12px; }
.summary-card .button.soft { min-height: 41px; }
.summary-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0 18px; }
.summary-numbers > div { background: var(--surface); border: 1px solid var(--line); padding: 12px 14px; border-radius: 13px; }
.summary-numbers span { display: block; font-size: .875rem; color: var(--muted); }
.summary-numbers strong { display: block; font-size: 1.8rem; letter-spacing: -.07em; }
.summary-numbers small { font-size: .85rem; letter-spacing: 0; color: var(--muted); }
.mini-week { display: grid; grid-template-columns: repeat(7, 1fr); max-width: 390px; margin: 18px 0 8px; }
.mini-week > div { display: grid; justify-items: center; gap: 4px; }
.mini-week small { color: var(--muted); font-size: .75rem; }
.day-dot { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); }
.day-dot.checked { background: var(--lime); color: var(--lime-ink); }
.day-dot.current { box-shadow: 0 0 0 1px var(--selected-line); }
.next-session, .entry-row { width: 100%; text-align: left; display: flex; align-items: center; gap: 12px; min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); padding: 10px 12px; }
.next-session:hover, .entry-row:hover { background: var(--surface-hover); border-color: var(--line-strong); }
.next-session > svg, .entry-row > .tag { margin-left: auto; flex-shrink: 0; }
.next-session small, .entry-row small { color: var(--muted); font-size: .8125rem; }
.next-date { width: 44px; min-height: 48px; flex-shrink: 0; display: grid; align-content: center; justify-items: center; border-radius: 9px; background: var(--selected); line-height: 1.12; }
.next-date strong { font-size: 1.2rem; }

.program-banner { display: flex; justify-content: space-between; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; margin-bottom: 16px; }
.program-banner h2 { line-height: 1.2; }
.program-banner p { color: var(--muted); }
.program-banner .button { flex-shrink: 0; }
.week-controls { display: flex; gap: 6px; }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.week-date { display: grid; justify-items: center; gap: 6px; min-height: 91px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 0; color: var(--muted); }
button.week-date:hover { border-color: var(--line-strong); background: var(--surface-hover); }
.week-date.is-today { background: var(--selected); border-color: var(--selected-line); }
.week-date span { font-size: .82rem; font-weight: 650; }
.week-date strong { color: var(--ink); font-size: 1.36rem; font-variant-numeric: tabular-nums; }
.week-date i { height: 7px; width: 7px; border-radius: 50%; }
.week-date .week-flame { font-size: 1.1rem; line-height: 1; }
.week-events { display: flex; align-items: center; gap: 4px; }
.week-date .week-event-count { min-width: 17px; padding: 0 4px; border-radius: 6px; background: var(--lavender-bg); color: var(--lavender); font-size: .68rem; }
.event-dot { background: var(--lavender); }
.event-dot.lime { background: var(--lime); }
.event-dot.peach { background: var(--coral); }
.event-dot.neutral { background: var(--muted); }
.week-attendance { display: flex; align-items: center; gap: 12px; margin-top: 13px; font-size: .875rem; color: var(--muted); }
.week-attendance progress { width: min(40%, 210px); height: 9px; accent-color: var(--lime); }
.week-attendance strong { margin-left: 4px; color: var(--ink); }
.entry-list { display: grid; gap: 8px; margin-top: 14px; }
.entry-row .moved-note { color: var(--lime); }
.empty-inline { margin-top: 12px; }
.streak-card { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.streak-card p { margin-top: 4px; }
.streak-numbers { display: flex; flex-wrap: wrap; gap: 7px; }
.streak-numbers > div { display: grid; gap: 2px; min-width: 112px; padding: 8px 12px; border-radius: 10px; background: var(--surface); }
.streak-numbers span { color: var(--muted); font-size: .8125rem; }

label:not(.check-label):not(.rating-option):not(.toggle) { color: var(--muted); font-size: .875rem; font-weight: 640; }
input:is([type="text"], [type="number"], [type="date"], [type="time"], [type="url"], [type="email"], [type="password"], [type="search"]), select { display: block; min-height: 43px; width: 100%; padding: 8px 10px; margin-top: 5px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--input); color: var(--ink); }
input:disabled, select:disabled { opacity: .55; }
select { appearance: none; padding-right: 27px; background-image: linear-gradient(45deg, transparent 47%, var(--muted) 49%, var(--muted) 61%, transparent 63%), linear-gradient(135deg, transparent 47%, var(--muted) 49%, var(--muted) 61%, transparent 63%); background-position: calc(100% - 15px) 53%, calc(100% - 11px) 53%; background-size: 5px 5px; background-repeat: no-repeat; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; margin: 0; accent-color: var(--lime); flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-actions { display: flex; justify-content: end; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.form-error { color: var(--coral); font-weight: 650; font-size: .875rem; margin-top: 10px; }
.form-error:empty { display: none; }
.check-label { display: flex; align-items: center; gap: 8px; }
.pill-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.pill { min-height: 38px; padding: 0 10px; font-size: .81rem; }
.pill.selected { background: var(--selected); border-color: var(--selected-line); color: var(--lime); }
.cycle-dates { max-width: 480px; margin-top: 20px; }
.week-form { margin-top: 24px; }
.week-form > p { margin: -5px 0 10px; }
.week-form-row { display: grid; grid-template-columns: minmax(128px, .32fr) minmax(0, 1fr); align-items: start; gap: 13px; border-top: 1px solid var(--line); padding: 10px 0; }
.week-form-row.chosen { color: var(--ink); }
.cycle-day { min-height: 36px; font-weight: 680; cursor: pointer; }
.week-form-row:not(.chosen) .cycle-day { color: var(--muted); }
.cycle-slot { display: grid; gap: 10px; }
.slot-inputs { display: grid; align-items: end; grid-template-columns: minmax(140px, 1.25fr) minmax(88px, 1fr) minmax(88px, 1fr) auto; gap: 8px; }
.slot-inputs label, .slot-inputs input, .slot-inputs select { min-width: 0; }
.slot-budget { display: grid; place-items: center; min-height: 43px; min-width: 64px; padding: 5px 8px; color: var(--lime); background: var(--selected); border-radius: 9px; white-space: nowrap; font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.slot-budget.invalid { color: var(--coral); background: var(--coral-bg); }
.cycle-focus legend { margin-bottom: 5px; font-size: .875rem; }
.cycle-focus-options { display: flex; flex-wrap: wrap; gap: 6px; }
.cycle-focus-choice { min-height: 40px; min-width: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: .83rem; font-weight: 600; cursor: pointer; }
.cycle-focus-choice:has(input:checked) { background: var(--selected); border-color: var(--selected-line); box-shadow: inset 3px 0 var(--region-color); }
.cycle-model-toggle { margin-top: 8px; }
.cycle-focus-options[hidden] + .cycle-model-toggle { margin-top: 0; }

.planner-layout { display: grid; grid-template-columns: minmax(270px, .82fr) minmax(0, 1.75fr); gap: 16px; align-items: start; }
.planner-sidebar { display: grid; gap: 11px; }
.plan-controls { display: grid; gap: 11px; padding: 20px; }
.body-map { margin-bottom: 16px; padding: 22px; }
.cycle-body-map { margin: 10px 0 0; padding: 14px; background: var(--surface); box-shadow: none; }
.cycle-body-map h2 { font-size: 1.18rem; }
.body-map-heading { display: grid; gap: 4px; margin-bottom: 16px; }
.body-map-heading p { font-size: .9rem; }
.body-map-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(215px, .9fr); gap: 20px; align-items: center; }
.body-map-stage { position: relative; overflow: hidden; min-width: 0; border-radius: 16px; background: var(--dark); }
.model-viewport { position: relative; min-width: 0; }
.model-viewport canvas { display: block; width: 100%; background: radial-gradient(ellipse at 50% 43%, var(--line) 0%, var(--surface) 49%, var(--page) 90%); }
.model-message { position: absolute; inset: 0; align-content: center; margin: 0; padding: 15px; text-align: center; color: var(--ink); font-size: .9rem; pointer-events: none; }
.body-map-stage canvas { height: clamp(305px, 38vh, 375px); touch-action: manipulation; }
.body-map-angles { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 5px; }
.body-map-angles button[aria-pressed="true"], .demo-angles button[aria-pressed="true"] { color: var(--lime); border-color: #d6ef8280; }
.body-map-regions { display: grid; gap: 9px; }
.body-region { min-height: 51px; display: grid; grid-template-columns: 12px minmax(0, 1fr) 18px; align-items: center; gap: 11px; padding: 10px 12px; text-align: left; font-size: .91rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.body-region:hover { background: var(--surface-hover); }
.body-region[aria-pressed="true"] { background: var(--selected); border-color: var(--selected-line); box-shadow: inset 3px 0 var(--region-color); }
.region-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--region-color); border: 1px solid #e5edf354; }
.region-check { display: grid; visibility: hidden; place-items: center; color: var(--lime); }
.body-region[aria-pressed="true"] .region-check { visibility: visible; }
.inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 7px; }
.inline-form .button { min-height: 43px; }
.coach-note { padding: 19px; }
.coach-note p { color: var(--muted); margin-top: 10px; font-size: .915rem; }
.coach-note strong { display: block; margin-top: 8px; font-size: .9rem; }
.coach-note .button { margin-top: 10px; }
.time-estimate { font-size: .875rem; color: var(--lime); display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; background: var(--selected); border-radius: 999px; padding: 8px 11px; }
.time-estimate.over, .time-warning { background: var(--coral-bg); color: var(--coral); }
.time-warning { border-radius: 9px; padding: 7px 10px; margin-bottom: 10px; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 5px 14px; align-items: center; margin: 14px 0 12px; }
.empty-plan { margin-top: 15px; padding: 14px; background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; }
.small-stage, .exercise-row { display: flex; gap: 10px; min-height: 58px; align-items: center; border-top: 1px solid var(--line); padding: 8px 0; }
.small-stage { color: var(--muted); font-size: .88rem; }
.small-stage .symbol { width: 35px; height: 35px; border-radius: 9px; }
.small-stage strong { margin-left: auto; font-variant-numeric: tabular-nums; }
.exercise-row { min-height: 69px; }
.exercise-name { flex: 1; min-width: 0; display: grid; gap: 2px; }
.exercise-name strong { font-weight: 720; line-height: 1.25; }
.exercise-name small { color: var(--muted); font-size: .8rem; }
.exercise-tools { display: flex; gap: 5px; }
.exercise-menu { justify-content: start; }
.exclude-action.button { color: var(--coral); }
.excluded-list .setting-row { gap: 15px; border-bottom: 1px solid var(--line); }
.excluded-list .setting-row:last-child { border-bottom: 0; }
.excluded-list .setting-row strong, .excluded-list .setting-row small { display: block; }
.excluded-list .setting-row small { color: var(--muted); }
.exercise-load { max-width: 260px; margin: 0 0 12px; }
.exercise-load label { display: block; }
.count-input { display: flex; align-items: center; gap: 5px; flex: none; }
.count-input input { width: 66px; margin-top: 0; min-height: 39px; }
.count-input small { min-width: 30px; }
.exercise-row .icon-button { flex: none; width: 41px; min-height: 41px; }
.tune-fields { border-top: 1px solid var(--line); padding-top: 10px; }
.tune-fields summary { color: var(--ink); cursor: pointer; font-weight: 650; padding: 8px 0; }
.tune-fields .form-grid, .final-round-option { margin-top: 10px; }

.progress-layout { display: grid; grid-template-columns: 1.2fr .8fr; align-items: start; gap: 16px; }
.workout-history { margin-top: 16px; }
.compact-select select { width: auto; margin: 0; }
.empty-chart { display: grid; place-content: center; justify-items: center; gap: 12px; min-height: 180px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; padding: 20px; }
.metric-today { display: grid; gap: 1px; }
.metric-today strong { font-size: 2.25rem; letter-spacing: -.065em; }
.metric-today strong small { font-size: 1rem; letter-spacing: normal; color: var(--muted); }
.metric-today span { color: var(--muted); font-size: .875rem; }
.trend-chart { display: block; width: 100%; height: 190px; margin-top: 12px; }
.records-list { display: grid; }
.measurement-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.measurement-row p { display: flex; gap: 3px 10px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; margin-top: 3px; }
.measurement-row b { color: var(--ink); }
.measurement-row .icon-button { flex-shrink: 0; }

.live-page .page-intro h1 { font-size: clamp(2rem, 5vw, 3.15rem); }
.session-progress { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .875rem; margin-bottom: 13px; }
.session-progress progress { appearance: none; flex: 1; height: 9px; border: 0; border-radius: 9px; background: var(--surface); overflow: hidden; }
.session-progress progress::-webkit-progress-bar { background: var(--surface); }
.session-progress progress::-webkit-progress-value { background: var(--lime); border-radius: 9px; }
.session-progress progress::-moz-progress-bar { background: var(--lime); }
.live-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .8fr); gap: 15px; align-items: start; }
.live-stage { display: grid; grid-template-rows: auto 1fr auto; min-height: 460px; background: radial-gradient(ellipse at 50% 38%, var(--surface), var(--dark) 77%); border: 1px solid var(--line); color: var(--ink); border-radius: 24px; padding: 20px 24px; }
.stage-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stage-chip { display: inline-flex; border-radius: 999px; padding: 6px 11px; background: var(--lime); color: var(--lime-ink); font-size: .84rem; font-weight: 760; }
.stage-center { display: grid; align-content: center; justify-items: center; padding: 15px 0 23px; text-align: center; }
.stage-center > p { color: var(--muted); font-size: .875rem; }
.stage-center > p:empty { display: none; }
.stage-center h2 { font-size: clamp(1.55rem, 4vw, 2.35rem); line-height: 1.08; letter-spacing: -.035em; margin-bottom: 13px; }
.timer-ring { --remaining: 100%; width: 182px; height: 182px; padding: 6px; border-radius: 100%; display: grid; background: conic-gradient(var(--lime) var(--remaining), var(--line) var(--remaining)); }
.timer-ring > div { display: grid; align-content: center; justify-items: center; border-radius: inherit; background: var(--dark); }
.timer-ring strong { font-size: 2.85rem; font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1.12; }
.timer-ring span { color: var(--muted); font-size: .78rem; }
.stage-count { padding-top: 10px; }
.stage-pace { max-width: 40ch; padding-top: 10px; }
.stage-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; }
.rep-form { display: grid; gap: 15px; width: min(220px, 100%); justify-items: stretch; }
.rep-form fieldset { display: grid; gap: 12px; }
.rep-form label:not(.check-label):not(.rating-option):not(.toggle) { color: var(--ink); }
.rep-form [name="actual"] { min-height: 56px; text-align: center; font-size: 1.8rem; font-weight: 720; }
.rep-form .form-error { color: var(--coral); }
.active-band { color: var(--ink); font-size: .875rem; }
.live-side { display: grid; gap: 11px; }
.live-demo { padding: 18px; }
.live-demo .section-heading { margin-bottom: 9px; }
.live-demo .symbol { width: 35px; height: 35px; }
.live-demo canvas { height: 185px; border-radius: 13px; }
.live-demo p { color: var(--muted); margin: 10px 0; font-size: .88rem; }
.next-step { display: grid; gap: 4px; padding: 15px 18px; }
.next-step > span { color: var(--muted); font-size: .875rem; }
.feedback-page { max-width: 760px; margin: 0 auto; }
.feedback-card { text-align: center; padding: 28px; }
.feedback-card > .symbol { width: 54px; height: 54px; }
.feedback-card h2 { margin: 11px 0 6px; font-size: 1.65rem; }
.feedback-card form { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 19px; }
.feedback-card legend { width: 100%; font-size: 1.3rem; letter-spacing: -.04em; }
.feedback-card .form-actions { justify-content: center; }
.rating-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin-top: 12px; }
.rating-option { display: grid; align-content: center; justify-items: center; gap: 7px; min-height: 78px; padding: 7px 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); font-weight: 650; font-size: .85rem; cursor: pointer; }
.rating-option:has(input:checked) { background: var(--selected); border-color: var(--selected-line); }

dialog { width: min(95vw, 550px); max-height: min(90dvh, 780px); padding: 23px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 21px; background: var(--card); box-shadow: 0 20px 90px #080e19b3; }
dialog::backdrop { background: #080e19b0; }
.dialog-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 17px; }
.dialog-top .eyebrow { margin-bottom: 4px; }
.dialog-top h2 { font-size: clamp(1.42rem, 4vw, 1.85rem); line-height: 1.15; letter-spacing: -.033em; }
.dialog-top .icon-button { flex: none; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(240px, 1fr); gap: 15px; align-items: start; }
.profile-account { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; padding-block: 14px; }
.profile-account p, .account-identity strong, .admin-user-identity strong { overflow-wrap: anywhere; }
.profile-account .button, .account-identity .button { flex: none; }
.account-page { max-width: 460px; margin-inline: auto; }
.account-form { display: grid; gap: 14px; }
.account-form input, .admin-search input { font-size: 1rem; font-weight: 500; }
.account-form .form-error { margin-top: 0; }
.account-form [id="password-hint"] { margin-top: -8px; }
.account-form > a.button, .account-import > .button { justify-self: start; }
.account-identity { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-import, .account-password { display: grid; gap: 9px; border-top: 1px solid var(--line); padding-top: 13px; }
.account-password summary { cursor: pointer; font-weight: 680; }
.account-password form { margin-top: 12px; }
.admin-search { display: flex; align-items: end; gap: 9px; max-width: 490px; }
.admin-search label { flex: 1; min-width: 0; }
.admin-total { margin-top: 16px; }
.admin-users { list-style: none; margin: 8px 0 0; padding: 0; }
.admin-user { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.admin-user-identity { display: grid; gap: 2px; }
.admin-user-actions, .admin-pages { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.admin-pages { justify-content: end; margin-top: 12px; }
.bodyweight-choice { padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.bodyweight-choice:has(input:checked) { border-color: var(--selected-line); background: var(--selected); }
.bodyweight-choice .symbol { width: 36px; height: 36px; border-radius: 9px; }
.bodyweight-choice input { margin-left: auto; }
.equipment-group { margin-top: 22px; }
.equipment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.equipment-tile { display: grid; grid-template-rows: auto 1fr; min-width: 0; padding: 6px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; background: var(--surface); }
.equipment-tile:hover { border-color: var(--line-strong); }
.equipment-tile:has(input:checked) { border-color: var(--selected-line); background: var(--selected); box-shadow: inset 0 0 0 1px var(--selected-line); }
.equipment-photo { display: block; width: min(100%, 135px); aspect-ratio: 1; justify-self: center; background: #b9c9df url('./assets/katalog-sprzetu.jpg') var(--gear-x) var(--gear-y) / 300% 300% no-repeat; background-blend-mode: multiply; border-radius: 9px; filter: saturate(.7); }
.equipment-label { display: flex; gap: 5px; justify-content: space-between; align-items: center; padding: 8px 4px 3px; color: var(--ink); }
.equipment-label strong { line-height: 1.15; }
.inventory-list-group { display: grid; gap: 8px; }
.inventory-fields { margin-top: 12px; border: 1px solid var(--line); padding: 12px; border-radius: 12px; background: var(--surface); }
.inventory-fields legend { margin-bottom: 0; padding: 0 4px; }
.inventory-fields > p.muted { margin-bottom: 7px; }
.inventory-list, .inventory-range, .inventory-start { margin-top: 12px; }
.inventory-range { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.inventory-start { display: block; margin-bottom: 7px; }
.weight-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.weight-chips:empty { display: none; }
.weight-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; min-height: 32px; border: 1px solid var(--line); border-radius: 999px; background: var(--selected); font-size: .82rem; font-weight: 650; }
.weight-chip:hover { background: var(--surface-hover); }
.resistance-option { min-height: 36px; font-size: .875rem; padding: 4px 7px; }
.profile-preferences .setting-row { gap: 15px; margin-top: 6px; }
.profile-save { grid-column: 1 / -1; margin-top: 0; }
.setting-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 9px 0; }
.setting-spotify { margin-top: 12px; }
.setting-spotify .button, .measurement-form + p { margin-top: 7px; }
.spotify-panel { --spotify-offset: 18px; position: fixed; z-index: 6; bottom: var(--spotify-offset); right: max(16px, calc((100% - 1160px) / 2)); width: min(410px, calc(100% - 32px)); padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 12px 42px #080e1970; }
.spotify-panel:has(.spotify-body[hidden]) { width: min(290px, calc(100% - 16px)); }
.spotify-panel-header, .spotify-panel-actions, .spotify-panel-links { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.spotify-panel-header h2 { margin-left: 3px; font-size: 1.15rem; line-height: 1.15; letter-spacing: -.026em; }
.spotify-logo { display: block; width: 88px; height: auto; filter: invert(1); }
.spotify-panel-header h2:focus { outline: none; }
.spotify-body { margin-top: 8px; max-height: min(500px, calc(100dvh - var(--spotify-offset) - 75px)); overflow: auto; }
.spotify-body iframe { display: block; width: 100%; height: 352px; border: 0; border-radius: 12px; }
.spotify-form { display: grid; gap: 8px; padding-block: 4px; }
.spotify-form .button { justify-self: start; }
.spotify-form .form-error { margin-top: 0; }
.spotify-panel-links { margin-top: 5px; padding-inline: 3px; min-height: 32px; }
.spotify-panel-links .text-button { min-height: 34px; }
.spotify-connect-form, .spotify-remote { display: grid; gap: 8px; margin: 3px 0; }
.spotify-connect-form > button { justify-self: start; }
.spotify-setup { padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.spotify-widget { margin-top: 7px; border-top: 1px solid var(--line); padding: 8px 0 0; }
.spotify-setup summary, .spotify-widget summary { cursor: pointer; font-weight: 650; font-size: .875rem; }
.spotify-setup > p, .spotify-setup > label, .spotify-widget[open] summary { margin-bottom: 7px; }
.spotify-setup > label { display: block; }
.spotify-setup input[data-spotify-redirect] { font-size: .8125rem; }
.spotify-status { padding: 4px 4px 7px; }
.spotify-remote-row, .spotify-transport { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.spotify-remote-row .button, .spotify-remote-row .text-link { font-size: .81rem; }
.spotify-now { display: flex; align-items: center; gap: 9px; padding: 8px; background: var(--surface-hover); border-radius: 10px; overflow-wrap: anywhere; }
.spotify-now > img { width: 44px; height: 44px; border-radius: 4px; object-fit: contain; flex: none; }
.spotify-track { font-weight: 710; text-decoration: none; }
.spotify-track:hover { text-decoration: underline; }
.spotify-mini { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.spotify-mini > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; color: var(--muted); }
.spotify-mini .icon-button, .spotify-transport .icon-button { width: 39px; min-height: 39px; }
.profile-footer { border-top: 1px solid var(--line); display: grid; justify-items: start; gap: 8px; margin-top: 16px; padding-top: 12px; }
.profile-footer:empty { display: none; }
.toggle { position: relative; display: flex; align-items: center; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle > span:last-child { position: relative; height: 27px; width: 46px; border-radius: 99px; background: var(--surface); }
.toggle > span:last-child::after { content: ''; position: absolute; top: 4px; left: 4px; width: 19px; height: 19px; border-radius: 50%; background: var(--ink); transition: transform .16s; }
.toggle input:checked + span { background: var(--lime); }
.toggle input:checked + span::after { transform: translateX(19px); background: var(--lime-ink); }
.measurement-form { margin-top: 12px; }
.reschedule-form > label { display: block; margin-top: 14px; }
.reschedule-window { margin-top: 12px; }
.reschedule-window label, .reschedule-window input { min-width: 0; }
.reschedule-end { display: flex; justify-content: space-between; margin-top: 12px; padding: 8px 10px; border-radius: 9px; background: var(--surface); }
.reschedule-end output { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.demo-stage { background: var(--dark); border-radius: 14px; overflow: hidden; }
.demo-stage canvas { height: clamp(260px, 41vh, 365px); }
.demo-toolbar { display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; padding: 6px 10px 10px; }
.demo-angles { display: flex; gap: 4px; }
.muscle-legend { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; font-size: .85rem; color: var(--muted); }
.muscle-marker { width: 10px; height: 10px; border: 1px solid var(--selected-line); border-radius: 50%; background: var(--lime); flex: none; }
.technique-steps { display: grid; gap: 7px; padding-left: 24px; margin: 14px 0; color: var(--muted); }
.shorten-options { margin-top: 15px; }
.shorten-options .check-label { padding: 8px 0; }
.workout-results { margin-top: 12px; }
.workout-results .setting-row { border-top: 1px solid var(--line); }
.workout-results .setting-row > span { text-align: right; color: var(--muted); font-size: .875rem; }
dialog > p + p { margin-top: 6px; }
.toast { position: fixed; z-index: 10; bottom: 22px; left: 50%; max-width: min(90vw, 480px); width: max-content; padding: 11px 15px; border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: 0 8px 28px #080e1966; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .16s, transform .16s; font-size: .9rem; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 930px) {
  .type-tile { padding: 10px; gap: 8px; }
  .type-tile .symbol { width: 38px; height: 38px; border-radius: 10px; }
  .type-tile .symbol svg { width: 19px; height: 19px; }
  .hero-content { padding-left: 33px; width: 64%; }
}

@media (max-width: 730px) {
  .frame { width: calc(100% - 32px); }
  .header-inner { height: 62px; grid-template-columns: 1fr auto; }
  .brand { font-size: 1.62rem; }
  .brand-icon { width: 33px; height: 33px; border-radius: 9px; }
  .brand-icon svg { width: 22px; height: 22px; }
  .profile-button { width: 42px; min-height: 42px; padding: 0; }
  .profile-button > span { display: none; }
  .desktop-nav { display: none; }
  .mobile-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; position: fixed; z-index: 4; inset: auto 0 0; padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); background: var(--dark); border-top: 1px solid var(--line); box-shadow: 0 -3px 16px #080e1966; }
  .mobile-nav a { flex-direction: column; gap: 3px; font-size: .76rem; padding: 4px 3px; min-height: 49px; }
  .app-session .mobile-nav { display: none; }
  main.frame { padding: 23px 0 93px; }
  .app-session main.frame { padding-bottom: 30px; }
  .page-intro { align-items: flex-start; gap: 9px; margin-bottom: 15px; }
  .page-intro h1 { font-size: clamp(1.9rem, 7.5vw, 2.8rem); }
  .page-intro .eyebrow { margin-bottom: 6px; }
  .intro-actions .button { font-size: .82rem; min-height: 39px; padding-inline: 9px; }
  .intro-actions .button svg { width: 16px; height: 16px; }
  .today-page .page-intro { align-items: end; }
  .hero { min-height: 355px; }
  .hero h2 { font-size: clamp(2.8rem, 8vw, 4.65rem); }
  .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .type-tile { min-height: 76px; }
  .today-types { margin-top: 22px; }
  .today-bottom, .planner-layout, .progress-layout, .live-grid { gap: 10px; }
  .today-bottom { margin-top: 15px; }
  .card { padding: 17px; }
  .planner-layout { grid-template-columns: minmax(0, .88fr) minmax(0, 1.2fr); }
  .profile-layout { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .admin-user { grid-template-columns: minmax(0, 1fr) auto; }
  .admin-user-actions { grid-column: 1 / -1; }
  .week-form-row { grid-template-columns: 1fr; gap: 7px; }
  .toast { bottom: calc(74px + env(safe-area-inset-bottom)); }
  .app-session .toast { bottom: calc(17px + env(safe-area-inset-bottom)); }
  .spotify-panel { --spotify-offset: calc(70px + env(safe-area-inset-bottom)); right: 8px; width: min(410px, calc(100% - 16px)); }
  .app-session .spotify-panel { --spotify-offset: calc(10px + env(safe-area-inset-bottom)); }
}

@media (max-width: 540px) {
  .intro-actions { max-width: 45%; }
  .today-page .page-intro .eyebrow { font-size: .6875rem; letter-spacing: .09em; }
  .hero { align-items: end; min-height: 420px; border-radius: 20px; }
  .hero-photo { width: 100%; height: 76%; object-position: 72% 37%; }
  .hero-shade { background: linear-gradient(0deg, #142138 12%, #142138fc 31%, #14213880 58%, #1421380a 84%), linear-gradient(90deg, #1421385e, transparent 66%); }
  .hero-content { width: 100%; padding: 18px 20px 23px; }
  .hero h2 { font-size: clamp(2.55rem, 10vw, 3.55rem); margin: 10px 0 13px; }
  .hero-meta { gap: 12px; font-size: .82rem; }
  .hero-actions { margin-top: 16px; }
  .hero-actions .button { font-size: .88rem; min-height: 44px; padding-inline: 12px; }
  .section-heading h2 { font-size: 1.18rem; }
  .tile-copy small { font-size: .75rem; }
  .today-bottom, .planner-layout, .progress-layout, .live-grid { grid-template-columns: minmax(0, 1fr); }
  .planner-sidebar { gap: 8px; }
  .body-map { padding: 13px; }
  .cycle-body-map { padding: 10px; }
  .body-map-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .body-map-stage canvas { height: clamp(250px, 31vh, 295px); }
  .body-map-angles { position: static; justify-content: center; padding: 5px 8px 8px; }
  .body-map-regions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .body-region { min-height: 46px; padding: 7px 8px; gap: 6px; font-size: .78rem; grid-template-columns: 10px minmax(0, 1fr) 16px; }
  .region-dot { width: 10px; height: 10px; }
  .program-banner { flex-wrap: wrap; padding: 14px; }
  .week-strip { gap: 4px; }
  .week-date { min-height: 75px; border-radius: 8px; gap: 2px; }
  .week-date span { font-size: .73rem; }
  .week-date strong { font-size: 1.12rem; }
  .week-controls .button { min-height: 34px; padding-inline: 7px; font-size: .75rem; }
  .cycle-form .pill-row .button { min-height: 35px; }
  .slot-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
  .slot-inputs > label:first-child { grid-column: 1 / -1; }
  .slot-inputs input[type="time"] { padding-inline: 6px; }
  .cycle-focus-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cycle-focus-choice { min-height: 44px; padding-inline: 7px; gap: 5px; }
  .session-plan .section-heading { gap: 5px; }
  .time-estimate { font-size: .79rem; }
  .exercise-row { gap: 6px; }
  .exercise-tools { gap: 3px; }
  .count-input input { width: 54px; }
  .count-input small { min-width: 22px; }
  .exercise-row .icon-button { width: 38px; min-height: 38px; }
  .live-stage { min-height: 415px; padding: 14px; }
  .live-demo canvas { height: 170px; }
  .stage-actions .button { min-height: 42px; padding-inline: 10px; font-size: .83rem; }
  .feedback-card { padding: 16px; }
  .rating-grid { grid-template-columns: 1fr; gap: 5px; }
  .rating-option { min-height: 40px; display: flex; align-items: center; justify-content: start; padding: 7px 10px; }
  .entry-row .tag { font-size: .71rem; padding: 5px 7px; }
  .equipment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .equipment-group:first-of-type .equipment-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .equipment-tile { padding: 4px; }
  .equipment-label { padding-inline: 2px; }
  .equipment-label strong { font-size: .81rem; }
  .equipment-label input { width: 16px; height: 16px; }
  .inventory-fields > .form-grid:not(.inventory-range) { grid-template-columns: minmax(0, 1fr); }
  .inventory-range { gap: 6px; }
  dialog { width: calc(100% - 18px); max-height: 92dvh; margin: auto auto max(8px, env(safe-area-inset-bottom)); padding: 16px; border-radius: 17px; }
  .demo-stage canvas { height: clamp(240px, 37vh, 320px); }
  .demo-toolbar { justify-content: center; }
  input[type="text"], input[type="number"], input[type="date"], input[type="time"], input[type="url"], select { font-size: 1rem; }
}

@media (max-width: 365px) {
  .frame { width: calc(100% - 22px); }
  .type-tile { align-items: start; }
  .type-tile .symbol { width: 32px; height: 32px; }
  .type-tile small { font-size: .72rem; }
  .hero-content { padding-inline: 13px; }
  .hero-actions { gap: 5px; }
  .hero-actions .button { padding-inline: 9px; }
}

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