:root {
    color-scheme: light;
    --paper: #f5f5ef;
    --ink: #242d23;
    --muted: #757c70;
    --green: #47603d;
    --line: #e1e4d9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, select { font: inherit; }
a { color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #8aab76; outline-offset: 4px; }
.login-page { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 48px 20px; }
.login-shell { width: 100%; max-width: 420px; }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-size: 23px; font-weight: 650; letter-spacing: -1px; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; background: var(--green); color: #fff; border-radius: 10px; font-size: 25px; font-weight: 650; padding-bottom: 3px; }
.login-shell > .brand { display: flex; justify-content: center; margin-bottom: 35px; }
.login-card { padding: 37px 35px 29px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 32px #29332304; }
.small-mark { display: grid; place-items: center; width: 43px; height: 43px; background: #edf1e6; color: var(--green); border-radius: 13px; font-size: 27px; margin-bottom: 26px; }
.eyebrow { font-size: 10px; font-weight: 650; letter-spacing: 1.6px; color: var(--muted); line-height: 1.6; margin: 0 0 12px; }
h1, h2, p { overflow-wrap: break-word; }
h1 { font-size: clamp(36px, 6vw, 44px); line-height: 1.14; letter-spacing: -1.9px; font-weight: 600; margin: 0; }
.intro { font-size: 14px; line-height: 1.8; color: var(--muted); margin: 18px 0 29px; }
label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 9px; }
input[type="password"] { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #d8ddcf; background: #fdfefb; border-radius: 8px; color: var(--ink); }
input[aria-invalid="true"] { border-color: #a95442; }
.button { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 16px; padding: 14px 18px; min-height: 48px; border: 0; border-radius: 8px; color: white; background: var(--green); font-size: 13px; font-weight: 600; cursor: pointer; }
.button:hover { background: #354b2c; }
.button span { font-size: 19px; font-weight: 400; }
.private-note { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); font-size: 11px; margin: 24px 0 0; }
.private-note span { color: #8da37b; font-size: 7px; }
.page-footnote { font-size: 9px; color: #8a9082; letter-spacing: 2px; text-align: center; margin: 29px 0 0; }
.form-error { color: #873c2d; background: #fff3ed; border: 1px solid #f0d6ca; padding: 12px; border-radius: 8px; font-size: 13px; line-height: 1.6; margin: 0 0 20px; }
.dashboard { max-width: 1080px; min-height: 100vh; min-height: 100svh; margin: auto; padding: 0 48px; display: flex; flex-direction: column; }
.site-header { display: flex; justify-content: space-between; align-items: center; min-height: 108px; border-bottom: 1px solid var(--line); gap: 20px; }
.logout-button { background: transparent; border: 1px solid #dce0d3; border-radius: 7px; padding: 9px 13px; color: #626c5a; font-size: 12px; cursor: pointer; }
.logout-button span { margin-left: 14px; }
.logout-button:hover { background: #e9eddf; }
.welcome { padding: 66px 0 70px; flex: 1; }
.welcome > h1 { font-size: clamp(36px, 6vw, 48px); }
.accent { color: #799663; }
.welcome > .intro { margin: 15px 0 37px; }
.welcome-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 51px 25px 48px; text-align: center; }
.empty-illustration { width: 102px; height: 102px; display: grid; place-items: center; margin: 0 auto 23px; border-radius: 50%; background: #f2f5eb; }
.empty-illustration svg { width: 79px; height: 79px; stroke: #748a60; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.empty-illustration circle { fill: #f2f5eb; }
.welcome-card .eyebrow { font-size: 9px; margin-bottom: 11px; }
h2 { font-size: 25px; letter-spacing: -.7px; font-weight: 600; margin: 0 0 13px; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.8; }
.welcome-card .muted { margin: 0; }
.status-pill { display: inline-flex; gap: 8px; align-items: center; background: #f0f4e9; color: #627651; padding: 8px 12px; border-radius: 30px; font-size: 10px; margin-top: 27px; }
.status-pill span { font-size: 6px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 23px 0; border-top: 1px solid var(--line); color: #8a9082; font-size: 11px; }
.site-footer span:last-child { font-size: 9px; letter-spacing: 1.6px; }
.site-nav { display: flex; gap: 28px; border-bottom: 1px solid var(--line); }
.site-nav a { padding: 19px 0 16px; border-bottom: 2px solid transparent; text-decoration: none; color: var(--muted); font-size: 13px; }
.site-nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); font-weight: 650; }
.overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.overview-card { display: block; padding: 30px; background: white; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.overview-card:hover { border-color: #9bab8e; }
.overview-count { display: block; color: var(--green); font-size: 48px; letter-spacing: -2px; margin: 14px 0 25px; }
.overview-card h2 { font-size: 23px; }
.text-link { color: var(--green); font-size: 13px; font-weight: 600; }
.text-link span { margin-left: 15px; }
.catalog-main { flex: 1; padding: 45px 0 60px; }
.catalog-main > .intro { margin-bottom: 30px; }
.catalog-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.editor-card, .library-card { background: white; border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.editor-card { padding: 26px; }
.editor-card h2 { font-size: 22px; margin-bottom: 25px; }
.form-field { margin-bottom: 20px; min-width: 0; }
.form-field input, .form-field select { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid #d8ddcf; background: #fdfefb; border-radius: 8px; color: var(--ink); font-size: 14px; }
.form-field [aria-invalid="true"] { border-color: #a95442; }
.increment-fields { display: grid; grid-template-columns: minmax(0, 1fr) 70px; gap: 10px; }
.increment-fields label { min-height: 30px; }
.increment-fields .form-field { margin-bottom: 9px; }
.field-help { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0 0 20px; }
.checkbox-field { display: flex; align-items: center; gap: 9px; margin: 24px 0 7px; font-size: 13px; }
.checkbox-field input { accent-color: var(--green); width: 17px; height: 17px; margin: 0; }
.cancel-link { display: block; text-align: center; margin-top: 18px; color: var(--muted); font-size: 12px; }
.form-error p { margin: 0; }
.form-error p + p { margin-top: 7px; }
.form-success { color: #3f5e30; background: #eaf1e2; border: 1px solid #cdddbf; padding: 14px 18px; border-radius: 8px; margin: 0 0 24px; font-size: 14px; }
.library-heading { padding: 26px 22px 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.library-heading h2 { font-size: 22px; margin: 0; }
.library-heading .eyebrow { font-size: 9px; margin-bottom: 8px; }
.count-label { font-size: 11px; color: var(--muted); white-space: nowrap; }
.table-scroll { overflow-x: auto; border-radius: 0 0 14px 14px; }
.library-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.library-table th, .library-table td { padding: 16px 10px; border-top: 1px solid var(--line); }
.library-table th:first-child, .library-table td:first-child { padding-left: 22px; }
.library-table th:last-child, .library-table td:last-child { padding-right: 22px; }
.library-table thead { color: var(--muted); background: #fafbf7; font-size: 10px; }
.library-table tbody th { font-size: 13px; font-weight: 550; min-width: 130px; overflow-wrap: anywhere; }
.library-table td { color: #626c5a; }
.entry-status { display: inline-block; background: #edf3e7; color: var(--green); border-radius: 20px; padding: 5px 8px; font-size: 10px; }
.entry-status.is-inactive { background: #f0f0eb; color: #767a70; }
.edit-link { color: var(--green); font-weight: 600; text-underline-offset: 3px; }
.nowrap { white-space: nowrap; }
.library-empty { padding: 28px 22px 40px; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.exercise-count { display: block; margin-bottom: 7px; font-size: 12px; }
.routine-links { display: flex; flex-wrap: wrap; gap: 5px; }
.routine-links a { padding: 4px 7px; background: #f0f4e9; color: var(--green); border-radius: 5px; font-size: 11px; text-decoration: none; white-space: nowrap; }
.routine-links a:hover { text-decoration: underline; }
.routine-links .inactive-routine { background: #f0f0eb; color: var(--muted); }
.back-link { display: inline-block; color: var(--green); font-size: 13px; margin-bottom: 30px; text-underline-offset: 4px; }
.exercise-choice { display: flex; align-items: center; gap: 15px; padding: 16px 22px; margin: 0; border-top: 1px solid var(--line); cursor: pointer; min-height: 75px; }
.exercise-choice:hover { background: #fafcf7; }
.exercise-choice:has(input:checked) { background: #f4f8ee; }
.exercise-choice input { flex-shrink: 0; width: 20px; height: 20px; margin: 0; accent-color: var(--green); }
.choice-copy { flex: 1; min-width: 0; }
.choice-name { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.choice-meta { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 7px; }
.exercise-order-list { list-style: none; margin: 0; padding: 0; }
.exercise-row { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-top: 1px solid var(--line); }
.exercise-row .exercise-choice { flex: 1; min-width: 0; border: 0; padding: 0; min-height: 44px; }
.exercise-row:has(input:checked) { background: #f4f8ee; }
.exercise-row.is-dragging { background: #edf3e7; box-shadow: inset 0 0 0 2px #8da37b; }
#available-exercises .drag-handle, #available-exercises .step-number, #available-exercises .step-controls { display: none; }
.selection-empty { padding: 0 22px 14px; }
.selection-actions { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; margin-top: 24px; background: var(--paper); border-top: 1px solid var(--line); }
.selection-actions .button { width: auto; min-width: 200px; margin: 0; gap: 25px; }
.add-step-fields { display: flex; align-items: end; gap: 14px; }
.add-step-fields .form-field { flex: 1; margin: 0; }
.add-step-fields .button { width: auto; margin: 0; gap: 25px; }
.rotation-help { padding: 0 22px; color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0 0 22px; }
.schedule-list { margin: 0; padding: 0; list-style: none; }
.schedule-step { display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-top: 1px solid var(--line); background: #fff; }
.schedule-step.is-dragging { background: #edf3e7; box-shadow: inset 0 0 0 2px #8da37b; }
.drag-handle { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 27px; cursor: grab; touch-action: none; user-select: none; }
.is-dragging .drag-handle { cursor: grabbing; }
.step-number { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: #f0f4e9; color: var(--green); font-size: 12px; }
.step-copy { flex: 1; min-width: 0; }
.step-name { display: block; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.step-inactive { color: var(--muted); font-size: 11px; margin-top: 5px; }
.step-controls { display: flex; gap: 6px; }
.step-control { min-width: 40px; min-height: 44px; border: 1px solid var(--line); background: #fafbf7; color: var(--green); border-radius: 7px; font-size: 18px; cursor: pointer; }
.step-control:hover { background: #edf3e7; }
.step-control:disabled, .button:disabled { opacity: .4; cursor: default; }
.remove-step { color: #826855; margin-left: 8px; }
.rotation-empty { padding: 10px 22px 25px; }
.rotation-repeat { margin: 0; padding: 21px 22px; background: #f4f8ee; border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; color: var(--green); font-size: 13px; line-height: 1.7; }
.schedule-status { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0; flex: 1; }
.overview-schedule { margin-top: 24px; }
.rotation-preview { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0 22px; margin: 0 0 20px; }
.rotation-preview li { color: var(--green); font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.rotation-preview li:not(:last-child)::after { content: '→'; margin-left: 12px; color: var(--muted); }
.progression-rep-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.progression-library-link { display: block; margin-top: 10px; white-space: nowrap; }
.progression-rep-fields label { min-height: 30px; }
.progression-presets { margin-bottom: 24px; padding: 16px; background: #f4f8ee; border-radius: 8px; }
.progression-presets .field-help { margin: 0; }
.progression-presets .routine-links { margin: 10px 0; gap: 10px; }
.progression-presets .routine-links a { background: white; border: 1px solid var(--line); padding: 9px 12px; white-space: normal; }
.progression-sequence { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0 22px 24px; }
.progression-sequence li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--green); background: #fafbf7; font-size: 13px; font-variant-numeric: tabular-nums; }
.progression-sequence li:not(:last-child)::after { content: ' →'; margin-left: 8px; color: var(--muted); }
.progression-rule { padding: 20px 22px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
@media (max-width: 600px) {
    .site-nav { gap: 20px; overflow-x: auto; }
    .site-nav a { white-space: nowrap; }
    .login-page { padding: 30px 18px; }
    .login-card { padding: 29px 25px; }
    .dashboard { padding: 0 23px; }
    .site-header { min-height: 85px; }
    .welcome { padding: 42px 0; }
    .welcome-card { padding: 36px 21px; }
    .welcome-card h2 { font-size: 22px; }
    .desktop-break { display: none; }
    .site-footer { flex-direction: column; gap: 12px; }
    .overview-grid { grid-template-columns: 1fr; }
    .catalog-main { padding: 35px 0 42px; }
    .editor-card { padding: 24px; }
    .library-table th, .library-table td { padding: 14px 9px; }
    .library-table th:first-child, .library-table td:first-child { padding-left: 16px; }
    .library-table th:last-child, .library-table td:last-child { padding-right: 16px; }
    .add-step-fields { flex-direction: column; align-items: stretch; }
    .add-step-fields .button { width: 100%; }
    .schedule-step { padding: 13px 10px; gap: 8px; flex-wrap: wrap; }
    .step-controls { margin-left: auto; }
    .step-control { min-width: 36px; }
    .remove-step { margin-left: 0; }
    .drag-handle { width: 30px; }
    .step-copy { min-width: 65px; }
    .exercise-row { padding: 13px 10px; gap: 8px; flex-wrap: wrap; }
    .exercise-row .exercise-choice { gap: 9px; flex-basis: 120px; }
    .progression-rep-fields { grid-template-columns: 1fr; gap: 0; }
    .progression-rep-fields label { min-height: 0; }
}

.secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid #ccd5c3; border-radius: 8px; padding: 11px 17px; background: #fafcf7; color: var(--green); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; }
.secondary-button:hover { background: #edf3e7; }
.secondary-button:disabled { opacity: .4; cursor: default; }
.text-button { min-height: 44px; padding: 8px 0; border: 0; background: none; color: var(--green); font-size: 13px; font-weight: 600; cursor: pointer; text-underline-offset: 4px; }
.text-button:hover { text-decoration: underline; }
.text-button:disabled { opacity: .35; cursor: default; text-decoration: none; }
.muted-button { color: var(--muted); font-size: 12px; font-weight: 400; }
.overview-workout { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; background: #edf2e6; border-color: #d5dfca; }
.overview-workout h2 { margin-bottom: 8px; }
.overview-workout > div, .tracker-routine-copy, .tracker-heading > div, .tracker-exercise-heading > div { min-width: 0; }
.overview-workout .field-help { margin: 0; }
.overview-workout .button { width: auto; gap: 35px; margin: 0; text-decoration: none; flex-shrink: 0; }
.tracker-routine { display: flex; align-items: center; justify-content: space-between; gap: 32px; background: #edf2e6; border-color: #d5dfca; }
.tracker-routine h2 { margin: 0 0 10px; font-size: 25px; }
.tracker-routine .eyebrow { margin-bottom: 8px; }
.tracker-routine .field-help { max-width: 360px; margin-bottom: 10px; }
.tracker-routine-picker { min-width: 230px; }
.tracker-routine-picker .form-field { margin-bottom: 10px; }
.tracker-routine-picker .secondary-button { width: 100%; background: #fff; }
.tracker-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 35px 0 22px; }
.tracker-heading h2 { font-size: 28px; margin-bottom: 7px; }
.tracker-heading .field-help { margin: 0; }
.tracker-exercises { display: grid; gap: 20px; }
.tracker-exercises + .tracker-exercises { margin-top: 32px; }
.tracker-exercises > h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 0; }
.tracker-exercises > h2 .count-label { font-weight: 400; }
.tracker-exercises > .field-help { margin: 0; }
.tracker-exercise { padding: 26px 28px 15px; scroll-margin-top: 20px; }
.tracker-exercise-heading { display: flex; align-items: start; gap: 14px; margin-bottom: 20px; }
.tracker-exercise-heading .step-number { width: 34px; height: 34px; margin-top: 1px; }
.tracker-exercise-heading h3 { font-size: 23px; letter-spacing: -.7px; font-weight: 600; margin: 0 0 6px; overflow-wrap: break-word; }
.tracker-exercise-heading .field-help { margin: 0; color: var(--green); }
.tracker-last { padding: 16px 18px; border-radius: 9px; background: #f5f6f1; }
.tracker-last-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; margin-bottom: 12px; }
.tracker-last-heading strong { font-weight: 600; }
.tracker-last-heading > span { color: var(--muted); font-size: 11px; }
.tracker-last .field-help { margin: 0; }
.tracker-set-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tracker-set-chips li { padding: 7px 10px; border-radius: 5px; border: 1px solid #e0e5d9; background: #fff; color: #53634b; font-size: 13px; font-variant-numeric: tabular-nums; }
.tracker-history-count { color: var(--muted); font-size: 11px; margin: 10px 0 0; }
.tracker-today-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 22px 0 10px; }
.tracker-today-heading h4 { margin: 0; font-size: 14px; font-weight: 600; }
.tracker-unit { display: flex; align-items: center; gap: 9px; }
.tracker-unit label { font-size: 11px; font-weight: 400; color: var(--muted); margin: 0; }
.tracker-unit select { border: 1px solid #d8ddcf; background: #fdfefb; border-radius: 6px; padding: 7px 9px; min-height: 38px; color: var(--ink); font-size: 13px; }
.tracker-prefill-help { font-size: 11px; margin-bottom: 16px; }
.tracker-set-grid { display: grid; grid-template-columns: 35px minmax(0, 1fr) minmax(0, 1fr) 44px; align-items: center; gap: 12px; }
.tracker-exercise.excludes-weight .tracker-set-grid { grid-template-columns: 35px minmax(0, 1fr) 44px; }
.tracker-set-labels { font-size: 9px; letter-spacing: 1.2px; color: var(--muted); font-weight: 650; margin: 0 0 8px; }
.tracker-set-labels span:last-child { text-align: center; }
.tracker-set { padding: 5px 0; min-height: 54px; font-size: 14px; font-variant-numeric: tabular-nums; }
.tracker-set-number { color: var(--muted); font-size: 12px; }
.tracker-set input[type="number"] { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #d8ddcf; background: #fdfefb; border-radius: 7px; color: var(--ink); font-size: 16px; }
.tracker-set.is-complete input[type="number"] { background: #f0f5e9; border-color: #c5d6b7; }
.tracker-done { display: grid; place-items: center; height: 44px; margin: 0; cursor: pointer; }
.tracker-done input { width: 23px; height: 23px; accent-color: var(--green); cursor: pointer; margin: 0; }
.tracker-done-mark { color: var(--green); text-align: center; }
.tracker-set-actions { display: flex; align-items: center; gap: 22px; border-top: 1px solid var(--line); margin-top: 17px; padding-top: 4px; }
.tracker-count { margin-left: auto; font-size: 11px; color: var(--muted); }
.tracker-notes { margin-top: 22px; scroll-margin-top: 20px; }
.tracker-notes h2 { font-size: 20px; }
.tracker-notes label { font-size: 14px; }
.tracker-notes label .muted { font-size: 12px; font-weight: 400; }
.tracker-notes textarea, .tracker-exercise-comment textarea { width: 100%; resize: vertical; min-height: 90px; font: inherit; font-size: 14px; line-height: 1.7; padding: 12px; border: 1px solid #d8ddcf; border-radius: 8px; background: #fdfefb; color: var(--ink); }
.tracker-exercise-comment { margin: 10px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.tracker-exercise-comment textarea { min-height: 76px; }
.tracker-exercise-comment label .muted { font-size: 12px; font-weight: 400; }
.tracker-exercise-comment h4 { font-size: 13px; margin: 0; }
.tracker-exercise-comment p { margin: 8px 0 0; }
.tracker-notes-text { white-space: pre-wrap; }
.tracker-save-bar { position: sticky; bottom: 0; z-index: 1; display: flex; align-items: center; gap: 24px; background: var(--paper); border-top: 1px solid var(--line); margin-top: 22px; padding: 18px 0; }
.tracker-save-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.tracker-save-actions .button { width: auto; margin: 0; gap: 25px; }
.tracker-discard { color: #876a59; font-size: 12px; font-weight: 400; }
.tracker-empty { margin-top: 20px; }
.tracker-empty h2 { font-size: 22px; }
.tracker-history { margin-top: 35px; }
.tracker-history ol { margin: 0; padding: 0; list-style: none; }
.tracker-history li { border-top: 1px solid var(--line); }
.tracker-history a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; text-decoration: none; font-size: 12px; color: var(--green); }
.tracker-history a:hover { background: #fafcf7; }
.tracker-history a > span:first-child { display: grid; gap: 7px; min-width: 0; }
.tracker-history strong { font-size: 14px; color: var(--ink); }
.tracker-history a > span:first-child > span { font-size: 11px; color: var(--muted); }
.tracker-history a > span:last-child { white-space: nowrap; }
.tracker-history a > span:last-child span { margin-left: 12px; }
.export-heading { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 20px; }
.export-heading h1 { font-size: 36px; }
.export-heading .intro { margin: 12px 0 0; }
.export-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.export-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 18px; margin: 28px 0; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.export-filters .form-field { margin: 0; flex: 1; min-width: 160px; }
.export-filters .checkbox-field { margin: 0; min-height: 44px; }
.export-meta { font-size: 12px; line-height: 1.7; color: #596052; margin-bottom: 20px; }
.export-table-scroll { overflow-x: auto; }
.export-table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 12px; line-height: 1.6; background: #fff; text-align: left; }
.export-table th, .export-table td { border: 1px solid #cdd2c7; padding: 12px; vertical-align: top; overflow-wrap: anywhere; }
.export-table thead th { background: #f0f2eb; font-weight: 650; }
.export-table tbody th { font-weight: 600; }
.export-table th:nth-child(1) { width: 12%; }
.export-table th:nth-child(2) { width: 20%; }
.export-table th:nth-child(3) { width: 18%; }
.export-table th:nth-child(4) { width: 36%; }
.export-table th:nth-child(5) { width: 14%; }
@media print {
    @page { size: A4 landscape; margin: 12mm; }
    :root { background: #fff; color: #000; }
    body { min-width: 0; }
    .dashboard { display: block; max-width: none; min-height: 0; padding: 0; }
    .site-header, .site-nav, .site-footer, .export-actions, .export-filters, .export-main noscript { display: none; }
    .export-main { padding: 0; }
    .export-heading { display: block; }
    .export-heading h1 { font-size: 20pt; letter-spacing: -.5px; }
    .export-heading .intro { margin-top: 5px; font-size: 10pt; color: #000; }
    .export-meta { font-size: 9pt; color: #000; }
    .export-table-scroll { overflow: visible; }
    .export-table { min-width: 0; table-layout: fixed; font-size: 9pt; color: #000; }
    .export-table th, .export-table td { padding: 7px; border-color: #777; }
    .export-table thead { display: table-header-group; }
    .export-table tr { break-inside: avoid; }
}
@media (max-width: 600px) {
    .tracker-routine, .overview-workout { flex-direction: column; align-items: stretch; gap: 22px; }
    .tracker-routine-picker { min-width: 0; }
    .overview-workout .button { width: 100%; }
    .tracker-exercise { padding: 21px 16px 10px; }
    .tracker-exercise-heading { gap: 11px; }
    .tracker-exercise-heading h3 { font-size: 21px; }
    .tracker-exercise-heading .step-number { width: 29px; height: 29px; }
    .tracker-last { padding: 14px 12px; }
    .tracker-set-grid { grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1fr) 36px; gap: 8px; }
    .tracker-exercise.excludes-weight .tracker-set-grid { grid-template-columns: 24px minmax(0, 1fr) 36px; }
    .tracker-set input[type="number"] { padding: 10px 8px; }
    .tracker-set-actions { gap: 15px; flex-wrap: wrap; }
    .tracker-count { font-size: 10px; }
    .tracker-save-bar { flex-direction: column; align-items: stretch; gap: 12px; }
    .tracker-save-actions { display: grid; grid-template-columns: 1fr 1.4fr; }
    .tracker-save-actions .button { gap: 12px; }
    .tracker-heading { gap: 12px; }
    .tracker-heading .entry-status { font-size: 9px; }
    .tracker-history a { padding: 17px; }
}
