:root {
  color-scheme: light;
  --ink: #202820;
  --muted: #858b82;
  --green: #426b4c;
  --green-dark: #31583b;
  --green-soft: #eaf0e8;
  --paper: #fbfcf9;
  --line: #e9ece5;
  --orange: #db8755;
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
button, input, textarea { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 2; display: flex; flex-direction: column;
  width: 250px; padding: 34px 24px 22px; background: #f3f5ef; border-right: 1px solid #ebeee7;
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; color: var(--ink); text-decoration: none; font: 800 25px/1 "Manrope", sans-serif; letter-spacing: -1.8px; }
.brand-period { color: var(--orange); }
.brand-mark { display: flex; align-items: end; gap: 3px; height: 24px; }
.brand-mark span { display: block; width: 5px; border-radius: 4px; background: var(--green); transform: skew(-18deg); }
.brand-mark span:nth-child(1) { height: 13px; }
.brand-mark span:nth-child(2) { height: 21px; }
.brand-mark span:nth-child(3) { height: 17px; }
.sidebar-caption { margin: 66px 0 13px 12px; color: #9ba197; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
.side-nav { display: grid; gap: 6px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 8px; color: #777f75; font-size: 12px; font-weight: 600; text-decoration: none; }
.nav-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-link.active { background: #e7ede4; color: var(--green-dark); }
.sidebar-bottom { margin-top: auto; padding: 20px 17px 22px; border-top: 1px solid #e4e8df; }
.quote-mark { color: #a1b29f; font: 700 36px/25px "Manrope", sans-serif; }
.sidebar-bottom p { max-width: 170px; margin: 10px 0 17px; color: #697267; font: 500 12px/1.8 "Manrope", sans-serif; }
.sidebar-bottom > span { color: #9ca397; font-size: 8px; font-weight: 700; letter-spacing: 1.5px; }
.sidebar-footer { display: flex; align-items: center; gap: 8px; color: #91978e; font-size: 9px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #82a481; }
.main-content { max-width: 1280px; min-height: 100vh; margin-left: 250px; padding: 0 7.1% 24px; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 76px; border-bottom: 1px solid var(--line); }
.breadcrumb { color: #9da298; font-size: 9px; font-weight: 700; letter-spacing: 1.35px; }
.breadcrumb span { padding: 0 7px; color: #c2c7be; }
.today-button, .icon-button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e6e9e2; background: #fff; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.today-button { gap: 8px; min-height: 35px; padding: 0 12px; border-radius: 6px; color: #626a60; font-size: 10px; font-weight: 600; }
.today-button:hover, .icon-button:hover { border-color: #bac8b8; background: #f8faf6; }
.today-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.welcome-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 44px 0 39px; }
.eyebrow, .section-kicker { color: #9aa095; font-size: 9px; font-weight: 700; letter-spacing: 1.55px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 13px; }
.eyebrow-line { display: inline-block; width: 17px; height: 1px; background: var(--orange); }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 9px; font: 700 clamp(32px, 3.5vw, 43px)/1.17 "Manrope", sans-serif; letter-spacing: -2px; }
h1 span { color: var(--green); }
.mobile-break { display: none; }
.welcome-copy { margin: 0; color: #858b82; font-size: 12px; }
.streak-card { position: relative; display: flex; align-items: center; gap: 14px; min-width: 232px; padding: 17px 21px; overflow: hidden; border: 1px solid #e8ede5; border-radius: 9px; background: #f5f7f1; }
.streak-icon { display: grid; width: 37px; height: 37px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #e8eee3; color: #738e68; }
.streak-icon svg { width: 17px; height: 17px; fill: currentColor; }
.streak-label { display: block; margin-bottom: 5px; color: #969d91; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.streak-card strong { color: #394337; font: 700 17px "Manrope", sans-serif; }
.streak-card small { color: #858b82; font: 500 10px "DM Sans", sans-serif; }
.streak-spark { position: absolute; right: 9px; top: 8px; color: #c3d0bd; font-size: 13px; }
.week-section { padding: 0 0 32px; border-bottom: 1px solid var(--line); }
.week-heading, .day-heading { display: flex; align-items: end; justify-content: space-between; }
.week-heading { margin-bottom: 14px; }
.week-heading h2, .day-heading h2 { margin: 4px 0 0; font: 700 17px "Manrope", sans-serif; letter-spacing: -.4px; }
.week-controls { display: flex; gap: 6px; }
.icon-button { width: 30px; height: 30px; border-radius: 6px; color: #737a70; }
.icon-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.day-button { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; padding: 10px 5px 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #969b92; cursor: pointer; transition: background .18s, border-color .18s, color .18s; }
.day-button:hover { background: #f1f4ee; }
.day-button.selected { border-color: #dfe7dc; background: #edf2ea; color: var(--green-dark); }
.day-name { font-size: 9px; font-weight: 600; text-transform: capitalize; }
.day-number { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; color: #4c534a; font: 600 12px "Manrope", sans-serif; }
.day-button.selected .day-number { background: var(--green); color: white; }
.day-button.today:not(.selected) .day-number { box-shadow: inset 0 0 0 1px #a3b69e; color: var(--green-dark); }
.day-dot { width: 4px; height: 4px; border-radius: 50%; background: transparent; }
.day-button.has-plan .day-dot { background: #c7a079; }
.day-button.selected.has-plan .day-dot { background: #829b79; }
.day-section { padding: 27px 0 0; }
.day-heading { align-items: center; margin-bottom: 19px; }
.day-heading h2 { margin-top: 5px; font-size: 20px; }
.day-heading p { margin: 5px 0 0; color: #959a91; font-size: 10px; }
.add-button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 6px; background: var(--green); color: white; cursor: pointer; font-size: 10px; font-weight: 600; transition: background .18s, transform .18s; }
.add-button:hover, .save-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.add-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.exercise-list { display: grid; gap: 9px; }
.exercise-card { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 76px; padding: 13px 15px; border: 1px solid #ebeee8; border-radius: 8px; background: #fff; transition: border-color .18s, background .18s; }
.exercise-card.completed { border-color: #e4ebe1; background: #fbfcfa; }
.check-button { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid #dce2d8; border-radius: 50%; background: #fff; color: transparent; cursor: pointer; transition: background .18s, border-color .18s; }
.check-button svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.completed .check-button { border-color: var(--green); background: var(--green); color: #fff; }
.exercise-info { min-width: 0; }
.exercise-title-row { display: flex; align-items: center; gap: 8px; }
.exercise-title { overflow: hidden; color: #394137; font: 700 12px "Manrope", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.completed .exercise-title { color: #8b9388; text-decoration: line-through; text-decoration-color: #b3beb0; }
.exercise-meta { margin-top: 5px; color: #92988e; font-size: 10px; }
.exercise-meta strong { color: #666f63; font-weight: 600; }
.exercise-notes { margin: 5px 0 0; color: #a0a59d; font-size: 9px; }
.completed-label { display: none; padding: 3px 6px; border-radius: 4px; background: #edf3ea; color: #6f8c68; font-size: 8px; font-weight: 700; }
.completed .completed-label { display: inline-block; }
.exercise-actions { display: flex; gap: 4px; }
.action-button { display: grid; width: 29px; height: 29px; place-items: center; border: 0; border-radius: 5px; background: transparent; color: #a0a69c; cursor: pointer; }
.action-button:hover { background: #f1f4ef; color: var(--green-dark); }
.action-button.delete:hover { background: #fbefeb; color: #b8664c; }
.action-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.empty-state { display: flex; min-height: 205px; flex-direction: column; align-items: center; justify-content: center; padding: 26px; border: 1px dashed #dfe5db; border-radius: 9px; background: #fafbf8; text-align: center; }
.empty-icon { display: grid; width: 42px; height: 42px; margin-bottom: 12px; place-items: center; border-radius: 50%; background: #edf2ea; color: #71866b; }
.empty-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.empty-state h3 { margin: 0 0 6px; color: #414940; font: 700 13px "Manrope", sans-serif; }
.empty-state p { margin: 0 0 14px; color: #92988e; font-size: 10px; }
.empty-state .add-button { min-height: 32px; }
.main-footer { display: flex; justify-content: space-between; margin-top: 45px; padding-top: 14px; border-top: 1px solid var(--line); color: #a5aaa1; font-size: 8px; font-weight: 700; letter-spacing: 1.2px; }
.footer-heart { color: #d78b6a; }
.exercise-dialog { width: min(440px, calc(100% - 32px)); max-width: none; padding: 0; overflow: visible; border: 1px solid #e7ebe4; border-radius: 12px; background: #fff; box-shadow: 0 22px 70px #26332424; }
.exercise-dialog::backdrop { background: #1d261e75; backdrop-filter: blur(3px); }
.exercise-dialog form { padding: 26px; }
.dialog-top { display: flex; justify-content: space-between; align-items: start; margin-bottom: 24px; }
.dialog-top h2 { margin: 5px 0 0; font: 700 21px "Manrope", sans-serif; letter-spacing: -.6px; }
.dialog-close { width: 29px; height: 29px; }
.field-label { display: block; margin-bottom: 7px; color: #555d53; font-size: 10px; font-weight: 600; }
.field-label span { color: #a2a79f; font-weight: 400; }
.exercise-dialog input, .exercise-dialog textarea { width: 100%; margin-bottom: 16px; padding: 11px 12px; border: 1px solid #e3e8e0; border-radius: 6px; outline: none; background: #fcfdfa; color: var(--ink); font-size: 11px; }
.exercise-dialog input:focus, .exercise-dialog textarea:focus { border-color: #9caf95; box-shadow: 0 0 0 3px #eaf0e7; }
.exercise-dialog input::placeholder, .exercise-dialog textarea::placeholder { color: #b3b8b0; }
.exercise-dialog textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field-row input { margin-bottom: 16px; }
.dialog-actions { display: flex; justify-content: end; gap: 8px; margin-top: 6px; }
.cancel-button, .save-button { min-height: 36px; padding: 0 13px; border-radius: 6px; cursor: pointer; font-size: 10px; font-weight: 600; }
.cancel-button { border: 1px solid #e7eae4; background: #fff; color: #72796f; }
.cancel-button:hover { background: #f7f8f5; }
.save-button { display: inline-flex; align-items: center; gap: 12px; border: 0; background: var(--green); color: #fff; transition: background .18s, transform .18s; }
.toast { position: fixed; right: 24px; bottom: 22px; z-index: 5; padding: 11px 16px; border-radius: 7px; background: #344f37; box-shadow: 0 8px 24px #283a2d24; color: #fff; font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translateY(0); }
[hidden] { display: none !important; }
.breadcrumb b { font-weight: inherit; }
.nav-short { display: none; }
.login-screen { display: grid; min-height: 100vh; place-items: center; padding: 16px; background: #f3f5ef; }
.login-card { width: min(380px, 100%); padding: 30px 28px; border: 1px solid #e7ebe4; border-radius: 12px; background: #fff; box-shadow: 0 22px 70px #26332414; }
.login-brand { margin-bottom: 30px; }
.login-card h1 { margin-bottom: 6px; font-size: 30px; letter-spacing: -1.2px; }
.login-card > p { margin: 0 0 22px; color: #858b82; font-size: 12px; }
.login-card input { width: 100%; padding: 11px 12px; border: 1px solid #e3e8e0; border-radius: 6px; outline: none; background: #fcfdfa; color: var(--ink); font-size: 13px; }
.login-card input:focus { border-color: #9caf95; box-shadow: 0 0 0 3px #eaf0e7; }
.login-card .login-error { min-height: 18px; margin: 8px 0 10px; color: #b8664c; font-size: 11px; }
.login-card .save-button { width: 100%; justify-content: center; min-height: 40px; font-size: 12px; }
.save-button:disabled { opacity: .6; cursor: wait; }
.login-card input + .field-label { margin-top: 14px; }
.sidebar-footer b { color: #5d665b; font-weight: 600; }
.exercise-dialog select, .role-select { padding: 10px 12px; border: 1px solid #e3e8e0; border-radius: 6px; outline: none; background: #fcfdfa; color: var(--ink); font: inherit; font-size: 11px; }
.exercise-dialog select { width: 100%; margin-bottom: 16px; }
.exercise-dialog select:focus, .role-select:focus { border-color: #9caf95; box-shadow: 0 0 0 3px #eaf0e7; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 70px; padding: 0 7.1%; border-bottom: 1px solid #ebeee7; background: #f3f5ef; }
.admin-session { display: flex; align-items: center; gap: 12px; color: #5d665b; font-size: 11px; font-weight: 600; }
.admin-main { max-width: 1100px; margin: 0 auto; padding: 0 7.1% 40px; }
.user-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 6px; }
.role-select { padding: 0 8px; min-height: 34px; }
.secondary-button:disabled, .role-select:disabled { opacity: .5; cursor: not-allowed; }
.role-badge { padding: 3px 6px; border-radius: 4px; background: #edf3ea; color: #6f8c68; font-size: 8px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.role-badge.role-admin { background: #fbefe6; color: #b8703f; }
.role-badge.inactive-badge { background: #f1f1ef; color: #8f938c; }
.user-card.inactive .exercise-title, .user-card.inactive .exercise-meta { color: #a5aaa1; }

/* Temporizador */
.topbar-actions { display: flex; gap: 8px; }
.timer-start-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin: 4px 0 14px; border: 0; border-radius: 8px; background: var(--orange); color: #fff; cursor: pointer; font: 700 14px "Manrope", sans-serif; transition: filter .18s; }
.timer-start-button:hover { filter: brightness(.95); }
.timer-start-button svg { width: 18px; height: 18px; fill: currentColor; }
.timer-panel { position: fixed; right: 24px; bottom: 22px; z-index: 6; width: min(420px, calc(100% - 32px)); overflow: hidden; border-radius: 14px; background: #24382a; box-shadow: 0 18px 50px #1d261e55; color: #fff; }
.timer-panel.rest { background: #2f3f52; }
.timer-panel.finished { background: var(--orange); animation: timer-flash .6s ease-in-out 3; }
.timer-progress { height: 5px; background: #ffffff22; }
.timer-progress span { display: block; width: 0; height: 100%; background: #9fd0a5; transition: width .25s linear; }
.timer-panel.rest .timer-progress span { background: #9bbbe0; }
.timer-panel.finished .timer-progress span { background: #fff; }
.timer-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 16px; }
.timer-info { display: flex; min-width: 0; flex-direction: column; }
.timer-kind { color: #ffffffb3; font-size: 9px; font-weight: 700; letter-spacing: 1.4px; }
.timer-clock { font: 800 40px/1.05 "Manrope", sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.timer-panel.paused .timer-clock { opacity: .55; }
.timer-label { overflow: hidden; color: #ffffffcc; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.timer-controls { display: flex; flex: 0 0 auto; gap: 6px; }
.timer-button { display: grid; min-width: 42px; height: 42px; padding: 0 10px; place-items: center; border: 1px solid #ffffff33; border-radius: 10px; background: #ffffff14; color: #fff; cursor: pointer; font: 700 11px "DM Sans", sans-serif; }
.timer-button:hover { background: #ffffff26; }
.timer-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
#timer-pause svg path[d^="M8 5.5"] { fill: currentColor; stroke: none; }
body.timer-active .toast { bottom: 140px; }
body.timer-active .main-content, body.timer-active .admin-main { padding-bottom: 130px; }
@keyframes timer-flash { 50% { filter: brightness(1.18); } }
@media (prefers-reduced-motion: reduce) { .timer-panel.finished { animation: none; } }

/* Biblioteca y series */
.role-badge.type-reps { background: #edf2f7; color: #5a7391; }
.role-badge.type-time { background: #f6efe4; color: #a6773f; }
.exercise-card.archived .exercise-title { color: #a5aaa1; }
.search-input { min-height: 36px; width: 190px; padding: 0 12px; border: 1px solid #e3e8e0; border-radius: 6px; outline: none; background: #fff; color: var(--ink); font: inherit; font-size: 11px; }
.search-input:focus { border-color: #9caf95; box-shadow: 0 0 0 3px #eaf0e7; }
.entry-card { align-items: start; }
.entry-card .check-button { margin-top: 2px; }
.set-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.set-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 10px 4px 4px; border: 1px solid #e3e8e0; border-radius: 999px; background: #fff; color: #4c554a; font: 600 11px "DM Sans", sans-serif; }
button.set-chip { cursor: pointer; transition: border-color .18s, background .18s; }
button.set-chip:hover { border-color: #9caf95; background: #f6f9f4; }
.set-chip small { color: #b0754f; font-size: 10px; font-weight: 600; }
.set-number { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #eef2eb; color: #6b7a66; font-size: 10px; }
.set-chip.done { border-color: #cfdccb; background: #eef4ec; color: var(--green-dark); }
.set-chip.done .set-number { background: var(--green); color: #fff; }
.completed .exercise-meta { color: #9aa196; }
.wide-dialog { width: min(560px, calc(100% - 32px)); }
.select-row { display: flex; gap: 8px; margin-bottom: 16px; }
.select-row select { flex: 1; min-width: 0; margin-bottom: 0; }
.select-row .secondary-button { flex: 0 0 auto; }
.sets-editor { margin-bottom: 14px; padding: 12px; border: 1px solid #edf0ea; border-radius: 8px; background: #fafbf8; }
.sets-head, .set-row { display: grid; grid-template-columns: 22px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) 29px; align-items: center; gap: 6px; }
.sets-head { margin-bottom: 6px; color: #8d9489; font-size: 9px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.set-row { margin-bottom: 6px; }
.set-row-number { color: #8d9489; font-size: 11px; font-weight: 700; text-align: center; }
.exercise-dialog .set-row input { margin-bottom: 0; padding: 9px 8px; background: #fff; }
.add-set-button { width: 100%; justify-content: center; margin-top: 4px; }
.field-hint { margin: 8px 0 0; color: #9aa095; font-size: 10px; line-height: 1.5; }
.form-error { min-height: 16px; margin: 0 0 4px; color: #b8664c; font-size: 11px; }
.type-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; border: 0; }
.type-picker legend { padding: 0; }
.type-picker label { position: relative; flex: 1; min-width: 120px; }
.exercise-dialog .type-picker input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.type-picker span { display: block; padding: 10px 12px; border: 1px solid #e3e8e0; border-radius: 6px; background: #fcfdfa; color: #5d665b; cursor: pointer; font-size: 11px; font-weight: 600; text-align: center; }
.type-picker input:checked + span { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); }
.type-picker input:focus-visible + span { box-shadow: 0 0 0 3px #eaf0e7; }
.type-picker input:disabled + span { cursor: not-allowed; opacity: .6; }
.day-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 6px; }
.secondary-button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border: 1px solid #e3e8e0; border-radius: 6px; background: #fff; color: #5d665b; cursor: pointer; font-size: 10px; font-weight: 600; transition: border-color .18s, background .18s; }
.secondary-button:hover { border-color: #bac8b8; background: #f8faf6; color: var(--green-dark); }
.secondary-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.empty-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.exercise-card.template-card { grid-template-columns: minmax(0, 1fr) auto; }
.plan-mode .day-button.has-plan .day-dot { background: #829b79; }
.backup-section { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 38px; padding: 20px 22px; border: 1px solid #e8ede5; border-radius: 9px; background: #f5f7f1; }
.backup-section h2 { margin: 5px 0 6px; font: 700 15px "Manrope", sans-serif; }
.backup-section p { max-width: 460px; margin: 0; color: #858b82; font-size: 10px; line-height: 1.6; }
.dialog-copy { margin: -10px 0 18px; color: #858b82; font-size: 11px; line-height: 1.6; }

@media (min-width: 1450px) {
  .main-content { padding-right: 9%; padding-left: 9%; }
}
@media (max-width: 1050px) {
  .sidebar { width: 218px; padding-right: 19px; padding-left: 19px; }
  .main-content { margin-left: 218px; padding-right: 5%; padding-left: 5%; }
  .welcome-row { padding-top: 36px; }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: 100%; height: 62px; flex-direction: row; align-items: center; justify-content: space-between; padding: 0 20px; border-right: 0; border-bottom: 1px solid #ebeee7; }
  .brand { font-size: 22px; }
  .brand-mark { transform: scale(.9); transform-origin: left center; }
  .sidebar-caption, .sidebar-bottom, .sidebar-footer { display: none; }
  .side-nav { display: flex; gap: 4px; }
  .nav-link { min-height: 36px; padding: 0 10px; font-size: 11px; }
  .day-heading { flex-wrap: wrap; gap: 12px; }
  .day-actions { justify-content: start; }
  .backup-section { flex-direction: column; align-items: start; }
  .admin-topbar { padding: 0 16px; }
  .admin-session > span { display: none; }
  .admin-main { padding: 0 16px 32px; }
  .exercise-card.user-card { grid-template-columns: minmax(0, 1fr); }
  .search-input { flex: 1; min-width: 0; width: auto; }
  .timer-panel { right: 8px; bottom: 8px; width: calc(100% - 16px); }
  .timer-clock { font-size: 36px; }
  .topbar-actions .today-button { padding: 0 8px; }
  .library-section .day-actions { width: 100%; flex-wrap: nowrap; }
  .user-actions { justify-content: start; }
  .main-content { min-height: calc(100vh - 62px); margin: 0; padding: 0 22px 22px; }
  .topbar { height: 58px; }
  .welcome-row { align-items: start; padding: 31px 0 29px; }
  .streak-card { min-width: auto; gap: 10px; padding: 12px; }
  .streak-icon { width: 32px; height: 32px; }
  .streak-label { font-size: 7px; }
  .streak-card strong { font-size: 15px; }
}
@media (max-width: 520px) {
  .main-content { padding-right: 16px; padding-left: 16px; }
  .breadcrumb { font-size: 8px; letter-spacing: 1px; }
  .today-button { min-height: 32px; padding: 0 9px; font-size: 9px; }
  .welcome-row { display: block; padding-top: 27px; }
  .eyebrow { font-size: 8px; }
  h1 { font-size: 36px; }
  .mobile-break { display: initial; }
  .welcome-copy { max-width: 270px; font-size: 11px; line-height: 1.6; }
  .streak-card { width: fit-content; margin-top: 19px; padding: 10px 14px; }
  .week-strip { gap: 2px; }
  .day-button { gap: 5px; padding: 8px 2px 6px; }
  .day-name { font-size: 8px; }
  .day-number { width: 29px; height: 29px; font-size: 11px; }
  .week-section { padding-bottom: 25px; }
  .day-heading { align-items: end; gap: 8px; }
  .day-heading h2 { font-size: 18px; }
  .day-heading p { max-width: 190px; font-size: 9px; }
  .sidebar { padding: 0 12px 0 16px; }
  .brand { font-size: 19px; }
  .nav-link { gap: 6px; padding: 0 8px; font-size: 10px; }
  .nav-link svg { width: 15px; height: 15px; }
  .nav-full { display: none; }
  .nav-short { display: inline; }
  .side-nav { gap: 0; }
  .nav-link { padding: 0 7px; }
  .nav-link svg { display: none; }
  .sets-editor { padding: 10px 8px; }
  .sets-head, .set-row { grid-template-columns: 16px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) 24px; gap: 4px; }
  .exercise-dialog .set-row input { padding: 9px 6px; font-size: 12px; }
  .add-button, .secondary-button { min-height: 33px; padding: 0 9px; font-size: 9px; white-space: nowrap; }
  .add-button svg { width: 12px; height: 12px; }
  .exercise-card { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 9px; padding: 11px 9px; }
  .check-button { width: 25px; height: 25px; }
  .exercise-title { font-size: 11px; }
  .exercise-meta { font-size: 9px; }
  .action-button { width: 25px; height: 27px; }
  .exercise-actions { gap: 0; }
  .main-footer { margin-top: 32px; font-size: 7px; }
  .exercise-dialog form { padding: 21px; }
}
