:root{--ink:#18372f;--ink-2:#34534b;--muted:#799087;--bg:#f7f8f4;--surface:#fff;--border:#e5ebe4;--accent:#d1e88e;--accent-dark:#264c3d;--mint:#eaf4e9;--sand:#fbf0df;--amber:#8c5a28;--danger:#a64434;--shadow:0 12px 34px rgba(27,61,43,.055);--radius:22px;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}html{min-height:100%;scroll-behavior:smooth}body{margin:0;min-height:100%;background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #9cbf55;outline-offset:3px}input,textarea,select{color:var(--ink)}svg{display:block}small{font-size:12px}p{margin:0}h1,h2,h3{margin:0;letter-spacing:-.035em}h1{font-size:clamp(27px,4vw,36px);line-height:1.22}h2{font-size:21px;line-height:1.35}h3{font-size:16px;line-height:1.4}a{color:inherit}
.app-shell{max-width:1040px;margin:0 auto;min-height:100dvh;padding:0 28px 110px}.topbar{height:92px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;gap:12px;align-items:center}.brand-mark{width:42px;height:42px;border-radius:15px;background:var(--ink);color:var(--accent);display:flex;align-items:center;justify-content:center;font-size:28px;line-height:1}.brand strong,.brand small{display:block}.brand strong{font-weight:780;font-size:17px;letter-spacing:.03em}.brand small{font-size:9px;letter-spacing:.2em;color:var(--muted);margin-top:3px;font-weight:800}.topbar-right{display:flex;gap:14px;align-items:center}.local-badge{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border);border-radius:999px;padding:8px 11px;font-size:11px;color:var(--ink-2);background:#fff;font-weight:600}.local-dot{height:7px;width:7px;border-radius:50%;background:#78a65d}.avatar{background:#e3ebdd;color:var(--ink);width:34px;height:34px;display:grid;place-items:center;border-radius:50%;font-weight:800;font-size:13px}.page{animation:fade .23s ease}.eyebrow{color:#678177;font-size:11px;font-weight:800;letter-spacing:.18em;text-transform:uppercase}.page-title{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:10px 0 25px}.page-title p{color:var(--muted);font-size:14px;margin-top:8px;line-height:1.8}.grid{display:grid;gap:16px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.card{border:1px solid var(--border);background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow)}.pad{padding:22px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:31px 0 14px}.section-heading h2{font-size:19px}.subtle{color:var(--muted);font-size:13px;line-height:1.7}.micro{font-size:11px;color:var(--muted)}.pill{display:inline-flex;gap:5px;align-items:center;border-radius:99px;background:#f0f5ed;color:#3c7052;font-weight:800;font-size:11px;padding:7px 11px;white-space:nowrap}.pill.sand{background:#fff4e2;color:#9a6637}.pill.grey{background:#f0f2ef;color:#6f8279}.btn{appearance:none;border:1px solid transparent;border-radius:14px;min-height:48px;padding:11px 18px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:800;font-size:14px;transition:transform .15s,background .15s,border-color .15s;text-decoration:none}.btn:active{transform:scale(.98)}.btn-primary{background:var(--accent);color:var(--ink)}.btn-primary:hover{background:#c5e078}.btn-dark{background:var(--ink);color:#fff}.btn-dark:hover{background:#275a48}.btn-light{background:#fff;color:var(--ink);border-color:var(--border)}.btn-ghost{background:#f0f4ec;color:var(--ink)}.btn-danger{color:var(--danger);background:#fff4f0;border-color:#f6dfd9}.btn-sm{padding:8px 12px;min-height:36px;font-size:12px;border-radius:10px}.btn-wide{width:100%}.btn svg{width:18px;height:18px}.icon-button{border:1px solid var(--border);border-radius:12px;width:42px;height:42px;display:grid;place-items:center;background:#fff;color:var(--ink)}.icon-button svg{width:18px;height:18px}.bottom-nav{position:fixed;bottom:12px;left:50%;transform:translateX(-50%);display:flex;justify-content:space-around;align-items:center;background:rgba(255,255,255,.96);border:1px solid #e2e9e0;box-shadow:0 12px 55px rgba(19,48,33,.13);backdrop-filter:blur(18px);border-radius:22px;padding:7px;width:min(480px,calc(100% - 24px));z-index:100}.nav-item{border:0;background:transparent;color:#8a9a90;border-radius:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:20%;min-height:58px;font-size:10px;font-weight:760}.nav-icon svg{width:20px;height:20px;stroke-width:1.9}.nav-item.active{background:#eaf2e5;color:var(--ink)}.nav-item.active .nav-icon{color:#375c42}.toast{position:fixed;z-index:500;bottom:103px;left:50%;transform:translateX(-50%) translateY(10px);opacity:0;pointer-events:none;border-radius:13px;background:var(--ink);color:white;padding:11px 16px;font-size:13px;font-weight:680;box-shadow:0 13px 40px #15372a40;transition:.25s;max-width:calc(100vw - 36px);text-align:center}.toast.show{transform:translateX(-50%) translateY(0);opacity:1}
/* Home */
.hero{position:relative;min-height:300px;overflow:hidden;background:radial-gradient(circle at 90% 20%,#3d6652 0%,transparent 35%),linear-gradient(120deg,#1b4337,#16372f);border-radius:27px;color:#fff;padding:31px 35px;display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:16px}.hero:before{content:'';position:absolute;width:390px;height:390px;border:1px solid rgba(221,244,177,.12);border-radius:50%;right:-150px;top:-120px}.hero:after{content:'';position:absolute;width:270px;height:270px;border:1px solid rgba(221,244,177,.15);border-radius:50%;right:-90px;top:-65px}.hero-text{position:relative;z-index:2;align-self:center}.hero .eyebrow{color:#bed8bf}.hero h1{margin-top:12px;font-size:clamp(31px,4vw,42px);letter-spacing:-.045em}.hero p{color:#c0d7c8;line-height:1.85;font-size:14px;margin:15px 0 24px;max-width:430px}.hero-figure{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;opacity:.96}.hero-figure svg{width:265px;height:220px}.hero .btn{box-shadow:0 7px 21px #10281f30}.stat-box{min-height:120px;padding:20px 21px;display:flex;flex-direction:column;justify-content:space-between}.stat-top{font-size:12px;font-weight:650;color:#698277;display:flex;align-items:center;gap:8px}.stat-value{font-size:30px;font-weight:850;letter-spacing:-.055em;line-height:1.15}.stat-value small{font-size:13px;color:#7a8e82;margin-left:4px;letter-spacing:0}.stat-footer{margin-top:8px;color:#839588;font-size:12px}.dots{display:inline-flex;gap:6px;margin-left:auto}.dot{height:8px;width:8px;background:#e3e9dd;border-radius:50%}.dot.filled{background:#83b261}.exercise-preview{display:grid;grid-template-columns:44px 1fr auto;gap:13px;align-items:center;padding:15px 2px;border-bottom:1px solid #edf1eb}.exercise-preview:last-child{border-bottom:0}.exercise-badge{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:#e9f1e8;color:#38674f;font-weight:850}.exercise-preview strong{font-size:14px}.exercise-preview small{display:block;color:#8a9a90;margin-top:3px;font-size:11px}.exercise-reps{font-size:12px;background:#f2f5f1;padding:7px 9px;border-radius:9px;color:#4e705a;font-weight:800}.safety-box{background:#fbf2e6;color:#7d613f;border:1px solid #f3e2c8;border-radius:18px;padding:18px 18px;display:flex;gap:12px;align-items:start}.safety-box svg{width:20px;height:20px;flex:none}.safety-box strong{font-size:13px;display:block;color:#815c31;margin-bottom:5px}.safety-box p{font-size:12px;line-height:1.8}.quick-side{display:flex;flex-direction:column;gap:14px}.mini-progress{background:#f2f7ef;border:1px solid #e5ede0;border-radius:18px;padding:21px}.mini-progress strong{font-size:14px}.progress-track{height:9px;background:#deead9;border-radius:999px;overflow:hidden}.progress-track span{display:block;background:#5a906b;height:100%;border-radius:inherit;transition:width .3s}.mini-progress .progress-track{margin:16px 0 12px}
/* Workout */
.workout-progress{padding:21px 24px}.workout-progress-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.workout-progress-top strong{font-size:14px}.workout-progress-top span{font-size:12px;color:#638071}.workout-progress .progress-track{height:10px}.stepper{display:flex;gap:7px;margin:18px 0 0}.stepper button{border:none;flex:1;padding:0;background:#eaf0e9;height:6px;border-radius:99px}.stepper button.past{background:#5e9570}.stepper button.current{background:#accc6a}.exercise-card{overflow:hidden}.exercise-header{background:linear-gradient(135deg,#eaf4e8,#f7faf4);padding:24px 25px 21px;display:flex;gap:18px;justify-content:space-between;align-items:center}.exercise-header .ex-index{color:#4a7258;font-weight:800;font-size:11px;letter-spacing:.16em}.exercise-header h2{font-size:25px;margin:7px 0 5px}.exercise-header p{font-size:12px;color:#728f7b}.ex-glyph{font-size:48px;line-height:1;color:#487453;white-space:nowrap}.exercise-body{padding:22px 25px 26px}.form-cues{padding-left:20px;color:#4a6758;font-size:13px;line-height:1.9;margin:0 0 20px}.form-cues li::marker{color:#6f9e73}.hand-warning{background:#fff6e7;color:#815a34;padding:14px 15px;border-radius:13px;font-size:12px;line-height:1.85;display:flex;gap:9px;align-items:flex-start}.hand-warning svg{height:18px;width:18px;flex:none;margin-top:2px}.variant-control{display:flex;gap:8px;margin:0 0 17px;flex-wrap:wrap}.variant-control button{border:1px solid #dae6d8;border-radius:10px;background:#fff;min-height:38px;padding:9px 13px;font-size:12px;font-weight:750;color:#6d8172}.variant-control button.selected{background:#244a3b;color:#fff;border-color:#244a3b}.sets-card{padding:23px}.sets-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.sets-head span{font-size:12px;color:var(--muted)}.set-row{display:grid;grid-template-columns:38px minmax(0,1fr) minmax(0,1fr) 112px;align-items:center;gap:9px;margin-bottom:11px}.set-row:last-child{margin-bottom:0}.set-index{height:38px;width:38px;border-radius:12px;background:#f1f5ef;display:grid;place-items:center;font-size:12px;font-weight:850;color:#6e8975}.set-index.complete{background:#ddedd7;color:#376548}.field-inline{position:relative;display:flex;align-items:center;gap:4px;background:#f8faf7;border:1px solid #e5ebe3;border-radius:11px;min-height:46px;overflow:hidden}.field-inline span{color:#9aa99d;font-size:11px;padding-left:11px;white-space:nowrap}.field-inline input{border:0;outline:none;background:transparent;min-width:0;width:100%;font-size:15px;font-weight:780;text-align:right;padding:8px 10px 8px 0;color:#345949}.field-inline input:focus-visible{outline:0}.field-inline:focus-within{border-color:#8eaf83;box-shadow:0 0 0 2px #bce0ad55}.set-done{height:46px;display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid #d8e6d2;border-radius:11px;background:#edf6e9;color:#406e50;font-size:12px;font-weight:800}.set-done.done{background:#30644d;color:#fff;border-color:#30644d}.set-done svg{width:15px;height:15px}.set-row input:disabled{background:#edf2ea;color:#8a948b}.set-row.no-weight{grid-template-columns:38px 1fr 112px}.set-done:focus-visible{outline:3px solid #d1e88e}.switch-row{display:flex;gap:10px;margin-top:15px}.switch-row .btn{flex:1}.rest-card{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:21px 24px;background:#1d4135;color:#fff}.rest-card .eyebrow{color:#a6c3ab}.rest-number{font-variant-numeric:tabular-nums;font-size:42px;line-height:1.12;font-weight:830;letter-spacing:-.05em;margin:6px 0}.rest-actions{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end}.rest-actions .btn{background:#345d49;color:white;border:1px solid #54735e;min-height:39px}.rest-actions .accent-rest{background:#d1e88e;color:#193c34;border-color:#d1e88e}.finish-card{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:16px 19px;background:#edf6e8;border:1px solid #dce9d5;border-radius:16px}.finish-card strong{font-size:13px}.finish-card p{font-size:12px;color:#68826e;line-height:1.65;margin-top:5px}.workout-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.workout-actions .btn{min-height:51px}.training-note{font-size:12px;color:#728979;line-height:1.8;margin:16px 0}.inline-sep{height:1px;background:var(--border);margin:16px 0}
/* History + graph */
.history-item{padding:20px 22px;display:flex;align-items:center;gap:16px;border-bottom:1px solid #e8eee5}.history-item:last-child{border-bottom:0}.history-date{width:58px;height:61px;background:#eef4ec;border-radius:13px;display:flex;align-items:center;justify-content:center;flex-direction:column;flex:none}.history-date strong{font-size:24px;line-height:1}.history-date small{color:#849887;font-size:11px;font-weight:750;margin-top:5px}.history-info{min-width:0;flex:1}.history-info h3{font-size:14px}.history-info p{font-size:12px;color:#8a978d;margin-top:5px;line-height:1.6}.history-set-count{background:#edf3e8;color:#426b4c;padding:6px 10px;font-size:11px;font-weight:780;border-radius:9px;white-space:nowrap}.history-details{background:#fbfcfa;padding:18px 22px;border-top:1px solid var(--border)}.history-details .detail-line{display:flex;justify-content:space-between;gap:15px;color:#607b68;font-size:12px;margin:8px 0}.history-details .detail-line b{color:#2e5945;font-weight:760;text-align:right}.empty{text-align:center;padding:50px 25px}.empty-icon{background:#e8f2e3;color:#55775a;border-radius:22px;width:72px;height:72px;display:grid;place-items:center;margin:auto auto 18px}.empty-icon svg{width:34px;height:34px}.empty h3{font-size:19px}.empty p{max-width:320px;margin:10px auto 23px;color:#869587;line-height:1.85;font-size:13px}.big-number{font-weight:830;font-size:36px;letter-spacing:-.07em}.big-number small{font-size:13px;color:#7c9586;margin-left:6px}.chart-wrap{position:relative;width:100%;overflow:hidden}.chart-wrap svg{width:100%;height:auto;min-height:190px;overflow:visible}.chart-label{font-size:11px;fill:#91a595}.chart-grid{stroke:#e7eee4;stroke-width:1;stroke-dasharray:4 5}.chart-line{fill:none;stroke:#4d8662;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}.chart-area{fill:#8dbd8b;opacity:.11}.chart-point{fill:#fff;stroke:#3d7b53;stroke-width:3}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:flex;flex-direction:column;gap:7px}.field label{font-size:12px;color:#607866;font-weight:800}.field input,.field textarea,.field select{background:#f9fbf8;border:1px solid #dfe9db;border-radius:12px;padding:12px 13px;min-height:47px;max-width:100%;outline:none}.field textarea{min-height:80px;resize:vertical;line-height:1.6}.field input:focus,.field textarea:focus,.field select:focus{border-color:#8bae77;box-shadow:0 0 0 2px #dcebd2}.data-row{display:grid;grid-template-columns:100px 100px 1fr auto;gap:10px;align-items:center;padding:13px 0;border-bottom:1px solid var(--border);font-size:13px}.data-row:last-child{border-bottom:0}.data-row strong{color:#365c48}.data-row .muted{font-size:12px;color:#7e9285}.data-row button{border:0;background:#fff2ed;color:#ad5746;font-size:11px;padding:7px 9px;border-radius:8px}.weeks-row{display:grid;grid-template-columns:repeat(8,1fr);gap:6px}.week-cell{height:46px;border-radius:9px;background:#edf3e9;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;font-size:10px;color:#7d9982;font-weight:850}.week-cell.hit{background:#c6e3ba;color:#315e40}.week-cell.today{outline:2px solid #769f6e;outline-offset:2px}
/* Settings */
.setting-row{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:18px 0;border-bottom:1px solid var(--border)}.setting-row:last-child{border-bottom:0}.setting-row strong{font-size:14px}.setting-row p{font-size:12px;color:#819185;line-height:1.7;margin-top:4px;max-width:440px}.segmented{display:flex;padding:4px;background:#edf3e9;border-radius:13px;gap:3px}.segmented button{background:transparent;border:0;color:#758874;border-radius:10px;padding:10px 12px;font-size:12px;font-weight:780}.segmented button.active{background:var(--ink);color:#fff}.about-list{padding-left:21px;margin:0;color:#6a806c;font-size:13px;line-height:2}.about-list li::marker{color:#83b46f}.footer-note{font-size:11px;color:#91a196;text-align:center;line-height:1.75;margin:24px auto 0}.danger-text{color:#a75d4a}.flex{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.mt-15{margin-top:15px}.mt-20{margin-top:20px}.mt-25{margin-top:25px}.no-margin{margin:0}.nowrap{white-space:nowrap}.line-clamp{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.success-bubble{display:inline-flex;align-items:center;gap:6px;background:#e3f0dc;color:#407144;border-radius:99px;padding:7px 11px;font-size:12px;font-weight:750}
@keyframes fade{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media (max-width:760px){.app-shell{padding:0 16px 110px}.topbar{height:78px}.hero{min-height:295px;grid-template-columns:1fr;padding:27px}.hero-figure{position:absolute;right:-72px;bottom:-43px;opacity:.2;pointer-events:none}.hero-figure svg{width:280px;height:280px}.hero h1{font-size:33px}.hero-text{max-width:100%}.hero-text p{max-width:340px}.grid.two,.grid.three{grid-template-columns:1fr}.grid.three.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.stat-box{min-height:114px;padding:15px 12px}.stat-top{font-size:11px}.stat-value{font-size:26px}.stat-value small{display:block;font-size:10px;margin:3px 0 0}.stat-footer{font-size:10px}.card.pad{padding:19px}.section-heading{margin:25px 0 12px}.page-title{margin:8px 0 20px}.quick-side{display:grid;grid-template-columns:1fr}.workout-progress{padding:19px}.exercise-header{padding:22px 19px}.exercise-header h2{font-size:23px}.exercise-body{padding:20px}.sets-card{padding:18px}.rest-card{padding:20px}.safety-box{padding:15px}.local-badge{display:none}}
@media (max-width:430px){.app-shell{padding:0 13px 110px}.hero{padding:25px 23px}.hero h1{font-size:30px}.hero p{font-size:13px}.brand strong{font-size:15px}.brand small{font-size:8px}.brand-mark{width:38px;height:38px}.set-row{grid-template-columns:31px minmax(0,1fr) minmax(0,1fr) 79px;gap:6px}.set-index{height:34px;width:31px;font-size:11px}.field-inline{min-height:45px}.field-inline span{font-size:10px;padding-left:6px}.field-inline input{font-size:14px;padding-right:6px}.set-done{height:45px;font-size:11px}.set-row.no-weight{grid-template-columns:31px 1fr 79px}.rest-card{display:block}.rest-actions{margin-top:12px;justify-content:flex-start}.week-cell{font-size:9px;height:41px}.data-row{grid-template-columns:77px 70px 1fr auto;gap:6px;font-size:11px}.data-row .muted{font-size:11px}.setting-row{display:block}.setting-row .segmented,.setting-row .btn,.setting-row input{margin-top:12px}.form-grid{grid-template-columns:1fr 1fr}}
@media (prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* Guided three-phase sessions: warm-up, strength training, cool-down. */
.phase-preview{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#eef5ea;border-radius:11px;padding:12px 14px;margin:11px 0 4px;color:#356148;font-size:12px;font-weight:800}
.phase-preview b{color:#718c77;font-size:11px;white-space:nowrap}
.phase-preview.strength-preview{margin-top:16px;background:#e0eddc}
.phase-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0 0 18px}
.phase-tab{background:white;color:#789087;border:1px solid #e1eadf;border-radius:15px;min-height:72px;display:flex;align-items:center;justify-content:center;gap:10px;text-align:left;padding:10px 12px}
.phase-tab span{width:28px;height:28px;display:grid;place-items:center;flex:none;background:#f0f5ee;border-radius:10px;font-size:11px;font-weight:900}
.phase-tab strong{font-weight:800;font-size:12px;line-height:1.45}
.phase-tab.selected{background:#1f493a;border-color:#1f493a;color:#fff;box-shadow:0 9px 22px #173c2d1b}
.phase-tab.selected span{background:#cfe889;color:#204735}
.phase-intro{padding:25px;margin-bottom:16px;background:#eff6eb;border-color:#dcebd7;box-shadow:none}
.phase-headline{display:flex;align-items:center;justify-content:space-between;gap:13px;margin:10px 0 18px}
.phase-headline h2{font-size:23px}
.phase-headline p{font-size:13px;color:#607969;line-height:1.75;margin-top:7px}
.phase-count{font-size:33px;font-weight:880;color:#2f6a4d;letter-spacing:-.05em;flex:none}
.phase-count small{font-size:13px;color:#8b9f8b}
.phase-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 19px;border:1px solid #e2ebe0;background:#fff;border-radius:16px;margin-bottom:15px}
.phase-choice>span{font-size:12px;font-weight:850;color:#3b6650}
.phase-choice .variant-control{margin:0}
.phase-groups{display:flex;flex-direction:column;gap:15px}
.phase-group{overflow:hidden}
.phase-group>header{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f7faf5;padding:19px 22px;border-bottom:1px solid var(--border)}
.phase-group>header h3{font-size:16px}
.phase-group>header p{font-size:12px;color:#859687;margin-top:4px}
.motion-row{padding:19px 22px;border-bottom:1px solid #edf2ea}
.motion-row:last-child{border-bottom:0}
.motion-row.motion-done{background:#fcfefb}
.motion-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.motion-title h4{font-size:15px;color:var(--ink);font-weight:850;margin:0}
.motion-title span{display:inline-block;color:#5b8a68;background:#f0f5ed;padding:5px 8px;border-radius:8px;font-size:11px;font-weight:850;margin-top:8px}
.motion-check{display:flex;align-items:center;justify-content:center;gap:6px;padding:9px 13px;min-height:43px;min-width:91px;border-radius:11px;border:1px solid #d9e7d3;background:#edf6e9;color:#39684b;font-size:12px;font-weight:850;flex:none}
.motion-check svg{width:17px;height:17px}
.motion-check.checked{background:#2c6149;color:#fff;border-color:#2c6149}
.motion-detail{color:#4c6b59;font-size:13px;line-height:1.8;margin:13px 0 9px}
.motion-hand{display:flex;align-items:start;gap:7px;color:#8c633b;background:#fff6ea;border-radius:10px;padding:10px 12px;font-size:11px;line-height:1.75}
.motion-hand svg{width:16px;height:16px;flex:none;margin-top:2px}
.motion-timing{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:11px}
.motion-timing .btn{min-height:38px}
.motion-counter{font-size:21px;font-variant-numeric:tabular-nums;font-weight:850;color:#265f49;letter-spacing:-.05em;padding:0 4px}
.phase-pain-note{display:flex;align-items:start;gap:8px;padding:15px 16px;margin:16px 0;font-size:12px;line-height:1.9;color:#8a603a;background:#fdf2e2;border:1px solid #f3e1c8;border-radius:14px}
.phase-pain-note svg{width:18px;height:18px;flex:none;margin-top:2px}
.phase-finish{margin-top:16px}
.phase-secondary{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-top:13px}
@media(max-width:620px){.phase-nav{gap:6px}.phase-tab{padding:10px 7px;min-height:63px;gap:6px;flex-direction:column}.phase-tab span{height:21px;width:26px;border-radius:7px}.phase-tab strong{font-size:11px}.phase-intro{padding:19px}.phase-headline h2{font-size:21px}.phase-choice{flex-direction:column;align-items:stretch}.phase-group>header,.motion-row{padding:16px}.motion-header{align-items:start}.motion-check{min-width:83px}.phase-finish{display:flex;flex-direction:column;align-items:stretch}.phase-finish .btn{width:100%}}

/* Illustrated female trainer: looped, self-contained motion demonstrations. */
.demo-preview{background:#f5faf5;border:1px solid #dbe9df;border-radius:15px;overflow:hidden;margin:13px 0 15px}
.demo-stage{width:100%;position:relative;background:#e4f1e9;aspect-ratio:360/260;overflow:hidden}
.demo-stage canvas,.demo-modal-canvas canvas{display:block;width:100%;height:100%;object-fit:contain}
.demo-caption{padding:12px 14px;display:flex;align-items:center;gap:10px;justify-content:space-between;background:#f7faf5}
.demo-caption strong{display:block;font-size:12px;color:#254e3c;letter-spacing:.02em}
.demo-caption span{display:block;font-size:11px;color:#6b8474;line-height:1.55;margin-top:4px}
.demo-show{flex:none;min-height:41px;white-space:nowrap;padding:10px 13px;border:0;background:#1e634e;border-radius:10px;color:white;font-size:12px;font-weight:800;cursor:pointer}
.demo-show:hover{background:#174d3c}
.motion-row .demo-preview{display:grid;grid-template-columns:minmax(130px,180px) 1fr;max-width:510px}
.motion-row .demo-stage{height:100%;min-height:144px;aspect-ratio:auto}
.motion-row .demo-caption{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:11px 12px}
.motion-row .demo-show{margin-top:3px}
.exercise-body .demo-preview{margin:7px 0 21px}
.exercise-body .demo-stage{max-height:290px}
.movement-dialog{position:fixed;margin:auto;padding:0;border:none;border-radius:24px;background:#fff;box-shadow:0 30px 100px #0d281f55;overflow:hidden;width:min(92vw,650px);max-height:90dvh;color:#1f4234}
.movement-dialog::backdrop{background:#0b1f1cb5;backdrop-filter:blur(4px)}
.demo-modal-head{padding:22px 24px 15px;display:flex;align-items:start;justify-content:space-between;gap:10px}
.demo-modal-head h2{font-size:23px;margin:6px 0 4px;line-height:1.3}
.demo-modal-head p{font-size:12px;color:#64816e;margin:4px 0 0}
.demo-close{border:1px solid #e2ebe1;background:#f4f8f1;width:39px;height:39px;min-width:39px;border-radius:11px;font-size:15px;color:#3b5e4a}
.demo-modal-canvas{width:100%;aspect-ratio:360/230;height:min(45vh,385px);background:#e2f1e7;overflow:hidden}
.demo-modal-controls{display:flex;align-items:center;flex-wrap:wrap;gap:9px;padding:15px 23px}
.demo-modal-controls .btn{min-height:38px}
.demo-loop-label{font-size:11px;color:#789081}
.demo-instruction{font-size:13px;line-height:1.75;color:#456854;padding:0 24px 12px;margin:0}
.demo-safe{margin:0 23px 13px;display:block}
.demo-safe span{font-weight:800}
.demo-disclaimer{font-size:11px;line-height:1.7;color:#8d967f;margin:0;padding:0 24px 23px}
@media(max-width:500px){.motion-row .demo-preview{grid-template-columns:minmax(123px,44%) 1fr}.motion-row .demo-stage{min-height:137px}.demo-caption{padding:10px}.demo-caption span{font-size:10px}.demo-show{min-height:39px;padding:9px 10px;font-size:11px}.demo-modal-head{padding:19px 17px 13px}.demo-modal-controls{padding:13px 16px}.demo-instruction{padding:0 17px 12px}.demo-safe{margin:0 16px 12px}.demo-disclaimer{padding:0 17px 20px}}

/* Exercise demos can be opened from home without starting a workout. */
.exercise-preview{grid-template-columns:44px minmax(0,1fr) auto auto;gap:9px}
.exercise-demo-launch{border:1px solid #cfe1d3;background:#eaf4eb;border-radius:10px;min-width:58px;min-height:37px;padding:7px 8px;white-space:nowrap;color:#28624e;font-weight:850;font-size:11px}
.exercise-demo-launch:hover{background:#dceedd}
@media(max-width:430px){.exercise-preview{grid-template-columns:36px minmax(0,1fr) auto auto;gap:6px}.exercise-badge{width:35px;height:35px}.exercise-preview strong{font-size:12px}.exercise-preview small{font-size:10px}.exercise-reps{font-size:10px;padding:6px}.exercise-demo-launch{min-width:52px;padding:6px;font-size:10px}}

/* Licensed video playback: actual recorded exercise demonstrations. */
.demo-video-poster{height:214px;position:relative;overflow:hidden;background:linear-gradient(125deg,#dcebe1,#b4cdbd);display:grid;place-items:center}
.demo-video-poster img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.demo-poster-play{position:relative;display:grid;place-items:center;width:63px;height:63px;border-radius:50%;color:#fff;background:#195a42d9;box-shadow:0 6px 30px #133b3470;font-size:25px;padding-left:4px}
.demo-poster-kicker{position:absolute;left:11px;bottom:12px;color:#fff;background:#143a31dc;border-radius:8px;font-size:11px;font-weight:750;padding:6px 9px}
.motion-row .demo-video-poster{height:156px}
.exercise-body .demo-video-poster{height:min(285px,40vw);min-height:200px}
.demo-modal-video{width:100%;aspect-ratio:16/9;background:#14251f}
.demo-modal-video iframe{width:100%;height:100%;border:0;display:block}
.demo-video-details{padding:10px 23px 0;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12px;color:#6b8275}
.demo-video-details a{color:#226d50;text-decoration:underline}
.demo-video-caveat{font-size:12px;line-height:1.7;color:#705734;background:#fff5e3;border:1px solid #efdec0;margin:14px 23px;padding:11px 13px;border-radius:10px}
@media(max-width:500px){.motion-row .demo-video-poster{height:140px}.exercise-body .demo-video-poster{height:210px}.demo-video-details{padding:10px 16px 0}.demo-video-caveat{margin:12px 16px}}

button.demo-poster-play{border:none;cursor:pointer}

/* v2.0: still photographic keyframes, replacing video and cartoon animation */
.pose-preview{display:grid;grid-template-columns:minmax(126px,39%) minmax(0,1fr);align-items:stretch;overflow:hidden;margin:12px 0 21px;background:#f7faf7;border:1px solid #dce9df;border-radius:16px}
.pose-preview-visual{background:#edf3ef;min-height:152px;overflow:hidden}
.pose-preview-visual>img{width:100%;height:100%;min-height:152px;max-height:220px;object-fit:contain;display:block}
.pose-preview-copy{display:flex;flex-direction:column;align-items:start;justify-content:center;padding:13px;gap:7px;min-width:0}
.pose-preview-copy strong{font-size:14px;color:#1a4d3b}
.pose-preview-copy small{font-size:11px;line-height:1.6;color:#688376;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pose-eyebrow{font-size:10px;letter-spacing:.02em;font-weight:850;color:#4c8a64}
.pose-preview-copy .demo-show{font-size:11px;min-height:43px;white-space:normal;text-align:center;padding:10px 12px;margin-top:4px}
.pose-preview-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:150px;gap:4px;color:#507965;font-size:12px;text-align:center}
.pose-preview-empty span{font-size:35px;color:#aac9a9}
.pose-gallery-inline{margin:12px 0 20px}
.pose-gallery-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.pose-gallery-head strong{font-size:14px;color:#28563f}.pose-gallery-head span{font-size:11px;color:#7e9382}
.pose-gallery-scroll{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.pose-gallery-item{position:relative;padding:0 0 12px;display:flex;flex-direction:column;align-items:stretch;gap:7px;background:#fff;border:1px solid #dbe8de;border-radius:13px;overflow:hidden;text-align:left;min-width:0;color:#264d3c}
.pose-gallery-item>img{display:block;width:100%;height:187px;object-fit:contain;background:#e9eeee}
.pose-gallery-item>strong{font-size:12px;padding:0 9px}.pose-gallery-item>small{padding:0 9px;font-size:10px;line-height:1.55;color:#6e8577;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.pose-gallery-number{position:absolute;top:7px;left:7px;width:26px;height:26px;background:#e5f7eb;color:#236648;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:900;box-shadow:0 2px 6px #1e44372a}
.pose-gallery-help{margin:12px 0 0;font-size:11px;line-height:1.7;color:#6e8577}
.pose-text-link{border:0;color:#1b7451;background:transparent;font-weight:850;padding:5px}
.movement-dialog.photo-dialog{width:min(1100px,96vw);max-height:94dvh;border-radius:22px;overflow-y:auto;overscroll-behavior:contain}
.photo-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:21px 22px 14px}
.photo-dialog-head h2{font-size:22px;margin:5px 0 4px}.photo-dialog-head p{font-size:12px;line-height:1.6;color:#768b7e}
.photo-dialog-scroll{padding:0 22px}.pose-scroller{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:10px}
.pose-step{min-width:0;display:flex;flex-direction:column;border:1px solid #dfe7e0;border-radius:15px;overflow:hidden;background:#fff}
.pose-photo{width:100%;height:clamp(190px,24vw,340px);position:relative;overflow:hidden;background:#eff2ef}
.pose-photo img{width:100%;height:100%;display:block;object-fit:contain}
.pose-number{position:absolute;top:9px;left:9px;width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#e1f4ea;color:#1b6149;box-shadow:0 2px 6px #174b3d22;font-weight:880;font-size:15px}
.pose-copy{padding:12px}.pose-copy strong{font-size:14px;color:#25533e}.pose-copy p{font-size:12px;line-height:1.8;color:#5f7668;margin-top:6px}
.pose-pending{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(145deg,#ecf3ef,#dfece2);gap:7px;padding:9px;text-align:center;color:#53705e}.pose-pending b{font-size:12px}.pose-pending small{font-size:10px}.pose-pending-icon{font-size:36px;color:#92b09c}
.pose-pager{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 22px 0;border-top:1px solid #e3ebe4;padding-top:12px}
.pose-pager>button{border:1px solid #d9e7dd;border-radius:12px;min-height:43px;min-width:93px;padding:9px 13px;background:#eaf5ef;color:#21644b;font-weight:850;font-size:12px}
.pose-pager>button:disabled{opacity:.3}.pose-count{white-space:nowrap;font-size:12px;font-weight:800;color:#496a57}
.pose-dots{display:flex;gap:6px}.pose-dot{padding:0;border:0;border-radius:99px;background:#c7d9cb;width:8px;height:8px;min-width:8px;min-height:8px}.pose-dot[aria-current="step"]{background:#177451;width:20px}
.pose-notes{padding:16px 22px 23px;font-size:12px;line-height:1.9;color:#5c7160}.pose-notes p{margin-bottom:8px}.pose-hand{padding:11px 13px;background:#fff3e1;border-radius:10px;color:#795c33}.pose-disclaimer{font-size:11px;color:#859588}

/* Honor Magic V3 outer screen: compact single-hand carousel, wide tap targets. */
@media(max-width:719px){
 .pose-gallery-scroll{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(75%,1fr);grid-template-columns:none;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;scroll-padding-inline:2px;-webkit-overflow-scrolling:touch;padding:2px 2px 12px}
 .pose-gallery-item{scroll-snap-align:start}.pose-gallery-item>img{height:340px}.pose-gallery-item>small{-webkit-line-clamp:unset;font-size:12px}.pose-gallery-item>strong{font-size:14px}
 .movement-dialog.photo-dialog{width:min(100vw - 12px,560px);max-height:94dvh;border-radius:17px}
 .photo-dialog-head{padding:16px 14px 10px}.photo-dialog-head h2{font-size:21px}
 .photo-dialog-scroll{padding:0 13px}
 .pose-scroller{grid-auto-columns:minmax(84%,1fr);overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scroll-padding-inline:1px;-webkit-overflow-scrolling:touch;padding-bottom:6px}
 .pose-step{scroll-snap-align:start}.pose-photo{height:min(56dvh,440px)}
 .pose-pager{margin:10px 13px 0}.pose-notes{padding:12px 13px 18px}
}
/* Honor Magic V3 inner unfolded screen (~720-1100 CSS pixels): navigation rail + wide gallery. */
@media(min-width:720px) and (max-width:1150px){
 .app-shell{max-width:1100px;min-height:100dvh;padding:16px 18px 36px;display:grid;grid-template-columns:162px minmax(0,1fr);grid-template-rows:74px minmax(0,auto);column-gap:16px;align-items:start}
 .topbar{grid-column:1;grid-row:1;height:66px;min-width:0}.topbar .brand{gap:7px}.topbar .brand-mark{width:31px;height:31px;font-size:22px;border-radius:10px}.topbar .brand strong{font-size:13px}.topbar .brand small{font-size:7px}.topbar-right{display:none}
 #app{grid-column:2;grid-row:1 / 3;min-width:0}
 .bottom-nav{position:sticky;grid-column:1;grid-row:2;align-self:start;top:16px;left:auto;bottom:auto;transform:none;display:flex;flex-direction:column;justify-content:flex-start;gap:6px;width:100%;border-radius:16px;padding:8px;box-shadow:none;background:#f9fcf8}
 .nav-item{width:100%;min-height:51px;display:flex;flex-direction:row;justify-content:flex-start;gap:11px;padding:0 12px;border-radius:11px;font-size:12px}
 .nav-icon svg{width:20px;height:20px}
 .toast{bottom:24px}
 .grid.two.mt-15{grid-template-columns:minmax(0,1fr)}
 .grid.two,.grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}
 .pose-gallery-item>img{height:250px}
 .pose-preview{grid-template-columns:minmax(145px,33%) minmax(0,1fr)}
 .photo-dialog-head{padding:17px 18px 11px}.photo-dialog-scroll{padding:0 18px}.pose-photo{height:min(38dvh,340px)}
 .pose-pager{margin:12px 18px 0}.pose-notes{padding:12px 18px 19px}
 .motion-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 15px;align-items:start}
 .motion-row .motion-header,.motion-row .motion-detail,.motion-row .motion-hand,.motion-row .motion-timing{grid-column:1}
 .motion-row .pose-preview{grid-column:2;grid-row:1 / span 5;grid-template-columns:1fr;align-self:center;margin:0}
 .motion-row .pose-preview-visual{max-height:170px}.motion-row .pose-preview-visual>img{max-height:170px}
 .motion-row .pose-preview-copy{padding:10px}.motion-row .pose-preview-copy small{display:none}
 .phase-intro{padding:20px}.hero{padding:24px;grid-template-columns:1fr}.hero-figure{display:none}
}
/* Larger screens: four columns with roomy photos, readable copy */
@media(min-width:1151px){.app-shell{max-width:1240px}.pose-gallery-item>img{height:260px}.photo-dialog-scroll{padding:0 25px}}
@media(max-width:390px){.pose-preview{grid-template-columns:minmax(110px,36%) 1fr}.pose-preview-copy{padding:9px}.pose-preview-copy .demo-show{padding:8px 7px;min-height:45px}.pose-gallery-scroll{grid-auto-columns:90%}.pose-gallery-item>img{height:300px}}
@media(orientation:landscape) and (max-height:550px) and (min-width:720px){.movement-dialog.photo-dialog{max-height:98dvh}.pose-photo{height:220px}.photo-dialog-head{padding-top:10px}}
/* The original squat stills already include baked-in step numerals. */
.pose-gallery-item .pose-gallery-number,.pose-step.photo-has-index .pose-number{display:none}
@media(horizontal-viewport-segments:2){.movement-dialog.photo-dialog{max-width:calc(100vw - 35px)}.app-shell{column-gap:24px}}

/* v3.0: continuous training + standalone photo reference library */
.hero-figure{overflow:hidden;position:relative;border-radius:20px;background:linear-gradient(120deg,#e7ece8,#f2f1ec)}
.hero-figure img{width:100%;height:100%;max-height:310px;object-fit:contain;object-position:center bottom;display:block;mix-blend-mode:multiply}
.library-feature{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 22px;margin-top:20px;background:#e9f3ed;border:1px solid #d4e8db;border-radius:20px}
.library-feature h3{margin:5px 0;font-size:17px}.library-feature p{font-size:12px;line-height:1.7;color:#567668}.library-feature .btn{white-space:nowrap}
.library-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:20px 0 16px}
.library-tabs button{min-height:65px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1px solid var(--border);border-radius:13px;background:#fff;color:#60796b;font-size:14px;font-weight:850}
.library-tabs button small{font-size:10px;color:#81968b}.library-tabs button.selected{background:#184f3d;color:#fff;border-color:#184f3d}.library-tabs button.selected small{color:#c9dfd2}
.library-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 14px}.library-heading p{font-size:12px;color:#789083;margin-top:5px}
.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.library-card{border:1px solid #dae5dc;border-radius:17px;background:#fff;overflow:hidden;text-align:left;padding:0;display:flex;flex-direction:column;min-width:0;color:var(--ink);box-shadow:0 4px 14px #102e2110}
.library-thumb{background:#eceeec;height:205px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}
.library-thumb img{width:100%;height:100%;object-fit:contain;display:block}
.library-index{position:absolute;left:12px;top:12px;width:26px;height:26px;display:grid;place-items:center;background:#def2e6;border-radius:50%;font-weight:850;font-size:12px;color:#1b6849}
.library-copy{padding:14px;display:flex;flex-direction:column;gap:7px}.library-copy strong{font-size:14px}.library-dose{font-size:12px;color:#849287}
.library-photo-count{display:inline-flex;width:max-content;max-width:100%;border-radius:10px;padding:5px 8px;color:#765b36;background:#fff3e3;font-size:10px;font-weight:760}
.library-photo-count.ready{background:#e2f2e6;color:#256e49}
.library-photo-wait{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:11px;color:#698879;font-size:12px}.library-photo-wait svg{width:28px;height:28px}
.library-disclaimer{font-size:12px;line-height:1.75;color:#859185;padding:17px 4px 35px}
@media (max-width:719px){.library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.library-thumb{height:165px}.library-feature{flex-direction:column;align-items:stretch}.library-feature .btn{width:100%}.library-tabs button{font-size:12px}.library-heading .pill{display:none}}
@media (min-width:720px) and (max-width:1150px){.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.library-thumb{height:190px}.library-feature{flex-direction:column;align-items:stretch}.library-feature .btn{width:100%}.hero-figure{display:none}}
@media (min-width:1151px){.library-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* six convenient navigation targets on narrow displays */
@media(max-width:420px){.nav-item{font-size:10px}.nav-item .nav-icon svg{width:18px;height:18px}}

/* v5 complete pose guidance: clear provenance on every illustration. */
.pose-source{position:absolute;bottom:8px;right:8px;font-size:10px;line-height:1.3;padding:6px 9px;background:#fefbf4e8;color:#695b40;border:1px solid #e6dec9;border-radius:9px;font-weight:700;box-shadow:0 1px 8px #142f2012}
.pose-source.diagram{background:#eaf6efee;color:#235c42;border-color:#cce4d5}
.pose-photo img[src$='.svg']{padding:0;background:linear-gradient(155deg,#fcfefa,#e7efe9);object-fit:contain;}
.pose-gallery-item img{background:#f0f5f0}
@media(max-width:719px){.pose-source{font-size:11px}}

/* v7: local per-step photo replacement; no false certification badges */
.photo-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.photo-actions button{font-size:11px;min-height:34px;padding:6px 10px;background:#eff5ef;color:#24583d;border:1px solid #d8e7d8;border-radius:9px;font-weight:750}
.photo-actions button[data-photo-remove]{background:#f7f5f0;color:#816c51}
.photo-actions button[hidden]{display:none}
.pose-source.custom{background:#eef2fd;color:#3f527d;border-color:#ccd8f4}

/* v8: source-verified action-photo panel with offline motion guide fallback */
.pose-photo img.photo-mirror,.pose-preview-visual img.photo-mirror {transform:scaleX(-1)}
.pose-photo img {background:#eeeee9; object-fit:contain;}
.pose-source.authentic{background:#e9f4ee;color:#165f45;}
.pose-source-auth{color:#24644f; font-weight:700;}
.ref-warning {padding:8px 10px; border-left:3px solid #b8cdbd; background:#f5f8f5; color:#516052; border-radius:6px; font-size:12px; line-height:1.55; margin:12px 0 3px;}
.ref-link {display:inline-block; padding:4px 0; color:#246b55; text-decoration:underline; font-size:12px;}

.pose-source.generated {background:#f0f6ee;color:#376846;}

/* Final integration fixes: full photos, readable unfolded steps, single-column outer screen. */
.pose-scroller {grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row;grid-auto-columns:auto;}
.pose-step {min-width:0;} .pose-copy p {overflow-wrap:anywhere;}
.pose-photo {height:clamp(240px,32vw,420px);}
.pose-photo img {object-fit:contain;padding:0;}
.pose-preview-visual img,.library-thumb img {object-fit:contain;}
.pose-step.photo-has-index .pose-number {display:flex;}
.pose-audit {font-size:12px;line-height:1.65;color:#4c6257;margin:10px 0;}
.photo-pending {padding:24px;font-size:15px;line-height:1.8;color:#684c23;background:#fff3d8;}
@media(max-width:719px){
.library-grid {grid-template-columns:minmax(0,1fr);} .library-thumb {height:270px;}
.pose-scroller {grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:100%;}
.pose-photo {height:clamp(230px,47dvh,390px);}
.pose-pager {position:sticky;bottom:0;background:#fff;padding:10px 0;z-index:4;}
.pose-pager button {min-height:44px;} .pose-dot {min-width:28px;}
}
@media(min-width:720px) and (max-width:850px){
.app-shell {grid-template-columns:115px minmax(0,1fr);column-gap:12px;padding-inline:12px;}
.grid.two,.grid.three {grid-template-columns:minmax(0,1fr);}
.motion-row {display:block;} .hero{padding:22px;} .hero h1{font-size:31px;}
}
@media(max-width:719px){
.movement-dialog.photo-dialog{width:calc(100vw - 12px);max-width:calc(100vw - 12px);box-sizing:border-box;}
.pose-pager{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:5px 8px;}
.pose-pager>[data-pose-move=prev]{grid-column:1;grid-row:1;min-width:0;}
.pose-count{grid-column:2;grid-row:1;text-align:center;}
.pose-pager>[data-pose-move=next]{grid-column:3;grid-row:1;min-width:0;}
.pose-dots{grid-column:1 / -1;grid-row:2;justify-content:center;}
.pose-dot{min-width:28px;min-height:28px;height:28px;max-height:28px;}
.photo-dialog-head .eyebrow{white-space:normal;overflow-wrap:anywhere;}
}

/* Phone focus: one movement and uncropped full-width step photos. */
.inline-pose-guide,.library-focus,.mobile-motion-position,.mobile-phase-navigation{display:none}
.focus-navigation{display:flex;gap:10px;padding:14px}.focus-navigation .btn{flex:1;min-width:0;min-height:50px}
@media(max-width:719px){
 .app-shell{padding:0 10px calc(110px + env(safe-area-inset-bottom))}.topbar{height:58px}.brand-mark{width:32px;height:32px;font-size:23px;border-radius:11px}.brand strong{font-size:15px}.brand small{font-size:8px}.avatar{display:none}.local-badge{padding:6px 9px}
 .focused-workout>.page-title,.focused-workout .phase-intro{display:none}.phase-nav{margin:4px 0 12px;gap:6px}.phase-tab{min-height:42px;padding:8px 5px;flex-direction:row;gap:5px}.phase-tab strong{font-size:11px}.phase-tab span{font-size:10px;width:20px;height:20px}
 .mobile-motion-position{display:flex;justify-content:space-between;font-size:12px;font-weight:750;color:#648174;margin:10px 4px}.phase-group[data-current-group="false"],.focused-workout .motion-row[data-current-motion="false"],.focused-workout .phase-group>header{display:none}.focused-workout .phase-groups{gap:0;margin-top:10px}
 .focused-workout .motion-row{display:flex;flex-direction:column;padding:0;border:0;min-width:0}.focused-workout .motion-header{order:1;padding:16px 14px 9px;align-items:center;width:100%}.motion-title h4{font-size:22px;line-height:1.35;margin:0 0 5px}.motion-check{min-width:78px;min-height:44px}
 .motion-row>.inline-pose-guide{order:2;width:100%;margin:0}.motion-row>.motion-detail{order:3;padding:0 14px;margin:10px 0;font-size:14px;line-height:1.8}.motion-row>.motion-hand{order:4;margin:0 14px 14px;font-size:13px}.motion-row>.motion-timing{order:5;padding:0 14px 15px;flex-wrap:wrap}
 .desktop-pose-preview{display:none!important}.inline-pose-guide{display:block;min-width:0;margin:0 0 16px;background:#fff}.inline-pose-track{display:grid;position:relative;grid-auto-flow:column;grid-auto-columns:100%;gap:0;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch}.inline-pose-track::-webkit-scrollbar{display:none}.inline-pose-step{scroll-snap-align:start;min-width:0;overflow:hidden}
 .inline-pose-photo{height:clamp(300px,54dvh,480px);position:relative;background:#eff2ef}.inline-pose-photo>img{display:block;width:100%;height:100%;object-fit:contain}.inline-pose-copy{padding:12px 14px 8px}.inline-pose-copy strong{font-size:16px}.inline-pose-copy p{font-size:13px;line-height:1.75;margin-top:5px;color:#5f7668}
 .inline-pose-pager{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;padding:8px 14px}.inline-pose-pager button{border:1px solid #dce8df;border-radius:11px;background:#f0f6ee;min-height:44px;font-size:12px;color:#27533e;font-weight:750}.inline-pose-count{font-size:12px;font-weight:800}.inline-pose-expand{display:block;border:0;background:transparent;text-decoration:underline;color:#467458;font-size:12px;min-height:36px;margin:0 auto}
 .mobile-phase-navigation{display:flex;position:sticky;bottom:calc(92px + env(safe-area-inset-bottom));z-index:6;padding:10px 0;background:var(--bg)}.focused-workout .phase-finish{display:none}.focused-workout .phase-choice{padding:0 4px;margin:10px 0}.phase-choice .variant-control{margin:0}.phase-choice>span{font-size:11px}
 .focused-workout .exercise-body{padding:0 0 16px}.exercise-body>.variant-control{padding:0 14px;margin:0 0 10px}.exercise-body>.form-cues{margin:8px 14px 15px 0;padding-left:32px;font-size:14px}.exercise-body>.hand-warning{margin:0 14px}.focused-workout .exercise-header{padding:14px}.exercise-header h2{font-size:23px}.ex-glyph{display:none}
 .strength-focus .workout-progress{padding:10px 14px}.strength-focus .workout-progress-top{margin-bottom:8px}.strength-focus .stepper{margin-top:9px}.strength-focus .workout-progress-top strong{font-size:12px}.strength-focus .workout-actions{position:sticky;bottom:calc(92px + env(safe-area-inset-bottom));background:var(--bg);padding:10px 0;margin:6px 0;z-index:6}
 .gallery-page>.page-title{margin:6px 0 12px}.gallery-page>.page-title h1{font-size:23px}.gallery-page>.page-title p,.gallery-page>.page-title .eyebrow{display:none}.gallery-page .library-overview-safety,.gallery-page .library-heading,.gallery-page .library-grid{display:none}
 .library-focus{display:block;overflow:hidden;margin-top:14px}.library-focus>header{padding:16px 14px 10px}.library-focus>header h2{font-size:23px;margin-top:6px}.library-focus>header p{font-size:13px;color:#648174;margin-top:6px}.library-focus-copy{padding:0 14px;font-size:14px;line-height:1.8}.library-focus-copy .hand-warning{margin-top:12px}.library-focus>.focus-navigation{position:sticky;bottom:92px;background:#fff;z-index:6}.bottom-nav{bottom:calc(10px + env(safe-area-inset-bottom))}
}

@media(max-width:719px){.phase-choice[data-first-motion="false"]{display:none}}
@media(max-width:719px){
 .strength-focus .workout-progress{display:none}
 .inline-pose-photo{height:clamp(300px,50dvh,440px)}
}
