/* PULSO · routine editing. Clear sequence, compact catalog and open sections. */
.routine-discard-confirm{display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px solid var(--line-strong);border-radius:7px;padding:22px 24px;margin-top:24px;background:var(--surface)}
.routine-discard-confirm h2{font-size:23px}
.routine-discard-confirm p{font-size:13px;color:var(--muted);margin-top:8px;max-width:540px;line-height:1.7}
.routine-discard-confirm>div:last-child{display:flex;align-items:center;flex-wrap:wrap;gap:12px;flex-shrink:0}
.routine-discard-confirm [data-routine-discard]{color:var(--danger);min-height:44px}
.routine-remove-undo{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding:15px 0;font-size:12px;line-height:1.6;color:var(--muted)}
.routine-remove-undo button{display:inline-flex;align-items:center;min-height:44px;flex-shrink:0;padding:7px 0;border:0;background:transparent;color:var(--accent-text);font-size:12px;text-decoration:underline;text-underline-offset:4px}
.routine-remove-undo button:disabled{color:var(--muted)}
.routine-draft-banner{display:flex;align-items:center;justify-content:space-between;gap:25px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:22px 0;margin-bottom:25px}
.routine-draft-banner .eyebrow{font-size:9px;letter-spacing:.06em;color:var(--accent-text);margin-bottom:9px;display:block}
.routine-draft-banner h2{font-size:25px;overflow-wrap:anywhere}
.routine-draft-banner p{font-size:12px;color:var(--muted);margin-top:8px;line-height:1.6}
.routine-draft-banner .btn{flex-shrink:0;font-size:12px}
@media(max-width:760px){.routine-discard-confirm{display:block;padding:20px}.routine-discard-confirm>div:last-child{margin-top:15px;gap:14px}.routine-discard-confirm h2{font-size:22px}.routine-remove-undo{align-items:flex-start;flex-direction:column;gap:2px}.routine-draft-banner{display:block;padding:20px 0;margin-bottom:18px}.routine-draft-banner h2{font-size:23px}.routine-draft-banner .btn{margin-top:14px;min-height:44px}}
.routine-editor-page { min-width: 0; }
.routine-editor-heading { margin: 6px 0 31px; }
.routine-editor-heading-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.routine-editor-heading .eyebrow { display: block; font-size: 12px; margin-bottom: 12px; }
.routine-editor-heading h1 { font-size: 62px; font-weight: 500; line-height: 1.06; letter-spacing: -.06em; }
.routine-editor-heading h1 > span { color: var(--accent-text); }
.routine-editor-heading p { margin-top: 13px; color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 650px; }
.routine-editor-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 0; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 12px; }
.routine-editor-back:hover { color: var(--accent-text); }
.routine-editor-back .icon { width: 16px; height: 16px; }
.routine-editor-top-actions { display: flex; align-items: center; gap: 9px; }
.routine-editor-top-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 17px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 12px; line-height: 1.3; white-space: nowrap; }
.routine-editor-top-actions button .icon { width: 16px; height: 16px; }
.routine-editor-top-actions button[type="submit"], .routine-editor-top-actions button[data-routine-save] { border-color: transparent; background: var(--accent); color: var(--on-accent); }
.routine-editor-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(340px, .9fr); align-items: start; gap: 38px; }
.routine-editor-main { min-width: 0; }
.routine-editor-form { display: block; min-width: 0; }
.routine-editor-settings { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 25px; padding: 27px 0 29px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.routine-editor-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.routine-editor-field > label, .routine-editor-field > span, .routine-editor-duration > span, .routine-editor-duration > label { color: var(--muted); font-size: 12px; line-height: 1.5; }
.routine-editor-field input { width: 100%; min-width: 0; min-height: 48px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.routine-editor-field input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-color: var(--line); }
.routine-editor-field input[aria-invalid="true"] { border-color: var(--danger); }
.routine-editor-field small, .routine-editor-field-help { color: var(--muted); font-size: 11px; line-height: 1.6; }
.routine-editor-field-error { color: var(--danger); font-size: 12px; line-height: 1.6; }
.routine-editor-field-error:empty { display: none; }
.routine-editor-duration { display: flex; flex-direction: column; gap: 8px; }
.routine-editor-duration-options { display: inline-flex; align-items: center; gap: 5px; }
.routine-editor-duration-options button { min-height: 48px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 12px; }
.routine-editor-duration-options button:hover { border-color: var(--line-strong); background: var(--surface-2); color: var(--ink); }
.routine-editor-duration-options button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.routine-editor-duration-options button strong { font-weight: 500; }
.routine-editor-duration-options button span { margin-left: 3px; font-size: 10px; }
.routine-sequence-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 28px 0 21px; }
.routine-sequence-heading h2 { font-size: 27px; font-weight: 500; letter-spacing: -.04em; line-height: 1.2; }
.routine-sequence-heading p { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.routine-sequence-heading > span, .routine-sequence-heading > small { color: var(--muted); font-size: 12px; padding-top: 6px; }
.routine-sequence-heading .eyebrow { font-size: 10px; margin-bottom: 9px; }
.routine-sequence-heading a, .routine-editor-add-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 10px 0; border: 0; background: transparent; color: var(--accent-text); font-size: 12px; white-space: nowrap; }
.routine-editor-add-link .icon { width: 15px; height: 15px; }
.routine-sequence-list { border-top: 1px solid var(--line); }
.routine-sequence-row { display: grid; grid-template-columns: 23px 72px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; min-width: 0; padding: 22px 0; border-bottom: 1px solid var(--line); }
.routine-sequence-number { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.routine-sequence-thumbnail { display: block; width: 72px; min-width: 0; aspect-ratio: 16/9; border: 0; border-radius: 5px; overflow: hidden; background: var(--surface-3); }
.routine-sequence-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); }
.routine-sequence-copy { min-width: 0; }
.routine-sequence-copy h3, .routine-sequence-copy > strong { display: block; color: var(--ink); font-size: 19px; font-weight: 500; line-height: 1.3; letter-spacing: -.03em; }
.routine-sequence-copy p, .routine-sequence-copy > small { display: block; color: var(--muted); margin-top: 6px; font-size: 11px; line-height: 1.6; }
.routine-sequence-prescriptions { display: flex; align-items: flex-start; gap: 9px; }
.routine-sequence-prescriptions label { display: flex; flex-direction: column; gap: 6px; width: 76px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.routine-sequence-prescriptions input { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 9px 6px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; text-align: center; font-variant-numeric: tabular-nums; }
.routine-sequence-prescriptions input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-color: var(--line); }
.routine-sequence-prescriptions input[aria-invalid="true"] { border-color: var(--danger); }
.routine-sequence-actions { display: flex; align-items: center; gap: 4px; }
.routine-sequence-actions button { display: grid; place-items: center; width: 44px; height: 44px; padding: 12px; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--muted); }
.routine-sequence-actions button:hover:not(:disabled) { background: var(--surface-2); border-color: var(--line); color: var(--ink); }
.routine-sequence-actions button .icon { width: 17px; height: 17px; }
.routine-sequence-actions button[data-routine-remove] { color: var(--danger); }
.routine-sequence-empty { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 225px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.routine-sequence-empty h3, .routine-sequence-empty > strong { color: var(--ink); font-size: 25px; font-weight: 500; letter-spacing: -.04em; line-height: 1.25; }
.routine-sequence-empty p { color: var(--muted); font-size: 13px; line-height: 1.75; margin-top: 11px; max-width: 440px; }
.routine-sequence-empty a, .routine-sequence-empty button { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; min-height: 44px; padding: 11px 0; border: 0; background: transparent; color: var(--accent-text); font-size: 12px; }
.routine-picker { position: sticky; top: 28px; min-width: 0; padding: 28px 0 0 28px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); scroll-margin-top: 24px; }
.routine-picker h2 { font-size: 27px; font-weight: 500; letter-spacing: -.04em; line-height: 1.2; }
.routine-picker > p { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.routine-picker .eyebrow { font-size: 10px; margin-bottom: 10px; }
.routine-picker-search { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 46px; margin-top: 21px; padding: 9px 0; border-bottom: 1px solid var(--line-strong); color: var(--muted); }
.routine-picker-search .icon { width: 17px; height: 17px; }
.routine-picker-search input { min-width: 0; width: 100%; flex: 1; padding: 7px 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; }
.routine-picker-search input:focus { outline: none; border: 0; }
.routine-picker-search:focus-within { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 3px; }
.routine-picker-search input::placeholder { color: var(--muted); opacity: 1; }
.routine-picker-search button { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 12px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); }
.routine-picker-search button:hover { background: var(--surface-2); color: var(--ink); }
.routine-picker-tabs { display: inline-flex; align-items: center; gap: 4px; margin-top: 16px; }
.routine-picker-tabs button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 10px 14px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--muted); font-size: 11px; }
.routine-picker-tabs button:hover { color: var(--ink); background: var(--surface-2); }
.routine-picker-tabs button[aria-pressed="true"] { border-color: var(--line); background: var(--surface); color: var(--ink); }
.routine-picker-tabs button .icon { width: 14px; height: 14px; }
.routine-picker-tabs button small { margin-left: 2px; font-size: 10px; }
.routine-picker-group { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; margin-top: 14px; }
.routine-picker-group > span, .routine-picker-group > label { flex-shrink: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.routine-picker-group select { width: 100%; min-width: 0; min-height: 44px; padding: 11px 29px 11px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); font: inherit; font-size: 12px; }
.routine-picker-count { margin-top: 17px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.routine-picker-results { max-height: min(620px, calc(100dvh - 330px)); min-height: 100px; margin-top: 16px; padding-right: 4px; overflow-y: auto; overflow-x: hidden; border-top: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; overscroll-behavior-y: contain; }
.routine-picker-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 92px; align-items: center; gap: 12px; min-width: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.routine-picker-thumbnail { display: block; min-width: 0; width: 76px; aspect-ratio: 16/9; overflow: hidden; border-radius: 4px; background: var(--surface-3); }
.routine-picker-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); }
.routine-picker-copy { min-width: 0; }
.routine-picker-copy strong, .routine-picker-copy h3 { display: block; color: var(--ink); font-size: 14px; font-weight: 500; letter-spacing: -.02em; line-height: 1.4; }
.routine-picker-copy small, .routine-picker-copy p { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; line-height: 1.6; }
.routine-picker-add { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 92px; min-height: 44px; padding: 11px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--accent-text); font-size: 11px; line-height: 1.3; }
.routine-picker-add > span { font-size: 10px; }
.routine-picker-add:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--accent-text); }
.routine-picker-add .icon { width: 17px; height: 17px; }
.routine-picker-add:disabled { opacity: 1; background: var(--surface-2); border-color: transparent; color: var(--muted); cursor: default; }
.routine-picker-empty { padding: 28px 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.routine-picker-empty strong, .routine-picker-empty h3 { display: block; color: var(--ink); font-size: 20px; font-weight: 500; line-height: 1.35; margin-bottom: 8px; letter-spacing: -.03em; }
.routine-editor-savebar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 25px 0; margin-top: 24px; border-top: 1px solid var(--line); }
.routine-editor-status { min-width: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.routine-editor-status strong { display: block; color: var(--ink); font-weight: 500; font-size: 13px; }
.routine-editor-status.is-dirty { color: var(--accent-text); }
.routine-editor-status.is-saved { color: var(--success); }
.routine-editor-status.has-error, .routine-editor-status.is-error { color: var(--danger); }
.routine-editor-save-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.routine-editor-save-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 19px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 500; }
.routine-editor-save-actions button[type="submit"], .routine-editor-save-actions button[data-routine-save] { border-color: transparent; background: var(--accent); color: var(--on-accent); }
.routine-editor-save-actions button .icon { width: 16px; height: 16px; }
.routine-editor-page button:focus-visible, .routine-editor-page a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.routine-editor-page button:disabled { cursor: not-allowed; }
.routine-editor-page button, .routine-editor-page a, .routine-editor-page input { scroll-margin-top: 30px; scroll-margin-bottom: 110px; }
.routine-editor-heading .routine-editor-eyebrow { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.routine-editor-eyebrow { color: var(--muted); font-size: 10px; line-height: 1.5; margin: 0 0 10px; }
.routine-editor-name { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.routine-editor-name > span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.routine-editor-name input { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.routine-editor-name input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-color: var(--line); }
.routine-editor-name input[aria-invalid="true"] { border-color: var(--danger); }
.routine-editor-name > small { color: var(--muted); font-size: 11px; line-height: 1.6; }
.routine-editor-name > .routine-editor-error { color: var(--danger); font-size: 12px; line-height: 1.6; }
.routine-editor-error:empty, .routine-sequence-error:empty { display: none; }
.routine-editor-duration > small { max-width: 230px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.routine-sequence-heading h2 > span, .routine-picker-heading h2 > span { color: var(--accent-text); }
.routine-sequence-heading .routine-editor-eyebrow { margin: 0 0 9px; font-size: 10px; }
.routine-editor-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--accent-text); font-size: 12px; font-weight: 500; white-space: nowrap; }
.routine-editor-secondary:hover { background: var(--surface-2); border-color: var(--line-strong); }
.routine-editor-secondary .icon { width: 15px; height: 15px; }
.routine-sequence-empty .routine-editor-secondary { padding: 11px 15px; }
.routine-sequence-empty > span { display: block; color: var(--accent-text); margin-bottom: 18px; }
.routine-sequence-error { grid-column: 1 / -1; color: var(--danger); font-size: 11px; line-height: 1.7; }
.routine-sequence-prescription-text { grid-column: 1 / -1; display: grid; gap: 7px; font-size: 11px; color: var(--muted); }
.routine-sequence-prescription-text textarea { width: 100%; min-height: 68px; resize: vertical; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); font: inherit; font-size: 12px; line-height: 1.6; }
.routine-sequence-image { display: grid; place-items: center; width: 72px; min-width: 0; aspect-ratio: 16/9; border-radius: 5px; overflow: hidden; background: var(--surface-3); color: var(--muted); }
.routine-sequence-image img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); }
.routine-sequence-image > .icon { width: 23px; height: 23px; }
.routine-sequence-copy h3:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 2px; }
.routine-sequence-heading h2:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 2px; }
.routine-sequence-move { font-size: 19px; line-height: 1; }
.routine-picker-heading > p:not(.routine-editor-eyebrow) { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.routine-picker-search > label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.routine-picker-image { display: grid; place-items: center; width: 76px; min-width: 0; aspect-ratio: 16/9; overflow: hidden; border-radius: 4px; background: var(--surface-3); color: var(--muted); }
.routine-picker-image img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); }
.routine-picker-image > .icon { width: 23px; height: 23px; }
.routine-picker-row:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; border-radius: 4px; }
.routine-picker-tabs button > span { color: inherit; margin-left: 2px; opacity: .8; font-size: 10px; }
.routine-picker-return { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 0; border: 0; border-radius: 0; margin-top: 15px; background: transparent; color: var(--accent-text); font-size: 12px; }
.routine-picker-return .icon { width: 15px; height: 15px; }
.routine-picker-empty .routine-editor-secondary { margin-top: 15px; font-size: 11px; }
.routine-editor-totals { color: var(--muted); font-size: 11px; margin-top: 6px; line-height: 1.6; }
.routine-editor-status.routine-editor-status-error { color: var(--danger); }
.routine-editor-active-note { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 11px 20px; padding: 13px 0; border-top: 1px solid var(--line); color: var(--accent-text); font-size: 12px; line-height: 1.7; margin-bottom: 24px; }
.routine-editor-continue { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 8px; min-height: 44px; max-width: 100%; padding: 11px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--accent-text); font-size: 12px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.routine-editor-continue:hover { background: var(--accent-soft); border-color: var(--accent-text); }
.routine-editor-continue .icon { width: 15px; height: 15px; }
.routine-picker-return + .routine-picker-controls .routine-picker-search { margin-top: 9px; }
.routine-editor-page .routine-picker-add:disabled { cursor: default; }
body[data-page="treinos"] .training-card-editor-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; }
body[data-page="treinos"] .training-card-editor-actions > small { max-width: 48%; color: var(--muted); font-size: 10px; line-height: 1.6; text-align: right; }
body[data-page="treinos"] .training-edit-button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 10px 0; border: 0; border-radius: 0; background: transparent; color: var(--accent-text); font-size: 12px; font-weight: 500; }
body[data-page="treinos"] .training-edit-button:hover { color: var(--ink); }
body[data-page="treinos"] .training-edit-button .icon { width: 14px; height: 14px; }
body[data-page="treinos"] .training-card-sequence { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.65; }
body[data-page="treinos"] .training-card-sequence strong { color: var(--ink); font-weight: 500; }
body[data-page="treinos"] .training-empty { margin: 30px 0; padding: 25px 0; border-top: 1px solid var(--line); }
body[data-page="treinos"] .training-empty h2 { color: var(--ink); font-size: 28px; font-weight: 500; letter-spacing: -.04em; }
body[data-page="treinos"] .training-empty p { margin-top: 11px; color: var(--muted); font-size: 13px; line-height: 1.75; }
@media (max-width: 1180px) {
  .routine-editor-layout { grid-template-columns: minmax(0, 1.65fr) minmax(320px, .95fr); gap: 28px; }
  .routine-picker { padding-left: 23px; }
  .routine-editor-settings { grid-template-columns: minmax(0, 1fr); gap: 21px; }
  .routine-editor-duration { flex-direction: row; align-items: center; justify-content: space-between; gap: 17px; }
  .routine-editor-duration-options button { min-height: 44px; }
  .routine-sequence-row { grid-template-columns: 23px 64px minmax(0, 1fr) auto; gap: 11px 13px; }
  .routine-sequence-thumbnail { width: 64px; }
  .routine-sequence-image { width: 64px; }
  .routine-sequence-prescriptions { grid-column: 3 / span 2; grid-row: 2; }
  .routine-sequence-actions { grid-column: 4; grid-row: 1; }
  .routine-sequence-copy h3, .routine-sequence-copy > strong { font-size: 18px; }
  .routine-picker-row { grid-template-columns: 65px minmax(0, 1fr) 88px; gap: 9px; }
  .routine-picker-add { width: 88px; gap: 5px; padding-left: 8px; padding-right: 8px; }
  .routine-picker-thumbnail { width: 65px; }
  .routine-picker-image { width: 65px; }
  .routine-picker-copy strong, .routine-picker-copy h3 { font-size: 13px; }
}
@media (max-width: 960px) {
  .routine-editor-heading h1 { font-size: 55px; }
  .routine-editor-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .routine-editor-settings { grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 25px; }
  .routine-editor-duration { flex-direction: column; align-items: flex-start; gap: 8px; }
  .routine-editor-duration-options button { min-height: 48px; }
  .routine-sequence-row { grid-template-columns: 23px 72px minmax(0, 1fr) auto auto; gap: 14px; }
  .routine-sequence-thumbnail { width: 72px; }
  .routine-sequence-image { width: 72px; }
  .routine-sequence-prescriptions { grid-column: auto; grid-row: auto; }
  .routine-sequence-actions { grid-column: auto; grid-row: auto; }
  .routine-picker { position: static; padding: 27px 0 0; border-left: 0; }
  .routine-picker-results { max-height: none; overflow: visible; padding-right: 0; }
  .routine-picker-row { grid-template-columns: 90px minmax(0, 1fr) 88px; gap: 15px; }
  .routine-picker-thumbnail { width: 90px; }
  .routine-picker-image { width: 90px; }
  .routine-picker-copy strong, .routine-picker-copy h3 { font-size: 16px; }
  .routine-picker-copy small, .routine-picker-copy p { font-size: 11px; }
  .routine-picker-group select { max-width: 340px; }
}
@media (max-width: 700px) {
  .routine-editor-heading { margin: 8px 0 24px; }
  .routine-editor-heading-top { margin-bottom: 17px; gap: 12px; }
  .routine-editor-heading .eyebrow { font-size: 10px; margin-bottom: 10px; }
  .routine-editor-heading .routine-editor-eyebrow { font-size: 10px; margin-bottom: 10px; }
  .routine-editor-heading h1 { font-size: 46px; letter-spacing: -.06em; }
  .routine-editor-heading p { font-size: 13px; margin-top: 11px; line-height: 1.7; }
  .routine-editor-active-note { gap: 10px; padding: 13px 0 16px; margin-bottom: 21px; font-size: 11px; line-height: 1.75; }
  .routine-editor-continue { min-height: 44px; padding-left: 14px; padding-right: 14px; font-size: 11px; }
  .routine-editor-back { font-size: 11px; min-height: 44px; }
  .routine-editor-top-actions { gap: 7px; }
  .routine-editor-top-actions .routine-editor-cancel { display: inline-flex; padding: 11px 3px; }
  .routine-editor-top-actions button { padding: 11px 15px; font-size: 11px; min-height: 44px; }
  .routine-editor-layout { gap: 26px; }
  .routine-editor-settings { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 23px 0 25px; }
  .routine-editor-field { gap: 7px; }
  .routine-editor-field > label, .routine-editor-field > span, .routine-editor-duration > span, .routine-editor-duration > label { font-size: 11px; }
  .routine-editor-field input { min-height: 48px; font-size: 16px; padding-left: 12px; }
  .routine-editor-field small, .routine-editor-field-help { font-size: 10px; }
  .routine-editor-duration { flex-direction: row; align-items: center; justify-content: space-between; gap: 13px; }
  .routine-editor-duration-options { gap: 4px; }
  .routine-editor-duration-options button { padding: 11px 13px; min-height: 44px; font-size: 12px; }
  .routine-editor-duration-options button span { font-size: 10px; }
  .routine-editor-name > span { font-size: 11px; }
  .routine-editor-name > small, .routine-editor-duration > small { font-size: 10px; }
  .routine-editor-duration > small { display: none; }
  .routine-sequence-heading { gap: 14px; padding: 24px 0 18px; align-items: center; }
  .routine-sequence-heading h2 { font-size: 24px; }
  .routine-sequence-heading p { font-size: 11px; line-height: 1.7; margin-top: 7px; }
  .routine-sequence-heading > span, .routine-sequence-heading > small { font-size: 11px; }
  .routine-sequence-heading a, .routine-editor-add-link { font-size: 11px; gap: 6px; }
  .routine-sequence-heading .routine-editor-secondary { font-size: 10px; padding: 10px 11px; gap: 5px; }
  .routine-sequence-heading .routine-editor-secondary .icon { width: 13px; height: 13px; }
  .routine-sequence-row { grid-template-columns: 19px 64px minmax(0, 1fr); align-items: center; gap: 13px 11px; padding: 20px 0; }
  .routine-sequence-number { grid-column: 1; grid-row: 1; font-size: 11px; }
  .routine-sequence-thumbnail { grid-column: 2; grid-row: 1; width: 64px; }
  .routine-sequence-image { grid-column: 2; grid-row: 1; width: 64px; }
  .routine-sequence-copy { grid-column: 3; grid-row: 1; }
  .routine-sequence-copy h3, .routine-sequence-copy > strong { font-size: 17px; line-height: 1.35; }
  .routine-sequence-copy p, .routine-sequence-copy > small { font-size: 10px; margin-top: 5px; }
  .routine-sequence-prescriptions { grid-column: 1 / -1; grid-row: 2; gap: 9px; padding-right: 156px; }
  .routine-sequence-prescriptions label { width: 76px; font-size: 10px; gap: 6px; }
  .routine-sequence-prescriptions input { min-height: 44px; font-size: 16px; }
  .routine-sequence-actions { grid-column: 1 / -1; grid-row: 2; justify-self: end; align-self: end; justify-content: flex-end; gap: 6px; }
  .routine-sequence-empty { min-height: 205px; padding: 27px 0; }
  .routine-sequence-empty h3, .routine-sequence-empty > strong { font-size: 23px; }
  .routine-sequence-empty p { font-size: 12px; line-height: 1.8; }
  .routine-picker { padding-top: 24px; scroll-margin-top: 18px; }
  .routine-picker h2 { font-size: 25px; }
  .routine-picker > p { font-size: 12px; }
  .routine-picker-search { margin-top: 19px; min-height: 48px; }
  .routine-picker-search input { font-size: 16px; }
  .routine-picker-tabs { margin-top: 13px; }
  .routine-picker-tabs button { min-height: 44px; padding-left: 13px; padding-right: 13px; font-size: 11px; }
  .routine-picker-group { gap: 12px; margin-top: 12px; }
  .routine-picker-group > span, .routine-picker-group > label { font-size: 10px; }
  .routine-picker-group select { max-width: none; min-height: 44px; font-size: 12px; }
  .routine-picker-count { font-size: 10px; margin-top: 15px; }
  .routine-picker-results { margin-top: 14px; }
  .routine-picker-row { grid-template-columns: 76px minmax(0, 1fr) 88px; gap: 12px; padding: 15px 0; }
  .routine-picker-thumbnail { width: 76px; }
  .routine-picker-image { width: 76px; }
  .routine-picker-copy strong, .routine-picker-copy h3 { font-size: 14px; }
  .routine-picker-copy small, .routine-picker-copy p { font-size: 10px; }
  .routine-editor-savebar { flex-direction: column; align-items: stretch; gap: 17px; margin-top: 24px; padding: 23px 0; }
  .routine-editor-status { font-size: 12px; line-height: 1.75; }
  .routine-editor-save-actions { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 9px; }
  .routine-editor-save-actions button { min-height: 46px; padding: 12px 14px; font-size: 12px; }
  body[data-page="treinos"] .training-card-editor-actions { margin-top: 9px; }
  body[data-page="treinos"] .training-edit-button { min-height: 44px; font-size: 12px; }
  body[data-page="treinos"] .training-card-sequence { margin-top: 12px; padding-top: 11px; font-size: 10px; }
}
@media (max-width: 370px) {
  .routine-editor-heading h1 { font-size: 42px; }
  .routine-editor-duration-options button { padding-left: 11px; padding-right: 11px; }
  .routine-sequence-prescriptions label { width: 68px; }
  .routine-sequence-prescriptions { padding-right: 143px; }
  .routine-sequence-actions { gap: 2px; }
  .routine-picker-row { grid-template-columns: 65px minmax(0, 1fr) 88px; gap: 10px; }
  .routine-picker-thumbnail { width: 65px; }
  .routine-picker-image { width: 65px; }
}
@media (max-width: 340px) {
  .routine-sequence-prescriptions { padding-right: 0; }
  .routine-sequence-actions { grid-row: 3; justify-self: start; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .routine-editor-page *, body[data-page="treinos"] .training-edit-button { scroll-behavior: auto; transition: none; }
}
