:root {
    color-scheme: light;
    --background: #f5f5f0;
    --surface: #ffffff;
    --ink: #222e29;
    --muted: #65716a;
    --border: #e1e6df;
    --green: #174c3c;
    --green-light: #eaf1e9;
    --lime: #d9edae;
    --radius: 18px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
svg { display: block; width: 24px; height: 24px; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
a:focus-visible { outline: 3px solid #8c651b; outline-offset: 5px; }
.skip-link { position: absolute; top: -80px; left: 16px; z-index: 10; padding: 12px 20px; background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { top: 8px; }
.site-header { border-bottom: 1px solid var(--border); background: #fbfcf8; }
.header-inner { max-width: 1168px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 22px; font-weight: 750; letter-spacing: -1px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; color: white; background: var(--green); border-radius: 11px; }
.brand-light { font-weight: 450; }
.brand-dot { color: var(--green); }
.main-nav { display: flex; gap: 4px; }
.nav-link { min-height: 44px; padding: 11px 16px; border-radius: 9px; font-size: 14px; color: var(--muted); font-weight: 600; }
.nav-link:hover { background: var(--green-light); }
.nav-link.is-active { color: var(--green); background: var(--green-light); }
.logout-form { margin: 0; }
.logout-button { border: 0; background: transparent; font-family: inherit; cursor: pointer; }
.page-shell { max-width: 1168px; margin: 0 auto; padding: 30px 24px 0; }
.stage-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.status-dot { display: inline-block; width: 6px; height: 6px; flex-shrink: 0; background: var(--green); border-radius: 50%; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 31px 0 28px; }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; line-height: 1.4; }
h1 { margin-top: 9px; font-size: clamp(30px, 4.2vw, 44px); font-weight: 650; letter-spacing: -1.8px; }
.page-description { margin-top: 12px; color: var(--muted); font-size: 15px; }
.personal-label { padding-bottom: 3px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.dashboard-grid { display: grid; grid-template-columns: 1.26fr 1fr; gap: 20px; }
.next-workout { display: flex; flex-direction: column; justify-content: space-between; min-height: 363px; padding: 30px; overflow: hidden; color: #fff; background: var(--green); border: 1px solid var(--green); border-radius: var(--radius); }
.hero-topline { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.next-workout .eyebrow { color: #d0dfd6; }
.hero-badge { padding: 5px 10px; color: #e4ebdf; border: 1px solid #517664; border-radius: 6px; font-size: 10px; }
.hero-workout { display: flex; align-items: center; gap: 26px; margin: 24px 0 27px; }
.workout-letter { font-size: 125px; font-weight: 550; line-height: 1; letter-spacing: -7px; color: var(--lime); }
.hero-workout h2 { font-size: 25px; font-weight: 600; letter-spacing: -.6px; }
.workout-groups { max-width: 250px; margin-top: 8px; color: #dce5df; font-size: 17px; line-height: 1.45; }
.hero-meta { margin-top: 17px; color: #cedbd2; font-size: 12px; }
.hero-meta span { margin: 0 5px; }
.button { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 15px 20px; border-radius: 10px; font-weight: 750; letter-spacing: .5px; font-size: 13px; transition: background-color .15s; }
.button-light { color: var(--green); background: var(--lime); }
.button-light:hover { background: #e7f5c8; }
.button svg { width: 22px; height: 22px; }
.dashboard-side { display: grid; grid-template-rows: auto 1fr; gap: 16px; }
.panel { padding: 23px 25px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.section-kicker { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.section-kicker svg { width: 18px; height: 18px; }
.section-kicker h2, .sequence-heading h2 { font-size: 13px; font-weight: 600; }
.last-workout-value { margin-top: 16px; font-size: 22px; font-weight: 650; letter-spacing: -.5px; }
.empty-value { font-size: 20px; }
.muted { color: var(--muted); font-size: 12px; }
.last-workout .muted { margin-top: 5px; }
.sequence-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.sequence-heading > span { font-size: 10px; letter-spacing: 1px; color: var(--muted); white-space: nowrap; }
.sequence-track { display: flex; justify-content: space-around; align-items: flex-start; gap: 8px; margin: 21px 0 16px; }
.sequence-step { display: grid; justify-items: center; gap: 6px; font-size: 10px; color: var(--muted); }
.sequence-letter { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 11px; background: #fafbf8; font-size: 17px; font-weight: 650; }
.sequence-step.is-next { color: var(--green); font-weight: 700; }
.sequence-step.is-next .sequence-letter { color: var(--green); background: var(--green-light); border-color: #afc8b7; }
.sequence-arrow { margin-top: 5px; color: #879188; }
.sequence-panel > .muted { max-width: 340px; font-size: 11px; }
.exercise-preview { margin-top: 37px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { margin-top: 7px; font-size: 23px; font-weight: 650; letter-spacing: -.5px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; gap: 9px; color: var(--green); font-size: 12px; font-weight: 650; }
.text-link:hover { text-decoration: underline; }
.text-link span { font-size: 19px; }
.preview-list, .exercise-grid { padding: 0; margin: 0; list-style: none; }
.preview-list { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.preview-row { display: flex; align-items: center; gap: 18px; padding: 18px 24px; }
.preview-row + .preview-row { border-top: 1px solid #ebeee8; }
.exercise-number { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; background: #f0f3ec; color: #61715f; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.preview-name { flex: 1; min-width: 0; }
.preview-name h3 { font-size: 15px; font-weight: 600; line-height: 1.4; }
.preview-name p { margin-top: 3px; color: var(--muted); font-size: 12px; }
.preview-name p span { padding: 0 4px; }
.load-pill { max-width: 140px; padding: 6px 11px; border: 1px solid #dfe8de; border-radius: 7px; color: var(--green); background: #f5f8f2; font-size: 12px; font-weight: 650; text-align: right; }
.load-pill.is-unset { color: #756440; border-color: #e9e2d1; background: #faf8f0; }
.stage-notice { display: flex; align-items: flex-start; gap: 11px; margin-top: 25px; padding: 17px 20px; border: 1px solid #e1e4d7; border-radius: 11px; color: #667057; background: #eff1e7; }
.stage-notice svg { width: 18px; height: 18px; margin-top: 1px; }
.stage-notice p { font-size: 12px; line-height: 1.65; }
.stage-notice strong { color: #4d5c46; font-weight: 650; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 0 26px; margin-top: 19px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.site-footer > span { white-space: nowrap; }
.next-label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid #d6e2d3; border-radius: 7px; background: var(--green-light); color: var(--green); font-size: 12px; white-space: nowrap; }
.workout-tabs { display: flex; gap: 9px; max-width: 520px; margin: 0 0 31px; }
.workout-tab { display: flex; flex: 1; align-items: center; gap: 11px; min-height: 58px; padding: 11px 17px; border: 1px solid var(--border); border-radius: 10px; color: var(--muted); background: var(--surface); font-size: 14px; font-weight: 600; }
.workout-tab:hover { border-color: #98b8a1; background: #edf3e9; }
.tab-letter { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: #f0f2ed; font-size: 13px; }
.workout-tab.is-selected { color: #fff; border-color: var(--green); background: var(--green); }
.workout-tab.is-selected .tab-letter { color: var(--lime); background: #376754; }
.sheet-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-bottom: 19px; }
.sheet-heading h2 { margin-top: 7px; font-size: clamp(21px, 3vw, 27px); font-weight: 650; letter-spacing: -.6px; }
.sheet-heading .eyebrow { color: var(--green); }
.sheet-summary { color: var(--muted); font-size: 13px; white-space: nowrap; }
.sheet-summary strong { color: var(--ink); font-weight: 650; }
.sheet-summary > span { margin: 0 7px; }
.exercise-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.exercise-card { display: flex; flex-direction: column; min-width: 0; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.exercise-card-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.muscle-label { color: var(--muted); font-size: 11px; text-align: right; }
.exercise-card h3 { margin-top: 17px; font-size: 19px; font-weight: 650; line-height: 1.4; letter-spacing: -.3px; }
.exercise-image { display: block; width: 100%; max-height: 200px; margin-top: 17px; object-fit: contain; border-radius: 8px; }
.exercise-targets { display: flex; gap: 35px; margin: 22px 0 21px; }
.exercise-targets > div + div { padding-left: 35px; border-left: 1px solid var(--border); }
.exercise-targets dt { color: var(--muted); font-size: 12px; }
.exercise-targets dd { margin: 5px 0 0; font-size: 27px; font-weight: 600; line-height: 1.2; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.rep-dash { padding: 0 3px; color: #829081; font-weight: 400; }
.exercise-load { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 14px; margin-top: auto; padding: 13px 14px; border-radius: 9px; background: #eff4eb; color: var(--green); }
.exercise-load > span { font-size: 12px; }
.exercise-load strong { font-size: 17px; font-weight: 650; }
.exercise-load.is-unset { background: #f6f3e9; color: #756440; }
.load-note { margin-top: 10px; color: var(--muted); font-size: 11px; }
.empty-state p { color: var(--muted); font-size: 14px; }
.validation-message { padding: 14px 17px; margin-bottom: 18px; border: 1px solid #e1ba9f; border-radius: 10px; background: #fbefe4; color: #75411f; font-size: 14px; }
.login-body { min-height: 100vh; background: var(--green); }
.login-shell { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.login-card { width: min(100%, 430px); padding: 38px; border-radius: 22px; background: var(--surface); box-shadow: 0 24px 70px rgba(4, 34, 25, .24); }
.login-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 38px; font-size: 22px; font-weight: 750; letter-spacing: -1px; }
.login-card h1 { margin-top: 9px; }
.login-description { margin-top: 10px; color: var(--muted); font-size: 14px; }
.login-form { display: grid; gap: 10px; margin-top: 29px; }
.login-form label { font-size: 13px; font-weight: 650; }
.login-form input[type="password"] { width: 100%; min-height: 56px; padding: 12px 15px; border: 1px solid #cfd8d1; border-radius: 10px; background: #fbfcfa; color: var(--ink); font: inherit; font-size: 18px; }
.login-form input[type="password"]:focus { outline: 3px solid #b6ce7d; outline-offset: 2px; border-color: var(--green); }
.login-button { width: 100%; margin-top: 8px; border: 0; color: var(--green); background: var(--lime); cursor: pointer; }
.login-button:hover { background: #e7f5c8; }
.login-error { margin: 22px 0 -10px; }
.login-message { margin-top: 22px; padding: 13px 15px; border-radius: 9px; color: var(--green); background: var(--green-light); font-size: 13px; }

@media (max-width: 900px) {
    .dashboard-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .next-workout { padding: 25px; }
    .hero-badge { display: none; }
    .hero-workout { gap: 20px; }
    .workout-letter { font-size: 108px; }
    .hero-workout h2 { font-size: 23px; }
    .workout-groups { font-size: 16px; }
    .panel { padding: 21px; }
    .sequence-heading > span { display: none; }
    .personal-label { display: none; }
}

@media (max-width: 680px) {
    .header-inner { padding: 13px 18px; }
    .brand { font-size: 20px; }
    .brand-mark { width: 33px; height: 33px; border-radius: 10px; }
    .nav-link { padding: 11px 12px; font-size: 13px; }
    .login-card { padding: 30px 24px; }
    .page-shell { padding: 23px 18px 0; }
    .page-heading { margin: 26px 0 23px; }
    h1 { letter-spacing: -1.2px; }
    .page-description { margin-top: 10px; font-size: 14px; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .next-workout { min-height: 302px; padding: 23px; }
    .hero-badge { display: inline; }
    .hero-workout { gap: 24px; margin: 23px 0 24px; }
    .workout-letter { font-size: 110px; }
    .hero-workout h2 { font-size: 24px; }
    .hero-meta { margin-top: 11px; }
    .dashboard-side { gap: 14px; }
    .last-workout { padding: 20px; }
    .last-workout-value { margin-top: 12px; }
    .sequence-panel { padding: 20px; }
    .sequence-heading > span { display: inline; }
    .sequence-track { justify-content: space-between; margin: 19px 13px 14px; }
    .sequence-letter { width: 43px; height: 40px; }
    .sequence-panel > .muted { max-width: none; font-size: 12px; }
    .exercise-preview { margin-top: 29px; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 3px; margin-bottom: 12px; }
    .section-heading h2 { font-size: 21px; }
    .text-link { min-height: 38px; }
    .preview-row { gap: 12px; padding: 17px 15px; }
    .preview-name h3 { font-size: 14px; }
    .preview-name p { font-size: 11px; }
    .exercise-number { width: 29px; height: 31px; font-size: 11px; }
    .load-pill { max-width: 100px; padding: 5px 8px; font-size: 11px; }
    .stage-notice { padding: 15px; }
    .site-footer { flex-direction: column; gap: 10px; padding-top: 23px; }
    .site-footer > span { font-size: 10px; }
    .exercise-page-heading { align-items: flex-start; flex-direction: column; gap: 17px; }
    .workout-tabs { margin-bottom: 27px; gap: 7px; }
    .workout-tab { justify-content: center; gap: 8px; padding: 10px 8px; font-size: 13px; }
    .tab-letter { width: 24px; height: 26px; font-size: 11px; }
    .sheet-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .sheet-heading h2 { font-size: 23px; }
    .sheet-summary { font-size: 12px; }
    .exercise-grid { grid-template-columns: 1fr; gap: 13px; }
    .exercise-card { padding: 20px; }
    .exercise-card .exercise-number { width: 33px; height: 33px; font-size: 12px; }
    .exercise-card h3 { margin-top: 14px; }
    .exercise-targets { margin-top: 20px; }
    .exercise-load { min-height: 52px; }
}

@media (max-width: 360px) {
    .header-inner { padding-right: 12px; padding-left: 12px; }
    .brand { gap: 6px; font-size: 18px; }
    .brand > span:last-child { display: none; }
    .nav-link { padding-right: 9px; padding-left: 9px; }
    .page-shell { padding-right: 12px; padding-left: 12px; }
    .hero-topline { gap: 7px; }
    .hero-badge { font-size: 9px; padding: 4px 7px; }
    .hero-workout { gap: 20px; }
    .workout-letter { font-size: 96px; }
    .preview-row { flex-wrap: wrap; }
    .preview-name { flex-basis: calc(100% - 43px); }
    .load-pill { margin-left: 41px; text-align: left; }
    .tab-letter { display: none; }
}

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