:root {
  color: #17191d;
  background: #f5f6f8;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --category-upper: #829a45;
  --category-upper-soft: #edf3dc;
  --category-back: #66849a;
  --category-back-soft: #e5eff5;
  --category-arms: #a47458;
  --category-arms-soft: #f6ece5;
  --category-legs: #8b719c;
  --category-legs-soft: #eee8f2;
  --category-other: #7f858d;
  --category-other-soft: #eef0f2;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body { margin: 0; min-width: 320px; padding-bottom: 82px; }

.auth-screen { align-items: center; display: flex; justify-content: center; min-height: 100vh; padding: 24px; }.auth-card { background: #fff; border: 1px solid #e4e6e9; border-radius: 22px; max-width: 420px; padding: 28px; width: 100%; }.auth-card .brand { margin-bottom: 38px; }.auth-card .eyebrow { margin-bottom: 11px; }.auth-card h1 { font-size: clamp(34px, 10vw, 44px); margin-bottom: 11px; }.auth-copy { color: #737982; font-size: 14px; line-height: 1.55; margin: 0 0 23px; }.auth-form label { color: #3f434a; display: block; font-size: 13px; font-weight: 800; margin-bottom: 15px; }.auth-form input { background: #f7f8f9; border: 1px solid #e1e3e6; border-radius: 11px; color: #17191d; display: block; font: inherit; font-size: 16px; margin-top: 7px; outline: none; padding: 13px; width: 100%; }.auth-form input:focus { background: #fff; border-color: #9abe46; box-shadow: 0 0 0 3px #e6f3c9; }.auth-submit-button { justify-content: center; margin-top: 8px; min-height: 53px; width: 100%; }.auth-submit-button:disabled, .sign-out-button:disabled { cursor: wait; opacity: .65; }.auth-message { border-radius: 10px; font-size: 13px; font-weight: 700; line-height: 1.45; margin: 2px 0 15px; padding: 10px 11px; }.auth-message.is-error { background: #fff0f0; color: #b84343; }.auth-message.is-info { background: #f0f5e5; color: #5c7521; }.auth-message.is-success { background: #edf6e2; color: #527019; }.auth-mode-toggle { background: transparent; border: 0; color: #5a7720; cursor: pointer; display: block; font: inherit; font-size: 13px; font-weight: 800; margin: 24px auto 0; padding: 6px; }.auth-mode-toggle:focus-visible, .sign-out-button:focus-visible { outline: 3px solid #17191d; outline-offset: 3px; }.sign-out-button { background: #f1f3ed; border: 0; border-radius: 9px; color: #5c672f; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; padding: 9px 11px; }
.header-actions { align-items: center; display: flex; gap: 10px; }.sync-status { color: #748053; font-size: 11px; font-weight: 700; }.sync-status.is-error { color: #b84343; }

.app-shell {
  width: min(100%, 1120px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px clamp(20px, 5vw, 64px) 56px;
}

.app-header, .section-heading { display: flex; align-items: center; justify-content: space-between; }

.brand { align-items: center; color: inherit; display: inline-flex; font-size: 18px; font-weight: 800; gap: 9px; letter-spacing: -0.7px; text-decoration: none; }

.brand-mark { align-items: center; background: #17191d; border-radius: 10px; color: #fff; display: inline-flex; font-size: 15px; height: 29px; justify-content: center; letter-spacing: -1px; width: 29px; }

.today { color: #81858d; font-size: 13px; font-weight: 600; }

.hero { padding: clamp(70px, 13vw, 138px) 0 clamp(64px, 10vw, 108px); max-width: 670px; }
.screen { animation: appear .22s ease-out; }
.screen-title { font-size: clamp(38px, 6vw, 62px); letter-spacing: -0.07em; line-height: 1.05; margin-bottom: 20px; }
.screen-copy { color: #696e77; font-size: 17px; line-height: 1.6; margin-bottom: 38px; max-width: 500px; }
.library-heading { align-items: flex-start; display: flex; justify-content: space-between; gap: 20px; }
.library-heading .screen-copy { margin-bottom: 30px; }

.eyebrow { color: #757a84; font-size: 13px; font-weight: 700; letter-spacing: .05em; margin: 0 0 16px; text-transform: uppercase; }

h1, h2, h3, p { margin-top: 0; }

h1 { font-size: clamp(42px, 7vw, 76px); letter-spacing: -0.075em; line-height: 1.03; margin-bottom: 20px; }

.hero-copy { color: #696e77; font-size: clamp(16px, 2vw, 19px); line-height: 1.6; margin-bottom: 34px; max-width: 520px; }
.active-workout-card { align-items: center; background: #eff3e4; border: 1px solid #d7e8b4; border-radius: 18px; cursor: pointer; display: flex; justify-content: space-between; margin: -42px 0 45px; max-width: 670px; padding: 18px 20px; }.active-workout-card:hover { background: #e7f0d4; }.active-workout-card h2 { font-size: 17px; margin: 2px 0 4px; }.active-workout-card p { color: #6f7961; font-size: 13px; margin: 0; }.active-workout-card > span { color: #5e7f1c; font-size: 23px; font-weight: 800; }.active-label { color: #66851f !important; font-size: 11px !important; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }

.hero-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; }.start-button { align-items: center; background: #c5ff4a; border: 0; border-radius: 16px; box-shadow: 0 7px 0 #a6dc38; color: #17191d; cursor: pointer; display: inline-flex; font: inherit; font-size: 16px; font-weight: 800; gap: 11px; padding: 18px 23px; transition: transform .18s ease, box-shadow .18s ease; }

.start-button:hover { box-shadow: 0 9px 0 #a6dc38; transform: translateY(-2px); }
.start-button:active { box-shadow: 0 3px 0 #a6dc38; transform: translateY(4px); }
.start-button:focus-visible { outline: 3px solid #17191d; outline-offset: 4px; }
.templates-button { align-items: center; background: #dbe8ff; border: 0; border-radius: 16px; box-shadow: 0 7px 0 #b7caea; color: #27374e; display: inline-flex; font-size: 16px; font-weight: 800; justify-content: center; padding: 18px 23px; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }.templates-button:hover { box-shadow: 0 9px 0 #b7caea; transform: translateY(-2px); }.templates-button:active { box-shadow: 0 3px 0 #b7caea; transform: translateY(4px); }.templates-button:focus-visible { outline: 3px solid #17191d; outline-offset: 3px; }
.small-button, .save-button { background: #17191d; border: 0; border-radius: 12px; color: #fff; cursor: pointer; font: inherit; font-size: 14px; font-weight: 800; padding: 13px 16px; }
.small-button { margin-top: 5px; }
.small-button:hover, .save-button:hover { background: #34373d; }
.small-button:focus-visible, .save-button:focus-visible, .exercise-actions button:focus-visible, .icon-button:focus-visible { outline: 3px solid #17191d; outline-offset: 3px; }

.plus { background: #17191d; border-radius: 50%; color: #c5ff4a; font-size: 19px; height: 24px; line-height: 22px; text-align: center; width: 24px; }

.recent-workouts { background: #fff; border: 1px solid #e7e8eb; border-radius: 24px; padding: clamp(22px, 4vw, 36px); }
h2 { font-size: clamp(21px, 3vw, 27px); letter-spacing: -0.055em; margin-bottom: 0; }
.count { background: #f0f1f3; border-radius: 999px; color: #777c84; font-size: 13px; font-weight: 700; padding: 5px 10px; }

.empty-state { align-items: center; border: 1px dashed #d9dce0; border-radius: 17px; color: #737882; display: flex; flex-direction: column; margin-top: 28px; padding: 42px 20px 39px; text-align: center; }

.empty-icon { align-items: center; background: #f3f5ee; border-radius: 14px; display: flex; gap: 4px; height: 48px; justify-content: center; margin-bottom: 17px; width: 48px; }
.empty-icon span { background: #9dbe55; border-radius: 2px; height: 17px; width: 5px; }
.empty-icon span:nth-child(2) { height: 25px; }
.empty-icon span:nth-child(3) { height: 12px; }
h3 { color: #33363c; font-size: 16px; letter-spacing: -0.03em; margin-bottom: 7px; }
.empty-state p { font-size: 14px; margin-bottom: 0; }
.history-link { color: #5b7920; font-size: 13px; font-weight: 800; text-decoration: none; }.history-link:hover { text-decoration: underline; }.history-link:focus-visible { outline: 3px solid #17191d; outline-offset: 3px; }.recent-workout-list { margin-top: 14px; }.recent-workout-item { align-items: center; border-top: 1px solid #eceef0; cursor: pointer; display: flex; gap: 16px; justify-content: space-between; padding: 16px 2px; }.recent-workout-item:hover h3 { color: #557318; }.recent-workout-item:focus-visible, .history-card:focus-visible { outline: 3px solid #17191d; outline-offset: 3px; }.recent-workout-item h3 { font-size: 15px; margin: 0 0 4px; }.recent-workout-item p, .recent-workout-item > span { color: #777d86; font-size: 13px; margin: 0; }.recent-workout-item > span, .history-card > span { color: #5c7920; font-size: 19px; font-weight: 800; }.workout-preview-note { color: #777d86 !important; font-style: italic; margin-top: 6px !important; }.history-list { display: grid; gap: 11px; max-width: 690px; }.history-card { align-items: center; background: #fff; border: 1px solid #e4e6e9; border-radius: 17px; cursor: pointer; display: flex; gap: 16px; justify-content: space-between; padding: 19px; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }.history-card:hover { border-color: #c8df92; box-shadow: 0 7px 18px rgba(50, 63, 28, .08); transform: translateY(-1px); }.history-card h2 { font-size: 17px; margin: 0 0 5px; }.history-card p { color: #777d86; font-size: 13px; margin: 0; }

.preview-card { align-items: center; background: #fff; border: 1px solid #e7e8eb; border-radius: 18px; display: flex; gap: 18px; margin-top: 12px; max-width: 620px; padding: 22px; }
.preview-card h2 { font-size: 18px; margin-bottom: 7px; }
.preview-card p { color: #747982; font-size: 14px; line-height: 1.5; margin-bottom: 0; }
.preview-number, .preview-icon { align-items: center; background: #eff3e4; border-radius: 12px; color: #648719; display: flex; flex: 0 0 auto; font-size: 14px; font-weight: 800; height: 43px; justify-content: center; width: 43px; }
.exercise-form { background: #fff; border: 1px solid #e7e8eb; border-radius: 20px; margin: 0 0 18px; max-width: 620px; padding: 23px; }
.form-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 20px; }
.form-heading h2 { font-size: 19px; margin: 0; }
.icon-button { background: #f1f2f4; border: 0; border-radius: 9px; color: #555a62; cursor: pointer; font: inherit; font-size: 24px; height: 32px; line-height: 25px; width: 32px; }
.exercise-form label { color: #3f434a; display: block; font-size: 13px; font-weight: 800; margin: 0 0 17px; }
.exercise-form input, .exercise-form select { background: #f7f8f9; border: 1px solid #e1e3e6; border-radius: 11px; color: #17191d; display: block; font: inherit; font-size: 16px; margin-top: 7px; outline: none; padding: 13px; width: 100%; }
.exercise-form input:focus, .exercise-form select:focus { background: #fff; border-color: #9abe46; box-shadow: 0 0 0 3px #e6f3c9; }
.form-error { color: #c43535; font-size: 13px; font-weight: 700; margin: -3px 0 16px; }
.save-button { width: 100%; }
.library-list { max-width: 620px; }
.data-tools { align-items: flex-start; background: #fff; border: 1px solid #e4e6e9; border-radius: 16px; display: flex; gap: 16px; justify-content: space-between; margin-top: 24px; max-width: 620px; padding: 16px; }.data-tools h2 { font-size: 16px; margin: 0 0 5px; }.data-tools p { color: #747a82; font-size: 12px; line-height: 1.45; margin: 0; max-width: 270px; }.data-tools-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }.data-tool-button { background: #f2f5e9; border: 0; border-radius: 9px; color: #55731d; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; min-height: 38px; padding: 8px 10px; }.data-tool-button:last-of-type { background: #f4f5f6; color: #626971; }.data-tool-button:focus-visible { outline: 3px solid #17191d; outline-offset: 2px; }
.exercise-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; max-width: 620px; }
.exercise-filter button { background: #fff; border: 1px solid #e1e4e7; border-radius: 999px; color: #666d76; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; padding: 8px 11px; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.exercise-filter button:hover { border-color: #b7c98a; color: #4e671b; }.exercise-filter button.is-active { background: #eff4e3; border-color: #b6ca7d; color: #4d6814; }.exercise-filter button:focus-visible { outline: 3px solid #17191d; outline-offset: 2px; }
.empty-library { align-items: center; background: #fff; border: 1px dashed #d9dce0; border-radius: 18px; color: #737882; display: flex; flex-direction: column; padding: 44px 25px; text-align: center; }
.empty-library .empty-icon { margin-bottom: 17px; }
.empty-library h2 { color: #33363c; font-size: 17px; margin-bottom: 8px; }
.empty-library p { font-size: 14px; line-height: 1.5; margin: 0; max-width: 350px; }
.empty-library a { color: #5b7a1c; font-size: 14px; font-weight: 800; margin-top: 19px; }
.empty-filtered-library { padding: 30px 20px; }
.exercise-card { align-items: center; background: #fff; border: 1px solid #e7e8eb; border-radius: 17px; display: flex; justify-content: space-between; margin-bottom: 10px; padding: 17px; }
.exercise-info { align-items: center; display: flex; gap: 13px; min-width: 0; }
.exercise-details { min-width: 0; }
.exercise-dot { background: var(--category-other); border: 4px solid var(--category-other-soft); border-radius: 50%; flex: 0 0 auto; height: 18px; width: 18px; }
.category-upper { --exercise-category-color: var(--category-upper); --exercise-category-soft: var(--category-upper-soft); }.category-back { --exercise-category-color: var(--category-back); --exercise-category-soft: var(--category-back-soft); }.category-arms { --exercise-category-color: var(--category-arms); --exercise-category-soft: var(--category-arms-soft); }.category-legs { --exercise-category-color: var(--category-legs); --exercise-category-soft: var(--category-legs-soft); }.category-other { --exercise-category-color: var(--category-other); --exercise-category-soft: var(--category-other-soft); }
.exercise-dot.category-upper, .exercise-dot.category-back, .exercise-dot.category-arms, .exercise-dot.category-legs, .exercise-dot.category-other { background: var(--exercise-category-color); border-color: var(--exercise-category-soft); }
.exercise-info h2 { font-size: 16px; margin: 0 0 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exercise-meta { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; }.exercise-info p { color: #777d86; font-size: 13px; margin: 0; }.exercise-category { background: var(--exercise-category-soft); border-radius: 999px; color: var(--exercise-category-color); font-size: 11px; font-weight: 800; line-height: 1; padding: 5px 7px; }
.exercise-actions { display: flex; flex: 0 0 auto; gap: 5px; margin-left: 10px; }
.exercise-actions button { background: transparent; border: 0; border-radius: 8px; color: #626871; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; padding: 8px; }
.exercise-actions button:hover { background: #f1f2f4; color: #17191d; }
.exercise-actions .delete-button { color: #b84343; }
.exercise-actions .delete-button:hover { background: #fff0f0; }
.template-card { align-items: center; background: #fff; border: 1px solid #e7e8eb; border-radius: 17px; cursor: pointer; display: flex; justify-content: space-between; margin-bottom: 10px; padding: 19px; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.template-card:hover { border-color: #c8df92; box-shadow: 0 7px 18px rgba(50, 63, 28, .08); transform: translateY(-1px); }
.template-card:focus-visible { outline: 3px solid #17191d; outline-offset: 3px; }
.template-card h2 { font-size: 17px; margin: 0 0 5px; }
.template-card p { color: #777d86; font-size: 13px; margin: 0; }
.template-card button { background: #eff3e4; border: 0; border-radius: 10px; color: #557318; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; padding: 10px 12px; }
.template-editor { max-width: 680px; }
.editor-topline { align-items: center; display: flex; justify-content: space-between; margin-bottom: 29px; }
.back-button, .delete-text-button { background: transparent; border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; padding: 4px 0; }
.back-button { color: #5c7920; }.delete-text-button { color: #b84343; }
.template-editor h2 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -.06em; margin: 0 0 10px; }
.editor-copy { color: #70757e; font-size: 15px; line-height: 1.5; margin-bottom: 24px; }
.add-exercise-row { display: flex; gap: 9px; margin-bottom: 18px; }
.add-exercise-row select { appearance: none; background: #fff; border: 1px solid #e1e3e6; border-radius: 12px; color: #30343a; flex: 1; font: inherit; font-size: 14px; min-width: 0; padding: 13px; }
.add-exercise-row .small-button { margin: 0; white-space: nowrap; }
.add-exercise-row .small-button:disabled, .add-exercise-row select:disabled { cursor: not-allowed; opacity: .55; }
.template-exercise-list { list-style: none; margin: 0; padding: 0; }
.template-exercise { align-items: center; background: #fff; border: 1px solid #e7e8eb; border-radius: 15px; display: flex; gap: 13px; margin-bottom: 9px; padding: 13px; }
.exercise-order { align-items: center; background: #eff3e4; border-radius: 9px; color: #5c7920; display: flex; flex: 0 0 auto; font-size: 12px; font-weight: 800; height: 31px; justify-content: center; width: 31px; }
.template-exercise-name { min-width: 0; flex: 1; }.template-exercise-name strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.template-exercise-name span { color: #7c8189; display: block; font-size: 12px; margin-top: 3px; }
.template-exercise-actions { display: flex; gap: 3px; }.template-exercise-actions button { background: #f1f2f4; border: 0; border-radius: 7px; color: #626871; cursor: pointer; font: inherit; font-size: 16px; height: 29px; line-height: 20px; width: 29px; }.template-exercise-actions button:disabled { cursor: default; opacity: .35; }.template-exercise-actions button:last-child { color: #b84343; }
.empty-template { background: #fff; border: 1px dashed #d9dce0; border-radius: 14px; color: #7a7f87; font-size: 14px; padding: 25px; text-align: center; }
.start-workout-screen { max-width: 690px; }.start-workout-screen > div > .back-button { margin-bottom: 34px; }.template-choice-list { display: grid; gap: 10px; margin-bottom: 22px; }.template-choice { align-items: center; background: #fff; border: 1px solid #e3e5e8; border-radius: 15px; color: #24272c; cursor: pointer; display: flex; font: inherit; justify-content: space-between; padding: 17px; text-align: left; transition: border-color .18s ease, background .18s ease; width: 100%; }.template-choice:hover { border-color: #bcd67e; }.template-choice.is-selected { background: #f4f8ea; border-color: #aecd66; }.template-choice strong, .template-choice small { display: block; }.template-choice strong { font-size: 16px; }.template-choice small { color: #777d86; font-size: 13px; margin-top: 4px; }.template-choice b { align-items: center; background: #f0f1f3; border-radius: 50%; color: #767c84; display: flex; height: 27px; justify-content: center; width: 27px; }.template-choice.is-selected b { background: #b7eb43; color: #26320a; }
.active-workout-meta { background: #fff; border: 1px solid #e3e6e9; border-radius: 16px; display: grid; gap: 1px; grid-template-columns: repeat(2, 1fr); margin: 0 0 18px; overflow: hidden; }.active-workout-meta label { background: #f8f9fa; padding: 13px 16px; }.active-workout-meta label + label { border-left: 1px solid #e3e6e9; }.active-workout-meta span { color: #7c828a; display: block; font-size: 11px; font-weight: 800; letter-spacing: .04em; margin-bottom: 5px; text-transform: uppercase; }.active-workout-meta input { background: transparent; border: 0; color: #25282d; font: inherit; font-size: 16px; font-weight: 800; min-width: 0; outline: 0; padding: 0; width: 100%; }.active-workout-meta .number-input { align-items: center; display: flex; }.active-workout-meta .number-input b { color: #747a82; font-size: 13px; margin-left: 5px; }.add-workout-exercise { background: #eff3e4; border: 0; border-radius: 11px; color: #56751a; cursor: pointer; font: inherit; font-size: 14px; font-weight: 800; margin: -7px 0 12px; padding: 12px 14px; }.workout-exercise-picker { background: #f5f8ed; border: 1px solid #dce8bd; border-radius: 14px; margin-bottom: 12px; padding: 14px; }.workout-exercise-picker strong { display: block; font-size: 14px; margin-bottom: 10px; }.workout-exercise-picker > div { display: flex; gap: 7px; }.workout-exercise-picker select { background: #fff; border: 1px solid #d9dfcc; border-radius: 9px; flex: 1; font: inherit; font-size: 13px; min-width: 0; padding: 10px; }.workout-exercise-picker button { background: #5c7920; border: 0; border-radius: 9px; color: #fff; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; padding: 0 11px; }.workout-exercise-picker button:last-child { background: #e3e7da; color: #5f6655; font-size: 18px; padding: 0; width: 31px; }.workout-exercise-list { display: grid; gap: 11px; }.workout-exercise { background: #fff; border: 1px solid #e4e6e9; border-radius: 17px; overflow: hidden; }.workout-exercise.is-dragging { box-shadow: 0 12px 28px rgba(38, 52, 17, .16); opacity: .8; }.workout-exercise.is-complete { border-color: #b7d778; }.workout-exercise-header { align-items: center; display: flex; gap: 10px; padding: 12px; }.exercise-complete, .set-check { align-items: center; background: #f1f2f4; border: 0; border-radius: 50%; color: transparent; cursor: pointer; display: flex; flex: 0 0 auto; font-size: 13px; font-weight: 900; height: 28px; justify-content: center; width: 28px; }.exercise-complete.is-done, .set-check.is-done { background: #b8ed43; color: #2d3c0d; }.drag-handle { background: transparent; border: 0; color: #a1a6ad; cursor: grab; font-size: 19px; letter-spacing: -4px; line-height: 1; padding: 6px 8px 6px 2px; touch-action: none; }.drag-handle:active { cursor: grabbing; }.exercise-summary { align-items: center; background: transparent; border: 0; color: #25282d; cursor: pointer; display: flex; flex: 1; font: inherit; gap: 11px; min-width: 0; padding: 0; text-align: left; }.exercise-summary > span:nth-child(2) { flex: 1; min-width: 0; }.exercise-summary strong, .exercise-summary small { display: block; }.exercise-summary strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.exercise-summary small { color: #858a92; font-size: 12px; margin-top: 3px; }.exercise-summary b { color: #6b7078; font-size: 18px; }.workout-exercise-details { border-top: 1px solid #edf0f1; padding: 15px; }.previous-result { background: #f5f8ed; border-radius: 11px; color: #5f6d40; font-size: 13px; line-height: 1.5; margin: 0 0 14px; padding: 11px 12px; }.previous-result span { color: #72864b; display: block; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }.set-list { display: grid; gap: 7px; }.set-row { align-items: center; display: flex; gap: 7px; }.set-check { height: 25px; width: 25px; }.set-number { color: #828790; font-size: 12px; font-weight: 800; text-align: center; width: 15px; }.set-row label { align-items: center; background: #f7f8f9; border: 1px solid #e1e3e6; border-radius: 9px; display: flex; flex: 1; min-width: 0; overflow: hidden; }.set-row input { background: transparent; border: 0; font: inherit; font-size: 14px; min-width: 0; outline: 0; padding: 10px 3px 10px 10px; width: 100%; }.set-row label span { color: #838891; font-size: 11px; font-weight: 700; padding-right: 8px; }.times { color: #8c9199; }.remove-set { background: transparent; border: 0; border-radius: 7px; color: #bd5656; cursor: pointer; font-size: 19px; height: 27px; line-height: 20px; padding: 0; width: 27px; }.add-set-button { background: #eff3e4; border: 0; border-radius: 10px; color: #56751a; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; margin-top: 13px; padding: 11px 13px; }.exercise-builder-actions { display: flex; gap: 8px; margin-top: 13px; }.exercise-builder-actions button { background: transparent; border: 0; color: #6d747c; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; padding: 3px 0; }.exercise-builder-actions button:last-child { color: #b24a4a; }.empty-sets { color: #858a92; font-size: 13px; margin: 5px 0; }.finish-workout-button { background: #17191d; border: 0; border-radius: 14px; color: #fff; cursor: pointer; font: inherit; font-size: 15px; font-weight: 800; margin-top: 20px; padding: 17px; width: 100%; }.discard-workout-button { background: transparent; border: 0; color: #b54d4d; cursor: pointer; display: block; font: inherit; font-size: 13px; font-weight: 800; margin: 17px auto 0; padding: 6px; }
.history-topline { align-items: center; display: flex; justify-content: space-between; margin-bottom: 34px; }.history-topline .back-button { margin: 0 !important; }.history-save-note { color: #6b832d; font-size: 13px; font-weight: 700; margin: -9px 0 22px; }.history-details-form { background: #fff; border: 1px solid #e7e8eb; border-radius: 17px; margin-bottom: 12px; padding: 18px; }.history-details-form label { color: #3f434a; display: block; font-size: 13px; font-weight: 800; margin: 0 0 15px; }.history-details-form label:last-child { margin-bottom: 0; }.history-details-form input, .history-details-form textarea { background: #f7f8f9; border: 1px solid #e1e3e6; border-radius: 11px; color: #17191d; display: block; font: inherit; font-size: 16px; margin-top: 7px; outline: none; padding: 13px; resize: vertical; width: 100%; }.history-details-form input:focus, .history-details-form textarea:focus { background: #fff; border-color: #9abe46; box-shadow: 0 0 0 3px #e6f3c9; }
.history-card-actions { align-items: center; display: flex; gap: 9px; }.history-card-actions > span { color: #5c7920; font-size: 19px; font-weight: 800; }.history-card-actions button { background: #fff1f1; border: 0; border-radius: 9px; color: #b64e4e; cursor: pointer; font-size: 18px; height: 34px; line-height: 1; width: 34px; }.history-card-actions button:hover { background: #ffe4e4; }.history-card-actions button:focus-visible { outline: 3px solid #17191d; outline-offset: 3px; }
.workout-details-form { background: #fff; border: 1px solid #e7e8eb; border-radius: 19px; padding: 22px; }.workout-details-form label { color: #3f434a; display: block; font-size: 13px; font-weight: 800; margin: 0 0 17px; }.workout-details-form input, .workout-details-form textarea { background: #f7f8f9; border: 1px solid #e1e3e6; border-radius: 11px; color: #17191d; display: block; font: inherit; font-size: 16px; margin-top: 7px; outline: none; padding: 13px; resize: vertical; width: 100%; }.workout-details-form input:focus, .workout-details-form textarea:focus { background: #fff; border-color: #9abe46; box-shadow: 0 0 0 3px #e6f3c9; }.optional { color: #8b9097; font-size: 11px; font-weight: 600; }.number-input { position: relative; }.number-input input { padding-right: 42px; }.number-input span { color: #7b8088; font-size: 13px; font-weight: 700; position: absolute; right: 14px; top: 20px; }.workout-details-form .start-button { margin-top: 7px; }.current-workout-details { background: #fff; border: 1px solid #e7e8eb; border-radius: 17px; display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 12px; padding: 20px; }.current-workout-details div + div { border-left: 1px solid #e6e8eb; padding-left: 18px; }.current-workout-details span, .workout-note span { color: #7b8189; display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; }.current-workout-details strong { font-size: 15px; }.workout-note { background: #fff; border: 1px solid #e7e8eb; border-radius: 17px; margin-bottom: 18px; padding: 18px 20px; }.workout-note p { font-size: 14px; line-height: 1.5; margin: 0; }.next-step-note { color: #747a82; font-size: 13px; line-height: 1.5; margin: 25px 2px; }
.tab-bar { -webkit-backdrop-filter: blur(18px); align-items: center; backdrop-filter: blur(18px); background: rgba(255, 255, 255, .86); border: 1px solid rgba(220, 222, 225, .85); border-radius: 18px; bottom: max(12px, env(safe-area-inset-bottom)); box-shadow: 0 10px 35px rgba(23, 25, 29, .11); display: flex; gap: 2px; left: 50%; padding: 5px; position: fixed; transform: translateX(-50%); width: min(calc(100% - 24px), 510px); z-index: 10; }
.tab { align-items: center; border-radius: 13px; color: #7d828a; display: flex; flex: 1; flex-direction: column; font-size: 11px; font-weight: 700; gap: 3px; min-height: 51px; justify-content: center; text-decoration: none; transition: background .18s ease, color .18s ease; }
.tab-icon { font-size: 19px; font-weight: 700; height: 21px; line-height: 20px; }
.tab.is-active { background: #eff3e4; color: #4d6814; }
.tab:focus-visible { outline: 3px solid #17191d; outline-offset: 2px; }

@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 700px) { .recent-workouts { min-height: 290px; } }
@media (min-width: 700px) { body { padding-bottom: 104px; } .tab-bar { bottom: 24px; } }
@media (max-width: 420px) { .app-shell { padding-top: 20px; } .hero { padding-top: 66px; } .start-button { width: 100%; justify-content: center; } .hero-actions { align-items: stretch; flex-direction: column; } .templates-button { text-align: center; } }
@media (max-width: 420px) { .exercise-card { align-items: flex-start; flex-direction: column; gap: 9px; } .exercise-actions { margin-left: 31px; } }
@media (max-width: 420px) { .library-heading { gap: 12px; }.library-heading .screen-title { font-size: 36px; }.add-exercise-row { align-items: stretch; flex-direction: column; }.add-exercise-row .small-button { width: 100%; } }
@media (max-width: 420px) { .current-workout-details { grid-template-columns: 1fr; gap: 15px; }.current-workout-details div + div { border-left: 0; border-top: 1px solid #e6e8eb; padding: 15px 0 0; }.active-workout-card { margin-top: -28px; } }
@media (max-width: 420px) { .active-workout-meta { grid-template-columns: 1fr; }.active-workout-meta label + label { border-left: 0; border-top: 1px solid #e3e6e9; } }

/* Единый mobile-first стиль: спокойный журнал тренировки. */
:root { background: #f6f7f8; color: #1a1c20; }
body { background: #f6f7f8; padding-bottom: 94px; }
.app-shell { max-width: 780px; padding: 20px 18px 38px; }
.app-header { min-height: 32px; }
.brand { font-size: 17px; }
.brand-mark { border-radius: 9px; height: 28px; width: 28px; }
.today { font-size: 12px; }

.hero { max-width: 580px; padding: 52px 0 42px; }
.eyebrow { color: #7b818a; font-size: 11px; letter-spacing: .075em; margin-bottom: 11px; }
h1 { font-size: clamp(38px, 10vw, 54px); letter-spacing: -.068em; line-height: 1.04; margin-bottom: 14px; }
.screen-title { font-size: clamp(32px, 8.5vw, 46px); letter-spacing: -.065em; margin-bottom: 12px; }
.hero-copy, .screen-copy { color: #707680; font-size: 15px; line-height: 1.52; margin-bottom: 23px; }
.screen-copy { max-width: 510px; }

.hero-actions { gap: 10px; }
.start-button, .templates-button { border-radius: 14px; font-size: 15px; min-height: 52px; padding: 15px 18px; }
.start-button { box-shadow: 0 5px 0 #a6dc38; }
.templates-button { box-shadow: 0 5px 0 #b7caea; }
.start-button:hover, .templates-button:hover { transform: translateY(-1px); }
.plus { font-size: 17px; height: 22px; line-height: 20px; width: 22px; }

.active-workout-card { background: #f1f6e6; border-color: #d9e8ba; border-radius: 16px; margin: -13px 0 25px; padding: 15px 16px; }
.active-workout-card h2 { font-size: 16px; }.active-workout-card p { font-size: 12px; }
.recent-workouts, .exercise-form, .workout-details-form, .history-details-form { border-color: #e5e7ea; border-radius: 18px; box-shadow: 0 3px 12px rgba(32, 37, 45, .025); }
.recent-workouts { padding: 19px; }
h2 { font-size: 20px; letter-spacing: -.045em; }
.section-heading { min-height: 28px; }
.empty-state, .empty-library { border-radius: 14px; padding: 31px 18px; }
.empty-icon { height: 42px; margin-bottom: 13px; width: 42px; }

.recent-workout-item { padding: 15px 1px; }.recent-workout-item h3 { font-size: 15px; }.recent-workout-item p, .history-card p { font-size: 12px; }.workout-preview-note { line-height: 1.35; }
.history-link { font-size: 12px; }
.history-card { border-radius: 15px; padding: 16px; }.history-card h2 { font-size: 16px; }.history-card-actions button { height: 32px; width: 32px; }

.library-heading { align-items: flex-start; }.library-heading .screen-copy { margin-bottom: 23px; }
.small-button, .save-button { border-radius: 11px; min-height: 44px; padding: 11px 14px; }
.small-button { margin-top: 0; }.exercise-form { padding: 18px; }.exercise-form input, .exercise-form select, .workout-details-form input, .workout-details-form textarea, .history-details-form input, .history-details-form textarea { font-size: 16px; padding: 12px; }
.exercise-card, .template-card { border-radius: 14px; padding: 15px; }.exercise-card { min-height: 62px; }.exercise-info h2, .template-card h2 { font-size: 15px; }.exercise-actions button { min-height: 34px; }

.template-editor h2 { font-size: clamp(27px, 7vw, 38px); }.editor-copy { font-size: 14px; }.add-exercise-row { gap: 8px; }.add-exercise-row select { min-height: 44px; }
.template-exercise { border-radius: 13px; padding: 11px; }.template-exercise-actions button { height: 30px; width: 30px; }

.tab-bar { background: rgba(255, 255, 255, .94); border-color: rgba(224, 226, 230, .95); border-radius: 17px; bottom: max(10px, env(safe-area-inset-bottom)); box-shadow: 0 9px 28px rgba(33, 39, 47, .12); padding: 4px; width: min(calc(100% - 20px), 430px); }
.tab { border-radius: 13px; font-size: 10px; min-height: 50px; }.tab-icon { font-size: 18px; }.tab.is-active { background: #eef4df; color: #527019; }

.start-workout-screen { max-width: 640px; }.start-workout-screen > div > .back-button { margin-bottom: 24px; }
.active-workout-meta { border-radius: 14px; margin-bottom: 14px; }.active-workout-meta label { padding: 12px 14px; }.active-workout-meta input { min-height: 24px; }
.workout-note { border-color: #e5e7ea; border-radius: 14px; margin-bottom: 14px; padding: 14px 16px; }
.add-workout-exercise { min-height: 42px; margin: -2px 0 10px; }.workout-exercise-picker { border-radius: 13px; padding: 12px; }
.workout-exercise-list { gap: 8px; }.workout-exercise { border-color: #e3e6e9; border-radius: 15px; }.workout-exercise-header { gap: 8px; min-height: 58px; padding: 10px; }.exercise-complete { height: 27px; width: 27px; }.drag-handle { font-size: 18px; padding-right: 4px; }.exercise-order { border-radius: 8px; height: 28px; width: 28px; }.exercise-summary { gap: 9px; }.exercise-summary strong { font-size: 14px; }.exercise-summary small { font-size: 11px; }.workout-exercise-details { padding: 12px; }.previous-result { border-radius: 10px; font-size: 12px; margin-bottom: 11px; padding: 9px 10px; }.set-row { gap: 5px; }.set-row input { font-size: 15px; min-height: 40px; padding: 9px 2px 9px 9px; }.set-check { height: 26px; width: 26px; }.remove-set { height: 30px; width: 25px; }.add-set-button { min-height: 40px; margin-top: 11px; }.exercise-builder-actions { margin-top: 11px; }.exercise-builder-actions button { min-height: 34px; }
.finish-workout-button { border-radius: 14px; min-height: 54px; margin-top: 17px; padding: 15px; }.discard-workout-button { min-height: 42px; margin-top: 10px; }
.history-topline { margin-bottom: 24px; }.history-save-note { font-size: 12px; margin-bottom: 17px; }

/* Просмотр завершённой тренировки: только результат, без элементов редактирования. */
.workout-detail-meta { background: #fff; border: 1px solid #e3e6e9; border-radius: 14px; display: grid; grid-template-columns: 1fr 1fr; margin: 19px 0 13px; overflow: hidden; }
.workout-detail-meta div { padding: 13px 15px; }.workout-detail-meta div + div { border-left: 1px solid #e3e6e9; }
.workout-detail-meta span { color: #7b818a; display: block; font-size: 10px; font-weight: 800; letter-spacing: .06em; margin-bottom: 5px; text-transform: uppercase; }.workout-detail-meta strong { font-size: 15px; }
.workout-detail-note { background: #fff; border: 1px solid #e3e6e9; border-radius: 14px; color: #353941; font-size: 14px; line-height: 1.45; margin-bottom: 15px; padding: 14px 15px; }.workout-detail-note span { color: #7b818a; display: block; font-size: 10px; font-weight: 800; letter-spacing: .06em; margin-bottom: 5px; text-transform: uppercase; }
.workout-detail-list { display: grid; gap: 9px; }.workout-detail-exercise { background: #fff; border: 1px solid #e3e6e9; border-radius: 15px; padding: 14px; }.workout-detail-exercise-heading { align-items: center; display: flex; gap: 10px; }.workout-detail-order { align-items: center; background: #eef4df; border-radius: 8px; color: #58731d; display: flex; flex: 0 0 27px; font-size: 12px; font-weight: 800; height: 27px; justify-content: center; }.workout-detail-exercise-heading strong { font-size: 15px; }.workout-detail-exercise-heading small { color: #7b818a; display: block; font-size: 12px; margin-top: 2px; }
.workout-set-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }.workout-set-pill { background: #f3f5f7; border-radius: 9px; color: #676e77; font-size: 12px; font-weight: 700; padding: 7px 9px; }.workout-set-pill.is-complete { background: #eef4df; color: #527019; }.empty-workout-sets { color: #858b93; font-size: 12px; margin: 12px 0 0; }
.edit-workout-button { background: #fff; border: 1px solid #202329; border-radius: 14px; color: #202329; font: inherit; font-size: 15px; font-weight: 800; margin-top: 17px; min-height: 52px; width: 100%; }.edit-workout-button:active { background: #f0f2f4; transform: scale(.99); }

/* Прогресс веса тела */
.progress-heading { margin-bottom: 20px; }.progress-add-button { background: #c5ff4a; border: 0; border-radius: 12px; color: #1d2610; cursor: pointer; flex: 0 0 auto; font: inherit; font-size: 13px; font-weight: 800; min-height: 44px; padding: 10px 13px; }.progress-add-button:focus-visible, .period-switcher button:focus-visible, .manual-weight-actions button:focus-visible { outline: 3px solid #17191d; outline-offset: 3px; }
.body-weight-form { background: #fff; border: 1px solid #e3e6e9; border-radius: 16px; margin: 0 0 13px; padding: 16px; }.body-weight-form label { color: #3f434a; display: block; font-size: 12px; font-weight: 800; margin: 0 0 13px; }.body-weight-form input { background: #f7f8f9; border: 1px solid #e1e3e6; border-radius: 10px; color: #17191d; display: block; font: inherit; font-size: 16px; margin-top: 6px; outline: none; padding: 11px; width: 100%; }.body-weight-form input:focus { background: #fff; border-color: #9abe46; box-shadow: 0 0 0 3px #e6f3c9; }.body-weight-form .number-input input { padding-right: 43px; }.body-weight-form .number-input span { top: 18px; }.body-weight-form-actions { align-items: center; display: flex; gap: 12px; }.body-weight-cancel { background: transparent; border: 0; color: #707680; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; padding: 10px 2px; }
.body-weight-summary { display: grid; gap: 9px; grid-template-columns: 1fr 1fr; margin-bottom: 11px; }.body-weight-summary > div, .body-weight-card, .manual-weight-entries { background: #fff; border: 1px solid #e3e6e9; border-radius: 16px; }.body-weight-summary > div { min-width: 0; padding: 14px; }.body-weight-summary span { color: #7b818a; display: block; font-size: 10px; font-weight: 800; letter-spacing: .06em; margin-bottom: 7px; text-transform: uppercase; }.body-weight-summary strong { display: block; font-size: clamp(18px, 5vw, 23px); letter-spacing: -.05em; margin-bottom: 4px; white-space: nowrap; }.body-weight-summary small { color: #80868e; display: block; font-size: 11px; line-height: 1.35; }.body-weight-summary .is-up { color: #a04b4b; }.body-weight-summary .is-down { color: #5b7a1c; }.body-weight-summary .is-neutral { color: #545a62; }
.body-weight-card { margin-bottom: 12px; overflow: hidden; padding: 15px 13px 10px; }.body-weight-card-heading { align-items: center; display: flex; gap: 10px; justify-content: space-between; margin-bottom: 9px; }.body-weight-card h2, .manual-weight-entries h2 { font-size: 16px; }.period-switcher { background: #f2f4f5; border-radius: 10px; display: flex; gap: 2px; padding: 3px; }.period-switcher button { background: transparent; border: 0; border-radius: 8px; color: #747a83; cursor: pointer; font: inherit; font-size: 11px; font-weight: 800; min-height: 29px; padding: 5px 8px; }.period-switcher button.is-active { background: #fff; box-shadow: 0 1px 3px rgba(31, 37, 44, .12); color: #58761d; }
.body-weight-chart-wrap { min-height: 196px; }.body-weight-chart { display: block; height: auto; overflow: visible; width: 100%; }.chart-grid-line { stroke: #e7eaed; stroke-width: 1; }.chart-y-label, .chart-x-label { fill: #858b93; font-family: "Manrope", sans-serif; font-size: 10px; font-weight: 700; }.chart-line { fill: none; stroke: #91bd31; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }.chart-point { fill: #c5ff4a; stroke: #5d7c1d; stroke-width: 2.5; }.chart-point-hit { cursor: pointer; }.chart-point-hit:focus { outline: 0; }.chart-point-hit-area { fill: transparent; }.chart-point-hit.is-selected .chart-point { fill: #fff; stroke-width: 4; }.body-weight-chart-empty { align-items: center; color: #777d86; display: flex; flex-direction: column; justify-content: center; min-height: 196px; padding: 18px; text-align: center; }.body-weight-chart-empty .empty-icon { margin-bottom: 10px; }.body-weight-chart-empty h3 { font-size: 14px; margin-bottom: 5px; }.body-weight-chart-empty p { font-size: 12px; line-height: 1.45; margin: 0; max-width: 260px; }
.manual-weight-entries { padding: 15px; }.manual-weight-entries .section-heading { margin-bottom: 11px; }.manual-weight-entries .section-heading span { align-items: center; background: #eff3e4; border-radius: 999px; color: #5b7920; display: inline-flex; font-size: 11px; font-weight: 800; height: 23px; justify-content: center; min-width: 23px; padding: 0 7px; }.manual-weight-list { display: grid; gap: 2px; }.manual-weight-entry { align-items: center; border-top: 1px solid #edf0f1; display: flex; gap: 10px; justify-content: space-between; padding: 12px 0; }.manual-weight-entry strong { display: block; font-size: 14px; }.manual-weight-entry span { color: #81878f; display: block; font-size: 11px; margin-top: 3px; }.manual-weight-actions { display: flex; gap: 9px; }.manual-weight-actions button { background: transparent; border: 0; color: #6e747d; cursor: pointer; font: inherit; font-size: 11px; font-weight: 800; min-height: 32px; padding: 5px 0; }.manual-weight-actions button:last-child { color: #b54d4d; }.manual-weight-empty { color: #81878f; font-size: 12px; margin: 0; }

/* Силовой прогресс */
.strength-section { margin-top: 28px; }.strength-section-heading { margin-bottom: 12px; }.strength-section-heading .eyebrow { margin-bottom: 7px; }.strength-section-heading h2 { font-size: 20px; margin-bottom: 5px; }.strength-section-heading p:last-child { color: #7a8089; font-size: 12px; margin: 0; }.strength-filter { margin-bottom: 10px; }.strength-exercise-list { display: grid; gap: 8px; }.strength-exercise-card { align-items: center; background: #fff; border: 1px solid #e3e6e9; border-radius: 15px; cursor: pointer; display: flex; justify-content: space-between; min-height: 67px; padding: 13px 14px; transition: border-color .18s ease, transform .18s ease; }.strength-exercise-card:hover { border-color: #b8d67d; transform: translateY(-1px); }.strength-exercise-card:focus-visible { outline: 3px solid #17191d; outline-offset: 3px; }.strength-exercise-card h3 { font-size: 14px; margin: 0 0 4px; }.strength-exercise-card .exercise-info p { font-size: 12px; }.strength-exercise-arrow { color: #5b7920; font-size: 19px; font-weight: 800; margin-left: 13px; }.strength-empty { background: #fff; border: 1px dashed #dce0e3; border-radius: 15px; color: #7b818a; font-size: 12px; padding: 18px; text-align: center; }.strength-empty p { margin: 0; }
.exercise-progress-meta { align-items: center; display: flex; flex-wrap: wrap; gap: 7px; margin: -2px 0 16px; }.exercise-progress-meta > span:not(.exercise-dot):not(.exercise-category) { color: #747a83; font-size: 13px; }.strength-chart-card { margin-bottom: 12px; }.exercise-result-list { background: #fff; border: 1px solid #e3e6e9; border-radius: 16px; padding: 15px; }.exercise-result-list .section-heading { margin-bottom: 8px; }.exercise-result-list h2 { font-size: 16px; }.exercise-result-list > p { color: #81878f; font-size: 12px; margin: 0; }.exercise-result-row { align-items: center; border-top: 1px solid #edf0f1; display: flex; font-size: 13px; justify-content: space-between; padding: 13px 0; }.exercise-result-row span { color: #777d86; }.exercise-result-row strong { font-size: 14px; }
.exercise-insights { display: grid; gap: 9px; grid-template-columns: 1fr 1fr; margin-bottom: 12px; }.exercise-insights article { background: #fff; border: 1px solid #e3e6e9; border-radius: 15px; min-width: 0; padding: 13px; }.exercise-insights span { color: #7b818a; display: block; font-size: 10px; font-weight: 800; letter-spacing: .06em; margin-bottom: 7px; text-transform: uppercase; }.exercise-insights strong { display: block; font-size: 17px; letter-spacing: -.04em; margin-bottom: 4px; white-space: nowrap; }.exercise-insights small { color: #7c828a; display: block; font-size: 11px; line-height: 1.35; }
.selected-exercise-workout { background: #f2f7e7; border: 1px solid #d9e9b7; border-radius: 15px; margin: -2px 0 12px; padding: 13px; }.selected-exercise-workout > div:first-child { align-items: baseline; display: flex; justify-content: space-between; gap: 12px; }.selected-exercise-workout > div:first-child span { color: #67754c; font-size: 12px; font-weight: 700; }.selected-exercise-workout > div:first-child strong { font-size: 15px; }.selected-exercise-set-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }.selected-exercise-set-list span { background: #fff; border-radius: 8px; color: #56663a; font-size: 12px; font-weight: 800; padding: 7px 8px; }.selected-exercise-workout > p { color: #697457; font-size: 12px; margin: 10px 0 0; }.selected-exercise-workout button { background: transparent; border: 0; color: #57751a; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; margin-top: 12px; padding: 3px 0; }
.exercise-result-row { background: transparent; border-left: 0; border-right: 0; border-bottom: 0; color: inherit; cursor: pointer; font: inherit; text-align: left; width: 100%; }.exercise-result-row:hover strong { color: #557318; }.exercise-result-row:disabled { cursor: default; opacity: .65; }.exercise-result-row b { color: #5b7920; font-size: 17px; margin-left: 11px; }.exercise-result-row:focus-visible, .selected-exercise-workout button:focus-visible { outline: 3px solid #17191d; outline-offset: 3px; }

/* Главная: быстрый и спокойный старт без лендинга. */
.visually-hidden { height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; clip: rect(0 0 0 0); white-space: nowrap; }
.home-primary-actions { padding: 21px 0 14px; }.home-start-button { justify-content: center; width: 100%; }.home-screen .active-workout-card { margin: 0 0 13px; max-width: none; }.quick-start { margin: 0 0 13px; }.quick-start .section-heading { margin: 0 1px 9px; }.quick-start h2 { font-size: 17px; }.quick-start-list { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }.quick-start-template { align-items: center; background: #fff; border: 1px solid #e3e6e9; border-radius: 14px; color: #202329; cursor: pointer; display: flex; font: inherit; gap: 8px; justify-content: space-between; min-height: 68px; padding: 12px; text-align: left; }.quick-start-template:hover { border-color: #bdd982; }.quick-start-template strong, .quick-start-template small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.quick-start-template strong { font-size: 13px; }.quick-start-template small { color: #80868e; font-size: 10px; margin-top: 4px; }.quick-start-template b { color: #5b7920; font-size: 18px; }.quick-start-template:focus-visible { outline: 3px solid #17191d; outline-offset: 3px; }.quick-start-empty { background: #fff; border: 1px dashed #dce0e3; border-radius: 14px; color: #7b818a; font-size: 12px; padding: 15px; }.quick-start-empty p { margin: 0 0 6px; }.quick-start-empty a { color: #557318; font-weight: 800; text-decoration: none; }.home-screen .recent-workouts { border-radius: 16px; padding: 16px; }.home-screen .recent-workouts .section-heading { min-height: 24px; }.home-screen .recent-workouts h2 { font-size: 17px; }.home-screen .empty-state { margin-top: 13px; padding: 23px 16px; }.home-screen .empty-icon { height: 36px; margin-bottom: 9px; width: 36px; }.home-screen .empty-icon span { height: 13px; }.home-screen .empty-icon span:nth-child(2) { height: 19px; }.home-screen .empty-icon span:nth-child(3) { height: 10px; }
.selected-template-summary { align-items: center; background: #f2f7e7; border: 1px solid #d9e9b7; border-radius: 14px; display: flex; gap: 10px; justify-content: space-between; margin-bottom: 12px; padding: 13px; }.selected-template-summary span { color: #718054; display: block; font-size: 10px; font-weight: 800; letter-spacing: .06em; margin-bottom: 4px; text-transform: uppercase; }.selected-template-summary strong { display: block; font-size: 15px; }.selected-template-summary button { background: transparent; border: 0; color: #57751a; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; padding: 6px 0; }

@media (min-width: 700px) {
  .app-shell { padding: 28px 46px 62px; }
  .hero { padding-top: 72px; }
  .recent-workouts { padding: 25px; }
  .tab-bar { bottom: 20px; }
}

@media (max-width: 420px) {
  .app-shell { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 43px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .start-button, .templates-button { padding-left: 12px; padding-right: 12px; }
  .templates-button { text-align: center; }
  .active-workout-meta { grid-template-columns: 1fr 1fr; }
  .active-workout-meta label + label { border-left: 1px solid #e3e6e9; border-top: 0; }
  .workout-detail-meta div { padding-left: 13px; padding-right: 13px; }
  .progress-heading { gap: 9px; }.progress-heading .screen-title { font-size: 35px; }.progress-add-button { font-size: 12px; padding-left: 10px; padding-right: 10px; }
  .body-weight-card { padding-left: 11px; padding-right: 11px; }.body-weight-card-heading { align-items: flex-start; flex-direction: column; }.period-switcher { align-self: stretch; }.period-switcher button { flex: 1; }
  .strength-section { margin-top: 24px; }
  .exercise-insights { grid-template-columns: 1fr; }
  .quick-start-list { grid-template-columns: 1fr; }
  .data-tools { flex-direction: column; }.data-tools-actions { justify-content: flex-start; }
}

/* Быстрый ввод веса используется только в активной тренировке. */
.set-weight-control { align-items: stretch; display: flex; flex: 1.2; gap: 4px; min-width: 0; }
.set-weight-control label { flex: 1; }
.set-weight-control input[data-set-field="weight"] { -moz-appearance: textfield; appearance: textfield; }
.set-weight-control input[data-set-field="weight"]::-webkit-inner-spin-button, .set-weight-control input[data-set-field="weight"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.weight-adjustments { display: grid; gap: 3px; grid-template-rows: 1fr 1fr; }
.weight-adjustments button { background: #eef3e2; border: 0; border-radius: 5px; color: #55731d; cursor: pointer; font: inherit; font-size: 9px; font-weight: 800; line-height: 1; min-height: 18px; padding: 1px 4px; width: 36px; }
.weight-adjustments button:active { background: #dce9c3; transform: scale(.96); }
.set-actions { align-items: stretch; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.set-actions .add-set-button { margin-top: 0; }
.repeat-set-button { background: #f5f6f7; border: 0; border-radius: 10px; color: #646b73; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; padding: 11px 13px; }

@media (max-width: 420px) {
  .set-weight-control { flex: 1.35; }
  .weight-adjustments button { min-height: 19px; width: 35px; }
  .set-actions { gap: 7px; }
  .repeat-set-button { min-height: 40px; }
}
