:root{color:#163047;font-synthesis:none;text-rendering:optimizelegibility;--bg:#f5f8fc;--card:#fff;--primary:#3d79a8;--primary-dark:#2d648f;--soft-blue:#e7f3fb;--ink:#163047;--text:#294a64;--muted:#6c8294;--line:#dce7ef;--radius:18px;background:#f5f8fc;font-family:PingFang SC,Microsoft YaHei,system-ui,sans-serif}*{box-sizing:border-box}html{background:var(--bg)}body{background:var(--bg);min-width:320px;min-height:100vh;margin:0}button,textarea{font:inherit}button{-webkit-tap-highlight-color:transparent}a{color:inherit}.app-shell{min-height:100vh}.page{width:min(100%,560px);padding:max(22px, env(safe-area-inset-top)) 18px calc(104px + env(safe-area-inset-bottom));margin:0 auto}.date-header,.calendar-header{padding:10px 2px 22px}.date-header p,.calendar-header p,.history-header p{color:var(--text);margin:0 0 5px;font-size:18px;font-weight:700}.date-header h1,.calendar-header h1,.history-header h1{color:var(--muted);margin:0;font-size:14px;font-weight:500}.calendar-header h1{color:var(--ink);font-size:24px;line-height:1.3}.calendar-header p{color:var(--primary);font-size:14px}.section-heading{margin:27px 2px 13px;font-size:17px}.section-heading.first{margin-top:5px;font-size:22px}.day-list{gap:11px;display:grid}.day-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);width:100%;min-height:78px;color:var(--ink);text-align:left;cursor:pointer;flex-direction:column;justify-content:center;align-items:flex-start;padding:15px 50px 15px 17px;display:flex;position:relative;box-shadow:0 4px 18px #2248650b}.day-card:active{background:#f9fcff;transform:scale(.992)}.day-card.secondary{min-height:68px}.day-number{color:var(--primary);letter-spacing:.7px;margin-bottom:4px;font-size:12px;font-weight:800}.day-title{font-size:17px;font-weight:700}.chevron{color:#8ca5b8;font-size:30px;font-weight:300;position:absolute;top:50%;right:18px;transform:translateY(-53%)}.today-card,.completed-card{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:22px;box-shadow:0 8px 24px #22486512}.today-card .eyebrow{color:var(--primary);font-size:13px;font-weight:800}.today-card h2{margin:8px 0 10px;font-size:20px;line-height:1.4}.today-card p{color:var(--muted);margin:0 0 18px;font-size:14px}.status-dot{background:var(--primary);border-radius:50%;width:8px;height:8px;margin-right:8px;display:inline-block}.status-label{color:var(--primary);font-weight:800;display:block}.change-workout-toggle{width:100%;min-height:48px;color:var(--muted);cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;gap:7px;margin:10px 0 2px;font-weight:650;display:flex}.change-workout-toggle span{color:#8ba1b2;font-size:21px;font-weight:400}.change-workout-list{margin-top:5px}.primary-button,.completion-button{color:#fff;background:var(--primary);cursor:pointer;border:0;border-radius:14px;width:100%;min-height:50px;font-weight:750}.primary-button:active,.completion-button:active{background:var(--primary-dark)}.workout-header{padding:max(20px, env(safe-area-inset-top)) 24px 21px;color:#fff;background:#3d79a8;border-radius:0 0 25px 25px;margin:-22px -18px 20px;position:relative}.workout-header .back-link,.history-header .back-link{border-radius:50%;place-items:center;width:46px;height:46px;margin:0 0 18px -10px;font-size:34px;line-height:1;text-decoration:none;display:grid}.workout-header .back-link{top:max(10px, env(safe-area-inset-top));margin:0;position:absolute;left:17px}.workout-header .back-link:active{background:#ffffff24}.workout-header>span{letter-spacing:1px;opacity:.86;margin-left:44px;font-size:12px;font-weight:800;display:block}.workout-header h1{margin:3px 0 4px 44px;font-size:24px;line-height:1.25}.workout-header>p{opacity:.83;margin:0 0 0 44px;font-size:13px}.header-progress{margin-top:16px}.header-progress>div:first-child{justify-content:space-between;align-items:center;margin-bottom:7px;font-size:12px;display:flex}.header-progress strong{font-size:13px}.progress-track{background:#ffffff47;border-radius:99px;height:5px;overflow:hidden}.progress-track span{border-radius:inherit;background:#fff;height:100%;transition:width .18s ease-out;display:block}.complete-pill{color:#285e87;background:#fff;border-radius:99px;margin-top:11px;padding:6px 11px;font-size:12px;display:inline-block}.workout-section{margin:18px 0}.workout-section>h2,.tips-card h2,.safety-card h2,.note-card h2{margin:0 2px 12px;font-size:19px}.workout-section>h2 span{float:right;color:var(--muted);margin-top:5px;font-size:11px;font-weight:500}.simple-checklist{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);overflow:hidden}.simple-checklist button{border:0;border-bottom:1px solid var(--line);width:100%;min-height:58px;color:var(--text);text-align:left;cursor:pointer;background:0 0;align-items:center;gap:12px;padding:11px 14px;display:flex}.simple-checklist button:last-child{border-bottom:0}.simple-checklist button.checked{color:#7890a2;background:#f7fbfd}.simple-checklist button.checked>span:last-child{-webkit-text-decoration:line-through #abc0cf;text-decoration:line-through #abc0cf}.checkmark{color:#fff;border:2px solid #a8bdcc;border-radius:50%;flex:0 0 26px;place-items:center;width:26px;height:26px;font-size:16px;font-weight:900;display:grid}.checked .checkmark{border-color:var(--primary);background:var(--primary)}button:disabled{cursor:default;opacity:1}.exercise-list{gap:13px;display:grid}.group-heading{color:var(--primary);letter-spacing:.2px;margin:8px 2px -2px;font-size:14px}.exercise-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);padding:17px;transition:background .16s;box-shadow:0 4px 15px #22486509}.exercise-card.exercise-done{background:#f2f8fc;border-color:#cfe1ec}.exercise-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.exercise-head h3{margin:0 0 7px;font-size:18px}.exercise-head p{color:var(--text);margin:0;font-size:14px}.exercise-head p span{color:var(--muted);margin-right:8px;font-size:12px}.set-count{min-width:40px;color:var(--muted);text-align:center;background:#f0f4f7;border-radius:99px;padding:5px 9px;font-size:12px;font-weight:800}.exercise-done .set-count{color:var(--primary);background:#dceef8}.exercise-description{color:var(--text);background:#f4f8fb;border-radius:12px;margin:13px 0 0;padding:11px 12px;font-size:13px;line-height:1.65}.sets-list{gap:8px;margin-top:15px;display:grid}.set-checkbox{border:1px solid var(--line);width:100%;min-height:52px;color:var(--text);text-align:left;cursor:pointer;touch-action:manipulation;background:#fff;border-radius:12px;align-items:center;gap:11px;padding:9px 12px;display:flex}.set-checkbox.checked{color:#7990a1;background:#edf6fb;border-color:#cfe1ec}.set-checkbox.checked>span:last-child{-webkit-text-decoration:line-through #aac0ce;text-decoration:line-through #aac0ce}.tips-card,.safety-card,.note-card{border-radius:var(--radius);background:var(--soft-blue);border:1px solid #cee1ee;margin:20px 0;padding:18px}.tips-card p,.safety-card p,.safety-card li{color:var(--text);margin:0;font-size:14px;line-height:1.75}.safety-card{background:snow;border-color:#eed9da}.safety-card ul{margin:12px 0 0;padding-left:20px}.safety-card li+li{margin-top:5px}.safety-redline{font-weight:650}.completion-button{bottom:calc(78px + env(safe-area-inset-bottom));z-index:5;min-height:56px;margin:18px 0 24px;position:sticky;box-shadow:0 10px 25px #3d79a845}.note-card{background:var(--card);border-color:var(--line)}.note-card>p{color:var(--muted);margin:-5px 0 14px;font-size:14px}.note-card textarea{resize:vertical;width:100%;min-height:142px;color:var(--ink);background:#fbfdff;border:1px solid #cadbe7;border-radius:13px;outline:none;padding:13px;line-height:1.65}.note-card textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px #3d79a81a}.note-card .primary-button{margin-top:12px}.text-button{width:100%;min-height:44px;color:var(--muted);cursor:pointer;background:0 0;border:0}.save-hint{color:var(--primary);text-align:center;margin-top:8px;font-size:13px;display:block}.calendar-card{border:1px solid var(--line);background:var(--card);border-radius:20px;padding:12px 13px 11px;box-shadow:0 6px 22px #2248650e}.month-switcher{justify-content:space-between;align-items:center;margin-bottom:5px;display:flex}.month-switcher h2{margin:0;font-size:18px}.month-switcher button{width:44px;height:44px;color:var(--primary);cursor:pointer;background:0 0;border:0;border-radius:50%;font-size:31px}.month-switcher button:active{background:var(--soft-blue)}.weekdays,.calendar-days{grid-template-columns:repeat(7,1fr);display:grid}.weekdays span{color:var(--muted);text-align:center;padding:4px 0 6px;font-size:12px}.calendar-days{row-gap:2px}.calendar-days button{aspect-ratio:1;width:min(44px,100%);min-width:0;color:var(--text);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:50%;justify-self:center;position:relative}.calendar-days button.outside{color:#c1ccd4}.calendar-days button.trained{color:#fff;background:var(--primary);font-weight:800}.calendar-days button.today{border-color:#6da3c8}.calendar-days button.today.trained{outline-offset:2px;border-color:#0000;outline:1px solid #86b8d8}.calendar-legend{color:var(--muted);gap:20px;margin:11px 5px 1px;font-size:12px;display:flex}.calendar-legend span{align-items:center;gap:6px;display:flex}.calendar-legend i{border-radius:50%;width:13px;height:13px}.legend-trained{background:var(--primary)}.legend-today{border:2px solid #6da3c8}.workout-stats{margin-top:25px}.workout-stats>h2{margin:0 2px 13px;font-size:19px}.stat-card-row{grid-template-columns:1fr 1fr;gap:11px;display:grid}.stat-card{border:1px solid var(--line);background:var(--card);text-align:center;border-radius:17px;flex-direction:column;justify-content:center;align-items:center;min-height:100px;padding:16px;display:flex}.stat-card strong{color:var(--ink);font-size:27px;line-height:1.15}.stat-card strong small{color:var(--text);margin-left:3px;font-size:14px;font-weight:650}.stat-card>span{color:var(--muted);margin-top:7px;font-size:13px}.muscle-stats-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);margin-top:12px;padding:18px}.muscle-stats-card>header h3{margin:0 0 4px;font-size:17px}.muscle-stats-card>header p{color:var(--muted);margin:0;font-size:12px}.donut-layout{margin-top:17px}.donut-wrap{width:174px;height:174px;margin:0 auto;position:relative}.donut-chart{width:100%;height:100%;transform:rotate(-90deg)}.donut-base,.donut-segment{fill:none;stroke-width:15px}.donut-base{stroke:#edf3f7}.donut-segment{transition:stroke-dasharray .18s ease-out}.donut-center{pointer-events:none;flex-direction:column;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.donut-center strong{color:var(--ink);font-size:27px;line-height:1}.donut-center span{color:var(--muted);margin-top:5px;font-size:11px}.muscle-legend{gap:1px;margin-top:13px;display:grid}.muscle-legend>div{border-bottom:1px solid #edf2f5;grid-template-columns:10px 1fr auto;align-items:center;gap:9px;min-height:39px;font-size:13px;display:grid}.muscle-legend>div:last-child{border-bottom:0}.muscle-legend i{border-radius:50%;width:9px;height:9px}.muscle-legend span{color:var(--text)}.muscle-legend strong{color:var(--muted);font-size:12px;font-weight:650}.stats-empty{text-align:center;background:#f6f9fb;border-radius:14px;margin-top:17px;padding:27px 17px}.stats-empty strong{color:var(--text);font-size:15px}.stats-empty p{max-width:260px;color:var(--muted);margin:7px auto 0;font-size:12px;line-height:1.6}.history-header{padding:5px 0 21px 52px;position:relative}.history-header .back-link{color:var(--primary);margin:0;position:absolute;top:-7px;left:-8px}.history-summary,.empty-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);padding:20px}.history-summary>span{color:var(--primary);font-size:13px;font-weight:800}.history-summary h2{margin:8px 0;font-size:20px}.history-summary p{color:var(--muted);margin:0;font-size:14px}.history-exercises{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);padding:6px 17px;overflow:hidden}.history-exercises h2{padding-top:11px}.history-row{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:15px;min-height:53px;display:flex}.history-row strong{color:var(--primary);font-size:14px}.empty-card{text-align:center;margin-top:5px}.empty-card h2{color:var(--muted);margin:28px 0;font-size:17px;font-weight:600}.loading{color:var(--muted);text-align:center;padding:60px 0}.bottom-nav{z-index:20;width:min(100%,560px);height:calc(68px + env(safe-area-inset-bottom));padding:5px 34px env(safe-area-inset-bottom);background:#fffffff5;border-top:1px solid #d2e1ebf2;grid-template-columns:1fr 1fr;display:grid;position:fixed;bottom:0;left:50%;transform:translate(-50%)}.bottom-nav a{color:#8193a1;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-height:58px;font-size:11px;text-decoration:none;display:flex}.bottom-nav a.active{color:var(--primary);font-weight:700}.nav-icon{font-size:16px;line-height:16px}.nav-svg-icon{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:19px;height:19px}.calendar-icon{border:2px solid;border-radius:4px;width:17px;height:16px}.calendar-icon:before{content:"";border-top:2px solid;width:11px;margin:3px auto 0;display:block}@media (width>=560px){body{background:#eaf1f7}.app-shell{background:var(--bg);width:560px;margin:0 auto;box-shadow:0 0 40px #16304714}}@media (width<=370px){.page{padding-left:14px;padding-right:14px}.workout-header{margin-left:-14px;margin-right:-14px}.day-title{font-size:16px}.workout-section>h2 span{float:none;margin-top:3px;display:block}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}.sheet-overlay{z-index:40;background:#16304747;justify-content:center;align-items:flex-end;animation:.25s ease-out sheet-fade-in;display:flex;position:fixed;inset:0}.note-sheet{width:min(100%,560px);padding:11px 20px calc(14px + env(safe-area-inset-bottom));background:#fff;border-radius:22px 22px 0 0;animation:.25s ease-out sheet-slide-in;box-shadow:0 -8px 28px #16304721}.sheet-handle{background:#d5e0e8;border-radius:99px;width:38px;height:4px;margin:0 auto 16px}.note-sheet h2{color:var(--ink);margin:0 0 7px;font-size:21px}.note-sheet p{color:var(--muted);margin:0 0 14px;font-size:14px}.note-sheet textarea{resize:vertical;width:100%;min-height:126px;color:var(--ink);background:#fbfdff;border:1px solid #cadbe7;border-radius:13px;outline:none;padding:13px;line-height:1.65}.note-sheet textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px #3d79a81a}.note-sheet .primary-button{margin-top:12px}@keyframes sheet-fade-in{0%{background:#16304700}}@keyframes sheet-slide-in{0%{transform:translateY(100%)}}
