:root{--ink:#202922;--muted:#6d786d;--paper:#f5f4ef;--white:#fff;--line:#dedfd6;--green:#315b43;--lime:#dce9be;--orange:#b65e3c}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC","Noto Sans CJK SC",sans-serif}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #94b55c;outline-offset:2px}button{border:0;background:none;color:inherit}input,select{color:var(--ink);border:1px solid #cdd2c8;border-radius:10px;background:#fff;min-height:44px;padding:8px 10px}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-.05em;line-height:1.15}h2{font-size:21px;letter-spacing:-.03em}h3{font-size:17px}small,.muted{color:var(--muted)}.shell{max-width:760px;margin:auto;padding:22px 20px 115px}.top{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.brand{font-size:14px;letter-spacing:.12em;font-weight:800}.brand:before{content:'✳';color:var(--green);font-size:21px;margin-right:7px}.top button,.text-btn{color:var(--green);font-weight:700;min-height:44px}.intro{display:flex;justify-content:space-between;gap:10px;align-items:end;margin-bottom:20px}.eyebrow{font-size:12px;letter-spacing:.14em;color:var(--green);font-weight:800;margin-bottom:8px}.date-control{display:flex;gap:8px;align-items:center;margin:18px 0}.date-control input{flex:1;min-width:0}.chip,.outline,.primary{min-height:44px;border-radius:10px;padding:9px 14px;font-weight:700}.chip{background:#e7eadf;white-space:nowrap}.outline{border:1px solid #aab6a7;color:var(--green);background:transparent}.primary{background:var(--green);color:white}.wide{width:100%}.summary{background:#253f30;color:#fff;border-radius:16px;padding:20px;display:flex;justify-content:space-between;align-items:center;gap:12px;margin:16px 0 26px}.summary small{color:#c3d1bd}.summary strong{font-size:29px;font-weight:650}.summary .light{color:#dce9be}.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:22px 0 12px}.empty{padding:31px 22px;text-align:center;border:1px dashed #bdc7b9;border-radius:14px;color:var(--muted)}.empty p{margin:7px 0 18px}.exercise{background:#fff;border:1px solid #e1e4db;border-radius:15px;padding:16px;margin-bottom:12px}.exercise-head{display:flex;gap:12px;align-items:flex-start}.exercise-head .info{flex:1;min-width:0}.exercise-head h3{line-height:1.3}.meta{font-size:13px;color:var(--muted);margin-top:4px}.mini{font-size:13px;min-height:38px;color:var(--green);font-weight:700}.last{font-size:13px;color:#60705f;background:#f3f6ee;border-radius:8px;padding:8px 10px;margin:12px 0}.set-label,.set{display:grid;grid-template-columns:34px 1fr 1fr 46px;gap:8px;align-items:center}.set-label{color:var(--muted);font-size:12px;margin:12px 0 4px;text-align:center}.set{margin:6px 0}.set input{width:100%;min-width:0;text-align:center;font-variant-numeric:tabular-nums}.set .number{text-align:center;color:var(--muted);font-size:13px}.check{width:44px;height:44px;border:1px solid #c7d0c2;border-radius:10px;font-size:19px;color:#a3ada0}.check.done{background:var(--green);border-color:var(--green);color:white}.actions{display:flex;gap:8px;flex-wrap:wrap}.nav{position:fixed;bottom:0;left:0;right:0;background:rgba(250,250,246,.97);border-top:1px solid var(--line);display:flex;justify-content:center;padding:5px 0 max(6px,env(safe-area-inset-bottom));z-index:3}.nav button{width:min(25%,150px);min-height:53px;color:#7b857a;font-size:12px;font-weight:700}.nav button span{display:block;font-size:21px;line-height:1.2}.nav button.active{color:var(--green)}.search{width:100%;margin:14px 0}.filters{display:flex;gap:8px;overflow:auto;padding:0 0 10px;scrollbar-width:none}.filters button{border:1px solid var(--line);border-radius:99px;min-height:40px;padding:7px 14px;white-space:nowrap;background:#fff}.filters button.active{background:var(--green);border-color:var(--green);color:white}.list-row{display:flex;gap:13px;padding:13px 0;border-bottom:1px solid var(--line);align-items:center}.list-row .info{flex:1;min-width:0}.thumb{width:76px;height:76px;flex:none;border-radius:10px;object-fit:cover;background:#e8ece3;color:#738076;font-size:11px}.list-row button{min-height:44px;color:var(--green);font-weight:700}.modal-wrap{position:fixed;inset:0;background:#18291fa6;z-index:5;display:flex;align-items:end;justify-content:center}.modal{background:var(--paper);width:min(100%,700px);max-height:90dvh;overflow:auto;border-radius:20px 20px 0 0;padding:22px 20px calc(25px + env(safe-area-inset-bottom))}.modal-head{display:flex;justify-content:space-between;align-items:center}.modal-head button{font-size:25px;min-width:44px;min-height:44px}.modal label{display:block;margin:18px 0 6px;font-weight:700}.modal select{width:100%}.detail-imgs{display:flex;gap:8px;margin:14px 0}.detail-imgs img{width:calc(50% - 4px);aspect-ratio:1.3;object-fit:contain;background:#fff;border-radius:10px}.notice{color:#815942;background:#fff4e8;padding:12px;border-radius:10px;margin:12px 0;font-size:14px}.progress-row{padding:16px 0;border-bottom:1px solid var(--line)}.progress-row strong{font-size:20px;font-variant-numeric:tabular-nums}.delta{color:var(--green);font-weight:800;margin-left:8px}.backup{margin-top:35px;border-top:1px solid var(--line);padding-top:20px}.backup p{font-size:14px;margin:6px 0 12px}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(min-width:700px){.shell{padding-top:34px}.nav{left:50%;transform:translateX(-50%);max-width:760px;border:1px solid var(--line);border-radius:18px 18px 0 0}.modal-wrap{align-items:center}.modal{border-radius:20px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.image-unavailable{display:flex;align-items:center;justify-content:center;text-align:center;background:#e8ece3;color:#637364;font-size:12px}.detail-imgs .image-unavailable{width:calc(50% - 4px);aspect-ratio:1.3;border-radius:10px}
.view-switch{display:flex;border-bottom:1px solid var(--line);gap:24px;margin:8px 0 18px}.view-switch button{min-height:44px;padding:6px 0;border-bottom:3px solid transparent;color:var(--muted);font-weight:700}.view-switch button[aria-pressed=true]{color:var(--green);border-color:var(--green)}.machine-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.machine-card{text-align:left;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;padding:0}.machine-card img{display:block;width:100%;height:auto;aspect-ratio:1.55;object-fit:contain;background:#e7eae3}.machine-card span{min-height:50px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;font-weight:700;line-height:1.3}.machine-card b{color:var(--green);font-size:22px}.chosen-machine{padding:6px 0 12px;display:grid;gap:3px}.chosen-machine button{justify-self:start;color:var(--green);font-weight:700;min-height:44px}.chosen-machine small{color:var(--muted)}@media(min-width:700px){.machine-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.machine-missing{aspect-ratio:1.55;display:grid;place-items:center;text-align:center;background:#e7eae3;color:#637364;font-size:13px}
.device-photo{margin-top:12px}.device-photo img{display:block;width:100%;height:220px;object-fit:contain;background:#e7eae3;border-radius:10px;margin-top:6px}.detail-caption{margin-top:14px}
/* 日常记录 */
.top{margin-bottom:20px}.brand:before{content:none}.brand{letter-spacing:0;font-size:15px}.day-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.day-heading h1{font-size:25px}.day-date{margin-top:7px;font-size:17px;font-weight:700}.day-date span{font-weight:400;color:var(--muted);font-size:14px}.calendar-toggle{padding-inline:13px}.day-nav{display:flex;gap:6px;margin:14px 0 18px}.day-nav button{height:44px;min-width:44px;padding:0 8px;background:#e7eadf;border-radius:9px;color:var(--green);font-weight:700;white-space:nowrap}.day-nav button:disabled{color:#8a9488;background:#eceee9}.day-nav input{min-width:0;flex:1;padding:6px}.calendar{padding:14px;background:white;border:1px solid var(--line);border-radius:14px;margin:0 0 18px}.calendar-head{display:flex;align-items:center;gap:8px}.calendar-head button{width:44px;height:44px;font-size:24px;color:var(--green)}.calendar-head strong{min-width:100px;text-align:center}.calendar-head span{margin-left:auto;font-size:14px;color:var(--muted)}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;gap:2px;margin:6px 0}.calendar-grid small{padding:6px;color:var(--muted)}.calendar-grid button{position:relative;min-height:44px;border-radius:9px;font-variant-numeric:tabular-nums}.calendar-grid button.selected{background:#dce9be;font-weight:800}.calendar-grid button.trained span{position:absolute;bottom:0;left:0;right:0;color:var(--green);font-size:19px;line-height:12px}.calendar>small{font-size:12px}.target-section{border-block:1px solid var(--line);padding:14px 0 12px}.target-title{display:flex;align-items:baseline;gap:8px}.target-title span{font-size:12px;color:var(--muted)}.target-list{display:flex;gap:7px;overflow-x:auto;padding:9px 0 2px;scrollbar-width:none}.target-list button{flex:none;min-height:42px;padding:7px 13px;background:#fff;border:1px solid var(--line);border-radius:9px}.target-list button.active{background:var(--green);border-color:var(--green);color:#fff}.workout-head{align-items:center;margin:18px 0 12px}.workout-head h2{font-size:19px}.workout-head small{font-size:13px}.head-actions{display:flex;gap:6px}.head-actions button{font-size:14px;padding-inline:4px}.library-heading h1{font-size:27px}.back-link{display:block;color:var(--green);font-weight:700;min-height:44px;padding:0;margin-bottom:6px}.list-row button:disabled{color:#8a9488;cursor:default}.view-switch{gap:24px;margin-bottom:0}.search{margin:14px 0 4px}.target-list button,.filters button{scroll-margin:5px}@media(max-width:380px){.day-nav button span{font-size:12px}.day-nav button{padding:0 5px}.shell{padding-inline:16px}.head-actions{gap:0}.head-actions button{font-size:13px}}
.exercise-toggle{text-align:left;padding:0;min-height:44px}.exercise-toggle .meta{display:block;font-weight:400}.exercise:not(.expanded){padding-block:12px}.shared-weight{display:flex;gap:12px;align-items:end;justify-content:space-between;margin:12px 0}.shared-weight label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:700}.shared-weight input{width:110px}.shared-weight span{font-size:12px;color:var(--muted);max-width:160px}.set-label,.set{grid-template-columns:46px minmax(0,1fr) minmax(0,1fr) 46px}.set.current{border-radius:10px;background:#f3f6ee}.role-toggle{min-height:44px;line-height:1.1;color:var(--muted);padding:3px}.role-toggle small{display:block;font-size:11px}.heavy-result{color:var(--green);font-weight:700;font-size:13px;margin:4px 0 8px 54px}.exercise-actions{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.exercise-actions button{font-size:13px}.visit-line{text-align:right;margin-top:10px}.centered{justify-content:center}.calendar-grid button.planned span{position:absolute;bottom:0;left:0;right:0;color:#9aa79a;font-size:19px;line-height:12px}.calendar-grid button.planned span::after{content:'';position:absolute;width:4px;height:4px;border-radius:50%;background:white;left:calc(50% - 2px);bottom:3px}.picker-bar{position:fixed;z-index:4;bottom:calc(64px + env(safe-area-inset-bottom));left:0;right:0;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fafaf6;border-top:1px solid var(--line);padding:10px max(20px,calc((100vw - 720px)/2));font-size:14px}.picker-bar button:disabled{opacity:.5}.shell:has(+ .nav) {scroll-padding-bottom:120px}.row-title{font-weight:700;text-align:left;padding:0;min-height:36px;line-height:1.3}.list-row .favorite{font-size:22px;color:#927c3e;min-width:40px}.list-row .select-action{min-width:48px;border:1px solid #afc0ae;border-radius:9px}.list-row .select-action.selected{background:var(--green);color:white}.list-row .select-action:disabled{font-size:12px;color:#859186}.sub-switch{margin-top:4px}.modal-actions{margin-top:20px}.batch-shared{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.batch-shared label{margin:0}.batch-shared input{display:block;width:100%;margin-top:6px}.batch-override{display:grid;grid-template-columns:60px 1fr 1fr;gap:8px;align-items:center;margin:8px 0}.batch-override input{min-width:0;width:100%}details summary{min-height:44px;color:var(--green);font-weight:700;cursor:pointer}.reuse-row{display:flex!important;gap:10px;align-items:center;padding:6px 0}.reuse-row input{min-height:24px;width:22px}.reuse-row small{display:block}.record-title{font-size:17px!important}.library-heading .back-link{margin-bottom:0}.library-heading{margin-bottom:12px}
.muscle-detail{margin-top:18px;border-top:1px solid var(--line);padding-top:12px}.muscle-figures{display:flex;align-items:flex-start;gap:12px;margin:10px 0}.muscle-figures figure{margin:0;width:140px;text-align:center}.muscle-figures figcaption{font-size:12px;color:var(--muted)}.muscle-diagram{display:block;width:100%;height:auto;background:#f7f8f4;border-radius:10px}.muscle-shape{fill:#e45a3b;fill-opacity:.72;stroke:#9b3d2f;stroke-width:.8}.muscle-shape.interactive{cursor:pointer}.muscle-shape.interactive:hover,.muscle-shape.interactive:focus{fill:#bd452c;outline:2px solid #315b43}.muscle-filter{margin:10px 0;border-bottom:1px solid var(--line)}.muscle-filter summary{padding-top:8px}.muscle-buttons{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.muscle-buttons button{min-height:44px;padding:6px 12px;border:1px solid var(--line);border-radius:9px}.muscle-buttons button[aria-pressed=true]{background:var(--green);color:#fff}.library-heading~.picker-bar+*{margin-bottom:0}body:has(.picker-bar) .shell{padding-bottom:200px}
.record-current{display:block;width:calc(100% - 54px);margin:5px 0 8px 54px;min-height:42px}.check:not(.done){color:#6d786d}
.mini{min-height:44px}.exercise-head{gap:8px}.exercise-head .info{min-width:0}.record-current{font-weight:700}
.schematic .body-base{fill:#c3cbc2;stroke:#f7f8f4;stroke-width:.35}.muscle-figures{flex-wrap:wrap}
.equipment-filter{display:flex;align-items:center;gap:12px;margin:12px 0 4px;font-size:14px;font-weight:700}.equipment-filter select{flex:1;min-width:0}.mode-control{display:flex;gap:10px;align-items:center;font-size:13px;color:var(--muted);margin:10px 0}.mode-control select{min-width:0;flex:1}.legacy-day{margin:22px 0 10px;padding-top:8px;border-top:1px solid var(--line)}.legacy-row{padding:10px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.legacy-row p{font-size:14px}.legacy-row small{display:block}.legacy-row button{font-size:13px;margin-right:12px}
.image-button{width:68px;height:68px;flex:none;padding:0;border-radius:10px;overflow:hidden;background:#e8ece3;color:#637364;font-size:12px;display:grid;place-items:center}.image-button img{width:100%;height:100%;object-fit:contain;background:#101216}.list-row .image-button{width:76px;height:76px}.exercise-head .image-button{width:56px;height:56px}.detail-imgs figure,.candidate-grid figure{margin:0;min-width:0;flex:1;text-align:center;font-size:12px;color:var(--muted)}.detail-imgs figure img{width:100%;background:#101216}.device-photo img{max-width:100%;max-height:260px;object-fit:contain;border-radius:10px}.candidate-grid{display:flex;gap:8px;overflow-x:auto}.candidate-grid figure{min-width:120px}.candidate-grid img{width:100%;height:100px;object-fit:contain;background:#fff;border-radius:8px}.candidate-list{margin:14px 0}.record-card{display:flex;align-items:center;gap:12px}.record-heading{margin:12px 0}.record-heading h1{font-size:24px}.record-parts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.record-parts button{text-align:left;min-height:48px;padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:#fff;font-weight:700}.record-parts span{float:right}.chart{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;margin:12px 0}.chart-head{display:flex;justify-content:space-between}.chart-head small{color:var(--muted)}.plot{height:170px;position:relative;margin-top:12px}.plot svg{position:absolute;inset:0;width:100%;height:100%}.chart-point{position:absolute;width:44px;height:44px;transform:translate(-50%,-50%);border-radius:50%;z-index:1}.chart-point:after{content:'';position:absolute;width:10px;height:10px;border-radius:50%;background:#356a4a;left:17px;top:17px}.chart-point.selected:after{outline:4px solid #c7ddbc}.chart-point span{position:absolute;bottom:32px;left:50%;transform:translateX(-50%);font-size:12px;font-weight:700;color:#284b35}.chart-dates{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.graph-empty{padding:12px;color:var(--muted);font-size:14px}.weight-selector{display:flex;gap:12px;align-items:center;font-size:14px;font-weight:700}.comparison{background:#f3f6ee;border-radius:10px;padding:10px 12px;margin:12px 0;font-size:13px;color:#405744}.comparison p{margin:4px 0}.prior-hint{display:block;margin:0 0 6px 54px;color:#667766;font-size:12px}@media(max-width:400px){.exercise-head{gap:5px}.exercise-head .image-button{width:48px;height:48px}.exercise-head .mini{font-size:12px}}
.prior-sequence{font-size:12px;color:#536956;background:#f3f6ee;border-radius:8px;padding:8px 10px;margin:6px 0}

.online-demo{margin:18px 0;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#fff}.online-demo>a{display:inline-block;color:var(--green);font-weight:700;min-height:32px}.online-demo small{display:block;color:var(--muted);font-size:12px}.online-demo small a{color:inherit}
.image-wrap{display:inline-flex;flex-direction:column;align-items:center;gap:3px;flex:none}.image-credit{display:block;font-size:9px;line-height:1.1;max-width:76px;text-align:center;color:#506453;white-space:nowrap}.image-button img[data-gym-asset]{background:#fff}.gym-demo{margin:16px 0}.gym-demo>strong,.gym-demo>small{display:block}.gym-demo>img{display:block;width:180px;height:180px;max-width:100%;object-fit:contain;background:#fff;border-radius:10px;margin:10px 0}.gym-demo>small{font-size:12px;color:var(--muted);line-height:1.5}.gym-demo>small a{color:inherit}.gym-demo>.image-unavailable{width:180px;min-height:100px;border-radius:10px;margin:10px 0;padding:12px}.gym-steps{margin:18px 0}.gym-steps ol{padding-left:1.4em;line-height:1.55}.gym-steps li{margin:6px 0}.gym-steps small{color:var(--muted)}
.media-settings{margin:20px 0;padding:14px;border:1px solid var(--line);border-radius:12px}.media-settings p{margin:6px 0 10px}.media-settings button{min-height:44px;padding-inline:12px}

#sync-status { text-align:center; font-size:.85rem; color:#555; margin:1rem auto 6rem; }
#sync-status:empty { display:none; }
